:root {
  --bg: #080907;
  --ink: #eee8dc;
  --muted: #aaa79f;
  --gold: #d8b570;
  --gold-soft: #ecd29b;
  --line: rgba(236, 230, 217, 0.22);
  --glass: rgba(15, 16, 14, 0.53);
  --glass-border: rgba(255, 255, 255, 0.13);
  --header-h: 78px;
  --story-progress: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: white;
  color: black;
  padding: 10px 14px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(22px, 5vw, 76px);
  background: linear-gradient(to bottom, rgba(5, 6, 5, .84), rgba(5, 6, 5, .26), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #d7bb83;
  letter-spacing: .34em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(216,181,112,.65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.header-status {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(216,181,112,.65); }
.status-sep { opacity: .35; }
#headerYear { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.top-nav { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.top-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.top-nav a:hover, .top-nav a:focus-visible { color: white; }
.top-nav .nav-cta {
  padding: 9px 17px;
  border: 1px solid rgba(216,181,112,.62);
  border-radius: 999px;
  color: #ecd29b;
  background: rgba(216,181,112,.05);
}

.story { position: relative; min-height: 600vh; }
.stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #090a08;
}
.tree-video {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  filter: saturate(.88) contrast(1.04) brightness(.82);
  will-change: transform, filter;
}
.light-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(230,197,134,.08), transparent 28%),
    linear-gradient(120deg, rgba(126,98,50,.08), transparent 45%, rgba(55,70,43,.05));
  mix-blend-mode: screen;
  opacity: .8;
}
.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 15%, rgba(4,5,4,.12) 49%, rgba(4,5,4,.68) 100%),
    linear-gradient(90deg, rgba(4,5,4,.70) 0%, transparent 29%, transparent 69%, rgba(4,5,4,.72) 100%),
    linear-gradient(to bottom, rgba(4,5,4,.42) 0%, transparent 26%, rgba(4,5,4,.38) 100%);
  pointer-events: none;
}
.grain {
  position: absolute;
  inset: -50%;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-3%, 2%); }
  75% { transform: translate(3%, 3%); }
}
.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  will-change: transform, opacity;
}
.ambient-a { width: 38vw; height: 38vw; left: 5vw; top: 20vh; background: #93743e; }
.ambient-b { width: 30vw; height: 30vw; right: 4vw; bottom: 8vh; background: #5d6844; }

.ghost-year {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(150px, 25vw, 420px);
  line-height: .74;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, filter;
}
.stage-caption {
  position: absolute;
  z-index: 3;
  left: clamp(22px, 5vw, 76px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(-50%);
  transform-origin: left top;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: .26em;
  color: rgba(255,255,255,.24);
  white-space: nowrap;
}
.caption-line { width: 44px; height: 1px; background: rgba(255,255,255,.18); }

.stage-meta {
  position: absolute;
  z-index: 4;
  bottom: 32px;
  left: clamp(22px, 5vw, 76px);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  font-size: 12px;
}
#progressPercent { font-size: 27px; color: rgba(255,255,255,.76); font-weight: 250; }
.meta-unit { padding-bottom: 3px; }

.chapters {
  position: relative;
  z-index: 10;
  margin-top: -100vh;
}
.chapter {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
  padding: var(--header-h) clamp(26px, 7vw, 110px) 0;
  pointer-events: none;
}
.chapter::after {
  content: "";
  position: absolute;
  left: 3vw;
  right: 3vw;
  bottom: 0;
  height: 1px;
  opacity: .65;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.085), transparent);
}
.chapter-grid {
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  pointer-events: none;
}
.chapter-grid > * { pointer-events: auto; }

.intro-copy {
  align-self: start;
  margin-top: 12vh;
  width: min(44vw, 640px);
  text-shadow: 0 2px 24px rgba(0,0,0,.42);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .31em;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 112px);
  line-height: .83;
  letter-spacing: -.055em;
}
h1 span { font-style: italic; font-weight: 400; }
.lead {
  margin: 30px 0 0;
  color: rgba(236,230,217,.72);
  font-size: clamp(16px, 1.18vw, 20px);
  line-height: 1.55;
}
.microcopy {
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.13);
  width: min(340px, 90%);
  color: rgba(255,255,255,.38);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.5;
}

.story-card {
  position: relative;
  width: min(34vw, 440px);
  padding: 25px 27px 28px;
  border-radius: 2px 18px 18px 18px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, rgba(25,26,22,.66), rgba(9,10,9,.46));
  box-shadow: 0 18px 80px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(17px) saturate(1.08);
  -webkit-backdrop-filter: blur(17px) saturate(1.08);
  will-change: transform, opacity, filter;
}
.story-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 56px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216,181,112,.34);
}
.card-left { justify-self: start; margin-left: clamp(1vw, 3.5vw, 52px); }
.card-right { justify-self: end; margin-right: clamp(8vw, 13vw, 205px); }
.chapter-intro .card-right { align-self: end; margin-bottom: 13vh; }
.card-index {
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: .27em;
  color: rgba(255,255,255,.34);
}
.card-kicker {
  margin: 0 0 15px !important;
  color: var(--gold) !important;
  font-size: 9px !important;
  letter-spacing: .24em;
}
.story-card h2 { margin: 0 0 16px; font-size: clamp(27px, 2.25vw, 39px); line-height: 1.02; letter-spacing: -.02em; }
.story-card h2 span { color: var(--gold-soft); }
.story-card p { margin: 0; color: rgba(236,230,217,.64); line-height: 1.58; font-size: 14px; }
.story-card .card-lead { color: rgba(255,255,255,.92); margin-bottom: 7px; font-size: 14px; }
.story-link {
  display: inline-block;
  margin-top: 24px;
  color: #e3c78d;
  text-decoration: none;
  border-bottom: 1px solid rgba(227,199,141,.44);
  padding-bottom: 3px;
}
.branch-line {
  position: absolute;
  top: 50%;
  width: clamp(65px, 9vw, 155px);
  height: 1px;
  background: linear-gradient(90deg, rgba(216,181,112,.82), rgba(216,181,112,.06));
  transform-origin: left center;
  opacity: .6;
  pointer-events: none;
}
.card-left .branch-line { right: calc(clamp(65px, 9vw, 155px) * -1); }
.card-right .branch-line { left: calc(clamp(65px, 9vw, 155px) * -1); transform-origin: right center; background: linear-gradient(90deg, rgba(216,181,112,.06), rgba(216,181,112,.82)); }

.chapter-quote {
  align-self: start;
  justify-self: end;
  margin: 17vh clamp(11vw, 15vw, 240px) 0 0;
  max-width: 430px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(34px, 4vw, 70px);
  line-height: .95;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.105);
}
.quote-left { justify-self: start; margin-left: clamp(1vw, 4vw, 60px); margin-right: 0; }
.final-word {
  justify-self: end;
  align-self: center;
  margin-right: clamp(9vw, 14vw, 220px);
  display: grid;
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  line-height: .78;
  letter-spacing: -.06em;
}
.final-word span { font-size: clamp(35px, 4vw, 68px); font-style: italic; color: rgba(255,255,255,.34); }
.final-word strong { font-size: clamp(62px, 7vw, 122px); font-weight: 400; color: rgba(255,255,255,.11); }

.js .reveal { opacity: 0; visibility: hidden; }
.no-gsap .reveal { visibility: visible; }

.timeline-rail {
  position: absolute;
  z-index: 20;
  right: clamp(18px, 4.5vw, 68px);
  top: 16vh;
  bottom: 12vh;
  width: 84px;
}
.rail-line {
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
  overflow: hidden;
}
.rail-line span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #f0cf8e, #9d814f);
  box-shadow: 0 0 16px rgba(216,181,112,.55);
  will-change: height;
}
.rail-point {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: 92px;
  padding: 6px 0;
  background: none;
  color: rgba(255,255,255,.48);
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: color .25s ease;
}
.rail-point:nth-of-type(1) { top: 0%; }
.rail-point:nth-of-type(2) { top: 20%; }
.rail-point:nth-of-type(3) { top: 40%; }
.rail-point:nth-of-type(4) { top: 60%; }
.rail-point:nth-of-type(5) { top: 80%; }
.rail-point:nth-of-type(6) { top: 100%; }
.rail-point i {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.54);
  background: rgba(5,6,5,.72);
  transition: all .25s ease;
}
.rail-point span { font-size: 12px; font-variant-numeric: tabular-nums; }
.rail-point:hover, .rail-point:focus-visible { color: white; outline: none; }
.rail-point:focus-visible i { outline: 2px solid white; outline-offset: 4px; }
.rail-point.is-active { color: #e7c886; }
.rail-point.is-active i {
  border-color: #efcf8a;
  background: #c9a45f;
  box-shadow: 0 0 0 4px rgba(216,181,112,.17), 0 0 20px rgba(216,181,112,.35);
}

.scroll-hint {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(255,255,255,.57);
  font-size: 8px;
  letter-spacing: .23em;
  transition: opacity .4s ease;
}
.mouse {
  width: 20px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 11px;
  display: block;
  position: relative;
}
.mouse span {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 6px;
  background: #d8b570;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: wheel 1.5s ease-in-out infinite;
}
@keyframes wheel { 0%,100%{opacity:.25; transform:translate(-50%,0)} 45%{opacity:1} 70%{opacity:.2; transform:translate(-50%,7px)} }
.arrow { font-size: 17px; line-height: 1; letter-spacing: 0; }
body.has-scrolled .scroll-hint { opacity: .18; }

.noscript {
  position: fixed;
  z-index: 100;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px;
  background: #fff;
  color: #111;
  border-radius: 10px;
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .site-header { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .header-status { display: none; }
  .top-nav a:not(.nav-cta) { display: none; }
  .brand { letter-spacing: .22em; }
  .tree-video { object-position: 52% center; transform: scale(1.18); }
  .ghost-year { font-size: 36vw; top: 41%; }
  .stage-caption { display: none; }
  .timeline-rail { right: 5px; width: 62px; top: 20vh; bottom: 14vh; }
  .rail-point { width: 62px; gap: 8px; }
  .rail-point i { width: 15px; height: 15px; flex-basis: 15px; }
  .rail-line { left: 7px; }
  .rail-point span { font-size: 10px; }
  .chapter { padding: var(--header-h) 74px 0 20px; }
  .chapter-grid { grid-template-columns: 1fr; align-content: end; gap: 22px; padding-bottom: 8vh; }
  .intro-copy { position: absolute; top: 8vh; left: 0; margin: 0; width: calc(100% - 20px); }
  h1 { font-size: clamp(50px, 13vw, 78px); }
  .lead { font-size: 15px; }
  .story-card, .card-left, .card-right, .chapter-intro .card-right { width: min(100%, 410px); margin: 0; justify-self: start; align-self: end; }
  .chapter-intro .story-card { justify-self: end; }
  .branch-line, .chapter-quote, .final-word { display: none; }
  .stage-meta { left: 20px; bottom: 20px; }
  .scroll-hint { bottom: 16px; left: 54%; }
}

@media (max-width: 520px) {
  .nav-cta { padding: 8px 12px !important; font-size: 11px !important; }
  .brand span:last-child { display: none; }
  .story-card { padding: 19px 19px 21px; border-radius: 2px 14px 14px 14px; }
  .story-card h2 { font-size: 27px; }
  .chapter { padding-left: 14px; }
  .intro-copy { top: 6vh; }
  .microcopy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .grain, .ambient, .light-field, .ghost-year { display: none; }
  .tree-video { transform: none !important; filter: saturate(.88) contrast(1.04) brightness(.83) !important; }
  .reveal, .js .reveal { opacity: 1 !important; visibility: visible !important; filter: none !important; transform: none !important; }
}
