/* ════════════════════════════════════════════════════════════
   DULANJAYA — a night on the ridge
   Warm charcoal, lantern yellow, hand-drawn notes. Two themes.
   ════════════════════════════════════════════════════════════ */

:root {
  --f-head: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  --yellow: #f7c94b;
  --yellow-ink: #1d1806;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
  --pad: clamp(20px, 5vw, 80px);
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
}
:root, [data-theme="night"] {
  --bg: #131614; --bg-2: #1a1e1b; --card: #20251f; --card-2: #2a2f29;
  --fg: #f4f1ea; --fg-2: #c3c6be; --muted: #8b918a;          /* 5.9:1 */
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(24, 28, 25, .72); --hl: rgba(247, 201, 75, .85); --hl-ink: #1d1806;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
[data-theme="day"] {
  --bg: #f5f1e8; --bg-2: #ece6d8; --card: #fffdf8; --card-2: #f1ece0;
  --fg: #1b1e1b; --fg-2: #3f443f; --muted: #626862;          /* 5.6:1 */
  --line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .16);
  --glass: rgba(255, 252, 245, .78); --hl: rgba(247, 201, 75, .9); --hl-ink: #1d1806;
  --shadow: 0 20px 44px -24px rgba(60, 45, 20, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; transition: background-color .6s; }
body { background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .6s, color .6s; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--yellow-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }

/* marker highlight — drawn in as it scrolls into view */
.hl { color: var(--hl-ink); background: linear-gradient(100deg, transparent .2em, var(--hl) .25em, var(--hl) calc(100% - .2em), transparent calc(100% - .1em)) 0 60% / 0% 78% no-repeat; padding: 0 .12em; margin: 0 -.05em; border-radius: .2em; transition: background-size 1s var(--ease) .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.is-in, .no-anim .hl { background-size: 100% 78%; }
[data-theme="night"] .hl:not(.is-in) { color: inherit; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 1rem; }
.eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.sec-title, .page-title, .hero-title, .journey-title, .contact-title, .sub-title { font-family: var(--f-head); font-weight: 760; letter-spacing: -.035em; line-height: .98; font-variation-settings: 'wdth' 92, 'opsz' 96; }
.sec-title { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.sec-sub { margin-top: 1rem; color: var(--fg-2); font-size: 1.125rem; max-width: 46ch; }
.hand { font-family: var(--f-hand); font-size: 1.35rem; color: var(--fg-2); }

/* buttons: clean, rounded, one strong colour */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: transform .35s var(--spring), background .2s, box-shadow .3s, border-color .2s; }
.btn .ico { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 10px 30px -12px rgba(247, 201, 75, .6), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(247, 201, 75, .75), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-small { min-height: 40px; padding: 0 1.1em; font-size: .9rem; background: var(--card-2); border: 1px solid var(--line-2); }
.text-link { font-size: .9rem; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.text-link:hover { color: var(--fg); }

/* ── top-right pills ───────────────────────────────────────── */
.topbar { position: fixed; z-index: 40; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .95rem; border-radius: 999px; font-size: .875rem; font-weight: 500; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: border-color .2s, transform .3s var(--spring); }
.pill:hover { border-color: var(--fg-2); transform: translateY(-1px); }
.pill svg { width: 15px; height: 15px; }
.back { font-weight: 600; }
.theme svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
[data-theme="night"] .theme .moon, [data-theme="day"] .theme .sun { display: none; }
.theme .sun { color: #f7b93a; } .theme .moon { color: #c9d4ff; }
.player { position: relative; display: flex; gap: 6px; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff5b3a; box-shadow: 0 0 0 3px rgba(255, 91, 58, .25); }
.player.is-playing .rec { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 91, 58, .05); } }
.play-ico { color: #a78bfa; }
.player.is-playing .play-ico { display: none; }
.player-wave { display: none; width: 40px; height: 14px; }
.player.is-playing .player-wave { display: block; }
.player-more { width: 40px; padding: 0; justify-content: center; }
.player-more[aria-expanded="true"] svg { rotate: 180deg; }
.player-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; padding: 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 10px; }
.player-panel[hidden] { display: none; }
.player-now { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; }
.player-state { color: var(--muted); font-weight: 400; }
.player-tracks button { width: 100%; display: grid; text-align: left; padding: .5rem .7rem; border-radius: 10px; font-size: .9rem; }
.player-tracks button:hover { background: var(--card-2); }
.player-tracks button[aria-pressed="true"] { background: var(--card-2); box-shadow: inset 3px 0 0 var(--yellow); }
.player-tracks small { color: var(--muted); font-size: .78rem; }
.player-row { display: flex; gap: 10px; align-items: center; }
.player-mute { height: 34px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; }
.player-mute[aria-pressed="true"] { border-color: var(--yellow); }
.player-vol { flex: 1; display: flex; } .player-vol input { width: 100%; accent-color: var(--yellow); }
.player-note { font-size: .78rem; color: var(--muted); }

/* ── the dock: main navigation ─────────────────────────────── */
.dock { position: fixed; z-index: 40; left: 50%; bottom: 16px; translate: -50% 0; padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--shadow); }
.dock ul { display: flex; align-items: center; gap: 2px; }
.dock a { position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .95rem; border-radius: 16px; font-size: .9rem; font-weight: 500; color: var(--fg-2); transition: background .25s, color .2s; }
.dock-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; display: none; }
.dock a:hover { color: var(--fg); background: rgba(127, 127, 127, .12); }
.dock a[aria-current] { color: var(--fg); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.dock a[aria-current] .dock-ico { display: block; }
.dock-cv { background: var(--yellow); color: var(--yellow-ink) !important; font-weight: 650 !important; margin-left: 6px; }
.dock-cv:hover { background: #ffd765 !important; }
.dock-cv svg { width: 13px; height: 13px; }

/* ── HERO: you, your dog, a ridge over the valley ──────────── */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: linear-gradient(#0d1520, #131614); }
[data-theme="day"] .hero { background: linear-gradient(#bcd7ec, #f5f1e8); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-ready .hero-canvas { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(80% 70% at 0% 30%, rgba(10, 14, 18, .55), transparent 60%), linear-gradient(transparent 70%, var(--bg)); }
[data-theme="day"] .hero-shade { background: radial-gradient(70% 70% at 0% 30%, rgba(255, 252, 245, .65), transparent 60%), linear-gradient(transparent 72%, var(--bg)); }
.hero-copy { position: absolute; z-index: 2; left: var(--pad); top: clamp(80px, 13vh, 130px); max-width: 640px; }
.hello { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 500; color: var(--fg); margin-bottom: 1rem; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out 1s 2; }
@keyframes wave { 10%, 30% { rotate: 14deg; } 20% { rotate: -8deg; } 40% { rotate: 0deg; } }
.hero-title { font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.2rem); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
[data-theme="day"] .hero-title { text-shadow: none; }
.hero-sub { margin-top: 1.1rem; font-size: 1.15rem; color: var(--fg-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; }
.places { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.place { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .45rem; height: 32px; padding: 0 .75rem 0 .4rem; border-radius: 999px; translate: -50% -100%;
  background: rgba(20, 24, 22, .78); color: #f4f1ea; font-size: .82rem; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .6s var(--ease), background .2s, transform .35s var(--spring); pointer-events: auto; }
.place.is-on { opacity: 1; }
a.place:hover, a.place:focus-visible { background: var(--yellow); color: var(--yellow-ink); scale: 1.06; }
.place-dot { width: 20px; height: 20px; border-radius: 50%; background: #ff5b3a; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .25); }
.place-when { font-weight: 500; opacity: .7; font-size: .75rem; }
.place.me, .place.dog { pointer-events: none; padding: 0 .7rem; }
.me-face { font-size: .9rem; }
.hand-click { position: absolute; left: 0; top: 0; translate: -110% -150%; white-space: nowrap; opacity: 0; transition: opacity .6s; color: #f4f1ea; }
[data-theme="day"] .hand-click { color: var(--fg); }
.hand-click.is-on { opacity: 1; }
.scroll-pill { position: absolute; z-index: 2; left: 50%; bottom: 96px; translate: -50% 0; display: inline-flex; align-items: center; gap: .6rem; height: 38px; padding: 0 1rem 0 .5rem; border-radius: 999px; font-size: .85rem; color: var(--fg); background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.scroll-ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; }
.scroll-ring::after { content: ''; position: absolute; left: 50%; top: 4px; width: 3px; height: 6px; border-radius: 2px; background: var(--yellow); translate: -50% 0; animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 60% { translate: -50% 6px; opacity: 0; } 61% { translate: -50% -2px; opacity: 0; } }

/* ── STORY ─────────────────────────────────────────────────── */
.story { position: relative; padding: 18vh var(--pad) 14vh; }
.story-text { position: relative; z-index: 1; max-width: 18ch; font-family: var(--f-head); font-weight: 760; font-size: clamp(2.2rem, 1rem + 4.4vw, 5rem); line-height: 1.12; letter-spacing: -.03em; font-variation-settings: 'wdth' 92, 'opsz' 96; }
.js .story-text .w { opacity: .18; transition: opacity .4s; }
.js .story-text .w.on { opacity: 1; }
.circled { position: relative; white-space: nowrap; }
.circled svg { position: absolute; inset: -14% -5% -18%; width: 110%; height: 132%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: #ff5b3a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.4s var(--ease); }
.circled.is-in path { stroke-dashoffset: 0; }
.underlined { font-style: italic; text-decoration: underline wavy var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.notes { position: absolute; inset: 14vh var(--pad) auto; height: 70vh; pointer-events: none; }
.note { position: absolute; left: var(--x); top: var(--y); width: 220px; padding: 18px 18px 14px; rotate: var(--r); font: 600 1.05rem/1.3 var(--f-sans); color: #2a2412; border-radius: 4px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6), 0 2px 4px rgba(0, 0, 0, .12); cursor: grab; pointer-events: auto; touch-action: none; user-select: none; transition: box-shadow .2s, scale .3s var(--spring); }
.note::before { content: ''; position: absolute; left: 50%; top: -10px; width: 70px; height: 20px; translate: -50% 0; rotate: -3deg; background: rgba(255, 255, 255, .45); backdrop-filter: blur(2px); }
.note small { display: block; margin-top: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.note.is-dragging { cursor: grabbing; scale: 1.05; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7); z-index: 5; }
.note--yellow { background: #fbe38a; } .note--pink { background: #f8c9c2; } .note--green { background: #cfe8c7; } .note--blue { background: #c9dcf3; }
.notes .hand { position: absolute; left: var(--x); top: var(--y); rotate: -6deg; }
.worked { margin-top: 12vh; }
.worked-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; }
.worked-logos img { height: 26px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity .3s; }
[data-theme="day"] .worked-logos img { filter: grayscale(1) brightness(0); }
.worked-logos span { font-weight: 700; opacity: .55; }
.worked-logos li:hover img, .worked-logos li:hover span { opacity: 1; }

/* ── JOURNEY MAP ───────────────────────────────────────────── */
.journey { position: relative; height: calc(var(--stops) * 75vh + 100vh); }
.journey-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-bg { fill: #161b18; } [data-theme="day"] .map-bg { fill: #e9e3d4; }
.map-grid { stroke: rgba(255, 255, 255, .035); stroke-width: 1; } [data-theme="day"] .map-grid { stroke: rgba(0, 0, 0, .05); }
.map-world { transition: transform 1.2s var(--ease); transform-box: view-box; }
.land { fill: #222a24; stroke: #3a463c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.land--hi { fill: #2f3a2b; stroke: #6f8a5f; }
[data-theme="day"] .land { fill: #d8d0bd; stroke: #bfb59e; } [data-theme="day"] .land--hi { fill: #c9d6b0; stroke: #8ea270; }
.map-route { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
[data-theme="day"] .map-route { stroke: rgba(0, 0, 0, .18); }
.plane-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; }
.map-route-done { fill: none; stroke: #6d8cff; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(109, 140, 255, .6)); }
.pin { cursor: pointer; }
.pin circle.pin-bg { fill: #f4f1ea; stroke: #2a2f29; transition: r .4s var(--spring); }
.pin { transition: transform 1.2s var(--ease); }
.pin.is-active circle.pin-bg { fill: var(--yellow); }
.pin text { font: 600 12px var(--f-sans); fill: #f4f1ea; paint-order: stroke; stroke: #131614; stroke-width: 4px; }
[data-theme="day"] .pin text { fill: #1b1e1b; stroke: #f5f1e8; }
.pin .pin-halo { fill: rgba(247, 201, 75, .25); opacity: 0; transition: opacity .4s; }
.pin.is-active .pin-halo { opacity: 1; }
.journey-head { position: absolute; z-index: 2; top: 9vh; left: 50%; translate: -50% 0; width: min(90vw, 760px); text-align: center; transition: opacity .6s, translate .8s var(--ease); }
.journey.is-walking .journey-head { opacity: 0; translate: -50% -30px; pointer-events: none; }
.journey-title { font-size: clamp(2.4rem, 1.2rem + 3.8vw, 4.8rem); }
.journey-sub { margin-top: .8rem; color: var(--fg-2); }
.compass { position: absolute; z-index: 2; right: 24px; top: 72px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); display: grid; place-items: center; font-size: .65rem; color: var(--muted); }
.compass span { position: absolute; top: 3px; }
.compass i { width: 3px; height: 30px; border-radius: 2px; background: linear-gradient(#ff5b3a 50%, var(--fg-2) 50%); transition: rotate 1s var(--spring); }
.stops { position: absolute; z-index: 3; left: var(--pad); top: 50%; translate: 0 -50%; width: min(400px, 86vw); }
.stop { position: absolute; inset: 0 auto auto 0; width: 100%; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .7s var(--ease); transform: translateY(24px); }
.stop.is-active { opacity: 1; pointer-events: auto; transform: none; }
.journey:not(.is-walking) .stop { opacity: 0; pointer-events: none; }
.stop-card { padding: 20px 22px 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stop-top { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin: -20px -22px 16px; padding: 14px 22px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card-2); }
.stop-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f4f1ea; overflow: hidden; }
.stop-logo img { width: 34px; height: 24px; object-fit: contain; filter: grayscale(1) brightness(0); }
.stop-logo b { color: #131614; font-size: 1.2rem; }
.stop-top strong { display: block; font-size: .95rem; }
.stop-top small { color: var(--muted); font-size: .8rem; }
.stop-n { font-size: .75rem; color: var(--muted); }
.stop-card h3 { font-family: var(--f-head); font-weight: 750; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.025em; margin-bottom: .6rem; }
.stop-role { color: var(--yellow); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
[data-theme="day"] .stop-role { color: #8a6400; }
.stop-card p:not(.stop-role) { color: var(--fg-2); font-size: .95rem; }
.stop-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stop-gallery figure { padding: 6px 6px 4px; background: #f7f4ec; border-radius: 4px; rotate: -2deg; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.stop-gallery figure:nth-child(2) { rotate: 2deg; }
.stop-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a1e1b; }
.stop-gallery figcaption { font: 600 .9rem var(--f-hand); color: #333; text-align: center; }
.stop-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.timeline { position: absolute; z-index: 3; left: 50%; bottom: 92px; translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: .8rem; color: var(--fg-2); white-space: nowrap; opacity: 0; transition: opacity .5s; }
.journey.is-walking .timeline { opacity: 1; }
.tl-dots { display: flex; gap: 6px; }
.tl-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .3s, scale .3s; }
.tl-dots i.done { background: #6d8cff; }
.tl-dots i.now { background: var(--yellow); scale: 1.4; }

/* ── WORK ──────────────────────────────────────────────────── */
.work, .about { padding: 16vh var(--pad) 0; }
.deck { position: relative; display: flex; justify-content: center; margin: 9vh 0 6vh; height: clamp(400px, 46vw, 560px); perspective: 1400px; }
.deck-card { position: absolute; top: 0; left: 50%; width: clamp(260px, 26vw, 360px); --spread: clamp(110px, 13vw, 210px);
  transform: translateX(calc(-50% + (var(--i) - (var(--n) - 1) / 2) * var(--spread))) translateY(calc(var(--d) * 18px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 5deg));
  transition: transform .6s var(--spring), z-index 0s; z-index: calc(10 - var(--i)); }
.deck-card a { display: grid; gap: 10px; padding: 12px 12px 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.deck-card:hover, .deck-card:focus-within { transform: translateX(calc(-50% + (var(--i) - (var(--n) - 1) / 2) * var(--spread))) translateY(-36px) rotate(0deg) scale(1.06); z-index: 20; }
.deck-num { position: absolute; top: 22px; left: 22px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-size: .8rem; font-weight: 700; }
.deck-img { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3.4; background: var(--card-2); }
.deck-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.deck-card:hover .deck-img img { scale: 1.05; }
.deck-title { padding: 0 8px; font-family: var(--f-head); font-weight: 760; font-size: 1.6rem; letter-spacing: -.025em; line-height: 1; }
.deck-meta { padding: 0 8px; color: var(--muted); font-size: .9rem; }
.deck-open { padding: 0 8px; display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; font-weight: 600; }
.deck-open .ico { width: 1em; height: 1em; }
.shots-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-top: 10vh; }
.sub-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
.shot-rail { display: flex; gap: 20px; margin: 4vh calc(var(--pad) * -1) 0; padding: 10px var(--pad) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.shot-rail::-webkit-scrollbar { display: none; }
.shot-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shot-rail li { flex: none; width: clamp(280px, 42vw, 620px); scroll-snap-align: start; }
.shot { position: relative; display: block; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale .8s var(--ease); pointer-events: none; }
.shot:hover img { scale: 1.04; }
.shot-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); font-size: .85rem; }
.shot-cap span { color: var(--fg-2); }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6vw; margin-top: 6vh; align-items: start; }
.about-text { display: grid; gap: 1rem; color: var(--fg-2); max-width: 54ch; }
.lead { font-size: 1.35rem; color: var(--fg); line-height: 1.45; }
.about-grid:has(.polaroid) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.polaroids { position: relative; min-height: 700px; }
.polaroids .note { width: 230px; }
.polaroid { position: absolute; left: var(--x); top: var(--y); width: clamp(190px, 17vw, 250px); padding: 10px 10px 44px; background: #fbf8f1; rotate: var(--r); z-index: var(--i);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; touch-action: none; user-select: none; transition: scale .35s var(--spring), box-shadow .3s, rotate .5s var(--spring); }
.polaroid::before { content: ''; position: absolute; left: 50%; top: -12px; width: 76px; height: 22px; translate: -50% 0; rotate: 2deg; background: rgba(255, 255, 255, .5); backdrop-filter: blur(2px); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.polaroid:hover { scale: 1.04; rotate: calc(var(--r) * .4); z-index: 30; }
.polaroid.is-dragging { cursor: grabbing; scale: 1.08; z-index: 40; box-shadow: 0 40px 60px -26px rgba(0, 0, 0, .75); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; background: #ddd; }
.polaroid figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 700 1.3rem var(--f-hand); color: #2c2a26; }
.wall-hint { position: absolute; right: 2%; bottom: 0; rotate: -4deg; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); overflow: visible; }
.lightbox::backdrop { background: rgba(6, 8, 7, .82); backdrop-filter: blur(6px); }
.lightbox figure { padding: 14px 14px 56px; background: #fbf8f1; rotate: -1deg; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 700 1.6rem var(--f-hand); color: #2c2a26; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; box-shadow: var(--shadow); }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact { position: relative; padding: 18vh var(--pad) 120px; text-align: center; overflow: hidden; }
.clouds { position: absolute; inset: auto -10% 0; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 40% at 15% 85%, rgba(255,255,255,.07), transparent 70%), radial-gradient(28% 36% at 40% 95%, rgba(255,255,255,.08), transparent 70%), radial-gradient(34% 42% at 70% 88%, rgba(255,255,255,.07), transparent 70%), radial-gradient(30% 40% at 92% 96%, rgba(255,255,255,.06), transparent 70%); }
[data-theme="day"] .clouds { background: radial-gradient(30% 40% at 15% 85%, rgba(255,255,255,.9), transparent 70%), radial-gradient(28% 36% at 40% 95%, rgba(255,255,255,.95), transparent 70%), radial-gradient(34% 42% at 70% 88%, rgba(255,255,255,.9), transparent 70%), radial-gradient(30% 40% at 92% 96%, rgba(255,255,255,.85), transparent 70%); }
.contact-title { max-width: 14ch; margin: 0 auto; font-size: clamp(2.8rem, 1.2rem + 5vw, 6.2rem); }
.contact .sec-sub { margin: 1.2rem auto 0; }
/* boarding pass */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; max-width: 900px; margin: 7vh auto 0; text-align: left; color: #1d1f1b;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transition: transform .5s var(--spring); }
.ticket:hover { transform: rotate(-.6deg) translateY(-4px); }
.ticket-main, .ticket-stub { background: #fbf8f1; padding: 26px 30px; }
.ticket-main { border-radius: 26px 0 0 26px; -webkit-mask: radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; }
.ticket-stub { position: relative; border-radius: 0 26px 26px 0; border-left: 2px dashed #c9c1ad; display: grid; align-content: space-between; gap: 14px;
  -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #e3dccb; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6656; }
.ticket-air { color: #1d1f1b; letter-spacing: .04em; font-size: .95rem; text-transform: none; }
.ticket-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.ticket-route small, .ticket-meta dt, .ticket-stub small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a8471; }
.ticket-route strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.ticket-route span { font-family: var(--f-hand); font-size: 1.25rem; color: #4a4638; }
.ticket-plane svg { width: 100%; height: 24px; overflow: visible; }
.ticket-plane path { fill: none; stroke: #b9b19c; stroke-width: 2; }
.ticket-plane .tp { fill: #1d1f1b; stroke: none; transform-box: fill-box; transform-origin: center; transform: scaleX(-1); transition: transform 1.2s var(--ease); }
.ticket:hover .ticket-plane .tp { transform: translateX(26px) scaleX(-1); }
.ticket-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; padding: 14px 0; border-top: 1px dashed #d8d0bd; border-bottom: 1px dashed #d8d0bd; }
.ticket-meta dd { font-weight: 700; font-size: 1.05rem; }
.ticket-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ticket-cta .copy { color: #4a4638; margin: 0; }
.ticket-stub p strong { display: block; font-weight: 750; font-size: 1.2rem; }
.ticket-stub p span { font-size: .85rem; color: #6b6656; }
.barcode { height: 54px; background: repeating-linear-gradient(90deg, #1d1f1b 0 2px, transparent 2px 4px, #1d1f1b 4px 7px, transparent 7px 9px, #1d1f1b 9px 10px, transparent 10px 13px); border-radius: 2px; }
.stub-cv { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: .9rem; }
.stub-cv:hover { background: #ffd765; }

/* passport stamps */
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(16px, 3vw, 44px); margin-top: 8vh; }
.stamp { position: relative; display: grid; justify-items: center; gap: 6px; width: 150px; color: var(--ink); rotate: var(--rot); transition: rotate .5s var(--spring); }
.stamp-svg { width: 150px; height: 150px; overflow: visible; opacity: .9; mix-blend-mode: normal; transition: transform .25s var(--spring), opacity .2s; }
.stamp-svg .st-o { fill: none; stroke: currentColor; stroke-width: 5; stroke-dasharray: 1 0; }
.stamp-svg .st-i { fill: none; stroke: currentColor; stroke-width: 1.6; }
.stamp-svg .st-t { fill: currentColor; font: 800 11.5px var(--f-sans); letter-spacing: .12em; }
.stamp-svg .st-icon { fill: currentColor; }
.stamp-svg { -webkit-mask: radial-gradient(circle at 30% 20%, #000 60%, rgba(0,0,0,.75) 100%); mask: radial-gradient(circle at 30% 20%, #000 60%, rgba(0,0,0,.75) 100%); }
.stamp-name { font: 700 1.3rem var(--f-hand); color: var(--fg-2); opacity: 0; translate: 0 -4px; transition: opacity .3s, translate .3s var(--spring); }
.stamp:hover, .stamp:focus-visible { rotate: 0deg; }
.stamp:hover .stamp-svg, .stamp:focus-visible .stamp-svg { opacity: 1; animation: thump .45s var(--spring); }
.stamp:hover .stamp-name, .stamp:focus-visible .stamp-name { opacity: 1; translate: 0 0; }
.stamp:active .stamp-svg { transform: scale(.9); }
@keyframes thump { 0% { transform: scale(1.18) translateY(-10px); opacity: .4; } 55% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
.ink-red { --ink: #e2553f; } .ink-blue { --ink: #4f7fe6; } .ink-pink { --ink: #e05c96; } .ink-green { --ink: #3f9a6a; }
[data-theme="day"] .ink-red { --ink: #c43f2b; } [data-theme="day"] .ink-blue { --ink: #2b5fc9; } [data-theme="day"] .ink-pink { --ink: #c23c78; } [data-theme="day"] .ink-green { --ink: #2c7a51; }
.copy { font: 600 .85rem var(--f-sans); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot { margin-top: 10vh; font-size: .85rem; color: var(--muted); }

/* ── INNER PAGES ───────────────────────────────────────────── */
.page-inner main { padding-bottom: 120px; }
.page-hero { padding: 150px var(--pad) 40px; max-width: 1200px; }
.page-title { font-size: clamp(3.2rem, 1.2rem + 7vw, 8rem); }
.page-sec { padding: 60px var(--pad) 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 28px; }
.gcard { display: grid; gap: 10px; padding: 12px 12px 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--spring); }
.gcard:hover { transform: translateY(-6px); }
.gcard-img { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; } .gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-num { padding: 0 6px; font-size: .85rem; color: var(--muted); }
.gcard-title { padding: 0 6px; font-family: var(--f-head); font-weight: 760; font-size: 1.8rem; letter-spacing: -.025em; line-height: 1; }
.gcard-line { padding: 0 6px; color: var(--fg-2); font-size: .95rem; }
.index-list { border-top: 1px solid var(--line-2); }
.ix-row { display: grid; grid-template-columns: 1.2fr 1.2fr 2fr 24px; gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.ix-t { font-weight: 650; font-size: 1.15rem; } .ix-k, .ix-note { color: var(--muted); font-size: .92rem; }
a.ix-row:hover .ix-t { color: var(--yellow); }
.tag { font-size: .65rem; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry li { break-inside: avoid; margin-bottom: 20px; }
.masonry a { position: relative; display: block; border-radius: 22px; overflow: hidden; }
.masonry img { width: 100%; transition: scale .8s var(--ease); } .masonry a:hover img { scale: 1.04; }
.m-cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 10px; background: var(--glass); font-size: .82rem; opacity: 0; transition: opacity .2s; }
.masonry a:hover .m-cap, .masonry a:focus-visible .m-cap { opacity: 1; }
.case-hero { padding: 150px var(--pad) 40px; max-width: 1240px; display: grid; gap: 22px; justify-items: start; }
.case-intro { font-size: 1.3rem; color: var(--fg-2); max-width: 52ch; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 30px; width: 100%; }
.case-meta div { border-top: 1px solid var(--line-2); padding-top: 8px; }
.case-meta dt { font-size: .8rem; color: var(--muted); } .case-meta dd { font-size: .95rem; }
.nda { color: var(--muted); font-size: .9rem; }
.case-cover { padding: 0 var(--pad); } .case-cover img { width: 100%; max-height: 86vh; object-fit: cover; border-radius: 32px; background: var(--card); }
.page-case .case-cover img[src*="figma"] { object-fit: contain; padding: 4vw; }
.case-sections { padding: 0 var(--pad); max-width: 1240px; margin: 0 auto; display: grid; gap: 100px; padding-top: 100px; }
.cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; }
.cs-head { position: sticky; top: 90px; align-self: start; }
.cs-n { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.cs-head h2 { font-family: var(--f-head); font-weight: 760; font-size: clamp(1.8rem, 1rem + 1.6vw, 2.6rem); letter-spacing: -.025em; line-height: 1.02; }
.cs-content { display: grid; gap: 34px; }
.prose { display: grid; gap: 14px; font-size: 1.12rem; line-height: 1.65; color: var(--fg-2); max-width: 64ch; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose .arrows li, .prose .numbered li { position: relative; padding-left: 1.8em; }
.prose .arrows li::before { content: '→'; position: absolute; left: 0; color: var(--yellow); }
.prose .numbered { counter-reset: n; } .prose .numbered li { counter-increment: n; }
.prose .numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; font-weight: 700; font-size: .85rem; color: var(--yellow); top: .2em; }
[data-theme="day"] .prose .arrows li::before, [data-theme="day"] .prose .numbered li::before { color: #8a6400; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps div { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps dt { font-weight: 700; color: var(--fg); } .steps dd { font-size: .92rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; } .swatches li { display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.sw { width: 84px; height: 84px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery .fig:not(.fig--tall):not(.fig--small):first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.fig { border-radius: 22px; overflow: hidden; background: var(--card); }
.fig--small { display: grid; place-items: center; padding: 24px; }
.fig-link img { width: 100%; }
.fig--tall .fig-link { display: block; max-height: 880px; overflow: hidden; position: relative; }
.fig--tall .fig-link::after { content: 'Open full image ↗'; position: absolute; inset: auto 0 0; padding: 60px 14px 12px; font-size: .8rem; font-weight: 600; background: linear-gradient(transparent, var(--card) 70%); }
.compare { position: relative; overflow: hidden; border-radius: 22px; background: var(--card); user-select: none; }
.compare > img, .compare-before img { width: 100%; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--yellow); translate: -1.5px 0; pointer-events: none; }
.compare-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(.compare-range:focus-visible) { outline: 2.5px solid var(--yellow); outline-offset: 3px; }
.compare-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--glass); font-size: .8rem; font-weight: 600; }
.compare-tag--l { left: 12px; } .compare-tag--r { right: 12px; }
.todo { padding: 14px 16px; border-radius: 16px; border: 1.5px dashed #ff8a5b; color: #ff8a5b; font-size: .92rem; }
[data-theme="day"] .todo { color: #b4441a; border-color: #b4441a; }
.todo-inline { color: #ff8a5b; border-bottom: 1px dashed currentColor; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin: 140px var(--pad) 0; padding: 30px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); }
.next .eyebrow { grid-column: 1 / -1; margin: 0; }
.next-title { display: flex; align-items: center; gap: .3em; font-family: var(--f-head); font-weight: 760; font-size: clamp(2.4rem, 1rem + 4vw, 5rem); letter-spacing: -.035em; }
.next-title .ico { width: .5em; height: .5em; transition: translate .4s var(--ease); }
.next:hover .next-title .ico { translate: 8px 0; }
.next-img { border-radius: 22px; overflow: hidden; } .next-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nf { min-height: 80vh; display: grid; align-content: center; gap: 16px; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .cs { grid-template-columns: 1fr; gap: 20px; } .cs-head { position: static; }
  .next { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dock { bottom: 10px; width: calc(100% - 20px); }
  .dock ul { justify-content: space-between; }
  .dock a { flex-direction: column; gap: 2px; height: 50px; padding: 0 .55rem; font-size: .68rem; }
  .dock-ico { display: block; }
  .dock-cv { flex-direction: row !important; font-size: .78rem !important; padding: 0 .75rem !important; }
  .dock-cv svg { display: none; }
  .topbar { top: 10px; left: 10px; right: 10px; }
  .pill { height: 38px; padding: 0 .8rem; }
  .player-btn [data-play-label] { display: none; }
  .theme span { display: none; }
  .player-panel { position: fixed; left: 10px; right: 10px; top: 58px; width: auto; }
  /* phones: the scene takes the top of the screen, the words sit below it */
  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  .hero-canvas, .places { bottom: auto; height: 58svh; }
  .hero-shade, [data-theme="day"] .hero-shade { bottom: auto; height: 58svh; background: linear-gradient(transparent 70%, var(--bg)); }
  .hero-copy { position: relative; top: auto; left: auto; padding: calc(58svh - 10px) var(--pad) 0; max-width: none; }
  .hero-title { font-size: clamp(2.2rem, 9.6vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .scroll-pill { display: none; }
  .place { height: 28px; font-size: .72rem; }
  .place-when { display: none; }
  .hand-click, .place.me, .place.dog { display: none; }
  .story { padding-top: 12vh; }
  .notes { position: relative; inset: auto; height: auto; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; pointer-events: auto; }
  .note, .notes .hand { position: relative; left: auto; top: auto; }
  .notes .hand { display: none; }
  .journey { height: calc(var(--stops) * 80vh + 100vh); }
  .journey-head { top: 80px; }
  .stops { left: 12px; right: 12px; width: auto; top: auto; bottom: 150px; translate: none; }
  .stop { translate: 0 0; inset: auto 0 0 0; }
  .stop-card { padding: 16px 16px 18px; }
  .stop-top { margin: -16px -16px 12px; padding: 12px 16px; }
  .stop-card h3 { font-size: 1.35rem; }
  .stop-card p:not(.stop-role) { font-size: .88rem; }
  .stop-gallery { display: none; }
  .timeline { bottom: 76px; font-size: .72rem; }
  .compass { top: 60px; right: 12px; }
  .deck { display: flex; height: auto; margin-inline: calc(var(--pad) * -1); padding: 20px var(--pad) 30px; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; justify-content: flex-start; perspective: none; scrollbar-width: none; }
  .deck-card, .deck-card:hover, .deck-card:focus-within { position: relative; left: auto; transform: none; flex: none; width: 78vw; scroll-snap-align: center; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-radius: 22px 22px 0 0; padding: 20px; -webkit-mask: none; mask: none; }
  .ticket-stub { border-radius: 0 0 22px 22px; border-left: 0; border-top: 2px dashed #c9c1ad; grid-template-columns: 1fr 1fr; align-items: center; padding: 18px 20px; -webkit-mask: none; mask: none; }
  .ticket-route { gap: 10px; } .ticket-route strong { font-size: 2rem; }
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .stamp, .stamp-svg { width: 120px; } .stamp-svg { height: 120px; }
  .stamp-name { opacity: 1; translate: 0 0; }
  .about-grid:has(.polaroid) { grid-template-columns: 1fr; }
  .polaroids { min-height: 0; display: flex; gap: 18px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 24px var(--pad) 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .polaroid { position: relative; left: auto; top: auto; flex: none; width: 62vw; scroll-snap-align: center; touch-action: auto; }
  .wall-hint { display: none; }
  .ix-row { grid-template-columns: 1fr 24px; } .ix-k, .ix-note { grid-column: 1; }
  .ix-go { grid-row: 1; grid-column: 2; }
  .steps, .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .story-text .w { opacity: 1; }
  .hl { background-size: 100% 78%; }
  .circled path { stroke-dashoffset: 0; }
}
