/* ============ AURUM & NOIR ============ */

:root {
  --black: #0a0908;
  --black-2: #0e0d0b;
  --gold: #c9a24b;
  --gold-dim: #8f7436;
  --ivory: #ece5d8;
  --grey: #6f6a60;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
}

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

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

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  letter-spacing: .45em; text-indent: .45em; color: var(--gold);
}
.preloader-bar {
  width: 160px; height: 1px; background: rgba(236,229,216,.12);
  position: relative; overflow: hidden;
}
.preloader-bar span {
  position: absolute; inset: 0; transform-origin: left;
  transform: scaleX(0); background: var(--gold);
  transition: transform .3s ease;
  display: block;
}
.preloader-pct {
  font-size: 10px; letter-spacing: .3em; color: var(--grey);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 40px;
  opacity: 0;
  mix-blend-mode: difference;
}
.nav-brand {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  letter-spacing: .4em; color: var(--ivory);
}
.nav-cta {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid rgba(236,229,216,.35);
  transition: border-color .4s, color .4s;
}
.nav-cta:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Shared ---------- */
.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; transform: translateY(110%); }

canvas { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 1 · Hero ---------- */
.hero { height: 420vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
#orbit-canvas { position: absolute; inset: 0; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(10,9,8,.75) 100%),
    linear-gradient(to bottom, rgba(10,9,8,.5), transparent 22%, transparent 75%, rgba(10,9,8,.85));
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.hero-over {
  font-size: 10px; letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 8.5vw, 128px);
  line-height: 1; color: var(--ivory);
  display: flex; justify-content: center;
  white-space: pre;
}
.hero-title .ch { display: inline-block; opacity: 0; }
.hero-sub {
  margin-top: 30px;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(15px, 1.6vw, 21px); color: rgba(236,229,216,.75);
  letter-spacing: .08em;
}
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint span {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-hint p {
  font-size: 9px; letter-spacing: .4em; text-indent: .4em;
  text-transform: uppercase; color: var(--grey);
}

/* ---------- 2 · Story ---------- */
.story {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 22vh 24px;
  background: var(--black);
}
.story-inner { max-width: 640px; text-align: center; }
.story-kicker {
  font-size: 10px; letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 34px;
}
.story-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 7vw, 96px); line-height: 1.04;
  color: var(--ivory); margin-bottom: 52px;
}
.story-body {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.7;
  color: rgba(236,229,216,.62);
  margin-top: 30px;
}

/* ---------- 3 · Macro ---------- */
.macro { height: 400vh; position: relative; }
.macro-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#macro-canvas { position: absolute; inset: 0; }
.macro-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,9,8,.7) 100%);
}
.macro-caption {
  position: absolute; bottom: 12vh; left: 8vw; max-width: 420px;
  opacity: 0; transform: translateY(24px);
}
.macro-caption:nth-child(4) { left: auto; right: 8vw; text-align: right; }
.macro-num {
  font-family: var(--serif); font-size: 15px; color: var(--gold);
  letter-spacing: .35em; margin-bottom: 14px;
}
.macro-caption p:last-child {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35;
  color: var(--ivory);
}

/* ---------- 4 · Engineering ---------- */
.engineering { height: 380vh; position: relative; background: var(--black-2); }
.eng-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.eng-media { position: absolute; inset: 0; }
#eng-canvas { position: absolute; inset: 0; }
.eng-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(10,9,8,.8) 100%),
    linear-gradient(to bottom, rgba(10,9,8,.55), transparent 25%);
}
.eng-kicker {
  position: absolute; top: 12vh; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase; color: var(--gold);
  opacity: 0;
}
.eng-callout { position: absolute; opacity: 0; }
.eng-callout[data-callout="0"] { top: 24vh; left: 9vw; }
.eng-callout[data-callout="1"] { top: 42vh; right: 9vw; text-align: right; }
.eng-callout[data-callout="2"] { bottom: 16vh; left: 12vw; }
.eng-line {
  width: 72px; height: 1px; background: var(--gold);
  transform-origin: left; transform: scaleX(0);
  margin-bottom: 18px;
}
.eng-callout[data-callout="1"] .eng-line { transform-origin: right; margin-left: auto; }
.eng-value {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 5.5vw, 84px); line-height: 1; color: var(--ivory);
}
.eng-value .count { font-variant-numeric: tabular-nums; }
.eng-label {
  margin-top: 10px;
  font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(236,229,216,.55);
}

/* ---------- 5 · Edition ---------- */
.edition {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24vh 24px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(201,162,75,.07), transparent),
    var(--black);
}
.edition-kicker {
  font-size: 10px; letter-spacing: .5em; text-indent: .5em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 40px;
}
.edition-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 9vw, 150px); line-height: 1; color: var(--ivory);
}
.edition-price {
  margin-top: 46px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3vw, 42px); color: var(--gold);
  letter-spacing: .06em;
}
.edition-note {
  margin-top: 22px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 6 · Waitlist ---------- */
.waitlist {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 20vh 24px 0;
  background: var(--black);
}
.waitlist-inner {
  max-width: 560px; margin: 0 auto; text-align: center; width: 100%;
}
.waitlist-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6.5vw, 92px); line-height: 1.05;
  color: var(--ivory); margin-bottom: 60px;
}
.waitlist-form { display: flex; flex-direction: column; gap: 22px; }
.waitlist-form input {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(236,229,216,.22);
  padding: 16px 4px; text-align: center;
  font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--ivory); outline: none;
  transition: border-color .5s;
}
.waitlist-form input::placeholder { color: rgba(236,229,216,.35); }
.waitlist-form input:focus { border-color: var(--gold); }
.waitlist-form button {
  margin-top: 16px; align-self: center;
  background: transparent; border: 1px solid var(--gold-dim);
  color: var(--gold); cursor: pointer;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .35em; text-indent: .35em; text-transform: uppercase;
  padding: 20px 44px;
  position: relative; overflow: hidden;
  transition: color .5s, border-color .5s;
}
.waitlist-form button::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s cubic-bezier(.7,0,.3,1);
}
.waitlist-form button:hover::before { transform: scaleY(1); }
.waitlist-form button:hover { color: var(--black); border-color: var(--gold); }
.waitlist-form button span { position: relative; }
.waitlist-confirm {
  display: none;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--gold); padding: 28px 0;
}
.waitlist-fine {
  margin-top: 34px;
  font-size: 10px; letter-spacing: .18em; color: var(--grey);
}
.footer {
  margin-top: 18vh; padding: 34px 40px;
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(236,229,216,.08);
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Reveal helper ---------- */
.reveal { opacity: 0; transform: translateY(34px); }

@media (max-width: 720px) {
  .nav { padding: 20px 20px; }
  .eng-callout[data-callout="0"] { top: 16vh; left: 7vw; }
  .eng-callout[data-callout="1"] { top: 38vh; right: 7vw; }
  .eng-callout[data-callout="2"] { bottom: 12vh; left: 7vw; }
  .macro-caption { left: 7vw; right: 7vw; max-width: none; }
  .macro-caption:nth-child(4) { left: 7vw; }
  .footer { flex-direction: column; gap: 10px; text-align: center; }
}
