/* ================================================================
   AURUM & NOIR — ECLIPSE
   Off-black, gold. High-contrast serif display, minimal sans.
   ================================================================ */

@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/playfair-italic-400.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: block; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: block; }

:root {
  --bg: #0b0a09;
  --void: #000;
  --ink: #ece7db;
  --ink-dim: #a39b89;
  --ink-faint: #6e6759;
  --gold: #c8a35a;
  --gold-hi: #ecd39a;
  --gold-deep: #8f6f33;
  --hairline: rgba(200, 163, 90, 0.22);
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  background: var(--void);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: clip;
}
html::-webkit-scrollbar { width: 0; height: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.preload { overflow: hidden; height: 100vh; }

::selection { background: var(--gold); color: #0b0a09; }

.amp { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }

/* ---------------------------------------------------------------
   Kickers — tiny letterspaced sans labels
   --------------------------------------------------------------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------
   Loader
   --------------------------------------------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0% 0);
}
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: var(--ink);
}
.loader-bar {
  width: min(320px, 56vw); height: 1px;
  background: rgba(236, 231, 219, 0.14);
  margin: 2.2rem auto 1.1rem;
}
.loader-fill {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi));
  transform: scaleX(0); transform-origin: left center;
}
.loader-pct {
  font-size: 0.625rem; letter-spacing: 0.34em; text-indent: 0.34em;
  color: var(--ink-faint);
}
.loader-pct span::after { content: ' %'; }

/* ---------------------------------------------------------------
   Film grain + vignette + progress rail
   --------------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.05;
  animation: grain-shift 1.2s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

.progress-rail {
  position: fixed; top: 0; right: 0; bottom: 0; width: 2px; z-index: 80;
  background: rgba(236, 231, 219, 0.05);
  pointer-events: none;
}
.progress-fill {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  transform: scaleY(0); transform-origin: top center;
}

/* ---------------------------------------------------------------
   Cursor (fine pointers only)
   --------------------------------------------------------------- */
#cursor-dot, #cursor-ring { display: none; }
@media (pointer: fine) {
  #cursor-dot {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold-hi);
    transform: translate(-50%, -50%);
    left: 0; top: 0; opacity: 0;
  }
  #cursor-ring {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(200, 163, 90, 0.45);
    transform: translate(-50%, -50%);
    left: 0; top: 0; opacity: 0;
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease;
  }
  body.cursor-on #cursor-dot, body.cursor-on #cursor-ring { opacity: 1; }
  body.cursor-hover #cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--gold-hi);
  }
}

/* ---------------------------------------------------------------
   Nav
   --------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.4rem, 4vw, 3.4rem);
  opacity: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}
.nav-brand {
  font-family: var(--serif); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.3em;
  color: var(--ink); text-decoration: none;
}
.nav-note {
  font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------------------------------------------------------------
   Stages — pinned canvas acts
   --------------------------------------------------------------- */
.stage-wrap { position: relative; height: var(--len, 400vh); background: var(--void); }
.stage-wrap::before, .stage-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; height: 16vh;
  z-index: 3; pointer-events: none;
}
.stage-wrap::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.stage-wrap::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }
#act-orbit::before { display: none; }

.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--void);
}
/* Filmic black fades on every act's edges — makes pin/unpin seams invisible */
.stage::before, .stage::after {
  content: ''; position: absolute; left: 0; right: 0; height: 15vh;
  z-index: 2; pointer-events: none;
}
.stage::before { top: 0; background: linear-gradient(180deg, var(--void) 8%, transparent); }
.stage::after { bottom: 0; background: linear-gradient(0deg, var(--void) 8%, transparent); }
/* Every stage now borders a page-bg section — the default --bg wrap
   gradients bridge them; taller blend for a softer hand-off. */
.stage-wrap::before, .stage-wrap::after { height: 22vh; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 48%, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}

/* Hero overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
}
.hero-inner { text-align: center; padding: 0 6vw; }
.hero-kicker { margin-bottom: clamp(1.2rem, 3vh, 2.2rem); color: var(--gold); }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 9.5vw, 8.2rem);
  line-height: 1.04;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-title .ch { display: inline-block; will-change: transform, opacity; }
.hero-rule {
  width: min(220px, 30vw); height: 1px; margin: clamp(1.4rem, 3.4vh, 2.6rem) auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
}
.hero-sub {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.scroll-cue span {
  font-size: 0.6rem; letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue i {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: top center;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(30px); opacity: 0; }
}

/* Floating captions inside stages */
.float-caption {
  position: absolute; z-index: 4; top: 50%;
  left: clamp(1.6rem, 7vw, 8rem);
  transform: translateY(-50%);
  max-width: 15em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.95rem);
  line-height: 1.45;
  color: #ddd5c4;
  opacity: 0;
  will-change: transform, opacity;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85);
}
.float-caption.right { left: auto; right: clamp(1.6rem, 7vw, 8rem); text-align: right; }

/* Stage titles */
.stage-title {
  position: absolute; z-index: 4;
  left: clamp(1.6rem, 7vw, 8rem); bottom: 14vh;
  opacity: 0;
  will-change: transform, opacity;
}
.stage-title h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  line-height: 1.08; margin-top: 1.1rem;
  color: var(--ink);
}

/* Spec callouts (assembly) */
.callout {
  position: absolute; z-index: 4;
  left: clamp(1.6rem, 8vw, 10rem); top: 27%;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0;
  will-change: transform, opacity;
}
.callout.right { left: auto; right: clamp(1.6rem, 8vw, 10rem); top: 44%; flex-direction: row-reverse; }
.callout.low { top: auto; bottom: 17%; }
.callout-index {
  font-family: var(--sans); font-weight: 400; font-size: 0.66rem;
  letter-spacing: 0.3em; color: var(--gold);
}
.callout-rule { width: 44px; height: 1px; background: var(--hairline); align-self: center; }
.callout-body {
  display: flex; flex-direction: column; gap: 0.35rem;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.9);
}
.callout.right .callout-body { text-align: right; }
.callout-body strong {
  font-family: var(--sans); font-weight: 400; font-size: 0.66rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-dim);
}
.callout-body { font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--ink); }

/* ---------------------------------------------------------------
   Prose sections
   --------------------------------------------------------------- */
.prose { position: relative; z-index: 2; background: var(--bg); padding: 30vh 6vw; }
.prose-col { max-width: 46rem; margin: 0 auto; }
.prose-col.center { text-align: center; }
.prose .kicker { margin-bottom: 2.4rem; }
.prose-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.06; color: var(--ink);
  margin-bottom: 3rem;
}
.prose-title em, .edition-title em { font-style: italic; font-weight: 400; color: var(--gold-hi); }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }
.prose-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.9; letter-spacing: 0.01em;
  color: var(--ink-dim);
  max-width: 34em;
}
.prose-body + .prose-body { margin-top: 1.6rem; }
.prose-col.center .prose-body { margin-left: auto; margin-right: auto; }

/* Edition */
.edition { padding: 36vh 6vw; }
.edition-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 10.5vw, 9rem);
  line-height: 1.02; color: var(--ink);
  margin-bottom: 2.6rem;
}
.edition-price {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  letter-spacing: 0.34em; text-indent: 0.34em;
  color: var(--gold);
  margin-bottom: 2.2rem;
}

/* Waitlist */
.waitlist { padding-bottom: 24vh; }
#waitlist-form {
  display: flex; gap: 0; justify-content: center; align-items: stretch;
  max-width: 34rem; margin: 0 auto 1.6rem;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.35);
}
#waitlist-form input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0; outline: none;
  padding: 1.15rem 1.4rem;
  font-family: var(--sans); font-weight: 300; font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
#waitlist-form input::placeholder { color: var(--ink-faint); }
#waitlist-form input.err { border-bottom: 1px solid #a0522d; }
.btn {
  flex: 0 0 auto;
  background: var(--gold); border: 0; cursor: pointer;
  padding: 1.15rem 1.9rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.32em; text-indent: 0.32em; text-transform: uppercase;
  color: #14110b;
  transition: background 0.45s ease, letter-spacing 0.45s ease;
}
.btn:hover { background: var(--gold-hi); letter-spacing: 0.38em; }
.form-note {
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  color: var(--ink-faint);
}
.form-done {
  display: none;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--gold-hi);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  padding: 2.6rem clamp(1.4rem, 4vw, 3.4rem);
  border-top: 1px solid rgba(200, 163, 90, 0.14);
  background: var(--bg);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint);
}
footer p:first-child { color: var(--ink-dim); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 720px) {
  .hero-title { letter-spacing: 0.04em; }
  .float-caption { font-size: 1.15rem; max-width: 12em; }
  .stage-title { bottom: 10vh; }
  .callout { gap: 0.7rem; }
  .callout-rule { width: 24px; }
  #waitlist-form { flex-direction: column; border: 0; gap: 1rem; }
  #waitlist-form input { border: 1px solid var(--hairline); text-align: center; }
  .nav-note { display: none; }
}

/* ---------------------------------------------------------------
   Manifesto — full-height typographic interlude
   --------------------------------------------------------------- */
.manifesto { padding: 36vh 6vw; }
.manifesto-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 4.4vw, 3.8rem);
  line-height: 1.3; color: var(--ink);
}
.manifesto-title em { font-style: italic; font-weight: 400; color: var(--gold-hi); }

/* ---------------------------------------------------------------
   Gallery — editorial studies grid
   --------------------------------------------------------------- */
.gallery { padding: 26vh 6vw; }
.gallery-head { max-width: 46rem; margin: 0 auto 14vh; text-align: center; }
.g-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  max-width: 82rem; margin: 0 auto;
}
.g-item { margin: 0; opacity: 0; will-change: transform, opacity; }
.g-a { grid-column: 1 / 6; }
.g-b { grid-column: 6 / 10; margin-top: 11vh; }
.g-c { grid-column: 10 / 13; margin-top: 4vh; }
.g-d { grid-column: 4 / 10; margin-top: 9vh; }
.g-frame { overflow: hidden; background: #000; }
.g-a .g-frame { aspect-ratio: 4 / 5; }
.g-b .g-frame { aspect-ratio: 1 / 1; }
.g-c .g-frame { aspect-ratio: 3 / 4; }
.g-d .g-frame { aspect-ratio: 4 / 3; }
.g-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item figcaption {
  display: flex; gap: 0.9rem; align-items: baseline;
  margin-top: 1.1rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--ink-dim);
}
.g-idx { font-family: var(--sans); font-style: normal; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--gold); }

/* ---------------------------------------------------------------
   Numbers — the arithmetic of restraint
   --------------------------------------------------------------- */
.numbers { padding: 26vh 6vw; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2.4rem 0;
  max-width: 78rem; margin: 12vh auto 0;
}
.stat { border-left: 1px solid var(--hairline); padding: 0.4rem 1.7rem 0.2rem; }
.stat-num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1; color: var(--ink);
  font-variant-numeric: lining-nums;
}
.stat-label {
  margin-top: 1rem;
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------
   Atelier — the making, four acts
   --------------------------------------------------------------- */
.atelier { padding: 26vh 6vw 30vh; }
.timeline { position: relative; margin-top: 11vh; padding-left: 3.4rem; display: flex; flex-direction: column; gap: 5.5rem; }
.t-rail { position: absolute; left: 0.4rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: rgba(200, 163, 90, 0.13); }
.t-line { position: absolute; inset: 0; width: 100%; display: block; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); transform: scaleY(0); transform-origin: top center; }
.t-row { display: flex; gap: 2.1rem; align-items: baseline; opacity: 0; will-change: transform, opacity; }
.t-idx { flex: 0 0 2.3rem; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.3em; color: var(--gold); }
.t-row h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); margin-bottom: 0.55rem; }
.t-row p { font-weight: 300; font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--ink-dim); line-height: 1.8; max-width: 34em; }

@media (max-width: 720px) {
  .g-grid { display: block; }
  .g-item { margin: 0 0 3.4rem; }
  .g-b, .g-c, .g-d { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 3rem 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .timeline { padding-left: 2.6rem; gap: 4rem; }
}

/* Portrait: 16:9 frames get letterboxed into the void — lift text off the dial */
@media (orientation: portrait) {
  .hero-overlay::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 124%; height: 64%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(5, 4, 3, 0.74), rgba(5, 4, 3, 0.38) 55%, transparent 78%);
  }
  .hero-inner { z-index: 1; }
  .hero-title { text-shadow: 0 2px 44px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.5); }
  .hero-kicker, .hero-sub { text-shadow: 0 1px 20px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.9); }
  .float-caption { text-shadow: 0 1px 30px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85); }
  .callout-body { text-shadow: 0 1px 26px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85); }
}

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