/* ============================================================
   Moovfast — Cinematic industrial design system
   ------------------------------------------------------------
   Matte-white canvas · industrial minimalism · editorial motion
   No framework. No build step. Custom properties + utilities.
   Brand-accented (cyan #1FB6D8 → green #00C853) sparingly.
   ============================================================ */

/*
   SF Pro Display + SF Pro Text via system stack
   On macOS/iOS: native Apple fonts render exactly as on apple.com.
   Elsewhere: Inter is the closest open-source match.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----- 1. Tokens ----- */
:root {
    /* Surface stack — warm matte-white, soft gray layering */
    --bg:               #FBFBFA;
    --surface:          #FFFFFF;
    --surface-2:        #F6F6F4;
    --surface-3:        #EFEFED;
    --surface-4:        #E5E5E2;

    /* Stroke — thin warm gray */
    --line:             #E8E8E5;
    --line-strong:      #D6D6D2;
    --line-soft:        #F0F0ED;
    --line-dark:        #18181B;

    /* Text */
    --fg:               #09090B;
    --fg-secondary:     #3F3F46;
    --fg-muted:         #71717A;
    --fg-faint:         #A1A1AA;
    --fg-disabled:      #D4D4D8;
    --fg-inverse:       #FAFAFA;

    /* Brand accents — restrained, used like ink */
    --brand-cyan:       #1FB6D8;
    --brand-green:      #00C853;
    --brand-grad:       linear-gradient(95deg, #1FB6D8 0%, #00C853 100%);
    --brand-grad-soft:  linear-gradient(95deg, rgba(31,182,216,0.12) 0%, rgba(0,200,83,0.12) 100%);
    --brand-cyan-soft:  rgba(31, 182, 216, 0.10);
    --brand-green-soft: rgba(0, 200, 83, 0.10);

    /* Accent (primary CTA = ink-black, restrained) */
    --accent:           #09090B;
    --accent-fg:        #FFFFFF;
    --accent-glow:      rgba(0, 0, 0, 0.18);

    /* Type — Apple SF Pro stack with Inter fallback */
    --font-display:     -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
    --font:             -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
    --mono:             ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

    /* Radii — industrial, modest */
    --r-sm:             4px;
    --r-md:             8px;
    --r-lg:             12px;
    --r-xl:             20px;
    --r-2xl:            28px;
    --r-full:           999px;

    /* Motion */
    --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);
    --ease-back:        cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:           180ms;
    --t-base:           320ms;
    --t-slow:           640ms;
    --t-cinematic:      1200ms;

    /* Layout */
    --w-content:        78rem;
    --w-narrow:         56rem;

    /* Shadows — premium, very soft, layered */
    --shadow-1:         0 0 0 1px var(--line) inset;
    --shadow-2:         0 1px 3px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-3:         0 8px 30px -12px rgba(0,0,0,0.07), 0 3px 8px -4px rgba(0,0,0,0.04);
    --shadow-4:         0 24px 70px -28px rgba(0,0,0,0.12), 0 10px 24px -10px rgba(0,0,0,0.05);
    --shadow-glass:     0 0 0 1px var(--line) inset, 0 20px 60px -30px rgba(0,0,0,0.12);
}

/* ----- 2. Reset (minimal, opinionated) ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: 'ss01', 'ss02', 'ss03', 'cv01', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: var(--brand-green); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

/* Lenis smooth scroll body class */
html.lenis { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto; }
html.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Ambient backdrop — subtle dust grain only */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

/* ----- 3. Typography — editorial, massive, confident ----- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(0,200,83,0.18);
    animation: pulse 2.4s var(--ease-in-out) infinite;
}
.eyebrow.eyebrow-line { /* dash removed — typography stands on its own */ }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px rgba(0,200,83,0.18); }
    50% { opacity: 0.6; transform: scale(1.4); box-shadow: 0 0 0 6px rgba(0,200,83,0); }
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: var(--fg);
}
h2, .h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.055em;
}
h3, .h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
h4, .h4 {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.lead {
    font-family: var(--font);
    font-size: clamp(1rem, 1.15vw, 1.1875rem);
    line-height: 1.5;
    color: var(--fg-secondary);
    max-width: 36ch;
    letter-spacing: -0.013em;
    font-weight: 400;
}
.text-muted    { color: var(--fg-muted); }
.text-faint    { color: var(--fg-faint); }
.text-fg       { color: var(--fg); }
.font-mono     { font-family: var(--mono); }
.font-display  { font-family: var(--font-display); }

/* Gradient text — used sparingly, for hero words only */
.text-gradient-brand {
    background: var(--brand-grad);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Large outline numerals (editorial) */
.numeral {
    font-family: var(--font-display);
    font-weight: 500;
    font-feature-settings: 'tnum';
    letter-spacing: -0.03em;
    line-height: 0.9;
}

/* ----- 4. Layout primitives ----- */
.container {
    width: 100%;
    max-width: var(--w-content);
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.section {
    padding: clamp(9rem, 18vw, 16rem) 0;
    position: relative;
}
.section-tight {
    padding: clamp(5rem, 9vw, 8rem) 0;
    position: relative;
}

.stack > * + * { margin-top: var(--gap, 1rem); }
.stack-sm  { --gap: 0.5rem; }
.stack-md  { --gap: 1rem; }
.stack-lg  { --gap: 1.5rem; }
.stack-xl  { --gap: 2.5rem; }
.stack-2xl { --gap: 4rem; }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 0.75rem);
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.grid-2-narrow {
    display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 900px) { .grid-2-narrow { grid-template-columns: 5fr 7fr; align-items: center; } }

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}
.rule-mono {
    display: inline-flex; align-items: center;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-muted);
}

/* ----- 5. Buttons — engineered, tactile ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: var(--r-full);
    font-family: var(--font);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: -0.005em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--fg);
    color: var(--accent-fg);
    box-shadow: var(--shadow-2);
}
.btn-primary:hover {
    background: #18181B;
    box-shadow: var(--shadow-3);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--fg);
    box-shadow: var(--shadow-1);
}
.btn-secondary:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-3); }

.btn-lg { height: 56px; padding: 0 1.5rem; font-size: 15px; }
.btn-sm { height: 38px; padding: 0 1rem; font-size: 13px; }

.btn .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(2px); }

/* Magnetic hover wrapper — JS sets --mx, --my */
.magnetic {
    display: inline-block;
    will-change: transform;
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
    transition: transform 350ms var(--ease-out);
}

/* Dropdown wrapper (header app-stores) */
.menu-pop {
    position: relative;
}
.menu-pop > .pop {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--t-fast) var(--ease-out);
    box-shadow: var(--shadow-3);
    z-index: 100;
}
.menu-pop:hover > .pop, .menu-pop:focus-within > .pop { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-pop .pop a {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--r-md);
    font-size: 14px; color: var(--fg-secondary);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.menu-pop .pop a:hover { background: var(--surface-2); color: var(--fg); }
.menu-pop .pop a img { width: 18px; height: 18px; object-fit: contain; }

/* ----- 6. Header / Nav — floating glass strip ----- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background var(--t-base) var(--ease-out), backdrop-filter var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
    background: transparent;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(250, 250, 250, 0.72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom-color: var(--line);
}
body { padding-top: 72px; }
@media (min-width: 900px) { body { padding-top: 80px; } }

.nav {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 2rem;
}
@media (min-width: 900px) { .nav { height: 80px; } }

.nav .brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-right: auto;
}
.nav .brand img.brand-logo {
    height: 26px;
    width: auto;
    display: block;
}
.nav .brand .wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.025em;
    color: var(--fg);
}

.nav-links {
    display: none;
    gap: 0.125rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 14px;
    color: var(--fg-secondary);
    border-radius: var(--r-md);
    transition: color var(--t-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 4px;
    transform: translateX(-50%);
    width: 0; height: 1.5px;
    background: var(--fg);
    border-radius: 999px;
    transition: width var(--t-base) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 14px; }

.nav-cta { display: none; gap: 0.5rem; align-items: center; margin-left: 0.5rem; }
@media (min-width: 900px) { .nav-cta { display: flex; } }

.nav-toggle {
    display: inline-flex;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--fg);
    box-shadow: var(--shadow-1);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--surface);
    transform: translateY(-110%);
    transition: transform var(--t-base) var(--ease-out);
    z-index: 49;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .container { padding-top: 2rem; padding-bottom: 3rem; }
.mobile-menu a {
    display: block;
    padding: 1.25rem 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.1;
    color: var(--fg);
}
.mobile-menu a.active { color: var(--brand-cyan); }
.mobile-menu .mobile-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
/* Reset the .mobile-menu a inheritance for buttons inside the CTA stack */
.mobile-menu .mobile-cta-stack a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.005em;
    border-bottom: 0;
    height: 56px;
}
.mobile-menu .mobile-cta-stack a.btn-primary { color: var(--accent-fg); }
.mobile-menu .mobile-cta-stack a.btn-secondary { color: var(--fg); }

body.menu-open { overflow: hidden; }

/* ----- 7. Hero — cinematic, fullscreen ----- */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.30;
}
.hero-canvas canvas { width: 100%; height: 100%; }

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}
@media (min-width: 1100px) {
    .hero-inner {
        grid-template-columns: 4fr 9fr;
        gap: clamp(2rem, 3.5vw, 4rem);
    }
}

.hero-text-col {
    min-width: 0;
}
.hero-headline {
    max-width: 18ch;
}
@media (max-width: 1099px) {
    .hero-headline { max-width: 22ch; }
}
.hero-headline h1 {
    font-size: clamp(2rem, 10vw, 7rem);
    letter-spacing: -0.06em;
    line-height: 0.88;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: manual;
}
@media (min-width: 1100px) and (max-width: 1299px) {
    /* Narrow desktop range — text column is only ~30% of width, so scale headline accordingly */
    .hero-headline h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); }
}
@media (min-width: 1300px) {
    .hero-headline h1 { font-size: clamp(3rem, 6vw, 7rem); }
}
.hero-headline > .line {
    display: block;
    overflow: hidden;
}
.hero-headline > .line > span {
    display: inline-block;
    will-change: transform;
}
.hero-sub {
    max-width: 32ch;
    margin-top: 2.25rem;
    color: var(--fg-secondary);
    font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
    line-height: 1.45;
    letter-spacing: -0.012em;
    font-weight: 400;
}
.hero-cta { margin-top: 3rem; }

/* Subtle text link beside the primary CTA */
.hero-link {
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.006em;
    border-bottom: 1px solid transparent;
    padding: 0.5rem 0;
    transition: color var(--t-fast) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.hero-link:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* Hero — animated route map, no card container (bleeds into page) */
.hero-map {
    position: relative;
    margin-top: 0;
    aspect-ratio: 5 / 4;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
@media (min-width: 1100px) {
    /* On desktop, let the map breach the right edge of the container */
    .hero-map { margin-right: clamp(-6rem, -4vw, -2rem); aspect-ratio: 4 / 3; }
}
@media (min-width: 1440px) {
    .hero-map { margin-right: -10rem; }
}
@media (min-width: 1680px) {
    .hero-map { margin-right: -16rem; }
}
@media (max-width: 1099px) {
    .hero-map { margin-top: clamp(2rem, 4vw, 3rem); aspect-ratio: 4/3; max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
    .hero-map { aspect-ratio: 1/1; }
}

/* Ambient glow behind the route network */
.hero-map::before {
    content: '';
    position: absolute;
    inset: -5%;
    z-index: 0;
    background:
        radial-gradient(45% 55% at 55% 50%, rgba(31, 182, 216, 0.18), transparent 60%),
        radial-gradient(35% 45% at 45% 60%, rgba(0, 200, 83, 0.16), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}
.hero-map > svg { position: relative; z-index: 1; }
.hero-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-map svg .land,
.hero-map svg .border { display: none; }
.hero-map svg .map-continent {
    fill: rgba(15, 18, 24, 0.04);
    stroke: rgba(15, 18, 24, 0.08);
    stroke-width: 1;
}

/* (Street map / pin styles removed — clean rider network only) */
.hero-map svg .route {
    stroke: url(#routeGradient);
    stroke-width: 1.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.55;
}
.hero-map svg .route--accent {
    stroke-width: 2;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(31, 182, 216, 0.4));
}
.hero-map svg .node-outer {
    fill: rgba(31, 182, 216, 0.14);
    transform-box: fill-box;
    transform-origin: center;
}
.hero-map svg .rider-node image {
    filter: drop-shadow(0 8px 18px rgba(31, 182, 216, 0.22)) drop-shadow(0 3px 6px rgba(0,0,0,0.12));
}
.hero-map svg .moving-rider image {
    filter: drop-shadow(0 6px 14px rgba(31, 182, 216, 0.35)) drop-shadow(0 3px 6px rgba(0,0,0,0.16));
}
@media (prefers-reduced-motion: reduce) {
    .hero-map svg .moving-rider { display: none; }
}

/* Floating overlays — minimal, calm, almost weightless */
.hud {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px -10px rgba(0,0,0,0.08);
    padding: 0.875rem 1.125rem;
    font-size: 13px;
    color: var(--fg-secondary);
    will-change: transform;
}
.hud .hud-label {
    font-family: var(--mono);
    font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500;
}
.hud .hud-label .pip {
    width: 5px; height: 5px; border-radius: 50%; background: var(--brand-green);
    animation: pulse 2.6s var(--ease-in-out) infinite;
}
.hud .hud-value {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600; letter-spacing: -0.03em;
    color: var(--fg);
    line-height: 1;
    font-feature-settings: 'tnum';
}

.hud--top-left     { top: 8%;     left: 6%; }
.hud--bottom-right { bottom: 10%; right: 6%; }

@media (max-width: 700px) {
    .hud { font-size: 11px; padding: 0.625rem 0.75rem; }
    .hud .hud-value { font-size: 17px; }
}

/* Hero ticker (right column) */
.ticker {
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.ticker-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.ticker-row:last-child { border-bottom: 0; }
.ticker-row .ic { width: 18px; height: 18px; color: var(--fg-muted); }
.ticker-row .meta { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.05em; }
.ticker-row.is-active .ic { color: var(--brand-green); }

/* ----- 8. Stats — Apple-grade massive gradient numerals, 2×2 editorial grid ----- */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 6rem);
    border: 0;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stats .cell {
    padding-left: 1.5rem;
    border: 0;
    position: relative;
    min-width: 0;
}
.stats .cell::before {
    /* Vertical accent stripe in brand colors */
    content: '';
    position: absolute;
    left: 0; top: 0.5rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--brand-grad);
    border-radius: 2px;
}
.stats .cell .lbl-top {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.stats .cell .lbl-top::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
    animation: pulse 2.8s ease-in-out infinite;
}
.stats .cell .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 9vw, 9rem);
    letter-spacing: -0.06em;
    line-height: 0.88;
    background: var(--brand-grad);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-feature-settings: 'tnum';
    word-break: keep-all;
    overflow-wrap: normal;
}
.stats .cell .lbl {
    margin-top: 1.5rem;
    font-size: 14px;
    line-height: 1.45;
    color: var(--fg-muted);
    max-width: 30ch;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

/* ----- 9. Section heads ----- */
.section-head {
    max-width: 720px;
    margin: 0 0 clamp(4rem, 8vw, 6rem);
}
.section-head.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 + .lead { margin-top: 1.5rem; }

/* ----- 10. Feature plate — single big composition, no card grid clichés ----- */
.feature-plate {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}
@media (min-width: 1000px) { .feature-plate { grid-template-columns: 5fr 7fr; } }
.feature-plate.is-flipped { direction: rtl; }
.feature-plate.is-flipped > * { direction: ltr; }

.feature-plate .copy h3 { margin-bottom: 1rem; }
.feature-plate .copy .meta-row {
    margin-top: 2rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.feature-plate .copy .meta-row .lbl {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.25rem;
}
.feature-plate .copy .meta-row .val {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fg);
}

/* Analytics card — Apple-grade premium tile */
.dash {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-4);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex; flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2rem);
}
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.dash-header .mono-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 500;
}
.dash-live {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
}
.dash-live .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
    animation: pulse 2.4s ease-in-out infinite;
}
.dash-metric .amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.8vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: var(--fg);
    font-feature-settings: 'tnum';
}
.dash-metric .trend {
    margin-top: 0.875rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--brand-green);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.dash-metric .trend .arrow {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--brand-green);
}
.dash-metric .trend .vs { color: var(--fg-muted); }

.dash-spark {
    height: 80px;
    position: relative;
}
.dash-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dash-spark .spark-area { fill: url(#sparkAreaGradient); opacity: 0.18; }
.dash-spark .spark-line { fill: none; stroke: url(#sparkLineGradient); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-spark .spark-end {
    fill: var(--brand-green);
    stroke: var(--surface); stroke-width: 3;
}

.dash-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: clamp(1.25rem, 2vw, 1.75rem);
}
.dash-tile {
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    border-right: 1px solid var(--line);
}
.dash-tile:first-child { padding-left: 0; }
.dash-tile:last-child { border-right: 0; padding-right: 0; }
.dash-tile .lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.dash-tile .val {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--fg);
    font-feature-settings: 'tnum';
    display: block;
    line-height: 1;
}

/* ----- 11. Use-cases — pinned scene ----- */
.scene {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.scene-track {
    position: relative;
    min-height: 75vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}
@media (min-width: 1000px) { .scene-track { grid-template-columns: 4fr 6fr; min-height: 80vh; } }
@media (max-width: 999px) { .scene-track { min-height: auto; } }

.scene-list {
    border-left: 1px solid var(--line);
}
.scene-list li {
    padding: 1rem 0 1rem 1.5rem;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
    color: var(--fg-faint);
    position: relative;
}
.scene-list li::before {
    content: '';
    position: absolute;
    left: -1px; top: 50%;
    width: 1px; height: 0;
    background: var(--fg);
    transform: translateY(-50%);
    transition: height var(--t-base) var(--ease-out);
}
.scene-list li.is-active { color: var(--fg); }
.scene-list li.is-active::before { height: 70%; }
.scene-list li .nm {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fg-muted); display: block; margin-bottom: 0.5rem;
    font-weight: 500;
}
.scene-list li .nm-num { color: inherit; margin-right: 1rem; }
.scene-list li h4 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.1; }
.scene-list li p { color: var(--fg-muted); margin-top: 0.625rem; font-size: 14.5px; max-width: 32ch; line-height: 1.5; }

/* Scene journey — interactive parcel-tracking visualization */
.scene-journey {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: clamp(1rem, 2vw, 2rem);
    justify-self: end;
    aspect-ratio: 4 / 7;
    min-height: 720px;
}
@media (max-width: 999px) {
    .scene-journey {
        aspect-ratio: auto;
        min-height: 0;
        max-width: 360px;
        height: 720px;
        margin: 0 auto;
    }
}
@media (max-width: 600px) {
    .scene-journey {
        max-width: 300px;
        height: 620px;
    }
}
@media (max-width: 400px) {
    .scene-journey {
        max-width: 260px;
        height: 560px;
    }
}
.scene-journey .journey-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Track — full neutral path */
.scene-journey .track-base {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1 6;
    opacity: 0.65;
}
/* Live progress track — JS sets stroke-dasharray + dashoffset to draw the traversed segment */
.scene-journey .track-progress {
    fill: none;
    stroke: url(#journeyGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0,200,83,0.35));
    transition: stroke-dashoffset 80ms linear;
}

/* Animated parcel — JS positions via transform: translate() */
.scene-journey .journey-parcel {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform;
}
.scene-journey .parcel-glow {
    fill: rgba(31,182,216,0.18);
    animation: parcelGlow 1.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes parcelGlow {
    0%, 100% { transform: scale(0.7); opacity: 0.7; }
    50%      { transform: scale(1.25); opacity: 0.15; }
}
.scene-journey .parcel-box {
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-box: fill-box;
    transform-origin: center;
}
.scene-journey .journey-parcel.is-arriving .parcel-box {
    transform: scale(1.18);
}
.scene-journey .journey-parcel.is-departing .parcel-box {
    transform: scale(0.92);
}

/* Stations — circles with number labels */
.scene-journey .station { cursor: pointer; }
.scene-journey .station-halo {
    fill: rgba(31,182,216,0.10);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
/* One-shot ripple on station arrival — JS toggles .is-pulsing */
.scene-journey .station-ripple {
    fill: none;
    stroke: var(--brand-cyan);
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
}
.scene-journey .station.is-pulsing .station-ripple {
    animation: stationRipple 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes stationRipple {
    0%   { transform: scale(0.7); opacity: 0; stroke-width: 2.5; }
    20%  { opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; stroke-width: 0.5; }
}
.scene-journey .station-bg {
    fill: var(--surface);
    stroke: var(--line-strong);
    stroke-width: 1.5;
    transition: fill 500ms var(--ease-out), stroke 500ms var(--ease-out);
    filter: drop-shadow(0 6px 14px rgba(15,18,24,0.06));
}
.scene-journey .station-ring {
    fill: none;
    stroke: url(#journeyGrad);
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 600ms var(--ease-out);
}
.scene-journey .station-num {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    fill: var(--fg-muted);
    letter-spacing: 0.04em;
    transition: fill 500ms var(--ease-out);
}
.scene-journey .station-lbl {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    fill: var(--fg);
    opacity: 0.4;
    transition: opacity 500ms var(--ease-out);
}
.scene-journey .station-sub {
    font-family: var(--font);
    font-size: 13px;
    fill: var(--fg-muted);
    letter-spacing: -0.005em;
    opacity: 0.4;
    transition: opacity 500ms var(--ease-out);
}

/* Active station — lights up with brand gradient */
.scene-journey .station.is-active .station-halo { opacity: 1; transform: scale(1.4); }
.scene-journey .station.is-active .station-bg { fill: var(--fg); stroke: var(--fg); }
.scene-journey .station.is-active .station-ring { opacity: 0; }
.scene-journey .station.is-active .station-num { fill: #FFFFFF; }
.scene-journey .station.is-active .station-lbl { opacity: 1; }
.scene-journey .station.is-active .station-sub { opacity: 0.8; }

/* Hover lift on desktop */
@media (hover: hover) {
    .scene-journey .station:hover .station-halo { opacity: 0.6; transform: scale(1.2); }
    .scene-journey .station:hover .station-bg { stroke: var(--brand-cyan); }
    .scene-journey .station:hover .station-num { fill: var(--fg); }
    .scene-journey .station:hover .station-lbl { opacity: 0.85; }
}

/* Tracking pill — floats top-right of the journey panel, only active pill shows */
.scene-journey .journey-pill {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 0.875rem 1.125rem;
    box-shadow: var(--shadow-3);
    min-width: 220px;
    max-width: 260px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
    pointer-events: none;
    z-index: 5;
}
.scene-journey .journey-pill.is-active { opacity: 1; transform: translateY(0); }
.scene-journey .journey-pill .pill-id {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500;
}
.scene-journey .journey-pill .pill-live,
.scene-journey .journey-pill .pill-done {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
}
.scene-journey .journey-pill .pill-live { animation: pulse 2.4s ease-in-out infinite; }
.scene-journey .journey-pill .pill-done { background: var(--brand-green); }
.scene-journey .journey-pill .pill-status {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--fg);
    line-height: 1.15;
}
.scene-journey .journey-pill .pill-meta {
    margin-top: 0.375rem;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
}
@media (max-width: 999px) {
    /* Mobile: stack the active pill ABOVE the SVG, full-width, with one card visible at a time */
    .scene-journey {
        padding-top: 92px;
    }
    .scene-journey .journey-pill {
        position: absolute;
        top: 0;
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100vw - 2rem);
        max-width: 420px;
        min-width: 0;
        padding: 0.875rem 1rem;
        display: none;
        transform: translateX(-50%);
    }
    .scene-journey .journey-pill.is-active {
        display: block;
        opacity: 1;
        transform: translateX(-50%);
    }
    .scene-journey .journey-pill .pill-status { font-size: 14.5px; }
    .scene-journey .station { cursor: pointer; }
    .scene-journey .station-lbl { font-size: 16px; }
    .scene-journey .station-sub { font-size: 12px; }
}
@media (max-width: 600px) {
    .scene-journey { padding-top: 86px; }
}

/* Metrics strip — used in editorial pairs */
.metrics-strip {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
}
.metrics-strip-cell .lbl {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.metrics-strip-cell .val {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--fg);
    line-height: 1.2;
}

/* ----- 12. Apps split (customer + rider) — editorial cards with brand imagery ----- */
.apps-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 2vw, 2rem);
}
@media (min-width: 1000px) { .apps-split { grid-template-columns: 1fr 1fr; } }

.app-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-2);
    transition: box-shadow var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: clamp(540px, 65vh, 680px);
}
.app-card:hover { box-shadow: var(--shadow-4); transform: translateY(-3px); }

.app-card .app-body {
    padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.app-card .role {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 500;
}
.app-card .role .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
    animation: pulse 2.8s ease-in-out infinite;
}
.app-card .role.role--cyan .dot { background: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(31,182,216,0.15); }

.app-card h3 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin: 0;
}
.app-card .lead {
    color: var(--fg-secondary);
    max-width: 26ch;
    margin: 0;
}

.app-card .app-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: auto;
}
.app-card .app-stores img { height: 44px; width: auto; border-radius: 8px; }

.app-card .app-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(2rem, 3.5vw, 3rem);
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.app-card .app-meta .qr-mini {
    background: #fff;
    padding: 0.25rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    display: inline-flex;
}
.app-card .app-meta .qr-mini svg { display: block; width: 36px; height: 36px; }

/* ----- 13. Testimonials — editorial column ----- */
.quote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 800px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }

.quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--t-base) var(--ease-out);
}
.quote:hover { box-shadow: var(--shadow-2); }
.quote .stars { display: flex; gap: 2px; color: var(--brand-green); }
.quote .stars svg { width: 14px; height: 14px; }
.quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.4;
    letter-spacing: -0.012em;
}
.quote .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.quote .author img {
    width: 36px; height: 36px;
    border-radius: var(--r-full);
    object-fit: cover;
    border: 1px solid var(--line);
}
.quote .author .name { font-weight: 600; font-size: 14px; }
.quote .author .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }

/* ----- 14. CTA band — engineered ----- */
.cta-band {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 3vw, 3rem);
    border-radius: var(--r-2xl);
    border: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 90% 0%, var(--brand-cyan-soft), transparent 60%),
        radial-gradient(50% 60% at 10% 100%, var(--brand-green-soft), transparent 60%),
        var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-3);
}
.cta-band h2 { max-width: 16ch; }
.cta-band .lead { margin-top: 1.5rem; max-width: 48ch; }
.cta-band .cluster { margin-top: 2.5rem; }

/* ----- 15. Footer — editorial ----- */
.site-footer {
    margin-top: clamp(6rem, 10vw, 9rem);
    border-top: 1px solid var(--line);
    padding: clamp(4rem, 6vw, 6rem) 0 2rem;
    background: var(--surface);
    position: relative;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 3rem; margin-bottom: 4rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-grid .col h5 {
    font-size: 12px; font-weight: 600; color: var(--fg);
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-grid .col a {
    display: block;
    padding: 0.375rem 0;
    color: var(--fg-secondary);
    font-size: 14.5px;
    transition: color var(--t-fast) var(--ease-out);
}
.footer-grid .col a:hover { color: var(--fg); }
.footer-grid .brand { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; }
.footer-grid .brand img.brand-logo { height: 32px; width: auto; display: block; }
.footer-grid .brand img.brand-logo.brand-logo-lg { height: 36px; }
.footer-grid .brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.025em; }
.footer-grid .col p { color: var(--fg-secondary); font-size: 14.5px; max-width: 34ch; line-height: 1.55; }
.footer-grid .socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.footer-grid .socials a {
    width: 38px; height: 38px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    color: var(--fg-secondary);
    background: var(--surface);
    transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.footer-grid .socials a:hover { color: var(--fg); border-color: var(--line-strong); transform: translateY(-1px); }
.footer-grid .socials svg { width: 15px; height: 15px; }

.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    color: var(--fg-muted);
    font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: var(--fg-muted); transition: color var(--t-fast) var(--ease-out); }
.footer-bottom .legal-links a:hover { color: var(--fg); }

/* Massive editorial brand mark at the bottom of the footer */
.editorial-mark {
    margin: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    text-align: center;
    user-select: none;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,0.15) 100%);
            mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,0.15) 100%);
}
.editorial-mark img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 700px) {
    .editorial-mark img { max-width: 100%; }
}

/* ----- 16. Page header (about / privacy / terms) ----- */
.page-header {
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
}
.page-header h1 { max-width: 18ch; }
.page-header .lead { margin-top: 1.25rem; max-width: 56ch; }

/* Prose for long-description content */
.prose {
    max-width: var(--w-narrow);
    color: var(--fg-secondary);
    font-size: 16.5px;
    line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.6vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-top: 2rem;
}
.prose p { margin: 0; }
.prose em { color: var(--fg-muted); font-style: normal; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul li, .prose ol li { margin-top: 0.5rem; }
.prose ul li::marker { color: var(--brand-green); }
.prose a { color: var(--fg); border-bottom: 1px solid var(--line-dark); transition: border-color var(--t-fast) var(--ease-out); }
.prose a:hover { border-bottom-color: var(--brand-green); }

/* ----- 17. Helpers ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Reveal — JS-driven via GSAP, but provide CSS fallback for no-JS */
[data-reveal] { opacity: 0; transform: translateY(20px); }
.no-js [data-reveal], .no-anim [data-reveal] { opacity: 1; transform: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
