/* AURUM & NOIR — Eclipse */

:root {
  --black: #0a0908;
  --panel: #12100e;
  --ivory: #ede8dd;
  --muted: #8d8577;
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: auto; }

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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* film grain */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 50;
  opacity: 0.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='240' height='240' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* masthead */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 40px;
  font-size: 11px; letter-spacing: 0.42em; color: var(--ivory);
  mix-blend-mode: difference;
}
.masthead-place { color: var(--muted); letter-spacing: 0.42em; }

/* eclipse progress ring */
.eclipse-ring {
  position: fixed; right: 36px; bottom: 32px; z-index: 40;
  transform: rotate(-90deg);
}
.eclipse-ring circle { fill: none; }
.ring-track { stroke: rgba(237, 232, 221, 0.12); stroke-width: 1; }
.ring-fill {
  stroke: var(--gold); stroke-width: 1.5;
  stroke-dasharray: 175.93; stroke-dashoffset: 175.93;
  stroke-linecap: round;
}
.ring-dot { fill: var(--gold); }

/* ---------- scrub sections ---------- */
.scrub { position: relative; }
.scrub-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.scrub-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(10, 9, 8, 0.82) 100%),
    linear-gradient(to bottom, rgba(10, 9, 8, 0.55), transparent 18%, transparent 82%, rgba(10, 9, 8, 0.7));
}

.scrub-layer {
  position: absolute;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}
.scrub-layer.on { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero-copy {
  inset: 0;
  text-shadow: 0 2px 24px rgba(10, 9, 8, 0.85), 0 0 60px rgba(10, 9, 8, 0.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-bottom: 8vh;
}
.eyebrow {
  font-size: 10px; letter-spacing: 0.55em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 9.5vw, 132px);
  line-height: 1;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* optically recenters tracked type */
  margin-top: 26px;
  white-space: nowrap;
}
.hero-title .amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.62em;
  vertical-align: 6%;
}
.hero-sub {
  margin-top: 30px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.hero-sub .rule { width: 56px; height: 1px; background: var(--gold-dim); }

/* brand tracking-in on load */
.track-in {
  opacity: 0;
  letter-spacing: 1.1em;
  filter: blur(6px);
  transition:
    opacity 1.6s ease,
    letter-spacing 2.4s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.8s ease;
}
.hero-title.track-in { letter-spacing: 1.1em; }
body.loaded .track-in { opacity: 1; filter: blur(0); }
body.loaded .eyebrow.track-in { letter-spacing: 0.55em; transition-delay: 0.15s; }
body.loaded .hero-title.track-in { letter-spacing: 0.34em; transition-delay: 0.35s; }
body.loaded .hero-sub.track-in { letter-spacing: 0.08em; transition-delay: 1s; }

.scrub-caption {
  left: 50%; top: 14%;
  transform: translate(-50%, 18px);
  text-align: center;
}
.scrub-caption.on { transform: translate(-50%, 0); }
.caption-line {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px);
}
.caption-sub {
  margin-top: 12px;
  font-size: 11px; letter-spacing: 0.4em; color: var(--muted);
  text-transform: uppercase;
}

.scroll-hint {
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.5em; color: var(--muted);
}
.scroll-hint.on { transform: translateX(-50%); }
.scroll-hint i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  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; }
}

/* ---------- story ---------- */
.story {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 22vh 24px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 162, 39, 0.05), transparent 70%),
    var(--black);
}
.story-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1.02;
  margin-top: 34px;
}
.story-title em, .assembly-title em, .cta-title em { font-style: italic; color: var(--gold); }
.story-body {
  margin-top: 56px; max-width: 430px;
  display: flex; flex-direction: column; gap: 28px;
}
.story-body p {
  font-size: 15px; line-height: 2;
  color: var(--muted); letter-spacing: 0.04em;
}
.story-body p + p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ivory); }

/* reveal on enter */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- macro notes ---------- */
.macro-note .note-index {
  font-size: 10px; letter-spacing: 0.5em; color: var(--gold);
  margin-bottom: 16px;
}
.macro-note .note-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.2;
}
.note-left { left: 8vw; top: 50%; }
.note-right { right: 8vw; top: 50%; text-align: right; }

/* ---------- assembly ---------- */
.assembly-head {
  left: 50%; top: 12%;
  transform: translate(-50%, 18px);
  text-align: center;
}
.assembly-head.on { transform: translate(-50%, 0); }
.assembly-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin-top: 18px;
}

.spec { display: flex; flex-direction: column; gap: 10px; }
.spec-line { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); }
.spec-value {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1;
}
.spec-value small { font-size: 0.42em; color: var(--gold); font-style: italic; margin-left: 4px; }
.spec-label { font-size: 10px; letter-spacing: 0.4em; color: var(--muted); }
.spec-1 { left: 9vw; top: 22%; }
.spec-2 { right: 9vw; top: 40%; text-align: right; align-items: flex-end; }
.spec-3 { left: 9vw; bottom: 16%; }

/* ---------- edition ---------- */
.edition {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 20vh 24px;
  position: relative;
}
.edition::before {
  content: "";
  position: absolute;
  width: min(62vh, 82vw); height: min(62vh, 82vw);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.edition-number {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(140px, 30vh, 300px);
  line-height: 0.9;
  margin-top: 30px;
  color: var(--ivory);
}
.edition-line {
  margin-top: 34px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
}
.edition-price {
  margin-top: 44px;
  font-size: 13px; letter-spacing: 0.5em;
  color: var(--gold);
}

/* ---------- cta ---------- */
.cta {
  min-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 18vh 24px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(201, 162, 39, 0.06), transparent 70%),
    var(--panel);
}
.cta-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
}
.cta-form {
  margin-top: 60px;
  display: flex; gap: 0;
  width: min(520px, 88vw);
  border-bottom: 1px solid rgba(237, 232, 221, 0.25);
  transition: border-color 0.4s ease;
}
.cta-form:focus-within { border-color: var(--gold); }
.cta-form input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--ivory);
  font-family: var(--serif); font-style: italic;
  font-size: 19px;
  padding: 16px 4px;
}
.cta-form input::placeholder { color: var(--muted); }
.cta-form button {
  background: none; border: none; cursor: pointer;
  color: var(--gold);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 16px 4px;
  white-space: nowrap;
}
.cta-form button span {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  padding-bottom: 3px;
}
.cta-form button:hover span, .cta-form button:focus-visible span { border-color: var(--gold); }
.cta-confirm {
  margin-top: 60px;
  font-family: var(--serif); font-style: italic;
  font-size: 19px; color: var(--gold);
}
.cta-fine {
  margin-top: 26px;
  font-size: 11px; letter-spacing: 0.16em; color: var(--muted);
}

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between;
  padding: 34px 40px;
  background: var(--panel);
  font-size: 9px; letter-spacing: 0.4em; color: var(--muted);
}

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

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .masthead { padding: 20px 20px; font-size: 9px; }
  .eclipse-ring { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .hero-title { letter-spacing: 0.2em; text-indent: 0.2em; }
  body.loaded .hero-title.track-in { letter-spacing: 0.2em; }
  .note-left { left: 20px; right: 20px; }
  .note-right { right: 20px; left: 20px; text-align: left; }
  .spec-1, .spec-3 { left: 20px; }
  .spec-2 { right: 20px; }
  .cta-form { flex-direction: column; border-bottom: none; gap: 22px; }
  .cta-form input { border-bottom: 1px solid rgba(237, 232, 221, 0.25); }
  .footer { flex-direction: column; gap: 10px; align-items: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint i { animation: none; }
  .track-in, [data-reveal], .scrub-layer { transition: opacity 0.4s ease; transform: none; }
  .track-in { letter-spacing: inherit; filter: none; }
}
