/* =====================================================================
   JTEAM — the content layer.
   ---------------------------------------------------------------------
   Typographic craft carried over from the Kage build; none of its imagery.
   The pieces that actually do the work:

     · SCRIMS. Copy over a live 3D scene is unreadable without one, and a
       flat panel kills the shot. Each section carries a radial scrim behind
       its own text, inset well past its own edges and masked at the top, so
       it darkens the frame exactly where the words are and nowhere else.
     · MASKED LINE REVEALS. Text rises from behind a clip rather than
       fading. Fading reads as a slideshow; this reads as typesetting.
     · SCROLL-TRIGGERED. Reveals fire when a block arrives, not on a timer
       at load, so the page keeps giving as you move through it.

   Palette is Great Lakes, not Kyoto: slate, bone, cold water, and one warm
   accent lifted from the customs building on the far shore.
   ===================================================================== */

:root{
  --ink:#0b1116;
  --ink-2:#0f171d;
  --bone:#e8eef1;
  --bone-dim:#a9b7be;
  --muted:#6d7f88;
  --line:rgba(232,238,241,.14);
  --line-soft:rgba(232,238,241,.07);
  --accent:#e2703a;          /* the one warm note */
  --accent-dim:#a9522b;
  --water:#2c4a58;
  --pad:clamp(20px,3.6vw,68px);
  --nav-h:78px;

  /* ------------------------------------------------------------ motion
     One language, four speeds. The mistake this replaces was using the
     same slow page-reveal easing for a button hover — a control that takes
     400ms to acknowledge a pointer reads as broken, not as elegant.

       tap   control feedback: hover, focus, press
       state small state changes: active markers, dots
       move  chrome that travels: the nav bar, panels
       tell  page reveals, which may be slow because they are the story

     Everything animates transform and opacity. Nothing animates a layout
     property — no top/left/width/height/right, ever. */
  --tap:160ms;
  --state:220ms;
  --move:420ms;
  --tell:900ms;
  --ease-out:cubic-bezier(.16,1,.3,1);   /* arrivals — most things */
  --ease-io:cubic-bezier(.65,0,.35,1);   /* things that leave and return */
  --ease:var(--ease-out);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--ink); color:var(--bone);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-weight:300; font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
body.is-locked{ overflow:hidden; height:100vh; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
::selection{ background:var(--accent); color:#fff; }

/* ------------------------------------------------------------- layers */
/* --vw is the TRUE layout width, published by trackViewport(). Fixed
   layers must size from it rather than from 100%, or each one overhangs by
   the width of the scrollbar gutter and the page scrolls sideways. */
:root{ --vw:100vw; }
#gl{ position:fixed; top:0; left:0; width:var(--vw); height:100%; display:block;
  z-index:0; background:var(--ink); }
#vignette{
  position:fixed; top:0; left:0; width:var(--vw); height:100%; z-index:5; pointer-events:none;
  background:radial-gradient(132% 98% at 50% 42%, transparent 44%, rgba(4,9,13,.52) 100%);
}
/* a whisper of film grain — it hides banding in the sky gradient and stops
   large flat areas of terrain reading as plastic */
#grain{
  position:fixed; top:-1px; left:-1px; width:calc(var(--vw) + 2px); height:calc(100% + 2px);
  z-index:6; pointer-events:none;
  opacity:.045; mix-blend-mode:overlay; background-repeat:repeat; background-size:170px 170px;
}
.page{ position:relative; z-index:10; }

/* --------------------------------------------------------------- type */
.eyebrow{
  font-size:10px; font-weight:500; letter-spacing:.24em; text-transform:uppercase;
  color:var(--accent); margin:0 0 18px;
  display:flex; align-items:center; gap:10px;
}
.eyebrow .dot{ width:5px; height:5px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 10px var(--accent); flex:0 0 auto; }
.eyebrow--mute{ color:var(--muted); }

h1,h2,h3{ font-weight:300; margin:0; letter-spacing:-.018em; }
.display{
  line-height:1.04; letter-spacing:-.026em; font-weight:250;
  text-shadow:0 2px 40px rgba(4,9,13,.72);
}
.h-hero{ font-size:clamp(34px,5.4vw,74px); }
.h-sec{ font-size:clamp(28px,3.7vw,54px); }
.body-lg{ font-size:clamp(15px,1.15vw,19px); line-height:1.7; color:var(--bone-dim);
  font-weight:300; text-shadow:0 1px 22px rgba(4,9,13,.85); }
.body{ font-size:14.5px; line-height:1.68; color:#94a3aa; font-weight:300;
  text-shadow:0 1px 18px rgba(4,9,13,.85); }
.num{ font-size:clamp(24px,2.3vw,34px); font-weight:250; letter-spacing:-.03em;
  color:var(--bone); font-variant-numeric:tabular-nums; line-height:1; }
.lede{ max-width:36ch; }

/* ------------------------------------------------------------- reveal */
[data-rv]{ opacity:0; }
[data-rv="up"]{ transform:translate3d(0,22px,0); }
[data-rv="fade"]{ transform:none; }
[data-rv].rv-in{ opacity:1; transform:none;
  transition:opacity var(--tell) var(--ease-out), transform var(--tell) var(--ease-out); }

/* A line that rises from behind its own clip.
   Staggered by nth-child rather than by JS: these come in threes, and a
   long stagger on a headline makes the page feel slow to read. 70ms is
   enough to read as typesetting and short enough to finish before the eye
   reaches the last line. */
.mask-line{ display:block; overflow:hidden; }
.mask-line > span{ display:block; transform:translate3d(0,110%,0);
  transition:transform var(--tell) var(--ease-out); }
.mask-line:nth-child(2) > span{ transition-delay:70ms; }
.mask-line:nth-child(3) > span{ transition-delay:140ms; }
.rv-in .mask-line > span, .mask-line.rv-in > span{ transform:none; }

/* per-word stagger, delay written by the wiring */
.word-mask{ display:inline-block; overflow:hidden; vertical-align:top; }
.word{ display:inline-block; opacity:0; transform:translate3d(0,112%,0);
  transition:transform .84s var(--ease-out), opacity .5s var(--ease-out);
  transition-delay:var(--word-delay,0ms); }
.rv-in .word{ opacity:1; transform:none; }

/* ---------------------------------------------------------- preloader */
#pre{
  position:fixed; top:0; left:0; width:var(--vw); height:100%;
  z-index:200; background:var(--ink);
  display:grid; place-items:center;
  transition:opacity .8s var(--ease), visibility .8s;
}
#pre.done{ opacity:0; visibility:hidden; pointer-events:none; }
.pre-in{ width:min(360px,74vw); text-align:center; }
.pre-mark{ font-size:13px; letter-spacing:.5em; margin-bottom:24px; color:var(--bone); }
.pre-bar{ position:relative; height:1px; background:rgba(232,238,241,.14); overflow:hidden; }
/* scaleX, not `right`. Animating `right` relayouts the bar every frame
   during the one moment the main thread is busiest — building the scene. */
.pre-bar i{ position:absolute; inset:0; background:var(--accent);
  transform:scaleX(0); transform-origin:left center;
  transition:transform 340ms linear; will-change:transform; }
.pre-meta{ display:flex; justify-content:space-between; margin-top:12px;
  font-size:9.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.pre-meta b{ font-weight:500; color:var(--bone-dim); font-variant-numeric:tabular-nums; }

/* ---------------------------------------------------------------- nav */
.nav{
  position:fixed; top:0; left:0; width:var(--vw); height:var(--nav-h); z-index:60;
  display:flex; align-items:center; gap:clamp(16px,3vw,48px);
  padding:0 var(--pad); pointer-events:none;
  /* ease-io, not ease-out: the bar leaves and comes back, so it wants a
     curve that is symmetrical at both ends */
  transition:transform var(--move) var(--ease-io), background var(--move) var(--ease-out);
}
.nav > *{ pointer-events:auto; }
.nav.stuck{ background:linear-gradient(rgba(8,14,18,.82), rgba(8,14,18,0)); }
.nav.hide{ transform:translate3d(0,-100%,0); }
.brand b{ display:block; font-size:15px; letter-spacing:.34em; font-weight:500; }
.brand i{ display:block; font-style:normal; font-size:8.5px; letter-spacing:.26em;
  text-transform:uppercase; color:var(--muted); margin-top:4px; }
.nav-links{ display:flex; gap:clamp(14px,2.2vw,34px); margin-left:auto; }
.nav-link{ font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--bone-dim);
  position:relative; padding:4px 0; transition:color var(--tap) var(--ease-out); }
/* scaleX from the left, not an animated `right` inset */
.nav-link::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:left center;
  transition:transform var(--state) var(--ease-out); }
.nav-link:hover{ color:var(--bone); }
.nav-link:hover::after, .nav-link.on::after{ transform:scaleX(1); }
/* the active marker retracts to the right, so switching sections reads as
   one mark travelling rather than two blinking */
.nav-link:not(:hover):not(.on)::after{ transform-origin:right center; }
.nav-link.on{ color:var(--bone); }

.nav-cta{ font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  border:1px solid var(--line); padding:8px 16px; color:var(--bone-dim);
  transition:border-color var(--tap) var(--ease-out), color var(--tap) var(--ease-out),
             background var(--tap) var(--ease-out), transform var(--tap) var(--ease-out); }
.nav-cta:hover{ border-color:var(--accent); color:var(--bone); background:rgba(226,112,58,.10); }
.nav-cta:active{ transform:scale(.97); }

/* ------------------------------------------------------------ utility */
.sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* Visible the moment it is focused. A fixed nav over a full-screen canvas
   is exactly the layout keyboard users get lost in. */
.skip{ position:fixed; top:-60px; left:var(--pad); z-index:400;
  background:var(--bone); color:var(--ink); padding:10px 18px;
  font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  transition:top var(--state) var(--ease-out); }
.skip:focus{ top:12px; outline:2px solid var(--accent); outline-offset:2px; }
.ul{ border-bottom:1px solid var(--line); padding-bottom:1px;
  transition:border-color var(--tap) var(--ease-out), color var(--tap) var(--ease-out); }
.ul:hover{ color:var(--bone); border-color:var(--accent); }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* every anchor target clears the fixed bar instead of hiding beneath it */
[id]{ scroll-margin-top:calc(var(--nav-h) + 18px); }
html{ scroll-behavior:smooth; }

/* --------------------------------------------------------- the ask form */
/* The same component in the hero and in the closing section, one large and
   one not. Built around a combobox because we hold 33,316 real addresses —
   letting someone type into a blind text field when we can complete it is
   throwing the best asset on the page away. */
.ask{ display:flex; gap:10px; margin-top:clamp(22px,3.4vh,34px); max-width:560px; }
.ask--lg{ max-width:none; }
.ask-field{ position:relative; flex:1 1 auto; min-width:0; }
.ask input{
  width:100%; font:inherit; font-size:15px; font-weight:300; color:var(--bone);
  padding:14px 17px; border:1px solid var(--line);
  /* Opaque enough to read against a moving 3D scene. A 6%-white fill looked
     right on a dark mock and vanished completely over pale terrain — the
     placeholder was effectively invisible in daylight parts of the map. */
  background:rgba(9,15,20,.62);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:border-color var(--tap) var(--ease-out), background var(--tap) var(--ease-out),
             box-shadow var(--state) var(--ease-out);
}
.ask--lg input{ padding:17px 20px; font-size:16px; }
.ask input::placeholder{ color:var(--muted); transition:opacity var(--tap) var(--ease-out); }
.ask input:focus{ outline:none; border-color:var(--accent); background:rgba(9,15,20,.78);
  box-shadow:0 0 0 3px rgba(226,112,58,.13); }
.ask input:focus::placeholder{ opacity:.45; }

.suggest{
  position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:30;
  margin:0; padding:5px; list-style:none; max-height:236px; overflow-y:auto;
  background:rgba(10,16,21,.97); border:1px solid var(--line);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 22px 50px -20px rgba(0,0,0,.8);
  animation:sugIn 180ms var(--ease-out) both;
}
@keyframes sugIn{ from{ opacity:0; transform:translate3d(0,-5px,0); } }
.suggest li{
  padding:9px 12px; font-size:13.5px; color:var(--bone-dim); cursor:pointer;
  display:flex; align-items:baseline; gap:9px;
  transition:background var(--tap) linear, color var(--tap) linear;
}
.suggest li b{ font-weight:400; color:var(--bone); font-variant-numeric:tabular-nums; }
.suggest li span{ color:var(--muted); font-size:11px; margin-left:auto; }
.suggest li:hover, .suggest li[aria-selected="true"]{
  background:rgba(226,112,58,.14); color:var(--bone); }

.ask-note{ display:flex; flex-wrap:wrap; gap:8px 22px; margin:16px 0 0;
  font-size:10.5px; letter-spacing:.13em; text-transform:uppercase; color:var(--bone-dim);
  text-shadow:0 1px 14px rgba(4,9,13,.95); }
.ask-note span{ display:flex; align-items:center; gap:8px; }
.ask-note span::before{ content:''; width:4px; height:4px; border-radius:50%;
  background:var(--accent); opacity:.65; flex:0 0 auto; }

/* --------------------------------------------------------------- hero */
.hero{ position:relative; min-height:100svh; padding:0 var(--pad); display:flex; flex-direction:column; }
.hero::before{
  content:''; position:absolute; left:0; right:0; top:0; height:56%; pointer-events:none;
  background:linear-gradient(rgba(6,11,15,.78), rgba(6,11,15,.36) 48%, transparent);
}
.hero-top{ padding-top:calc(var(--nav-h) + clamp(14px,3vh,40px));
  max-width:min(620px,52vw); position:relative; z-index:2; }
.hero h1{ margin-bottom:22px; }
.hero-sub{ max-width:34ch; }
.hero-spacer{ flex:1 1 auto; min-height:clamp(120px,22vh,280px); }
.hero-foot{ padding-bottom:clamp(22px,4.4vh,46px); position:relative; z-index:2; }
.hero-cue{ display:flex; align-items:center; gap:12px; margin-bottom:18px;
  font-size:9px; letter-spacing:.3em; text-transform:uppercase; color:var(--muted); }
.hero-cue .track{ width:56px; height:1px; background:var(--line); position:relative; overflow:hidden; }
.hero-cue .track i{ position:absolute; inset:0; background:var(--bone); transform-origin:left;
  animation:cue 2.8s var(--ease-io) infinite; }
@keyframes cue{ 0%{transform:scaleX(0)} 42%{transform:scaleX(1)} 100%{transform:scaleX(1) translateX(100%)} }

/* the chapter strip — the shape of the whole story, on the first screen */
.chapters{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(14px,2.4vw,44px);
  border-top:1px solid var(--line-soft); padding-top:20px; }
.chip{ display:flex; gap:14px; align-items:flex-start; cursor:pointer; text-align:left;
  transition:transform var(--tap) var(--ease-out); }
.chip .num{ flex:0 0 auto; color:var(--muted);
  transition:color var(--tap) var(--ease-out), transform var(--state) var(--ease-out); }
.chip .tx{ min-width:0; padding-top:2px; }
.chip b{ display:block; font-size:10px; font-weight:500; letter-spacing:.2em;
  text-transform:uppercase; color:var(--bone-dim); margin-bottom:6px;
  transition:color var(--tap) var(--ease-out); text-shadow:0 1px 16px rgba(4,9,13,.9); }
.chip p{ margin:0; font-size:11px; line-height:1.5; color:#78868d; max-width:24ch;
  transition:color var(--tap) var(--ease-out); }
.chip:hover .num, .chip.on .num{ color:var(--accent); transform:translate3d(0,-2px,0); }
.chip:hover b, .chip.on b{ color:var(--bone); }
.chip:hover p{ color:var(--bone-dim); }
.chip:active{ transform:translate3d(0,1px,0); }

/* ----------------------------------------------------------- sections */
/* overflow-x:clip, not hidden: the scrim below runs 6% past each side on
   purpose, which on a 375px phone is 23px of sideways scroll that iOS will
   happily pan into despite body{overflow-x:hidden}. `clip` cuts only the
   horizontal spill and leaves the vertical fade -- which must reach past
   the section top and bottom -- untouched, where `hidden` would clip both. */
.sec{ position:relative; padding:clamp(90px,16vh,200px) var(--pad); overflow-x:clip; }
/* The scrim. Inset well past the section's own box so its edges never land
   as a visible seam, and masked away at the top so it does not wash a whole
   screen of scene above the copy it exists to serve. */
.sec::before{
  content:''; position:absolute; inset:-24% -6%; z-index:-1; pointer-events:none;
  background:radial-gradient(108% 60% at 28% 50%,
    rgba(5,10,14,.90), rgba(5,10,14,.62) 44%, rgba(5,10,14,.18) 74%, rgba(5,10,14,0));
  -webkit-mask-image:linear-gradient(transparent, #000 42%);
          mask-image:linear-gradient(transparent, #000 42%);
}
.sec--right::before{ background:radial-gradient(108% 60% at 72% 50%,
  rgba(5,10,14,.90), rgba(5,10,14,.62) 44%, rgba(5,10,14,.18) 74%, rgba(5,10,14,0)); }
.sec--wide::before{ background:radial-gradient(120% 70% at 50% 50%,
  rgba(5,10,14,.88), rgba(5,10,14,.60) 48%, rgba(5,10,14,0)); }

.sec-head{ display:flex; align-items:baseline; gap:16px; margin-bottom:clamp(26px,4.6vh,58px); }
.sec-head .k{ font-size:10px; font-weight:500; letter-spacing:.24em;
  text-transform:uppercase; color:var(--muted); white-space:nowrap; }
.sec-head .k b{ color:var(--accent); font-weight:500; }
.rule{ flex:1 1 auto; height:1px; background:var(--line-soft); }

.wrap{ max-width:600px; position:relative; z-index:2; }
.wrap--right{ margin-left:auto; text-align:right; }
.wrap--right .lede, .wrap--right .body{ margin-left:auto; }

/* a two-column stat/claim row */
.facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:clamp(20px,3vw,52px); margin-top:clamp(28px,5vh,56px);
  border-top:1px solid var(--line-soft); padding-top:26px; }
.fact b{ display:block; font-size:clamp(26px,2.6vw,38px); font-weight:250;
  letter-spacing:-.03em; color:var(--bone); font-variant-numeric:tabular-nums; }
.fact span{ display:block; margin-top:8px; font-size:10px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--muted); }

/* ------------------------------------------------------ numbered steps */
.steps{ list-style:none; counter-reset:s; margin:clamp(26px,4vh,44px) 0 0; padding:0;
  display:grid; gap:clamp(18px,2.6vw,34px); grid-template-columns:repeat(3,1fr); }
.steps li{ counter-increment:s; position:relative; padding-top:20px;
  border-top:1px solid var(--line-soft); }
.steps li::before{ content:counter(s,decimal-leading-zero);
  position:absolute; top:20px; left:0; font-size:10px; letter-spacing:.2em;
  color:var(--accent); font-variant-numeric:tabular-nums; }
.steps li b{ display:block; margin:26px 0 8px; font-size:14.5px; font-weight:400;
  color:var(--bone); letter-spacing:-.005em; }
.steps li p{ margin:0; font-size:13px; line-height:1.66; color:#8d9ba2; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; gap:22px; } }

/* --------------------------------------------------- the evaluation CTA */
.offer{ position:relative; padding:clamp(96px,18vh,220px) var(--pad) clamp(54px,9vh,110px); }
.offer::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(rgba(5,10,14,.45), rgba(5,10,14,.90) 42%, rgba(5,10,14,.97));
}
.offer-in{ position:relative; z-index:2; display:grid; gap:clamp(30px,5vw,74px);
  grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr); align-items:start; }
.offer-main{ min-width:0; }
.offer-side{ min-width:0; padding-top:8px; }
.k-head{ font-size:10px; font-weight:500; letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted); margin:0 0 18px; }
.ticks{ list-style:none; margin:0; padding:0; }
.ticks li{ position:relative; padding:0 0 14px 26px; font-size:13.5px; line-height:1.6;
  color:var(--bone-dim); }
.ticks li::before{ content:''; position:absolute; left:0; top:8px; width:11px; height:6px;
  border-left:1.5px solid var(--accent); border-bottom:1.5px solid var(--accent);
  transform:rotate(-45deg); }
.side-note{ margin:22px 0 0; padding-top:18px; border-top:1px solid var(--line-soft);
  font-size:12px; line-height:1.9; color:var(--muted); }
@media (max-width:900px){ .offer-in{ grid-template-columns:1fr; } }

.btn{
  flex:0 0 auto; padding:15px 30px; font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink); background:var(--bone); border:1px solid var(--bone);
  transition:background var(--tap) var(--ease-out), color var(--tap) var(--ease-out),
             border-color var(--tap) var(--ease-out), transform var(--tap) var(--ease-out);
}
.btn:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }
.btn:active{ transform:scale(.975); }
/* the one place a loop is allowed: it reports that work is in flight */
.btn.is-busy{ pointer-events:none; color:transparent; position:relative; }
.btn.is-busy::after{
  content:''; position:absolute; inset:0; margin:auto; width:13px; height:13px;
  border:1.5px solid rgba(11,17,22,.28); border-top-color:var(--ink); border-radius:50%;
  animation:spin 640ms linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.form-note{ margin:14px 0 0; font-size:11px; color:var(--muted);
  transition:color var(--state) var(--ease-out); }
.form-note b{ color:var(--bone-dim); font-weight:400; }
/* the answer arrives — a short lift, not a fade-in from nothing */
.form-note.is-new{ animation:noteIn 380ms var(--ease-out) both; }
@keyframes noteIn{ from{ opacity:0; transform:translate3d(0,5px,0); } }

/* ------------------------------------------------------------- footer */
.foot{ position:relative; padding:0 var(--pad) clamp(30px,5vh,56px); z-index:2; }
.foot::before{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(transparent, rgba(5,10,14,.9) 30%); }
.foot-in{ display:grid; gap:clamp(26px,4vw,64px);
  grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr);
  border-top:1px solid var(--line-soft); padding:clamp(30px,5vh,54px) 0 clamp(24px,4vh,40px); }
.foot-brand b{ display:block; font-size:14px; letter-spacing:.34em; font-weight:500;
  color:var(--bone); margin-bottom:12px; }
.foot-brand .body{ max-width:34ch; }
.foot-nav{ display:flex; flex-direction:column; gap:9px; }
.foot-nav a{ font-size:12px; color:var(--bone-dim);
  transition:color var(--tap) var(--ease-out), transform var(--tap) var(--ease-out); }
.foot-nav a:hover{ color:var(--bone); transform:translate3d(3px,0,0); }
.foot-contact{ display:flex; flex-direction:column; gap:9px; align-items:flex-start;
  font-size:12px; color:var(--bone-dim); }
.foot-legal{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  border-top:1px solid var(--line-soft); padding-top:18px; }
.foot-legal small{ font-size:10px; letter-spacing:.1em; color:var(--muted); line-height:1.8; }
@media (max-width:820px){ .foot-in{ grid-template-columns:1fr 1fr; } .foot-brand{ grid-column:1/-1; } }
@media (max-width:520px){ .foot-in{ grid-template-columns:1fr; } }

/* -------------------------------------------------------- mobile sheet */
.nav-burger{ display:none; width:26px; height:14px; position:relative; flex:0 0 auto;
  margin-left:auto; }
.nav-burger i{ position:absolute; right:0; height:1.5px; background:var(--bone);
  transition:width var(--state) var(--ease-out), transform var(--state) var(--ease-out); }
.nav-burger i:nth-child(1){ top:3px; width:26px; }
.nav-burger i:nth-child(2){ top:10px; width:17px; }
.nav-burger:hover i:nth-child(2){ width:26px; }
.nav-burger[aria-expanded="true"] i:nth-child(1){ top:6px; width:24px; transform:rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-child(2){ top:6px; width:24px; transform:rotate(-45deg); }

.sheet{
  position:fixed; top:0; left:0; width:var(--vw); height:100%;
  z-index:58; background:rgba(7,12,16,.97);
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  display:grid; align-content:center; padding:var(--nav-h) var(--pad) var(--pad);
  opacity:0; transition:opacity var(--move) var(--ease-out);
}
.sheet.open{ opacity:1; }
.sheet-in{ display:flex; flex-direction:column; gap:4px; }
.sheet-in > a{
  display:flex; align-items:baseline; gap:16px; padding:16px 0;
  border-bottom:1px solid var(--line-soft); font-size:clamp(20px,6vw,30px);
  font-weight:250; letter-spacing:-.02em; color:var(--bone);
  opacity:0; transform:translate3d(0,14px,0);
  transition:opacity var(--move) var(--ease-out), transform var(--move) var(--ease-out);
}
.sheet.open .sheet-in > a{ opacity:1; transform:none; }
/* a short stagger — four items, so it reads as arrival, not as a queue */
.sheet.open .sheet-in > a:nth-child(1){ transition-delay:40ms; }
.sheet.open .sheet-in > a:nth-child(2){ transition-delay:80ms; }
.sheet.open .sheet-in > a:nth-child(3){ transition-delay:120ms; }
.sheet.open .sheet-in > a:nth-child(4){ transition-delay:160ms; }
.sheet-in .k{ font-size:10px; letter-spacing:.2em; color:var(--accent);
  font-variant-numeric:tabular-nums; }
.sheet-foot{ display:flex; flex-direction:column; gap:10px; margin-top:26px;
  font-size:13px; color:var(--bone-dim); }
html.sheet-open, html.sheet-open body{ overflow:hidden; }

/* ------------------------------------------------------- progress rail */
/* left off --vw, not `right` — same scrollbar-gutter trap as the panels */
#rail{ position:fixed; left:calc(var(--vw, 100vw) - var(--pad) * .5 - 20px);
  top:50%; transform:translateY(-50%);
  z-index:55; display:flex; flex-direction:column; gap:12px; pointer-events:none; }
#rail button{ width:20px; height:20px; display:grid; place-items:center; pointer-events:auto; }
#rail i{ display:block; width:5px; height:5px; border-radius:50%;
  background:rgba(232,238,241,.26);
  transition:background var(--tap) var(--ease-out), transform var(--state) var(--ease-out); }
#rail button:hover i{ background:var(--bone-dim); transform:scale(1.4); }
#rail button.on i{ background:var(--accent); transform:scale(1.5); }
#rail button:active i{ transform:scale(1.15); }
@media (max-width:900px){ #rail{ display:none; } }

/* ----------------------------------------------------------- fallback */
.no-gl-note{ display:none; position:fixed; top:0; left:0; width:var(--vw); height:100%; z-index:150;
  place-items:center; text-align:center; padding:var(--pad); background:var(--ink); }
html.no-webgl .no-gl-note{ display:grid; }
html.no-webgl #gl, html.no-webgl .page, html.no-webgl .nav, html.no-webgl #rail{ display:none; }

/* --------------------------------------------------------- responsive */
/* Reduced motion: nothing travels, nothing loops. State still changes —
   colour and opacity carry it — because removing the feedback entirely
   makes controls feel dead rather than calm. */
@media (prefers-reduced-motion:reduce){
  [data-rv], .mask-line > span, .word{
    transition:opacity var(--state) linear !important; transform:none !important; }
  .mask-line > span{ transition-delay:0ms !important; }
  .hero-cue .track i{ animation:none; transform:scaleX(1); opacity:.4; }
  .btn:active, .nav-cta:active, .chip:active, #rail button:active i,
  .chip:hover .num, #rail button:hover i, #rail button.on i{ transform:none; }
  .btn.is-busy::after{ animation:none; border-top-color:transparent; opacity:.5; }
  .form-note.is-new{ animation:none; }
  html{ scroll-behavior:auto; }
}
@media (max-width:1080px){
  .hero-top{ max-width:none; }
  .chapters{ grid-template-columns:repeat(2,1fr); gap:22px 26px; }
}
@media (max-width:860px){
  /* the links do not vanish — they move into the sheet */
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .nav-burger{ display:block; }
}
@media (max-width:720px){
  .wrap, .wrap--right, .wrap--mid{ max-width:none; text-align:left; margin-left:0; }
  .wrap--right .lede, .wrap--right .body{ margin-left:0; }
  .sec-head{ flex-direction:row-reverse; justify-content:flex-end; }
  .sec--right .sec-head{ flex-direction:row; }
  .chapters{ grid-template-columns:1fr; gap:16px; }
  .chip p{ max-width:none; }
  .ask{ flex-direction:column; }
  .ask .btn{ width:100%; }
  .facts{ gap:20px 26px; }
}

/* =====================================================================
   Map mode / free navigation
   ---------------------------------------------------------------------
   With the scroll camera off, nothing is driven by scrolling — so the
   document is locked. A page that still scrolls in that state only eats
   the wheel, which is the control free-navigation needs most.

   While navigating, the content layer stops taking pointer events. The
   canvas lives under the whole page at z-index 0 and is almost never the
   pointer target; without this you are dragging links, not the world.
   ===================================================================== */
html.map-mode, html.map-mode body{ overflow:hidden; height:100%; }
html.cam-free .page,
html.cam-free .nav,
html.cam-free #rail{ pointer-events:none; }
html.cam-free{ cursor:grab; }
html.cam-free #adm, html.cam-free #dbg, html.cam-free #addr{ pointer-events:auto; cursor:auto; }
/* the map tools must stay clickable — the gear is how you turn navigation
   back off, and search and day/night are the two things you most want to
   reach WHILE flying */
html.cam-free .nav-tools{ pointer-events:auto; cursor:pointer; }

/* Drag-to-place. Same shape as cam-free: while an object is armed the
   content layer must not swallow the pointer, but the panels that turn
   the mode OFF have to stay clickable — a mode you cannot leave is a trap. */
html.place-mode .page,
html.place-mode .nav,
html.place-mode #rail{ pointer-events:none; }
html.place-mode{ cursor:grab; }
html.place-drag{ cursor:grabbing; }
html.place-mode #adm, html.place-mode #dbg, html.place-mode #addr{
  pointer-events:auto; cursor:auto; }
html.place-mode .nav-tools{ pointer-events:auto; cursor:pointer; }
