/* worldlyCart · site.css
   One stylesheet. Colours, type and logo rules follow the worldlyCart brand
   guideline v1.0 (60 Ivory / 30 Forest / 10 Gold; Merienda for titles only,
   Hanken Grotesk for reading, DM Mono for labels). */
@layer tokens, base, layout, components, sections, journey, motion, utilities;

/* ---------- Fonts (self-hosted, latin subsets from the brand guideline) ---------- */
@font-face{font-family:"Hanken Grotesk";src:url("/assets/fonts/hanken-grotesk-latin-var.v1.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Merienda";src:url("/assets/fonts/merienda-700-latin.v1.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"DM Mono";src:url("/assets/fonts/dm-mono-500-latin.v1.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Metric-matched fallbacks so text doesn't shift when the brand fonts swap in. */
/* @generated fallback-fonts:start (tools/font-metrics.mjs) */
@font-face{font-family:"Hanken FB";src:local("Arial"),local("ArialMT"),local("Roboto"),local("Roboto-Regular"),local("Helvetica Neue"),local("Helvetica");font-weight:400 700;size-adjust:100.63%;ascent-override:99.37%;descent-override:30.11%;line-gap-override:0.00%}
@font-face{font-family:"Merienda FB";src:local("Georgia Bold"),local("Georgia-Bold"),local("Noto Serif Bold"),local("NotoSerif-Bold"),local("Georgia");font-weight:700;size-adjust:95.88%;ascent-override:114.93%;descent-override:35.67%;line-gap-override:0.00%}
@font-face{font-family:"DM Mono FB";src:local("Courier New"),local("CourierNewPSMT"),local("Roboto Mono"),local("Droid Sans Mono"),local("Menlo");font-weight:500;size-adjust:99.98%;ascent-override:99.22%;descent-override:31.01%;line-gap-override:0.00%}
/* @generated fallback-fonts:end */

@layer tokens {
  :root {
    /* Brand palette */
    --c-forest-deep:#123223; --c-forest:#1E5039; --c-gold-deep:#C9911F; --c-gold:#DDA63A;
    --c-ivory:#F6F1E4; --c-sand:#E8E1CF; --c-kraft:#C9A374;
    --c-body:#3F4A42; --c-muted:#5C5848; --c-muted-dark:#A9C6B5; --c-hairline:#D6CDB6;
    --c-dev-ph:#C2185B; /* placeholder outline in review builds only; not a brand colour */

    /* Semantic tokens: light surface by default, [data-surface=dark] swaps them */
    --surface:var(--c-ivory); --on-surface:var(--c-forest-deep); --on-body:var(--c-body); --on-muted:var(--c-muted);
    --link:var(--c-forest); --link-hover:var(--c-forest-deep);
    --btn-bg:var(--c-forest); --btn-fg:var(--c-ivory); --btn-bg-hover:var(--c-forest-deep); --btn-fg-hover:var(--c-ivory);
    --focus:var(--c-forest); --descriptor:var(--c-forest);
    --route:var(--c-gold-deep); --route-planned:var(--c-hairline);
    --wc-ink:var(--c-forest-deep); --wc-trolley:var(--c-gold-deep);

    /* Type */
    --font-display:"Merienda","Merienda FB",Georgia,"Noto Serif",serif;
    --font-body:"Hanken Grotesk","Hanken FB",Arial,Roboto,system-ui,sans-serif;
    --font-mono:"DM Mono","DM Mono FB","Courier New","Roboto Mono",ui-monospace,monospace;
    --fs-h1:clamp(2rem,1.659rem + 1.705vw,2.75rem); --lh-h1:calc(.8333em + .708rem);
    --fs-h2:clamp(1.625rem,1.536rem + .446vw,1.75rem); --fs-h3:clamp(1.125rem,1.036rem + .446vw,1.25rem);
    --lh-h23:calc(1em + .375rem);
    --fs-body:1.0625rem; --lh-body:1.5882;
    --fs-small:.875rem; --lh-small:1.4286;
    --fs-label:.75rem; --ls-label:.14em;
    --fs-desc:.8125rem; --ls-desc:.32em;
    --fs-tape:.875rem; --ls-tape:.22em;

    /* Space and shape */
    --gutter:clamp(16px,4vw,64px);
    --section-pad:clamp(64px,9vw,128px);
    --card-pad:clamp(24px,3vw,32px);
    --panel-pad:clamp(32px,5vw,64px);
    --container:1200px; --container-hero:1280px;
    --radius-card:18px; --radius-pill:999px; --radius-panel:40px;
    --header-h:64px; --logo-w:148px; --bar-h:72px; --tape-h:40px;
    --rail:clamp(56px,12.5vw,96px);
    --rail-inset:calc(8px + var(--rail) + 12px);
    --grid-gap:clamp(16px,2vw,32px);

    /* Parcel size and the viewport line the parcel travels on */
    --S:min(clamp(200px,34vh,300px),calc(100vw - 2 * var(--gutter)));
    --line-y:55vh;

    /* Motion */
    --ease-expo:cubic-bezier(.16,1,.3,1); --ease-out:cubic-bezier(.33,1,.68,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
    --dur-1:180ms; --dur-2:250ms; --dur-3:400ms; --dur-4:600ms; --dur-5:900ms;

    /* Layers */
    --z-bg:-1; --z-journey:0; --z-content:1; --z-header:10; --z-bar:20;
  }
  @supports (height:1svh) {
    :root { --S:min(clamp(200px,34svh,300px),calc(100vw - 2 * var(--gutter))); --line-y:55svh; }
  }
  @media (max-width:359px) { :root { --rail:44px; --rail-inset:calc(8px + 44px + 12px); } }
  @media (min-width:480px) { :root { --tape-h:48px; } }
  @media (min-width:768px) { :root { --S:clamp(300px,40vw,400px); } }
  @media (min-width:1024px) { :root { --S:clamp(380px,38vw,580px); --header-h:76px; --logo-w:176px; } }
  @media (min-width:1920px) { :root { --container:1320px; } }
  @media (max-height:500px) and (pointer:coarse) and (orientation:landscape) {
    :root { --S:clamp(180px,60vh,280px); }
    @supports (height:1svh) { :root { --S:clamp(180px,60svh,280px); } }
  }

  [data-surface=dark] {
    --surface:var(--c-forest-deep); --on-surface:var(--c-ivory); --on-body:var(--c-ivory); --on-muted:var(--c-muted-dark);
    --link:var(--c-ivory); --link-hover:var(--c-gold);
    --btn-bg:var(--c-gold); --btn-fg:var(--c-forest-deep); --btn-bg-hover:var(--c-ivory); --btn-fg-hover:var(--c-forest-deep);
    --focus:var(--c-gold); --descriptor:var(--c-gold);
    --route:var(--c-gold); --route-planned:var(--c-forest);
  }

  /* Logo colour combinations from the guideline (the w is always a true cut-out). */
  .logo--light { --wc-ink:#123223; --wc-trolley:#C9911F; }
  .logo--dark { --wc-ink:#F6F1E4; --wc-trolley:#DDA63A; }
  .logo--gold, .logo--kraft { --wc-ink:#123223; --wc-trolley:#123223; }
}

@layer base {
  *, *::before, *::after { box-sizing:border-box; }
  html {
    -webkit-text-size-adjust:100%; text-size-adjust:100%;
    overflow-x:clip;
    scroll-padding-top:calc(var(--header-h) + 8px);
    background:var(--c-ivory);
    color-scheme:only light;
  }
  @media (prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }
  body {
    margin:0; overflow-x:clip;
    background:var(--c-ivory); color:var(--c-forest-deep);
    font:400 var(--fs-body)/var(--lh-body) var(--font-body);
    font-synthesis-weight:none;
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
    -webkit-tap-highlight-color:transparent;
    text-rendering:optimizeLegibility;
  }
  img, svg, canvas { display:block; max-width:100%; }
  svg { overflow:visible; }
  h1, h2, h3, p, figure, ul, ol { margin:0; }
  ul[role=list], ol[role=list] { list-style:none; padding:0; }
  button { font:inherit; color:inherit; }
  a { color:var(--link); text-decoration-thickness:1px; text-underline-offset:.2em; }
  a:hover { color:var(--link-hover); }
  :focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
  [data-surface=dark] :focus-visible, .step__card :focus-visible { outline-color:var(--c-gold); }
  ::selection { background:var(--c-forest); color:var(--c-ivory); }
  [data-surface=dark] ::selection { background:var(--c-gold); color:var(--c-forest-deep); }
  main:focus { outline:none; }

  .h1, .h2, .footer__promise { font-family:var(--font-display); font-weight:700; color:var(--on-surface); text-wrap:balance; }
  .h1 { font-size:var(--fs-h1); line-height:var(--lh-h1); letter-spacing:-.005em; }
  .h2, .footer__promise { font-size:var(--fs-h2); line-height:var(--lh-h23); }
  .h3 { font:600 var(--fs-h3)/var(--lh-h23) var(--font-body); color:var(--on-surface); text-wrap:balance; }
  p { text-wrap:pretty; }
  .label {
    font:500 var(--fs-label)/1.3333 var(--font-mono); letter-spacing:var(--ls-label); text-transform:uppercase;
    color:var(--on-muted);
  }
  .brand { font-family:var(--font-body); font-weight:600; }
  mark.ph { background:none; color:inherit; outline:2px dashed var(--c-dev-ph); outline-offset:2px; border-radius:2px; }
  .vh { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  .sprite { position:absolute; width:0; height:0; overflow:hidden; } /* never display:none (breaks masks in Firefox) */
  .svh-probe { position:fixed; top:0; left:0; width:0; height:100vh; visibility:hidden; pointer-events:none; }
  @supports (height:1svh) { .svh-probe { height:100svh; } }
}

@layer layout {
  .hero__inner, .hiw__grid, .stores__inner, .quote__grid, .faq__grid, .footer__grid, .site-header__inner, .notfound__inner {
    width:min(100% - 2 * var(--gutter), var(--container)); margin-inline:auto;
  }
  .hero__inner { width:min(100% - 2 * var(--gutter), var(--container-hero)); }
  /* main is the stacking context for section surfaces (z -1), the route + parcel track (z 0) and content (z 1). */
  main { position:relative; isolation:isolate; }
  section { position:relative; }
  section::before { content:""; position:absolute; inset:0; z-index:var(--z-bg); background:var(--surface); }
  .quote::before { background:var(--c-ivory); }
  .section__head { display:grid; gap:12px; }
  .section__head .intro { color:var(--on-body); max-width:60ch; }
}

@layer components {
  /* Logo */
  .logo { flex:none; }
  .logo--wordmark { width:var(--logo-w); height:auto; aspect-ratio:6060/1400; }

  /* Icons */
  .i { width:20px; height:20px; flex:none; }

  /* Buttons */
  .btn {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    min-height:52px; padding:0 24px; border:2px solid transparent; border-radius:var(--radius-pill);
    background:var(--btn-bg); color:var(--btn-fg);
    font:600 var(--fs-body)/1.2 var(--font-body); text-decoration:none; text-align:center;
    transition:background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
    touch-action:manipulation;
  }
  .btn:hover { background:var(--btn-bg-hover); color:var(--btn-fg-hover); }
  .btn:active { transform:translateY(1px); }
  .btn--lg { min-height:56px; padding:0 28px; }
  .btn--sm { min-height:48px; padding:0 18px; font-size:1rem; }
  .btn--block { display:flex; width:100%; }
  @media (min-width:768px) { .btn { min-height:48px; } .btn--lg { min-height:52px; } }
  .btn.is-pulsed { position:relative; }
  .btn.is-pulsed::after {
    content:""; position:absolute; inset:-2px; border-radius:inherit; border:2px solid var(--c-gold);
    animation:ring .9s var(--ease-out) forwards; pointer-events:none;
  }
  @keyframes ring { from { opacity:1; transform:scale(1); } to { opacity:0; transform:scale(1.25); } }

  .link {
    display:inline-flex; align-items:center; min-height:48px; color:var(--link);
    font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.25em;
  }
  .link:hover { color:var(--link-hover); text-decoration-thickness:2px; }
  button.link { padding:0; border:0; background:none; font:inherit; font-weight:600; cursor:pointer; text-align:start; }
  button.btn { cursor:pointer; }

  /* "Message us" panel: one choice of app for every call to action. */
  .sheet {
    margin:auto auto 0; inset:auto 0 0; width:100%; max-width:440px; max-height:none; border:0;
    padding:20px 20px calc(24px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0;
    background:var(--c-ivory); color:var(--c-forest-deep); box-shadow:0 -8px 40px rgb(18 50 35 / .18);
  }
  .sheet::backdrop { background:rgb(18 50 35 / .45); }
  @media (min-width:640px) { .sheet { inset:0; margin:auto; border-radius:24px; padding:24px; } }
  .sheet__head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .sheet__title { font:700 var(--fs-h2)/var(--lh-h23) var(--font-display); }
  .sheet__close { display:grid; place-items:center; width:48px; height:48px; border:1.5px solid var(--c-hairline); border-radius:50%; background:transparent; color:var(--c-forest-deep); cursor:pointer; }
  .sheet__close:hover { border-color:var(--c-forest); }
  .sheet__sub { margin-top:4px; color:var(--c-body); }
  .sheet__list { display:grid; gap:10px; margin-top:20px; }
  .sheet__opt {
    display:flex; align-items:center; gap:14px; min-height:56px; padding:0 18px; border-radius:16px;
    background:var(--c-sand); color:var(--c-forest-deep); font:600 var(--fs-body)/1.2 var(--font-body); text-decoration:none;
    border:1.5px solid transparent; transition:border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
  }
  .sheet__opt:hover { color:var(--c-forest-deep); border-color:var(--c-forest); background:var(--c-ivory); }
  .sheet__opt .i { width:24px; height:24px; color:var(--c-forest); }

  /* Descriptor lockup: "Australia -> Pakistan" (arrow drawn, never U+2192) */
  .descriptor {
    display:inline-flex; align-items:center; gap:12px;
    font:600 var(--fs-desc)/1.2 var(--font-body); letter-spacing:var(--ls-desc); text-transform:uppercase;
    color:var(--descriptor);
  }
  .descriptor__arrow { width:24px; height:10px; color:var(--descriptor); }
  @media (max-width:359px) { .descriptor { font-size:.75rem; gap:10px; } }

  /* Trust labels */
  .trust { display:flex; flex-wrap:wrap; gap:8px 20px; }
  .trust li {
    display:inline-flex; align-items:center; gap:8px;
    font:500 var(--fs-label)/1.3333 var(--font-mono); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--on-muted);
  }
  .trust li::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--c-gold-deep); flex:none; }
  [data-surface=dark] .trust li::before { background:var(--c-gold); }

  /* Packing tape (Tape A: Deep Forest, Tape B: Gold). Horizontal only, never rotated or scaled. */
  .tape { position:relative; z-index:var(--z-content); height:var(--tape-h); overflow:clip; display:flex; align-items:center; }
  .tape--forest { background:var(--c-forest-deep); --tape-name:var(--c-ivory); --tape-route:var(--c-gold); --wc-trolley:var(--c-gold); }
  .tape--gold { background:var(--c-gold); --tape-name:var(--c-forest-deep); --tape-route:var(--c-forest-deep); --wc-trolley:var(--c-forest-deep); }
  .tape__track { display:flex; flex:none; white-space:nowrap; will-change:transform; }
  .tape__unit { display:inline-flex; align-items:center; gap:14px; padding-inline-end:14px; }
  .tape__sym { width:24px; height:24px; flex:none; }
  .tape__name, .tape__route { font:500 var(--fs-tape)/1 var(--font-mono); letter-spacing:var(--ls-tape); text-transform:uppercase; }
  .tape__name { color:var(--tape-name); }
  .tape__route { color:var(--tape-route); }

  /* Chat figure */
  .chat { display:grid; gap:8px; margin-top:4px; }
  .chat__bubble { max-width:92%; padding:10px 12px; font-size:var(--fs-small); line-height:var(--lh-small); color:var(--c-forest-deep); }
  .chat__bubble--out { justify-self:end; background:var(--c-sand); border-radius:14px 14px 4px 14px; }
  .chat__bubble--in { justify-self:start; background:var(--c-ivory); border-radius:14px 14px 14px 4px; }
  .chat__link { display:inline-block; color:var(--c-forest); text-decoration:underline; text-underline-offset:.2em; word-break:break-all; }

  /* Chips */
  .chips { display:flex; flex-wrap:wrap; gap:8px; }
  .chips li {
    padding:4px 12px; border:1px solid var(--c-hairline); border-radius:var(--radius-pill); background:var(--c-ivory);
    font:500 var(--fs-small)/var(--lh-small) var(--font-body); color:var(--c-body);
  }

  /* Checklist */
  .checklist { display:grid; gap:12px; }
  .checklist li { display:flex; gap:12px; align-items:flex-start; color:var(--on-body); }
  .checklist .i { color:var(--c-gold); margin-top:4px; }


  /* Menu (Popover API: works without JS) */
  .menu {
    position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; border:0;
    padding:16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background:var(--c-ivory); color:var(--c-forest-deep); overflow:auto;
    display:none; flex-direction:column; gap:32px;
  }
  .menu:popover-open { display:flex; }
  .menu::backdrop { background:rgb(18 50 35 / .4); }
  .menu__top { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; }
  .menu__close, .menu-btn {
    display:inline-flex; align-items:center; gap:8px; min-height:48px; min-width:48px; padding:0 12px;
    border:1.5px solid var(--c-hairline); border-radius:var(--radius-pill); background:transparent; color:var(--c-forest-deep);
    font:600 1rem/1 var(--font-body); cursor:pointer;
  }
  /* Close: the cross alone in a 48px circle; "Close menu" stays as its accessible name. */
  .menu__close { width:48px; padding:0; justify-content:center; }
  .menu__close span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .menu__close:hover, .menu-btn:hover { border-color:var(--c-forest); }
  .menu__links { display:grid; gap:4px; }
  .menu__links a {
    display:flex; align-items:center; min-height:52px; color:var(--c-forest-deep); text-decoration:none;
    font:600 1.5rem/1.2 var(--font-body); border-bottom:1px solid var(--c-hairline);
  }
  @supports not selector(:popover-open) {
    .menu { position:static; display:flex; height:auto; }
    .menu-btn, .menu__close { display:none; }
  }

  /* Poster (flat parcel art, first paint and every fallback) */
  .poster { width:100%; height:100%; display:block; overflow:visible;
    --pa-a:none; --pa-b:none; --pa-t:inline; --pa-print:none; --pa-dots:inline;
    --pa-s1:none; --pa-s2:none; --pa-s3:none; --pa-s4:none; }
  .dock, .pad, .hiw__stage { container-type:inline-size; }
  /* Label variant by rendered size: the front face is 63% of the poster width. */
  @container (min-width:220px) { .poster { --pa-b:inline; --pa-t:none; } }
  @container (min-width:320px) { .poster { --pa-print:inline; --pa-dots:none; } }
  @container (min-width:520px) { .poster { --pa-a:inline; --pa-b:none; } }
  .poster--stage { --pa-s1:inline; --pa-s2:inline; --pa-s3:inline; --pa-s4:inline; }
}

@layer sections {
  /* ---------- Skip link ---------- */
  .skip {
    position:fixed; top:8px; left:8px; z-index:100; padding:12px 16px; border-radius:12px;
    background:var(--c-forest); color:var(--c-ivory); font-weight:600; text-decoration:none;
    transform:translateY(-150%);
  }
  .skip:focus { transform:none; }

  /* ---------- Header ---------- */
  .site-header { position:sticky; top:0; z-index:var(--z-header); background:var(--c-ivory); }
  /* At the very top the bar is see-through, so the hero's world map runs under it; solid once scrolled. */
  .site-header:not(.is-scrolled):has(~ main .map-world) { background:transparent; }
  .site-header { transition:background-color 200ms var(--ease-in-out); }
  .site-header::after {
    content:""; position:absolute; left:0; right:0; top:100%; height:1px; background:var(--c-hairline);
    opacity:0; transition:opacity 200ms var(--ease-in-out);
  }
  .site-header.is-scrolled::after { opacity:1; }
  .site-header__inner {
    display:flex; align-items:center; gap:16px; height:var(--header-h);
    padding-inline:max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
  }
  .site-header__logo { display:inline-flex; align-items:center; margin-inline-end:auto; min-height:48px; min-width:48px; }
  .site-header__logo .logo--symbol { display:none; width:28px; height:28px; }
  .nav { display:none; }
  .nav ul { display:flex; gap:4px; }
  .nav a {
    position:relative; display:inline-flex; align-items:center; min-height:48px; padding:0 12px;
    font:500 1rem/1 var(--font-body); color:var(--c-forest-deep); text-decoration:none;
  }
  .nav a::after {
    content:""; position:absolute; left:12px; right:12px; bottom:8px; height:2px; background:var(--c-forest);
    transform:scaleX(0); transform-origin:left; transition:transform 350ms var(--ease-in-out);
  }
  .nav a:hover::after, .nav a[aria-current]::after { transform:scaleX(1); }
  .header-cta { display:none; }
  .progress { position:absolute; left:0; right:0; top:100%; height:2px; pointer-events:none; }
  .progress__bar { display:block; height:100%; background:var(--c-gold-deep); transform:scaleX(var(--progress,0)); transform-origin:left; }
  @media (min-width:640px) { .header-cta { display:inline-flex; } }
  @media (min-width:1024px) {
    .nav { display:block; }
    .menu-btn { display:none; }
    .site-header__logo { margin-inline-end:24px; }
    .nav { margin-inline-end:auto; }
  }
  /* Below ~300px the 140px wordmark + clear space no longer fits: symbol alone (guideline). */
  @media (max-width:299px) {
    .site-header__logo .logo--wordmark { display:none; }
    .site-header__logo .logo--symbol { display:block; }
  }

  /* ---------- Hero ---------- */
  .hero { padding-block:clamp(32px,6vw,72px) clamp(48px,7vw,96px); }
  .hero::after {
    content:""; position:absolute; inset:0; z-index:var(--z-bg); pointer-events:none;
    background-image:radial-gradient(circle, var(--c-hairline) 1px, transparent 1.5px); background-size:24px 24px;
    -webkit-mask-image:radial-gradient(closest-side circle at 50% 70%, #000 30%, transparent 100%);
    mask-image:radial-gradient(closest-side circle at 50% 70%, #000 30%, transparent 100%);
    opacity:.9;
  }
  /* No z-index here, so the Australia map (z -1) can sit below the travelling parcel (z 0). */
  .hero__inner { position:relative; display:grid; gap:40px; }
  .hero__copy { position:relative; z-index:var(--z-content); display:grid; gap:20px; align-content:center; }
  /* Soft Ivory veil so the world map is dimmer behind the hero text (fades out at the edges). */
  .hero__copy::before {
    content:""; position:absolute; inset:-80px -120px; z-index:-1; pointer-events:none;
    background:radial-gradient(closest-side, rgb(246 241 228 / .78) 55%, rgb(246 241 228 / 0) 100%);
  }
  /* The h1 holds the "Australia -> Pakistan" lockup above the brand line. */
  .hero__title { display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
  .hero__line { display:block; }
  @media (min-width:1024px) { .hero__title { gap:24px; } }
  .lead { font-size:var(--fs-body); line-height:var(--lh-body); color:var(--c-body); max-width:36rem; }
  .cta-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin-top:4px; }
  .hero .cta-row .btn { flex:1 1 auto; max-width:400px; }
  /* min-block-size: the stage keeps its height even when the browser paints before the dock
     (which follows ~35 KB of inline map) has arrived, so the map doesn't jump on load. */
  .hero__stage { position:relative; display:grid; justify-items:center; gap:4px; min-block-size:var(--S); }
  /* Whole-world map (180W-180E, repeated east to 360; 58S-84N): Australia sits under the parcel, a dashed route runs to Pakistan.
     Placed from the parcel size (--S) at 0.012193 S per degree; it runs up under the header and
     fades out below Australia. */
  .map-world {
    position:absolute; z-index:var(--z-bg); pointer-events:none;
    width:calc(var(--S) * 6.5843); aspect-ratio:540 / 142;
    left:calc(50% - var(--S) * 3.8286); top:calc(var(--S) * -0.6153);
    -webkit-mask-image:linear-gradient(#000 88%, transparent 98%);
    mask-image:linear-gradient(#000 88%, transparent 98%);
  }
  .map-world svg { width:100%; height:100%; max-width:none; overflow:visible; }
  .map-world__land { fill:var(--c-sand); fill-opacity:.45; stroke:var(--c-hairline); stroke-opacity:.6; stroke-width:.8; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
  .map-world__route { fill:none; stroke:var(--c-gold-deep); stroke-width:2; stroke-dasharray:3 7; stroke-linecap:round; vector-effect:non-scaling-stroke; }
  .map-pin {
    position:absolute; display:flex; align-items:center; gap:8px; transform:translate(-6px, -50%);
    font:500 var(--fs-label)/1 var(--font-mono); letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--c-forest-deep); white-space:nowrap;
  }
  .map-pin::before { content:""; width:10px; height:10px; flex:none; border-radius:50%; background:var(--c-gold-deep); box-shadow:0 0 0 5px rgb(201 145 31 / .18); }
  .map-pin--pk { flex-direction:row-reverse; transform:translate(calc(-100% + 6px), -50%); }
  .dock { position:relative; inline-size:var(--S); aspect-ratio:1; }
  @media (min-width:480px) { .hero .cta-row .btn { flex:0 0 auto; } }
  @media (min-width:768px) {
    .hero__inner { grid-template-columns:repeat(8,minmax(0,1fr)); column-gap:var(--grid-gap); align-items:center; }
    .hero__copy { grid-column:1 / 5; }
    .hero__stage { grid-column:5 / 9; }
    .hero::after {
      -webkit-mask-image:radial-gradient(closest-side circle at 75% 50%, #000 30%, transparent 100%);
      mask-image:radial-gradient(closest-side circle at 75% 50%, #000 30%, transparent 100%);
    }
  }
  @media (min-width:1024px) {
    .hero__inner { grid-template-columns:repeat(12,minmax(0,1fr)); min-block-size:clamp(600px, calc(100vh - var(--header-h)), 920px); }
    @supports (height:1svh) { .hero__inner { min-block-size:clamp(600px, calc(100svh - var(--header-h)), 920px); } }
    .hero { padding-block:24px 56px; }
    .hero__copy { grid-column:1 / 7; gap:24px; }
    .hero__stage { grid-column:7 / 13; }
  }
  @media (max-height:500px) and (pointer:coarse) and (orientation:landscape) {
    .hero__inner { grid-template-columns:1fr 1fr; align-items:center; column-gap:var(--grid-gap); }
    .hero__copy, .hero__stage { grid-column:auto; }
    /* Sideways phones: headline on two lines and the button on the first screen. */
    .hero { padding-top:16px; }
    .hero__copy { gap:12px; }
    .hero .h1 { font-size:clamp(1.5rem, 4.1vw, 1.875rem); }
    /* The map fits the right-hand column: Pakistan's pin at its left edge with the label to
       the right (so it never touches the text), Australia's label inside the column. */
    .hero__stage { --deg:min(3px, ((100vw - 2 * var(--gutter) - var(--grid-gap)) / 2 - 110px) / 76.5); }
    /* Fades in just above Pakistan, so the map never runs behind the see-through header. */
    .map-world {
      width:calc(var(--deg) * 540); left:calc(8px - var(--deg) * 249.5); top:calc(var(--S) / 2 - var(--deg) * 86.75);
      -webkit-mask-image:linear-gradient(transparent calc(var(--deg) * 54 - 56px), #000 calc(var(--deg) * 54 - 20px), #000 88%, transparent 98%);
      mask-image:linear-gradient(transparent calc(var(--deg) * 54 - 56px), #000 calc(var(--deg) * 54 - 20px), #000 88%, transparent 98%);
    }
    .map-pin--pk { flex-direction:row; transform:translate(-6px, -50%); }
  }
  /* Landscape tablets just over 1024px (iPad mini/Air): Pakistan's label to the right of its
     pin, so it clears the end of the headline's first line. */
  @media (min-width:1024px) and (max-width:1120px) and (orientation:landscape) {
    .map-pin--pk { flex-direction:row; transform:translate(-6px, -50%); }
  }
  /* Very short sideways phones (e.g. 568x320): smaller headline, no descriptor or gift line,
     so the button still fits on the first screen. */
  @media (max-height:340px) and (pointer:coarse) and (orientation:landscape) {
    .hero .h1 { font-size:1.375rem; }
    .hero .gift-line { display:none; }
    /* Visually hidden, but still read as part of the heading. */
    .hero__title .descriptor { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  }
  /* Short copy for phones, portrait or sideways (the long versions stay for wider screens). */
  .lead__short, .gift-line__short, .gift-line__arrow { display:none; }
  @media (max-width:767px), (max-height:500px) and (pointer:coarse) and (orientation:landscape) {
    .lead__long, .gift-line__long, .gift-line__label, .hero .trust { display:none; }
    .lead__short, .gift-line__short { display:inline; }
    .gift-line { flex-wrap:nowrap; }
    .gift-line .link { display:inline-flex; align-items:center; gap:8px; text-align:start; }
    .gift-line__arrow { display:block; width:20px; height:9px; flex:none; }
  }
  @media (max-width:767px) {
    /* One strong button: full width, "See how it works" as a small link under it. */
    .hero .cta-row { flex-direction:column; align-items:stretch; gap:4px; margin-top:8px; }
    .hero .cta-row .btn { max-width:none; min-height:52px; }
    .hero .cta-row .link { align-self:center; display:inline-flex; align-items:center; min-height:48px; font-size:var(--fs-small); }
  }
  /* Phones and tablets in portrait: the map is a strip at the top of the hero, scaled so both
     pins fit the width (--deg px per degree, Pakistan and Australia centred), and the text runs
     full width below it. The dock is kept for measuring only; the parcel sets off from the
     Australia pin (see journey/layout.js, which uses the same media query). */
  @media (max-width:767px) and (min-height:501px), (min-width:768px) and (max-width:1024px) and (orientation:portrait) {
    .hero { --deg:min(var(--deg-max, 3.2px), (100vw - 2 * var(--gutter) - 176px) / 76.5); }
    .hero__inner { grid-template-columns:minmax(0,1fr); min-block-size:0; align-items:start; }
    .hero__copy { grid-column:1 / -1; }
    .hero__stage { display:contents; }
    .dock { position:absolute; top:0; left:0; visibility:hidden; pointer-events:none; }
    /* Fades in below the header, so the logo never sits on the map. */
    .map-world {
      width:calc(var(--deg) * 540); left:calc(50% - var(--deg) * 287.75); top:calc(24px - var(--deg) * 54);
      -webkit-mask-image:linear-gradient(transparent calc(var(--deg) * 54 - 56px), #000 calc(var(--deg) * 54 - 20px), #000 88%, transparent 98%);
      mask-image:linear-gradient(transparent calc(var(--deg) * 54 - 56px), #000 calc(var(--deg) * 54 - 20px), #000 88%, transparent 98%);
    }
    /* The map's pins already say Australia and Pakistan: the lockup is visually hidden here,
       but stays in the heading for search engines and screen readers. */
    .hero__title .descriptor { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    .hero__copy { gap:16px; }
    .hero__copy { margin-top:calc(24px + var(--deg) * 65.5 + 40px); }
    .hero__copy::before { display:none; }
    .hero { padding-bottom:80px; }
  }

  /* Tablets in portrait: a larger map strip (phones keep 3.2px per degree so the button stays on the first screen). */
  @media (min-width:768px) and (max-width:1024px) and (orientation:portrait) { .hero { --deg-max:4.4px; } }

  /* ---------- How it works (Ivory, Forest step cards) ---------- */
  .hiw { padding-block:var(--section-pad) clamp(32px,4vw,64px); }
  /* Room for the parcel to cross from the hero dock to the left lane. */
  @media (min-width:768px) { .hiw { padding-top:max(var(--section-pad), 26vh); } }
  .hiw__grid { position:relative; z-index:var(--z-content); }
  .hiw__main { display:grid; gap:40px; padding-inline-start:calc(var(--rail-inset) - var(--gutter)); }
  .hiw__stage { display:none; }
  .steps { display:grid; gap:clamp(24px,3vw,40px); }
  .step { position:relative; }
  .step__badge {
    position:absolute; top:22px; left:calc(var(--rail) / -2 - 32px);
    display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
    background:var(--c-forest-deep); box-shadow:0 0 0 1.5px var(--c-gold) inset;
    font:700 .875rem/1 var(--font-body); font-variant-numeric:tabular-nums; color:var(--c-gold);
  }
  .step__card {
    display:grid; gap:14px; padding:var(--card-pad); border-radius:var(--radius-card);
    background:var(--c-forest); color:var(--c-ivory);
    --on-surface:var(--c-ivory); --on-muted:var(--c-muted-dark);
  }
  .step__card > p { color:var(--c-ivory); }
  .step__card .h3 { color:var(--c-ivory); }
  .step__top { display:none; align-items:baseline; gap:16px; }
  @media (min-width:768px) { .step__top { display:flex; } }
  .step__num { display:none; font:700 2.5rem/1 var(--font-body); font-variant-numeric:tabular-nums; color:var(--c-gold); }
  .step__card .h3, .step__card > p { transition:color var(--dur-3) var(--ease-out); }
  /* Inactive steps (only while JS drives them): lighter green, never reduced opacity. */
  [data-steps=on] .step:not(.is-active) .step__card .h3,
  [data-steps=on] .step:not(.is-active) .step__card > p { color:var(--c-muted-dark); }
  .hiw__cta { display:flex; }
  @media (max-width:767px) {
    .hiw__main .section__head { padding-inline-start:0; }
    /* Compact step cards on phones: tighter padding and type. */
    .steps { gap:16px; }
    .step__card { gap:10px; padding:18px 18px 20px; }
    .step__card > p { font-size:.9375rem; line-height:1.55; }
    /* The example chat shows on tablets and desktop only. */
    .chat { display:none; }
  }
  @media (min-width:768px) {
    .hiw__grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); column-gap:var(--grid-gap); }
    .hiw__stage { display:block; grid-column:1 / 4; position:sticky; align-self:start;
      top:calc(var(--line-y) - var(--S) * .45); inline-size:calc(var(--S) * .9); aspect-ratio:1; justify-self:center; margin-top:calc(var(--S) * .1); }
    .hiw__main { grid-column:4 / 9; padding-inline-start:0; }
    .step__badge { display:none; }
    .step__num { display:block; }
  }
  @media (min-width:1024px) {
    .hiw__grid { grid-template-columns:repeat(12,minmax(0,1fr)); }
    .hiw__stage { grid-column:1 / 6; }
    .hiw__main { grid-column:7 / 13; }
  }

  /* ---------- Stores + categories ----------
     The parcel travels down the left column from How it works to the quote pad,
     so section heads sit on the right and the slot window sits in the left lane. */
  /* How it works and Stores share the Ivory surface, so the seam between them is half-height. */
  .stores { padding-block:clamp(32px,4vw,64px) var(--section-pad); }
  .stores__inner { position:relative; z-index:var(--z-content); display:grid; gap:40px; padding-inline-start:calc(var(--rail-inset) - var(--gutter)); }
  .cards { display:grid; gap:var(--grid-gap); }
  .card {
    display:flex; flex-direction:column; gap:12px; padding:var(--card-pad);
    border:1px solid transparent; border-radius:var(--radius-card); background:var(--c-sand);
    transition:transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  }
  .card p { color:var(--c-body); }
  .card .label { color:var(--c-muted); }
  .card__top { display:flex; align-items:flex-start; justify-content:space-between; }
  .card__icon { width:32px; height:32px; color:var(--c-forest); --accent:var(--c-gold-deep); }
  .card .chips { margin-top:4px; }
  .card__link { margin-top:auto; align-self:flex-start; }
  @media (hover:hover) and (pointer:fine) {
    .card:hover { transform:translateY(-4px); border-color:var(--c-forest); }
  }
  .slot { display:grid; grid-template-rows:minmax(160px,55fr) auto; border-radius:var(--radius-card); }
  .slot__window { border:1.5px dashed var(--c-hairline); border-bottom:0; border-radius:var(--radius-card) var(--radius-card) 0 0; }
  .slot__body { display:grid; gap:10px; align-content:start; padding:var(--card-pad); background:var(--c-sand); border-radius:0 0 var(--radius-card) var(--radius-card); }
  .stores__note { font-size:var(--fs-small); line-height:var(--lh-small); color:var(--c-muted); max-width:60ch; }
  /* Hero gift line: sending to family in Pakistan */
  .gift-line { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; color:var(--c-body); font-size:var(--fs-small); line-height:var(--lh-small); }
  .gift-line__icon { width:22px; height:22px; flex:none; color:var(--c-forest); --accent:var(--c-gold-deep); }
  .gift-line .link { min-height:48px; font-size:var(--fs-small); }
  @media (min-width:768px) {
    .stores__inner { grid-template-columns:repeat(8,minmax(0,1fr)); column-gap:var(--grid-gap); padding-inline-start:0; }
    .stores__head { grid-column:4 / 9; }
    .cards { grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .slot { grid-column:1 / -1; grid-template-columns:1fr 1fr; grid-template-rows:auto; }
    .slot__window { border:1.5px dashed var(--c-hairline); border-right:0; border-radius:var(--radius-card) 0 0 var(--radius-card); min-height:240px; }
    .slot__body { border-radius:0 var(--radius-card) var(--radius-card) 0; align-content:center; }
    .stores__note { grid-column:4 / 9; }
  }
  @media (min-width:1024px) {
    .stores__inner { grid-template-columns:repeat(12,minmax(0,1fr)); }
    .stores__head { grid-column:6 / 13; }
    .cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .slot { grid-column:1; grid-row:2; grid-template-columns:1fr; grid-template-rows:minmax(0,55fr) auto; }
    .slot__window { border:1.5px dashed var(--c-hairline); border-bottom:0; border-radius:var(--radius-card) var(--radius-card) 0 0; min-height:0; }
    .slot__body { border-radius:0 0 var(--radius-card) var(--radius-card); align-content:start; }
    .stores__note { grid-column:6 / 13; }
  }

  /* ---------- Get a quote (Deep Forest panel). The landing pad sits in the left lane. ---------- */
  .quote { padding-block:var(--section-pad); color:var(--on-surface); }
  .quote__bg { position:absolute; inset:0; z-index:var(--z-bg); background:var(--c-forest-deep); clip-path:inset(0 var(--qx,0px) 0 var(--qx,0px) round var(--qr,0px) var(--qr,0px) 0 0); }
  .quote__grid { position:relative; z-index:var(--z-content); display:grid; gap:32px; }
  .quote__copy { display:grid; gap:16px; align-content:start; padding-inline-start:calc(var(--rail-inset) - var(--gutter)); }
  .quote__copy > p { color:var(--on-body); max-width:40rem; }
  .checklist__title { margin-top:12px; }
  .quote__action { display:grid; gap:12px; justify-items:start; }
  .quote__action .btn { width:100%; }
  /* Phones: pad in the left lane, constellation full width below it (lines fall to the cities). */
  .landing { position:relative; display:grid; grid-template-columns:1fr; align-items:center; }
  .pad { grid-column:1; grid-row:1; justify-self:start; position:relative; inline-size:calc(var(--S) * .85); aspect-ratio:1; margin-block:calc(var(--S) * -.12); margin-inline-start:calc(var(--rail-inset) - var(--gutter) - var(--S) * .2); }
  .constellation { grid-column:1; grid-row:2; width:100%; height:auto; max-width:448px; justify-self:center; }
  /* Pakistan (official boundaries): where the parcel is delivered. */
  .constellation .map--pk { fill:rgb(169 198 181 / .07); stroke:rgb(169 198 181 / .5); stroke-width:1.2; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
  .constellation circle { fill:var(--c-muted-dark); transition:fill var(--dur-3) var(--ease-out); }
  .constellation text {
    font:500 16px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; fill:var(--c-muted-dark);
    text-anchor:start; transform:translateX(10px);
  }
  .constellation .city[data-label=above] text { text-anchor:middle; transform:translateY(-14px); }
  .constellation .city[data-label=below] text { text-anchor:middle; transform:translateY(17px); }
  .constellation .city:not([data-major]) text { display:none; }
  .constellation .city.is-lit circle, [data-landed] .constellation circle { fill:var(--c-gold); }
  .lastmile { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
  .lastmile line, .lastmile path { stroke:var(--c-gold); stroke-opacity:.6; stroke-width:1; fill:none; }
  .lastmile circle { fill:none; stroke:var(--c-gold); stroke-width:1.5; }
  .landing__caption { grid-column:1 / -1; justify-self:center; color:var(--c-muted-dark); margin-top:8px; text-align:center; transition:color var(--dur-4) var(--ease-out); }
  [data-landed] .landing__caption { color:var(--c-ivory); }
  @media (min-width:480px) { .constellation .city:not([data-major]) text { display:inline; } }
  @media (min-width:640px) { .quote__action .btn { width:auto; } }
  @media (min-width:768px) {
    .quote__grid { grid-template-columns:repeat(8,minmax(0,1fr)); column-gap:var(--grid-gap); row-gap:40px; }
    .quote__copy { grid-column:4 / 9; padding-inline-start:0; }
    .landing { grid-column:1 / -1; grid-template-columns:3fr 5fr; min-height:calc(var(--S) * .8); }
    .pad { justify-self:center; inline-size:calc(var(--S) * .75); margin:0; }
    .constellation { grid-column:2; grid-row:1; }
    .constellation text { font-size:14px; }
    .quote__action { grid-column:4 / 9; }
  }
  @media (min-width:1024px) {
    .quote__grid { grid-template-columns:repeat(12,minmax(0,1fr)); align-items:center; }
    .landing { grid-column:1 / 8; grid-row:1 / 3; grid-template-columns:1fr 1fr; }
    .quote__copy { grid-column:8 / 13; grid-row:1; }
    .quote__action { grid-column:8 / 13; grid-row:2; align-self:start; }
  }

  /* ---------- FAQ ---------- */
  .faq { padding-block:var(--section-pad); }
  .faq__grid { position:relative; z-index:var(--z-content); display:grid; gap:32px; }
  .faq__aside { display:grid; gap:12px; align-content:start; justify-items:start; }
  .faq__more {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px;
    margin-top:32px; padding:clamp(20px,3vw,28px) clamp(20px,3vw,32px); background:var(--c-sand); border-radius:var(--radius-card);
  }
  .faq__ask { font:600 var(--fs-h3)/var(--lh-h23) var(--font-body); color:var(--c-forest-deep); }
  .faq__sub { margin-top:4px; color:var(--c-body); }
  /* Phones: a slim Sand row (question + a short "Ask us" button; the full label stays for screen readers). */
  @media (max-width:639px) {
    .faq__more { margin-top:24px; padding:10px 10px 10px 18px; gap:10px 12px; }
    .faq__ask { font-size:var(--fs-body); }
    .faq__sub { display:none; }
    .faq__more .btn { min-height:48px; padding-inline:18px; }
    .faq__more-long { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  }
  .faq__list { border-top:1px solid var(--c-hairline); }
  .qa { border-bottom:1px solid var(--c-hairline); }
  .qa summary {
    display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; padding:12px 0;
    cursor:pointer; list-style:none;
  }
  .qa summary::-webkit-details-marker { display:none; }
  .qa__q { font:600 var(--fs-h3)/var(--lh-h23) var(--font-body); color:var(--c-forest-deep); }
  .qa__chev { width:22px; height:22px; flex:none; color:var(--c-forest); transition:transform var(--dur-3) var(--ease-out); }
  .qa[open] .qa__chev { transform:rotate(180deg); }
  .qa__a { padding:0 0 20px; color:var(--c-body); max-width:60ch; }
  @media (min-width:768px) { .faq__grid { max-width:760px; } }
  @media (min-width:1024px) {
    .faq__grid { max-width:none; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--grid-gap); }
    .faq__aside { grid-column:1 / 5; position:sticky; top:calc(var(--header-h) + 24px); }
    .faq__list { grid-column:5 / 13; }
  }

  /* ---------- Footer ---------- */
  .site-footer { position:relative; background:var(--c-forest-deep); color:var(--c-ivory); }
  .site-footer::before { display:none; }
  .footer__grid { display:grid; gap:40px; padding-block:clamp(48px,7vw,96px) calc(clamp(32px,4vw,48px) + env(safe-area-inset-bottom)); }
  .footer__brand { display:grid; gap:20px; justify-items:start; }
  .footer__logo { width:160px; height:auto; aspect-ratio:6060/1400; margin-bottom:4px; }
  .footer__find { display:grid; gap:12px; align-content:end; }
  .footer__find .label { color:var(--c-muted-dark); }
  .channels { display:grid; grid-template-columns:repeat(2, max-content); gap:4px 32px; }
  .channels a {
    display:flex; align-items:center; gap:12px; min-height:48px; color:var(--c-ivory); text-decoration:none;
  }
  .channels a:hover { color:var(--c-gold); }
  .channels__k { font-weight:600; text-decoration:underline; text-decoration-color:var(--c-muted-dark); text-underline-offset:.25em; }
  .channels a:hover .channels__k { text-decoration-color:currentColor; }
  .footer__bottom {
    display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px 32px; padding-top:24px; border-top:1px solid var(--c-forest);
    font-size:var(--fs-small); line-height:var(--lh-small); color:var(--c-muted-dark);
  }
  .footer__privacy a { display:inline-flex; align-items:center; min-height:48px; }
  /* Two columns from tablet up: brand on the left, the channels in one row on the right, level with the promise. */
  @media (min-width:768px) {
    .footer__grid { grid-template-columns:1fr auto; column-gap:var(--grid-gap); row-gap:56px; }
    .footer__find { justify-self:end; justify-items:start; }
    .footer__bottom { grid-column:1 / -1; }
    .footer__logo { width:200px; }
  }
  @media (min-width:1024px) {
    .channels { display:flex; gap:4px 36px; }
  }

  /* ---------- Mobile CTA bar ---------- */
  .cta-bar {
    position:fixed; left:0; right:0; bottom:0; z-index:var(--z-bar);
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:var(--c-ivory); border-top:1px solid var(--c-hairline);
    visibility:hidden; transform:translateY(100%);
    transition:transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .cta-bar.is-shown { visibility:visible; transform:none; transition:transform var(--dur-2) var(--ease-out), visibility 0s; }
  @media (min-width:640px) { .cta-bar { display:none; } }

  /* ---------- Terms and privacy ---------- */
  .legal__inner { width:min(100% - 2 * var(--gutter), 760px); margin-inline:auto; padding-block:clamp(24px,3vw,40px) var(--section-pad); display:grid; gap:16px; }
  .legal__inner section { display:grid; gap:12px; margin-top:32px; }
  .legal__inner section:first-of-type { margin-top:0; }
  .legal__inner .h3 { margin-top:12px; }
  .legal__inner p { color:var(--c-body); max-width:65ch; }
  .legal__inner .cta-row { margin-top:40px; }
  .page-legal .site-header__inner .link { margin-inline-start:auto; }

  /* ---------- 404 ---------- */
  .notfound { min-height:calc(100vh - var(--header-h)); display:grid; align-items:center; }
  .notfound__inner { display:grid; gap:20px; justify-items:start; padding-block:64px; }
}

@layer journey {
  /* Mobile rail line without JS (the route SVG replaces it once drawn). */
  @media (max-width:767px) {
    .hiw::after, .stores::after, .quote::after {
      content:""; position:absolute; top:0; bottom:0; left:calc(8px + var(--rail) / 2); width:0;
      border-left:1.5px dashed var(--c-hairline); z-index:0; pointer-events:none;
    }
    .quote::after { border-left-color:var(--c-forest); }
    [data-route=on] .hiw::after, [data-route=on] .stores::after, [data-route=on] .quote::after { display:none; }
  }

  .route { position:absolute; top:0; left:0; width:100%; height:0; z-index:var(--z-journey); pointer-events:none; overflow:hidden; }
  .route path { fill:none; vector-effect:non-scaling-stroke; }
  .route .route__planned { stroke:var(--c-hairline); stroke-width:1.5; stroke-dasharray:2 6; stroke-linecap:round; }
  .route .route__planned--dark { stroke:var(--c-forest); }
  .route .route__travel { stroke:var(--c-gold-deep); stroke-width:2.5; stroke-linecap:round; }
  .route .route__travel--dark { stroke:var(--c-gold); }

  .journey { position:absolute; left:0; right:0; top:0; height:0; z-index:var(--z-journey); pointer-events:none; overflow:clip; display:none; }
  [data-journey=on] .journey { display:block; }
  .journey__craft {
    position:sticky; top:var(--craft-top,calc(var(--line-y) - var(--S) / 2));
    width:var(--S); height:var(--S); contain:strict; will-change:transform; transform-origin:50% 50%;
  }
  .journey__craft canvas { width:100%; height:100%; opacity:0; transition:opacity 480ms var(--ease-out); }
  .journey__craft canvas.is-in { opacity:1; }
  .journey__craft .poster { position:absolute; inset:0; }
  .journey__dot {
    position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%;
    background:var(--c-gold); box-shadow:0 0 0 4px rgb(221 166 58 / .25);
  }
  /* When the journey runs, the travelling craft replaces the docked posters. */
  /* With motion on, the big parcel only appears once the visitor scrolls (journey.js). */
  [data-motion=on] .dock .poster,
  [data-journey=on] .dock .poster,
  [data-journey=on] .pad .poster,
  [data-journey=on] .hiw__stage .poster { visibility:hidden; }
  .pad .poster { position:absolute; inset:0; }
}

@layer motion {
  @media (prefers-reduced-motion:no-preference) {
    [data-motion=on] .h1 .w { display:inline-block; animation:rise var(--dur-5) var(--ease-expo) both; }
    [data-motion=on] .h1 .w:nth-child(2) { animation-delay:40ms; }
    [data-motion=on] .h1 .w:nth-child(3) { animation-delay:80ms; }
    [data-motion=on] .h1 .w:nth-child(4) { animation-delay:120ms; }
    [data-motion=on] .h1 .w:nth-child(5) { animation-delay:160ms; }
    [data-motion=on] .hero .lead { animation:rise-sm var(--dur-4) var(--ease-out) 100ms both; }
    [data-motion=on] .hero .cta-row { animation:rise-sm var(--dur-4) var(--ease-out) 180ms both; }
    [data-motion=on] .hero .trust { animation:rise-sm var(--dur-4) var(--ease-out) 260ms both; }
    [data-motion=on] .hero .descriptor__arrow { stroke-dasharray:30; animation:draw 800ms var(--ease-out) 150ms both; }
    @keyframes rise { from { transform:translateY(.28em); } }
    @keyframes rise-sm { from { transform:translateY(12px); } }
    @keyframes draw { from { stroke-dashoffset:30; } }
    /* H2 split masks: pad the clip box so Merienda ascenders/descenders aren't cut */
    .split-mask { display:inline-block; padding-block:.2em; margin-block:-.2em; }
    /* Scroll reveals (motion.js): "from" states on below-the-fold elements, played by .rv-in.
       Ease for clip/rise matches GSAP power2.out. */
    .rv-clip { clip-path:inset(0 100% 0 0); }
    .rv-clip.rv-in { clip-path:inset(0 0 0 0); transition:clip-path 500ms cubic-bezier(.5,1,.89,1); }
    .rv-rise { opacity:0; translate:0 var(--rv-y,16px); }
    .rv-rise.rv-in {
      opacity:1; translate:none;
      transition:opacity var(--rv-d,600ms) var(--rv-ease,cubic-bezier(.5,1,.89,1)) var(--rv-delay,0ms),
        translate var(--rv-d,600ms) var(--rv-ease,cubic-bezier(.5,1,.89,1)) var(--rv-delay,0ms);
    }
    /* Fully below the padded mask (it clips .2em under the line box), so no ascender tips show. */
    .rv-words .split-mask > * { display:inline-block; translate:0 calc(100% + .4em); }
    .rv-words.rv-in .split-mask > * { translate:none; transition:translate var(--dur-5) var(--ease-expo) calc(var(--w,0) * 50ms); }
    :root { interpolate-size:allow-keywords; }
    .qa::details-content { block-size:0; overflow:clip; transition:block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
    .qa[open]::details-content { block-size:auto; }
  }
  @media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { animation-duration:1ms !important; animation-iteration-count:1 !important; transition-duration:1ms !important; scroll-behavior:auto !important; }
  }
  [data-motion=off] .tape__track { transform:none !important; }
}

@layer utilities {
  /* Windows High Contrast / forced colours: one-colour logo, visible pills. */
  @media (forced-colors:active) {
    .logo, .tape__sym, .poster { forced-color-adjust:none; --wc-ink:CanvasText; --wc-trolley:CanvasText; }
    .btn { border-color:ButtonText; }
    .quote__bg { background:Canvas; }
  }
  @media (prefers-contrast:more) {
    :root { --c-hairline:#123223; --c-muted:#3F4A42; }
    [data-surface=dark] { --on-muted:var(--c-ivory); }
  }
  @media print {
    .site-header, .cta-bar, .journey, .route, .tape, .menu { display:none !important; }
    section::before, .quote__bg { background:#fff !important; }
    body, [data-surface=dark] { color:#000; }
  }
}
