:root {
  --paper: #ece8df;
  --ink: #090909;
  --muted: rgba(236, 232, 223, 0.62);
  --line: rgba(255, 255, 255, 0.22);
  --accent: #d8a85f;
  --progress: 0;
  --final: 0;
  --progress-pct: 0%;
  --intro-opacity: 1;
  --story1-opacity: 1;
  --story1-shift: 0px;
  --story2-opacity: 0;
  --story2-clip: 0%;
  --story3-opacity: 0;
  --story3-shift: 0px;
  --story3-clip: 0%;
  --final-opacity: 0;
  --final-scale: .9;
  --final-x: -45px;
  --final-x-mobile: -30px;
  --spec-y: 35px;
  --vignette-opacity: .52;
  --warm-opacity: .12;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }

.scroll-stage { height: 720vh; position: relative; }
.sticky-scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
}

.media-layer,
.drive-video,
.final-still,
.grain,
.vignette,
.warm-light { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-layer { z-index: -3; overflow: hidden; background: #10100f; }
.drive-video {
  object-fit: cover;
  object-position: 50% 57%;
  filter: saturate(.80) contrast(1.06) brightness(.86);
  transform: scale(1.015);
}
.final-still {
  background: url('assets/final-frame.jpg') center 57% / cover no-repeat;
  opacity: var(--final);
  filter: saturate(.78) contrast(1.08) brightness(.70);
  transform: scale(var(--still-scale, 1.035));
  transition: opacity .06s linear;
}
.grain {
  opacity: .12;
  mix-blend-mode: soft-light;
  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='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.vignette {
  background:
    linear-gradient(90deg, rgba(5,5,5,.72) 0%, rgba(5,5,5,.15) 32%, rgba(5,5,5,.03) 58%, rgba(5,5,5,.44) 100%),
    linear-gradient(180deg, rgba(5,5,5,.44) 0%, transparent 24%, transparent 65%, rgba(5,5,5,.72) 100%);
  opacity: var(--vignette-opacity);
}
.warm-light {
  left: auto;
  width: 42vw;
  background: radial-gradient(circle at 100% 50%, rgba(222,160,79,.23), transparent 64%);
  mix-blend-mode: screen;
  opacity: var(--warm-opacity);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(5px);
}
.brand { display: inline-flex; align-items: center; gap: 7px; width: max-content; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.brand i { width: 18px; height: 1px; background: var(--accent); }
.desktop-nav { display: flex; gap: 38px; }
.desktop-nav a { color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: color .25s; }
.desktop-nav a:hover { color: #fff; }
.menu-button { justify-self: end; width: 34px; height: 20px; padding: 0; background: transparent; display: grid; align-content: center; gap: 7px; cursor: pointer; }
.menu-button span { height: 1px; background: #fff; display: block; }
.menu-button span:last-child { width: 70%; justify-self: end; }

.chapter-rail {
  position: absolute;
  z-index: 10;
  left: 42px;
  top: 50%;
  transform: translateY(-45%);
  display: grid;
  gap: 22px;
  width: 100px;
}
.rail-line { position: absolute; left: -15px; top: 4px; width: 1px; height: calc(100% - 8px); background: rgba(255,255,255,.18); }
.rail-line span { display: block; width: 1px; height: var(--progress-pct); background: var(--accent); }
.chapter { padding: 0; display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: baseline; background: transparent; opacity: .35; cursor: pointer; text-align: left; transition: opacity .25s, transform .25s; }
.chapter b { font-size: 10px; letter-spacing: .1em; }
.chapter em { font-style: normal; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.chapter.is-active { opacity: 1; transform: translateX(5px); }

.intro-mark {
  position: absolute;
  z-index: 10;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: var(--intro-opacity);
}
.intro-mark > span { font-size: 9px; letter-spacing: .24em; color: rgba(255,255,255,.66); }
.mouse { width: 20px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; position: relative; }
.mouse i { width: 2px; height: 5px; background: #fff; position: absolute; left: 8px; top: 6px; animation: wheel 1.7s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.story-copy {
  position: absolute;
  z-index: 5;
  left: clamp(130px, 13vw, 250px);
  top: 50%;
  width: min(560px, 48vw);
  transform: translateY(-45%);
  pointer-events: none;
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.story-copy h1,
.story-copy h2,
.final-copy h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(58px, 7.4vw, 136px);
  line-height: .78;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.story-copy h1 span,
.story-copy h2 span,
.final-copy h2 span { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.82); }
.story-description { margin: 28px 0 0; max-width: 410px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.7; }
.story-description.narrow { max-width: 340px; }

.story-one {
  opacity: var(--story1-opacity);
  transform: translateY(calc(-45% - var(--story1-shift)));
}
.story-two {
  opacity: var(--story2-opacity);
  clip-path: inset(0 0 var(--story2-clip) 0);
}
.story-three {
  left: auto;
  right: clamp(60px, 9vw, 170px);
  width: min(540px, 42vw);
  text-align: right;
  opacity: var(--story3-opacity);
  transform: translateY(calc(-45% - var(--story3-shift)));
}
.story-three .eyebrow,
.story-three .story-description { margin-left: auto; }
.story-three { clip-path: inset(0 0 var(--story3-clip) 0); }

.telemetry { display: flex; gap: 35px; margin-top: 32px; }
.telemetry div { display: grid; gap: 2px; }
.telemetry strong { font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.telemetry small { color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .16em; }

.final-layout {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: var(--final-opacity);
  pointer-events: auto;
}
.ghost-title {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) scale(var(--final-scale));
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(250px, 42vw, 780px);
  line-height: .6;
  letter-spacing: -.12em;
  color: rgba(255,255,255,.045);
  white-space: nowrap;
  user-select: none;
}
.final-copy {
  position: absolute;
  left: clamp(120px, 10vw, 190px);
  top: 52%;
  transform: translateY(-50%) translateX(var(--final-x));
  width: min(560px, 43vw);
}
.final-copy h2 { font-size: clamp(72px, 8vw, 150px); }
.final-copy > p:not(.eyebrow) { width: min(390px, 100%); margin: 27px 0 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; }
.actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; }
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 220px;
  padding: 15px 17px;
  background: var(--paper);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform .25s, background .25s;
}
.primary-cta:hover { transform: translateY(-2px); background: #fff; }
.primary-cta span { font-size: 17px; font-weight: 400; }
.soundless { display: flex; align-items: center; gap: 8px; padding: 0; background: transparent; color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.soundless i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.spec-grid {
  position: absolute;
  right: 42px;
  bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 128px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(var(--spec-y));
}
.spec-grid article { min-height: 112px; padding: 17px 16px 15px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.spec-grid article:last-child { border-right: 1px solid var(--line); }
.spec-grid small { color: rgba(255,255,255,.45); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.spec-grid strong { margin-top: auto; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.spec-grid span { color: rgba(255,255,255,.55); font-size: 9px; margin-top: 3px; }

.hotspot { position: absolute; display: flex; align-items: center; gap: 10px; opacity: var(--final); }
.hotspot button { width: 25px; height: 25px; border-radius: 50%; padding: 0; background: rgba(10,10,10,.55); border: 1px solid rgba(255,255,255,.55); color: #fff; cursor: pointer; backdrop-filter: blur(7px); transition: transform .25s, background .25s; }
.hotspot button:hover { transform: rotate(45deg) scale(1.08); background: var(--accent); color: #111; }
.hotspot span { opacity: 0; transform: translateX(-7px); padding: 7px 9px; background: rgba(10,10,10,.65); backdrop-filter: blur(7px); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; transition: .25s; }
.hotspot:hover span { opacity: 1; transform: translateX(0); }
.hotspot-one { left: 62%; top: 45%; }
.hotspot-two { left: 82%; top: 51%; }

.final-footer { position: absolute; left: 42px; right: 42px; bottom: 21px; display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-counter { position: absolute; right: 42px; top: 112px; z-index: 20; display: flex; align-items: baseline; gap: 4px; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.scroll-counter span:first-child { color: #fff; font-size: 14px; }
.scroll-counter i { font-style: normal; opacity: .45; }

.noscript-message { position: fixed; inset: auto 20px 20px; z-index: 99; padding: 14px; background: #fff; color: #111; }

@media (max-width: 900px) {
  .scroll-stage { height: 630vh; }
  .sticky-scene { min-height: 560px; }
  .site-header { padding: 22px 20px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .chapter-rail { display: none; }
  .scroll-counter { right: 20px; top: 82px; }
  .drive-video { object-position: 50% 50%; }
  .final-still { background-position: 50% 50%; }
  .vignette { background: linear-gradient(180deg, rgba(5,5,5,.48) 0%, transparent 30%, rgba(5,5,5,.16) 55%, rgba(5,5,5,.85) 100%); }
  .story-copy,
  .story-three {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 95px;
    width: auto;
    text-align: left;
    transform: none;
  }
  .story-copy h1,
  .story-copy h2 { font-size: clamp(52px, 18vw, 88px); }
  .story-three .eyebrow,
  .story-three .story-description { margin-left: 0; }
  .story-description { max-width: 300px; }
  .intro-mark { left: 20px; transform: none; align-items: flex-start; }
  .mouse { display: none; }
  .final-copy { left: 20px; right: 20px; top: auto; bottom: 205px; width: auto; transform: translateX(var(--final-x-mobile)); }
  .final-copy h2 { font-size: clamp(54px, 18vw, 92px); }
  .final-copy > p:not(.eyebrow) { max-width: 330px; margin-top: 18px; }
  .actions { margin-top: 20px; flex-direction: column; align-items: flex-start; gap: 13px; }
  .spec-grid { left: 20px; right: 20px; bottom: 45px; grid-template-columns: repeat(3, 1fr); }
  .spec-grid article { min-height: 92px; padding: 12px 10px; }
  .spec-grid strong { font-size: 22px; }
  .hotspot { display: none; }
  .ghost-title { top: 39%; font-size: 78vw; }
  .final-footer { left: 20px; right: 20px; bottom: 17px; }
  .final-footer span:first-child { display: none; }
  .final-footer { justify-content: flex-end; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .story-copy h1,
  .story-copy h2,
  .final-copy h2 { font-size: clamp(52px, 7vw, 100px); }
  .final-copy > p:not(.eyebrow) { margin-top: 18px; }
  .actions { margin-top: 18px; }
  .spec-grid { bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .mouse i { animation: none; }
  .primary-cta, .chapter, .hotspot * { transition: none; }
}
