:root {
  --off-black: #0a0a09;
  --off-black-2: #111110;
  --paper: #ece7dd;
  --paper-dim: #8a857a;
  --gold: #c9a44c;
  --gold-bright: #e6c877;
  --gold-dim: #7a6636;
  --line: rgba(201, 164, 76, 0.25);
  --hairline: rgba(236, 231, 221, 0.1);

  --display: 'Fraunces', serif;
  --sans: 'Switzer', 'Switzer Fallback', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--off-black);
  color: var(--paper);
  font-family: var(--sans);
}

body { min-height: 100%; overflow-x: hidden; }
body.is-loading { overflow: hidden; height: 100vh; }

::selection { background: var(--gold); color: var(--off-black); }

button:focus-visible, input:focus-visible {
  outline: 1px solid var(--gold); outline-offset: 4px;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--off-black);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.preloader-brand {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.5em; text-indent: 0.5em; color: var(--paper);
}
.preloader-count {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(72px, 14vw, 160px); line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.preloader-count::after { content: '%'; font-size: 0.3em; color: var(--gold); font-style: italic; }
.preloader-bar {
  width: 180px; height: 1px; background: rgba(236,231,221,0.12);
  overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 0%;
  background: var(--gold);
}
.preloader-sub {
  font-size: 10px; letter-spacing: 0.4em; text-indent: 0.4em; color: var(--paper-dim);
}

/* ============ OVERLAYS ============ */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; }
.cursor-dot {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(201,164,76,0.45); transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease;
}
.cursor.is-hover .cursor-ring {
  width: 64px; height: 64px; border-color: var(--gold-bright);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 34px;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
}
.site-header span {
  font-size: 11px; font-weight: 500; letter-spacing: 0.34em; color: #fff;
}

.progress-rail {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 500;
  background: rgba(255,255,255,0.05);
}
.progress-fill {
  height: 100%; width: 0%; background: var(--gold);
  box-shadow: 0 0 10px rgba(201,164,76,0.7);
}

/* ============ SHARED STAGE ============ */
.section { position: relative; width: 100%; }
.pin {
  position: sticky; top: 0; height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 50% 45%, transparent 55%, rgba(10,10,9,0.82) 100%),
    linear-gradient(to bottom, rgba(10,10,9,0.55), transparent 18%, transparent 82%, rgba(10,10,9,0.75));
}

/* ============ HERO ============ */
.hero { height: 320vh; }

.hero-copy {
  position: relative; z-index: 3; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-over {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--paper-dim);
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(56px, 12vw, 190px);
  line-height: 0.9;
  color: var(--paper);
  text-shadow: 0 8px 60px rgba(0,0,0,0.8);
}
.wm-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.wm-mask { display: inline-block; }
.wm-mask .ch { display: inline-block; will-change: transform; }

.hero-sub {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.34em; text-indent: 0.34em; color: var(--gold);
}

.scroll-cue {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.scroll-cue span { font-size: 10px; letter-spacing: 0.32em; text-indent: 0.32em; color: var(--paper-dim); }
.scroll-cue-line { width: 1px; height: 48px; background: rgba(236,231,221,0.15); position: relative; overflow: hidden; }
.scroll-cue-line i {
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  animation: cueDrop 1.9s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

.hero-midline {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-midline p {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 4.4vw, 54px); color: var(--paper);
  opacity: 0; text-shadow: 0 6px 50px rgba(0,0,0,0.85);
}

.hero-corners .corner {
  position: absolute; z-index: 3;
  font-size: 10px; letter-spacing: 0.24em; color: rgba(236,231,221,0.4);
}
.c-tl { top: 84px; left: 34px; }
.c-tr { top: 84px; right: 34px; }
.c-bl { bottom: 40px; left: 34px; }
.c-br { bottom: 40px; right: 34px; }

/* ============ SHARED STAGE HEADINGS ============ */
.stage-heading {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  z-index: 3; text-align: center; width: max-content; max-width: 90vw;
}
.stage-kicker {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--gold); margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(10,10,9,0.9);
}
.stage-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(22px, 2.8vw, 36px); line-height: 1.3;
  color: var(--paper);
  text-shadow: 0 4px 30px rgba(10,10,9,0.9);
}
.stage-heading .stage-kicker, .stage-heading .stage-title {
  opacity: 0; transform: translateY(24px);
}

/* ============ STORY ============ */
.story { height: 360vh; background: var(--off-black); }
.story-backdrop {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.story-backdrop img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; filter: saturate(0.85);
  will-change: transform;
}
.story-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,10,9,0.55), rgba(10,10,9,0.92) 100%);
}
.story-ghost {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-weight: 300;
  font-size: clamp(120px, 24vw, 380px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,164,76,0.09);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.story-lines {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 24px; text-align: center;
}
.story-kicker {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--gold); margin-bottom: 40px;
}
.story-line {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(26px, 4.2vw, 48px); line-height: 1.35;
  overflow: hidden;
}
.story-line span { display: inline-block; color: rgba(236,231,221,0.14); }

/* ============ ORBIT ============ */
.orbit { height: 340vh; }
.orbit-frame {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; will-change: transform, clip-path;
}
.orbit-caption {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 22px;
  background: radial-gradient(ellipse at left center, rgba(10,10,9,0.7), rgba(10,10,9,0.3) 70%, transparent);
  border-radius: 2px;
}
.caption-label {
  font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: 0.3em; color: var(--gold);
  overflow: hidden;
}
.caption-text {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 36px); color: var(--paper);
  overflow: hidden;
  text-shadow: 0 2px 20px rgba(10,10,9,0.9);
}
.orbit-caption span { display: inline-block; opacity: 0; }
.caption-1 { left: 8%; top: 32%; }
.caption-2 { right: 8%; bottom: 22%; text-align: right; }
.caption-2 .caption-label, .caption-2 .caption-text { text-align: right; }

/* ============ ENGINEERING ============ */
.engineering { height: 380vh; }
.callout {
  position: absolute; z-index: 3; opacity: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 22px 14px 18px;
  background: radial-gradient(ellipse at left center, rgba(10,10,9,0.78), rgba(10,10,9,0.35) 70%, transparent);
  border-radius: 2px;
}
.callout-num, .callout-label { text-shadow: 0 2px 18px rgba(10,10,9,0.9); }
.callout-rule {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
}
.callout-num {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4vw, 58px); color: var(--gold); line-height: 1;
}
.callout-num em { font-style: italic; font-size: 0.5em; color: var(--gold-dim); }
.callout-label {
  font-size: 11px; letter-spacing: 0.2em; color: var(--paper-dim); text-transform: uppercase;
}
.callout-1 { top: 30%; left: 9%; }
.callout-2 { top: 46%; right: 8%; }
.callout-3 { bottom: 16%; left: 11%; }

/* ============ EDITION ============ */
.edition {
  min-height: 110vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--off-black-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 90px 0;
}
.marquee {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0; margin-bottom: 90px;
  overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: 15px; letter-spacing: 0.22em; color: rgba(236,231,221,0.34);
}

.edition-content { text-align: center; padding: 0 24px; }
.edition-medallion {
  width: clamp(90px, 10vw, 130px); height: clamp(90px, 10vw, 130px);
  margin: 0 auto 34px; border-radius: 50%;
  border: 1px solid var(--line); padding: 6px;
}
.edition-medallion img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  filter: saturate(0.9);
}
.edition-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--gold); margin-bottom: 30px;
}
.edition-title {
  font-family: var(--display); font-weight: 300; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.edition-word { font-size: clamp(28px, 4vw, 54px); font-style: italic; color: var(--paper-dim); }
.edition-88 {
  font-size: clamp(140px, 26vw, 380px);
  font-weight: 400; color: var(--gold);
  line-height: 0.85;
  text-shadow: 0 0 120px rgba(201,164,76,0.25);
}
.edition-price {
  margin-top: 40px;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.14em; color: var(--paper);
}
.edition-note {
  margin-top: 12px; font-size: 12px; letter-spacing: 0.18em;
  color: var(--paper-dim); text-transform: uppercase;
}

/* ============ WAITLIST ============ */
.waitlist {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 60px;
}
.waitlist-content { max-width: 620px; width: 100%; text-align: center; }
.waitlist-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--gold); margin-bottom: 24px;
}
.waitlist-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.3;
  margin-bottom: 56px;
}

.waitlist-form {
  display: flex; align-items: center; gap: 24px;
  max-width: 520px; margin: 0 auto;
  border-bottom: 1px solid rgba(236,231,221,0.22);
  padding-bottom: 16px;
  position: relative;
}
.waitlist-form::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.waitlist-form:focus-within::after { transform: scaleX(1); }
.waitlist-form input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 16px; font-weight: 300; color: var(--paper);
  letter-spacing: 0.02em; min-width: 0;
}
.waitlist-form input::placeholder { color: rgba(236,231,221,0.32); }
.waitlist-form button {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--gold);
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.2em; text-indent: 0.2em; text-transform: uppercase; cursor: pointer;
  white-space: nowrap; padding: 14px 26px;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  will-change: transform;
}
.waitlist-form button:hover {
  color: var(--off-black); background: var(--gold); border-color: var(--gold);
}
.waitlist-form button span { display: inline-block; }

.waitlist-status {
  margin-top: 22px; font-size: 12px; letter-spacing: 0.1em; color: var(--gold);
  min-height: 16px;
}

.footer {
  margin-top: 120px; display: flex; justify-content: center; align-items: center; gap: 26px;
  font-size: 11px; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--paper-dim);
  text-transform: uppercase;
}
.footer-mark { color: var(--gold-dim); font-size: 10px; }

/* ============ REVEAL PRIMITIVES ============ */
[data-reveal] { opacity: 0; transform: translateY(34px); will-change: transform, opacity; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .site-header { padding: 20px 18px; }
  .c-tl, .c-bl { left: 18px; }
  .c-tr, .c-br { right: 18px; }
  .stage-heading { top: 9%; }
  .stage-title br { display: none; }
  .caption-1 { left: 5%; top: 30%; }
  .caption-2 { right: 5%; bottom: 12%; }
  .callout-1 { left: 5%; top: 28%; }
  .callout-2 { right: 6%; }
  .callout-3 { left: 7%; }
  .waitlist-form { flex-direction: column; align-items: stretch; gap: 18px; border-bottom: none; }
  .waitlist-form::after { display: none; }
  .waitlist-form input { border-bottom: 1px solid rgba(236,231,221,0.22); padding-bottom: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line i { animation: none; }
  .marquee-track { transform: none !important; }
}
