:root {
  color-scheme: light dark;
  --canvas: #eef3f4;
  --surface: #f9fbfb;
  --surface-strong: #ffffff;
  --surface-muted: #e1eaec;
  --ink: #10242d;
  --ink-soft: #48606a;
  --ink-faint: #5c7078;
  --line: #c7d5d8;
  --line-strong: #9eb3b8;
  --navy: #112f42;
  --navy-ink: #f4fbfc;
  --navy-muted: rgba(244, 251, 252, 0.7);
  --navy-faint: rgba(244, 251, 252, 0.64);
  --blue: #146b83;
  --blue-soft: #d4e8ec;
  --blue-focus: #087b9a;
  --signal: #a64138;
  --signal-soft: #f1dfdc;
  --shadow: 0 22px 70px rgba(19, 48, 62, 0.1);
  --header-bg: rgba(249, 251, 251, 0.88);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --content: 1180px;
  --reading: 760px;
  --header-height: 64px;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #09151b;
    --surface: #101f27;
    --surface-strong: #142630;
    --surface-muted: #182c35;
    --ink: #eef7f8;
    --ink-soft: #b1c4ca;
    --ink-faint: #8fa6ad;
    --line: #29434d;
    --line-strong: #496670;
    --navy: #d7f3f7;
    --navy-ink: #0a1e27;
    --navy-muted: rgba(10, 30, 39, 0.72);
    --navy-faint: rgba(10, 30, 39, 0.66);
    --blue: #61c9dc;
    --blue-soft: #143844;
    --blue-focus: #8ee8f7;
    --signal: #f08c83;
    --signal-soft: #3c2222;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --header-bg: rgba(9, 21, 27, 0.88);
  }
}

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

html {
  min-width: 300px;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(20, 107, 131, 0.04) 50%, transparent calc(50% + 0.5px)),
    var(--canvas);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

::selection {
  color: var(--navy-ink);
  background: var(--blue);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--navy-ink);
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue-focus);
  outline-offset: 3px;
}

.support-banner {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(210px, 0.22fr) minmax(0, 1fr) 64px;
  align-items: center;
  min-height: 56px;
  padding-left: max(20px, calc((100vw - var(--content)) / 2));
  color: #f4fafb;
  background: #112f42;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.support-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 22px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.support-signal {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #75d7e6;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(117, 215, 230, 0.15);
}

.ticker-viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: supporter-ticker 125s linear infinite;
}

.support-banner.is-paused .ticker-track,
.support-banner:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-list {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.ticker-list li {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 580;
  letter-spacing: 0.01em;
}

.ticker-list li::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: 40px;
  background: #7ccedb;
  border-radius: 50%;
  opacity: 0.65;
}

.ticker-toggle {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-width: 64px;
  min-height: 44px;
  color: #d9edf1;
  background: #112f42;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.ticker-toggle:hover {
  background: #173b50;
}

.ticker-toggle:active {
  background: #0d2635;
}

@keyframes supporter-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark-plane {
  width: 24px;
  height: 24px;
  fill: var(--blue);
}

.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 590;
  text-decoration: none;
  border-radius: 10px;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--blue-soft);
}

#main-content {
  min-height: 70vh;
}

#main-content:focus {
  outline: none;
}

.view h1:focus,
.story-chapter:focus {
  outline: none;
}

.view {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 76px 0 110px;
}

.view[hidden] {
  display: none !important;
}

.hero {
  position: relative;
}

.hero-flightline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin-bottom: 38px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.flightline-path {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.flightline-path::before,
.flightline-path::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--canvas);
}

.flightline-path::before {
  left: 0;
}

.flightline-path::after {
  right: 0;
}

.hero-copy {
  max-width: 940px;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.view-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  text-wrap: balance;
}

.title-mark {
  color: var(--signal);
  font-size: 0.48em;
  vertical-align: top;
  letter-spacing: 0;
}

.hero-deck,
.view-deck {
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-deck {
  max-width: 690px;
  margin: 28px 0 0;
}

.instrument-panel {
  position: relative;
  padding: 0;
}

.primary-counter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: end;
  min-height: 300px;
  padding: clamp(30px, 5vw, 58px);
  color: var(--navy-ink);
  background: var(--navy);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.primary-counter::before {
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 68%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}

.primary-counter::after {
  position: absolute;
  right: 8%;
  bottom: 34px;
  width: min(36%, 390px);
  height: 34px;
  content: "";
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.9) 18% 22%, transparent 22% 40%, rgba(255, 255, 255, 0.9) 40% 44%, transparent 44% 62%, rgba(255, 255, 255, 0.9) 62% 66%, transparent 66% 84%, rgba(255, 255, 255, 0.9) 84% 88%, transparent 88%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent);
}

.counter-heading,
.counter-readout,
.primary-counter .counter-date {
  position: relative;
  z-index: 1;
}

.counter-kicker {
  margin: 0 0 14px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-counter .counter-kicker {
  color: var(--navy-muted);
}

.counter-heading h2,
.secondary-counter h2 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.04em;
}

.counter-heading h2 {
  max-width: 490px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.counter-readout {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px;
  padding-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.counter-readout strong {
  font-size: clamp(74px, 10vw, 148px);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.counter-prefix {
  align-self: center;
  margin-top: 28px;
  color: var(--navy-muted);
  font-size: 18px;
}

.counter-unit {
  align-self: flex-end;
  padding-bottom: 7px;
  color: var(--navy-muted);
  font-size: 20px;
  font-weight: 600;
}

.counter-date {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 530;
}

.primary-counter .counter-date {
  grid-column: 1 / -1;
  margin-top: 36px;
  color: var(--navy-faint);
}

.secondary-counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.secondary-counter {
  position: relative;
  min-height: 226px;
  padding: 30px 32px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.secondary-counter::after {
  position: absolute;
  right: -10px;
  bottom: 20px;
  width: 160px;
  height: 1px;
  content: "";
  background: var(--line-strong);
  transform: rotate(-18deg);
}

.secondary-counter h2 {
  max-width: 330px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
}

.secondary-readout {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.secondary-readout strong {
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 670;
  letter-spacing: -0.065em;
  line-height: 1;
}

.dream-ended .counter-kicker,
.dream-ended .secondary-readout strong {
  color: var(--signal);
}

.dream-ended::before {
  position: absolute;
  top: 0;
  left: 32px;
  width: 42px;
  height: 3px;
  content: "";
  background: var(--signal);
}

.film-section {
  margin-top: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 660;
  letter-spacing: -0.04em;
}

.cabin-code {
  padding-bottom: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  color: #e8f3f5;
  background: #08171f;
  border: 1px solid #284550;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08171f;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.08) 10% 10.2%, transparent 10.2% 90%, rgba(255, 255, 255, 0.08) 90% 90.2%, transparent 90.2%),
    #08171f;
  pointer-events: none;
}

.video-placeholder[hidden] {
  display: none;
}

.video-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  fill: #75d7e6;
}

.video-placeholder p {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.video-placeholder span {
  color: #9fb5bc;
  font-size: 13px;
}

.story-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 640;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease;
}

.button svg,
.back-link svg,
.control-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button-primary {
  color: var(--navy-ink);
  background: var(--navy);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.view-header {
  max-width: 920px;
  margin-bottom: 64px;
}

.view-header h1 {
  font-size: clamp(44px, 6.5vw, 78px);
}

.view-header .view-deck {
  max-width: 730px;
  margin: 24px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading));
  justify-content: space-between;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.chapter-rail {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-top: 8px;
}

.chapter-rail-title {
  margin: 0 0 14px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.chapter-rail nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chapter-rail a {
  display: block;
  padding: 9px 0 9px 13px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 1px solid var(--line);
}

.chapter-rail a:hover {
  color: var(--ink);
  border-left-color: var(--blue);
}

.chapter-rail a[aria-current="true"] {
  color: var(--ink);
  font-weight: 650;
  border-left: 2px solid var(--blue);
}

.story-article {
  min-width: 0;
}

.story-chapter {
  padding: 10px 0 74px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.story-chapter + .story-chapter {
  padding-top: 68px;
}

.story-chapter:last-child {
  border-bottom: 0;
}

.story-chapter-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-chapter-index::after {
  width: 54px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.story-chapter h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.story-chapter h3 {
  margin: 48px 0 16px;
  font-size: 22px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.story-chapter p {
  margin: 0 0 1.35em;
  color: var(--ink);
  font-size: clamp(17px, 1.65vw, 19px);
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-ideograph;
}

.story-chapter .story-quote,
.story-chapter blockquote {
  margin: 34px 0;
  padding: 22px 0 22px 24px;
  color: var(--ink);
  background: transparent;
  border-left: 3px solid var(--blue);
  font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 620;
  line-height: 1.65;
}

.story-chapter .story-quote p,
.story-chapter blockquote p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.story-chapter .dialogue {
  margin: 0.15em 0;
  padding-left: 1.25em;
  color: var(--ink-soft);
  font-weight: 520;
  text-align: left;
}

.story-note {
  margin: 30px 0;
  padding: 20px 22px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.75;
}

.story-gallery,
.timeline-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin: 42px 0 10px;
}

.story-figure,
.timeline-figure {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.story-figure.is-portrait,
.timeline-figure.is-portrait {
  flex-grow: 0.74;
}

.story-figure.is-wide,
.timeline-figure.is-wide {
  flex-basis: 100%;
}

.story-figure img,
.timeline-figure img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #dfe8e9;
}

.story-figure figcaption,
.timeline-figure figcaption {
  padding: 12px 15px 14px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.story-end {
  max-width: var(--reading);
  margin: 40px 0 0 auto;
  padding: 56px 0 10px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.story-end svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  fill: var(--blue);
}

.story-end p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.story-end-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.story-end-actions .button {
  min-width: 190px;
}

.timeline-header {
  margin-bottom: 44px;
}

.timeline-navigator {
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 44px rgba(19, 48, 62, 0.06);
}

.timeline-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.timeline-status p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.timeline-status output {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 680;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.timeline-status .timeline-position {
  padding-top: 3px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.timeline-rail {
  position: relative;
  height: 112px;
  margin: 6px 0 0;
}

.timeline-year-marks {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.timeline-year {
  position: absolute;
  top: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 7px;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
}

.timeline-year::after {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 1px;
  height: 13px;
  content: "";
  background: var(--line-strong);
}

.timeline-year:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.timeline-year[aria-current="true"] {
  color: var(--ink);
  background: var(--blue-soft);
}

.timeline-route {
  position: absolute;
  top: 56px;
  left: 4%;
  width: 92%;
  height: 2px;
  background: var(--line-strong);
}

.timeline-route::before,
.timeline-route::after {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--surface-strong);
  border: 2px solid var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-route::before {
  left: -3px;
}

.timeline-route::after {
  right: -3px;
}

.timeline-plane {
  position: absolute;
  top: 38px;
  left: 4%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy-ink);
  background: var(--navy);
  border: 4px solid var(--surface-strong);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(17, 47, 66, 0.25);
  transform: translateX(-50%);
  transition: left 280ms var(--ease-out);
  pointer-events: none;
}

.timeline-plane svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.timeline-range {
  position: absolute;
  top: 22px;
  left: 4%;
  z-index: 4;
  width: 92%;
  height: 68px;
  margin: 0;
  opacity: 0.001;
  cursor: grab;
}

.timeline-range:active {
  cursor: grabbing;
}

.timeline-rail:has(.timeline-range:focus-visible) {
  outline: 3px solid var(--blue-focus);
  outline-offset: 7px;
  border-radius: 10px;
}

.timeline-hint {
  margin: -3px 0 18px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.timeline-controls {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.control-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.control-button:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.control-button:disabled {
  color: var(--ink-faint);
  opacity: 0.45;
  cursor: default;
}

.timeline-progress {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.timeline-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 280ms var(--ease-out);
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 36px;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  min-height: 420px;
}

.timeline-card-marker {
  position: relative;
  min-height: 80px;
}

.timeline-card-marker::before {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--surface);
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.timeline-card-marker::after {
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 9px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-event-header,
.timeline-event-body,
.timeline-gallery {
  grid-column: 2;
}

.timeline-event-date {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.timeline-event-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.timeline-event-deck {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.timeline-event-body {
  max-width: 760px;
  margin-top: 30px;
}

.timeline-event-body p {
  margin: 0 0 1.25em;
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
}

.timeline-event-body .dialogue {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.timeline-event-body blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  font-size: 20px;
  font-weight: 610;
}

.timeline-gallery {
  grid-column: 1 / -1;
  margin-top: 30px;
}

.timeline-figure {
  flex-basis: min(340px, 100%);
}

.site-footer {
  color: #edf6f7;
  background: #0d2533;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(50px, 8vw, 120px);
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.site-footer .eyebrow {
  color: #7dd7e3;
}

.acknowledgements h2 {
  margin: 0 0 42px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.acknowledgements ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.acknowledgements li {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 24px;
  background: #0d2533;
}

.acknowledgements li span {
  color: #9eb8bf;
  font-size: 12px;
  line-height: 1.55;
}

.acknowledgements li strong {
  align-self: end;
  margin-top: 20px;
  font-size: 23px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.acknowledgements li small {
  margin-top: 4px;
  color: #86c6d0;
  font-size: 12px;
}

.footer-closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.footer-closing svg {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  fill: #75d7e6;
}

.footer-dedication {
  max-width: 520px;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.footer-note {
  margin: 26px 0 0;
  color: #88a4ac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.noscript-note {
  margin: 0;
  padding: 16px 20px;
  color: var(--ink);
  background: var(--signal-soft);
  text-align: center;
}

@media (max-width: 900px) {
  .primary-counter {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .counter-readout {
    justify-content: flex-start;
    margin-top: 52px;
    padding-bottom: 0;
  }

  .primary-counter .counter-date {
    margin-top: 22px;
  }

  .reading-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .chapter-rail {
    position: static;
    overflow-x: auto;
    padding: 10px 0 15px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .chapter-rail-title {
    display: none;
  }

  .chapter-rail nav {
    flex-direction: row;
    width: max-content;
    gap: 5px;
  }

  .chapter-rail a {
    min-height: 44px;
    padding: 11px 13px;
    white-space: nowrap;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .chapter-rail a[aria-current="true"] {
    background: var(--blue-soft);
    border-color: var(--blue);
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-card-marker {
    display: none;
  }

  .timeline-event-header,
  .timeline-event-body,
  .timeline-gallery {
    grid-column: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-closing {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 58px;
    --radius-xl: 24px;
  }

  .support-banner {
    grid-template-columns: minmax(0, 1fr) 60px;
    padding-left: 16px;
  }

  .support-heading {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 10px 0 0;
    font-size: 12px;
  }

  .ticker-list li {
    min-height: 46px;
    padding: 0 16px;
    font-size: 16px;
  }

  .ticker-list li::after {
    margin-left: 32px;
  }

  .ticker-toggle {
    align-self: center;
    min-width: 60px;
    min-height: 46px;
    border-left: 0;
  }

  .header-inner,
  .view,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .wordmark {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .wordmark-plane {
    width: 22px;
    height: 22px;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav a {
    padding: 0 9px;
    font-size: 13px;
  }

  .view {
    padding: 48px 0 76px;
  }

  .hero-flightline {
    margin-bottom: 30px;
  }

  .hero-copy {
    margin-bottom: 38px;
  }

  .hero h1,
  .view-header h1 {
    font-size: clamp(39px, 12.6vw, 56px);
    line-height: 1.06;
  }

  .hero-deck,
  .view-deck {
    font-size: 16px;
  }

  .primary-counter {
    padding: 28px 22px 26px;
  }

  .primary-counter::after {
    right: 4%;
    bottom: 24px;
    width: 50%;
  }

  .counter-heading h2 {
    font-size: 30px;
  }

  .counter-readout {
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 40px;
  }

  .counter-readout strong {
    font-size: clamp(76px, 25vw, 106px);
  }

  .counter-prefix {
    flex-basis: 100%;
    margin: 0;
    font-size: 15px;
  }

  .counter-unit {
    padding-bottom: 3px;
    font-size: 17px;
  }

  .secondary-counters {
    grid-template-columns: 1fr;
  }

  .secondary-counter {
    min-height: 195px;
    padding: 26px 22px;
  }

  .secondary-counter h2 {
    font-size: 24px;
  }

  .secondary-readout strong {
    font-size: 56px;
  }

  .dream-ended::before {
    left: 22px;
  }

  .film-section {
    margin-top: 66px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .cabin-code {
    display: none;
  }

  .video-shell {
    border-radius: 20px;
  }

  .video-placeholder svg {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .video-placeholder p {
    font-size: 15px;
  }

  .video-placeholder span {
    max-width: 260px;
    font-size: 11px;
  }

  .story-actions {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 56px;
  }

  .view-header {
    margin-bottom: 38px;
  }

  .back-link {
    margin-bottom: 24px;
  }

  .chapter-rail {
    margin-right: -14px;
  }

  .story-chapter {
    padding-bottom: 55px;
  }

  .story-chapter + .story-chapter {
    padding-top: 52px;
  }

  .story-chapter h2 {
    margin-bottom: 22px;
    font-size: 36px;
  }

  .story-chapter p {
    font-size: 17px;
    line-height: 1.9;
    text-align: left;
  }

  .story-chapter .story-quote,
  .story-chapter blockquote {
    padding-left: 18px;
  }

  .story-figure,
  .story-figure.is-portrait,
  .story-figure.is-wide,
  .timeline-figure,
  .timeline-figure.is-portrait,
  .timeline-figure.is-wide {
    flex-basis: 100%;
  }

  .story-figure img,
  .timeline-figure img {
    max-height: 620px;
  }

  .story-end {
    text-align: left;
  }

  .story-end svg {
    margin-left: 0;
  }

  .story-end-actions {
    justify-content: flex-start;
  }

  .story-end-actions,
  .story-end-actions .button {
    width: 100%;
  }

  .timeline-navigator {
    margin-right: -6px;
    margin-left: -6px;
    padding: 22px 14px 18px;
  }

  .timeline-status output {
    font-size: 28px;
  }

  .timeline-rail {
    height: 106px;
  }

  .timeline-year {
    padding: 4px 3px;
    font-size: 10px;
  }

  .timeline-year:nth-child(3),
  .timeline-year:nth-child(4),
  .timeline-year:nth-child(6),
  .timeline-year:nth-child(7) {
    display: none;
  }

  .timeline-plane {
    top: 38px;
    width: 38px;
    height: 38px;
  }

  .timeline-plane svg {
    width: 20px;
    height: 20px;
  }

  .timeline-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .control-button {
    justify-content: center;
    background: var(--surface-muted);
  }

  .timeline-progress {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .timeline-card {
    margin-right: -6px;
    margin-left: -6px;
    padding: 28px 20px 24px;
  }

  .timeline-event-header h2 {
    font-size: 38px;
  }

  .timeline-event-deck,
  .timeline-event-body p {
    font-size: 16px;
  }

  .timeline-event-body p {
    text-align: left;
  }

  .timeline-gallery {
    margin-top: 24px;
  }

  .footer-inner {
    padding: 64px 0 56px;
  }

  .acknowledgements h2 {
    margin-bottom: 30px;
    font-size: 34px;
  }

  .acknowledgements ul {
    grid-template-columns: 1fr;
  }

  .acknowledgements li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-height: 96px;
    padding: 20px;
  }

  .acknowledgements li span {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  .acknowledgements li strong {
    margin: 0;
  }

  .acknowledgements li small {
    margin: 0 0 3px 12px;
    text-align: right;
  }

  .footer-closing {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none;
    transform: none;
    width: auto;
  }

  .ticker-list[aria-hidden="true"] {
    display: none;
  }

  .ticker-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker-toggle {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #738a91;
    --line-strong: #435c64;
    --ink-soft: #304b55;
  }

  .secondary-counter,
  .timeline-navigator,
  .timeline-card,
  .story-figure,
  .timeline-figure {
    border-width: 2px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media print {
  .support-banner,
  .site-header,
  .back-link,
  .timeline-navigator,
  .story-actions,
  .story-end-actions {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .view {
    width: 100%;
    padding: 0;
  }

  .reading-layout {
    display: block;
  }

  .story-chapter,
  .story-figure,
  .site-footer {
    break-inside: avoid;
  }
}
