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

@font-face {
  font-family: 'Italiana';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/italiana.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/jost.woff2') format('woff2');
}

:root {
  --ink: #0a0908;          /* off-black */
  --ink-soft: #12100d;
  --gold: #c9a24b;
  --gold-bright: #e8c87e;
  --gold-dim: rgba(201, 162, 75, .38);
  --bone: #e9e2d4;         /* warm off-white text */
  --bone-dim: rgba(233, 226, 212, .55);
  --serif: 'Italiana', 'Didot', serif;
  --sans: 'Jost', 'Futura', sans-serif;
}

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

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

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

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

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 1.1s cubic-bezier(.7, 0, .3, 1), visibility 1.1s;
}
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: .28em;
  color: var(--bone);
}
.loader__mark span { color: var(--gold); }
.loader__bar {
  width: min(280px, 60vw); height: 1px;
  background: rgba(233, 226, 212, .12);
}
.loader__fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width .25s ease-out;
}
.loader__pct {
  font-size: 11px; letter-spacing: .5em;
  color: var(--bone-dim);
}

/* ---------- Header / footer ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(24px, 4vw, 56px);
  mix-blend-mode: difference;
  opacity: 0; /* revealed after load */
}
.site-head__brand {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: .34em;
}
.site-head__note {
  font-size: 10px; letter-spacing: .42em;
  text-transform: uppercase; color: var(--bone-dim);
}

.site-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 34px clamp(24px, 4vw, 56px);
  font-size: 10px; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(233, 226, 212, .35);
  border-top: 1px solid rgba(201, 162, 75, .14);
}

/* ---------- Type system ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .58em; text-transform: uppercase;
  color: var(--gold);
}
.chapter {
  font-size: 10px; letter-spacing: .52em; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.chapter--overlay {
  position: absolute; top: clamp(84px, 12vh, 128px); left: clamp(24px, 6vw, 96px);
  z-index: 5; margin: 0;
}
.small-caps {
  font-size: 12px; letter-spacing: .44em; text-transform: uppercase;
  color: var(--bone-dim);
}

.brand-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 10vw, 190px);
  line-height: 1.02;
  letter-spacing: .22em;
  text-indent: .22em; /* optical centering with tracking */
  color: var(--bone);
  white-space: nowrap;
}
.brand-title .char { display: inline-block; }

.display-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 12vw, 190px);
  line-height: .96; color: var(--bone);
}
.display-lg {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 8.5vw, 132px);
  line-height: 1.0; color: var(--bone);
}
.display-md {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.06; color: var(--bone);
}
.display-md em { font-style: normal; color: var(--gold-bright); }
.display-sm {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 54px);
  color: var(--bone);
}
.lede {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.85; letter-spacing: .04em;
  color: var(--bone-dim);
  max-width: 34em;
}

/* line-mask reveal — the hidden offset is applied by GSAP only (yPercent);
   duplicating it here in CSS would bake a px offset into the transform
   matrix that the yPercent tween can never clear */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; }

/* ---------- Pinned stages ---------- */
.pin-section { position: relative; }
.stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.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 120% 90% at 50% 50%, transparent 55%, rgba(10, 9, 8, .82) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, transparent 18%, transparent 82%, rgba(10, 9, 8, .72) 100%);
}
.stage__grain {
  position: absolute; inset: -100px; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 30px); }
  40% { transform: translate(30px, -50px); }
  60% { transform: translate(-50px, -20px); }
  80% { transform: translate(40px, 40px); }
}

/* ---------- Hero ---------- */
.hero__title {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(18px, 3vh, 30px);
  text-align: center;
  pointer-events: none;
}
.hero__phase {
  position: absolute; z-index: 4;
  left: clamp(24px, 7vw, 110px);
  bottom: clamp(80px, 16vh, 160px);
  opacity: 0;
  pointer-events: none;
}
.hero__phase--claim {
  left: auto; right: clamp(24px, 7vw, 110px);
  text-align: right;
}
.hero__phase .small-caps { margin-top: 14px; }

.hero__scrollhint {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__scrollline {
  width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(.3); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Story ---------- */
#story {
  position: relative;
  padding: clamp(140px, 24vh, 260px) clamp(24px, 7vw, 110px);
  background:
    radial-gradient(ellipse 60% 50% at 78% 40%, rgba(201, 162, 75, .05), transparent 70%),
    var(--ink);
}
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: end;
  max-width: 1500px; margin: 0 auto;
}
.story__copy {
  display: flex; flex-direction: column; gap: 2.2em;
  padding-bottom: .5em;
}
@media (max-width: 860px) {
  .story__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Macro captions ---------- */
.caption {
  position: absolute; z-index: 5;
  opacity: 0;
  max-width: 340px;
}
.caption--1 { left: clamp(24px, 8vw, 130px); top: 30%; }
.caption--2 { right: clamp(24px, 8vw, 130px); top: 42%; text-align: right; }
.caption--3 { left: clamp(24px, 8vw, 130px); bottom: 22%; }
.caption__no {
  display: block;
  font-size: 11px; letter-spacing: .5em; color: var(--gold);
  margin-bottom: 14px;
}
.caption p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.3;
  color: var(--bone);
}

/* ---------- Engineering specs ---------- */
.engineering__title {
  position: absolute; z-index: 5;
  left: 50%; top: 14%;
  transform: translateX(-50%);
  width: min(90vw, 900px);
  text-align: center;
  opacity: 0;
}
.spec {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0;
}
.spec--1 { left: clamp(24px, 7vw, 120px); top: 34%; }
.spec--2 { right: clamp(24px, 7vw, 120px); top: 46%; align-items: flex-end; text-align: right; }
.spec--3 { left: clamp(24px, 7vw, 120px); bottom: 18%; }
.spec__value {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1; color: var(--gold-bright);
}
.spec__value small {
  font-size: .38em; letter-spacing: .1em; color: var(--gold);
  vertical-align: .55em; margin-left: .2em;
}
.spec__rule { width: 72px; height: 1px; background: var(--gold-dim); }
.spec--2 .spec__rule { align-self: flex-end; }
.spec__label {
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- Edition ---------- */
#edition {
  position: relative;
  min-height: 130vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.edition__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.8);
}
.edition__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 9, 8, .25), rgba(10, 9, 8, .88) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.edition__inner {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 3vh, 30px);
  padding: 24vh 24px;
}
.edition__price {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: .18em; text-indent: .18em;
  color: var(--gold-bright);
}

/* ---------- Waitlist ---------- */
#waitlist {
  position: relative;
  padding: clamp(140px, 26vh, 280px) clamp(24px, 7vw, 110px);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(201, 162, 75, .07), transparent 70%),
    var(--ink);
}
.waitlist__inner { max-width: 760px; margin: 0 auto; }
.waitlist__inner .chapter { text-align: center; }
.waitlist__form {
  margin-top: clamp(44px, 7vh, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.waitlist__form input {
  width: min(420px, 86vw);
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(233, 226, 212, .25);
  padding: 14px 4px;
  font-family: var(--sans); font-weight: 300;
  font-size: 15px; letter-spacing: .14em;
  color: var(--bone);
  text-align: center;
  outline: none;
  transition: border-color .5s;
}
.waitlist__form input::placeholder { color: rgba(233, 226, 212, .3); letter-spacing: .3em; text-transform: uppercase; font-size: 11px; }
.waitlist__form input:focus { border-color: var(--gold); }
.waitlist__form button {
  position: relative;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .46em; text-transform: uppercase;
  padding: 20px 44px 20px 48px;
  cursor: pointer;
  overflow: hidden;
  transition: color .6s cubic-bezier(.7, 0, .3, 1), border-color .6s;
}
.waitlist__form button::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.7, 0, .3, 1);
}
.waitlist__form button:hover::before { transform: scaleX(1); }
.waitlist__form button:hover { color: var(--ink); border-color: var(--gold); }
.waitlist__form button span { position: relative; z-index: 1; }
.waitlist__done {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--gold-bright);
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage__grain, .hero__scrollline { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile — designed, not shrunk ---------- */
@media (max-width: 700px) {
  .site-head { padding: 20px 20px; }
  .site-head__brand { font-size: 14px; letter-spacing: .3em; }
  .site-head__note { display: none; }

  .hero__phase { left: 24px; right: 24px; bottom: 96px; }
  .hero__phase--claim { text-align: left; }

  .chapter--overlay { top: 76px; left: 20px; }

  /* macro captions: one column, staged down the left edge */
  .caption { max-width: 260px; }
  .caption--1 { left: 20px; top: 16%; }
  .caption--2 { left: 20px; right: auto; top: auto; bottom: 34%; text-align: left; }
  .caption--3 { left: 20px; bottom: 12%; }

  /* engineering specs: corners, tighter */
  .engineering__title { top: auto; bottom: 10%; width: 92vw; font-size: 26px; }
  .spec { gap: 6px; }
  .spec--1 { left: 20px; top: 17%; }
  .spec--2 { right: 20px; top: 17%; }
  .spec--3 { left: 20px; top: 38%; bottom: auto; }
  .spec__value { font-size: 40px; }
  .spec__rule { width: 44px; }
  .spec__label { font-size: 9px; letter-spacing: .3em; }

  #story { padding: 110px 24px; }
  .story__inner { gap: 40px; }

  #edition { min-height: 110vh; }

  #waitlist { padding: 120px 24px; }
  .waitlist__form button { padding: 18px 30px 18px 34px; letter-spacing: .36em; }

  .site-foot { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
}
