/* ==========================================================================
   Subfield · static landing page
   Modern CSS, no framework, no build step.
   Palette: dark neutral base + pink-purple accent. Geist sans + mono.
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-base:    #1c1c1e;
    --bg-elev-1:  #232326;
    --bg-elev-2:  #2a2a2d;
    --bg-elev-3:  #313134;

    /* Borders */
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Site-wide grid background (lattice) — color tuned per theme.
       Dark default: subtle white lines. Light override in theme.light.css
       uses a softer tan so the lattice reads on cream without dominating. */
    --grid-line: rgba(255, 255, 255, 0.018);

    /* Text */
    --text:        #f4f4f5;
    --text-muted:  #a1a1aa;
    --text-faint:  #71717a;

    /* Brand accent */
    --pink:    #ec4899;
    --pink-2:  #f472b6;
    --pink-3:  #fbcfe8;
    --purple:  #9333ea;
    --purple-2:#a855f7;

    /* Soft tints */
    --pink-soft:    rgba(236, 72, 153, 0.12);
    --pink-glow:    rgba(236, 72, 153, 0.30);
    --purple-soft:  rgba(147, 51, 234, 0.10);

    /* Type */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Spacing */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 1rem;
    --s-4: 1.5rem;
    --s-5: 2rem;
    --s-6: 3rem;
    --s-7: 5rem;
    --s-8: 8rem;

    /* Radii */
    --r-sm: 6px;
    --r:    12px;
    --r-lg: 18px;
    --r-xl: 24px;

    /* Layout */
    --content: min(1200px, calc(100vw - 3rem));
    --content-narrow: min(820px, calc(100vw - 3rem));

    /* Motion */
    --t-fast: 160ms;
    --t:      280ms;
    --t-slow: 520ms;
    --ease:   cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
/* Shrink the rem base on mobile so headings, body, and clamp() mins all
   scale down proportionally. High-DPI phones don't need 16px-rooted type —
   people are used to (and prefer) tighter scale on small screens. */
@media (max-width: 1024px) { html { font-size: 15.5px; } }
@media (max-width: 768px)  { html { font-size: 14.5px; } }
@media (max-width: 540px)  { html { font-size: 13.5px; } }
@media (max-width: 420px)  { html { font-size: 12.75px; } }
@media (max-width: 360px)  { html { font-size: 12.25px; } }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a {
    color: var(--pink-2);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--pink-3); }
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

::selection {
    background: var(--pink);
    color: var(--bg-base);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--s-3);
    z-index: 1000;
    background: var(--pink);
    color: var(--bg-base);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

/* ==========================================================================
   Site nav
   ========================================================================== */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-3) var(--s-5);
    background: color-mix(in oklab, var(--bg-base) 75%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-nav[data-scrolled="true"] {
    background: color-mix(in oklab, #000 88%, transparent);
    border-bottom-color: var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
}
.brand-mark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color var(--t-fast) var(--ease);
}
.brand:hover .brand-mark { color: var(--pink-2); }

.primary-nav ul {
    display: flex;
    gap: var(--s-5);
    align-items: center;
}
.primary-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    position: relative;
    padding: var(--s-1) 0;
    transition: color var(--t-fast) var(--ease);
}
.primary-nav a::after {
    content: '';
    position: absolute;
    inset: auto 0 -3px 0;
    height: 1px;
    background: linear-gradient(to right, var(--pink), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav .cta {
    color: var(--text);
    background: linear-gradient(to right, var(--pink), var(--purple));
    padding: var(--s-2) var(--s-3);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 2px 12px var(--pink-soft);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.primary-nav .cta::after { display: none; }
.primary-nav .cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--pink-glow);
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 99;
    background: color-mix(in oklab, #000 95%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--s-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.mobile-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
.mobile-nav a {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--border);
}
.mobile-nav .cta {
    background: linear-gradient(to right, var(--pink), var(--purple));
    border-radius: 999px;
    border-bottom: 0;
    text-align: center;
    padding: var(--s-3);
    margin-top: var(--s-3);
    color: var(--text);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(var(--s-8), 12vh, 96px) var(--s-5) var(--s-7);
    overflow: hidden;
    text-align: center;
}

/* Site-wide grid background with parallax.
   Fixed to the viewport, sits behind everything (z-index: -1), and gets
   translated by a JS scroll handler in script.js for a subtle parallax
   drift. We over-size the element by one grid cell on every side so the
   translated grid never reveals an empty edge. */
.site-grid-bg {
    position: fixed;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0;
    will-change: transform;
}

/* Push the page color onto <html> so the grid (z-index: -1 inside <body>)
   stays visible in BOTH themes. Body paints transparently when it carries
   the .has-grid-bg flag — sections that want to obscure the grid keep
   their own backgrounds.

   The 2nd selector here uses a higher specificity than theme.light.css's
   `html[data-theme="light"] body { background: var(--bg-base); }` so the
   lattice still shows through in light mode. (Specificity: 0,2,2 vs 0,1,2.) */
html {
    background-color: var(--bg-base);
}
body.has-grid-bg,
html[data-theme="light"] body.has-grid-bg {
    background-color: transparent;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--content-narrow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}

.hero-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-2);
    pointer-events: none;
}
.hero-logo {
    height: clamp(180px, 22vw, 280px);
    width: auto;
    display: block;
    /* SVG artwork is right-shifted within its viewBox; nudge left so the
       V-valley lands at the visual centre of the wordmark below. */
    transform: translateX(-7%);
}
.hero-wordmark {
    display: inline-block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(1.7rem, 5.4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--pink-2);
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    max-width: 22ch;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 48ch;
}

.release-banners {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    align-items: center;
    margin-top: var(--s-3);
}

.release-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-2) var(--s-4);
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: all var(--t) var(--ease);
    /* Uniform width across the three banners — each pill stretches to the
       same target width so they read as a single aligned column. The
       contents stay on a single line (tag + text) — text ellipsizes on
       narrow screens rather than wrapping. */
    width: 100%;
    max-width: 560px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.release-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.release-pill:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.release-tag--live {
    /* Same pink-purple gradient as the standard tag — uniform brand colour.
       The visual signal is the pulsing dot, not a different hue. */
    position: relative;
}
.release-tag--live::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    margin-right: 7px;
    animation: collecting-pulse 1.6s ease-in-out infinite;
    transform: translateY(-1px);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
@keyframes collecting-pulse {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50%      { opacity: 1;    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}
.release-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--s-2);
    background: linear-gradient(to right, var(--pink), var(--purple));
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a0a14;
    white-space: nowrap;
    flex-shrink: 0;
}
.release-text {
    color: var(--text);
    font-weight: 500;
}
.release-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bg-elev-2);
    color: var(--pink-2);
    transition: all var(--t-fast) var(--ease);
}
.release-icon:hover {
    background: var(--bg-elev-3);
    transform: scale(1.08);
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-4);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-scroll:hover { color: var(--pink-2); }
.hero-scroll svg { animation: bobbing 2.4s var(--ease) infinite; }
@keyframes bobbing {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section {
    position: relative;
    z-index: 2;
    width: var(--content);
    margin: 0 auto;
    padding: var(--s-8) 0;
    scroll-margin-top: 80px;
}
.section--washed,
.section--washed-pink {
    /* Background blooms removed — sections sit flat on body */
    background: transparent;
}

.section-head {
    max-width: var(--content-narrow);
    margin: 0 auto var(--s-7);
    text-align: left;
}
.section-head--center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--s-3);
}

.section-title {
    font-size: clamp(1.5rem, 4.5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 var(--s-3);
}
.accent {
    color: var(--pink-2);
}

.section-sub {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0;
}
.section-head--center .section-sub {
    margin: 0 auto;
}

/* ==========================================================================
   What Subfield Is
   ========================================================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    margin-bottom: var(--s-7);
}
.two-col p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.two-col p strong { color: var(--text); font-weight: 600; }

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin: var(--s-7) 0;
    padding: var(--s-5) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pillar {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    margin: 0;
}
.pillar-title {
    font-size: 1.14rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.pillar-title .accent { color: var(--pink-2); }
.pillar-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}
.pillar-body strong { color: var(--text); font-weight: 600; }

@media (max-width: 1080px) {
    .pillars { grid-template-columns: 1fr; gap: var(--s-3); }
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
}
.stat-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    transition: all var(--t) var(--ease);
}
.stat-card:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
}
.stat-num {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--pink-2);
    margin-bottom: var(--s-2);
}
.stat-unit {
    font-size: 0.6em;
    color: var(--pink-3);
    margin-left: 2px;
    font-weight: 500;
    vertical-align: baseline;
}
.stat-label {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Inside the Census — dimension cards
   ========================================================================== */

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
}
.dim-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    transition: all var(--t) var(--ease);
}
.dim-card:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.dim-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}
.dim-title {
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: var(--s-1) 0 var(--s-2);
    letter-spacing: -0.01em;
}
.dim-body {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}
.dim-body strong { color: var(--text); font-weight: 600; }
.dim-body em { color: var(--text-faint); font-style: italic; }
.dim-body code,
.dim-list code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: rgba(236, 72, 153, 0.14);
    color: var(--pink-3);
    padding: 1px 5px;
    border-radius: 4px;
}
.dim-list {
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dim-list li {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    letter-spacing: -0.005em;
    padding-left: var(--s-3);
    position: relative;
}
.dim-list li::before {
    content: '·';
    color: var(--pink);
    position: absolute;
    left: var(--s-2);
    font-weight: 700;
}
.dim-list li em {
    font-style: italic;
    color: var(--text-faint);
}

@media (max-width: 1080px) {
    .dimensions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dimensions-grid { grid-template-columns: 1fr; }
}

/* Inline specifications strip below the dim-card grid. Holds the proof
   points that didn't make the cut from 6 → 3 cards (raw+cleaned shadow,
   ORCID/Scholar/ResearchGate, cohort-only demographics, source tags,
   timestamps, refresh cadence). Wraps cleanly on narrow viewports.
   Bullets between items use the brand pink for a subtle accent. */
.spec-strip {
    list-style: none;
    margin: var(--s-5) 0 0;
    padding: var(--s-4) var(--s-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--s-1) var(--s-3);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: center;
}
.spec-strip li {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
}
.spec-strip li::before {
    content: '·';
    color: var(--pink);
    font-weight: 700;
}
.spec-strip li:first-child::before { display: none; }

/* ==========================================================================
   Sample questions
   ========================================================================== */

.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}

.qa-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    transition: all var(--t) var(--ease);
}
.qa-card:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.qa-bubble {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
}
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.avatar--you {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
}
.avatar--sf {
    background: var(--bg-elev-3);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
}

.qa-bubble--you p {
    flex: 1;
    background: var(--bg-elev-2);
    border-radius: 12px 12px 12px 2px;
    padding: var(--s-2) var(--s-3);
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.4;
}
.qa-bubble--sf .qa-body {
    flex: 1;
    background: var(--bg-elev-1);
    border-radius: 12px 12px 12px 2px;
    padding: var(--s-3);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.qa-chart {
    height: 64px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.qa-chart svg { width: 100%; height: 100%; }
.qa-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.qa-followup {
    margin-top: var(--s-2);
    padding-left: var(--s-3);
    border-left: 2px solid rgba(236, 72, 153, 0.4);
    font-style: italic;
    font-size: 0.82rem !important;
    color: var(--text-faint) !important;
}

.footnote {
    margin-top: var(--s-6);
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-faint);
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.roadmap-row {
    display: grid;
    grid-template-columns: 130px 100px 1fr;
    gap: var(--s-4);
    align-items: start;
    padding: var(--s-4);
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--t) var(--ease);
}
.roadmap-row:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
}
.roadmap-row--featured {
    background: linear-gradient(135deg, var(--pink-soft) 0%, transparent 60%), var(--bg-elev-1);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px var(--pink-soft);
}

.rm-when {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 4px;
}

.rm-status {
    align-self: start;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px var(--s-2);
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    white-space: nowrap;
}
.rm-status--open  {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: rgb(134, 239, 172);
}
.rm-status--pilot {
    background: linear-gradient(to right, var(--pink-soft), var(--purple-soft));
    border-color: var(--pink-glow);
    color: var(--pink-3);
}

.rm-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--s-1);
    line-height: 1.25;
}
.rm-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.rm-link {
    display: inline-flex;
    margin-top: var(--s-2);
    font-size: 0.86rem;
    color: var(--pink-2);
    font-weight: 500;
}
.rm-link:hover { color: var(--pink-3); }

/* ==========================================================================
   Built for / Audiences
   ========================================================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}
.audience-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    transition: all var(--t) var(--ease);
}
.audience-card:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.audience-for {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--s-2);
}
.audience-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--s-3);
    line-height: 1.2;
}
.audience-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.audience-card li {
    display: flex;
    gap: var(--s-2);
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.audience-card li span {
    color: var(--pink);
    flex-shrink: 0;
    padding-top: 2px;
}

/* ==========================================================================
   Pricing & Access — four-tier engagement grid
   ========================================================================== */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    align-items: stretch;
}
.tier-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5) var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    transition: all var(--t) var(--ease);
}
.tier-card:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.tier-card--featured {
    background:
        linear-gradient(135deg, var(--pink-soft), transparent 65%),
        var(--bg-elev-1);
    border-color: var(--pink-glow);
    box-shadow: 0 0 0 1px var(--pink-soft), 0 4px 18px rgba(236, 72, 153, 0.10);
}
.tier-card--featured:hover {
    box-shadow: 0 0 0 1px var(--pink-glow), 0 8px 24px rgba(236, 72, 153, 0.18);
}

.tier-card--rare {
    background: var(--bg-elev-1);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.18);
}
.tier-card--rare:hover {
    background: var(--bg-elev-2);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.28);
}
.tier-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}
.tier-title {
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin: var(--s-1) 0 var(--s-2);
    letter-spacing: -0.01em;
}
.tier-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 var(--s-3);
}
.tier-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin: 0 0 var(--s-4);
    padding-top: var(--s-3);
    border-top: 1px dashed var(--border);
    flex: 1;
}
.tier-list li {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding-left: var(--s-3);
    position: relative;
}
.tier-list li::before {
    content: '·';
    color: var(--pink);
    position: absolute;
    left: var(--s-2);
    font-weight: 700;
    transform: translateY(-1px);
}
.tier-list li strong {
    color: var(--pink-3);
    font-weight: 600;
}
.tier-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: var(--s-2) 0;
    min-height: 36px;
    color: var(--pink-2);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tier-cta:hover {
    color: var(--pink-3);
}
.tier-cta span {
    transition: transform var(--t-fast) var(--ease);
}
.tier-cta:hover span {
    transform: translateX(3px);
}
.tier-cta--soon {
    color: var(--text-muted, rgba(255, 255, 255, 0.55));
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: default;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
    min-height: 0;
    background: rgba(255, 255, 255, 0.02);
}
.tier-cta--soon:hover {
    color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

.tier-foot {
    margin-top: var(--s-6);
    text-align: center;
    color: var(--text-faint);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.55;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}
.tier-foot strong {
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.94em;
}

@media (max-width: 1080px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .tier-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Waitlist form
   ========================================================================== */

.waitlist-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5);
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}
.waitlist-form label {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}
.waitlist-form label span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.waitlist-form label span em {
    font-style: normal;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: normal;
}
.waitlist-form input,
.waitlist-form textarea {
    background: var(--bg-elev-3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: var(--s-3);
    font: inherit;
    /* 16px floor prevents iOS Safari from auto-zooming on focus. */
    font-size: max(1rem, 16px);
    min-height: 44px;
    color: var(--text);
    transition: all var(--t-fast) var(--ease);
    width: 100%;
}
.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
    color: var(--text-faint);
}
.waitlist-form input:focus,
.waitlist-form textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}
.waitlist-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.btn-pilot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    align-self: flex-start;
    padding: var(--s-3) var(--s-5);
    background: linear-gradient(to right, var(--pink), var(--purple));
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px var(--pink-soft);
    transition: all var(--t) var(--ease);
}
.btn-pilot:disabled { opacity: 0.6; cursor: wait; }

.waitlist-status {
    min-height: 1.2em;
    margin: var(--s-2) 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}
.waitlist-status[data-kind="ok"]      { color: rgb(134, 239, 172); }
.waitlist-status[data-kind="error"]   { color: #fca5a5; }
.waitlist-status[data-kind="pending"] { color: var(--text-muted); }
.btn-pilot:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--pink-glow);
}
.btn-pilot span { transition: transform var(--t-fast) var(--ease); display: inline-block; }
.btn-pilot:hover span { transform: translateX(3px); }

.hire-cta {
    margin-top: var(--s-5);
    text-align: center;
    color: var(--text-faint);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   The Pilot — Atlas + Explore feature pair
   ========================================================================== */

.pilot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
}
.pilot-feature {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    transition: all var(--t) var(--ease);
    overflow: hidden;
}
.pilot-feature:hover {
    background: var(--bg-elev-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.pilot-feature-visual {
    margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-1);
    padding: var(--s-4);
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(236, 72, 153, 0.05), transparent 70%),
        var(--bg-base);
    border-bottom: 1px solid var(--border);
}
.pilot-feature-visual svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
}
.pilot-feature-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}
.pilot-feature-title {
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}
.pilot-feature-body {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.pilot-feature-meta {
    margin: var(--s-2) 0 0;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
    .pilot-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Subfield Rankings — pixel iceberg + dual-column callouts
   Layout: 3-row × 3-column grid; the middle row is the full-width water-
   line divider. Iceberg is split into two SVGs (tip + body), populated
   procedurally by an inline script at the bottom of index.html.
   ========================================================================== */

/* ─── Three-column iceberg layout ────────────────────────── */
.iceberg-layout {
    display: grid;
    grid-template-columns: 1fr 360px 1.05fr;
    grid-template-rows: auto auto auto;
    column-gap: var(--s-5);
    row-gap: 0;
    align-items: stretch;
    max-width: var(--content);
    margin: 0 auto var(--s-6);
}

.ic-above-left   { grid-column: 1; grid-row: 1; }
.ic-above-center { grid-column: 2; grid-row: 1; }
.ic-above-right  { grid-column: 3; grid-row: 1; }
.ic-water        { grid-column: 1 / -1; grid-row: 2; }
.ic-below-left   { grid-column: 1; grid-row: 3; }
.ic-below-center { grid-column: 2; grid-row: 3; }
.ic-below-right  { grid-column: 3; grid-row: 3; }

.ic-above-left,
.ic-above-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--s-3);
}
.ic-above-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.ic-below-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--s-3);
}
.ic-below-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.ic-below-right {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding-top: var(--s-3);
}

/* ─── Iceberg SVGs ───────────────────────────────────────── */
.iceberg-svg {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
}
.iceberg-cubes rect {
    transition: opacity 600ms ease;
}
.iceberg-cubes rect.twinkle {
    animation: cube-twinkle 4s ease-in-out infinite;
}
@keyframes cube-twinkle {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.45); }
}

/* ─── Settle-in animation (mobile only) ──────────────────────
   On mobile, the iceberg slides in from the right (briefly fully
   visible) and settles into its half-clipped final position. On
   desktop the iceberg renders in place — no scroll-in animation,
   per design feedback that the desktop reveal felt overdone. */
@media (max-width: 768px) {
    .iceberg-layout {
        overflow: hidden;
    }
    .ic-above-center,
    .ic-below-center {
        overflow: visible;
    }

    #iceberg-tip,
    #iceberg-body {
        transition: transform 2s cubic-bezier(0.2, 0.85, 0.25, 1) 350ms;
        will-change: transform;
    }
    #iceberg-tip  { transform-origin: 100% 100%; }
    #iceberg-body { transform-origin: 100% 0%;   }

    .iceberg-layout:not([data-revealed="true"]) #iceberg-tip,
    .iceberg-layout:not([data-revealed="true"]) #iceberg-body {
        transform: translateX(58%) scale(1.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    #iceberg-tip, #iceberg-body { transition: none; }
    .iceberg-layout:not([data-revealed="true"]) #iceberg-tip,
    .iceberg-layout:not([data-revealed="true"]) #iceberg-body {
        transform: none;
    }
}

/* ─── Water-line divider ─────────────────────────────────── */
.water-divider {
    position: relative;
    height: 14px;
    margin: 0;
}
.water-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1.5px;
    background: linear-gradient(
        to right,
        rgba(244, 114, 182, 0.0) 0%,
        rgba(244, 114, 182, 0.5) 10%,
        rgba(244, 114, 182, 0.75) 50%,
        rgba(244, 114, 182, 0.5) 90%,
        rgba(244, 114, 182, 0.0) 100%
    );
    border-radius: 2px;
}

/* ─── Left captions ──────────────────────────────────────── */
.iceberg-caption {
    width: 260px;
    margin-left: auto;
}
.iceberg-caption-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: var(--s-1);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--text-muted);
}
.iceberg-caption--pink .iceberg-caption-eyebrow {
    color: var(--pink-2);
    border-bottom-color: rgba(244, 114, 182, 0.4);
}
.iceberg-caption-text {
    font-size: 1.04rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: var(--s-2) 0 0;
}

/* ─── Depth callouts (pink, default) ─────────────────────── */
.depth-callout {
    display: grid;
    grid-template-columns: 36px 24px 1fr;
    gap: var(--s-2);
    align-items: start;
}
.depth-callout-line {
    grid-column: 1;
    margin-top: 12px;
    height: 1px;
    border-top: 1px dashed var(--pink);
    position: relative;
}
.depth-callout-line::before {
    content: '';
    position: absolute;
    left: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink-2);
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
}
.depth-callout-icon {
    grid-column: 2;
    color: var(--pink-2);
    margin-top: 2px;
}
.depth-callout-body {
    grid-column: 3;
}
.depth-callout-body h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink-2);
    margin: 0 0 4px;
}
.depth-callout-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Surface-metrics variant — muted white/grey */
.depth-callout--surface .depth-callout-line {
    border-top-color: rgba(255, 255, 255, 0.35);
}
.depth-callout--surface .depth-callout-line::before {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}
.depth-callout--surface .depth-callout-icon {
    color: var(--text-muted);
}
.depth-callout--surface .depth-callout-body h4 {
    color: var(--text);
}

/* ─── Bottom callout ─────────────────────────────────────── */
.ranking-callout {
    max-width: 720px;
    margin: var(--s-7) auto 0;
    padding: var(--s-4) var(--s-5);
    background:
        linear-gradient(135deg, var(--pink-soft), transparent 70%),
        var(--bg-elev-1);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: var(--r);
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
}
.ranking-callout-icon {
    flex-shrink: 0;
    color: var(--pink-2);
}
.ranking-callout-body {
    flex: 1;
}
.ranking-callout-title {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 var(--s-1);
}
.ranking-callout-title em {
    font-style: normal;
    color: var(--pink-2);
}
.ranking-callout-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) and (min-width: 769px) {
    .iceberg-layout {
        grid-template-columns: auto 1fr;
        column-gap: var(--s-5);
    }
    .ic-above-left   { grid-column: 2; grid-row: 1; }
    .ic-above-center { grid-column: 1; grid-row: 1 / span 1; align-self: end; }
    .ic-above-right  { grid-column: 2; grid-row: 1; align-self: end; }
    .ic-water        { grid-column: 1 / -1; grid-row: 2; }
    .ic-below-left   { grid-column: 2; grid-row: 3; }
    .ic-below-center { grid-column: 1; grid-row: 3; align-self: start; }
    .ic-below-right  { grid-column: 2; grid-row: 3; align-self: start; }
    .ic-above-left, .ic-below-left { display: none; }
    .iceberg-svg { max-width: 220px; }
}

/* Mobile (≤768px): pin the iceberg to the left edge with its left half
   clipped off-screen — only the right ~50% is visible. Captions and
   callouts stack to its right. The above-water/below-water spatial
   metaphor survives, content density goes up, fonts come down. */
@media (max-width: 768px) {
    .iceberg-layout {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto 14px auto auto;
        column-gap: var(--s-3);
        row-gap: 0;
        margin-left: calc(var(--s-4) * -1);  /* flush iceberg to viewport edge */
    }

    .ic-above-left   {
        grid-column: 2; grid-row: 1;
        align-self: end;
        padding: 0 0 var(--s-1);
    }
    .ic-above-center {
        grid-column: 1; grid-row: 1 / span 2;
        align-self: end;
        overflow: hidden;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .ic-above-right  {
        grid-column: 2; grid-row: 2;
        align-self: start;
        padding: 0 0 var(--s-2);
    }

    .ic-water        { grid-column: 1 / -1; grid-row: 3; }

    .ic-below-left   {
        grid-column: 2; grid-row: 4;
        align-self: start;
        padding: var(--s-2) 0 0;
    }
    .ic-below-center {
        grid-column: 1; grid-row: 4 / span 2;
        align-self: start;
        overflow: hidden;
        justify-content: flex-end;
        align-items: flex-start;
    }
    .ic-below-right  {
        grid-column: 2; grid-row: 5;
        padding-top: var(--s-3);
        gap: var(--s-3);
    }

    /* SVG is forced wider than its column, pinned to the right edge.
       overflow:hidden on the parent clips the left half off-screen. */
    .iceberg-svg {
        width: 180px;
        max-width: none;
        flex-shrink: 0;
        margin: 0;
    }

    .iceberg-caption {
        width: auto;
        max-width: none;
        margin: 0;
        text-align: left;
        padding: 0;
    }
    .iceberg-caption-eyebrow {
        font-size: 0.6rem;
        white-space: normal;
        letter-spacing: 0.12em;
    }
    .iceberg-caption-text {
        font-size: 0.84rem;
        margin-top: 4px;
        line-height: 1.35;
    }

    .depth-callout {
        grid-template-columns: 22px 1fr;
        column-gap: var(--s-2);
        max-width: none;
        margin: 0;
    }
    .depth-callout-line { display: none; }
    .depth-callout-icon { grid-column: 1; }
    .depth-callout-icon svg { width: 16px; height: 16px; }
    .depth-callout-body { grid-column: 2; }
    .depth-callout-body h4 { font-size: 0.62rem; letter-spacing: 0.1em; }
    .depth-callout-body p  { font-size: 0.8rem; line-height: 1.4; }

    .water-divider { margin: var(--s-1) 0; }
}

@media (max-width: 480px) {
    .iceberg-layout {
        grid-template-columns: 78px 1fr;
        column-gap: var(--s-2);
    }
    .iceberg-svg             { width: 150px; }
    .iceberg-caption-eyebrow { font-size: 0.56rem; }
    .iceberg-caption-text    { font-size: 0.78rem; }
    .depth-callout           { grid-template-columns: 20px 1fr; }
    .depth-callout-icon svg  { width: 15px; height: 15px; }
    .depth-callout-body h4   { font-size: 0.58rem; }
    .depth-callout-body p    { font-size: 0.76rem; }
}

@media (max-width: 360px) {
    .iceberg-layout { grid-template-columns: 62px 1fr; }
    .iceberg-svg    { width: 128px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: var(--s-7);
    padding: var(--s-6) var(--s-5);
    color: var(--text-muted);
}
.footer-inner {
    width: var(--content);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-5);
    align-items: flex-start;
}
.footer-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: var(--s-2);
}
.footer-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 48ch;
}
.footer-links {
    display: flex;
    gap: var(--s-4);
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--t-fast) var(--ease);
}
.footer-links a:hover { color: var(--pink-2); }
.footer-meta {
    width: var(--content);
    margin: var(--s-5) auto 0;
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-faint);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);
    transition-delay: var(--d, 0ms);
}
[data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .primary-nav { display: none; }
    .nav-toggle  { display: inline-flex; }
    .site-nav    { padding: var(--s-3) var(--s-4); }

    .section { padding: var(--s-6) 0; }
    .section-head { margin-bottom: var(--s-4); }

    .two-col      { grid-template-columns: 1fr; gap: var(--s-3); }
    .stat-grid    { grid-template-columns: repeat(2, 1fr); }
    .qa-grid      { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }

    /* Roadmap collapses to a tight inline strip — date and status sit on one
       line above a compact body, so each row stays vertically narrow. */
    .roadmap-row  {
        grid-template-columns: auto auto 1fr;
        gap: var(--s-2) var(--s-3);
        padding: var(--s-3);
        align-items: center;
    }
    .roadmap-row > .rm-body { grid-column: 1 / -1; }
    .roadmap-row .rm-when    { padding-top: 0; font-size: 0.68rem; }
    .roadmap-row .rm-status  { font-size: 0.55rem; padding: 3px var(--s-2); }
    .roadmap-row .rm-body h3 { font-size: 0.98rem; margin-bottom: 2px; }
    .roadmap-row .rm-body p  { font-size: 0.84rem; line-height: 1.45; }
    .roadmap-row .rm-link    { font-size: 0.78rem; margin-top: var(--s-1); }

    .form-row     { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }

    .audience-card { padding: var(--s-4); }
    .dim-card      { padding: var(--s-4); }
    .stat-card     { padding: var(--s-3); }
}

@media (max-width: 540px) {
    :root {
        --s-6: 2rem;
        --s-7: 2.75rem;
        --s-8: 3.5rem;
    }
    .release-pill {
        font-size: 0.74rem;
        padding: var(--s-1) var(--s-3);
    }
    .release-tag { font-size: 0.58rem; }
    .hero-scroll { display: none; }

    .section-head { margin-bottom: var(--s-3); }
    .eyebrow { font-size: 0.66rem; margin-bottom: var(--s-2); }
}

@media (max-width: 420px) {
    .roadmap-row {
        grid-template-columns: 1fr;
        gap: var(--s-1);
        padding: var(--s-3);
    }
    .roadmap-row > .rm-body { grid-column: 1; }
    .roadmap-row .rm-when, .roadmap-row .rm-status {
        display: inline-flex;
        margin-right: var(--s-2);
    }
}

/* ==========================================================================
   Mobile launch-hardening (audit pass)
   - Touch targets ≥ 44px, mono-font legibility floor, full-width CTAs,
     grid density at tablet, header/pill wrap fixes.
   ========================================================================== */

/* Tablet (641-1080px) — better density for 2-up audience cards. */
@media (max-width: 1080px) and (min-width: 641px) {
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤768: footer link tap area, full-width primary CTA on waitlist. */
@media (max-width: 768px) {
    .footer-links a {
        display: inline-block;
        padding: var(--s-2) 0;
    }
    .btn-pilot {
        align-self: stretch;
        justify-content: center;
        padding: var(--s-3) var(--s-4);
        min-height: 48px;
    }
    .tier-cta {
        align-self: stretch;
        justify-content: center;
        padding: var(--s-2) var(--s-3);
        border: 1px solid var(--border);
        border-radius: 999px;
        min-height: 44px;
    }
    .tier-cta:hover {
        background: rgba(244, 114, 182, 0.08);
        border-color: var(--pink-glow);
    }
}

/* ≤540: small-text floor across mono lists/labels — keep readable on phones.
   Touches every place flagged in the audit (rm-when/rm-status, dim/tier
   list items, depth-callout body, pilot meta, label spans, eyebrow). */
@media (max-width: 540px) {
    .roadmap-row .rm-when    { font-size: 0.78rem; }
    .roadmap-row .rm-status  { font-size: 0.66rem; padding: 3px 8px; letter-spacing: 0.1em; }
    .roadmap-row .rm-body p  { font-size: 0.9rem; }
    .dim-list li             { font-size: 0.84rem; }
    .tier-list li            { font-size: 0.84rem; }
    .pilot-feature-meta      { font-size: 0.78rem; }
    .waitlist-form label span { font-size: 0.78rem; }
    .depth-callout-body h4   { font-size: 0.66rem; }
    .depth-callout-body p    { font-size: 0.84rem; }
    .eyebrow                 { font-size: 0.7rem; }
    .tier-card               { padding: var(--s-4); }
    .pilot-feature           { padding: var(--s-4); }
    .ranking-callout         { padding: var(--s-3); gap: var(--s-2); }
    /* Roadmap featured row gradient looks bad as a smudge on tall narrow
       cards — flip the gradient axis to top-down. */
    .roadmap-row--featured {
        background: linear-gradient(180deg, var(--pink-soft) 0%, transparent 70%), var(--bg-elev-1);
    }
}

/* ≤480: hero release-pills wrap to 2 lines so they never trigger horizontal
   scroll on narrow phones. */
@media (max-width: 480px) {
    /* On phones the descriptive text physically can't fit beside the tag
       on a single line at any readable font size. Stack consistently:
       tag pill on top, text below. All three pills look identical. */
    .release-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 14px;
        border-radius: var(--r-lg);
    }
    .release-text {
        font-size: 0.78rem;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        flex: 0 1 auto;
    }
    .hero-logo { height: clamp(120px, 26vw, 280px); }
}

/* Drop the over-aggressive ≤360 iceberg shrink — 128px loses the metaphor. */
@media (max-width: 360px) {
    .iceberg-svg { width: 150px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .site-nav, .mobile-nav, .site-grid-bg, .hero-scroll { display: none !important; }
    body { background: white; color: black; }
    .qa-card, .roadmap-row, .audience-card, .stat-card { break-inside: avoid; border: 1px solid #ccc; }
}
