:root {
  color-scheme: dark;
  --ink: #f8f2dc;
  --muted: #d8d2bd;
  --soft: rgba(248, 242, 220, 0.76);
  --night: #111826;
  --deep: #172130;
  --teal: #087f8c;
  --sea: #0e5f76;
  --moss: #7a8d4a;
  --gold: #d3a43c;
  --coral: #d15f3d;
  --paper: #efe1b8;
  --line: rgba(248, 242, 220, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(17, 24, 38, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #16100a;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 34px);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.hero {
  min-height: 88svh;
  overflow: hidden;
  padding: 124px clamp(18px, 5vw, 72px) 62px;
  position: relative;
}

.hero-media,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 48%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 38, 0.94) 0%, rgba(17, 24, 38, 0.65) 42%, rgba(17, 24, 38, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 24, 38, 0.88) 0%, rgba(17, 24, 38, 0.14) 48%);
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  font-size: clamp(58px, 11vw, 142px);
  margin-bottom: 22px;
  max-width: 860px;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.52);
}

h2 {
  font-size: clamp(34px, 5.6vw, 74px);
  margin-bottom: 24px;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.08;
}

.hero-copy {
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 25px);
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 42px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1a1309;
}

.button.secondary {
  background: rgba(248, 242, 220, 0.1);
  border-color: rgba(248, 242, 220, 0.34);
  color: var(--paper);
}

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

.hero-facts {
  border-top: 1px solid rgba(248, 242, 220, 0.3);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  padding-top: 22px;
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  margin: 4px 0 0;
}

.intro-section,
.editor-section,
.restore-section,
.archive-section,
.roadmap-section,
.closing-section {
  padding: clamp(70px, 9vw, 122px) clamp(18px, 5vw, 72px);
}

.intro-section {
  background:
    linear-gradient(180deg, #111826 0%, #182638 100%);
  border-top: 1px solid rgba(248, 242, 220, 0.1);
}

.intro-grid {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

.intro-grid p,
.restore-copy p,
.archive-lead,
.closing-section p,
.editor-heading p {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.wide-art {
  margin: 0;
}

.wide-art img,
.art-tile img,
.editor-preview img,
.closing-section img {
  border: 1px solid rgba(248, 242, 220, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  color: rgba(248, 242, 220, 0.7);
  font-size: 13px;
  margin-top: 10px;
}

.editor-section {
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.22), transparent 38%),
    linear-gradient(180deg, #1c2b38 0%, #111826 100%);
}

.editor-heading {
  align-items: end;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  margin-bottom: 38px;
}

.editor-note {
  border-left: 3px solid var(--gold);
  color: var(--paper);
  font-weight: 700;
  margin: 0;
  padding-left: 18px;
}

.workbench {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
}

.editor-preview {
  margin: 0;
}

.editor-preview img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.editor-panel {
  background: rgba(9, 16, 25, 0.82);
  border: 1px solid rgba(248, 242, 220, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.panel-tag {
  align-self: flex-start;
  background: rgba(8, 127, 140, 0.22);
  border: 1px solid rgba(8, 127, 140, 0.5);
  border-radius: 999px;
  color: #c7f7ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 10px;
  text-transform: uppercase;
}

.feature-list {
  color: var(--muted);
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.feature-list li::marker {
  color: var(--gold);
}

.gallery-buttons {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.gallery-button {
  background: rgba(248, 242, 220, 0.08);
  border: 1px solid rgba(248, 242, 220, 0.18);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}

.gallery-button.active,
.gallery-button:hover,
.gallery-button:focus-visible {
  background: rgba(211, 164, 60, 0.18);
  border-color: rgba(211, 164, 60, 0.72);
}

.restore-section {
  background: linear-gradient(180deg, #111826 0%, #172130 100%);
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.restore-points {
  display: grid;
  gap: 16px;
}

.restore-points article,
.timeline-item {
  background: rgba(248, 242, 220, 0.07);
  border: 1px solid rgba(248, 242, 220, 0.15);
  border-radius: var(--radius);
  padding: 22px;
}

.restore-points span,
.timeline-item span {
  color: var(--gold);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.restore-points h3,
.timeline-item h3 {
  margin-bottom: 8px;
}

.restore-points p,
.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.archive-section {
  background: #efe1b8;
  color: #201915;
}

.archive-section .section-kicker {
  color: #8c4a28;
}

.archive-lead {
  color: rgba(32, 25, 21, 0.78);
  margin-bottom: 34px;
}

.art-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
}

.art-tile {
  margin: 0;
}

.art-tile img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.art-tile.tall img {
  aspect-ratio: 16 / 9;
}

.archive-section figcaption {
  color: rgba(32, 25, 21, 0.7);
  font-weight: 800;
}

.roadmap-section {
  background:
    linear-gradient(140deg, rgba(209, 95, 61, 0.14), transparent 42%),
    linear-gradient(180deg, #172130 0%, #111826 100%);
}

.timeline {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
}

.timeline-item.active {
  border-color: rgba(211, 164, 60, 0.7);
  box-shadow: 0 0 0 1px rgba(211, 164, 60, 0.24), var(--shadow);
}

.timeline-item.complete {
  border-color: rgba(8, 127, 140, 0.56);
}

.closing-section {
  align-items: center;
  background: linear-gradient(180deg, #111826 0%, #0e141f 100%);
  display: grid;
  gap: clamp(28px, 5vw, 66px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.closing-section img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  background: #080d14;
  border-top: 1px solid rgba(248, 242, 220, 0.14);
  color: rgba(248, 242, 220, 0.62);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

.site-footer p {
  font-size: 13px;
  margin: 0;
  max-width: 680px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.subpage {
  background:
    linear-gradient(180deg, #111826 0%, #182638 38%, #111826 100%);
}

.page-hero {
  padding: 132px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 100px);
}

.split-hero,
.soundtrack-hero,
.soundtrack-overview,
.history-summary,
.systems-section,
.source-section,
.making-film-section {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.split-hero h1,
.soundtrack-hero h1 {
  font-size: clamp(46px, 7vw, 96px);
  max-width: 980px;
}

.hero-art-panel,
.soundtrack-cover {
  margin: 0;
}

.hero-art-panel img,
.soundtrack-cover img,
.package-scan img,
.artbook-item img {
  border: 1px solid rgba(248, 242, 220, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-art-panel img,
.soundtrack-cover img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.archive-notes,
.complete-gallery,
.package-section,
.track-section,
.history-timeline-section {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.archive-notes,
.soundtrack-overview,
.history-summary,
.systems-section,
.source-section,
.making-film-section {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.archive-notes,
.track-section,
.systems-section {
  background: #efe1b8;
  color: #201915;
}

.archive-notes .section-kicker,
.track-section .section-kicker,
.systems-section .section-kicker {
  color: #8c4a28;
}

.archive-notes .source-note,
.track-section p,
.systems-section p {
  color: rgba(32, 25, 21, 0.76);
}

.chapter-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.chapter-grid article {
  background: rgba(32, 25, 21, 0.08);
  border: 1px solid rgba(32, 25, 21, 0.14);
  border-radius: var(--radius);
  min-height: 142px;
  padding: 18px;
}

.chapter-grid span,
.fact-stack span {
  color: var(--coral);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chapter-grid h3 {
  color: #201915;
  font-size: 23px;
  margin: 0;
}

.source-note {
  color: rgba(248, 242, 220, 0.68);
  font-size: 14px;
  margin-bottom: 0;
  margin-top: 24px;
}

.gallery-intro {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  margin-bottom: 34px;
}

.gallery-intro p {
  color: var(--muted);
  margin: 0;
}

.artbook-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.artbook-item {
  margin: 0;
}

.artbook-item.wide {
  grid-column: span 2;
}

.artbook-item img {
  background: #0d141f;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.artbook-item:not(.wide) img {
  aspect-ratio: 3 / 4;
}

.artbook-item.wide img {
  aspect-ratio: 16 / 9;
}

.soundtrack-hero {
  background:
    linear-gradient(135deg, rgba(211, 164, 60, 0.16), transparent 42%),
    linear-gradient(180deg, #111826 0%, #172130 100%);
}

.soundtrack-cover img {
  object-position: center;
}

.audio-panel {
  background: rgba(9, 16, 25, 0.72);
  border: 1px solid rgba(248, 242, 220, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.audio-panel p {
  color: var(--muted);
}

.audio-panel audio {
  margin: 18px 0 8px;
  width: 100%;
}

.fact-stack {
  display: grid;
  gap: 12px;
}

.fact-stack article {
  background: rgba(248, 242, 220, 0.08);
  border: 1px solid rgba(248, 242, 220, 0.16);
  border-radius: var(--radius);
  padding: 18px;
}

.fact-stack strong {
  color: var(--paper);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
}

.track-table-wrap {
  background: #fff7dc;
  border: 1px solid rgba(32, 25, 21, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.track-table {
  border-collapse: collapse;
  color: #201915;
  width: 100%;
}

.track-table th,
.track-table td {
  border-bottom: 1px solid rgba(32, 25, 21, 0.12);
  padding: 12px 16px;
  text-align: left;
}

.track-table th {
  background: rgba(32, 25, 21, 0.08);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-table td:first-child,
.track-table td:last-child {
  font-weight: 800;
  white-space: nowrap;
}

.making-film-section {
  background: linear-gradient(135deg, rgba(8, 127, 140, 0.18), #111826 54%);
}

.making-film-section p,
.history-summary p,
.source-section p {
  color: var(--muted);
}

.package-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.package-scan {
  margin: 0;
}

.package-scan img {
  aspect-ratio: 4 / 3;
  background: #101826;
  object-fit: cover;
  width: 100%;
}

.history-summary {
  background: #efe1b8;
  color: #201915;
}

.history-summary .section-kicker {
  color: #8c4a28;
}

.history-summary p {
  color: rgba(32, 25, 21, 0.78);
  font-size: 18px;
}

.history-summary .fact-stack article {
  background: rgba(32, 25, 21, 0.08);
  border-color: rgba(32, 25, 21, 0.15);
}

.history-summary .fact-stack strong {
  color: #201915;
}

.history-timeline {
  display: grid;
  gap: 16px;
}

.history-timeline article {
  background: rgba(248, 242, 220, 0.07);
  border: 1px solid rgba(248, 242, 220, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 220px) minmax(0, 0.45fr) minmax(0, 1fr);
  padding: 22px;
}

.history-timeline time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-timeline h3,
.history-timeline p {
  margin: 0;
}

.history-timeline p {
  color: var(--muted);
}

.systems-section {
  align-items: start;
}

.source-section {
  background: linear-gradient(180deg, #111826 0%, #080d14 100%);
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.source-list a,
.source-note a,
.site-footer a {
  color: var(--paper);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 104px;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 3px;
    width: 100%;
  }

  .hero {
    min-height: 88svh;
    padding-top: 150px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 24, 38, 0.96) 0%, rgba(17, 24, 38, 0.72) 68%, rgba(17, 24, 38, 0.44) 100%),
      linear-gradient(0deg, rgba(17, 24, 38, 0.9) 0%, rgba(17, 24, 38, 0.2) 52%);
  }

  .intro-grid,
  .editor-heading,
  .workbench,
  .restore-section,
  .closing-section,
  .split-hero,
  .soundtrack-hero,
  .soundtrack-overview,
  .history-summary,
  .systems-section,
  .source-section,
  .making-film-section,
  .gallery-intro {
    grid-template-columns: 1fr;
  }

  .timeline,
  .art-grid,
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-tile.tall {
    grid-column: 1 / -1;
  }

  .site-footer {
    flex-direction: column;
  }

  .history-timeline article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 78svh;
    padding-top: 122px;
    padding-bottom: 30px;
  }

  .page-hero {
    padding-top: 138px;
  }

  .hero-facts,
  .timeline,
  .art-grid,
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .artbook-item.wide {
    grid-column: auto;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-nav {
    font-size: 12px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-facts {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(32px, 12vw, 54px);
  }

  .editor-preview img {
    aspect-ratio: 4 / 3;
  }
}
