/* ───────────────────────────────────────────────────────────
   WANDER THE HORIZON — palette sampled off the film's pixels
   paper #e0d1ba (left margin, every frame), sky #85afd3,
   dome/sea #1a5f98, turquoise #086868→#1f9e9c, night #02122f,
   night sea #0a1e38, lantern #f8b93a, dawn #d08888, rock #684838.
   The film is a sketchbook page: the left ~25% is bare paper in
   every frame, so the journal copy lives there in ink; headlines
   float in the sky, ink by day and chalk-cream by night.
   ─────────────────────────────────────────────────────────── */

:root {
  --paper:    #e0d1ba;
  --paper-hi: #ece2d0;
  --paper-lo: #d4c2a6;
  --ink:      #2b2530;
  --ink-2:    rgba(43,37,48,.68);
  --ink-3:    rgba(43,37,48,.28);
  --sky:      #85afd3;
  --aegean:   #1a5f98;
  --turq:     #1f9e9c;
  --night:    #02122f;
  --night-2:  #0a1e38;
  --lamp:     #f8b93a;
  --dawn:     #d08888;
  --rock:     #684838;
  --chalk:    #f6efe2;

  --display: "Fraunces", Georgia, serif;
  --hand:    "Caveat", "Bradley Hand", cursive;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans:    "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;

  /* chrome colour over the right-hand (scene) side */
  --fg:   var(--chalk);
  --fg-2: rgba(246,239,226,.7);
  --line: rgba(246,239,226,.35);

  /* one source pixel in screen px, and the width of the bare paper margin */
  --s: max(calc(100vw / 1920), calc(100vh / 1080));
  --paper-w: calc(50vw - 480 * var(--s));

  --gut:  clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.22,1,.36,1);
  --snap: cubic-bezier(.7,0,.3,1);
  --scroll-length: 1150vh;
  --p: 0;
}
:root.is-light { --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.hand { font-family: var(--hand); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: 0; }
.hand--lg { font-size: clamp(26px, 2.4vw, 38px); }
.skip { position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--aegean); outline-offset: 3px; }
::selection { background: var(--aegean); color: var(--chalk); }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--paper); transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__sun { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.loader__sun svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__bg { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1 3; }
.loader__fill { fill: none; stroke: var(--aegean); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s linear; }
.loader__n { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--aegean); animation: bob 2.4s ease-in-out infinite; }
.loader__mark { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.loader__meta { color: var(--ink-2); }
@keyframes bob { 50% { transform: translateY(-4px) rotate(8deg); } }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--paper); overflow: hidden; }
.film canvas, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-mode="scrub"] .film video { display: none; }
[data-mode="video"] .film canvas { display: none; }
.film__veil { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s;
  background: linear-gradient(90deg, rgba(224,209,186,0) 0%, rgba(224,209,186,0) 40%, rgba(224,209,186,.28) 100%); }
[data-mode="video"] .film__veil { opacity: 1; }
.film__paper { position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── page turn (mode switch) ────────────────────────────── */
.turn { position: fixed; inset: 0 -60px 0 0; z-index: 190; pointer-events: none; transform: translate3d(105%, 0, 0); }
.turn__sheet { position: absolute; inset: 0 0 0 38px; background: var(--paper-hi);
  background-image: radial-gradient(circle, rgba(43,37,48,.14) 1px, transparent 1.3px); background-size: 22px 22px;
  display: grid; place-items: center; box-shadow: -30px 0 60px rgba(43,37,48,.18); }
.turn__edge { position: absolute; left: 0; top: 0; width: 40px; height: 100%; fill: var(--paper-hi); }
.turn__blot { position: absolute; width: 60vmin; height: 60vmin; border-radius: 47% 53% 41% 59% / 55% 44% 56% 45%;
  background: radial-gradient(circle at 40% 40%, rgba(26,95,152,.9), rgba(26,95,152,.55) 55%, rgba(31,158,156,.0) 72%);
  transform: scale(.2) rotate(-40deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.turn__txt { position: relative; font-family: var(--hand); font-size: 44px; color: var(--chalk); opacity: 0; transition: opacity .2s .1s; }
:root.is-switching .turn { transform: translate3d(0, 0, 0); transition: transform .26s var(--snap); }
:root.is-switching .turn__blot { transform: scale(1) rotate(0); opacity: 1; }
:root.is-switching .turn__txt { opacity: 1; }
.turn.turn--out { transform: translate3d(-110%, 0, 0) !important; transition: transform .6s var(--snap) !important; }
.turn.turn--reset { transition: none !important; }

/* ── HUD ────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: var(--fg); transition: opacity .5s var(--ease); }
:root.is-paper .hud, :root.is-paper .chapter { opacity: 0; }
.hud__br { position: absolute; width: 20px; height: 20px; border: 0 solid var(--ink-3); }
.hud__br--tl { top: 64px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.hud__br--bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__br--tr { top: 64px; right: 12px; border-top-width: 1px; border-right-width: 1px; border-color: var(--line); }
.hud__br--br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; border-color: var(--line); }

.hud__top { position: absolute; top: 70px; left: 44px; right: 44px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.hud__book, .hud__coord { color: var(--ink); }
.hud__book b { font-weight: 500; }
.hud__coord { position: absolute; left: 0; top: 16px; color: var(--ink-2); }
.hud__map { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--fg-2); }
.hud__mapW { position: relative; width: 150px; height: 12px; background: radial-gradient(circle, var(--line) 1px, transparent 1.3px) 0 50% / 5px 4px repeat-x; }
.hud__mapW svg { width: 100%; height: 12px; overflow: visible; -webkit-mask: linear-gradient(90deg, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100% + .5%)); mask: linear-gradient(90deg, #000 calc(var(--p) * 100%), transparent calc(var(--p) * 100% + .5%)); }
.hud__mapDraw { stroke: var(--fg); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-dasharray: 0 5; vector-effect: non-scaling-stroke; }
.hud__mapPin { position: absolute; top: 1px; left: calc(var(--p) * 100% - 5px); width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--fg); background: var(--lamp); }
.hud__map b { color: var(--fg); font-weight: 500; min-width: 3.2ch; text-align: right; }

.dn { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.dn__dial { width: 44px; height: 24px; overflow: visible; }
.dn__arc { fill: none; stroke: var(--line); stroke-dasharray: 1.5 2.5; }
.dn__hz { stroke: var(--fg-2); stroke-width: 1; }
.dn__sun { fill: var(--lamp); stroke: var(--ink); stroke-width: .6; transition: fill .4s; }
.dn.is-night .dn__sun { fill: var(--chalk); }
.dn__txt b { font-weight: 500; }

.hud__side { position: absolute; top: 50%; display: flex; gap: 24px; white-space: nowrap; writing-mode: vertical-rl; }
.hud__side--l { left: 16px; color: var(--ink-2); transform: translateY(calc(-50% + (var(--p) - .5) * -140px)) rotate(180deg); }
.hud__side--r { right: 16px; color: var(--fg-2); transform: translateY(calc(-50% + (var(--p) - .5) * 140px)); }
.hud__side--r b { color: var(--fg); font-weight: 500; }

.route { position: absolute; top: 118px; bottom: 60px; left: calc(var(--paper-w) - 30px); width: 34px; height: calc(100% - 178px); overflow: visible; }
.route__ghost { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.route__dots { fill: none; stroke: var(--aegean); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 9; vector-effect: non-scaling-stroke; }
.route__mask { fill: none; stroke: #fff; stroke-width: 40; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p)); }

/* sea-conditions card */
.sea { position: absolute; right: 44px; bottom: 40px; width: 236px; padding: 12px 14px 10px; color: var(--ink);
  background: rgba(236,226,208,.9); border: 1px solid var(--ink-3); box-shadow: 4px 5px 0 rgba(43,37,48,.12);
  transform: rotate(-1.2deg) translate3d(0, calc((var(--p) - .5) * -18px), 0); }
.sea::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(133,175,211,.55); transform: rotate(3deg); }
.sea__hd { display: flex; justify-content: space-between; color: var(--ink-2); border-bottom: 1px dashed var(--ink-3); padding-bottom: 6px; margin-bottom: 6px; }
.sea__live { display: inline-flex; gap: 6px; align-items: center; }
.sea__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--turq); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.6); } }
.sea__row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.sea__row b { font-family: var(--display); font-weight: 500; font-size: 19px; margin-right: auto; }
.sea__row b + .mono { margin-left: 6px; }
.sea__arrow { width: 20px; height: 20px; transition: transform 1.2s var(--ease); }
.sea__arrow path { fill: var(--aegean); }
.sea__arrow circle { fill: none; stroke: var(--ink-3); }
.sea__wave { width: 100%; height: 18px; margin-top: 4px; overflow: hidden; }
.sea__wave path { fill: none; stroke: var(--aegean); stroke-width: 1.4; animation: wave 1.8s linear infinite; transition: d .8s var(--ease); }
@keyframes wave { to { transform: translateX(-50px); } }
.sea__note { font-size: 19px; color: var(--aegean); margin-top: 2px; min-height: 1.1em; }

/* ── header ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 26px; padding: 14px 44px; color: var(--fg); transition: color .3s, background-color .4s var(--ease), box-shadow .4s; }
:root.is-paper .chrome { --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); background: rgba(236,226,208,.95); box-shadow: 0 1px 0 var(--ink-3); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; transform: var(--mag, none); }
.mark__glyph { width: 30px; height: 30px; fill: var(--lamp); }
.mark__dome { fill: var(--aegean); }
.mark__line { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 2 3; animation: dash 1.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.mark__txt { white-space: nowrap; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.mark__txt em { font-weight: 300; font-style: italic; }
.chrome__nav { display: flex; gap: 24px; }
.chrome__nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 500; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 50% / 6px 2px repeat-x; transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.chrome__nav a:hover::after { transform: scaleX(1); }

/* the switch: a tiny horizon with a sun that sets into a moon */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px 7px 14px; border: 1px solid var(--line); border-radius: 40px; background: rgba(236,226,208,.12); color: var(--fg); transform: var(--mag, none); transition: border-color .3s, background .3s; }
.switch:hover { background: rgba(236,226,208,.26); }
.switch__txt { color: var(--fg-2); }
.switch__track { position: relative; width: 50px; height: 26px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--sky), #bcd4e6 60%, var(--aegean) 60%); box-shadow: inset 0 0 0 1px rgba(43,37,48,.35); transition: background .5s; }
.switch__hz { position: absolute; left: 0; right: 0; top: 60%; height: 1px; background: rgba(43,37,48,.4); }
.switch__knob { position: absolute; top: 3px; left: 27px; width: 20px; height: 20px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 3px rgba(248,185,58,.3); transition: left .5s var(--snap), background .5s, box-shadow .5s; }
.switch__knob i { position: absolute; inset: 0; border-radius: 50%; background: var(--night); transform: translate(130%, -40%); transition: transform .5s var(--snap); }
.switch[aria-checked="false"] .switch__track { background: linear-gradient(180deg, var(--night), var(--night-2) 60%, #06142c 60%); }
.switch[aria-checked="false"] .switch__knob { left: 3px; background: var(--chalk); box-shadow: 0 0 10px rgba(246,239,226,.6); }
.switch[aria-checked="false"] .switch__knob i { transform: translate(38%, -22%); }
.switch__roll, .pill__roll { position: relative; height: 1.25em; overflow: hidden; display: inline-block; width: 3.2ch; line-height: 1.25em; }
.switch__roll span, .pill__roll span { display: block; transition: transform .5s var(--snap); }
.switch[aria-checked="false"] .switch__roll span, .pill[aria-checked="false"] .pill__roll span { transform: translateY(-100%); }
.switch__roll { font-weight: 500; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; place-items: center; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.navPanel { position: fixed; inset: 0; z-index: 55; background: var(--paper-hi); display: flex; flex-direction: column; justify-content: center; padding: 0 28px; gap: 6px;
  clip-path: circle(0 at calc(100% - 36px) 34px); transition: clip-path .7s var(--snap); visibility: hidden; }
.navPanel.is-open { clip-path: circle(150% at calc(100% - 36px) 34px); visibility: visible; }
.navPanel a { font-family: var(--display); font-size: 44px; text-decoration: none; color: var(--ink); }

/* floating dock */
.pill { position: fixed; left: 50%; bottom: 22px; z-index: 58; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 40px;
  border: 1px solid var(--ink-3); background: var(--paper-hi); color: var(--ink); box-shadow: 0 10px 30px rgba(2,18,47,.18), 3px 3px 0 rgba(43,37,48,.12);
  transform: translateX(-50%) var(--mag, translate(0,0)); transition: box-shadow .3s; }
.pill:hover { box-shadow: 0 14px 34px rgba(2,18,47,.26), 3px 3px 0 rgba(43,37,48,.12); }
.pill__knob { position: relative; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--sky); box-shadow: inset 0 0 0 1px var(--ink-3); transition: background .5s; }
.pill__knob::before { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--lamp); transition: background .5s, transform .5s var(--snap); animation: spin 8s linear infinite; }
.pill__knob i { position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); transform: translate(120%, -60%); transition: transform .5s var(--snap); }
.pill[aria-checked="false"] .pill__knob { background: var(--night); }
.pill[aria-checked="false"] .pill__knob::before { background: var(--chalk); }
.pill[aria-checked="false"] .pill__knob i { transform: translate(40%, -25%); }
.pill__roll { font-weight: 500; color: var(--aegean); }
@keyframes spin { to { transform: rotate(360deg); } }

/* chapter + rail */
.chapter { position: fixed; left: 44px; bottom: 26px; z-index: 30; display: flex; gap: 14px; color: var(--ink); pointer-events: none; transition: opacity .4s; }
.chapter__n b { font-weight: 500; }
.chapter__name { font-family: var(--hand); font-size: 20px; text-transform: none; letter-spacing: 0; line-height: 1; color: var(--aegean); }
.chapter.is-roll .chapter__name, .chapter.is-roll .chapter__n b { animation: roll .6s var(--ease); }
@keyframes roll { from { transform: translateY(80%); opacity: 0; } }
.rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 3px; background: rgba(43,37,48,.08); pointer-events: none; }
.rail__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--aegean) 0 6px, transparent 6px 10px); }
.rail__ticks i { position: absolute; top: -3px; width: 1px; height: 9px; background: var(--ink-2); }
:root.is-paper .rail { opacity: 0; }

/* custom cursor: a pen nib + wet dot */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor select, .has-cursor textarea { cursor: text; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aegean); }
.cur--ring { width: 34px; height: 34px; border-radius: 50%; border: 1.4px dashed var(--ink); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cur--ring.is-on { width: 54px; height: 54px; border-color: var(--aegean); }
.cur--ring.is-lg { width: 78px; height: 78px; background: var(--aegean); border-style: solid; }
.cur--ring.is-down { width: 26px; height: 26px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { font-family: var(--hand); font-size: 20px; color: var(--chalk); }

/* ── stage / modes ──────────────────────────────────────── */
.stage { position: relative; z-index: 20; }
[data-mode="scrub"] .stage__spacer { height: var(--scroll-length); }
[data-mode="video"] .stage__spacer { height: 0; }
[data-mode="scrub"] .beats { position: fixed; inset: 0; pointer-events: none; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
[data-mode="scrub"] .beat.is-live .z { pointer-events: auto; }
[data-mode="video"] .beats { position: relative; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; }
[data-mode="video"] .beat + .beat { border-top: 1px dashed rgba(43,37,48,.18); }

.lay { position: absolute; inset: 0; }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; }

.z { position: absolute; }
.z--paper { left: 44px; top: 118px; bottom: 76px; width: calc(var(--paper-w) - 84px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.z__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.z--sky { top: 112px; right: calc(var(--gut) + 44px); max-width: 52vw; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.z--low { left: calc(var(--paper-w) + 3vw); bottom: 80px; }
.z--corner { top: 118px; right: 60px; width: 250px; }
[data-mode="scrub"] .beat--flash .z--mid::before { content: ""; position: absolute; inset: -30% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(246,242,236,.92), rgba(246,242,236,.6) 60%, rgba(246,242,236,0)); }
.z--mid { isolation: isolate; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; justify-items: center; gap: 12px; width: min(90vw, 900px); }
.beat--moon .z--sky { right: auto; left: calc(var(--paper-w) + 4vw); text-align: left; align-items: flex-start; }
.beat--dawn .z--sky { right: 30vw; }

[data-mode="scrub"] .z--paper { transform: translate3d(0, calc(var(--t, 0) * -10px), 0); }
[data-mode="scrub"] .z--sky { transform: translate3d(calc(var(--t, 0) * -24px), calc(var(--t, 0) * 12px), 0); }
[data-mode="scrub"] .z--low { transform: translate3d(calc(var(--t, 0) * 20px), 0, 0); }

/* type */
.tag { display: inline-block; color: var(--ink-2); padding: 3px 0; border-bottom: 1px dashed var(--ink-3); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 8vw, 150px); line-height: .9; letter-spacing: -.035em; color: var(--ink); font-variation-settings: "opsz" 144; margin: 0; }
.display--it { font-style: italic; font-weight: 300; color: var(--aegean); margin-top: -.02em; }
.display--ink { color: var(--ink); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.8vw, 82px); line-height: .95; letter-spacing: -.03em; margin: 0; color: var(--ink); font-variation-settings: "opsz" 144; }
.h2 em { font-style: italic; font-weight: 300; color: var(--aegean); }
.z--paper .h2 { font-size: clamp(38px, calc(var(--paper-w) * .16), 64px); }
.h2--night { color: var(--chalk); }
.h2--night em { color: var(--lamp); }
.beat--dawn .h2--night em { color: #ffd9c2; }
.lede { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 36ch; }
.note { margin: 0; color: var(--aegean); max-width: 16ch; font-size: clamp(24px, 2vw, 32px); transform: rotate(-2deg); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row--col { flex-direction: column; align-items: flex-start; }
.arrow { width: 110px; height: 56px; fill: none; stroke: var(--aegean); stroke-width: 1.6; stroke-linecap: round; overflow: visible; margin-left: 40%; }
.arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.cue { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-top: 10px; }
.cue i { width: 1px; height: 30px; background: var(--ink-2); transform-origin: 50% 0; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 14px; border: 1.4px solid var(--ink); position: relative; overflow: hidden; transform: var(--mag, none); isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn--fill { background: var(--ink); color: var(--paper-hi); }
.btn--fill::before { background: var(--aegean); }
.btn--line { background: rgba(236,226,208,.5); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper-hi); }
.btn:hover::before { transform: translateY(0); }
.btn--wide { width: 100%; }

.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.stats li { display: grid; gap: 2px; text-align: left; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stats .mono { color: var(--ink-2); }
.stats--card { background: rgba(236,226,208,.92); padding: 14px 18px; border: 1px solid var(--ink-3); box-shadow: 4px 5px 0 rgba(43,37,48,.14); transform: rotate(1deg); }

.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.leader { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.leader i { flex: 1; border-bottom: 1.5px dotted var(--ink-2); transform: translateY(-3px); }
.leader b { font-weight: 500; color: var(--aegean); }

.kit { margin: 0; padding: 16px; background: rgba(236,226,208,.94); border: 1px solid var(--ink-3); box-shadow: 4px 5px 0 rgba(43,37,48,.12); transform: rotate(2.5deg) perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.kit__svg { width: 100%; height: auto; fill: none; stroke: var(--rock); stroke-width: 1.4; stroke-linecap: round; }
.kit__svg * { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.kit figcaption { color: var(--ink-2); margin-top: 10px; line-height: 1.6; }

.stamp { position: relative; width: 116px; height: 116px; display: grid; place-items: center; color: var(--lamp); transform: rotate(-24deg) scale(.6); opacity: 0; transition: transform .8s var(--ease) .35s, opacity .4s .35s; }
.stamp svg { position: absolute; inset: 0; fill: none; stroke: currentColor; stroke-width: 1.2; }
.stamp text { font-family: var(--mono); font-size: 8.6px; letter-spacing: .14em; fill: currentColor; stroke: none; }
.stamp b { font-family: var(--display); font-size: 22px; font-weight: 500; }

/* ── reveal choreography ────────────────────────────────── */
/* scrub: .beat.is-live (film.js) · video: .beat.is-in (motion.js) · page: [data-reveal].is-in */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > i { display: block; font-style: inherit; transform: translate3d(0, 110%, 0); transition: transform 1.05s var(--ease) calc(var(--li, 0) * 110ms + 80ms); }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.ch > i { display: inline-block; font-style: inherit; transform: translate3d(0, 115%, 0) rotate(8deg); transform-origin: 0 100%; transition: transform 1s var(--ease) calc(var(--ci, 0) * 38ms + 60ms); }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .18em .04em .14em; margin: -.18em -.04em -.14em; }
.wd > i { display: inline-block; font-style: inherit; opacity: 0; transition: transform .9s var(--ease) calc(var(--wi, 0) * 55ms + 200ms), opacity .6s calc(var(--wi, 0) * 55ms + 200ms); }
.wd:nth-child(3n+1) > i { transform: translate3d(0, 100%, 0); }
.wd:nth-child(3n+2) > i { transform: translate3d(-50%, 0, 0); }
.wd:nth-child(3n)   > i { transform: translate3d(0, -100%, 0); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in, [data-reveal].is-in, .foot.is-in) :is(.ln, .ch, .wd) > i { transform: none; opacity: 1; }

.beat .tag { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .1s; }
.beat :is(.lede, .row, .stats li, .leader, .cue, .sea-x) { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.beat .row { transition-delay: .35s; }
.beat .lede { transition-delay: .25s; }
.beat .stats li:nth-child(2) { transition-delay: .12s; } .beat .stats li:nth-child(3) { transition-delay: .24s; }
.beat .leader:nth-child(2) { transition-delay: .1s; } .beat .leader:nth-child(3) { transition-delay: .2s; } .beat .leader:nth-child(4) { transition-delay: .3s; }
.beat .leader i { transform-origin: 0 50%; transform: translateY(-3px) scaleX(0); transition: transform 1s var(--ease) .4s; }
.beat .stats--card, .beat .kit { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .15s, transform .5s var(--ease); }
.beat .arrow path { transition: stroke-dashoffset 1.2s var(--ease) .6s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .tag { clip-path: inset(0 0 0 0); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.lede, .row, .stats li, .leader, .cue) { opacity: 1; transform: none; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .leader i { transform: translateY(-3px) scaleX(1); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.stats--card, .kit) { clip-path: inset(-10px -10px -10px -10px); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .kit__svg * { stroke-dashoffset: 0; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .arrow path { stroke-dashoffset: 0; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .stamp { transform: rotate(-12deg) scale(1); opacity: 1; }

/* video mode: film isn't synced to copy, so scene-side copy sits on pinned sketchbook cards */
[data-mode="video"] :is(.z--sky, .z--mid) { background: rgba(236,226,208,.93); padding: 22px 26px; border: 1px solid var(--ink-3); box-shadow: 6px 7px 0 rgba(43,37,48,.14); }
[data-mode="video"] .z--mid { transform: translate(-50%, -50%) rotate(-1deg); }
[data-mode="video"] .h2--night { color: var(--ink); }
[data-mode="video"] .h2--night em { color: var(--aegean) !important; }
[data-mode="video"] .stamp { color: var(--rock); }
[data-mode="video"] .z--sky::before, [data-mode="video"] .z--mid::before { content: ""; position: absolute; top: -10px; left: 30px; width: 70px; height: 20px; background: rgba(133,175,211,.6); transform: rotate(-4deg); }
[data-mode="video"] .chrome { --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); }
[data-mode="video"] .hud { --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); }
[data-mode="video"] .hud__map, [data-mode="video"] .dn, [data-mode="video"] .hud__side--r { background: rgba(236,226,208,.85); padding: 2px 8px; }

/* ── page (below the film) ──────────────────────────────── */
.page { position: relative; z-index: 25; background: var(--paper-hi);
  background-image: radial-gradient(circle, rgba(43,37,48,.13) 1px, transparent 1.3px); background-size: 24px 24px;
  box-shadow: 0 -30px 60px rgba(2,18,47,.18); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: var(--paper-hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L0 14 L8 10 L18 16 L30 8 L42 13 L55 6 L66 12 L80 9 L92 15 L104 7 L118 12 L130 5 L144 13 L156 9 L170 15 L182 8 L194 12 L200 10 L200 24Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 L0 14 L8 10 L18 16 L30 8 L42 13 L55 6 L66 12 L80 9 L92 15 L104 7 L118 12 L130 5 L144 13 L156 9 L170 15 L182 8 L194 12 L200 10 L200 24Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }

.marquee { overflow: hidden; border-block: 1px dashed var(--ink-3); padding: 18px 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--display); font-size: clamp(40px, 6vw, 96px); font-weight: 300; font-style: italic; letter-spacing: -.03em; white-space: nowrap; padding-right: .4em; line-height: 1; }
.marquee__track i { font-style: normal; color: var(--aegean); font-size: .5em; vertical-align: middle; padding: 0 .3em; display: inline-block; animation: spin 6s linear infinite; }

.sec { padding: clamp(80px, 11vw, 160px) var(--gut); max-width: 1440px; margin: 0 auto; }
.sec__hd { display: grid; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.sec__hd .h2 { font-size: clamp(46px, 6.4vw, 104px); }
.sec__lede { margin: 0; font-size: 17px; max-width: 52ch; color: var(--ink-2); }
[data-reveal] .tag { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .1s; }
[data-reveal].is-in .tag { clip-path: inset(0); }
[data-reveal] .sec__lede { opacity: 0; transform: translateY(16px); transition: opacity .8s .3s, transform .9s var(--ease) .3s; }
[data-reveal].is-in .sec__lede { opacity: 1; transform: none; }
.filters[data-reveal], .builder[data-reveal], .book[data-reveal], .faq[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.filters[data-reveal].is-in, .builder[data-reveal].is-in, .book[data-reveal].is-in, .faq[data-reveal].is-in { opacity: 1; transform: none; }

/* filters + journey grid */
.filters { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px dashed var(--ink-3); }
.filters__grp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__l { color: var(--ink-2); margin-right: 6px; }
.filters__count { margin: 0 0 0 auto; color: var(--ink-2); }
.filters__count b { font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--aegean); vertical-align: -3px; }
.chip { height: 34px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--ink-3); background: transparent; font-size: 13px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }

.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 34px; }
.jcard { position: relative; background: #f4ecdf; padding: 12px 12px 18px; border: 1px solid var(--ink-3); box-shadow: 5px 6px 0 rgba(43,37,48,.1);
  transform: rotate(var(--rot, 0deg)) perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), opacity .5s, box-shadow .4s; }
.jcard:hover { box-shadow: 10px 14px 0 rgba(26,95,152,.18); }
.jcard.is-enter { animation: jin .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes jin { from { opacity: 0; transform: translateY(40px) rotate(calc(var(--rot, 0deg) * 4)); } }
.jcard__img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--paper-lo); }
.jcard__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.jcard:hover .jcard__img img { transform: scale(1.13); }
.jcard__isl { position: absolute; left: 10px; top: 10px; background: var(--paper-hi); padding: 3px 8px; }
.jcard__days { position: absolute; right: 10px; bottom: 10px; font-family: var(--hand); font-size: 26px; color: var(--chalk); text-shadow: 0 1px 6px rgba(2,18,47,.6); }
.jcard h3 { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -.02em; margin: 14px 0 4px; line-height: 1.05; }
.jcard p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.jcard__meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--ink-3); padding-top: 10px; }
.jcard__diff { display: inline-flex; gap: 4px; align-items: center; }
.jcard__diff i { width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid var(--aegean); }
.jcard__diff i.on { background: var(--aegean); }
.jcard__price { font-family: var(--display); font-size: 20px; }
.jcard__price small { font-family: var(--mono); font-size: 10px; color: var(--ink-2); letter-spacing: .06em; }
.jcard__go { margin-top: 12px; background: none; border: 0; padding: 0; font-weight: 600; font-size: 13px; color: var(--aegean); display: inline-flex; gap: 6px; align-items: center; }
.jcard__go::after { content: "→"; transition: transform .3s var(--ease); }
.jcard__go:hover::after { transform: translateX(5px); }
.jempty { font-size: 30px; color: var(--aegean); text-align: center; padding: 40px 0; }

/* builder */
.builder { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.bf { border: 0; margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px dashed var(--ink-3); }
.bf legend { color: var(--ink-2); margin-bottom: 12px; padding: 0; }
.bf--row { display: flex; gap: 22px; flex-wrap: wrap; }
.bf--row legend { width: 100%; }
.field { width: 100%; height: 48px; padding: 0 14px; background: rgba(255,255,255,.4); border: 1px solid var(--ink-3); border-radius: 3px; font-size: 15px; transition: border-color .3s, box-shadow .3s; }
textarea.field { height: auto; padding: 12px 14px; resize: vertical; }
.field:focus { outline: none; border-color: var(--aegean); box-shadow: 0 0 0 3px rgba(26,95,152,.15); }
.step { display: inline-flex; align-items: center; gap: 10px; }
.step__l { font-weight: 600; margin-right: 6px; min-width: 70px; }
.step__b { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; font-size: 20px; line-height: 1; transform: var(--mag, none); transition: background .3s, color .3s; }
.step__b:hover { background: var(--ink); color: var(--paper-hi); }
.step__v { font-family: var(--display); font-size: 34px; min-width: 2ch; text-align: center; }
.step__v.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-6px) scale(1.15); color: var(--aegean); } }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 30px; padding: 3px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 9px 18px; border-radius: 26px; font-weight: 500; font-size: 14px; transition: background .3s, color .3s; }
.seg small { color: inherit; opacity: .7; }
.seg input:checked + span { background: var(--ink); color: var(--paper-hi); }
.seg input:focus-visible + span { outline: 2px dashed var(--aegean); }
.ck { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck__box { flex: none; width: 22px; height: 22px; border: 1.4px solid var(--ink); border-radius: 3px; position: relative; transition: background .3s; }
.ck__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--paper-hi); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.ck input:checked + .ck__box { background: var(--aegean); border-color: var(--aegean); }
.ck input:checked + .ck__box::after { transform: rotate(45deg) scale(1); }
.ck input:focus-visible + .ck__box { outline: 2px dashed var(--aegean); outline-offset: 2px; }
.ck b { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }

.ticket { position: sticky; top: 90px; background: #f6efe4; border: 1px solid var(--ink-3); padding: 24px 24px 26px; box-shadow: 8px 10px 0 rgba(26,95,152,.14); transform: rotate(.8deg);
  -webkit-mask: radial-gradient(circle 9px at 0 58%, transparent 98%, #000) , radial-gradient(circle 9px at 100% 58%, transparent 98%, #000); -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: radial-gradient(circle 9px at 0 58%, transparent 98%, #000), radial-gradient(circle 9px at 100% 58%, transparent 98%, #000); }
.ticket__hd { display: flex; justify-content: space-between; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px dashed var(--ink-3); }
.ticket__name { font-family: var(--display); font-weight: 400; font-size: 38px; letter-spacing: -.02em; margin: 14px 0 4px; line-height: 1; }
.ticket__meta { color: var(--aegean); margin: 0; }
.ticket__route { width: 100%; height: 60px; margin: 14px 0 6px; overflow: visible; }
.ticket__route path { fill: none; stroke: var(--aegean); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 7; vector-effect: non-scaling-stroke; }
.ticket__route circle { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.3; animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes pop { from { transform: scale(0); } }
.ticket__route circle { transform-box: fill-box; transform-origin: center; }
.ticket__lines { margin: 8px 0 0; display: grid; gap: 7px; }
.ticket__lines div { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.ticket__lines dt { color: var(--ink-2); }
.ticket__lines dd { margin: 0 0 0 auto; font-family: var(--mono); font-size: 13px; }
.ticket__lines div::after { content: none; }
.ticket__lines i { flex: 1; border-bottom: 1.5px dotted var(--ink-3); }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.ticket__total b { font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ticket__pp { color: var(--ink-2); margin: 6px 0 18px; }

/* journal */
.sec--journal { max-width: none; padding-left: 0; padding-right: 0; }
.sec--journal .sec__hd { padding: 0 var(--gut); max-width: 1440px; margin-left: auto; margin-right: auto; }
.journal { display: flex; gap: 38px; overflow-x: auto; padding: 30px var(--gut) 50px; scroll-snap-type: x proximity; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--aegean) transparent; }
.journal:active { cursor: grabbing; }
.journal.is-drag { scroll-snap-type: none; }
.jp { flex: none; width: clamp(240px, 24vw, 330px); aspect-ratio: 3 / 4; perspective: 1200px; scroll-snap-align: center; background: none; border: 0; padding: 0; text-align: left; }
.jp__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); transform: rotate(var(--rot)) rotateY(0); }
.jp.is-flip .jp__in { transform: rotate(var(--rot)) rotateY(180deg); }
.jp__f, .jp__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #f7f1e6; padding: 12px 12px 0; box-shadow: 6px 8px 0 rgba(43,37,48,.12); border: 1px solid var(--ink-3); display: flex; flex-direction: column; }
.jp__f img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.jp__cap { font-family: var(--hand); font-size: 25px; padding: 8px 2px 10px; color: var(--ink); line-height: 1.1; }
.jp__cap small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
.jp__b { transform: rotateY(180deg); padding: 22px; justify-content: space-between;
  background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(26,95,152,.18) 29px 30px); background-color: #f7f1e6; }
.jp__b p { font-family: var(--hand); font-size: 25px; line-height: 30px; margin: 0; color: var(--ink); }
.jp__b .mono { color: var(--ink-2); }
.jp__tape { position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgba(133,175,211,.55); transform: rotate(-3deg); z-index: 2; }
.jp.is-in { animation: jin .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }

/* booking */
.book { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.book__hd { display: grid; gap: 18px; position: sticky; top: 100px; }
.book__hd .h2 { font-size: clamp(46px, 6vw, 96px); }
.book__route { width: 260px; height: 120px; overflow: visible; clip-path: inset(-10px 100% -10px -10px); transition: clip-path 1.8s var(--ease) .4s; }
.book.is-in .book__route { clip-path: inset(-10px -10px -10px -10px); }
.book__route path { fill: none; stroke: var(--aegean); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 8; }
.book__route circle { fill: var(--lamp); stroke: var(--ink); }
.bookForm { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; background: #f6efe4; padding: 32px; border: 1px solid var(--ink-3); box-shadow: 8px 10px 0 rgba(43,37,48,.1); }
.fg { grid-column: 1 / -1; display: grid; gap: 6px; }
.fg--half { grid-column: span 1; }
.fg label { font-weight: 600; font-size: 14px; }
.fg label small { font-weight: 400; color: var(--ink-2); }
.err { font-family: var(--hand); font-size: 20px; color: #b3452f; min-height: 0; line-height: 1; }
.fg.is-bad .field { border-color: #b3452f; box-shadow: 0 0 0 3px rgba(179,69,47,.12); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ck--terms { grid-column: 1 / -1; font-size: 14px; }
.err--terms { grid-column: 1 / -1; margin-top: -10px; }
.bookForm > .btn { grid-column: 1 / -1; margin-top: 6px; }
.done { position: absolute; inset: 0; background: #f6efe4; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 30px; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.done__stamp { display: grid; font-family: var(--display); font-size: 58px; font-weight: 600; letter-spacing: .04em; color: var(--aegean); border: 4px double var(--aegean); padding: 8px 26px 12px; line-height: 1; transform: rotate(-8deg); animation: stampIn .6s cubic-bezier(.3,1.6,.5,1) .1s both; }
.done__stamp small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; margin-top: 6px; font-weight: 500; }
@keyframes stampIn { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } }
.done .hand { color: var(--ink); max-width: 22ch; }

/* faq */
.sec--faq { max-width: 1100px; }
.qa { border-bottom: 1px dashed var(--ink-3); }
.qa summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 24px 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.01em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { color: var(--aegean); flex: none; width: 50px; }
.qa summary i { margin-left: auto; flex: none; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; position: relative; transition: transform .5s var(--ease), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.4px; background: currentColor; }
.qa summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.qa[open] summary i { background: var(--ink); color: var(--paper-hi); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa__a > p { overflow: hidden; margin: 0; padding-left: 68px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { padding-bottom: 24px; }

/* footer */
.foot { background: var(--night); color: var(--chalk); padding: 70px var(--gut) 96px; position: relative; overflow: hidden; }
.foot__route { position: absolute; left: 0; top: 30px; width: 100%; height: 80px; opacity: .8; clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease) .2s; }
.foot.is-in .foot__route { clip-path: inset(0 0 0 0); }
.foot__route path { fill: none; stroke: var(--lamp); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 10; vector-effect: non-scaling-stroke; }
.foot__big { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 13vw, 230px); line-height: .88; letter-spacing: -.05em; margin: 60px 0 60px; }
.foot__big em { font-weight: 300; color: var(--lamp); }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 30px; border-top: 1px dashed rgba(246,239,226,.3); padding-top: 30px; }
.foot__grid p { margin: 8px 0 0; line-height: 1.8; color: rgba(246,239,226,.8); }
.foot__grid a { text-decoration: none; }
.foot__grid a:hover { color: var(--lamp); }
.foot__l { color: rgba(246,239,226,.5); }
.news__row { display: flex; gap: 8px; margin-top: 10px; }
.news .field { background: rgba(246,239,226,.08); border-color: rgba(246,239,226,.3); color: var(--chalk); }
.news .btn--fill { background: var(--lamp); color: var(--night); border-color: var(--lamp); flex: none; }
.news__msg { display: block; margin-top: 8px; color: var(--lamp); min-height: 1.2em; }
.foot__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; color: rgba(246,239,226,.5); }
.foot__base a { text-decoration: none; }

/* ── narrow / portrait: the paper margin is off-screen, copy rides on cards ── */
@media (max-aspect-ratio: 3/2), (max-width: 1279px) {
  .z--paper, .z--sky, .z--low, .z--corner { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: none; }
  .lay { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 118px var(--gut) 86px; }
  [data-mode="scrub"] .lay { position: absolute; inset: 0; }
  .z--sky { order: 1; text-align: left; align-items: flex-start; }
  .beat--moon .z--sky, .beat--dawn .z--sky { left: auto; right: auto; }
  .z--corner, .z--low { order: 2; }
  .z--paper { order: 3; }
  .z--paper, .z--sky, .z--mid { background: rgba(236,226,208,.93); padding: 18px 20px; border: 1px solid var(--ink-3); box-shadow: 5px 6px 0 rgba(43,37,48,.14); }
  .z--mid { background: rgba(236,226,208,.9); }
  .z--paper { margin-right: 8vw; }
  .z--sky { align-self: flex-start; }
  .h2--night { color: var(--ink); } .h2--night em { color: var(--aegean) !important; }
  .stamp { display: none; }
  .z__foot { margin-top: 0; }
  .route, .hud__side, .hud__map { display: none; }
  .z--corner { width: min(250px, 70vw); align-self: flex-end; }
  .z--low { align-self: flex-end; }
  .sea { bottom: auto; top: 86px; right: 12px; left: auto; width: auto; padding: 6px 10px; transform: none; display: flex; gap: 10px; align-items: center; }
  .sea::before, .sea__hd, .sea__wave, .sea__note { display: none; }
  .sea__row { margin: 0; }
  .sea__row b { font-size: 15px; }
  .sea__row:last-of-type span.mono:nth-of-type(2), .sea__row:last-of-type b:nth-of-type(2) { display: none; }
  .hud__top { left: 16px; right: 16px; top: 60px; background: rgba(236,226,208,.9); padding: 3px 8px; }
  .hud__coord { display: none; }
  .dn { margin-left: auto; }
  .chrome { padding: 12px 16px; background: rgba(236,226,208,.9); --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); }
  .hud { --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--ink-3); }
  .lay { padding-top: 138px; }
  .z--sky .display { font-size: clamp(52px, 11vw, 110px); }
}
@media (max-width: 1100px) {
  .chrome__nav { display: none; }
  .burger { display: grid; }
  .jgrid { grid-template-columns: repeat(2, 1fr); }
  .builder, .book { grid-template-columns: 1fr; }
  .book__hd, .ticket { position: relative; top: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .switch__txt { display: none; }
  .switch { padding: 5px 8px; gap: 6px; }
  .mark__txt { font-size: 16px; }
  .chrome { gap: 10px; }
  .hud__br, .chapter { display: none; }
  .hud__book { font-size: 9.5px; }
  .dn__dial { display: none; }
  .lay { padding: 126px 16px 80px; }
  .mark__glyph { width: 24px; height: 24px; }
  :root.is-paper .pill { padding: 6px; gap: 0; }
  :root.is-paper .pill__txt, :root.is-paper .pill__roll { display: none; }
  .pill { transition: padding .4s var(--ease); left: auto; right: 14px; transform: var(--mag, none); }
  .z--paper { margin-right: 0; padding: 14px 16px; gap: 10px; }
  .z--sky, .z--mid { padding: 14px 16px; }
  .z--paper .note, .arrow, .leaders, .z--paper .cue { display: none; }
  .z--sky .cue { display: none; }
  .z--sky .display { font-size: clamp(46px, 14vw, 72px); }
  .h2, .z--paper .h2 { font-size: clamp(34px, 10vw, 48px); }
  .stats { gap: 16px; } .stats b { font-size: 30px; }
  .z--corner, .stamp { display: none; }
  .z--mid .hand--lg { font-size: 24px; }
  .lede { font-size: 14px; }
  .btn { height: 42px; padding: 0 16px; font-size: 13px; }
  .pill { bottom: 14px; padding: 6px 12px 6px 6px; }
  .jgrid { grid-template-columns: 1fr; }
  .filters__count { margin-left: 0; width: 100%; }
  .bookForm { grid-template-columns: 1fr; padding: 20px; }
  .fg--half { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr; }
  .news__row { flex-direction: column; }
  .qa__a > p { padding-left: 0; }
  .ticket { transform: none; }
  .step__l { min-width: 0; }
  .seg span { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
@media (min-width: 641px) { :root.is-paper .pill { left: auto; right: 24px; transform: var(--mag, none); } }
/* dock steps aside while any form is on screen (the header switch stays) */
.pill { transition: box-shadow .3s, translate .5s var(--ease), opacity .4s, padding .4s var(--ease); }
:root.is-form .pill { translate: 0 180%; opacity: 0; pointer-events: none; }
