/* All chapters remain ordinary, readable sections without JavaScript. */
:root {
  --chapter-blue: #b3c7d6;
  --journal-blue: #b9e3f5;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f9f6ef;
  background: #07090c;
}
* { box-sizing: border-box; }
body { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #f6c978; outline-offset: 6px; }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  background: #f6c978;
  color: #1b1711;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
#journey { position: relative; }
#hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #07090c;
  --descent: 0;
  --intro-fade: 1;
  --sky-fade: 1;
  --arrival: 0;
}
.meeting-section, .tunnel-section {
  position: relative;
  height: 100svh;
  min-height: 760px;
  isolation: isolate;
}
.scene, .shade { position: absolute; inset: 0; z-index: -2; }
.scene img, .scene canvas, .tunnel-still, .tunnel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  inset: 0;
}
.scene canvas { opacity: 0; }
.scene canvas.ready { opacity: 1; }
.shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(3,5,8,.7), transparent 59%),
              linear-gradient(0deg, rgba(3,5,8,.85), transparent 28%, transparent 77%, rgba(3,5,8,.35));
}
.site-header {
  position: absolute;
  top: 0;
  left: 4.2%;
  right: 4.2%;
  z-index: 3;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff24;
  gap: 24px;
}
.brand { display: flex; align-items: center; font-size: 28px; font-weight: 700; letter-spacing: -1.2px; text-decoration: none; }
.light { font-weight: 400; }
.moon { font-size: 37px; color: #f6c978; margin-right: 10px; }
.brand-star { font-size: 16px; align-self: flex-start; margin: 6px 0 0 5px; color: #f6c978; }
.header-label, .eyebrow, .scene-meta { font-size: 12px; letter-spacing: 2px; }
.header-label { color: #d3d1ce; }
.small-button {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  border: 1px solid #ffffff50;
  border-radius: 30px;
  background: #ffffff08;
  padding: 13px 20px;
  font-size: 14px;
  text-decoration: none;
}
.header-action-label { min-width: 0; }
.header-action-icon { flex-shrink: 0; }
.intro { position: absolute; top: 23%; left: 5%; max-width: 40%; }
.eyebrow { font-size: 12px; color: #f6c978; margin: 0 0 24px; }
h1 { font-size: clamp(42px, 4.4vw, 76px); line-height: 1.04; letter-spacing: -3px; margin: 0; font-weight: 500; }
h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #f6c978; }
.description { font-size: 17px; line-height: 1.65; color: #d2d1ce; margin: 25px 0; }
.primary {
  display: inline-block;
  background: #f6c978;
  border: 0;
  padding: 17px 22px;
  border-radius: 50px;
  color: #1b1711;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.primary:hover { background: #ffdb98; transform: translateY(-2px); }
.primary span { margin-left: 22px; }
.hint { font-size: 14px; color: #c6c3bd; line-height: 1.6; margin-top: 18px; max-width: 280px; }
.scene-meta {
  position: absolute;
  bottom: 30px;
  left: 4.2%;
  right: 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c7c5c0;
  font-size: 12px;
  gap: 20px;
}
.interaction { display: flex; align-items: center; gap: 13px; font-size: 14px; letter-spacing: 0; }
.track { width: 56px; height: 1px; background: #ffffff55; position: relative; }
.track i { position: absolute; width: 7px; height: 7px; background: #f6c978; border-radius: 50%; top: -3px; left: 50%; transform: translateX(-50%); }
.scroll-cue {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #f6c978;
  text-decoration: none;
}
.scroll-cue span { margin-left: 12px; font-size: 19px; }
.tunnel-still { z-index: -1; pointer-events: none; }
.tunnel-video { z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.tunnel-caption {
  position: absolute;
  bottom: 100px;
  width: 100%;
  padding: 0 24px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
  margin: 0;
  text-shadow: 0 2px 15px #000;
}
.tunnel-notes {
  position: absolute;
  top: 50%;
  left: 4.2%;
  right: 4.2%;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(1.5rem, 1fr) minmax(0, 17rem);
  grid-template-rows: auto auto;
  gap: 1.25rem 2rem;
  transform: translateY(-50%);
}
.tunnel-note {
  --note-accent: #f6c978;
  --note-rgb: 246, 201, 120;
  --note-tilt: -1.4deg;
  --note-drift: 6.4s;
  --note-pulse: 3.8s;
  --note-phase: -.7s;
  --note-rise: -5px;
  --note-drop: 2px;
  position: relative;
  display: grid;
  grid-template-columns: 2.875rem minmax(0, 1fr);
  gap: .5rem .75rem;
  min-width: 0;
  padding: 1.25rem 1.125rem;
  overflow: hidden;
  border: 1px solid rgba(var(--note-rgb), .32);
  border-radius: 20px 6px 20px 20px;
  background: radial-gradient(ellipse at top left, rgba(var(--note-rgb), .14), transparent 75%),
              linear-gradient(135deg, #11151ded, #080b12eb);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px #0004, inset 0 1px 0 #ffffff08;
  overflow-wrap: anywhere;
  transition: transform .32s cubic-bezier(.2, .75, .25, 1), border-color .25s, box-shadow .3s;
  animation: note-drift var(--note-drift) ease-in-out var(--note-phase) infinite;
  animation-play-state: paused;
}
.tunnel-note::before, .journal-stop-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(transparent, var(--note-accent), transparent);
  opacity: .75;
}
.tunnel-note::after, .journal-stop-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--note-rgb), .78);
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(var(--note-rgb), .14);
  pointer-events: none;
  opacity: .2;
  animation: note-border-pulse var(--note-pulse) ease-in-out var(--note-phase) infinite;
  animation-play-state: paused;
}
.tunnel-notes.is-animated .tunnel-note,
.tunnel-notes.is-animated .tunnel-note::after { animation-play-state: running; }
.is-playing-chapter .tunnel-notes .tunnel-note,
.is-playing-chapter .tunnel-notes .tunnel-note::after { animation-play-state: paused; }
.tunnel-note:nth-child(1) { grid-area: 1 / 1; }
.tunnel-note:nth-child(2) { grid-area: 2 / 1; --note-drift: 7.2s; --note-pulse: 4.4s; --note-phase: -3.2s; }
.tunnel-note:nth-child(3) { grid-area: 1 / 3; --note-drift: 6.8s; --note-pulse: 4.1s; --note-phase: -1.8s; }
.tunnel-note:nth-child(4) { grid-area: 2 / 3; --note-drift: 7.6s; --note-pulse: 4.7s; --note-phase: -5.1s; }
.tunnel-note:nth-child(even) { --note-tilt: 1.4deg; }
.note-emblem {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 2.875rem;
  height: 2.875rem;
  border: 1px solid rgba(var(--note-rgb), .38);
  border-radius: 13px;
  background: rgba(var(--note-rgb), .1);
  color: var(--note-accent);
  box-shadow: inset 0 0 16px rgba(var(--note-rgb), .06);
}
.note-icon { display: block; width: 1.5rem; height: 1.5rem; transition: transform .25s; }
.note-number {
  position: absolute;
  right: .625rem;
  bottom: -.25rem;
  color: rgba(var(--note-rgb), .08);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.tunnel-note h3 { grid-column: 2; grid-row: 1; position: relative; margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.tunnel-note p { grid-column: 2; grid-row: 2; position: relative; margin: 0; font-size: 1rem; line-height: 1.5; color: #d2d1ce; }
.note-discovery { --note-accent: #92d7f5; --note-rgb: 146, 215, 245; margin-left: .875rem; border-radius: 6px 20px 20px 20px; }
.note-companion { --note-accent: #ffb18a; --note-rgb: 255, 177, 138; margin-right: .875rem; border-radius: 24px; }
.note-journey { --note-accent: #c5adff; --note-rgb: 197, 173, 255; border-radius: 20px 20px 6px 20px; }
.note-discovery .note-emblem { border-radius: 50%; outline: 1px dashed rgba(var(--note-rgb), .25); outline-offset: 4px; }
.note-companion .note-emblem { border-radius: 50% 50% 13px 13px; background: rgba(var(--note-rgb), .16); }
.note-journey .note-emblem { border-radius: 50%; box-shadow: 0 0 0 5px rgba(var(--note-rgb), .05); }
.note-discovery .note-emblem, .note-journey .note-emblem { grid-row: 1; }
.note-discovery h3, .note-journey h3 { align-self: center; }
.note-discovery p, .note-journey p { grid-column: 1 / -1; margin-top: .25rem; }
@media (hover: hover) and (pointer: fine) {
  .tunnel-note:hover, .journal-stop-card:hover {
    z-index: 2;
    transform: scale(1.06) rotate(var(--note-tilt));
    border-color: rgba(var(--note-rgb), .65);
    box-shadow: 0 18px 40px #0006, 0 0 24px rgba(var(--note-rgb), .14);
  }
  .tunnel-note:hover::after, .journal-stop-card:hover::after { animation-duration: 1.8s; }
  .note-discovery:hover .note-icon { transform: rotate(-8deg); }
  .note-journey:hover .note-icon { transform: rotate(14deg); }
}
/* Independent transforms let the existing hover enlargement keep working. */
@keyframes note-drift {
  0%, 100% { translate: -1px var(--note-drop); rotate: -.35deg; }
  50% { translate: 1px var(--note-rise); rotate: .35deg; }
}
@keyframes note-border-pulse {
  0%, 100% { opacity: .2; }
  50% { opacity: .85; }
}
.return-surface {
  position: absolute;
  right: 4.2%;
  bottom: 30px;
  border: 1px solid #f6c97888;
  border-radius: 28px;
  padding: 13px 20px;
  color: #fff3d5;
  background: #090c13d9;
  backdrop-filter: blur(12px);
  font-size: 14px;
  text-decoration: none;
  z-index: 2;
}
.return-surface span { margin-left: 12px; }
.return-surface:hover { background: #32291de8; }

/* JavaScript enhances the same sections with the original pinned journey. */
.is-enhanced #journey { height: 500svh; }
.is-enhanced #hero { position: sticky; top: 0; height: 100svh; }
.is-enhanced .site-header { position: fixed; }
.is-enhanced .meeting-section { height: 100%; min-height: 0; }
.is-enhanced .tunnel-section { position: absolute; inset: 0; height: 100%; min-height: 0; pointer-events: none; }
.is-enhanced .tunnel-still, .is-enhanced .tunnel-caption, .is-enhanced .tunnel-notes { opacity: var(--arrival); }
.is-enhanced .tunnel-video.is-active { opacity: var(--arrival); }
.is-enhanced .tunnel-note { pointer-events: auto; }
.is-enhanced .intro, .is-enhanced .scene-meta, .is-enhanced .scroll-cue { opacity: var(--intro-fade); }
.is-enhanced .in-descent .intro, .is-enhanced .in-descent .scene-meta, .is-enhanced .in-descent .scroll-cue { pointer-events: none; visibility: hidden; }
.scene .descent-frames { opacity: 0; pointer-events: none; }
.scene .descent-frames.loaded { opacity: var(--descent); }

/* Decorative elements exist in HTML; scripts only animate them. */
.bone-pointer { position: fixed; left: 0; top: 0; width: 44px; height: 44px; pointer-events: none; z-index: 9999; opacity: 0; visibility: hidden; will-change: transform; }
.bone-pointer.visible { opacity: 1; visibility: visible; }
.bone-pointer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 25% 15%;
  transform: perspective(80px) rotateX(22deg) scaleX(-1);
  position: relative;
  z-index: 1;
  animation: bone-breathe 1.4s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px #0006) drop-shadow(0 0 7px #f6c97855);
}
.bone-pointer:not(.visible) img { animation-play-state: paused; }
@keyframes bone-breathe {
  0%, 100% { transform: perspective(80px) rotateX(22deg) scaleX(-1) scale(1); filter: drop-shadow(0 3px 3px #0006) drop-shadow(0 0 6px #f6c97840); }
  50% { transform: perspective(80px) rotateX(22deg) scaleX(-1) scale(1.22); filter: drop-shadow(0 3px 3px #0006) drop-shadow(0 0 15px #f6c978aa); }
}
.bone-pointer::before, .bone-pointer::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid #f6c978;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 9px #f6c97870, inset 0 0 7px #f6c97830;
  opacity: 0;
  animation: bone-ripple 2.8s ease-out infinite;
  animation-play-state: paused;
}
.bone-pointer::after { animation-delay: -1.4s; }
.bone-pointer.visible::before, .bone-pointer.visible::after { animation-play-state: running; }
@keyframes bone-ripple {
  0% { transform: scale(.65); opacity: 0; }
  12% { opacity: .85; }
  65% { opacity: .3; }
  100% { transform: scale(2.25); opacity: 0; }
}
.cosmic-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--sky-fade);
  mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
}
.cosmic-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* The avalanche replaces the tunnel inside the same pinned viewport. */
.chapter-player { display: none; position: absolute; inset: 0; z-index: 3; }
.has-chapter-player .chapter-player { display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; }
.has-chapter-player.is-playing-chapter .chapter-player { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s ease; }
.is-playing-chapter .return-surface { visibility: hidden; pointer-events: none; }
.chapter-film { position: absolute; inset: 0; background: url("next-journey-poster.webp?v=29") center / cover no-repeat; pointer-events: none; }
.chapter-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1; }
.chapter-handoff { position: fixed; inset: 0; z-index: 2; background: transparent center / cover no-repeat; opacity: 1; pointer-events: none; transition: opacity .55s ease; }
.chapter-handoff.is-revealed { opacity: 0; }

/* Static journal adapted from the supplied Alzor design. */
.blue-chapter {
  --chapter-ink: #0e2a3a;
  position: relative;
  isolation: isolate;
  color-scheme: light;
  color: var(--chapter-ink);
  background: var(--chapter-blue);
  font-family: 'Geist', Helvetica, Arial, sans-serif;
}
.journal-shell {
  position: relative;
  isolation: isolate;
  padding: 0 clamp(20px, 4vw, 64px) 160px;
  background: linear-gradient(to bottom, var(--chapter-blue), var(--journal-blue) 176px, var(--journal-blue) calc(100% - 160px), var(--chapter-blue));
}
/* Native video stays behind the reading surface and fades with its playback. */
.journal-crystals {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%);
  transition: opacity .3s linear, visibility 0s linear .3s;
}
.journal-crystals.is-visible { opacity: var(--crystal-opacity, 1); visibility: visible; transition-delay: 0s; }
.journal-crystals video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .journal-crystals { display: none; transition: none; }
}
.journal-container { width: 100%; max-width: 1180px; margin-inline: auto; }
.journal-intro { padding-top: 192px; }
.journal-label {
  margin: 0;
  font-family: 'Geist Mono', monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #1d5f80;
}
.journal-title-scene { position: relative; isolation: isolate; margin-top: 24px; }
#journal-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 16vw, 11.875rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-align: center;
  position: relative;
  z-index: 2;
  scroll-margin-top: 144px;
}
/* The reading target receives focus after the film; it is not a control. */
#journal-title:focus { outline: none; }
.journal-title-film {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: clamp(200px, 30%, 360px);
  pointer-events: none;
}
.journal-title-film img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.journal-intro-band {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 48px 0 40px;
  border-top: 1px solid #0e2a3a4d;
  border-bottom: 1px solid #0e2a3a47;
  background: transparent;
}
.journal-subtitle { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.02em; color: #1d5f80; }
.journal-lead { max-width: 38ch; margin: 0; font-size: 1.0625rem; line-height: 1.55; text-align: right; }
.journal-route { padding-top: 72px; }
.journal-stops { display: grid; gap: 80px; list-style: none; padding: 0; margin: 48px 0 0; }
.journal-stops > li { min-width: 0; }
.journal-stop { --stop-dot: #1d5f80; position: relative; padding-bottom: 56px; }
.journal-stop-scene { width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; justify-content: center; }
.journal-stop-scene img { display: block; width: 100%; height: auto; }
.journal-stop-tunnel { --stop-dot: #3aa88a; }
.journal-stop-tunnel .journal-stop-scene img { width: 82%; }
.journal-stop-next { --stop-dot: #e08a5c; }
.journal-stop-next .journal-stop-scene img { width: 92%; }
.journal-stop-card {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: -32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  padding: 40px 48px;
  --note-accent: #92d7f5;
  --note-rgb: 146, 215, 245;
  --note-pulse: 4.4s;
  --note-phase: -3.2s;
  --note-tilt: 1.4deg;
  --note-rise: -5px;
  --note-drop: 2px;
  border: 1px solid rgba(146, 215, 245, .32);
  border-radius: 120px 24px 120px 24px;
  color: #eaf6fb;
  background: radial-gradient(ellipse at 35% 0%, #d5f2ff24, transparent 62%),
              radial-gradient(ellipse at 50% 100%, #0008, transparent 70%),
              radial-gradient(ellipse at top left, rgba(146, 215, 245, .14), transparent 75%),
              linear-gradient(135deg, #11151ded, #080b12eb);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px #0e2a3a45, 0 4px 8px #07121c40, inset 0 2px 2px #dcf6ff45, inset 0 -5px 9px #0008, inset 2px 0 5px #a9e3ff12;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.2, .75, .25, 1), border-color .25s, box-shadow .3s;
  animation: note-drift 6.4s ease-in-out -.7s infinite;
}
@property --journal-rim-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.journal-stop-card::before { display: none; }
.journal-stop-card::after {
  inset: 0;
  padding: 2px;
  border: 0;
  background: conic-gradient(from var(--journal-rim-angle), transparent 0deg 235deg, #92d7f522 270deg, #92d7f5b3 300deg, #effcff 316deg, #92d7f566 326deg, transparent 344deg 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow: none;
  opacity: .9;
  animation: journal-rim-orbit 7s linear var(--note-phase) infinite;
}
@keyframes journal-rim-orbit { to { --journal-rim-angle: 360deg; } }
@media (hover: hover) and (pointer: fine) {
  .journal-stop-card:hover {
    box-shadow: 0 22px 44px #0005, 0 0 24px #92d7f524, inset 0 2px 2px #dcf6ff60, inset 0 -5px 9px #0008, inset 2px 0 5px #a9e3ff20;
  }
  .journal-stop-card:hover::after { animation-duration: 5s; }
}
.journal-stop-tunnel .journal-stop-card { margin-left: auto; --note-phase: -5.1s; animation-duration: 7.2s; animation-delay: -2.4s; }
.journal-stop-next .journal-stop-card { --note-phase: -1.2s; animation-duration: 6.8s; animation-delay: -4.1s; }
.journal-stop-card h4 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.journal-stop-card p { margin: 0; font-size: 1rem; line-height: 1.55; color: #c8e6f3; }
.journal-stop-card .journal-stop-label { display: flex; align-items: center; gap: 12px; font-family: 'Geist Mono', monospace; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #8fd0ec; }
.journal-stop-label span { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--stop-dot); }
.journal-note { margin-top: 128px; }
.journal-note-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.journal-note-figure { position: relative; margin: 0; }
.journal-note-figure > img { display: block; width: 100%; height: auto; border-radius: 240px 32px 240px 32px; }
/* The artwork contains the quote; keep a text equivalent available to readers. */
.journal-note-caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journal-note-caption blockquote, .journal-note-caption p { margin: 0; }
.journal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 0; font-size: .875rem; line-height: 1.5; }
.journal-footer a { text-underline-offset: 5px; }
.journal-footer a:hover { color: #1d5f80; }
.journal-footer a span { margin-left: 12px; }
.blue-chapter a:focus-visible { outline-color: var(--chapter-ink); }
.site-header.on-blue { top: 16px; color: #0e2a3a; border-color: transparent; background: transparent; font-family: 'Geist', Helvetica, Arial, sans-serif; }
.site-header.on-blue.has-journal-background { background: var(--journal-blue); border-color: #0e2a3a38; }
.site-header { transition: background-color .6s ease, border-color .6s ease; }
.site-header.on-blue .header-label { color: #1d5f80; font-family: 'Geist Mono', monospace; }
.site-header.on-blue .moon, .site-header.on-blue .brand-star { color: #0e2a3a; }
.site-header.on-blue .small-button { border-color: #0e2a3a; border-radius: 999px 12px 999px 12px; background: #0e2a3a; color: #b9e3f5; }
.site-header.on-blue .small-button:hover { background: #1d5f80; color: #fff; }
.site-header.on-blue a:focus-visible { outline-color: #0e2a3a; }

/* Avalanche playback controls remain attached to the pinned tunnel. */
.chapter-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; max-width: 88%; padding: 17px 26px; border: 1px solid #ffffff90; border-radius: 32px; color: #fff; background: #071421e8; font-size: 1.125rem; font-weight: 600; box-shadow: 0 8px 32px #0005; }
.chapter-skip { position: absolute; right: 6%; bottom: 32px; z-index: 2; padding: 13px 20px; border: 1px solid #ffffff70; border-radius: 28px; color: #fff; background: #071421cc; font-size: .875rem; }
.chapter-skip span { margin-left: 18px; }

/* Show the full source frame at 60% size, flush with the bottom of the page. */
.chapter-finale {
  position: relative;
  isolation: isolate;
  height: min(60svh, 25.7298vw, 567.6px);
  overflow: hidden;
  background: var(--chapter-blue);
}
.finale-stage { position: relative; display: grid; place-items: end center; height: 100%; overflow: hidden; }
.finale-film {
  position: relative;
  width: min(60%, 1323.6px);
  height: 100%;
  max-height: 567.6px;
  pointer-events: none;
}
.finale-video, .finale-still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center bottom;
}
.finale-video { visibility: hidden; }
@media (max-width: 760px) {
  .journal-shell { padding-bottom: 112px; background: linear-gradient(to bottom, var(--chapter-blue), var(--journal-blue) 144px, var(--journal-blue) calc(100% - 112px), var(--chapter-blue)); }
  .journal-intro { padding-top: 144px; }
  .journal-title-scene { margin-top: 32px; }
  #journal-title { font-size: clamp(3.375rem, 14.5vw, 6.75rem); line-height: .98; scroll-margin-top: 112px; }
  .journal-title-film { width: clamp(160px, 48vw, 280px); bottom: -8px; }
  .journal-intro-band { align-items: flex-start; gap: 20px; padding: 32px 0; }
  .journal-lead { max-width: 46ch; text-align: left; }
  .journal-route { padding-top: 48px; }
  .journal-stops { gap: 48px; margin-top: 28px; }
  .journal-stop { padding-bottom: 0; }
  .journal-stop-scene { aspect-ratio: auto; }
  .journal-stop-card { position: relative; inset: auto; max-width: none; margin-top: 12px; padding: 32px clamp(24px, 6vw, 40px); border-radius: 64px 20px 64px 20px; --note-rise: -3px; --note-drop: 1px; }
  .journal-stop-card h4 { font-size: clamp(1.625rem, 5vw, 2.125rem); }
  .journal-note { margin-top: 64px; }
  .journal-note-figure > img { border-radius: 64px 16px 64px 16px; }
  .journal-note-caption { position: static; width: auto; height: auto; margin: 24px 0 0; padding: 0; overflow: visible; clip-path: none; white-space: normal; }
  .journal-note-caption blockquote { font-family: 'Newsreader', Georgia, serif; font-size: 1.625rem; line-height: 1.3; }
  .journal-note-caption .journal-note-author { margin-top: 12px; font-size: .875rem; }
  .journal-footer { gap: 16px; padding-top: 32px; }
}
.chapter-finale.has-finale-scroll { height: 260svh; min-height: 0; max-height: none; overflow: visible; }
.has-finale-scroll .finale-stage { position: sticky; top: 0; height: 100svh; height: 100dvh; }
.has-finale-scroll .finale-film { height: 60%; }
.has-finale-scroll .finale-video { visibility: visible; }
.has-finale-scroll .finale-still { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  #hero.bone-active:not(.is-playing-chapter), #hero.bone-active:not(.is-playing-chapter) * { cursor: none; }
}
@media (min-aspect-ratio: 19/10) {
  .meeting-section { min-height: 680px; }
  .intro { top: 25%; }
}
@media (max-width: 1000px) {
  .header-label, .coords { display: none; }
  .intro { top: 19%; max-width: 48%; }
  h1 { font-size: 48px; }
  .scene img, .scene canvas, .tunnel-still, .tunnel-video, .chapter-video { object-position: 52% center; }
  .chapter-film, .chapter-handoff { background-position: 52% center; }
  .description { font-size: 16px; }
}
@media (max-width: 650px) {
  .meeting-section { min-height: 800px; }
  .site-header { height: 86px; left: 6%; right: 6%; }
  .site-header.on-blue { top: 12px; gap: 12px; }
  .site-header.on-blue .small-button { max-width: calc(100% - 118px); gap: 8px; padding: 10px 12px; line-height: 1.3; text-align: center; text-wrap: balance; }
  .brand { font-size: 24px; }
  .moon { font-size: 30px; }
  .small-button { padding: 10px 15px; font-size: 14px; }
  .intro { top: 122px; left: 7%; max-width: 86%; }
  h1 { font-size: clamp(40px, 10vw, 58px); letter-spacing: -2px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .description { margin: 18px 0; font-size: 16px; line-height: 1.5; }
  .primary { padding: 14px 19px; }
  .hint { display: none; }
  .scene { top: 280px; bottom: 0; }
  .scene img, .scene canvas, .tunnel-still, .tunnel-video, .chapter-video { object-position: 50% center; }
  .chapter-film, .chapter-handoff { background-position: 50% center; }
  .shade { background: linear-gradient(180deg, #07090c 0%, #07090c 29%, transparent 59%, rgba(3,5,8,.85) 100%); }
  .scene-meta { bottom: 25px; left: 7%; right: 7%; font-size: 12px; letter-spacing: 1px; }
  .interaction { display: none; }
  .scroll-cue { bottom: 60px; font-size: 12px; letter-spacing: 1px; }
  .tunnel-caption { bottom: 100px; }
  .tunnel-notes {
    inset: 108px 5% 170px;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: space-between;
    gap: .75rem;
  }
  .tunnel-note { --note-rise: -3px; --note-drop: 1px; padding: .625rem; grid-template-columns: 1.625rem minmax(0, 1fr); gap: .375rem .5rem; }
  .tunnel-note:nth-child(3) { grid-area: 1 / 2; }
  .tunnel-note:nth-child(4) { grid-area: 2 / 2; }
  .note-discovery, .note-companion { margin: 0; }
  .note-emblem { grid-row: 1; width: 1.625rem; height: 1.625rem; border-radius: 8px; }
  .note-icon { width: 1rem; height: 1rem; }
  .note-discovery .note-emblem { outline-offset: 2px; }
  .note-number { font-size: 3rem; right: .25rem; }
  .tunnel-note h3 { align-self: center; margin: 0; font-size: .875rem; line-height: 1.25; }
  .tunnel-note p { grid-column: 1 / -1; margin: 0; font-size: .875rem; line-height: 1.4; }
  .return-surface { bottom: 24px; right: 50%; transform: translateX(50%); white-space: nowrap; }
  .is-enhanced #journey { height: 420svh; }
  .is-enhanced .scene { top: calc(280px * (1 - var(--descent))); }
  .is-enhanced .shade { opacity: calc(1 - var(--descent) * .7); }
}
@media (max-height: 600px) and (min-width: 651px) {
  .tunnel-notes { top: 118px; bottom: 130px; transform: none; align-content: center; gap: .5rem 1.5rem; }
  .tunnel-note { --note-rise: -3px; --note-drop: 1px; padding: .625rem; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .625rem; }
  .tunnel-note .note-emblem { grid-row: 1 / span 2; width: 2rem; height: 2rem; }
  .note-icon { width: 1.25rem; height: 1.25rem; }
  .note-number { display: none; }
  .tunnel-note h3 { align-self: start; margin: 0; font-size: .875rem; line-height: 1.2; }
  .tunnel-note p { grid-column: 2; margin: 0; font-size: .875rem; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .journal-stop-card, .journal-stop-card::after, .tunnel-note, .tunnel-note::after { animation: none; translate: none; rotate: none; }
  .tunnel-note:hover, .journal-stop-card:hover { transform: none; animation: none; }
  .tunnel-note:hover .note-icon { transform: none; }
  .is-enhanced #journey { height: 200svh; }
  .scene .descent-frames { display: none; }
  .tunnel-video { display: none; }
  .is-enhanced .tunnel-still { opacity: var(--descent); }
  .bone-pointer img { animation: none; }
  .bone-pointer::before, .bone-pointer::after { display: none; animation: none; }
}
