/* =========================================================================
   Monotype — design tokens
   ========================================================================= */
:root {
  --bg: #0b0908;
  --bg-warm: #15110d;
  --bg-soft: #1a1612;
  --ink: #f3ecdd;
  --ink-dim: rgba(243, 236, 221, 0.58);
  --ink-faint: rgba(243, 236, 221, 0.28);
  --gold: #c9a370;
  --gold-soft: #8b7355;
  --gold-bright: #e7c089;
  --cream: #ede4d3;
  --line: rgba(243, 236, 221, 0.08);
  --line-strong: rgba(243, 236, 221, 0.16);

  --ff-serif: "Fraunces", "Times New Roman", serif;
  --ff-sans: "Inter", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1480px;
  --pad: clamp(20px, 4vw, 56px);
  --section-pad: clamp(72px, 12vw, 180px);
}

/* =========================================================================
   Reset + base
   ========================================================================= */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) {
  body { cursor: auto; }
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* =========================================================================
   Background scene + grain
   ========================================================================= */
#scene {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.scene-veil {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 40%, transparent 0%, rgba(11,9,8,0.55) 60%, var(--bg) 100%),
    linear-gradient(180deg, transparent 0%, rgba(11,9,8,0.6) 70%, var(--bg) 100%);
}
.grain {
  position: fixed; inset: 0;
  z-index: 2; pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 3; }

/* =========================================================================
   Custom cursor
   ========================================================================= */
.cursor {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
}
.cursor__dot,
.cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 999px;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform, width, height, opacity;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--cream);
  margin: -3px 0 0 -3px;
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s var(--ease);
}
.cursor__ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(237,228,211,0.4);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .25s var(--ease);
}
body.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: rgba(201,163,112,0.8); }
body.is-hover .cursor__dot { opacity: 0; }
body.is-pressing .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* =========================================================================
   Loader
   ========================================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner {
  text-align: center;
  color: var(--gold);
}
.loader__mark {
  width: 84px; height: 84px;
  color: var(--gold);
  margin: 0 auto 28px;
}
.loader__mark .ln {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: drawLine .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.1s);
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.loader__progress {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.loader__progress em { font-style: normal; opacity: 0.55; margin-left: 2px; }
.loader__caption {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================================
   Top navigation
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  transition: backdrop-filter .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,9,8,0.7), rgba(11,9,8,0.0));
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 26px; height: 26px;
  color: var(--gold);
  transition: transform .6s var(--ease-out), color .3s var(--ease);
}
.nav__brand:hover .brand-mark { transform: rotate(45deg); color: var(--gold-bright); }
.brand-word {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01" on;
}
.nav__links {
  justify-self: center;
  display: flex; gap: 6px;
  background: rgba(243,236,221,0.04);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.nav__links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__links a span { position: relative; z-index: 2; }
.nav__links a:hover { color: var(--ink); background: rgba(243,236,221,0.06); }
.nav__cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.nav__cta svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.nav__cta:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,163,112,0.06); }
.nav__cta:hover svg { transform: translateX(3px); }

@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links { display: none; }
}

/* =========================================================================
   Intro — scroll-driven vortex
   ========================================================================= */
.intro {
  position: relative;
  height: 320vh;   /* tall enough for scroll-driven sequence */
  z-index: 4;
}
.intro__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 4;
}
.intro__stage {
  position: relative;
  width: min(560px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.intro__mark {
  position: relative;
  z-index: 3;
  width: 46%;
  height: 46%;
  color: #ede4d3;
  opacity: 0;
  transform: scale(0.6) translateZ(0);
  /* single static drop-shadow — animating filter on every scroll tick
     causes major repaint stutter; opacity fade on the mark naturally
     fades the shadow with it. */
  filter: drop-shadow(0 0 32px rgba(231, 192, 137, 0.55));
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.intro__halo {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(231,192,137,0.55) 0%, rgba(201,163,112,0.18) 28%, transparent 60%);
  /* blur is expensive when animated; here it's a static prerender. */
  filter: blur(36px);
  opacity: 0;
  transform: scale(0.4) translateZ(0);
  z-index: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Spark — distant sun at the end of the tunnel. Bigger base element with
   a smooth radial gradient that fades all the way to transparent at the
   edge — so no hard disc boundary becomes visible when we scale it up. */
.intro__spark {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  z-index: 2;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform, opacity;
  /* slight blur smooths any remaining stepping in the gradient when
     it gets stretched on retina at extreme scales */
  filter: blur(0.5px);
}
.intro__spark-core,
.intro__spark-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: block;
}
.intro__spark-core {
  background: radial-gradient(circle,
    #ffffff 0%,
    #fff5d6 4%,
    #f3d8a0 9%,
    rgba(243, 216, 160, 0.85) 16%,
    rgba(231, 192, 137, 0.55) 28%,
    rgba(231, 192, 137, 0.3)  42%,
    rgba(201, 163, 112, 0.15) 60%,
    rgba(201, 163, 112, 0.05) 78%,
    transparent 100%);
}
.intro__spark-pulse {
  background: radial-gradient(circle,
    rgba(255, 244, 210, 0.7)  0%,
    rgba(255, 244, 210, 0.35) 8%,
    rgba(231, 192, 137, 0.2)  22%,
    rgba(231, 192, 137, 0.08) 45%,
    transparent 80%);
  animation: sparkBreathe 2.4s ease-in-out infinite;
  transform-origin: center;
  mix-blend-mode: screen;
}
@keyframes sparkBreathe {
  0%, 100% { opacity: 0.6; transform: scale(0.92) translateZ(0); }
  50%      { opacity: 1.0; transform: scale(1.15) translateZ(0); }
}

.intro__word {
  position: absolute;
  top: calc(50% + 16%);
  left: 50%;
  transform: translate(-50%, 30px);
  font-family: var(--ff-sans);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0;
  z-index: 3;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(11,9,8,0.7);
}

.intro__corners {
  position: absolute;
  inset: 24px var(--pad);
  pointer-events: none;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.6;
  z-index: 5;
}
.intro__corners .corner { position: absolute; }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; }
.corner--bl { bottom: 0; left: 0; }
.corner--br { bottom: 0; right: 0; }

.intro__progress {
  position: absolute;
  bottom: 32px; right: var(--pad);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 6;
}
.intro__progress i {
  position: relative;
  display: block;
  width: 120px; height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.intro__progress i b {
  position: absolute; inset: 0;
  width: 100%;
  /* scaleX is GPU-accelerated; animating width thrashes layout. */
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 163, 112, 0.7);
  display: block;
  will-change: transform;
}

.intro__cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 5;
  pointer-events: none;
  animation: cueBob 2.6s ease-in-out infinite;
}
.intro__cue i {
  display: block; width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.85; }
  50% { transform: translate(-50%, 6px); opacity: 0.4; }
}

@media (max-width: 760px) {
  .intro { height: 280vh; }
  .intro__corners { font-size: 8px; letter-spacing: 0.22em; }
  .intro__progress { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 160px var(--pad) 120px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  isolation: isolate;
}
.hero__meta {
  position: absolute; top: 110px; left: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201,163,112,0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.hero__meta .sep { opacity: 0.4; }

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
  font-feature-settings: "ss01" on, "ss02" on;
}
.hero__line { display: block; overflow: hidden; }
.hero__line .word {
  display: inline-block;
  font-style: normal;
  will-change: transform;
  /* visible by default — JS hides via gsap.fromTo immediateRender so the
     reveal is reliable even if a scroll trigger is created mid-scroll */
}
.hero__line .word.italic { font-style: italic; color: var(--gold); font-variation-settings: "opsz" 144; }
.hero__line.hero__line--serif { color: var(--ink); }
.hero__line.hero__line--small {
  font-size: clamp(20px, 2.6vw, 36px);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 32px;
  color: var(--ink-dim);
}
.hero__line--small .word.emph { color: var(--ink); font-weight: 400; }
/* No hide-by-default transform here either — JS handles via gsap.fromTo */

.hero__sub {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
}
.hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.005em;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-dim); }
.btn--solid {
  background: var(--cream);
  color: var(--bg);
}
.btn--solid svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn--solid:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  bottom: 56px; right: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__scroll-line {
  width: 80px; height: 1px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
}
.hero__scroll-line i {
  position: absolute; top: 0; left: -40%;
  height: 100%; width: 40%;
  background: var(--gold);
  animation: scrollLine 2.4s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(0); }
  100% { transform: translateX(350%); }
}

.hero__ticker {
  position: absolute;
  bottom: 56px; left: var(--pad);
  max-width: 38vw;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: inline-flex; gap: 22px;
  white-space: nowrap;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .hero { padding: 130px var(--pad) 90px; }
  .hero__meta { top: 88px; }
  .hero__scroll, .hero__ticker { display: none; }
}

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee {
  position: relative; z-index: 3;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(243,236,221,0.02));
}
.marquee__track {
  display: inline-flex; gap: 64px;
  white-space: nowrap;
  font-family: var(--ff-serif);
  font-size: clamp(36px, 7vw, 96px);
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: marquee 35s linear infinite;
}
.marquee__track .sep { color: var(--gold); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================================
   Manifesto
   ========================================================================= */
.manifesto {
  position: relative;
  padding: var(--section-pad) var(--pad);
  max-width: var(--container);
  margin: 0 auto;
  isolation: isolate;
}

/* Huge ghost Roman numeral in the background — adds editorial texture */
.manifesto__watermark {
  position: absolute;
  top: clamp(60px, 9vw, 140px);
  right: var(--pad);
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(180px, 28vw, 460px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(243, 236, 221, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.manifesto__head {
  margin-bottom: clamp(72px, 10vw, 140px);
}
.manifesto__rail {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 48px;
}
.rail-label--dim { color: var(--ink-faint); opacity: 0.55; }

.manifesto__title {
  font-family: var(--ff-serif);
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 300;
  color: var(--ink);
  max-width: 14ch;
}
.manifesto__title em {
  font-style: italic;
  color: var(--gold);
  font-feature-settings: "ss01" on;
}

.manifesto__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(72px, 10vw, 140px);
}

.manifesto__copy {
  font-family: var(--ff-serif);
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 24ch;
}
.manifesto__copy em {
  font-style: italic;
  color: var(--gold);
}

.manifesto__aside {
  position: sticky;
  top: 120px;
  display: flex; flex-direction: column;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.manifesto__note {
  padding-top: 18px;
}
.manifesto__note + .manifesto__note {
  border-top: 1px solid var(--line);
}
.manifesto__note-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.manifesto__note p {
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}

@media (max-width: 900px) {
  .manifesto__body { grid-template-columns: 1fr; gap: 56px; }
  .manifesto__aside { position: static; }
}

.manifesto__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.pillar {
  padding: 44px;
  background: rgba(21,17,13,0.4);
  backdrop-filter: blur(8px);
  transition: background .4s var(--ease);
}
.pillar:hover { background: rgba(21,17,13,0.7); }
.pillar__num {
  display: inline-block;
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 24px;
}
.pillar h3 {
  font-family: var(--ff-serif);
  font-size: 28px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.pillar p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
}
@media (max-width: 900px) {
  .manifesto__pillars { grid-template-columns: 1fr; }
}

/* =========================================================================
   Section heads
   ========================================================================= */
.section__head {
  display: flex; flex-direction: column; gap: 28px;
  margin-bottom: 72px;
}
.rail-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(42px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
  max-width: 14ch;
}
.section__title em {
  font-style: italic; color: var(--gold);
}

/* =========================================================================
   Stats — operating system block (between manifesto and craft)
   ========================================================================= */
.stats {
  padding: var(--section-pad) var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
.stats__head { margin-bottom: 64px; }
.section__title--mid {
  font-size: clamp(36px, 5.5vw, 84px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.stat {
  position: relative;
  padding: 44px 32px;
  background: rgba(11, 9, 8, 0.5);
  backdrop-filter: blur(8px);
  min-height: 280px;
  display: flex; flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: background .5s var(--ease);
}
.stat:hover { background: rgba(21, 17, 13, 0.78); }
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 50% 0%, rgba(201, 163, 112, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.stat:hover::after { opacity: 1; }
.stat__num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--gold);
  font-feature-settings: "ss01" on;
}
.stat__num i {
  font-style: italic;
  font-size: 0.5em;
  vertical-align: 0.32em;
  margin-left: 2px;
  color: var(--gold-soft);
}
.stat__label {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin-top: auto;
}
.stat__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1080px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 220px; padding: 32px 24px; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Callers — "for" marquee (between process and work)
   ========================================================================= */
.callers {
  position: relative;
  padding: 56px 0 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(243, 236, 221, 0.018), transparent 35%, transparent 65%, rgba(243, 236, 221, 0.018));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.callers__label {
  position: absolute;
  top: 50%;
  left: var(--pad);
  transform: translateY(-50%);
  z-index: 2;
  background: var(--bg);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.callers__track {
  display: inline-flex; gap: 36px;
  white-space: nowrap;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 64px);
  letter-spacing: -0.015em;
  color: var(--ink);
  animation: marquee 42s linear infinite;
}
.callers__track .dot-sep {
  font-style: normal;
  color: var(--gold);
  font-size: 0.62em;
  align-self: center;
}

/* =========================================================================
   Quote — interstitial (between work and CTA)
   ========================================================================= */
.quote {
  padding: clamp(140px, 20vw, 240px) var(--pad);
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote__rail {
  display: inline-block;
  margin-bottom: 28px;
}
.quote__mark {
  width: 48px; height: 48px;
  margin: 0 auto 36px;
  color: var(--gold);
  opacity: 0.7;
}
.quote__text {
  font-family: var(--ff-serif);
  font-size: clamp(34px, 5vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.quote__text em { font-style: italic; color: var(--gold); }
.quote__sig {
  display: inline-block;
  margin-top: 56px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================================
   Craft / Services
   ========================================================================= */
.craft {
  padding: var(--section-pad) var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
.craft__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.craft__card {
  position: relative;
  padding: 56px;
  background: rgba(11,9,8,0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: background .5s var(--ease);
  min-height: 380px;
  display: flex; flex-direction: column;
}
.craft__card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(201,163,112,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.craft__card:hover::before { opacity: 1; }
.craft__card:hover { background: rgba(21,17,13,0.75); }
.craft__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-bottom: 32px;
}
.craft__card h3 {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.craft__card p {
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 38ch;
  margin-bottom: auto;
  position: relative; z-index: 1;
}
.craft__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 28px;
  position: relative; z-index: 1;
}
.craft__tags li {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243,236,221,0.02);
}
.craft__visual {
  position: absolute; right: 32px; top: 32px;
  width: 130px; height: 130px;
  opacity: 0.16;
  transition: opacity .5s var(--ease), transform 1s var(--ease-out);
}
.craft__card:hover .craft__visual { opacity: 0.5; transform: scale(1.1); }
.craft__visual svg { width: 100%; height: 100%; color: var(--gold); }

.frame-stack { width: 100%; height: 100%; position: relative; }
.frame-stack > div {
  position: absolute;
  border: 1px solid var(--gold);
  border-radius: 4px;
  inset: 0;
}
.frame-stack > div:nth-child(1) { inset: 0 24px 24px 0; }
.frame-stack > div:nth-child(2) { inset: 12px 12px 12px 12px; opacity: 0.6; }
.frame-stack > div:nth-child(3) { inset: 24px 0 0 24px; opacity: 0.3; }

.ring-stack { width: 100%; height: 100%; position: relative; }
.ring-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.ring-stack span:nth-child(1) { inset: 0; opacity: 0.2; }
.ring-stack span:nth-child(2) { inset: 12px; opacity: 0.35; }
.ring-stack span:nth-child(3) { inset: 24px; opacity: 0.5; }
.ring-stack span:nth-child(4) { inset: 36px; opacity: 0.7; }
.ring-stack span:nth-child(5) { inset: 50px; opacity: 1; background: rgba(201,163,112,0.3); }

.grid-dots {
  width: 100%; height: 100%;
  background-image: radial-gradient(var(--gold) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

@media (max-width: 900px) {
  .craft__grid { grid-template-columns: 1fr; }
  .craft__card { padding: 36px; min-height: 320px; }
}

/* =========================================================================
   Process (horizontal scroll)
   ========================================================================= */
.process {
  padding: var(--section-pad) 0;
  position: relative;
}
.process__head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.process__rail {
  height: 540px;
  overflow: hidden;
  position: relative;
}
.process__track {
  display: flex;
  gap: 28px;
  padding: 0 var(--pad);
  height: 100%;
  will-change: transform;
}
.step {
  flex: 0 0 380px;
  padding: 36px;
  background: rgba(21,17,13,0.55);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.step:hover { border-color: var(--gold-soft); background: rgba(21,17,13,0.8); }
.step__num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--ff-serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 32ch;
}
.step__viz {
  margin-top: auto;
  height: 120px;
  display: grid; place-items: center;
  opacity: 0.7;
}

/* viz blocks */
.viz-orbits { position: relative; width: 120px; height: 120px; }
.viz-orbits i {
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.viz-orbits i:nth-child(1) { inset: 0; animation-duration: 14s; }
.viz-orbits i:nth-child(2) { inset: 18px; animation-duration: 10s; animation-direction: reverse; }
.viz-orbits i:nth-child(3) { inset: 36px; animation-duration: 8s; }
@keyframes spin { to { transform: rotate(360deg); } }

.viz-bars { display: flex; align-items: end; gap: 6px; height: 80px; }
.viz-bars i {
  display: block; width: 14px; background: var(--gold);
  animation: bar 1.8s ease-in-out infinite;
}
.viz-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.viz-bars i:nth-child(2) { height: 65%; animation-delay: 0.1s; }
.viz-bars i:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.viz-bars i:nth-child(4) { height: 55%; animation-delay: 0.3s; }
.viz-bars i:nth-child(5) { height: 35%; animation-delay: 0.4s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }

.viz-grid {
  width: 120px; height: 80px;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}

.viz-code { width: 140px; height: 80px; display: flex; flex-direction: column; gap: 6px; }
.viz-code span {
  display: block; height: 6px; background: var(--gold);
  border-radius: 3px;
  animation: codeline 2s ease-in-out infinite;
}
.viz-code span:nth-child(1) { width: 70%; animation-delay: 0s; }
.viz-code span:nth-child(2) { width: 90%; animation-delay: 0.2s; }
.viz-code span:nth-child(3) { width: 55%; animation-delay: 0.4s; }
.viz-code span:nth-child(4) { width: 80%; animation-delay: 0.6s; }
@keyframes codeline { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.viz-pulse {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 60%);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* =========================================================================
   Work list
   ========================================================================= */
.work {
  padding: var(--section-pad) var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
.work__list {
  border-top: 1px solid var(--line);
}
.work__row {
  display: block;
  position: relative;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: padding-left .5s var(--ease);
}
.work__row-inner {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: baseline;
  position: relative;
  z-index: 2;
  transition: transform .5s var(--ease);
}
.work__row::after {
  content: "→";
  position: absolute;
  top: 50%; right: 0; transform: translate(20px, -50%);
  font-family: var(--ff-serif); font-style: italic;
  font-size: 28px;
  color: var(--gold);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.work__row:hover::after { opacity: 1; transform: translate(-12px, -50%); }
.work__row:hover .work__row-inner { transform: translateX(20px); }
.work__year {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}
.work__name {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .4s var(--ease);
}
.work__row:hover .work__name { color: var(--gold-bright); font-style: italic; }
.work__cat {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.work__preview {
  position: absolute;
  width: 260px; height: 180px;
  pointer-events: none;
  opacity: 0;
  border-radius: 6px;
  overflow: hidden;
  z-index: 3;
  transition: opacity .35s var(--ease);
  will-change: transform, opacity;
}
.work__row:hover .work__preview { opacity: 1; }
.preview-gradient { width: 100%; height: 100%; }
.preview--1 { background: linear-gradient(135deg, #c9a370, #e7c089 50%, #15110d); }
.preview--2 { background: linear-gradient(160deg, #1a2a3a, #4a6b8c 60%, #c9a370); }
.preview--3 { background: linear-gradient(45deg, #2a1a2e, #6b3b5c 50%, #c9a370); }
.preview--4 { background: linear-gradient(120deg, #1f2f1f, #c9a370 70%, #ede4d3); }
.preview--5 { background: linear-gradient(200deg, #3a2418, #c9a370 60%, #15110d); }

@media (max-width: 760px) {
  .work__row-inner { grid-template-columns: 1fr; gap: 8px; }
  .work__preview { display: none; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
  padding: clamp(120px, 18vw, 240px) var(--pad);
  text-align: center;
  position: relative;
}
.cta__inner {
  max-width: 960px;
  margin: 0 auto;
}
.cta__title {
  font-family: var(--ff-serif);
  font-size: clamp(44px, 8.5vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--ink);
  margin: 28px 0 72px;
}
.cta__title em { font-style: italic; color: var(--gold); }
.cta__title br { display: block; }

.cta__button {
  display: inline-block;
  position: relative;
  isolation: isolate;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold-bright), var(--gold-soft));
  background-size: 250% 100%;
  animation: gradFlow 6s ease-in-out infinite;
}
@keyframes gradFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.cta__button-inner {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 36px;
  background: var(--bg);
  border-radius: 999px;
  font-family: var(--ff-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: background .4s var(--ease);
}
.cta__button:hover .cta__button-inner { background: var(--bg-warm); }
.cta__button-inner svg { width: 22px; height: 22px; transition: transform .4s var(--ease); color: var(--gold); }
.cta__button:hover .cta__button-inner svg { transform: translateX(6px); }

.cta__meta {
  margin-top: 56px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.cta__meta strong { color: var(--gold-bright); font-weight: 400; }

/* =========================================================================
   Footer
   ========================================================================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad) 24px;
}
.foot__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  padding-bottom: 56px;
}
.foot__mark {
  width: 56px; height: 56px;
  color: var(--gold);
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.foot__cols .label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.foot__cols p {
  font-size: 14px; line-height: 1.7;
  color: var(--ink-dim);
}
.foot__cols a { color: var(--ink-dim); transition: color .3s var(--ease); }
.foot__cols a:hover { color: var(--gold-bright); }

.foot__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot__center { text-align: center; color: var(--gold-soft); }
.foot__bottom > :last-child { text-align: right; }

@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr; gap: 32px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot__bottom { grid-template-columns: 1fr; text-align: left; }
  .foot__center, .foot__bottom > :last-child { text-align: left; }
}

/* =========================================================================
   Reveal helpers — initial states (JS animates these)
   Note: words are VISIBLE by default. JS hides them via gsap.fromTo with
   immediateRender so animation is guaranteed; if JS fails, content shows.
   ========================================================================= */
[data-words] .word-wrap { display: inline-block; overflow: hidden; vertical-align: top; }
[data-words] .word-wrap > span { display: inline-block; will-change: transform; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-fade] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-fade].is-in { opacity: 1 !important; transform: translateY(0) !important; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
