/* ==========================================================================
   Flying Marmot — base.css  (owner: PAGE)
   Reset, design tokens, fluid layout, components and states. Theme-neutral:
   every colour, font and radius comes from a token, so a theme re-skins the
   page by overriding tokens under :root[data-theme="x"] and decorating the
   hook elements. See docs/THEMING.md for the full hook/token reference.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: light;

  /* colour */
  --bg: #F4EEE0;
  --bg-alt: #E9E2D0;
  --surface: #FFFDF8;
  --surface-2: #F3EBDA;
  --ink: #0C2C3C;
  --ink-soft: #3F5460;
  --ink-inverse: #FFFBF2;
  --accent: #B83E24;
  --accent-ink: #FFFFFF;
  --accent-2: #2F6E8E;
  --accent-2-ink: #FFFFFF;
  --accent-3: #B6701B;
  --line: rgba(12, 44, 60, .16);
  --shadow: 0 1px 2px rgba(12, 44, 60, .08), 0 14px 32px -14px rgba(12, 44, 60, .28);
  --shadow-lg: 0 2px 4px rgba(12, 44, 60, .08), 0 34px 64px -24px rgba(12, 44, 60, .42);
  --focus: #1A5F86;
  --puff: #FFFFFF;

  /* shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Impact, sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", "Segoe Script", cursive;
  --font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(.75rem, .73rem + .1vw, .8125rem);
  --step--1: clamp(.875rem, .85rem + .12vw, .9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.1rem + .45vw, 1.4375rem);
  --step-2: clamp(1.375rem, 1.2rem + .9vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.625rem, 1.9rem + 3.8vw, 4.75rem);

  /* layout */
  --container: 75rem;
  --gutter: clamp(1rem, .55rem + 2.2vw, 2.5rem);
  --section-pad: clamp(4rem, 2.9rem + 5vw, 8rem);
  --header-h: 4.25rem;
  --floor-h: clamp(4.5rem, 12vh, 9rem);
  --stage-w: clamp(13rem, min(74vw, 40vh), 31rem);
  /* The minimum is capped by width too, so a large default font size can't push the one-line
     wordmark past the edges of a phone. */
  --wordmark-size: clamp(min(2.5rem, 12vw), min(14vw, 9.5vh), 8.5rem);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* component tokens (themes may override; see THEMING.md) */
  --title-color: var(--ink);
  --title-shadow: none;
  --kicker-font: var(--font-mono);
  --kicker-color: var(--accent);
  --kicker-size: .8125rem;
  --kicker-transform: uppercase;
  --kicker-tracking: .16em;
  --btn-radius: 999px;
  --header-bg: var(--surface);
  --hero-bg: var(--bg);
}

@supports (height: 1svh) {
  :root {
    --floor-h: clamp(4.5rem, 12svh, 9rem);
    --stage-w: clamp(13rem, min(74vw, 40svh), 31rem);
    --wordmark-size: clamp(min(2.5rem, 12vw), min(14vw, 9.5svh), 8.5rem);
  }
}

/* ---------- 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* 100% up to 1600px wide, then everything rem-based grows gently (max 19px at 2560px). */
  font-size: clamp(100%, calc(100% + (100vw - 1600px) * .004), 118.75%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Theme-specific copy: only the active theme's spans show. */
:root:not([data-theme="diner"]) [data-only="diner"],
:root:not([data-theme="forest"]) [data-only="forest"],
:root:not([data-theme="airfield"]) [data-only="airfield"] { display: none !important; }

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  text-align: center;
}
.section-head > * + * { margin-top: 1rem; }

.kicker {
  margin: 0 0 .85rem;
  font-family: var(--kicker-font);
  font-size: var(--kicker-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--kicker-tracking);
  text-transform: var(--kicker-transform);
  color: var(--kicker-color);
}
.section-head .kicker { margin-bottom: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--title-color);
  text-shadow: var(--title-shadow);
  overflow-wrap: break-word;
}

.section-lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40rem;
  margin-inline: auto;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--title-color);
}

/* ---------- 4. Buttons, chips, badges ----------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 2.75rem;
  padding: .7em 1.4em;
  border: 2px solid var(--btn-border);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s, background-color .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; }

.btn--primary { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-border: var(--accent); }
.btn--secondary { --btn-bg: transparent; --btn-ink: var(--ink); --btn-border: currentColor; }
.btn--sm { min-height: 2.75rem; padding: .5em 1.1em; font-size: 1rem; }
.btn--lg { min-height: 3.25rem; padding: .75em 1.6em; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); }
.btn--xl { min-height: 3.75rem; padding: .8em 2.2em; font-size: clamp(1.3125rem, 1.15rem + .8vw, 1.75rem); }

.btn--store {
  --btn-bg: var(--ink);
  --btn-ink: var(--ink-inverse);
  --btn-border: var(--ink);
  gap: .7em;
  padding: .55em 1.3em .55em 1.05em;
  min-height: 3.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.btn--store .icon { width: 1.6em; height: 1.6em; }
.btn--store__text { display: flex; flex-direction: column; line-height: 1.15; }
.btn--store small { font-size: .7em; font-weight: 500; opacity: .82; letter-spacing: .02em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .3em .85em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .5em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.badge > span { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6em; }
.neon { color: var(--accent); }

/* ---------- 5. Header & navigation -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  color: var(--ink);
  background: transparent;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-menu-open,
html:not(.js) .site-header {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -20px rgba(12, 44, 60, .45);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.brand__mark { width: 3.1rem; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .75rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: .75rem; right: .75rem; bottom: .45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__item--contact { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .7rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-toggle__bars { position: relative; display: grid; gap: 4px; width: 1.1rem; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.site-header.is-menu-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-menu-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sound effects on/off (sound.js): a speaker button in the header bar on desktop, and a row at the
   bottom of the menu on phones (the phone header bar has no room). The icon follows
   <html class="sound-off">, which boot.js sets before first paint; hidden without JS or Web Audio. */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: .6rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s;
}
@media (hover: hover) {
  .sound-toggle:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(12, 44, 60, .55); }
}
.sound-toggle:active { transform: none; box-shadow: none; }
.sound-toggle .icon { width: 1.35rem; height: 1.35rem; }
.sound-toggle__icon { display: inline-flex; }
.sound-icon--off,
.sound-off .sound-icon--on { display: none; }
.sound-off .sound-icon--off { display: block; }
.site-nav__item--sound { display: none; }
html:not(.js) .sound-toggle,
html.no-audio .sound-toggle,
html.no-audio .site-nav__item--sound { display: none; }

@media (min-width: 47.5em) {
  .site-nav { margin-right: .25rem; }
}

@media (max-width: 64em) and (min-width: 47.5em) {
  .site-nav__link { padding: 0 .5rem; letter-spacing: .06em; }
  .site-nav__link::after { left: .5rem; right: .5rem; }
}
/* Just above the phone layout the bar is full: tighten it so the speaker button fits. */
@media (max-width: 54em) and (min-width: 47.5em) {
  .site-header__inner { gap: .5rem; }
  .site-nav { margin-right: 0; }
  .site-nav__link { padding: 0 .38rem; font-size: 1rem; letter-spacing: .05em; }
  .site-nav__link::after { left: .38rem; right: .38rem; }
}

@media (max-width: 47.49em) {
  :root { --header-h: 4rem; }
  .brand__mark { width: 2.6rem; }
  .brand__name { font-size: 1.1875rem; }
  .site-header__cta { order: 2; padding-inline: .9em; font-size: .9375rem; white-space: nowrap; }
  .brand { min-width: 0; }
  .nav-toggle { order: 3; }
  .js .nav-toggle { display: inline-flex; }
  .nav-toggle__label { font-size: .9375rem; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem max(var(--gutter), env(safe-area-inset-left)) 1.5rem max(var(--gutter), env(safe-area-inset-right));
    background: var(--header-bg);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(12, 44, 60, .5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .js .site-header.is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__link {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.5rem;
  }
  .js .site-nav__link::after { display: none; }
  .js .site-nav__item--contact { display: block; }
  .js .site-nav__item--contact .site-nav__link { border-bottom: 0; color: var(--accent); }
  .sound-toggle--bar { display: none; }
  .js .site-nav__item--sound { display: block; padding-top: .75rem; border-top: 1px solid var(--line); }
  .sound-toggle--menu { width: auto; min-width: 2.75rem; padding: 0 1.15rem 0 .85rem; font-size: 1.0625rem; }
  .sound-toggle--menu .icon { width: 1.25rem; height: 1.25rem; }

  /* No JS: the header stops being sticky and the nav wraps onto its own row. */
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .site-nav { order: 4; width: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
  html:not(.js) .site-nav__link { padding: 0 .5rem; font-size: 1rem; }
}

@media (max-width: 30em) {
  .nav-toggle { padding: 0; width: 2.75rem; }
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
@media (max-width: 23.4em) {
  .site-header__cta { display: none; }
}
/* Narrower than 20em means a phone with a large default font size (e.g. 32px at 390px wide):
   shrink the mark and let "Flying Marmot" wrap onto two lines instead of pushing the menu
   button off-screen. Normal 320px phones are exactly 20em, so they keep the one-line name. */
@media (max-width: 19.99em) {
  .brand__mark { width: 2rem; }
  .site-header .brand__name { font-size: 1rem; white-space: normal; }
  .brand--footer .brand__name { white-space: normal; } /* same in the footer, at its own size */
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: clip;
  /* Fill the first screen, with the content centred in it. Only unusually tall, narrow
     windows (taller than both 64rem and 1.5x their width, e.g. a portrait monitor) stop short. */
  min-height: 100vh;
  min-height: min(100svh, max(64rem, 150vw));
  margin-top: calc(-1 * (var(--header-h) + env(safe-area-inset-top)));
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(.75rem, 2.5vh, 2.5rem));
  padding-bottom: calc(var(--floor-h) + clamp(1.25rem, 3vh, 3rem));
  background: var(--hero-bg);
  text-align: center;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--floor-h);
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 1.5vh, 1.3rem);
}

.hero__stage {
  position: relative;
  width: var(--stage-w);
  aspect-ratio: 760 / 544;
  margin-block: clamp(.25rem, 2.2vh, 2rem) clamp(0rem, 1vh, 1rem);
}
.hero__stage::before,
.hero__stage::after { pointer-events: none; } /* free for themes */
/* z-index -1 (inside .hero__inner's stacking context): the sign and anything the themes hang
   off it (diner rays, forest halo rings) paint BEHIND the badge, wordmark and buttons, which are
   in-flow and would otherwise sit under a positioned z-index 0 sign. The marmot stays on top. */
.hero__sign {
  position: absolute;
  left: 50%; top: 52%;
  z-index: -1;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent-3) 18%, transparent) 0 78%, transparent 80%);
}
.hero__marmot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.js .hero__marmot { cursor: pointer; }

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: .9;
}
.wordmark__main {
  font-family: var(--font-display);
  font-size: var(--wordmark-size);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--title-color);
  text-shadow: var(--title-shadow);
  white-space: nowrap;
}
.wordmark__sub {
  margin-top: .35em;
  font-family: var(--font-display);
  font-size: calc(var(--wordmark-size) * .3);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.hero__tagline {
  max-width: 34ch;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.hero__sub {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.5;
  text-wrap: balance;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1rem;
  margin-top: clamp(.25rem, 1vh, .75rem);
}

@media (max-width: 30em) {
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 9.5rem; padding-inline: 1em; }
}

/* Short landscape phones: sign on the left, words on the right. */
@media (max-height: 30em) and (orientation: landscape) {
  :root { --stage-w: clamp(11rem, 30vw, 19rem); --wordmark-size: clamp(2.25rem, 6.2vw, 3.75rem); --floor-h: 3rem; }
  .hero { min-height: 100vh; min-height: 100svh; padding-bottom: calc(var(--floor-h) + 1.25rem); }
}
@media (max-height: 30em) and (orientation: landscape) and (min-width: 40em) {
  .hero { text-align: left; }
  .hero__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "stage badge" "stage title" "stage tagline" "stage sub" "stage ctas";
    align-content: center;
    justify-items: start;
    gap: .5rem clamp(1.5rem, 4vw, 3rem);
  }
  .hero__badge { grid-area: badge; }
  .hero__stage { grid-area: stage; align-self: center; margin: 0; }
  .wordmark { grid-area: title; align-items: flex-start; }
  .hero__tagline { grid-area: tagline; max-width: none; font-size: clamp(1.125rem, 2.4vw, 1.5rem); }
  .hero__sub { grid-area: sub; font-size: var(--step--1); }
  .hero__ctas { grid-area: ctas; justify-content: flex-start; width: auto; }
}

/* ---------- 7. Intro flight & hero reveal states (flight contract) ------ */
.flight-pending #hero-marmot { visibility: hidden; }
.flight-pending [data-hero-reveal] { opacity: 0; transform: translateY(12px); }
.flight-done [data-hero-reveal] {
  transition: opacity .6s ease, transform .7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 110ms);
}

.flight-puff {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border-radius: 50%;
  background: var(--puff, #fff);
}
.flight-flyer {
  position: fixed;
  z-index: 61;
  pointer-events: none;
}

@keyframes fm-idle-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -2.2%, 0) rotate(-1.2deg); }
}
#hero-marmot.is-idle { animation: fm-idle-bob 5.5s ease-in-out infinite; }

/* ---------- 8. Scroll reveals -------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 9. Section divider hook -------------------------------------- */
.section-divider { position: relative; display: block; height: 0; border-top: 1px solid var(--line); }

/* ---------- 10. Work (HoselRocket) --------------------------------------- */
.work { background: var(--bg); overflow: clip; }
.work__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .work__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.work__copy { max-width: 38rem; }
.work__copy > * + * { margin-top: 1.15rem; }
.work__copy > .kicker + .section-title { margin-top: 0; }
/* Capped by width as well, so a large default font size keeps "HoselRocket" on one line on a phone;
   a flex item won't shrink below its longest word, so if it still can't fit, it breaks, never clips. */
.work__title { display: flex; align-items: center; gap: .3em; font-size: min(var(--step-5), 12.75vw); }
.work__title > span { min-width: 0; overflow-wrap: anywhere; }
.work__icon {
  width: .9em; height: .9em;
  flex: none;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.work__lede { font-size: var(--step-2); font-weight: 500; line-height: 1.3; }
.work__text { color: var(--ink-soft); }
.work__chips { margin-top: 1.4rem; }
.store-links { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .4rem; }
.work__web {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .55rem;
  font-size: var(--step--1);
}
.work__web a { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
.work__note { color: var(--ink-soft); }

.work__showcase { position: relative; padding-block: clamp(1rem, 3vw, 2rem); }
.work__plate {
  position: absolute;
  left: 50%; top: 50%;
  width: min(96%, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  pointer-events: none;
}
.phones {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
  aspect-ratio: 1 / .96;
}
.phone {
  position: absolute;
  margin: 0;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: #121416;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    0 0 0 1.5px rgba(0, 0, 0, .55),
    0 28px 46px -20px rgba(12, 20, 28, .6),
    0 8px 14px -6px rgba(12, 20, 28, .35);
}
.phone::before { /* side button */
  content: "";
  position: absolute;
  right: -1.6%;
  top: 22%;
  width: 1.6%;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: #2a2e32;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 12% / 5.6%;
  background: #000;
  aspect-ratio: 360 / 779;
}
.phone--android .phone__screen { aspect-ratio: 360 / 760; border-radius: 9% / 4.2%; }
.phone--android { border-radius: 11% / 5.2%; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--ios .phone__screen::after { /* dynamic island */
  content: "";
  position: absolute;
  top: 1.7%;
  left: 50%;
  width: 30%;
  height: 3.3%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone--android .phone__screen::after { /* punch-hole camera */
  content: "";
  position: absolute;
  top: 1.4%;
  left: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
}
.phone--center { left: 50%; top: 0; width: 41%; z-index: 3; transform: translateX(-50%); }
.phone--left { left: 3%; top: 10%; width: 35%; z-index: 2; transform: rotate(-9deg); }
.phone--right { right: 3%; top: 10%; width: 35%; z-index: 2; transform: rotate(9deg); }

/* Gallery strip (full-bleed, scroll-snapping) */
.gallery-block { margin-top: clamp(4rem, 3rem + 5vw, 7.5rem); }
.gallery-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.gallery-block__hint { margin-top: .5rem; color: var(--ink-soft); font-size: var(--step--1); }
.gallery-nav { display: flex; gap: .6rem; }
html:not(.js) .gallery-nav { display: none; }
.gallery-nav__btn {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background-color .18s, color .18s, opacity .18s, transform .18s;
}
.gallery-nav__btn:hover:not([aria-disabled="true"]) { background: var(--ink); color: var(--ink-inverse); }
.gallery-nav__btn[aria-disabled="true"] { opacity: .35; cursor: default; }

.gallery {
  --edge: max(var(--gutter), env(safe-area-inset-left), (100% - var(--container)) / 2);
  --shot-w: clamp(10.5rem, 13vw + 4rem, 15.5rem);
  --shot-gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
  display: flex;
  gap: var(--shot-gap);
  margin: 0;
  padding: .75rem var(--edge) 1.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery__item { flex: 0 0 var(--shot-w); scroll-snap-align: start; }
.gallery__item--pair-start { margin-right: calc(-1 * var(--shot-gap)); }
.gallery__item--pair-end { scroll-snap-align: none; }
.gallery__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.gallery__item--pair-start .gallery__link { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gallery__item--pair-end .gallery__link { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gallery__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__link:focus-visible { outline-offset: 4px; }
.gallery__link img { width: 100%; aspect-ratio: 480 / 1039; object-fit: cover; }

/* Features */
.features-block { margin-top: clamp(4rem, 3rem + 5vw, 7.5rem); }
.features-block__title { margin-bottom: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1rem, .7rem + 1.2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--accent-2-ink);
}
.feature__icon svg { width: 1.55rem; height: 1.55rem; }
.feature__title {
  margin: 1rem 0 .4rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.feature p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 37.99em) {
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .feature__icon { grid-row: 1 / span 2; }
  .feature__title { margin-top: .55rem; }
}
@media (min-width: 38em) { .feature p { font-size: var(--step-0); } }

/* Under the hood */
.hood {
  --focus: var(--accent-3);
  margin-top: clamp(4rem, 3rem + 5vw, 7rem);
  padding: clamp(1.5rem, 1rem + 3vw, 3.75rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--ink-inverse);
}
.hood__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
}
.hood__head .subhead { color: inherit; }
.hood__head p { opacity: .8; }
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}
.stat { padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); background: var(--ink); }
@media (min-width: 30em) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-3);
}
.stat__num { font-size: var(--step-5); line-height: .95; }
.stat__unit { font-size: var(--step-1); font-weight: 700; letter-spacing: .06em; }
.stat__label { margin-top: .5rem; font-size: var(--step--1); line-height: 1.5; opacity: .85; }
.hood__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding: 0;
  list-style: none;
}
.hood__list h4 {
  margin-bottom: .4rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hood__list p { font-size: var(--step--1); line-height: 1.6; opacity: .85; }
.chips--tech .chip { background: transparent; border-color: rgba(255, 255, 255, .26); color: inherit; }

/* ---------- 11. Services ------------------------------------------------- */
.services { background: var(--bg-alt); overflow: clip; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1rem, .7rem + 1.3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: .6rem clamp(1rem, .8rem + 1vw, 1.6rem);
  align-content: start;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card__num {
  position: absolute;
  top: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  right: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card__icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.card__icon svg { width: 1.65rem; height: 1.65rem; }
.card__title, .card__text, .card__tags { grid-column: 2; }
.card__title {
  margin-top: .3rem;
  padding-right: 4.5rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.card__text { color: var(--ink-soft); }
@media (max-width: 30em) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .card__icon { grid-row: auto; }
  .card__title, .card__text, .card__tags { grid-column: 1; }
}
.card__tags {
  align-self: end;
  margin-top: .4rem;
  padding-top: .9rem;
  border-top: 1.5px dashed var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.6;
  color: var(--ink-soft);
}

.audiences {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
@media (min-width: 48em) {
  .audiences { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
}
.audience {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.audience > * + * { margin-top: .6rem; }
.audience__label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.audience__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.audiences__or { display: grid; place-items: center; }
.audiences__or span {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-inverse);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- 12. Rates ---------------------------------------------------- */
.rates { background: var(--bg); overflow: clip; }
.rate-board {
  container: rateboard / inline-size;
  position: relative;
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.rate-board__list { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.4rem); margin: 0; padding: 0; list-style: none; }
.rate { position: relative; }
.rate__line {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0;
}
.rate__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2.2cqi, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.rate__leader {
  flex: 1 1 2rem;
  min-width: 1.5rem;
  border-bottom: .2rem dotted currentColor;
  opacity: .45;
  transform: translateY(-.35em);
}
.rate__price {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
}
.rate__amount { font-size: clamp(1.75rem, 1.2rem + 3cqi, 3rem); line-height: 1; }
.rate__unit { font-size: clamp(1rem, .9rem + .6cqi, 1.3rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.rate__desc { margin-top: .4rem; max-width: 36rem; color: var(--ink-soft); }
.rate__burst {
  display: inline-grid;
  place-items: center;
  flex: none;
  align-self: center;
  padding: .3em .7em;
  border-radius: 999px;
  background: var(--accent-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rate-board__note {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  opacity: .8;
}
@container rateboard (max-width: 30rem) {
  /* name on its own line, then "········ $NN / hour" */
  .rate__line { flex-wrap: wrap; row-gap: .35rem; }
  .rate__name { flex: 1 0 100%; }
  .rate--vip .rate__name { flex-basis: auto; flex-grow: 0; padding-right: 0; }
  .rate--vip .rate__burst { order: 1; }
  .rate--vip .rate__leader { order: 2; flex-basis: 30%; }
  .rate--vip .rate__price { order: 3; }
  .rate--vip .rate__line::after { content: ""; order: 1; flex: 1 0 100%; height: 0; margin-bottom: -.35rem; }
  .rate--vip .rate__burst + .rate__leader { margin-left: 0; }
}
@container rateboard (max-width: 16.5rem) {
  /* too narrow for the name and the badge side by side: the badge starts line 2 */
  .rate--vip .rate__name { flex-basis: 100%; }
  .rate--vip .rate__line::after { display: none; }
}

.rates__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.25rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}
.rates__cta-text { font-size: var(--step-1); font-weight: 500; }

/* ---------- 13. Estimate (shell only; widget styled by estimator.css) --- */
.estimate { background: var(--bg-alt); overflow: clip; }
.estimate__body { max-width: 68.75rem; margin-inline: auto; }
.estimate__noscript {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

/* ---------- 14. Process -------------------------------------------------- */
.process { background: var(--bg); overflow: clip; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 1.2rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 36em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.75rem; height: 3.75rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.step__title {
  margin-bottom: .5rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.step p { color: var(--ink-soft); }

/* ---------- 15. About ---------------------------------------------------- */
.about { background: var(--bg-alt); overflow: clip; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 56em) { .about__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); } }
.about__copy { max-width: 40rem; }
.about__copy > * + * { margin-top: 1.1rem; }
.about__copy > .kicker + .section-title { margin-top: 0; }
.about__lede { font-size: var(--step-1); line-height: 1.5; }
.about__why { margin-top: 2rem !important; font-size: var(--step-2); }
.about__facts { margin-top: 1.75rem !important; padding: 0; list-style: none; }
.about__facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem 1rem;
  padding: .8rem 0;
  border-top: 1.5px solid var(--line);
  overflow-wrap: anywhere;
}
.about__facts li:last-child { border-bottom: 1.5px solid var(--line); }
.about__fact-label {
  min-width: 6.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about__facts a { font-weight: 600; }
.about__art { margin: 0; }
.about__frame {
  position: relative;
  max-width: 27rem;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- 16. Contact band --------------------------------------------- */
.contact { background: var(--bg-alt); text-align: center; overflow: clip; }
.ticket {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.75rem) clamp(1.25rem, .8rem + 3vw, 3.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.ticket__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ticket__title { font-size: var(--step-5); }
.ticket__text { max-width: 34rem; margin: 1.1rem auto 0; color: var(--ink-soft); }
.ticket__actions { margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.ticket__alt { margin-top: 1.25rem; font-size: var(--step--1); overflow-wrap: anywhere; }
.ticket__alt a { font-weight: 600; }
.ticket__foot {
  margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  padding-top: 1rem;
  border-top: 2px dashed var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 17. Footer & theme picker ------------------------------------ */
.site-footer {
  --focus: var(--accent-3);
  padding-block: clamp(3rem, 2.4rem + 3vw, 5rem) calc(clamp(2rem, 1.6rem + 2vw, 3rem) + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ink-inverse);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "nav" "picker" "legal";
  gap: 2rem;
}
@media (min-width: 52em) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand nav" "picker picker" "legal legal";
    align-items: start;
    column-gap: 3rem;
  }
}
.site-footer__brand { grid-area: brand; }
.site-footer__tagline { margin-top: .6rem; opacity: .8; font-size: var(--step--1); }
.brand--footer .brand__mark { width: 3.6rem; }
.brand--footer .brand__name { font-size: 1.6rem; }
.site-footer__nav { grid-area: nav; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal {
  grid-area: legal;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--step--1);
  opacity: .85;
  overflow-wrap: anywhere;
}
.site-footer__legal p + p { margin-top: .35rem; }

.theme-picker { grid-area: picker; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
html:not(.js) .theme-picker { display: none; }
.theme-picker__label {
  flex: 1 0 100%;
  margin-bottom: .15rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.theme-picker button {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .18s, color .18s, border-color .18s;
}
.theme-picker button:hover { border-color: currentColor; }
.theme-picker button[aria-pressed="true"] { background: var(--accent-3); border-color: var(--accent-3); color: var(--ink); }
.theme-picker button[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }

/* ---------- 18. Lightbox (built by main.js) ------------------------------ */
html.is-lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 14, 20, .9); }
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: .75rem;
  padding: calc(4.25rem + env(safe-area-inset-top)) max(4.5rem, env(safe-area-inset-left)) calc(1.25rem + env(safe-area-inset-bottom));
  touch-action: pan-y pinch-zoom;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .2s;
}
.lightbox__img.is-loading { opacity: .35; }
.lightbox__caption {
  max-width: 40rem;
  font-size: var(--step-0);
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}
.lightbox__count {
  display: block;
  margin-top: .2rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  opacity: .7;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .18s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__btn .icon { width: 1.4rem; height: 1.4rem; }
.lightbox__close { top: calc(.9rem + env(safe-area-inset-top)); right: max(.9rem, env(safe-area-inset-right)); }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: max(.75rem, env(safe-area-inset-left)); }
.lightbox__next { right: max(.75rem, env(safe-area-inset-right)); }
@media (max-width: 36em) {
  .lightbox__stage { padding-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right)); padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: none; }
  .lightbox__prev { left: calc(50% - 3.5rem); }
  .lightbox__next { right: calc(50% - 3.5rem); }
}

/* ---------- 19. 404 page ------------------------------------------------- */
.lost { min-height: 100vh; min-height: 100svh; margin-top: 0; padding-top: clamp(2rem, 6vh, 4rem); }
.lost .hero__stage { --stage-w: clamp(12rem, min(60vw, 36vh), 24rem); }
.lost .hero__marmot { transform: rotate(-16deg) translateX(8%); }
.lost__path {
  position: absolute;
  inset: -8% -20% -4% -30%;
  z-index: 0;
  width: 150%;
  height: 112%;
  color: var(--ink);
  opacity: .35;
  pointer-events: none;
}
.lost__title { font-size: var(--step-5); }
.lost__text { max-width: 36rem; color: var(--ink-soft); }
.lost__foot { margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-soft); }
/* Short landscape phones: the hero's sign-left grid, with the 404's own rows. */
@media (max-height: 30em) and (orientation: landscape) and (min-width: 40em) {
  .lost .hero__inner { grid-template-areas: "stage badge" "stage kicker" "stage title" "stage text" "stage ctas" "stage foot"; }
  .lost__kicker { grid-area: kicker; }
  .lost__title { grid-area: title; font-size: clamp(2rem, 1rem + 3.4vw, 3rem); }
  .lost__text { grid-area: text; font-size: var(--step--1); }
  .lost__foot { grid-area: foot; margin-top: .25rem; }
}

/* ---------- 20. Motion & print preferences ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  #hero-marmot.is-idle { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .gallery__link:hover, .sound-toggle:hover { transform: none; }
}

@media print {
  .site-header, .hero__floor, .hero__backdrop, .gallery-nav, .theme-picker, .section-divider { display: none !important; }
  .js [data-reveal], .flight-pending [data-hero-reveal] { opacity: 1 !important; transform: none !important; }
  .flight-pending #hero-marmot { visibility: visible !important; }
  .hero { min-height: 0; margin-top: 0; }
}
