/* Legends Meta funnel, variant B (WALK) v2: a scroll-scrubbed walk through the Langley campus.
 * Dark cinematic, v1 palette: near-black warm ink, warm white, rose. No neutral tones: every surface
 * is a tint of ink or rose, every text colour is paper, blush or rose. No box-shadow anywhere:
 * depth comes from borders, tone and layering.
 * Contrast (WCAG 2.x, computed against the darkest/lightest pairs used):
 *   paper #FFF3EC on ink #110A0C 17.9:1 · blush #F5D3DC on ink 13.9:1 · rose #F29BB4 on ink 9.0:1
 *   ink on rose 9.0:1 · paper on ink-2 #1E1115 16.6:1 · rose-line #B8657F border vs ink-2 4.0:1 (non-text, >= 3:1)
 * Text over the walk frames always sits on a solid ink panel (>= .88) or on the bottom scrim (>= .90 ink). */

/* Local fallbacks sized toward the webfonts, so the swap does not reflow the headlines much.
   Override values are estimates from the fonts' published metrics, not measured on a device. */
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 87%; ascent-override: 104%; descent-override: 27%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Hanken Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 98%; ascent-override: 102%; descent-override: 26%; line-gap-override: 0%;
}

:root {
  --ink: #110A0C;
  --ink-2: #1E1115;
  --ink-3: #2A1820;
  --paper: #FFF3EC;
  --blush: #F5D3DC;
  --rose: #F29BB4;
  --rose-deep: #E07C9A;
  --rose-line: #B8657F;
  --rose-glow: rgba(242, 155, 180, .22);
  --err: #FFB3A7;
  --bar-track: rgba(242, 155, 180, .38);
  --scrim: 17, 10, 12;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gut: 16px;
  --top-h: 74px;
  --dock-h: 82px;      /* 54px button + padding */
  --col: 460px;        /* desktop: centred phone column */
  --vh: 100vh;

  --serif: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Hanken Grotesk Fallback', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--ink); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.locked, html.locked body { overflow: hidden; overscroll-behavior: none; }
html.locked .backdrop { touch-action: none; }
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--rose); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 8px; }

.app { position: relative; max-width: var(--col); margin: 0 auto; background: var(--ink); }

/* ─────────────────────────── The walk ─────────────────────────── */
.walk { position: relative; height: var(--vh); }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: var(--vh);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.poster, .frames {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.frames { z-index: 1; }
.dim { position: absolute; inset: 0; z-index: 2; background: var(--ink); opacity: 0; pointer-events: none; }
.scrim-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  height: calc(var(--safe-t) + 128px);
  background: linear-gradient(to bottom, rgba(var(--scrim), .86) 0, rgba(var(--scrim), .74) calc(var(--safe-t) + 74px), rgba(var(--scrim), 0) 100%);
  pointer-events: none;
}
.scrim-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 58%;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0) 0, rgba(var(--scrim), .62) 30%, rgba(var(--scrim), .92) 55%, rgba(var(--scrim), .95) 100%);
  pointer-events: none;
  opacity: 0;
}
.overlays { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

/* scenes: built by b.js, hidden until shown */
.scene {
  position: absolute; inset: 0;
  visibility: hidden; opacity: 0;
  padding: calc(var(--safe-t) + var(--top-h) + 8px) calc(var(--safe-r) + var(--gut)) calc(var(--safe-b) + var(--dock-h) + 14px) calc(var(--safe-l) + var(--gut));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.scene a, .scene button { pointer-events: auto; }
.no-gsap .scene.is-on { visibility: visible; opacity: 1; }

.kicker {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.kicker .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 24px; letter-spacing: 0; text-transform: none; line-height: 1;
}
.head {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  line-height: 1.02; letter-spacing: -.012em;
  color: var(--paper);
  text-wrap: balance;
}
.head em { font-style: italic; color: var(--rose); }
/* SplitText word masks: room for italic overhang and descenders inside the clip */
.sw, .sw-mask { display: inline-block; }
.sw-mask { padding: .08em .06em .16em; margin: -.08em -.06em -.16em; vertical-align: top; }

/* intro + front door: the copy carries its own ink scrim, so every glyph sits on >= .90 ink */
.scene.intro, .scene.end { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.lower {
  padding: 92px calc(var(--safe-r) + var(--gut)) calc(var(--safe-b) + var(--dock-h) + 14px) calc(var(--safe-l) + var(--gut));
  background: linear-gradient(to bottom,
    rgba(var(--scrim), 0) 0,
    rgba(var(--scrim), .6) 44px,
    rgba(var(--scrim), .9) 88px,
    rgba(var(--scrim), .94) 100%);
}
.intro .head { font-size: clamp(46px, 13.4vw, 66px); }
.intro-sub { margin: 14px 0 0; max-width: 30ch; color: var(--blush); font-size: 17px; font-weight: 500; }
.cue {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 18px 0 0;
  color: var(--paper); font-size: 14px; font-weight: 600;
}
.cue-track { position: relative; width: 22px; height: 34px; border: 1.5px solid var(--rose); border-radius: 12px; }
.cue-track i { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose); animation: cue 1.4s var(--ease) 3; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* room card */
.room { justify-content: flex-end; }
.card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid rgba(242, 155, 180, .42);
  border-radius: 20px;
  background: rgba(var(--scrim), .9);
}
.card::before { /* rose edge that marks which room you are in */
  content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px;
  border-radius: 3px; background: var(--rose);
}
.card .kicker { margin-bottom: 6px; }
.card .head { font-size: clamp(36px, 10.4vw, 48px); }
.prog { margin: 8px 0 0; color: var(--blush); font-size: 14px; font-weight: 600; }
.prog b { color: var(--paper); font-weight: 700; }
.note { margin: 4px 0 0; color: var(--blush); font-size: 14px; font-weight: 500; }
.stats { display: grid; grid-template-columns: .8fr .9fr 1.3fr; gap: 0; margin: 12px 0 0; padding: 0; }
.stat { margin: 0; padding: 0 10px; border-left: 1px solid rgba(242, 155, 180, .32); min-width: 0; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dd { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat dt { margin: 4px 0 0; color: var(--blush); font-size: 12px; font-weight: 600; line-height: 1.25; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.desk-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.desk-list li { display: flex; gap: 12px; align-items: baseline; color: var(--blush); font-size: 15px; font-weight: 500; }
.desk-list b { color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; min-width: 56px; }

/* voice */
.voice { justify-content: center; align-items: center; text-align: center; }
.voice .kicker { justify-content: center; }
.clip {
  position: relative;
  margin: 0;
  width: min(72vw, 300px, calc((var(--vh) - 312px) * .8));
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--rose);
  background: var(--ink-2);
  pointer-events: auto;
  cursor: pointer;
  transform: rotate(-1.6deg);
}
.clip video { width: 100%; height: 100%; object-fit: cover; }
.cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 30px 14px 16px;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0), rgba(var(--scrim), .9) 34%, rgba(var(--scrim), .94));
  color: var(--paper); font-size: 15px; font-weight: 600; line-height: 1.35; text-align: left;
  text-wrap: pretty;
}
.cap:empty { display: none; }
.clip-bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.clip-bar i { display: block; height: 100%; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s linear; }
.clip-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.who { margin: 0; color: var(--blush); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.sound {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--rose); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sound svg { width: 20px; height: 20px; color: var(--rose); }
.sound .i-on { display: none; }
.sound[aria-pressed="true"] { background: var(--rose); color: var(--ink); }
.sound[aria-pressed="true"] svg { color: var(--ink); }
.sound[aria-pressed="true"] .i-on { display: block; }
.sound[aria-pressed="true"] .i-off { display: none; }

/* the front door */
.end .head { font-size: clamp(44px, 12.6vw, 62px); }
.route { margin: 16px 0 0; }
.route-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.route-labels li { color: var(--blush); font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
.route svg { display: block; width: 100%; height: auto; overflow: visible; }
.route .path { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.route .dot { fill: var(--ink); stroke: var(--rose); stroke-width: 2.5; }
.route .door { fill: var(--rose); }
.route .door-label { fill: var(--paper); font: 700 12px var(--sans); }
.visit-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.visit-list li { display: flex; gap: 12px; align-items: center; min-height: 28px; color: var(--blush); font-size: 15px; font-weight: 500; }
.visit-list b { color: var(--rose); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-width: 56px; }
.visit-list a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }

/* ─────────────────────────── Hotspot + peek ─────────────────────────── */
.spot {
  position: absolute; z-index: 6; left: 0; top: 0;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  padding: 0; border: 0; background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.spot-dot {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--rose); border: 3px solid var(--paper);
}
.spot-ring {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2px solid var(--rose);
  opacity: 0;
}
.spot.is-pulsing .spot-ring { animation: ring 1.3s var(--ease) 3; }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.spot-tag {
  position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--rose-line); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 700;
}
.spot.tag-left .spot-tag { left: auto; right: 40px; }

.peek {
  position: absolute; z-index: 7; left: 0; top: 0;
  width: min(60vw, 250px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--rose);
  background: var(--ink-2);
}
.peek video { width: 100%; height: 100%; object-fit: cover; }
.peek-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 24px 12px 10px;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0), rgba(var(--scrim), .92) 45%);
  color: var(--paper); font-size: 13px; font-weight: 700;
}
.peek-close { position: absolute; top: 6px; right: 6px; }
.peek-close::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink); border: 1px solid var(--rose-line); z-index: -1; }
.peek-close { isolation: isolate; }

/* ─────────────────────────── Chrome ─────────────────────────── */
.chrome-top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 10;
  max-width: var(--col); margin: 0 auto;
  padding: calc(var(--safe-t) + 10px) calc(var(--safe-r) + 12px) 0 calc(var(--safe-l) + 12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.past-walk .chrome-top { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.bars { display: flex; gap: 4px; height: 3px; }
.bar { flex: 1 1 0; height: 3px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); }
.brand-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 44px; }
.logo { height: 30px; width: auto; flex: 0 0 auto; }
.brand-txt {
  margin: 0; flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; line-height: 1.2;
  padding-left: 10px; border-left: 1px solid rgba(242, 155, 180, .45);
}
.brand-txt > span:first-child { font-size: 14px; font-weight: 700; color: var(--paper); }
.brand-sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--blush); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  max-width: var(--col); margin: 0 auto;
  display: flex; align-items: stretch;
  padding: 12px calc(var(--safe-r) + var(--gut)) calc(var(--safe-b) + 14px) calc(var(--safe-l) + var(--gut));
  pointer-events: none;
}
.btn {
  pointer-events: auto;
  position: relative;
  flex: 1 1 auto; min-width: max-content;
  min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--rose); border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-label { white-space: nowrap; }
.btn-next { background: var(--ink); color: var(--paper); }
.btn-next svg { color: var(--rose); }
.btn-book { background: var(--rose); color: var(--ink); }
.dock .btn-book { margin-left: 10px; }
.dock .btn.is-collapsed {
  flex: 0 0 0; width: 0; min-width: 0; margin: 0; padding: 0; border-width: 0;
  opacity: 0; visibility: hidden;
}
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

/* ─────────────────────────── Footer ─────────────────────────── */
.foot {
  position: relative;
  padding: 40px calc(var(--safe-r) + 20px) calc(var(--safe-b) + var(--dock-h) + 28px) calc(var(--safe-l) + 20px);
  border-top: 1px solid rgba(242, 155, 180, .32);
  background: var(--ink);
}
.foot-logo { height: 36px; width: auto; }
.foot-name { margin: 14px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--paper); }
.foot-list { margin: 16px 0 0; display: grid; gap: 8px; }
.foot-list div { display: flex; gap: 12px; align-items: center; min-height: 28px; }
.foot-list dt { min-width: 60px; color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.foot-list dd { margin: 0; color: var(--blush); font-size: 15px; font-weight: 500; }
.foot-list a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }
.foot-legal { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(242, 155, 180, .24); color: var(--blush); font-size: 13px; line-height: 1.6; }
.foot-legal span { white-space: nowrap; }
.foot-legal a { color: var(--rose); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

/* ─────────────────────────── Sheet (v1, minus shadows) ─────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; max-width: var(--col); margin: 0 auto; }
.backdrop { position: absolute; inset: 0; background: rgba(var(--scrim), .76); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100vh - var(--safe-t) - 20px);
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px calc(var(--safe-r) + 20px) calc(var(--safe-b) + 28px) calc(var(--safe-l) + 20px);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(242, 155, 180, .45);
  background: radial-gradient(120% 60% at 50% 0%, var(--rose-glow) 0%, rgba(242, 155, 180, 0) 60%), var(--ink-2);
}
@supports (height: 100dvh) { .sheet { max-height: calc(100dvh - var(--safe-t) - 20px); } }
.sheet.dragging { transition: none; }
.sheet.settling { transition: transform .3s var(--ease); }
.grab { display: flex; justify-content: center; padding: 6px 0 10px; touch-action: none; cursor: grab; }
.grab span { width: 44px; height: 5px; border-radius: 5px; background: var(--rose-line); }
.sheet-close { position: absolute; top: 8px; right: calc(var(--safe-r) + 8px); }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 999px; padding: 0;
  background: transparent; color: var(--paper);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 22px; height: 22px; }

.sheet .kicker { margin-top: 6px; }
.sheet-title { margin: 0; padding-right: 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9.6vw, 44px); line-height: 1.02; color: var(--paper); }
.sheet-title:focus { outline: none; }
.sheet-lede { margin: 10px 0 18px; color: var(--blush); font-size: 16px; }

.q { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.q legend { padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 48px; padding: 8px 16px;
  border: 1.5px solid var(--rose-line); border-radius: 14px;
  background: var(--ink-3); color: var(--paper);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.chip small { font-size: 12.5px; font-weight: 500; color: var(--blush); margin-top: 2px; }
.chip span:active { transform: scale(.97); }
.chip input:checked + span { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.chip input:checked + span small { color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }

.fields { display: grid; gap: 14px; margin: 4px 0 16px; }
.field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--paper); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--rose-line); border-radius: 12px;
  background: var(--ink-3); color: var(--paper);
  font: 500 16px/1.2 var(--sans);
  -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: var(--rose); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-err, .form-err { margin: 6px 0 0; color: var(--err); font-size: 14px; font-weight: 600; }
.form-err { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--err); border-radius: 12px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 16px; color: var(--paper); font-size: 15px; font-weight: 500; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid var(--rose-line); border-radius: 8px; background: var(--ink-3); color: var(--ink); }
.check .box svg { width: 18px; height: 18px; opacity: 0; }
.check input:checked + .box { background: var(--rose); border-color: var(--rose); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--paper); outline-offset: 3px; }

.cta-submit { width: 100%; }
.cta-submit[disabled] { cursor: progress; }
.fine { margin: 14px 0 0; color: var(--blush); font-size: 13.5px; }
.fine a { color: var(--rose); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

.booking { position: relative; margin: 0 0 8px; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--rose-line); }
.booking-wait { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--ink); font-weight: 600; }
.booking iframe { position: relative; display: block; width: 100%; height: 680px; border: 0; background: transparent; }
.booking-fail { margin: 0 0 12px; padding: 16px; border: 1.5px solid var(--rose); border-radius: 16px; background: var(--ink-3); }
.booking-fail p { margin: 0 0 12px; color: var(--blush); font-size: 15px; }
.booking-fail .booking-fail-title { color: var(--paper); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.booking-fail .btn { width: 100%; }
.booking-alt { margin: 4px 0 12px; }
.call { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--rose); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 16px; }
.call svg { width: 20px; height: 20px; color: var(--rose); }
.done-line { margin: 16px 0 0; color: var(--blush); font-size: 16px; font-weight: 500; }

.noscript { position: fixed; inset: auto 0 0 0; padding: 20px; background: var(--ink); color: var(--paper); z-index: 40; }

/* ─────────────────────────── Short screens (in-app browsers) ─────────────────────────── */
@media (max-height: 700px) {
  :root { --top-h: 68px; --dock-h: 76px; }
  .btn { min-height: 50px; }
  .intro .head { font-size: clamp(40px, 11.6vw, 54px); }
  .intro-sub { font-size: 16px; margin-top: 10px; }
  .card { padding: 13px 14px 12px; }
  .card .head { font-size: clamp(32px, 9.2vw, 40px); }
  .stat dd { font-size: 26px; }
  .end .head { font-size: clamp(38px, 11vw, 50px); }
  .route { margin-top: 10px; }
  .visit-list { margin-top: 8px; }
  .clip { width: min(66vw, 260px, calc((var(--vh) - 290px) * .8)); }
}
@media (max-width: 400px) {
  .dock .btn { font-size: 16px; padding: 0 13px; gap: 8px; }
  .dock .btn svg { width: 18px; height: 18px; }
  .dock .btn-next svg { display: none; } /* frees ~26px so two labels fit side by side at 360px */
  .dock .btn-book { margin-left: 8px; }
}
@media (max-width: 370px) {
  .stat dd { font-size: 25px; }
}

/* Desktop: the walk stays a centred phone column on a rose-tinted ink field */
@media (min-width: 600px) {
  html, body { background: #0B0608; }
  .app { border-left: 1px solid rgba(242, 155, 180, .2); border-right: 1px solid rgba(242, 155, 180, .2); }
  .clip { width: min(300px, calc((var(--vh) - 312px) * .8)); }
  .peek { width: 250px; }
}

/* ─────────────────────────── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
