/* ============================================================
   videnda.app — "One trip, told by scrolling"
   Scene scaffolding + app-true UI components.
   Contract: APP_FIDELITY_SPEC.md — in-frame UI uses the app's real
   pixel values inside a 390px root scaled to the device mock.
   ============================================================ */

/* ---------- scene scaffolding ---------- */
.story{position:relative;z-index:1}
.scene{position:relative}
/* track heights = scroll runway per scene (storyboard) */
/* runways sized so every beat is physically scrubbable: a wheel notch is
   ~100px, so a 10vh runway would fire a whole scene in one tick */
.scene[data-scene="search"]{height:150vh}
.scene[data-scene="draw"]{height:165vh}
.scene[data-scene="plan"]{height:165vh}
.scene[data-scene="bucket"]{height:150vh}
.scene[data-scene="stamp"]{height:220vh}
.scene[data-scene="journal"]{height:150vh}
.scene[data-scene="me"]{height:140vh}
.scene[data-scene="eat"]{height:150vh}

.scene-stage{
  position:sticky;top:0;height:100vh;height:100svh;
  display:flex;align-items:center;
  overflow:hidden;
  overflow:clip; /* clip does not create a scroll container, so sticky survives */
  /* no `contain` here: containment on a sticky element is WebKit quirk
     territory (broken clipping/scale on some iOS builds) and the measured
     scroll cost without it was already ~0 */
}
.scene-grid{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:clamp(24px,5vw,84px);align-items:center;width:100%;
}
.scene-copy{max-width:44ch}
.scene-copy .sc-eyebrow{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--brass-text);margin-bottom:16px;
}
.scene-copy h2{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(1.9rem,3.6vw,2.8rem);line-height:1.12;
  letter-spacing:-.01em;color:var(--navy);
}
.scene-copy p{margin-top:16px;color:var(--muted);font-size:1.02rem;max-width:40ch}
.scene-copy .sc-caption{
  margin-top:22px;font-family:var(--mono);font-size:.66rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
/* small screens: captions are garnish and steal stage height from the phone */
@media (max-width:700px){.scene-copy .sc-caption{display:none}}

/* copy lines print with the app's canonical arrival: 350ms easeOutCubic, 16px rise */
.cue{opacity:0;transform:translateY(16px);
  transition:opacity .35s cubic-bezier(.215,.61,.355,1), transform .35s cubic-bezier(.215,.61,.355,1)}
.cue.on{opacity:1;transform:none}
/* utility register variant: 200ms fade only */
.cue-fade{opacity:0;transition:opacity .2s cubic-bezier(0,0,.58,1)}
.cue-fade.on{opacity:1}

/* Device fitting uses ZOOM, not transform:scale().
   scale() shrinks pixels but NOT the layout box, so each device kept
   reserving its full 666px height (and ~322px width) — the grid then
   overflowed the sticky stage by 90-160px and overflow:hidden chopped the
   copy off the top and the phone off the bottom on phone-sized screens.
   zoom shrinks the box itself, so centring and fitting are honest.
   Values are PLAIN NUMBERS — never var()/calc()/viewport units here
   (WebKit drops such values entirely). story.js overrides inline. */
.scene-device{zoom:.62}
@media (min-width:481px){.scene-device{zoom:.72}}
@media (min-width:1021px){.scene-device{zoom:1}}

/* the Me scene inverts the page to passport navy */
.scene[data-scene="me"]{background:var(--navy-2)}
.scene[data-scene="me"] .scene-copy h2{color:var(--paper)}
.scene[data-scene="me"] .scene-copy p{color:#9FAABB}
.scene[data-scene="me"] .scene-copy .sc-eyebrow{color:var(--brass-bright)}
.scene[data-scene="me"] .scene-copy .sc-caption{color:#7E8BA0}

/* progress tick (mono page counter, bottom of stage) */
.sc-tick{
  position:absolute;left:0;right:0;bottom:calc(18px + env(safe-area-inset-bottom,0px));text-align:center;
  font-family:var(--mono);font-size:.6rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--muted);opacity:.7;pointer-events:none;
}
.scene[data-scene="me"] .sc-tick{color:#7E8BA0}

/* ---------- the in-scene device ----------
   Reuses the hero's .phone/.screen recipe; scenes add .sc-phone.
   The bezel MUST stay 322px at every width: 322 − 26px padding = 296px,
   exactly the screen width. The hero's @media(max-width:700px) rule
   shrinks .phone to 290px (content box 264px), which made the 296px
   screen spill ~14px past the right bezel on every phone-sized screen —
   the "page exceeds the right boundary" bug. The device zoom above is
   what makes it fit; the bezel geometry never changes. */
.sc-phone .phone{width:322px}
.sc-phone .screen{height:640px;width:296px;display:block}
/* passport scene: keep the bezel visible on navy (prior review finding) */
.scene[data-scene="me"] .phone{box-shadow:
  0 2.8px 2.2px rgba(0,0,0,.08), 0 12.5px 10px rgba(0,0,0,.12),
  0 41.8px 33.4px rgba(0,0,0,.18), 0 0 0 1px rgba(245,240,230,.14)}

/* app-true root: real app pixels, one scale to fit the mock.
   296/390 = 0.759 ; 640/0.759 ≈ 843 */
.aui{
  position:relative;width:390px;height:843px;
  transform:scale(.759);transform-origin:top left;
  display:flex;flex-direction:column;
  background:var(--paper);color:var(--ink);
  font-family:var(--sans);
}
/* paper grain inside the screen (app's global ground) */
.aui::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-color:var(--ink);opacity:.05;
  -webkit-mask-image:var(--grain-tile);mask-image:var(--grain-tile);
  -webkit-mask-repeat:repeat;mask-repeat:repeat;
  -webkit-mask-size:256px 256px;mask-size:256px 256px;
}
.aui>*{position:relative;z-index:1}
.aui-status{
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 28px 6px;font-family:var(--mono);font-size:12px;color:var(--ink);
}
.aui-status .sig{display:flex;gap:7px;align-items:center}
.aui-body{flex:1;min-height:0;padding:8px 24px 0;display:flex;flex-direction:column;overflow:hidden;position:relative}
/* app screens never crush content to fit — they scroll; guard against flex shrink */
.aui-body>*{flex-shrink:0}

/* passport-forced surfaces set the dark tokens locally */
[data-aui-theme="passport"]{
  --paper:#0E1B2C;--card:#16283E;--recess:#0A1420;
  --ink:#F5F0E6;--ink2:#93A3B8;
  --hairline:rgba(245,240,230,.141);
  --accent:#C9A959;--accent-text:#E4C97E;
  --green:#3F7351;--green-text:#5F936F;--on-green:#F5F0E6;
  --graphite:#8F8A7C;
}

/* ---------- app type voices (true px, spec §1) ---------- */
.a-display-s{font-family:var(--serif);font-weight:600;font-size:34px;line-height:1.12;color:var(--ink)}
.a-headline-m{font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.18;color:var(--ink)}
.a-title-l{font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.25;color:var(--ink)}
.a-title-m{font-family:var(--sans);font-weight:600;font-size:16px;line-height:1.4;color:var(--ink)}
.a-body-l{font-family:var(--sans);font-weight:400;font-size:16px;line-height:1.5;color:var(--ink)}
.a-body-m{font-family:var(--sans);font-weight:400;font-size:14.5px;line-height:1.5;color:var(--ink)}
.a-body-s{font-family:var(--sans);font-weight:400;font-size:12.5px;line-height:1.45;color:var(--ink2)}
.a-label-l{font-family:var(--sans);font-weight:600;font-size:15px;line-height:1.2}
.a-label-m{font-family:var(--mono);font-weight:500;font-size:12px;line-height:1.3;letter-spacing:.8px;color:var(--ink2);text-transform:uppercase}
.a-label-s{font-family:var(--mono);font-weight:400;font-size:10.5px;line-height:1.3;letter-spacing:.8px;color:var(--ink2);text-transform:uppercase}
.a-note{font-family:var(--type),"Courier Prime",monospace;font-weight:400;color:var(--ink)}

/* ---------- shared app chrome ---------- */
.a-card{background:var(--card);border:1px solid var(--hairline);border-radius:16px;box-shadow:none}
.a-hairline{height:1px;background:var(--hairline)}
.a-section-head{display:flex;align-items:center;gap:16px;padding:8px 0}
.a-section-head .rule{flex:1;height:1px;background:var(--hairline)}
.a-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--ink);color:var(--paper);border:0;border-radius:999px;
  padding:16px 24px;font-family:var(--sans);font-weight:600;font-size:15px;line-height:1.2;
}
.a-btn-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:transparent;color:var(--ink);border:1.2px solid var(--ink);border-radius:999px;
  padding:14.8px 22.8px;font-family:var(--sans);font-weight:600;font-size:15px;line-height:1.2;
}
.a-seal-chip{
  display:inline-block;padding:3px 8px;border:1.2px solid currentColor;border-radius:3px;
  font-family:var(--mono);font-weight:400;font-size:10.5px;line-height:1.3;
  letter-spacing:1.1px;text-transform:uppercase;
}
.a-snackbar{
  position:absolute;left:16px;right:16px;bottom:96px;
  background:var(--ink);color:var(--paper);border-radius:8px;
  padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;
  font-family:var(--sans);font-size:14.5px;line-height:1.5;
  box-shadow:0 6px 24px -8px rgba(14,27,44,.4);
}
.a-snackbar .act{font-family:var(--sans);font-weight:600;font-size:13px;letter-spacing:.4px;color:var(--brass-bright);white-space:nowrap}

/* app tab bar (in-frame, true px) */
.a-tabbar{
  margin-top:auto;border-top:1px solid var(--hairline);
  display:grid;grid-template-columns:repeat(5,1fr);
  padding:12px 8px 26px;background:var(--paper);
}
.a-tab{display:flex;flex-direction:column;align-items:center;gap:5px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:1px;text-transform:uppercase;color:var(--ink2)}
.a-tab svg{width:22px;height:22px}
.a-tab.active{color:var(--accent-text)}

/* plate wrapper (rounded clip; SVG injected by VPlates) */
.a-plate{overflow:hidden;flex:none;position:relative}
.a-plate svg{position:absolute;inset:0;width:100%;height:100%}
/* tiled bands: cells sit side by side, the glyph rides above them */
.a-plate .plate-row{position:absolute;inset:0;display:flex}
.a-plate .plate-row svg{position:static;flex:1 1 0;width:auto;height:100%}
.a-plate .plate-glyph{pointer-events:none}

/* ---------- Scene 01 · Search ---------- */
.aui-masthead{padding:10px 2px 12px}
.aui-masthead .dateline{
  font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;
  color:var(--ink2);text-transform:uppercase;white-space:nowrap;overflow:hidden;
  -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);
  mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent);
}
.aui-masthead .row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.aui-masthead .offline{color:var(--green-text);letter-spacing:1.2px;border-color:currentColor}
.aui-masthead h3{margin-top:16px}
.aui-search{
  margin-top:16px;min-height:44px;display:flex;align-items:center;gap:8px;
  background:var(--recess);border:1px solid var(--hairline);border-radius:12px;
  padding:12px 16px;
}
.aui-search svg{width:18px;height:18px;color:var(--ink2);flex:none}
.aui-search .q{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;color:var(--ink2);text-transform:uppercase}
.aui-search .q .typed{color:var(--ink);text-transform:none;font-size:14px;letter-spacing:0;font-family:var(--sans)}
.aui-search .caret{display:inline-block;width:1.5px;height:16px;background:var(--accent);vertical-align:-3px;
  animation:aui-caret 1.06s steps(1) infinite}
@keyframes aui-caret{50%{opacity:0}}

/* place list card — CARD:41-108 true px */
.a-place-card{
  display:flex;align-items:center;gap:16px;
  background:var(--card);border:1px solid var(--hairline);border-radius:16px;
  padding:8px;margin:4px 0;
}
.a-place-card .thumb{width:48px;height:48px;border-radius:12px}
.a-place-card .tt{min-width:0;flex:1}
.a-place-card .tt .nm{font-family:var(--sans);font-weight:600;font-size:16px;line-height:1.4;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-place-card .tt .sub{font-family:var(--sans);font-size:12.5px;line-height:1.45;color:var(--ink2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-place-card .must{color:var(--accent-text);font-family:var(--mono);font-size:10.5px;letter-spacing:.8px}

/* ---------- Scene 02 · Atlas Draw ---------- */
.aui-draw-screen{transition:background-color .42s cubic-bezier(.215,.61,.355,1)}
.aui-draw-screen.selected{background:#071525;color:#F5F0E6}
.aui-draw-screen.selected::before{opacity:.035}
.aui-draw-screen.selected .aui-status{color:#F5F0E6;z-index:15}
.aui-draw-head{padding:8px 2px 0;position:relative;z-index:3}
.aui-draw-head .a-label-m{color:var(--accent-text)}
.aui-draw-head h3{margin-top:7px;max-width:290px}
.aui-draw-head .a-body-s{margin-top:6px}
.atlas-draw{
  width:318px;height:390px;margin:12px auto 0;position:relative;overflow:hidden;
  border:1px solid var(--hairline);border-radius:24px;background:#071525;isolation:isolate;
  transition:inset .46s cubic-bezier(.215,.61,.355,1),width .46s cubic-bezier(.215,.61,.355,1),
    height .46s cubic-bezier(.215,.61,.355,1),margin .46s cubic-bezier(.215,.61,.355,1),
    border-radius .32s cubic-bezier(.215,.61,.355,1);
}
.atlas-draw::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(circle at 50% 31%,rgba(54,139,220,.12),transparent 48%),
             linear-gradient(180deg,rgba(255,255,255,.035),transparent 58%)}
.atlas-draw canvas{display:block;width:318px;height:318px;position:absolute;left:0;top:0;z-index:1;
  transition:width .46s cubic-bezier(.215,.61,.355,1),height .46s cubic-bezier(.215,.61,.355,1)}
.aui-draw-screen.selected .atlas-draw{
  position:absolute;inset:-8px -24px 0;width:auto;height:auto;margin:0;border:0;border-radius:0;z-index:12;
}
.aui-draw-screen.selected .atlas-draw canvas{width:390px;height:390px}
.aui-draw-screen .aui-draw-head,.aui-draw-screen .draw-actions,.aui-draw-screen .a-tabbar{
  transition:opacity .22s cubic-bezier(.215,.61,.355,1)
}
.aui-draw-screen.selected .aui-draw-head,.aui-draw-screen.selected .draw-actions,.aui-draw-screen.selected .a-tabbar{
  opacity:0;pointer-events:none
}
.draw-state{position:absolute;z-index:3;left:0;right:0;bottom:32px;text-align:center;
  font-family:var(--mono);font-size:10.5px;letter-spacing:1.3px;text-transform:uppercase;color:#C9A959;
  transition:opacity .25s cubic-bezier(.215,.61,.355,1)}
.draw-state::after{content:"";display:block;width:34px;height:1px;margin:10px auto 0;background:#C9A959;opacity:.55}
.draw-result{position:absolute;z-index:4;left:0;right:0;bottom:0;height:474px;padding:14px 24px 18px;
  border:1px solid rgba(123,179,223,.20);border-bottom:0;border-radius:30px 30px 0 0;
  background:linear-gradient(180deg,rgba(11,31,51,.985),rgba(6,20,35,.995));color:#F5F0E6;text-align:center;
  box-shadow:0 -18px 44px rgba(0,0,0,.22),inset 0 1px rgba(245,240,230,.04);
  opacity:0;transform:translate3d(0,34px,0);transition:opacity .36s cubic-bezier(.215,.61,.355,1),transform .46s cubic-bezier(.215,.61,.355,1)}
.draw-result.on{opacity:1;transform:none}
.draw-sheet-handle{display:block;width:42px;height:4px;border-radius:99px;background:#91A6BC;margin:0 auto 11px;opacity:.75}
.draw-result .a-label-s{color:#D6B865;font-size:9px;letter-spacing:1.6px}
.draw-result h4{font-family:var(--serif);font-size:38px;line-height:1.04;font-weight:600;margin-top:5px;text-shadow:0 2px 14px rgba(0,0,0,.38)}
.draw-result .draw-country{font-size:15px;line-height:1.2;color:#F5F0E6;margin-top:3px}
.draw-chips{display:flex;justify-content:center;gap:8px;margin-top:9px}
.draw-chips span{border:1px solid rgba(178,197,218,.38);border-radius:999px;padding:5px 10px;font-size:10.5px;color:#D5DDE7;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.draw-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px;padding:11px 0;border-top:1px solid rgba(245,240,230,.10);border-bottom:1px solid rgba(245,240,230,.10)}
.draw-facts span{font-size:10.5px;line-height:1.25;color:#F5F0E6}
.draw-facts b{display:block;font-family:var(--mono);font-size:7.5px;letter-spacing:.8px;text-transform:uppercase;color:#9DB0C5;margin-bottom:4px}
.draw-why{margin-top:10px;padding:9px 11px 10px;border:1px solid rgba(245,240,230,.09);border-radius:13px;text-align:left;background:rgba(255,255,255,.018)}
.draw-why b{font-size:11.5px}.draw-why p{font-size:10.5px;line-height:1.38;color:#B8C4D1;margin-top:3px}
.draw-thumbs{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:7px;margin-top:9px;height:53px}
.draw-thumb{position:relative;display:block;overflow:hidden;border-radius:9px;border:1px solid rgba(245,240,230,.11);background:#152A41}
.draw-thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 61%;display:block;filter:saturate(.82) contrast(1.04)}
.draw-plan-cta{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;margin-top:10px;border-radius:999px;background:#F5F0E6;color:#10223A;font-size:13px;font-weight:600;box-shadow:0 5px 18px rgba(0,0,0,.20)}
.draw-plan-cta span{color:#B3432B;font-size:15px}
.draw-another{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;font-size:11.5px;font-weight:600;color:#E4C97E}
.draw-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;margin-top:12px}
.draw-actions .a-btn,.draw-actions .a-btn-outline{padding:13px 10px;font-size:13.5px;white-space:nowrap}
.draw-surprise span{font-family:var(--mono);font-size:17px}
.sc-draw-control{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:7px 0;border:0;background:none;cursor:pointer;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-text)}
.sc-draw-control:hover{color:var(--navy)}

/* ---------- Scene 03 · Expedition ---------- */
.aui-plan-screen .aui-body{padding-inline:20px}
.plan-head{padding:8px 2px 10px}.plan-head .a-label-m{color:var(--accent-text)}.plan-head h3{margin-top:6px}.plan-head .a-body-s{margin-top:5px}
.plan-days{display:flex;flex-direction:column;gap:9px;margin-top:5px}
.plan-day{display:grid;grid-template-columns:52px 1fr;gap:13px;align-items:start;background:var(--card);border:1px solid var(--hairline);border-radius:15px;padding:12px}
.plan-day-no{border-right:1px solid var(--hairline);min-height:100px;display:flex;flex-direction:column;justify-content:center}
.plan-day-no span{font-family:var(--mono);font-size:9px;letter-spacing:1.2px;text-transform:uppercase;color:var(--ink2)}
.plan-day-no b{font-family:var(--serif);font-size:27px;font-weight:600;line-height:1;color:var(--ink);margin-top:3px}
.plan-day p{font-size:11.5px;line-height:1.24;color:var(--ink);margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plan-day p:last-child{margin-bottom:0}.plan-day p span{display:block;font-family:var(--mono);font-size:8.5px;letter-spacing:1px;text-transform:uppercase;color:var(--accent-text)}
.plan-save{margin-top:12px}.plan-save .a-btn{width:100%;padding:13px 18px;font-size:14px}
.plan-kept{display:none;width:100%;padding:13px 14px;border:1.2px solid var(--green);border-radius:999px;text-align:center;font-weight:600;font-size:13.5px;color:var(--green)}
.plan-save.kept .a-btn{display:none}.plan-save.kept .plan-kept{display:block}
.plan-legend{display:flex;justify-content:space-between;margin:10px 2px 0;font-family:var(--mono);font-size:8px;letter-spacing:.8px;color:var(--ink2)}

/* ---------- Scene 04 · Bucket ---------- */
.aui-dossier-head{padding-top:8px}
.aui-dossier-head .overline{margin-bottom:4px}
.aui-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.aui-actions .pencil .ast{font-size:16px;color:var(--graphite);margin-right:2px}
.aui-actions .penciled{color:var(--graphite);border-color:var(--graphite)}
.aui-quote{
  margin-top:20px;border-left:2px solid var(--accent);padding-left:16px;
  font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.4;color:var(--ink);
}
.aui-manifest{margin-top:22px}
.aui-manifest .m-row{
  display:flex;align-items:center;gap:16px;padding:12px 2px;border-bottom:1px solid var(--hairline);
}
.aui-manifest .m-row .no{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;color:var(--ink2)}
.aui-manifest .m-row .nm{font-family:var(--sans);font-weight:600;font-size:16px;color:var(--ink);flex:1;min-width:0}
.aui-manifest .m-row .pencil-mark{color:var(--graphite);font-family:var(--mono);font-size:10.5px;letter-spacing:.8px;text-transform:uppercase}

/* ---------- Scene 03 · Stamp ceremony (true px, spec §3) ---------- */
.aui-ceremony{max-width:342px}
.aui-ceremony .entry-no{margin-top:2px}
.aui-ceremony h3{margin-top:4px}
.aui-ceremony .loc{margin-top:4px}
.aui-date-row{margin-top:24px;display:flex;align-items:center;gap:8px;
  font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:var(--accent-text)}
.aui-date-row svg{width:16px;height:16px}
.aui-date-row.stamped{color:var(--ink2)}
.aui-well{height:250px;display:grid;place-items:center;margin-top:16px;position:relative}
.seal-stack{position:relative;width:230px;height:230px}
.seal-stack canvas{position:absolute;inset:0;width:230px;height:230px}
.seal-ghost{opacity:.10}
.seal-inked{mix-blend-mode:multiply;opacity:0}
.seal-shudder{position:absolute;inset:0}
/* isolation so multiply blends against the cream screen, not the page */
.aui-well{isolation:isolate}
.aui-stamp-btn{margin-top:24px;align-self:stretch;justify-content:center}
.aui-stage2{margin-top:24px}
.aui-photo-well{
  height:170px;border-radius:16px;display:grid;place-items:center;color:var(--ink2);position:relative;
}
.aui-photo-well svg.dash{position:absolute;inset:0;width:100%;height:100%}
.aui-photo-well .cam{width:32px;height:32px}
.aui-fieldnote{margin-top:24px}
.aui-fieldnote .label{margin-bottom:8px}
.aui-fieldnote .box{
  font-family:"Courier Prime",monospace;font-size:16px;line-height:1.6;color:var(--ink);
  border-bottom:1px solid var(--hairline);padding:2px 0 8px;min-height:56px;
}
.aui-privacy{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:20px;color:var(--ink2)}
.aui-privacy svg{width:14px;height:14px}

/* A NEW PAGE overlay (in-frame; spec §8) */
.aui-newpage{
  position:absolute;inset:0;display:grid;place-items:center;z-index:5;
  background:rgba(0,0,0,.38);opacity:0;pointer-events:none;
  transition:opacity .32s cubic-bezier(.215,.61,.355,1);
}
.aui-newpage.on{opacity:1}
.aui-newpage .card{
  width:326px;max-width:86%;border-radius:16px;overflow:hidden;
  background:#F5F0E6;color:#1B2A41;padding:32px;text-align:center;
  transform:translateY(8%);transition:transform .32s cubic-bezier(.215,.61,.355,1);
  position:relative;
}
.aui-newpage .card::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-color:#1B2A41;opacity:.05;
  -webkit-mask-image:var(--grain-tile);mask-image:var(--grain-tile);
  -webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-size:256px 256px;mask-size:256px 256px;
}
.aui-newpage.on .card{transform:none}
.aui-newpage .eyebrow-np{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;color:#8F3520;text-transform:uppercase}
.aui-newpage .country{font-family:var(--serif);font-weight:600;font-size:34px;line-height:1.12;margin-top:8px;color:#1B2A41}
.aui-newpage .trace{height:160px;margin-top:12px}
.aui-newpage .trace path{fill:none;stroke:#B3432B;stroke-width:1.8;stroke-linecap:round}
.aui-newpage .pageno{font-family:var(--mono);font-size:12px;letter-spacing:.8px;color:#5B6B7F;margin-top:10px;text-transform:uppercase}
.aui-newpage .hint{font-family:var(--sans);font-size:12.5px;color:#5B6B7F;margin-top:14px}

/* ceremony is a pushed route — no tab bar; snackbar floats near the bottom */
.scene[data-scene="stamp"] .a-snackbar{bottom:28px}

/* sound toggle chip (site chrome, scene 03 copy column) */
.sc-sound{
  display:inline-flex;align-items:center;gap:8px;margin-top:20px;cursor:pointer;
  font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--brass-text);border:1.2px solid currentColor;border-radius:3px;padding:7px 12px;
  background:transparent;
}
.sc-sound[aria-pressed="false"]{color:var(--muted)}
.sc-sound .dot{width:7px;height:7px;border-radius:50%;background:currentColor}

/* ---------- Scene 04 · Journal ---------- */
.aui-month-head{display:flex;align-items:center;gap:16px;padding:16px 2px 8px}
.aui-month-head .rule{flex:1;height:1px;background:var(--hairline)}
.aui-journey{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:20px 2px 6px}
.aui-journey .meta{margin-top:2px}
.aui-journey svg{width:20px;height:20px;color:var(--ink2);flex:none}
.a-memory-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:16px;
  overflow:hidden;margin:8px 0;position:relative;
}
.a-memory-card .strip{height:64px;position:relative}
.a-memory-card .body{padding:16px;display:flex;gap:8px}
.a-memory-card .col{flex:1;min-width:0}
.a-memory-card .loc{margin-top:2px}
.a-memory-card .note{font-family:"Courier Prime",monospace;font-size:15px;line-height:1.5;color:var(--ink);margin-top:8px;min-height:66px}
.a-memory-card .date{margin-top:8px;color:var(--accent-text)}
.a-memory-card .seal76{width:76px;height:76px;flex:none;position:relative;isolation:isolate}
.a-memory-card .seal76 canvas{position:absolute;inset:0;width:76px;height:76px;mix-blend-mode:multiply;opacity:0;transform:scale(1.35)}
.a-memory-card .seal76.pressed canvas{opacity:1;transform:none;
  transition:opacity .12s cubic-bezier(.42,0,1,1), transform .25s cubic-bezier(.895,.03,.685,.22)}

/* ---------- Scene 05 · Me passport (always navy) ---------- */
.aui-me{align-items:center;text-align:center}
/* the Me tab scrolls in the app; the scene scrubs that scroll.
   Driven by a compositor-thread view() timeline where supported,
   else by the engine writing an inline transform. */
.me-scroll{display:flex;flex-direction:column;flex-shrink:0;will-change:transform}
@supports (animation-timeline: view()) {
  .scene[data-scene="me"]{view-timeline:--me-track block}
  .me-scroll{
    animation:me-pan linear both;
    animation-timeline:--me-track;
    animation-range:contain 0% contain 100%;
    will-change:auto; /* the running composited animation owns its layer */
  }
  @media (prefers-reduced-motion: reduce){.me-scroll{animation:none}}
}
@keyframes me-pan{from{transform:none}to{transform:translateY(-300px)}}
.scene[data-scene="me"] .a-tabbar{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  background:var(--paper);border-top:1px solid var(--hairline);
  padding:12px 24px 26px;margin:0;
}
.fired-static .me-scroll{transform:translateY(-300px)}
@media (prefers-reduced-motion: reduce){.me-scroll{transform:none}}
.aui-me .avatar{
  width:72px;height:72px;border-radius:50%;border:2px solid var(--accent);
  display:grid;place-items:center;margin:16px auto 0;
  font-family:var(--serif);font-weight:900;font-size:32px;color:var(--accent);
}
.aui-me .uname{margin-top:16px}
.aui-me .passport-label{margin-top:4px;color:var(--accent-text)}
.aui-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px;width:100%}
.aui-stats .blk{text-align:center}
.aui-stats .v{font-family:var(--serif);font-weight:900;font-size:34px;line-height:1.1;color:var(--ink)}
.aui-stats .l{margin-top:2px;color:var(--accent-text);font-family:var(--mono);font-size:10.5px;letter-spacing:.8px;text-transform:uppercase}
.aui-rings{display:flex;justify-content:space-evenly;gap:16px;margin-top:24px;width:100%}
.aui-ring{width:140px;text-align:center}
.aui-ring .wrap{position:relative;width:112px;height:112px;margin:0 auto}
.aui-ring svg{width:112px;height:112px;transform:rotate(-90deg)}
.aui-ring circle{fill:none;stroke-width:8}
.aui-ring .track{stroke:var(--hairline)}
.aui-ring .val{stroke-linecap:round;stroke-dasharray:326.726;stroke-dashoffset:326.726;
  transition:stroke-dashoffset 1.2s cubic-bezier(.215,.61,.355,1)}
.aui-ring .ctr{position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--sans);font-weight:600;font-size:16px;color:var(--ink)}
.aui-ring .cap{margin-top:8px}
.aui-worldmap{width:100%;border-radius:16px;overflow:hidden;margin-top:8px;aspect-ratio:2/1;background:transparent}
.aui-worldmap svg{width:100%;height:100%;display:block}
.aui-worldmap path{stroke:rgba(147,163,184,.35);stroke-width:.5;fill:rgba(147,163,184,.08)}
.aui-worldmap path.visited{fill:#C9A959;fill-opacity:0;transition:fill-opacity .6s cubic-bezier(.215,.61,.355,1)}
.aui-worldmap path.visited.on{fill-opacity:.85}
.aui-continents{width:100%;margin-top:12px}
.aui-continents .c-row{padding:5px 0}
.aui-continents .c-head{display:flex;justify-content:space-between;align-items:baseline}
.aui-continents .bar{height:4px;border-radius:2px;background:var(--recess);margin-top:4px;overflow:hidden}
.aui-continents .bar i{display:block;height:100%;background:var(--accent);width:0;
  transition:width .9s cubic-bezier(.215,.61,.355,1)}
.aui-vault{width:100%;margin-top:8px;text-align:left}
.aui-vault .v-row{display:flex;align-items:center;gap:16px;padding:8px 0;border-bottom:1px solid var(--hairline)}
.aui-vault .v-row svg{width:18px;height:18px;color:var(--ink2);flex:none}
.aui-vault .v-row .k{flex:1}
.aui-vault .v-row .val{color:var(--ink);font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;text-transform:uppercase}
.aui-vault .foot{display:flex;align-items:center;justify-content:center;gap:6px;padding-top:8px;color:var(--ink2)}
.aui-vault .foot svg{width:13px;height:13px}

/* ---------- Scene 06 · Where should I eat? ---------- */
.aui-eat-list{margin-top:14px}
.eat-row{
  display:flex;align-items:center;gap:16px;padding:10px 2px;
  border-bottom:1px solid var(--hairline);
}
.eat-row .thumb{width:48px;height:48px;flex:none}
.eat-row .tt{flex:1;min-width:0}
.eat-row .nm{font-family:var(--sans);font-weight:600;font-size:16px;line-height:1.4;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eat-row .sub{font-family:var(--sans);font-size:12.5px;line-height:1.45;color:var(--ink2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eat-row .must-inline{font-family:var(--mono);font-size:10.5px;letter-spacing:.8px;color:var(--accent-text);text-transform:uppercase}
.eat-row .dist{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.8px;
  color:var(--accent-text);white-space:nowrap;text-transform:uppercase}
#eat-foot{justify-content:center}

/* ---------- chapter rail (desktop, in-story only) ---------- */
.story-rail{
  position:fixed;right:22px;top:50%;transform:translateY(-50%);z-index:40;
  display:flex;flex-direction:column;gap:16px;
  opacity:0;pointer-events:none;transition:opacity .35s cubic-bezier(.215,.61,.355,1);
}
.story-rail.on{opacity:1;pointer-events:auto}
.story-rail a{
  display:flex;align-items:center;gap:8px;justify-content:flex-end;
  color:var(--muted);text-decoration:none;
}
.story-rail a::after{
  content:"";width:6px;height:6px;border-radius:50%;
  border:1.2px solid currentColor;background:transparent;flex:none;
  transition:background .2s, transform .2s;
}
.story-rail a .n{
  font-family:var(--mono);font-size:.58rem;letter-spacing:.18em;
  opacity:0;transform:translateX(4px);
  transition:opacity .2s, transform .2s;
}
.story-rail a:hover .n{opacity:1;transform:none}
.story-rail a.cur{color:var(--brass-text)}
.story-rail a.cur::after{background:currentColor;transform:scale(1.25)}
.story-rail a.cur .n{opacity:1;transform:none}
/* over the navy passport scene the rail flips to the passport voice */
.story-rail.over-navy a{color:#7E8BA0}
.story-rail.over-navy a.cur{color:var(--brass-bright)}
@media (max-width:1020px){.story-rail{display:none}}
@media (prefers-reduced-motion: reduce){.story-rail{display:none}}

/* ---------- CTA band after the story ---------- */
.story-cta{padding:120px 0 40px;text-align:center}
.story-cta .dev-stamp{margin-top:28px}

/* ---------- fired-static (deep entry / reduced motion end states) ---------- */
.fired-static .cue,.fired-static .cue-fade{transition:none;opacity:1;transform:none}
.fired-static .seal-inked{transition:none;opacity:1}
.fired-static .seal-ghost{opacity:0}
.fired-static .aui-ring .val{transition:none}
.fired-static .aui-worldmap path.visited{transition:none}
.fired-static .aui-continents .bar i{transition:none}
.fired-static .a-memory-card .seal76 canvas{transition:none}

/* ---------- responsive ---------- */
@media (max-width:1020px){
  /* clear the 68px sticky header: stacked scenes start under it, not behind it */
  .scene-stage{padding-top:56px}
  .scene-grid{grid-template-columns:1fr;justify-items:center;gap:18px;align-content:center}
  .scene-copy{text-align:center;max-width:56ch}
  .scene-copy p{margin-left:auto;margin-right:auto}
  /* device scale comes from the global min()/calc() formula — no overrides */
  .scene[data-scene="search"]{height:130vh}
  .scene[data-scene="draw"]{height:140vh}
  .scene[data-scene="plan"]{height:145vh}
  .scene[data-scene="bucket"]{height:135vh}
  .scene[data-scene="stamp"]{height:190vh}
  .scene[data-scene="journal"]{height:135vh}
  .scene[data-scene="me"]{height:125vh}
  .scene[data-scene="eat"]{height:130vh}
  .scene-copy h2{font-size:clamp(1.6rem,5.2vw,2.2rem)}
  .scene-copy p{font-size:.98rem}
}

/* ---------- tiny viewports: stack instead of pinning ----------
   Below ~360px wide / 600px tall there is not enough stage for a copy
   block AND a device; pinning would clip both. story.js sets this class
   and renders the finished frames, same as the reduced-motion path. */
.story-static .scene{height:auto !important;padding:56px 0}
.story-static .scene-stage{position:static;height:auto;overflow:visible}
.story-static .cue,.story-static .cue-fade,.story-static .cue-head{opacity:1;transform:none;transition:none}
.story-static .sc-tick,.story-static .story-rail{display:none}
.story-static .scene-grid{gap:24px}

/* ---------- reduced motion: static frames, no scrub ---------- */
@media (prefers-reduced-motion: reduce){
  .scene{height:auto !important;padding:64px 0}
  .scene-stage{position:static;height:auto;overflow:visible}
  .cue,.cue-fade{opacity:1;transform:none;transition:none}
  .seal-inked{opacity:1;transition:none}
  .seal-ghost{opacity:0}
  .aui-search .caret{animation:none}
  .aui-ring .val,.aui-continents .bar i,.aui-worldmap path.visited{transition:none}
  .aui-pin .pulse{animation:none}
  .sc-tick{display:none}
}


/* ---------- the ceremony is ink-layer in v1.1: navy screen, brass seal ---------- */
.aui-ink{background:#12213A;color:#EDE6D6}
.aui-ink .a-headline-m{color:#EDE6D6}
.aui-ink .a-label-m,.aui-ink .a-label-s{color:#93A0B4}
.aui-ink .aui-date-row{color:#C9A45E}
.aui-ink .aui-photo-well{color:#5E6E86}
.aui-ink .aui-fieldnote .label{color:#93A0B4}
.aui-ink #cere-note{color:#EDE6D6}
.aui-ink .aui-privacy{color:#93A0B4}
.aui-ink .a-snackbar{background:#0B1626;border:1px solid #24344C;color:#EDE6D6}
.aui-ink .a-snackbar .act{color:#C9A45E}
.aui-ink .aui-stamp-btn{background:#F1EADB;color:#12213A;border-color:#F1EADB}

.a-memory-card .strip.photo{height:132px;overflow:hidden}
.a-memory-card .strip.photo img{width:100%;height:100%;object-fit:cover;display:block}
.a-memory-card.peek{opacity:.92}
.a-memory-card .body.slim{padding:12px 16px}
/* ---------- 07 · THE KEEPSAKE (Videnda Press) — the real artifacts ---------- */
.keepsake{position:relative;width:480px;height:500px;margin:0 auto}
.kp-book{position:absolute;left:26px;top:0;transform:rotate(-2deg);
  width:270px;background:#FBF8F0;border:1px solid #E4DAC4;border-radius:5px;
  box-shadow:0 18px 44px rgba(14,27,44,.18),0 2px 8px rgba(14,27,44,.08);z-index:2;overflow:hidden}
.kp-cover{position:relative;height:150px}
.kp-cover img{width:100%;height:100%;object-fit:cover;display:block}
.kp-cover canvas{position:absolute;right:10px;bottom:-26px;width:96px;height:96px;transform:rotate(9deg)}
.kp-press{font-family:var(--mono);font-size:9px;letter-spacing:.28em;color:var(--rust);margin:18px 22px 26px}
.kp-title{font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.08;color:#16263D;margin:0 22px 8px;letter-spacing:-.01em}
.kp-sub{font-family:var(--mono);font-size:9px;letter-spacing:.18em;color:#5B6572;margin:0 22px 34px}
.kp-meta{font-family:var(--mono);font-size:8px;letter-spacing:.13em;color:#8A8272;margin:0 22px 20px}
.kp-card{position:absolute;right:16px;top:58px;width:186px;padding:17px 17px 19px;background:var(--navy);
  border:1px solid #24344C;border-radius:10px;color:#EDE6D6;z-index:3;transform:rotate(3deg);
  box-shadow:0 14px 34px rgba(14,27,44,.26)}
.kp-card .kp-k{display:block;font-family:var(--mono);font-size:8px;letter-spacing:.2em;color:#C9A85C;margin-bottom:34px}
.kp-card b{display:block;font-family:var(--serif);font-weight:600;font-size:16.5px;line-height:1.2;margin-bottom:6px}
.kp-card i{display:block;font-style:normal;font-family:var(--mono);font-size:8px;letter-spacing:.15em;color:#9FAABB}
.kp-strip{position:absolute;left:0;right:0;bottom:64px;display:flex;justify-content:center;gap:8px;z-index:1}
.kp-frame{display:block;width:104px;height:70px;background:#101C2E;border-radius:3px;overflow:hidden;
  padding:7px 3px;box-sizing:border-box;position:relative;
  background-image:radial-gradient(circle,#3A4B63 1.1px,transparent 1.3px),radial-gradient(circle,#3A4B63 1.1px,transparent 1.3px);
  background-size:10px 4px,10px 4px;background-position:4px 1px,4px calc(100% - 1px);background-repeat:repeat-x}
.kp-frame img{width:100%;height:100%;object-fit:cover;display:block;border-radius:2px}
.kp-title-frame{display:flex;align-items:center;justify-content:center;text-align:center}
.kp-title-frame b{font-family:var(--serif);font-weight:600;font-size:11.5px;line-height:1.25;color:#EDE6D6}
.kp-filmcap{position:absolute;left:0;right:0;bottom:26px;margin:0 auto;width:fit-content;text-align:center;
  font-family:var(--mono);font-size:9px;letter-spacing:.16em;color:var(--muted)}
@keyframes kp-rec{0%,100%{opacity:1}50%{opacity:.35}}
/* no-JS / static fallbacks — fit() never runs there (phones have their own) */
@media(max-width:1020px){.keepsake{zoom:.62}}
@media(max-width:430px){.keepsake{zoom:.54}}
.story-static .keepsake{height:auto;min-height:520px}

/* ============================================================
   v24 website system
   The app remains Fraunces + IBM Plex Mono. The surrounding site uses
   Inter for navigation, metadata, and ordinary reading so labels never
   resemble debug output. Motion and material light are optional layers.
   ============================================================ */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
p{ text-wrap:pretty }

/* Site type roles. Product screens and story devices keep their app faces.
   Narrative copy uses an editorial reading serif; Inter is reserved for
   navigation, controls, metadata, and other interface text. */
.eyebrow,
.stat .l,
.section-head .aside,
.new-chip,
.coords-card .row .k,
.status-pill,
.foot-col .foot-h{
  font-family:var(--sans);
  font-weight:600;
  letter-spacing:.075em;
}
.coords-card .big{font-family:var(--sans);font-weight:600;letter-spacing:-.012em}
.hero-copy,
.new-strip,
.stat .s,
.blurb,
.scene-copy>p:not(.sc-eyebrow):not(.sc-caption),
.feature p,
.faq-answer p,
.studio .prose p,
.contact-card .blurb,
.foot-tag{
  font-family:var(--reading);
  font-weight:400;
  letter-spacing:0;
}
.hero-copy{font-size:clamp(1.06rem,1.01rem + .2vw,1.17rem);line-height:1.58}
.trust li{font-family:var(--reading);font-weight:600;font-size:1.03rem;line-height:1.45;letter-spacing:0}
.new-strip{font-size:.96rem;line-height:1.55}
.stat .s{font-size:.94rem;line-height:1.55}
.scene-copy>p:not(.sc-eyebrow):not(.sc-caption){font-size:1.06rem;line-height:1.58}
.feature p{font-size:1rem;line-height:1.55}
.privacy-band .sub,
.pg span,
.verified-line{
  font-family:var(--sans);
  font-weight:400;
  letter-spacing:-.006em;
}
.privacy-band .sub{line-height:1.58}
.pg span{font-size:.92rem;line-height:1.52}
.verified-line{line-height:1.62}
.oath{font-size:.9rem;line-height:1.55;text-transform:none}
.faq-answer{font-size:1.02rem;line-height:1.58}
.studio .prose{font-size:1.04rem;line-height:1.6}
.studio .coords-card .big{
  font-family:var(--reading);
  font-size:1.28rem;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.01em;
}
.studio .coords-card .row .v{
  max-width:58%;
  font-family:var(--reading);
  font-size:1rem;
  line-height:1.4;
  letter-spacing:0;
}
.contact-card .blurb{font-size:1.05rem;line-height:1.55}
.foot-tag{font-size:1rem;line-height:1.5}
.foot-col a{
  font-family:var(--reading);
  font-size:1rem;
  line-height:1.35;
  letter-spacing:0;
}
.foot-base{font-family:var(--sans);font-weight:450;letter-spacing:.01em;text-transform:none}

/* Header state, progress, and controls. The real element gives older browsers
   a transform-only fallback; supporting browsers bind it to the compositor's
   root scroll timeline, so no JavaScript style recalculation is needed. */
.site-progress{
  position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--rust);
  transform:scaleX(0);transform-origin:left center;pointer-events:none
}
@keyframes v-page-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@supports (animation-timeline:scroll(root block)){
  .site-progress{
    animation:v-page-progress 1ms linear both;
    animation-timeline:scroll(root block)
  }
}
.nav{gap:22px}
.nav-links{margin-left:auto;gap:28px}
.nav-links a[aria-current="location"]{color:var(--rust)}
.nav-links a[aria-current="location"]::after{right:0}
.nav-actions{display:flex;align-items:center;gap:12px}
.motion-toggle,.menu-toggle{
  min-height:44px;border:1px solid var(--line);border-radius:999px;
  background:color-mix(in srgb,var(--paper-2) 72%,transparent);color:var(--ink);
  font-family:var(--sans);font-size:.75rem;font-weight:600;line-height:1;
  letter-spacing:.035em;cursor:pointer
}
.motion-toggle{display:inline-flex;align-items:center;gap:8px;padding:9px 12px}
.motion-toggle::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--rust);box-shadow:0 0 0 4px color-mix(in srgb,var(--rust) 11%,transparent)}
.motion-toggle .motion-state{color:var(--rust);font-weight:500}
.motion-toggle[aria-pressed="false"]::before{background:var(--muted);box-shadow:none}
.motion-toggle[aria-pressed="false"] .motion-state{color:var(--muted)}
.motion-toggle:disabled{cursor:default;opacity:.66}
.menu-toggle{display:none;padding:10px 15px}
html:not(.js) [data-motion-toggle],html:not(.js) .menu-toggle{display:none}

/* Accessible mobile navigation. */
.mobile-nav{
  position:fixed;inset:0;z-index:400;overflow-y:auto;overscroll-behavior:contain;
  background:var(--paper);padding:22px max(24px,5vw) 42px;
  opacity:0;transform:translateY(-12px);transition:opacity .2s ease,transform .2s ease
}
.mobile-nav[hidden]{display:none}
.mobile-nav.open{opacity:1;transform:none}
.mobile-top{display:flex;align-items:center;justify-content:space-between;gap:18px}
.mobile-top button{min-width:44px;min-height:44px;border:0;background:none;color:var(--ink);font:600 .9rem var(--sans);cursor:pointer}
.mobile-nav nav{display:flex;flex-direction:column;margin-top:clamp(52px,10vh,86px)}
.mobile-nav nav a{display:flex;min-height:58px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font:600 clamp(2.3rem,10vw,4.6rem)/1.15 var(--serif);letter-spacing:-.025em}
.mobile-nav nav a[aria-current="location"]{color:var(--rust)}
.mobile-nav nav a[aria-current="location"]::after{content:"";width:9px;height:9px;margin-left:auto;border-radius:50%;background:var(--rust);box-shadow:0 0 0 7px color-mix(in srgb,var(--rust) 10%,transparent)}
.mobile-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:34px;flex-wrap:wrap}
.mobile-actions .btn{min-height:48px}

/* Quiet material family. Borders recede; typography and content lead. */
.material-card{--spot-x:50%;--spot-y:50%;position:relative;isolation:isolate;overflow:hidden}
.material-card::before{
  content:"";position:absolute;z-index:0;inset:0;pointer-events:none;
  background:radial-gradient(430px circle at var(--spot-x) var(--spot-y),color-mix(in srgb,var(--brass-bright) 10%,transparent),transparent 64%);
  opacity:.72;transition:opacity .3s ease
}
.material-card>*{position:relative;z-index:1}
.material-card:not(:hover)::before{opacity:.32}
.stats-card,.coords-card,.story-cta,.feature,.faq details{border-color:color-mix(in srgb,var(--line) 72%,transparent)}
.stats-card,.coords-card{box-shadow:0 24px 70px -64px rgba(14,27,44,.8)}
.features{gap:14px}
.feature{
  min-height:160px;padding:24px;border:1px solid color-mix(in srgb,var(--line) 70%,transparent);
  border-radius:18px;background:color-mix(in srgb,var(--paper-2) 58%,transparent)
}
.story-cta{
  margin-top:72px;padding:clamp(58px,7vw,86px) clamp(24px,6vw,76px);
  border:1px solid color-mix(in srgb,var(--line) 72%,transparent);border-radius:28px;
  background:color-mix(in srgb,var(--paper-2) 72%,transparent);
  box-shadow:0 36px 90px -78px var(--navy)
}
.atlas-card.material-card::before{z-index:2;background:radial-gradient(380px circle at var(--spot-x) var(--spot-y),rgba(255,255,255,.12),transparent 62%)}

/* Contact becomes a destination rather than a loose block of text. */
.contact{padding-block:112px}
.contact .contact-card{
  max-width:1104px;padding:clamp(44px,7vw,84px);border:1px solid var(--line-navy);
  border-radius:30px;background:var(--navy);color:var(--paper);text-align:left;
  box-shadow:0 44px 100px -78px var(--navy-2)
}
.contact .contact-card::before{background:radial-gradient(560px circle at var(--spot-x) var(--spot-y),rgba(201,169,89,.16),transparent 64%)}
.contact-card .eyebrow{color:var(--brass-bright)}
.contact-card .kicker-rule{background:var(--brass-bright)}
.contact-card .title{margin:0;color:var(--paper);font-size:clamp(2.65rem,6vw,5.2rem);line-height:1}
.contact-card .blurb{margin-left:0;color:#B8C2D0}
.contact-card .mail{color:var(--paper);text-decoration-color:var(--brass-bright)}
.contact-card .mail:hover{color:var(--brass-bright)}
.contact-meta{display:flex;justify-content:space-between;gap:24px;margin-top:48px;padding-top:22px;border-top:1px solid var(--line-navy);font:450 .88rem/1.5 var(--sans);color:#9FAABB}
.contact-meta a{color:var(--paper);text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:5px}
.contact-card a:focus-visible,footer.site a:focus-visible{outline-color:var(--brass-bright)}

/* The user preference applies before first paint via boot.js. */
.motion-off *,.motion-off *::before,.motion-off *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.motion-off .js .reveal,.motion-off .reveal,.motion-off .cue,.motion-off .scene-device{opacity:1!important;transform:none!important}
.motion-off .material-card{--spot-x:50%!important;--spot-y:50%!important}
.page-hidden *{animation-play-state:paused!important}

@media (hover:hover) and (pointer:fine){
  .feature,.coords-card,.stats-card,.story-cta,.contact-card{transition:transform .35s cubic-bezier(.2,.65,.25,1),box-shadow .35s ease}
  .feature:hover,.coords-card:hover{transform:translateY(-3px);box-shadow:0 30px 78px -64px rgba(14,27,44,.88)}
}

@media (max-width:1100px){
  .nav-links{gap:20px}.desktop-motion{display:none}
}
@media (max-width:900px){
  .js .nav-links{display:none}
  .js .menu-toggle{display:inline-flex}
  .nav-actions{margin-left:auto}
  html:not(.js) .nav{height:auto;min-height:68px;flex-wrap:wrap;padding-block:10px}
  html:not(.js) .nav-links{order:3;width:100%;justify-content:space-between;overflow-x:auto;padding-bottom:4px}
}
@media (max-width:700px){
  .feature{min-height:0;padding:22px}
  .story-cta{margin-inline:18px;width:auto;padding-inline:22px}
  .contact{padding-block:84px}
  .contact .contact-card{margin-inline:18px;width:auto;padding:42px 24px}
  .contact-meta{align-items:flex-start;flex-direction:column}
}
@media (max-width:460px){
  .nav .nav-download{display:none}
  .mobile-actions{align-items:stretch;flex-direction:column}
  .mobile-actions>*{width:100%;justify-content:center}
}
@media (forced-colors:active){
  .material-card::before{display:none}.motion-toggle::before{forced-color-adjust:none}
}
