/* ================================================================
   NORTHSTAR ROBOTICS — site.css
   Design system: "field instrument"
   Paper ground · ink text · recording-red signal · mono metadata
   Spacing on an 8px scale. No gradients, no glows, no glass.
   ================================================================ */

:root {
    /* Color */
    --paper: #fafaf9;
    --paper-2: #f1f1ee;
    --ink: #14171c;
    --ink-2: #10151f;          /* dark bands, matches logo navy */
    --ink-60: #575d66;
    --ink-40: #8b909a;
    --line: #e2e1dd;
    --line-dark: #2a3140;      /* hairlines on dark bands */
    --signal: #c43d2b;         /* recording red — capture states only */
    --paper-on-dark: #f2f2ef;
    --dim-on-dark: #99a0ad;

    /* Type */
    --font-display: 'Archivo', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Spacing — 8px scale */
    --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
    --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;

    --radius: 4px;
    --measure: 34rem;          /* body copy line length */
    --nav-h: 72px;
    --t: 0.15s ease;
}

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

html { -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

::selection { background: var(--ink); color: var(--paper); }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s-3); }

/* ---------------------------------------------------------------
   Typography roles
   --------------------------------------------------------------- */

.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    text-wrap: balance;
}

.headline {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    max-width: 22ch;
    text-wrap: balance;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-60);
}

.lede {
    font-size: 1.125rem;
    color: var(--ink-60);
    max-width: var(--measure);
}

.body-copy { color: var(--ink-60); max-width: var(--measure); }

/* ---------------------------------------------------------------
   Navigation
   --------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--s-3);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.nav-logo img { height: 26px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-60);
    transition: color var(--t);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: 40px; height: 40px;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    height: 48px;
    padding: 0 var(--s-3);
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--t), border-color var(--t), color var(--t);
}

.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover:not(:disabled) { background: #2b313b; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-40); }
.btn-outline:hover { border-color: var(--ink); }

/* On dark bands */
.on-dark .btn-primary { background: var(--paper); color: var(--ink); }
.on-dark .btn-primary:hover:not(:disabled) { background: #d9d9d4; }
.on-dark .btn-outline { color: var(--paper-on-dark); border-color: var(--line-dark); }
.on-dark .btn-outline:hover { border-color: var(--dim-on-dark); }

/* ---------------------------------------------------------------
   Section shell — mono index + hairline header
   --------------------------------------------------------------- */

.section { padding: var(--s-12) 0; border-top: 1px solid var(--line); }

.section-head {
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--signal);
}

.section-head .mono-label { flex-shrink: 0; }

.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    align-self: center;
}

.section .headline { margin-bottom: var(--s-3); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
    padding: calc(var(--nav-h) + var(--s-16)) 0 var(--s-12);
}

.hero .mono-label { display: block; margin-bottom: var(--s-3); }
.hero .display { margin-bottom: var(--s-4); max-width: 16ch; }
.hero .lede { margin-bottom: var(--s-6); }

.hero-ctas { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Grids & cards
   --------------------------------------------------------------- */

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-4);
    background: var(--paper);
}

.card .mono-label { display: block; margin-bottom: var(--s-2); }

.card h3, .card h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    margin-bottom: var(--s-1);
}

.card p { font-size: 0.9375rem; color: var(--ink-60); }

/* Numbered process steps */
.step-card .step-no {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--signal);
    display: block;
    margin-bottom: var(--s-2);
}

/* ---------------------------------------------------------------
   Spec list (environments) — coverage as a spec sheet
   --------------------------------------------------------------- */

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.spec-grid span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 14px var(--s-2);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-grid span.more { color: var(--ink-40); }

/* ---------------------------------------------------------------
   Recording panels — the signature element
   --------------------------------------------------------------- */

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

.rec-panel {
    background: var(--ink-2);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--paper-on-dark);
    display: flex;
    flex-direction: column;
}

.rec-meta {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    padding: 12px var(--s-2);
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim-on-dark);
}

.rec-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--signal);
    flex-shrink: 0;
}

.rec-meta .rec-count { margin-left: auto; }

.rec-frame {
    aspect-ratio: 16 / 10;
    background: #0b0f16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-frame video { width: 100%; height: 100%; object-fit: cover; }

.rec-frame .rec-placeholder {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: #3d4653;
    text-transform: uppercase;
}

.rec-title {
    padding: var(--s-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------
   Dark band (contact / CTA)
   --------------------------------------------------------------- */

.band-dark {
    background: var(--ink-2);
    color: var(--paper-on-dark);
    padding: var(--s-12) 0;
}

.band-dark .mono-label { color: var(--dim-on-dark); }
.band-dark .headline { color: var(--paper-on-dark); }
.band-dark .lede, .band-dark .body-copy { color: var(--dim-on-dark); }
.band-dark .section-head::after { background: var(--line-dark); }

/* ---------------------------------------------------------------
   Media figures
   --------------------------------------------------------------- */

.figure {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-2);
}

.figure img { width: 100%; height: auto; }

.figure figcaption {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-60);
    padding: 12px var(--s-2);
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------
   Stat row
   --------------------------------------------------------------- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: var(--s-3) var(--s-3) var(--s-3) 0;
}

.stat + .stat { padding-left: var(--s-3); border-left: 1px solid var(--line); }

.stat .stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat .stat-label { font-size: 0.875rem; color: var(--ink-60); margin-top: 2px; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */

.field { margin-bottom: var(--s-3); }

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--s-1);
}

.field .optional { color: var(--ink-40); font-weight: 400; }

.input, .select, .textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 var(--s-2);
    height: 48px;
    outline: none;
    transition: border-color var(--t);
}

.textarea { height: auto; min-height: 120px; padding: 12px var(--s-2); resize: vertical; }

.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input.invalid { border-color: var(--signal); }

.input::placeholder, .textarea::placeholder { color: var(--ink-40); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }

.input-error {
    font-size: 0.8125rem;
    color: var(--signal);
    margin-top: var(--s-1);
}

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

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px var(--s-2);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color var(--t);
    background: #fff;
}

.check:hover { border-color: var(--ink-40); }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.check:has(input:checked) { border-color: var(--ink); }

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--ink-60);
    margin-bottom: var(--s-2);
    cursor: pointer;
}

.check-line input { accent-color: var(--ink); margin-top: 3px; }

.form-note { font-size: 0.8125rem; color: var(--ink-40); margin-top: var(--s-2); }

/* ---------------------------------------------------------------
   Funnel (earn)
   --------------------------------------------------------------- */

.funnel { max-width: 560px; margin: 0 auto; }

.funnel-progress {
    height: 2px;
    background: var(--line);
    margin-bottom: var(--s-8);
    opacity: 0;
    transition: opacity var(--t);
}

.funnel-progress.visible { opacity: 1; }
.funnel-progress .fill { height: 100%; width: 0; background: var(--signal); transition: width 0.3s ease; }

.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.3s ease; }

@keyframes stepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-step .mono-label { display: block; margin-bottom: var(--s-2); }

.step-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--s-1);
}

.step-sub { color: var(--ink-60); margin-bottom: var(--s-4); max-width: var(--measure); }

.step-actions { display: flex; gap: var(--s-2); margin-top: var(--s-4); }

.step-footnote { font-size: 0.8125rem; color: var(--ink-40); margin-top: var(--s-3); }

/* ---------------------------------------------------------------
   FAQ / details
   --------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    padding: var(--s-3) var(--s-6) var(--s-3) 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--ink-40);
}

.faq details[open] summary::after { content: '−'; }

.faq .faq-body { padding: 0 0 var(--s-3); color: var(--ink-60); max-width: var(--measure); }

/* ---------------------------------------------------------------
   Legal / prose pages
   --------------------------------------------------------------- */

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s-8);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + var(--s-3));
    border-left: 1px solid var(--line);
}

.legal-toc a {
    display: block;
    padding: 6px var(--s-2);
    font-size: 0.875rem;
    color: var(--ink-60);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.legal-toc a:hover { color: var(--ink); border-left-color: var(--ink-40); }

.legal-toc .mono-label { display: block; padding: 0 var(--s-2) var(--s-1); }

.prose h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    margin: var(--s-6) 0 var(--s-2);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h2 .idx { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--signal); margin-right: var(--s-1); }

.prose h3 { font-size: 1.0625rem; font-weight: 600; margin: var(--s-3) 0 var(--s-1); }

.prose p, .prose li { color: var(--ink-60); max-width: var(--measure); }
.prose p { margin-bottom: var(--s-2); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-2); }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--ink); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.footer {
    background: var(--ink-2);
    color: var(--dim-on-dark);
    padding: var(--s-8) 0 var(--s-4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--s-8);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--paper-on-dark);
    text-decoration: none;
}

.footer-brand img { height: 22px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-col .mono-label { display: block; color: var(--dim-on-dark); margin-bottom: var(--s-2); }

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    color: var(--dim-on-dark);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--t);
}

.footer-col a:hover { color: var(--paper-on-dark); }

.footer-legal {
    padding-top: var(--s-3);
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ---------------------------------------------------------------
   Toast
   --------------------------------------------------------------- */

.toast {
    position: fixed;
    bottom: var(--s-4);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 12px var(--s-3);
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
}

.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 900px) {
    .grid-3, .rec-grid { grid-template-columns: 1fr 1fr; }
    .spec-grid { grid-template-columns: repeat(3, 1fr); }
    .check-grid { grid-template-columns: 1fr 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; border-left: none; border-top: 1px solid var(--line); padding-top: var(--s-2); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

@media (max-width: 640px) {
    .section { padding: var(--s-8) 0; }
    .hero { padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8); }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: var(--s-1) 0;
    }

    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px var(--s-3); }
    .nav-links .btn { margin: var(--s-1) var(--s-3); }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .grid-3, .grid-2, .rec-grid { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
    .step-actions { flex-direction: column-reverse; }
    .step-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ================================================================
   ENTERPRISE REGISTER — announcement bar, nav dropdowns,
   split sections, stat band, quote band, mega footer
   ================================================================ */

/* Announcement bar */
.banner {
    background: var(--ink-2);
    color: var(--dim-on-dark);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px var(--s-2);
}

.banner a { color: var(--paper-on-dark); text-decoration: none; }
.banner a:hover { text-decoration: underline; }

body.has-banner .nav { top: 38px; }
body.has-banner { scroll-padding-top: calc(var(--nav-h) + 54px); }
body.has-banner .hero { padding-top: calc(var(--nav-h) + 38px + var(--s-12)); }

/* Nav dropdowns */
.nav-drop { position: relative; }

.nav-drop > button {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-60);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t);
}

.nav-drop > button::after {
    content: '';
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-drop:hover > button,
.nav-drop:focus-within > button { color: var(--ink); }

.drop-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 300px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(16, 21, 31, 0.08);
    padding: var(--s-1);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}

.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.drop-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    text-decoration: none;
}

.drop-panel a:hover { background: var(--paper-2); }

.drop-panel .drop-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
}

.drop-panel .drop-sub {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-60);
}

/* Arrow links */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.link-arrow::after { content: '→'; transition: transform var(--t); }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--paper-on-dark); }

/* Split sections (alternating two-column) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: center;
}

.split .split-media { min-width: 0; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-media { order: 1; }

.split h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.375rem, 2.6vw, 1.875rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: var(--s-2);
}

.split .mono-label { display: block; margin-bottom: var(--s-2); }
.split p { color: var(--ink-60); max-width: var(--measure); margin-bottom: var(--s-3); }
.split + .split { margin-top: var(--s-12); }

/* Stat band */
.stat-band {
    background: var(--ink-2);
    color: var(--paper-on-dark);
    padding: var(--s-12) 0;
}

.stat-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
}

.stat-band .stat {
    padding: var(--s-4) var(--s-3) 0 0;
}

.stat-band .stat + .stat { padding-left: var(--s-3); border-left: 1px solid var(--line-dark); }

.stat-band .stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-band .stat-label { color: var(--dim-on-dark); font-size: 0.9375rem; margin-top: var(--s-1); }

/* Quote band */
.quote-band { padding: var(--s-12) 0; border-top: 1px solid var(--line); }

.quote-band blockquote {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    max-width: 26ch;
    text-wrap: balance;
}

.quote-band cite {
    display: block;
    font-style: normal;
    margin-top: var(--s-3);
}

/* Mega footer */
.footer-mega .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: var(--s-4); }
    .split.reverse .split-copy { order: 1; }
    .split.reverse .split-media { order: 2; }
    .stat-band-grid { grid-template-columns: 1fr 1fr; }
    .stat-band .stat:nth-child(3) { border-left: none; padding-left: 0; }
    .footer-mega .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .stat-band-grid { grid-template-columns: 1fr; }
    .stat-band .stat + .stat { border-left: none; padding-left: 0; }
    .drop-panel { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding-left: var(--s-3); }
    .nav-drop { width: 100%; }
    .nav-drop > button { padding: 14px var(--s-3); }
    .footer-mega .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   V3 — screenshot-driven layout experiment
   Full-bleed hero · overlay nav · statement sections ·
   collage section · case carousel · scroll reveals
   ================================================================ */

/* Pill buttons site-wide */
.btn { border-radius: 999px; padding: 0 28px; }
.btn-lg { padding: 0 36px; }

/* Overlay navigation (homepage) */
body.home .nav {
    background: transparent;
    border-bottom-color: transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.home .nav .nav-logo,
body.home .nav .nav-links > a:not(.btn),
body.home .nav .nav-drop > button { color: var(--paper-on-dark); }

body.home .nav .nav-links > a:not(.btn):hover,
body.home .nav .nav-drop:hover > button { color: #fff; }

body.home .nav .nav-logo img { filter: brightness(0) invert(1); }

body.home .nav .btn-primary { background: var(--paper); color: var(--ink); }

body.home .nav.scrolled {
    background: var(--ink-2);
    border-bottom-color: var(--line-dark);
}

body.home .banner { position: relative; z-index: 101; }

/* Full-viewport hero */
.hero-full {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #07090d;
    color: #fff;
    overflow: hidden;
}

.hero-full .hero-backdrop {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    animation: backdropPan 60s linear infinite;
}

@keyframes backdropPan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-72px, -72px, 0); }
}

.hero-full .hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(7, 9, 13, 0.85) 100%);
}

.hero-full .hud {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.45);
}

.hero-full .hud-tl { top: calc(var(--nav-h) + 56px); left: var(--s-4); }
.hero-full .hud-tr { top: calc(var(--nav-h) + 56px); right: var(--s-4); }

.hero-full .hero-content { position: relative; max-width: 1000px; padding: 0 var(--s-3); }

.hero-full .display {
    font-size: clamp(2.75rem, 7vw, 5rem);
    max-width: none;
    margin-bottom: var(--s-4);
}

.hero-full .lede { margin: 0 auto var(--s-6); color: rgba(226, 232, 240, 0.75); }

.scroll-cue {
    position: absolute;
    bottom: var(--s-4);
    right: var(--s-4);
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 0.9375rem;
    color: rgba(226, 232, 240, 0.7);
    text-decoration: none;
}

.scroll-cue .cue-circle {
    width: 44px; height: 44px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-cue .cue-circle span { animation: cueNudge 2s ease-in-out infinite; }

@keyframes cueNudge {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
}

/* Dark statement sections (centered media + centered copy) */
.statement {
    background: #07090d;
    color: var(--paper-on-dark);
    padding: var(--s-16) 0;
    text-align: center;
}

.statement + .statement { padding-top: 0; }

.statement .statement-media {
    max-width: 760px;
    margin: 0 auto var(--s-8);
}

.statement .mono-label { display: block; color: var(--dim-on-dark); margin-bottom: var(--s-2); }

.statement .headline {
    margin: 0 auto var(--s-2);
    max-width: 24ch;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.statement .lede { margin: 0 auto var(--s-4); }

.statement .rec-panel { text-align: left; }

/* Collage section — scattered tiles around a centered headline */
.collage {
    position: relative;
    background: var(--paper);
    padding: var(--s-16) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.collage .collage-content { position: relative; z-index: 2; max-width: 820px; padding: 0 var(--s-3); }

.collage .display { margin: 0 auto var(--s-4); }
.collage .display .tinted { color: var(--signal); }
.collage .lede { margin: 0 auto var(--s-4); }

.collage .tile {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-60);
    animation: tileDrift 14s ease-in-out infinite;
}

.collage .tile:nth-child(odd) { animation-delay: -7s; }

@keyframes tileDrift {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(6px); }
}

.tile-1 { width: 150px; height: 190px; top: 10%; left: 6%; }
.tile-2 { width: 120px; height: 120px; top: 8%; left: 32%; }
.tile-3 { width: 130px; height: 160px; top: 12%; right: 24%; }
.tile-4 { width: 100px; height: 100px; top: 22%; right: 7%; }
.tile-5 { width: 160px; height: 130px; bottom: 16%; left: 10%; }
.tile-6 { width: 120px; height: 150px; bottom: 10%; left: 36%; }
.tile-7 { width: 150px; height: 120px; bottom: 14%; right: 28%; }
.tile-8 { width: 110px; height: 140px; bottom: 22%; right: 8%; }

/* Case carousel */
.case-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}

.case-head .headline { margin-bottom: 0; }

.case-nav { display: flex; gap: var(--s-1); }

.case-nav button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--t), background-color var(--t);
}

.case-nav button:hover { border-color: var(--ink-40); background: var(--paper-2); }

.case-row {
    display: flex;
    gap: var(--s-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--s-1);
}

.case-row::-webkit-scrollbar { display: none; }

.case-card {
    flex: 0 0 min(420px, 85vw);
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.case-card .case-mark {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-60);
    margin-bottom: var(--s-6);
}

.case-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin-bottom: auto;
}

.case-card .case-org {
    color: var(--ink-40);
    font-size: 0.9375rem;
    margin-top: var(--s-6);
}

/* Benchmark stat tiles (light) */
.bench-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    margin-top: var(--s-6);
}

.bench-tile {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-2);
    padding: var(--s-4);
}

.bench-tile .stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

.bench-tile .stat-label { color: var(--ink-60); margin-top: var(--s-1); }

/* Scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .bench-grid { grid-template-columns: 1fr 1fr; }
    .tile-2, .tile-4, .tile-6, .tile-8 { display: none; }
    .case-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .bench-grid { grid-template-columns: 1fr; }
    .collage .tile { display: none; }
    .collage { min-height: 0; padding: var(--s-12) 0; }
    .hero-full .hud { display: none; }
    .scroll-cue { left: var(--s-3); right: auto; }
    body.home .nav .nav-links { background: var(--ink-2); border-bottom-color: var(--line-dark); }
    body.home .nav .drop-panel { background: transparent; }
    body.home .nav .drop-panel .drop-title { color: var(--paper-on-dark); }
    body.home .nav .drop-panel a:hover { background: rgba(255,255,255,0.06); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-full .hero-backdrop, .collage .tile, .scroll-cue .cue-circle span { animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   V4 — POLISH PASS
   Brand color system · registration-mark motif · depth ·
   staggered motion · component refinement
   ================================================================ */

:root {
    --brand: #16233f;              /* Northstar navy, from the logo */
    --brand-hover: #1f3157;
    --tint: #eef0f3;               /* cool alternating section ground */
    --shadow-1: 0 1px 2px rgba(16, 21, 31, 0.05), 0 8px 24px rgba(16, 21, 31, 0.08);
    --shadow-2: 0 2px 4px rgba(16, 21, 31, 0.06), 0 16px 40px rgba(16, 21, 31, 0.12);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Page entrance */
body { animation: pageIn 0.4s ease; }
@keyframes pageIn { from { opacity: 0; } }

/* ---------------------------------------------------------------
   Typography rhythm
   --------------------------------------------------------------- */
.lede { line-height: 1.7; }
.prose p + p, .body-copy + .body-copy { margin-top: var(--s-2); }
.headline { letter-spacing: -0.022em; }
.display { letter-spacing: -0.028em; }
.step-sub { line-height: 1.7; }

/* ---------------------------------------------------------------
   Buttons — brand navy on light, lift microinteraction
   --------------------------------------------------------------- */
.btn {
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
                color 0.2s var(--ease-out), transform 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out);
}

.btn-primary { background: var(--brand); }
.btn-primary:hover:not(:disabled) {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.on-dark .btn-primary, body.home .nav .btn-primary { background: var(--paper); color: var(--ink); }
.on-dark .btn-primary:hover:not(:disabled),
body.home .nav .btn-primary:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-outline:hover { transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

/* ---------------------------------------------------------------
   Navigation — animated underline indicator, refined dropdown
   --------------------------------------------------------------- */
.nav-links > a:not(.btn) { position: relative; }

.nav-links > a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

.nav-links > a:not(.btn):hover::after,
.nav-links > a[aria-current="page"]::after { transform: scaleX(1); }

.drop-panel {
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
    transform-origin: top center;
    box-shadow: var(--shadow-2);
}

.nav-drop > button::after { transition: transform 0.2s var(--ease-out); }
.nav-drop:hover > button::after,
.nav-drop:focus-within > button::after { transform: rotate(225deg) translateY(-2px); }

/* ---------------------------------------------------------------
   Registration-mark motif — machine-perception corner brackets
   on every media frame
   --------------------------------------------------------------- */
.rec-frame { position: relative; }

.rec-frame::after {
    content: '';
    position: absolute;
    inset: 10px;
    pointer-events: none;
    color: rgba(226, 232, 240, 0.35);
    background:
        linear-gradient(currentColor, currentColor) left top / 14px 1.5px,
        linear-gradient(currentColor, currentColor) left top / 1.5px 14px,
        linear-gradient(currentColor, currentColor) right top / 14px 1.5px,
        linear-gradient(currentColor, currentColor) right top / 1.5px 14px,
        linear-gradient(currentColor, currentColor) left bottom / 14px 1.5px,
        linear-gradient(currentColor, currentColor) left bottom / 1.5px 14px,
        linear-gradient(currentColor, currentColor) right bottom / 14px 1.5px,
        linear-gradient(currentColor, currentColor) right bottom / 1.5px 14px;
    background-repeat: no-repeat;
}

/* Faint perception grid inside frames */
.rec-frame {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: #0b0f16;
}

/* Calibration ticks along section-head rules */
.section-head::after {
    height: 6px;
    background:
        repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) bottom / 100% 5px no-repeat,
        linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat;
}

.band-dark .section-head::after,
.on-dark .section-head::after {
    background:
        repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 16px) bottom / 100% 5px no-repeat,
        linear-gradient(var(--line-dark), var(--line-dark)) bottom / 100% 1px no-repeat;
}

/* ---------------------------------------------------------------
   Depth — alternating grounds, card elevation, framed media
   --------------------------------------------------------------- */
#recordings.section { background: var(--tint); }
#recordings .case-card { border-color: #e6e6e2; }

.card, .case-card, .bench-tile, .check {
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out);
}

.card:hover, .case-card:hover, .bench-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-1);
    border-color: #d4d4cf;
}

.bench-tile { background: #fff; }

.statement .rec-panel,
.statement .figure {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line-dark);
}

/* Metrics feel important — brand-colored values with tabular figures */
.stat-value, .bench-tile .stat-value { color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-band .stat-value { color: var(--paper-on-dark); }

/* ---------------------------------------------------------------
   Motion — media reveals, staggered entrances, parallax hooks
   (gated on .js so content is never hidden without JavaScript)
   --------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Frame reveal: media wipes open on entrance */
.js .reveal .rec-panel, .js .reveal .figure {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease-out) 0.15s;
}
.js .reveal.in .rec-panel, .js .reveal.in .figure { clip-path: inset(0 0 0% 0); }

/* Staggered children in grids and rows */
.js .reveal .grid-3 > *, .js .reveal .grid-2 > *,
.js .reveal .bench-grid > *, .js .reveal .case-row > *,
.js .reveal .stat-row > *, .js .reveal .stat-band-grid > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.js .reveal.in .grid-3 > *, .js .reveal.in .grid-2 > *,
.js .reveal.in .bench-grid > *, .js .reveal.in .case-row > *,
.js .reveal.in .stat-row > *, .js .reveal.in .stat-band-grid > * {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(1) { transition-delay: 0.05s; }
.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(2) { transition-delay: 0.13s; }
.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(3) { transition-delay: 0.21s; }
.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(4) { transition-delay: 0.29s; }
.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(5) { transition-delay: 0.37s; }
.js .reveal.in :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > :nth-child(6) { transition-delay: 0.45s; }

/* Parallax layer (transform applied by JS, rAF-throttled) */
.parallax { will-change: transform; }

/* Timecode readout */
.tc { font-variant-numeric: tabular-nums; color: var(--signal); }

/* FAQ affordance */
.faq summary { transition: color 0.2s var(--ease-out); }
.faq summary:hover { color: var(--brand); }
.faq summary::after { transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* Footer link microinteraction */
.footer-col a { transition: color var(--t), transform 0.2s var(--ease-out); }
.footer-col a:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    .js .reveal, .js .reveal .rec-panel, .js .reveal .figure,
    .js .reveal :is(.grid-3, .grid-2, .bench-grid, .case-row, .stat-row, .stat-band-grid) > * {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
    .btn:hover, .card:hover, .case-card:hover, .bench-tile:hover { transform: none; }
}
