/* CampSwoop — luxury night. Warm black, one ember accent. A high-contrast serif for headlines, wide
   Archivo for figures, actions and text, a mono for short labels; hairline rules, 2 px corners. */
:root {
  --ground: #0b0a09;
  --surface: #141210;
  --surface-2: #1d1a17;
  --line: rgba(244, 239, 230, 0.1);
  --line-strong: rgba(244, 239, 230, 0.24);
  --edge: rgba(244, 239, 230, 0.4); /* outlines of controls: 3:1 against the ground (WCAG 1.4.11) */
  --ink: #f4efe6;
  --ink-2: #bdb4a8;
  --ink-3: #8f877c;
  --ember: #ff4a1c;
  --ember-hi: #ff6a3d;
  --ember-soft: rgba(255, 74, 28, 0.12);
  --on-ember: #170a05;
  --font-display: "Noto Serif Display", "Bodoni 72", Didot, Georgia, serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* entrances: the hero and scroll reveals */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* presses and small UI changes */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* things that move from one place to another */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* the phone sheet */
  /* Installed on an iPhone the page runs under the status bar and home indicator (viewport-fit=cover). */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --nav-bar: 72px;
  --nav-h: calc(var(--nav-bar) + var(--safe-top));
  --gutter: max(clamp(16px, 4.4vw, 64px), var(--safe-left), var(--safe-right));
  /* The left edge of the 1440px content column, for full-width bands (nav, hero, specs, teaser, footer). */
  --inset-x: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  --col-gap: clamp(12px, 1.6vw, 24px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  /* Anything scrolled or tabbed to lands below the fixed nav, never under it. */
  scroll-padding-top: calc(var(--nav-h) + 16px); scroll-padding-bottom: 24px;
}
:root:has(body[data-tab="map"]) { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ember); color: var(--on-ember); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
p, li, dd, summary { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
/* Controls answer on touch-down and never select their own labels on a long press. */
button, a, label, summary, [role="tab"] { touch-action: manipulation; }
button, .btn, .nav-cta, .chips label, .toggle, summary {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: fixed; left: 16px; top: -48px; z-index: 50; background: var(--ember); color: var(--on-ember);
  padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(var(--nav-h) + 8px); }

/* ---------- Type ---------- */
/* Headlines: the serif, title case, two lines at most. */
.how h2, .teaser h2, .faq h2, .footer-mark {
  font-family: var(--font-display); font-weight: 400; font-stretch: 82%;
  letter-spacing: -0.015em; line-height: 0.98; text-wrap: balance;
}
/* Labels: the mono, short, for names and data. Hints, fine print and errors stay in Archivo. */
.hero-kicker, .steps-label, .step-n, .specs dt, .field-label, .options summary, .preview figcaption, .sheet-handle,
.map-clock, .pop-kicker, .map-results .group, .facts dt, .tick {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; font-stretch: normal;
  letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; color: var(--ink-3);
}
.hint { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font: inherit; font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn-ember { background: var(--ember); color: var(--on-ember); }
.btn-ember:active:not(:disabled) { background: var(--ember-hi); }
.btn-ghost { background: rgba(11, 10, 9, 0.35); color: var(--ink); border-color: var(--edge); }
.btn-ghost:active { background: rgba(244, 239, 230, 0.1); }
.btn:disabled { opacity: 0.32; cursor: not-allowed; }
/* A disabled primary keeps readable text; .needs says what's missing. */
.btn-ember:disabled { opacity: 1; background: transparent; color: var(--ink-3); border-color: var(--line-strong); }
.needs { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.needs:empty { display: none; }
.link {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.link:active:not(:disabled) { color: var(--ember-hi); }
.link:disabled { opacity: 0.4; cursor: default; color: var(--ink); text-decoration-color: var(--line); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: var(--safe-top) var(--inset-x) 0;
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
/* Two layers that crossfade: a gradient can't fade into a flat colour, so swapping them would blink. */
.nav::before, .nav::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity 0.3s ease; }
.nav::before { background: linear-gradient(180deg, rgba(11, 10, 9, 0.7), rgba(11, 10, 9, 0)); }
.nav::after { background: rgba(11, 10, 9, 0.94); opacity: 0; }
.nav.solid, body[data-tab="map"] .nav { border-bottom-color: var(--line); }
.nav.solid::before, body[data-tab="map"] .nav::before { opacity: 0; }
.nav.solid::after, body[data-tab="map"] .nav::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--ember); }
.brand span { font-stretch: 125%; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; font-size: 15px; }
/* The Watch / Map switch: a capsule whose ink slides to the chosen side. */
.tabs {
  position: absolute; left: 50%; top: calc(var(--safe-top) + (var(--nav-bar) - 40px) / 2); transform: translateX(-50%);
  height: 40px; display: flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: rgba(11, 10, 9, 0.6);
}
.tab {
  position: relative; z-index: 1;
  font: inherit; font-size: 11px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); background: none; border: 0; padding: 0 20px; cursor: pointer; transition: color 0.35s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ground); }
.tab:active { opacity: 0.7; }
/* 1px wide, scaled to the tab: transform only, so it stays smooth while the map loads. Placed without
   animation on load; it only slides when someone switches tabs. */
.tab-ink {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 1px; background: var(--ink);
  transform-origin: 0 0; transform: scaleX(0); transition: transform 0.3s var(--ease-in-out);
}
.nav-cta {
  font-size: 12px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border: 1px solid var(--edge); border-radius: 2px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
}
.nav-cta:active { transform: scale(0.97); }
body[data-tab="map"] .nav-cta { visibility: hidden; }

/* ---------- Hero: everything at the top ---------- */
/* What this is, the booking, how it works and the key figures, starting just under the nav so the first
   screen explains itself. The video runs behind all of it. */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ground); }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.04); animation: hero-in 2.4s var(--ease) both;
}
/* Both loops are graded in the files (muted, so ember stays the one saturated colour), not with a CSS filter. */
.hero[data-phase="night"] .hero-media { object-position: 35% 50%; transform: scaleX(-1) scale(1.04); animation-name: hero-in-flip; }
.hero[data-phase="day"] .hero-media { object-position: 50% 62%; }
/* Words run across the whole width now, so the video is dimmed everywhere and most on the left. */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.86) 0%, rgba(11, 10, 9, 0.6) 48%, rgba(11, 10, 9, 0.28) 100%),
    linear-gradient(0deg, var(--ground) 0%, rgba(11, 10, 9, 0.6) 26%, rgba(11, 10, 9, 0.12) 62%, rgba(11, 10, 9, 0.55) 100%);
}
/* At night the flames sit behind the steps, so darken that patch as well. */
.hero[data-phase="night"] .hero-shade {
  background:
    radial-gradient(60% 50% at 30% 66%, rgba(11, 10, 9, 0.6), rgba(11, 10, 9, 0) 72%),
    linear-gradient(90deg, rgba(11, 10, 9, 0.86) 0%, rgba(11, 10, 9, 0.6) 48%, rgba(11, 10, 9, 0.28) 100%),
    linear-gradient(0deg, var(--ground) 0%, rgba(11, 10, 9, 0.6) 26%, rgba(11, 10, 9, 0.12) 62%, rgba(11, 10, 9, 0.55) 100%);
}
.hero-inner { position: relative; padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) var(--inset-x) 0; }
.hero-kicker { margin-bottom: 12px; color: var(--ink-2); animation: fade 1.2s var(--ease) 0.2s both; }
.hero-copy { max-width: 620px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink); margin-bottom: 24px; }
/* Coming back to the Watch tab shows the hero as it was left, without replaying its entrance. */
.hero.played :is(.hero-media, .hero-kicker, .rise) { animation: none; }
.rise { animation: rise 0.8s var(--ease) both; }
.hero-copy.rise { animation-delay: 0.1s; }
.watch.rise { animation-delay: 0.18s; }
.watch-meta.rise { animation-delay: 0.26s; }
.steps-wrap.rise { animation-delay: 0.34s; }
.specs.rise { animation-delay: 0.42s; }

/* The booking bar: campground, dates, email and the button, in one row on a wide screen. */
.watch {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) auto;
  max-width: 1200px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
}
.cell { position: relative; min-width: 0; padding: 14px 18px 10px; border-left: 1px solid var(--line); }
.cell:first-child { border-left: 0; }
.cell:focus-within { box-shadow: inset 0 -2px 0 var(--ember); }
.field-label { display: block; margin-bottom: 2px; }
.field {
  width: 100%; font: inherit; font-size: 20px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; padding: 12px 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-bottom-color: var(--ember); box-shadow: 0 1px 0 0 var(--ember); }
.cell .field { font-size: 17px; padding: 6px 0 4px; border-bottom: 0; }
.cell .field:focus { box-shadow: none; }
/* color-scheme: dark already draws these light; inverting them made them vanish. */
.field[type="search"]::-webkit-search-cancel-button, .field[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: 0.8; cursor: pointer; }
/* iOS draws date inputs centred, and collapses an empty one; keep them left-aligned and full height. */
.field[type="date"] { -webkit-appearance: none; appearance: none; min-height: 52px; min-width: 0; }
.cell .field[type="date"] { min-height: 34px; }
.field[type="date"]::-webkit-date-and-time-value { text-align: left; }
.watch-go { min-height: 100%; border-radius: 0; padding: 0 30px; }
.watch-go:disabled { border-width: 0 0 0 1px; border-color: var(--line); }
.place-input { display: flex; align-items: center; gap: 6px; }
.place-input .field[readonly] { cursor: default; text-overflow: ellipsis; }
/* A chosen campground has our × (.clear); the browser's own would make two. */
.place-input .field[readonly]::-webkit-search-cancel-button { display: none; }
.clear {
  flex: none; width: 36px; height: 36px; margin-right: -8px; font-size: 20px; line-height: 1; color: var(--ink-2);
  background: none; border: 0; border-radius: 2px; cursor: pointer;
}
.place-detail { font-size: 12px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-detail:empty { display: none; }
.results {
  position: absolute; z-index: 6; left: -1px; top: calc(100% + 1px); width: max(calc(100% + 2px), 420px); max-height: min(380px, 60vh);
  overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--line); }
.results button {
  display: block; width: 100%; min-height: 44px; text-align: left; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; padding: 12px 16px; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.results button:focus-visible, .results button:active:not(:disabled) { background: var(--surface-2); color: var(--ember-hi); outline-offset: -2px; }
.results button:disabled { color: var(--ink-3); cursor: default; background: none; }
.results small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

.watch-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 28px; max-width: 1200px; margin-top: 6px; }
.watch-meta .hint { margin-top: 12px; }
.find-map { margin-left: auto; min-height: 44px; font-size: 14px; }
.options summary {
  list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--ink-2);
}
.options summary::-webkit-details-marker { display: none; }
.options summary::after {
  content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease-out);
}
.options[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.options summary b { font-family: var(--font-text); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.options-body { padding: 4px 0 12px; }
.watch-status { max-width: 1200px; }
.watch-status .needs { margin-top: 2px; }

.notice {
  margin-top: 12px; padding: 12px 14px; font-size: 15px;
  border: 1px solid rgba(255, 74, 28, 0.45); background: var(--ember-soft); color: var(--ink);
}
.notice a { color: inherit; }
.notice:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--edge); border-radius: 2px; cursor: pointer; font-size: 15px; background: rgba(11, 10, 9, 0.5);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
}
.chips label:active { transform: scale(0.97); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--ember); background: var(--ember-soft); color: var(--ink); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.length { margin-top: 14px; max-width: 180px; }
.result { margin-top: 12px; padding: 14px 16px; font-size: 15px; border: 1px solid var(--line-strong); background: var(--surface); animation: settle 0.24s var(--ease-out) both; }
/* Success is calm and neutral; ember borders mean something needs fixing. */
.result.ok { border-color: var(--edge); background: var(--surface-2); color: var(--ink); }
.result.ok::before { content: "✓"; color: var(--ember-hi); font-weight: 700; margin-right: 8px; }
.result.error { border-color: rgba(255, 74, 28, 0.6); background: var(--ember-soft); color: var(--ink); }
.result .link { margin-left: 4px; }

/* How it works: four numbered steps in a row under the booking. */
.steps-wrap { max-width: 1200px; margin-top: clamp(32px, 5vh, 56px); }
.steps-label { margin-bottom: 14px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start;
  padding: 18px 20px 16px 0; border-top: 1px solid var(--line-strong);
}
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.step-n { grid-row: span 2; padding-top: 4px; color: var(--ember-hi); }
.steps b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.steps li > span:last-child { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* The spec bar: a glyph and a short label over a big wide figure. */
.specs {
  position: relative; margin: clamp(32px, 5vh, 64px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); padding: 0 var(--inset-x);
}
.specs > div { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 18px 0 calc(24px + var(--safe-bottom)); }
.specs > div + div { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.specs dt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.glyph { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.specs dd {
  margin: 0; align-self: end; font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 3.1vw, 48px);
  line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.specs .unit { margin-left: 0.28em; font-size: 0.42em; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }

/* ---------- What you'll get: the example alert ---------- */
.how, .faq { padding-left: var(--gutter); padding-right: var(--gutter); }
.how h2, .teaser h2 { font-size: clamp(38px, 4.8vw, 72px); }
.how {
  max-width: 1440px; margin: 0 auto; padding-top: clamp(88px, 10vw, 152px); padding-bottom: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.how h2 { margin-bottom: 24px; }
.how-copy > p { color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.how-copy > .fine { margin-top: 16px; font-size: 14px; }
.preview { display: grid; gap: 10px; }
.preview-frame { position: relative; border: 1px solid var(--line); background: #0b0a09; aspect-ratio: 1; overflow: hidden; }
.preview-frame video { width: 100%; height: 100%; object-fit: cover; }
.replay {
  position: absolute; right: 12px; bottom: 12px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink); background: rgba(11, 10, 9, 0.85); border: 1px solid var(--edge);
  min-height: 44px; padding: 0 14px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
}
.replay:active { transform: scale(0.97); }

/* ---------- Map teaser: the 12-column grid drawn around a still of the real globe ---------- */
.teaser {
  position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(88px, 11vw, 168px) var(--inset-x);
}
.teaser::before {
  content: ""; position: absolute; inset: 0 var(--inset-x); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / calc((100% + var(--col-gap)) / 12) 100%;
  box-shadow: inset -1px 0 var(--line);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.teaser-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.teaser-copy { grid-column: 1 / span 5; }
.teaser h2 { margin-bottom: 20px; }
.teaser-copy > p { color: var(--ink-2); max-width: 44ch; margin-bottom: 28px; font-size: 18px; }
.systems { margin: 0 0 32px; }
.systems > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.systems > div:last-child { border-bottom: 1px solid var(--line); }
.systems dt { font-size: 15px; color: var(--ink-2); }
.systems dd { margin: 0; font-weight: 800; font-stretch: 125%; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.systems dd:not([data-system]) { font-weight: 600; font-stretch: 100%; font-size: 15px; color: var(--ink-2); }
.globe-frame { grid-column: 7 / -1; position: relative; margin: 0; aspect-ratio: 1; border: 1px solid var(--line); background: #0b0a09; }
.globe-link { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.globe-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tick { position: absolute; padding: 0 8px; background: var(--ground); line-height: 1; }
.tick.tl { top: -0.5em; left: 16px; }
.tick.tr { top: -0.5em; right: 16px; }
.tick.bl { bottom: -0.5em; left: 16px; }
.tick.br { bottom: -0.5em; right: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 1440px; margin: 0 auto; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; }
.faq h2 { font-size: clamp(38px, 4.2vw, 60px); margin-bottom: 32px; }
.facts { margin: 0; max-width: 380px; }
.facts > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 4px; }
.facts dd { margin: 0; font-size: 15px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 14px no-repeat;
  transition: transform 0.2s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:active { color: var(--ink-2); }
.faq-list details p { color: var(--ink-2); padding: 0 40px 24px 0; max-width: 64ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--inset-x) calc(32px + var(--safe-bottom)); overflow: hidden; }
body[data-tab="map"] .footer { display: none; }
.footer-mark { font-size: min(17vw, 248px); line-height: 0.86; letter-spacing: -0.02em; white-space: nowrap; margin-bottom: 40px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-3); }
.footer-row nav { display: flex; gap: 4px; }
.footer-row nav .link { padding: 0 10px; }
.footer-row p { max-width: 720px; }

/* ---------- Map tab ---------- */
/* dvh: the map is an app view, so it tracks the visible height as the browser bars show and hide. */
.mapview { position: relative; height: 100vh; height: 100dvh; min-height: 320px; padding-top: var(--nav-h); }
/* #map beats .maplibregl-map, whose stylesheet would otherwise reset the position and collapse the height. */
.mapview #map { position: absolute; inset: var(--nav-h) 0 0 0; width: 100%; height: calc(100% - var(--nav-h)); background: #0b0a09; }
/* The globe fades in on its first paint instead of popping out of black. */
.mapview #map .maplibregl-canvas { opacity: 0; transition: opacity 0.42s var(--ease); }
.mapview #map.ready .maplibregl-canvas { opacity: 1; }
/* Panels over the map are opaque: a blur over a live WebGL canvas costs frames on phones. */
.map-side {
  position: absolute; z-index: 3; top: calc(var(--nav-h) + 16px); left: max(16px, var(--safe-left)); width: 360px;
  max-height: calc(100% - var(--nav-h) - 32px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  animation: rise 0.6s var(--ease) both;
}
.map-search { position: relative; }
.map-search .field { font-size: 16px; padding: 16px 18px; border-bottom-color: var(--line); }
.map-results { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--line); }
.map-results:empty { display: none; }
.map-results .group { padding: 12px 18px 4px; }
.map-results button, .map-list button {
  display: block; width: 100%; min-height: 44px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0;
  padding: 10px 18px; cursor: pointer; font-size: 15px; line-height: 1.35; transition: background-color 0.2s, color 0.2s;
}
.map-results button:focus-visible, .map-list button:focus-visible, .map-results button:active, .map-list button:active { background: rgba(244, 239, 230, 0.06); color: var(--ember-hi); outline-offset: -2px; }
.map-results small, .map-list small { display: block; color: var(--ink-2); font-size: 12px; }
.map-list .system { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.map-list .system b { font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.sheet-handle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px;
  color: var(--ink-2); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; cursor: default; text-align: left;
}
.sheet-handle .chev { display: none; }
.map-side-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.layers { padding: 10px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; font-size: 14px; line-height: 1.3; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle small { display: block; color: var(--ink-3); font-size: 12px; }
.toggle b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); transition: opacity 0.25s, transform 0.3s var(--ease); }
.swatch.ember { background: var(--ember); border-color: transparent; }
.swatch.bone { background: #e8dfd2; }
.swatch.night { background: linear-gradient(90deg, #000 50%, #3a332d 50%); }
.toggle input:not(:checked) + .swatch { opacity: 0.25; transform: scale(0.8); }
.toggle input:focus-visible + .swatch { outline: 2px solid var(--ember); outline-offset: 3px; }
.map-list { list-style: none; margin: 0; padding: 6px 0; overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.map-list .more, .map-list .note { padding: 8px 18px 12px; font-size: 12px; color: var(--ink-3); }
.map-clock {
  position: absolute; z-index: 3; top: calc(var(--nav-h) + 16px); right: max(16px, var(--safe-right)); padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.map-clock b { color: var(--ink); font-weight: 500; }
.map-clock:empty { display: none; }
.locate {
  position: absolute; z-index: 3; right: max(16px, var(--safe-right)); bottom: 132px; min-height: 44px; padding: 0 16px;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--edge); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
}
.locate:active { transform: scale(0.97); }
.map-status {
  position: absolute; z-index: 4; left: 50%; top: calc(var(--nav-h) + 24px); transform: translateX(-50%);
  padding: 10px 16px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px;
}
/* MapLibre skin. Its stylesheet loads after this one, so every rule is scoped under .mapview to win. */
.mapview .maplibregl-map { font-family: inherit; }
.mapview .maplibregl-ctrl-group { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.mapview .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.mapview .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(0.9); }
.mapview .maplibregl-ctrl-attrib, .mapview .maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(20, 18, 16, 0.92); color: var(--ink-2); font-size: 11px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 2px;
}
.mapview .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.mapview .maplibregl-ctrl-attrib-button { background-color: transparent; filter: invert(0.85); }
.mapview .maplibregl-popup-content {
  background: #141210; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 0; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); width: 300px; max-width: calc(100vw - 48px); overflow: hidden;
  font-size: 14px;
}
.mapview .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .mapview .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.mapview .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #141210; }
.mapview .maplibregl-popup-anchor-top .maplibregl-popup-tip, .mapview .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.mapview .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #141210; }
.mapview .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #141210; }
.mapview .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #141210; }
.mapview .maplibregl-popup-close-button { color: var(--ink); font-size: 20px; width: 44px; height: 44px; z-index: 2; text-shadow: 0 1px 6px #000; border-radius: 0; }
.pop-photo { width: 100%; height: 150px; object-fit: cover; background: var(--surface-2); opacity: 0; transition: opacity 0.24s ease-out; }
.pop-photo.loaded { opacity: 1; }
.pop-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.pop-kicker { color: var(--ember-hi); }
.pop-kicker.bone { color: var(--ink-3); }
.pop-body h3 { font-size: 18px; line-height: 1.25; font-weight: 700; outline: none; }
.pop-meta { color: var(--ink-2); font-size: 13px; }
.pop-local { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.pop-local:empty { display: none; }
.pop-sun { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.pop-sun::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 8px; height: 8px; border-radius: 50%; background: #ffb357; }
.pop-sun.night::before { background: var(--ink-2); }
.pop-sun .fine { display: inline; }
/* Phone: place details open inside the bottom sheet instead of a popup. */
.map-detail { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; transition: opacity 0.22s var(--ease-out), translate 0.22s var(--ease-out); }
@starting-style { .map-detail { opacity: 0; translate: 0 8px; } }
.map-detail .back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 13px; }
.map-detail .pop-photo { height: 140px; }
.map-side.detail .layers, .map-side.detail .map-list { display: none; }
.pop-actions { display: grid; gap: 4px; margin-top: 6px; }
.pop-actions .btn { min-height: 44px; font-size: 12px; padding: 0 16px; letter-spacing: 0.12em; }
.pop-actions .link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; justify-self: start; }
@media (pointer: coarse) { .mapview .maplibregl-ctrl-group button { width: 44px; height: 44px; } }

/* ---------- Hover ----------
   Only where a mouse can hover: on touch screens a tapped element would keep its hover look. */
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover .arrow { transform: translateX(5px); }
  .btn-ember:not(:disabled):hover { background: var(--ember-hi); }
  .btn-ghost:hover { border-color: var(--ink); background: rgba(244, 239, 230, 0.08); }
  .link:not(:disabled):hover { color: var(--ember-hi); text-decoration-color: var(--ember-hi); }
  .tab[aria-selected="false"]:hover { color: var(--ink); }
  .nav-cta:hover { border-color: var(--ember); color: var(--ember-hi); }
  .field:hover:not(:focus) { border-bottom-color: rgba(244, 239, 230, 0.55); }
  .cell:hover:not(:focus-within) { background: rgba(244, 239, 230, 0.03); }
  .clear:hover { color: var(--ember-hi); }
  .results button:not(:disabled):hover { background: var(--surface-2); color: var(--ember-hi); }
  .chips label:hover { border-color: rgba(244, 239, 230, 0.6); }
  .chips label:has(input:checked):hover { border-color: var(--ember); }
  .options summary:hover { color: var(--ink); }
  .replay:hover { border-color: var(--ember); color: var(--ember-hi); }
  .faq-list summary:hover { color: var(--ember-hi); }
  .globe-link:hover img { transform: scale(1.03); }
  .map-results button:hover, .map-list button:hover { background: rgba(244, 239, 230, 0.06); color: var(--ember-hi); }
  .locate:hover { border-color: var(--ember); color: var(--ember-hi); }
  .mapview .maplibregl-popup-close-button:hover { background: rgba(0, 0, 0, 0.35); color: var(--ember-hi); }
}

/* ---------- Motion ---------- */
/* app.js sets .reveal-on just before it starts watching, so if the script never runs nothing stays hidden. */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.how .preview.reveal { transition-delay: 0.07s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
@keyframes hero-in-flip { from { opacity: 0; transform: scaleX(-1) scale(1.12); } to { opacity: 1; transform: scaleX(-1) scale(1.04); } }

/* Reduced motion: nothing travels or scales; state changes become short fades. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    animation-play-state: running !important; transition-delay: 0s !important;
  }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chips label, .nav-cta, .locate, .replay, .tab-ink, .map-side, .map-detail, .globe-link img { transition-property: opacity, color, background-color, border-color; }
  .btn:active, .chips label:active, .nav-cta:active, .locate:active, .replay:active { transform: none; }
}

/* ---------- Responsive ---------- */
/* Narrower screens: the campground gets its own row; dates and email share the next; then the button. */
@media (max-width: 1100px) {
  .watch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell-place { grid-column: 1 / -1; }
  .cell:not(.cell-place) { border-top: 1px solid var(--line); }
  .cell:nth-child(2) { border-left: 0; }
  .watch-go { grid-column: 1 / -1; min-height: 52px; }
  .watch-go:disabled { border-width: 1px 0 0; }
}
@media (max-width: 1000px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .teaser-copy, .globe-frame { grid-column: 1 / -1; }
  .globe-frame { margin-top: 56px; max-width: 640px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how .preview { max-width: 420px; }
  /* The steps in two rows of two. */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  :root { --nav-bar: 60px; }
  body { font-size: 16px; }
  .brand span { font-size: 13px; letter-spacing: 0.16em; }
  .brand-mark { width: 22px; height: 22px; }
  .tabs { position: relative; left: auto; top: auto; transform: none; margin-left: auto; }
  .tab { padding: 0 14px; }
  .nav-cta { display: none; }
  /* Phones: a short band of video under the nav, then the words and the booking straight away. */
  .hero-media, .hero-shade { inset: 0 0 auto 0; height: 34svh; }
  /* No push-in here: a scaled video would overhang its fade by a few pixels. */
  .hero-media, .hero[data-phase] .hero-media { animation-name: fade; transform: none; }
  .hero[data-phase="night"] .hero-media { transform: scaleX(-1); }
  .hero-shade, .hero[data-phase] .hero-shade {
    background: linear-gradient(180deg, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0.12) 22%, rgba(11, 10, 9, 0.6) 48%, var(--ground) 92%);
  }
  /* At night the fire sits right behind the first lines, so the fade starts sooner. */
  .hero[data-phase="night"] .hero-shade {
    background: linear-gradient(180deg, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0.2) 18%, rgba(11, 10, 9, 0.8) 46%, var(--ground) 84%);
  }
  .hero-inner { padding: calc(var(--nav-h) + 8svh) var(--gutter) 0; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-copy { font-size: 16px; margin-bottom: 18px; }
  .watch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { padding: 12px 14px 8px; }
  .cell-email { grid-column: 1 / -1; border-left: 0; }
  .results { width: calc(100% + 2px); }
  /* Camping in and the map link share one row; the nights hint goes under them. */
  .watch-meta { gap: 0 16px; }
  .find-map { order: 2; }
  .watch-meta .hint { order: 3; flex-basis: 100%; margin-top: 2px; }
  .wide-only { display: none; }
  .steps-wrap { margin-top: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 14px 0; border-left: 0; }
  .specs > div { padding: 16px 0 calc(18px + var(--safe-bottom)); }
  .specs > div + div { padding-left: 14px; }
  .specs dt { flex-direction: column; align-items: flex-start; gap: 8px; }
  .specs dd { font-size: clamp(22px, 7vw, 30px); }
  .how h2, .teaser h2, .faq h2 { font-stretch: 75%; font-size: clamp(36px, 10.4vw, 48px); }
  .how-copy > p { font-size: 16px; }
  .tick.tr, .tick.bl { display: none; }
  .facts { max-width: none; }
  .faq-list summary { font-size: 17px; }
}
/* The map's bottom sheet, for phones in either orientation and tablets held upright: a fixed-height panel
   that slides down to show only its search box and handle (--peek, measured in map.js), and that a thumb
   can drag. Keep the query in step with `phone` in map.js. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) and (max-width: 1000px), (orientation: portrait) and (max-width: 1100px) {
  .mapview { overflow: clip; }
  .map-side {
    top: auto; bottom: 0; left: max(8px, var(--safe-left)); right: max(8px, var(--safe-right)); width: auto;
    height: 62%; max-height: none; padding-bottom: var(--safe-bottom); border-bottom: 0; animation: none;
    transform: translateY(calc(100% - var(--peek, 104px) - var(--safe-bottom)));
    transition: transform 0.42s var(--ease-drawer);
  }
  .map-side.open { transform: none; }
  .map-side.dragging { transition: none; }
  .map-side:not(.open) .map-side-body { visibility: hidden; transition: visibility 0s 0.42s; }
  .sheet-handle { cursor: pointer; touch-action: none; }
  .sheet-handle:active { background: rgba(244, 239, 230, 0.06); }
  .sheet-handle .chev { display: block; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-135deg); transition: transform 0.3s var(--ease-out); }
  .sheet-handle[aria-expanded="true"] .chev { transform: rotate(45deg); }
  .map-status { top: calc(var(--nav-h) + 100px); }
  .map-clock { top: calc(var(--nav-h) + 8px); right: max(8px, var(--safe-right)); padding: 8px 10px; }
  /* The three layer switches in one row, so the open sheet keeps room for the list. */
  .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .toggle { font-size: 13px; gap: 8px; }
  .toggle small { display: none; }
  .locate { bottom: auto; top: calc(var(--nav-h) + 52px); right: max(8px, var(--safe-right)); }
  /* Pinch replaces the zoom buttons, but the map credit (OpenStreetMap's licence) must stay: move it top-left. */
  .mapview .maplibregl-ctrl-bottom-right {
    top: 8px; bottom: auto; right: auto; left: max(8px, var(--safe-left)); max-width: calc(100% - 200px); /* inside #map, already below the nav */
  }
  .mapview .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; }
  .mapview .maplibregl-ctrl-bottom-right .maplibregl-ctrl { float: left; margin: 0; }
}
/* Upright tablets: the sheet is a centred card, not the full width of the screen. */
@media (orientation: portrait) and (min-width: 761px) and (max-width: 1100px) {
  .map-side { left: 0; right: 0; margin: 0 auto; width: min(560px, calc(100% - 24px)); height: 55%; }
}
@media (max-width: 350px) {
  .brand span { display: none; }
}
/* Phones on their side: about 390px tall, so everything sits a little tighter. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-bar: 56px; }
  .hero-inner { padding-top: calc(var(--nav-h) + 20px); }
  .hero-kicker { margin-bottom: 8px; }
  .hero-copy { margin-bottom: 12px; font-size: 15px; }
  .specs > div { gap: 6px; padding: 10px 0 calc(12px + var(--safe-bottom)); }
  .specs dd { font-size: clamp(20px, 6svh, 28px); }
  .mapview { min-height: 0; }
}
@media print {
  .reveal-on .reveal { opacity: 1; transform: none; }
  .nav { position: static; }
}
