/* ==========================================================================
   OUTDOOR DEVS — home.css
   SWITCHBACK: first light to last light.
   Scrolling is hiking — dawn trailhead → switchbacks → summit panorama →
   golden-hour field notes → night campfire. Geist = landscape voice,
   Geist Mono = instrument voice, blaze orange = the trail.
   Interior pages keep css/style.css; this sheet is the homepage's own.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, shared with the rest of the site) ---------- */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- 2. Tokens ---------- */

:root {
  /* the day cycle */
  --dawn-a:  #D9E2D3;  --dawn-b:  #F1E8D2;
  --day-a:   #F2F0E6;  --day-b:   #E4EADC;
  --gold-a:  #EFD9AC;  --gold-b:  #E2A45E;
  --dusk-a:  #2C3642;  --dusk-b:  #18222E;
  --night-a: #0E1620;  --night-b: #070C12;

  /* constants */
  --blaze:   #E8762C;   /* trail-blaze paint — the route, links, action */
  --ember:   #FFB35C;   /* the trail after dusk */
  --fern:    #3F6142;
  --topo:    #B5A584;
  --paper:   #F7F3E8;
  --ink-dark:  #15231B;
  --ink-light: #E9EDF2;
  --granite:   #5C645B;
  --granite-d: #97A1A8;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pop:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --gut: clamp(1.25rem, 6vw, 6rem);
}

/* ---------- 3. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--day-a);
  color: var(--ink-dark);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--blaze); color: #14100A; }

:focus-visible {
  outline: 2px solid var(--blaze);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 300;
  background: var(--ink-dark);
  color: var(--ink-light);
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { top: 12px; }

/* ---------- 4. Daylight engine ---------- */

/* No-JS / reduced-motion: each scene is a static poster with its own light. */
.sky { display: none; }

.scene { position: relative; }
.scene[data-theme="dawn"]   { background: linear-gradient(180deg, var(--dawn-a),  var(--dawn-b));  --ink-c: var(--ink-dark); }
.scene[data-theme="day"]    { background: linear-gradient(180deg, var(--day-a),   var(--day-b));   --ink-c: var(--ink-dark); }
.scene[data-theme="golden"] { background: linear-gradient(180deg, var(--gold-a),  var(--gold-b));  --ink-c: #2A1F10; }
.scene[data-theme="dusk"]   { background: linear-gradient(180deg, var(--dusk-a),  var(--dusk-b));  --ink-c: var(--ink-light); }
.scene[data-theme="night"]  { background: linear-gradient(180deg, var(--night-a), var(--night-b)); --ink-c: var(--ink-light); }
.scene { color: var(--ink-c); }

/* JS + motion OK: one fixed sky, crossfaded per scroll; scenes go transparent. */
html.fx .sky {
  display: block;
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
}
html.fx .sky-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
html.fx .sky-dawn   { background: linear-gradient(180deg, var(--dawn-a),  var(--dawn-b));  opacity: 1; }
html.fx .sky-day    { background: linear-gradient(180deg, var(--day-a),   var(--day-b)); }
html.fx .sky-golden { background: linear-gradient(180deg, var(--gold-a),  var(--gold-b)); }
html.fx .sky-dusk   { background: linear-gradient(180deg, var(--dusk-a),  var(--dusk-b)); }
html.fx .sky-night  { background: linear-gradient(180deg, var(--night-a), var(--night-b)); }
html.fx .scene { background: transparent; }

/* Film grain over everything — one tiny SVG, zero runtime cost */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Chrome (logo + nav) ---------- */

.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 3vw, 36px);
  transition: color 0.5s ease;
}
.chrome::before {
  /* legibility scrim, only shown over photo / night scenes */
  content: '';
  position: absolute; inset: 0 0 -28px 0;
  background: linear-gradient(180deg, rgba(8, 13, 10, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
body[data-chrome="photo"] .chrome,
body[data-chrome="dark"] .chrome { color: #F2EFE3; }
body[data-chrome="photo"] .chrome::before { opacity: 1; }
body[data-chrome="dark"] .chrome::before { opacity: 0.7; }
body[data-chrome="light"] .chrome { color: #1A271E; }

.mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.mark-blaze {
  width: 9px; height: 14px;
  background: var(--blaze);
  border-radius: 1px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

.chrome-nav {
  position: relative;
  display: flex;
  gap: clamp(8px, 2vw, 26px);
}
.chrome-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chrome-nav a:hover { color: var(--blaze); border-bottom-color: var(--blaze); }
body[data-chrome="dark"] .chrome-nav a:hover,
body[data-chrome="photo"] .chrome-nav a:hover { color: var(--ember); border-bottom-color: var(--ember); }

/* ---------- 6. GPS HUD ---------- */

.hud {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2.5vh, 24px);
  z-index: 100;
  width: 204px;
  padding: 12px 14px 10px;
  border-radius: 10px;
  background: rgba(14, 22, 17, 0.62);
  border: 1px solid rgba(233, 237, 242, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #EDEFE8;
}
.hud[hidden] { display: none; }

.hud-top { position: relative; }
.hud-profile { display: block; width: 100%; height: auto; }
.hud-track { fill: none; stroke: rgba(237, 239, 232, 0.28); stroke-width: 1.5; }
.hud-done  { fill: none; stroke: var(--ember); stroke-width: 1.5; }
.hud-dot   { fill: var(--blaze); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; }

.hud-jumps { position: absolute; inset: 0; display: flex; }
.hud-jumps a { flex: 1 1 0; }
.hud-jumps span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hud-jumps a:focus-visible { outline-offset: -2px; }

.hud-read {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hud-sep { color: rgba(237, 239, 232, 0.4); }
.hud-sec {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ember);
  white-space: nowrap;
}
.hud { transition: opacity 0.4s ease; }

/* ---------- 7. Shared effect utilities ---------- */

/* Scroll reveals — only hidden when the fx engine is live */
html.fx [data-r] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.fx [data-r].in { opacity: 1; transform: none; }

/* Misregistered screen-print wipe for switchback headings */
.wipe { position: relative; display: inline-block; }
.wipe-ghost {
  position: absolute;
  inset: 0;
  transform: translate(3px, 3px);
  color: var(--fern);
  opacity: 0.5;
  z-index: -1;
  user-select: none;
}
html.fx .wipe .wipe-main,
html.fx .wipe .wipe-ghost {
  clip-path: inset(-2% 102% -2% -2%);
  display: inline-block;
}
html.fx .in .wipe .wipe-main { transition: clip-path 0.9s var(--ease) 0.16s; }
html.fx .in .wipe .wipe-ghost { transition: clip-path 0.9s var(--ease); }
html.fx .in .wipe .wipe-main,
html.fx .in .wipe .wipe-ghost { clip-path: inset(-2% -2% -2% -2%); }

/* Trail-register annotations */
.trail-note {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 7px 12px;
  border: 1px dashed rgba(232, 118, 44, 0.55);
  border-radius: 3px;
  background: rgba(248, 245, 235, 0.55);
  color: var(--granite);
}
.scene[data-theme="dusk"] .trail-note,
.scene[data-theme="night"] .trail-note {
  background: rgba(14, 22, 32, 0.45);
  color: var(--granite-d);
  border-color: rgba(255, 179, 92, 0.45);
}

/* Blaze-underlined action links */
.blaze-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--blaze);
  padding-bottom: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.blaze-link:hover { color: var(--blaze); }
.scene[data-theme="dusk"] .blaze-link:hover,
.scene[data-theme="night"] .blaze-link:hover { color: var(--ember); }

/* The trail itself (SVG injected by JS into each [data-trail] scene) */
.trail-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.trail-svg path {
  fill: none;
  stroke: var(--blaze);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1.5 11;
}
.scene[data-theme="dusk"] .trail-svg path,
.scene[data-theme="night"] .trail-svg path { stroke: var(--ember); }

/* Topo contours */
.topo {
  position: absolute;
  width: clamp(420px, 52vw, 760px);
  height: auto;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}
.topo g { stroke: var(--topo); stroke-width: 1.3; }

/* Content sits above trail + topo (zero specificity so positioned elements keep their own scheme) */
.scene > :where(:not(.topo):not(.trail-svg):not(.hero-layers):not(.stars):not(.camp-trees)) {
  position: relative;
  z-index: 2;
}
.register, .cue { z-index: 2; }

/* ---------- 8. Scene 01 · Trailhead ---------- */

.scene-trailhead {
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}

.hero-layers { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: -12% 0; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
html.fx .hero-photo,
html.fx .hero-mist,
html.fx .hero-trees { will-change: transform; }

.hero-mist {
  position: absolute; inset: -10% 0;
  background:
    linear-gradient(180deg, rgba(217, 226, 211, 0.55), rgba(241, 232, 210, 0.08) 45%, rgba(13, 23, 17, 0.42) 100%);
}

.hero-trees {
  position: absolute;
  bottom: -2px; left: -2%; right: -2%;
  width: 104%;
  height: clamp(80px, 14vh, 150px);
  fill: #0D1711;
}

.hl {
  position: relative;
  padding-top: clamp(16vh, 24vh, 26vh);
  font-size: clamp(2.5rem, 7vw, 6.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #F5F2E6;
  text-shadow: 0 2px 28px rgba(10, 16, 12, 0.45);
}
.hl-line { display: block; }
.hl-1 { margin-left: 6vw; }
.hl-2 { margin-left: 32vw; }
.hl-3 { margin-left: 13vw; }
.hl-blaze { color: var(--blaze); text-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  html.fx .hl-line {
    opacity: 0;
    transform: translateY(44px);
    animation: hero-in 1s var(--ease) forwards;
  }
  html.fx .hl-1 { animation-delay: 0.15s; }
  html.fx .hl-2 { animation-delay: 0.32s; }
  html.fx .hl-3 { animation-delay: 0.49s; }
  html.fx .register, html.fx .cue {
    opacity: 0;
    animation: fade-in 1.2s ease 0.9s forwards;
  }
}
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

.register {
  position: absolute;
  top: 50%; right: clamp(10px, 2vw, 26px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(245, 242, 230, 0.9);
  text-shadow: 0 1px 10px rgba(10, 16, 12, 0.6);
  white-space: nowrap;
}

.cue {
  position: absolute;
  bottom: clamp(20px, 5vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cue-post { width: 1.5px; height: 42px; background: rgba(245, 242, 230, 0.55); }
.cue-blaze { width: 11px; height: 17px; background: var(--blaze); border-radius: 1px; }
.cue-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: rgba(245, 242, 230, 0.85);
  writing-mode: vertical-rl;
}
@media (prefers-reduced-motion: no-preference) {
  html.fx .cue-blaze { animation: blaze-pulse 2.4s ease-in-out infinite; }
}
@keyframes blaze-pulse {
  0%, 100% { opacity: 1; transform: none; }
  50% { opacity: 0.55; transform: translateY(4px); }
}

/* ---------- 9. Scene 02 · The approach ---------- */

.scene-approach {
  padding: clamp(7rem, 14vh, 11rem) 0 clamp(4.5rem, 9vh, 7rem);
  overflow: hidden;
}
.scene-approach .topo { right: -180px; top: 4%; }

.scene-approach > .trail-note { margin-left: var(--gut); }

.approach-grid {
  display: grid;
  grid-template-columns: minmax(280px, 44ch) 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gut) 0;
}

.approach-lede {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.approach-sub {
  margin-top: 1.2rem;
  color: var(--granite);
  max-width: 38ch;
}
.approach-copy .blaze-link { margin-top: 1.6rem; }

.approach-photos {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
}

.print {
  background: #F8F5EB;
  padding: 10px 10px 12px;
  box-shadow: 0 22px 44px -20px rgba(21, 35, 27, 0.4);
}
.print img { width: 100%; object-fit: cover; }
.print figcaption {
  margin-top: 9px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--granite);
}

.print-back {
  position: absolute;
  right: 54%; top: 0;
  width: min(280px, 44%);
  transform: rotate(1.8deg);
}
.print-back img { aspect-ratio: 4 / 5; }
.print-front {
  position: absolute;
  right: 0; top: 30%;
  width: min(440px, 72%);
  transform: rotate(-1.8deg);
  /* torn lower edge */
  clip-path: polygon(0 0, 100% 0, 100% 96.5%, 96% 98.2%, 91% 96.8%, 85% 99%, 79% 97.2%, 72% 98.8%, 65% 96.9%, 58% 98.6%, 50% 97%, 43% 99%, 36% 97.2%, 29% 98.8%, 22% 96.8%, 15% 98.4%, 8% 97%, 3% 98.6%, 0 96.8%);
  padding-bottom: 30px;
}
.print-front img { aspect-ratio: 16 / 9; }

.trail-note-pin {
  margin: clamp(3rem, 7vh, 5rem) 0 0 52vw;
}

/* ---------- 10. Scene 03 · Three switchbacks ---------- */

.scene-switchbacks {
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(7rem, 13vh, 11rem);
  overflow: hidden;
}
.scene-switchbacks .topo-2 { left: -220px; top: 34%; }

.sb-head { padding: 0 var(--gut); max-width: 60ch; }
.hl-2nd {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.sb-sub { margin-top: 0.9rem; color: var(--granite); max-width: 46ch; }

.turn {
  position: relative;
  width: min(580px, 88%);
  margin-top: clamp(5rem, 11vh, 9rem);
}
.turn-l { margin-left: 6vw; }
.turn-r { margin-left: auto; margin-right: 6vw; }

.wpt { display: flex; align-items: center; gap: 12px; margin-bottom: 1.1rem; }
.wpt-diamond {
  position: relative;
  width: 13px; height: 13px;
  background: var(--blaze);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.wpt-diamond::after {
  content: '';
  position: absolute; inset: -7px;
  border: 1.5px solid var(--blaze);
  opacity: 0;
}
html.fx [data-r] .wpt-diamond { transform: rotate(45deg) scale(0); }
html.fx [data-r].in .wpt-diamond {
  animation: wpt-pop 0.55s var(--pop) 0.1s forwards;
}
html.fx [data-r].in .wpt-diamond::after {
  animation: wpt-ring 0.9s ease-out 0.35s 1;
}
@keyframes wpt-pop { to { transform: rotate(45deg) scale(1); } }
@keyframes wpt-ring {
  0% { opacity: 0.9; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.7); }
}
.wpt-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--granite);
}

.turn h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.turn-copy { margin-top: 1rem; max-width: 52ch; color: #2C362E; }

.cairn {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.4rem;
}
.cairn a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 14px;
  background: #ECE8DA;
  border: 1px solid #D8D3C2;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.cairn a .mono { font-size: 9.5px; color: var(--granite); letter-spacing: 0.1em; }
.cairn a:hover {
  transform: translateY(-3px);
  border-color: var(--blaze);
  box-shadow: 0 10px 22px -12px rgba(21, 35, 27, 0.45);
}

.turn-photo {
  margin: 2.2rem 0 0 32%;
  width: min(420px, 76%);
  background: #F8F5EB;
  padding: 10px;
  transform: rotate(-1.2deg);
  box-shadow: 0 22px 44px -20px rgba(21, 35, 27, 0.4);
}
.turn-photo img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.trail-note-mid {
  margin: clamp(3.5rem, 8vh, 6rem) 0 0 46vw;
}

/* ---------- 11. Scene 04 · The lookout (summit panorama) ---------- */

.scene-lookout { overflow: clip; }

.lookout-stage { padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 8vh, 6rem); }

.plate { padding: 0 var(--gut); }
.plate-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6B4A1E;
}
.plate h2 { margin-top: 0.6rem; }
.plate-sub {
  margin-top: 0.7rem;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #6B4A1E;
}

.pan-horizon {
  position: absolute;
  left: 0; top: 58%;
  width: 220%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(42, 31, 16, 0.4) 0 12px, transparent 12px 26px);
  z-index: 0;
  transform: translate3d(var(--hx, 0px), 0, 0);
}

/* Default + mobile + reduced motion: a swipe row */
.pan-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding: clamp(3rem, 7vh, 5rem) var(--gut) 3rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 31, 16, 0.4) transparent;
}
.pan-track .frame { scroll-snap-align: center; }

.frame {
  flex: 0 0 auto;
  width: clamp(264px, 24vw, 348px);
  background: #FAF7ED;
  padding: 11px 11px 0;
  transform: translateY(var(--lift, 0rem)) rotate(var(--rot, 0deg));
  box-shadow: 0 28px 52px -22px rgba(40, 24, 8, 0.5);
}
.frame > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.frame figcaption {
  padding: 11px 3px 13px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: #5B4A2E;
}
.frame-feature { width: clamp(330px, 30vw, 440px); }
.frame-feature img { aspect-ratio: 4 / 3; }

.frame-more {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: transparent;
  border: 1.5px dashed rgba(42, 31, 16, 0.45);
  box-shadow: none;
  padding: 1.5rem;
}
.frame-more .blaze-link {
  text-align: center;
  font-size: 1.15rem;
}
.frame-more .mono {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #6B4A1E;
}

.frame a:hover img { filter: saturate(1.12) contrast(1.03); }
.frame a:hover figcaption { color: #2A1F10; }

/* fx + wide viewport: the sticky panorama. JS sets --pan-h and --tx. */
@media (min-width: 768px) and (min-height: 600px) {
  html.fx .lookout-pin { height: var(--pan-h, 340vh); }
  html.fx .lookout-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
  html.fx .lookout-stage .plate { padding-top: clamp(2rem, 6vh, 4rem); }
  html.fx .pan-track {
    overflow: visible;
    width: max-content;
    padding: clamp(2.5rem, 6vh, 4rem) 12vw 2rem;
    transform: translate3d(var(--tx, 0px), 0, 0);
    will-change: transform;
    align-items: center;
  }
  /* field-photo landing physics */
  html.fx [data-frame] {
    transform: translateY(calc(var(--lift, 0rem) + 36px)) rotate(0deg);
    box-shadow: 0 42px 70px -26px rgba(40, 24, 8, 0.38);
    transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  }
  html.fx [data-frame].landed {
    transform: translateY(var(--lift, 0rem)) rotate(var(--rot, 0deg));
    box-shadow: 0 16px 30px -14px rgba(40, 24, 8, 0.55);
  }
}

/* ---------- 12. Scene 05 · Field notes ---------- */

.scene-fieldnotes {
  padding: clamp(7rem, 14vh, 11rem) 0 clamp(6rem, 12vh, 9rem);
  overflow: hidden;
}

.fn-head { padding: 0 var(--gut); }
.fn-head h2 { margin-top: 1.2rem; }

.fn-scatter {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 1.5rem;
  padding: clamp(3rem, 7vh, 5rem) 5vw 0;
  align-items: start;
}

.note {
  background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 26px, rgba(63, 97, 66, 0.1) 26px 27px);
  color: #1E2A22;
  box-shadow: 0 26px 48px -20px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--nrot, 0deg));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.note > a {
  display: block;
  padding: 1.4rem 1.5rem 1.6rem;
  text-decoration: none;
  color: inherit;
}
.note:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 34px 56px -22px rgba(0, 0, 0, 0.6);
}

.note-feature { grid-column: 1 / 7; grid-row: 1 / 3; --nrot: -1.2deg; }
.note:nth-child(2) { grid-column: 7 / 12; grid-row: 1; margin-top: 9vh; --nrot: 1.4deg; }
.note:nth-child(3) { grid-column: 8 / 13; grid-row: 2; margin-top: -1.5rem; --nrot: -0.8deg; }
.note:nth-child(4) { grid-column: 3 / 9; grid-row: 3; margin-top: -3rem; --nrot: 0.9deg; }

.note .develop { margin: 0 0 1.2rem; }
.note .develop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* instant-film develop on reveal */
html.fx .develop img {
  filter: grayscale(1) sepia(0.3) brightness(1.18) contrast(0.88);
  transition: filter 1.4s ease 0.2s;
}
html.fx .in .develop img { filter: none; }

.note-stamp {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fern);
  border: 1.5px solid rgba(63, 97, 66, 0.5);
  border-radius: 2px;
  padding: 4px 9px;
  transform: rotate(-2deg);
  margin-bottom: 0.9rem;
}
.note h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.note-feature h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.note-sub { margin-top: 0.7rem; font-size: 0.92rem; color: #46524A; line-height: 1.55; }

.fn-all { margin: clamp(4rem, 8vh, 6rem) var(--gut) 0; }
.fn-all .blaze-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1.5px solid var(--blaze);
  border-bottom-width: 1.5px;
  border-radius: 2px;
  padding: 11px 18px;
  transform: rotate(-2.5deg);
}
.fn-all .blaze-link:hover { transform: rotate(0deg); color: #FFC987; }

/* ---------- 13. Scene 06 · Camp ---------- */

.scene-camp {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(7rem, 14vh, 11rem);
  overflow: hidden;
}

.stars { position: absolute; inset: 0 0 35% 0; z-index: 0; }
.star-layer { position: absolute; width: 1px; height: 1px; top: 0; left: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.fx .star-layer-1 { animation: twinkle 5.5s ease-in-out infinite alternate; }
  html.fx .star-layer-2 { animation: twinkle 7.5s ease-in-out infinite alternate-reverse; }
}
@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.camp-trees {
  position: absolute;
  bottom: 0; left: -2%; right: -2%;
  width: 104%;
  height: clamp(70px, 11vh, 130px);
  fill: #05090C;
  z-index: 1;
}

.camp-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: 0 var(--gut);
}

.fire {
  position: relative;
  height: clamp(220px, 34vh, 320px);
  align-self: end;
}
.fire-glow {
  position: absolute;
  bottom: -10px; left: 50%;
  width: clamp(260px, 30vw, 380px);
  height: clamp(260px, 30vw, 380px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 72%,
    rgba(232, 100, 43, 0.55),
    rgba(255, 179, 92, 0.18) 42%,
    transparent 68%);
}
@media (prefers-reduced-motion: no-preference) {
  html.fx .lit .fire-glow { animation: fire-pulse 2.8s ease-in-out infinite; }
}
@keyframes fire-pulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
.fire-ring {
  position: absolute;
  bottom: 26px; left: 50%;
  width: 120px; height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px dashed rgba(255, 179, 92, 0.75);
}
.fire-ring::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #FFD9A0, #E8642B 70%);
  box-shadow: 0 0 18px 6px rgba(232, 100, 43, 0.55);
}
#embers {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.camp-copy { padding-bottom: clamp(2rem, 5vh, 4rem); }
.camp-copy h2 {
  margin-top: 1.4rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: #F2EFE3;
}
.camp-sub {
  margin-top: 1.1rem;
  max-width: 44ch;
  color: #B7C0C4;
}
.camp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
}
.btn-fire {
  display: inline-block;
  background: var(--blaze);
  color: #14100A;
  font-weight: 650;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 179, 92, 0.4), 0 14px 42px -10px rgba(232, 118, 44, 0.6);
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn-fire:hover {
  background: #F1843B;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 179, 92, 0.6), 0 20px 50px -10px rgba(232, 118, 44, 0.75);
}
.camp-alt {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--granite-d);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.camp-alt:hover { color: var(--ember); border-bottom-color: var(--ember); }

.camp-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(4rem, 9vh, 8rem);
  padding: 3.5vh var(--gut) 4vh;
  border-top: 1px solid rgba(233, 237, 242, 0.13);
  display: grid;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #828D94;
}
.camp-trip { color: #9AA5AB; }
.lg-dash {
  display: inline-block;
  width: 26px; height: 2px;
  vertical-align: middle;
  background: repeating-linear-gradient(90deg, var(--ember) 0 5px, transparent 5px 10px);
}
.lg-blaze {
  display: inline-block;
  width: 7px; height: 11px;
  vertical-align: middle;
  background: var(--blaze);
  border-radius: 1px;
}
.camp-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.camp-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.camp-links a:hover { color: var(--ember); }
.camp-colophon { color: #5E686F; }

/* ---------- 14. Responsive ---------- */

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-photos { min-height: 0; margin-top: 1rem; }
  .print-back { position: static; width: min(300px, 64%); margin-left: 28%; }
  .print-front { position: static; width: min(460px, 92%); margin-top: -2.5rem; }
  .fn-scatter { display: flex; flex-direction: column; gap: 2rem; padding-inline: var(--gut); }
  .note:nth-child(n) { margin-top: 0; }
  .note:nth-child(2) { margin-left: 8%; }
  .note:nth-child(4) { margin-left: 5%; }
  .camp-inner { grid-template-columns: 1fr; align-items: start; }
  .camp-copy { order: -1; }
  .fire { height: 200px; width: 100%; }
}

@media (max-width: 700px) {
  .hl { padding-top: 20vh; font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .hl-1 { margin-left: 5vw; }
  .hl-2 { margin-left: 22vw; }
  .hl-3 { margin-left: 9vw; }
  .register {
    position: absolute;
    top: auto; bottom: clamp(86px, 14vh, 130px);
    right: 5vw; left: 5vw;
    transform: none;
    writing-mode: horizontal-tb;
    white-space: normal;
    font-size: 9.5px;
  }
  .cue { display: none; }
  .chrome { padding: 12px 14px; }
  .chrome-nav { gap: 10px; }
  .chrome-nav a { font-size: 9.5px; letter-spacing: 0.1em; }
  .mark-name { display: none; }
  .turn-l, .turn-r { margin-left: 4vw; margin-right: 4vw; width: 92%; }
  .turn-photo { margin-left: 8%; width: 88%; }
  .trail-note-pin, .trail-note-mid { margin-left: var(--gut); }
  .hud {
    width: auto;
    max-width: 60vw;
    padding: 8px 12px;
  }
  .hud-top { display: none; }
  .hud-read { margin-top: 0; font-size: 9.5px; }
  .hud-sec { font-size: 8.5px; }
}
