/* ═══════════════════ AURUM & NOIR — ECLIPSE ═══════════════════ */

:root {
  --noir: #0A0908;
  --noir-2: #14120F;
  --gold: #C6A35F;
  --gold-hi: #EBD9A8;
  --gold-dim: rgba(198, 163, 95, 0.28);
  --ivory: #EFEAE0;
  --stone: #8B8478;
  --hairline: rgba(198, 163, 95, 0.22);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { background: var(--noir); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--noir);
  color: var(--ivory);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: "Cormorant Garamond", Georgia, serif; }
.sans  { font-family: "Manrope", system-ui, sans-serif; }

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

/* ─────────── preloader ─────────── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--noir);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300; letter-spacing: 0.32em;
  color: var(--ivory);
}
.preloader__mark .amp { color: var(--gold); font-style: italic; }
.preloader__bar {
  width: min(260px, 60vw); height: 1px;
  background: rgba(239, 234, 224, 0.12);
  overflow: hidden;
}
.preloader__fill {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0); transform-origin: left;
}
.preloader__pct {
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--stone); font-weight: 300;
}

/* ─────────── fixed chrome ─────────── */
.chrome {
  position: fixed; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(24px, 4vw, 56px);
  pointer-events: none;
  mix-blend-mode: difference;
}
.chrome--top { top: 0; }
.chrome__brand { font-size: 11px; font-weight: 500; letter-spacing: 0.42em; }
.chrome__loc   { font-size: 9px;  font-weight: 300; letter-spacing: 0.38em; color: var(--stone); }

/* minute-track rail */
.rail {
  position: fixed; right: clamp(14px, 2vw, 28px); top: 50%;
  transform: translateY(-50%);
  height: min(46vh, 420px); width: 14px; z-index: 40;
  opacity: 0; transition: opacity 1s var(--ease) 0.4s;
}
body.is-ready .rail { opacity: 1; }
.rail__ticks { position: absolute; inset: 0; }
.rail__tick {
  position: absolute; right: 0; width: 6px; height: 1px;
  background: rgba(239, 234, 224, 0.16);
}
.rail__tick--major { width: 12px; background: rgba(239, 234, 224, 0.3); }
.rail__hand {
  position: absolute; right: 0; top: 0;
  width: 12px; height: 1px; background: var(--gold-hi);
  box-shadow: 0 0 8px rgba(198, 163, 95, 0.8);
}

/* ─────────── scenes / canvas ─────────── */
main { position: relative; }

.scene { position: relative; }

.scene__pin {
  position: relative; height: 100vh; height: 100svh;
  width: 100%; overflow: hidden;
}
.scene__pin--center { display: flex; align-items: center; justify-content: center; }

.scene__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  background: var(--noir);
}

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(10, 9, 8, 0.72) 100%),
    linear-gradient(to bottom, rgba(10,9,8,0.55), transparent 18%, transparent 82%, rgba(10,9,8,0.62));
}

.eyebrow {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.5em; color: var(--gold);
}
.scene__corner {
  position: absolute; top: clamp(84px, 11vh, 120px);
  left: clamp(24px, 4vw, 56px); z-index: 5;
}

/* ─────────── hero ─────────── */
.hero__stack {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(18px, 2.6vh, 30px);
  text-align: center; pointer-events: none;
}
.hero__title {
  font-size: clamp(44px, 8.6vw, 122px);
  font-weight: 300; line-height: 1;
  color: var(--ivory); white-space: nowrap;
  display: flex; justify-content: center;
}
.hero__title span { display: inline-block; letter-spacing: 1.1em; }
.hero__amp { color: var(--gold); font-style: italic; font-weight: 300; }
.hero__sub {
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 0.58em; font-weight: 300; color: var(--stone);
}
.hero__hint {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.5em; color: var(--stone);
}
.hero__hint-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.hero__eclipse {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  text-align: center; pointer-events: none;
  opacity: 0;
}
.hero__eclipse-word {
  font-size: clamp(64px, 13vw, 190px);
  font-weight: 300; font-style: italic; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  background: linear-gradient(105deg, transparent 30%, rgba(235, 217, 168, 0.85) 50%, transparent 70%);
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__eclipse-line {
  font-size: 10px; letter-spacing: 0.6em;
  font-weight: 300; color: var(--gold);
}

/* ─────────── story ─────────── */
.scene--story { background: var(--noir); }
.story__inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: 0 24px;
}
.story__eyebrow { margin-bottom: clamp(14px, 3vh, 34px); }
.story__line {
  font-size: clamp(34px, 5.6vw, 76px);
  font-weight: 300; line-height: 1.12; color: var(--ivory);
}
.story__line--gold { color: var(--gold-hi); font-style: italic; }
.story__rule {
  margin-top: clamp(22px, 4vh, 46px);
  width: 1px; height: 72px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ─────────── macro ─────────── */
.macro__caption {
  position: absolute; z-index: 5;
  left: clamp(24px, 6vw, 88px); bottom: clamp(64px, 11vh, 120px);
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0;
}
.macro__num {
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--gold); font-weight: 400;
}
.macro__text {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 300; font-style: italic; color: var(--ivory);
}

/* ─────────── engineering ─────────── */
.eng__title {
  position: absolute; z-index: 5;
  left: 50%; top: clamp(96px, 14vh, 150px);
  transform: translateX(-50%);
  font-size: clamp(26px, 3.6vw, 50px);
  font-weight: 300; color: var(--ivory);
  white-space: nowrap; opacity: 0;
}
.eng__spec {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0;
}
.eng__spec::before {
  content: ""; position: absolute; top: 8px;
  width: clamp(40px, 6vw, 96px); height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eng__spec--1 { left: clamp(24px, 7vw, 110px); top: 34%; }
.eng__spec--1::before { left: calc(100% + 16px); }
.eng__spec--2 { right: clamp(24px, 7vw, 110px); top: 46%; text-align: right; align-items: flex-end; }
.eng__spec--2::before { right: calc(100% + 16px); transform: scaleX(-1); }
.eng__spec--3 { left: clamp(24px, 7vw, 110px); bottom: 18%; }
.eng__spec--3::before { left: calc(100% + 16px); }
.eng__value {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 300; line-height: 1; color: var(--gold-hi);
}
.eng__value small { font-size: 0.42em; font-style: italic; color: var(--gold); margin-left: 4px; }
.eng__label {
  font-size: 9px; letter-spacing: 0.42em;
  color: var(--stone); font-weight: 300;
}

/* ─────────── edition ─────────── */
.scene--edition {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 44% at 50% 52%, rgba(198, 163, 95, 0.07), transparent 70%),
    var(--noir);
}
.edition__inner {
  text-align: center; padding: 20vh 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 3.4vh, 36px);
}
.edition__count {
  font-size: clamp(52px, 9.4vw, 150px);
  font-weight: 300; line-height: 1; color: var(--ivory);
}
.edition__count em {
  font-style: italic; color: var(--gold-hi);
  text-shadow: 0 0 60px rgba(198, 163, 95, 0.35);
}
.edition__meta { display: flex; align-items: center; gap: 22px; }
.edition__price { font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; color: var(--ivory); }
.edition__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.edition__note { font-size: 9px; letter-spacing: 0.44em; color: var(--stone); font-weight: 300; }

/* ─────────── waitlist ─────────── */
.scene--waitlist {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-top: 1px solid rgba(198, 163, 95, 0.1);
  position: relative;
}
.waitlist__inner {
  text-align: center; padding: 18vh 24px 12vh;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(16px, 2.6vh, 26px);
  width: min(620px, 92vw);
}
.waitlist__title {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 300; font-style: italic; color: var(--ivory);
}
.waitlist__sub { font-size: 10px; letter-spacing: 0.4em; color: var(--stone); font-weight: 300; }
.waitlist__row {
  margin-top: 16px; display: flex; width: 100%;
  border-bottom: 1px solid var(--hairline);
}
.waitlist__input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ivory); font-size: 13px; font-weight: 300;
  letter-spacing: 0.08em; padding: 16px 4px;
}
.waitlist__input::placeholder { color: rgba(139, 132, 120, 0.55); }
.waitlist__input:focus-visible { box-shadow: 0 1px 0 var(--gold); }
.waitlist__btn {
  background: transparent; border: 0; cursor: pointer;
  color: var(--gold); font-size: 10px; font-weight: 500;
  letter-spacing: 0.42em; padding: 16px 4px 16px 22px;
  transition: color 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.waitlist__btn:hover, .waitlist__btn:focus-visible { color: var(--gold-hi); letter-spacing: 0.5em; }
.waitlist__btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.waitlist__done {
  font-size: 9px; letter-spacing: 0.36em; color: var(--gold);
  font-weight: 300; opacity: 0; transform: translateY(8px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.waitlist__done.is-on { opacity: 1; transform: none; }

.footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(24px, 4vw, 56px);
  font-size: 9px; letter-spacing: 0.36em; color: var(--stone);
  border-top: 1px solid rgba(239, 234, 224, 0.06);
}
.footer__mid { color: rgba(139, 132, 120, 0.6); }

/* reveal default state (JS animates in) */
[data-reveal] { opacity: 0; transform: translateY(34px); }

/* ─────────── reduced motion / mobile ─────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .hero__title span { letter-spacing: 0.5em; }
  .footer { flex-direction: column; gap: 10px; }
  .footer__mid { display: none; }
  .eng__spec--2 { top: 40%; }
}
