@font-face {
  font-family: "Ghyrome";
  src: url("../fonts/GhyromeFree-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --display: "Ghyrome", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #f3eee7;
  --muted: rgba(243, 238, 231, 0.6);
  --paper: #eeebe4;
  --paper-ink: #161412;
  --paper-muted: rgba(22, 20, 18, 0.58);
  --gutter: clamp(16px, 2.2vw, 32px);
}

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

html { background: #000; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: #000;
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }

.big, .inner h2, .paper h3, .stat b, .next a, .display {
  font-family: var(--display);
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "calt" 0;
  font-variant-ligatures: none;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-feature-settings: normal;
  font-variant-ligatures: normal;
}

/* ---------- hero ---------- */

.hero { position: relative; height: 420vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  font-size: 15px;
  mix-blend-mode: difference;
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand i {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(90deg, #fff 50%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px #fff;
}

.nav { display: flex; gap: 22px; }
.nav a { opacity: 0.55; transition: opacity 0.3s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav b { font-weight: 400; opacity: 0.5; margin-right: 6px; }

.hero-copy {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) calc(clamp(16px, 2.6vh, 30px) + env(safe-area-inset-bottom));
  will-change: opacity, filter, transform;
}

.hero-copy .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(8px, 1.4vh, 18px);
}

.lede {
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--muted);
}

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.pill:hover { background: rgba(255, 255, 255, 0.16); }
.pill span { display: inline-block; transition: transform 0.4s; }
.pill:hover span { transform: translateY(3px); }

.big {
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  white-space: nowrap;
  font-size: 100px; /* fitted by script */
}
.big .serif { letter-spacing: -0.02em; padding-right: 0.04em; }

/* word-by-word reveal out of blur */
.reveal .w {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(0.12em);
  transition: opacity 1.4s cubic-bezier(.2,.7,.2,1), filter 1.6s cubic-bezier(.2,.7,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i) * 90ms);
}
.is-in .reveal .w { opacity: 1; filter: blur(0); transform: none; }

.fade-in { opacity: 0; transition: opacity 1.6s ease 0.9s; }
.is-in .fade-in { opacity: 1; }

.inner {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0;
}
.inner small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.inner h2 {
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

/* ---------- paper (light curtain) ---------- */

.paper {
  position: relative;
  z-index: 10;
  margin-top: -100vh;
  min-height: 100vh;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 40px;
}

.prism {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  background: conic-gradient(from 200deg, #ffd3a6, #ffb3c1, #c9b8ff, #a8e3ff, #c5f2c1, #fff0a8, #ffd3a6);
}
.prism.a { width: 520px; height: 300px; left: -160px; top: 120px; }
.prism.b { width: 460px; height: 260px; right: -140px; bottom: 120px; opacity: 0.4; }

.paper .label { position: relative; font-size: 13px; color: var(--paper-muted); margin-bottom: 22px; }

.paper h3 {
  position: relative;
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(60px, 12vh, 140px);
}
.stat b {
  display: block;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.stat p { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--paper-muted); max-width: 260px; }
.stat em { font-style: normal; color: var(--paper-ink); }

.next {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(80px, 16vh, 180px);
  padding-top: 24px;
}
.next small { font-size: 13px; color: var(--paper-muted); }
.next a {
  font-size: clamp(48px, 9vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.next a:hover { transform: translateX(-12px); }

.foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  font-size: 12px;
  color: var(--paper-muted);
}

/* ---------- phone ---------- */

@media (max-width: 760px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav b { display: none; }
  .hero-copy .row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .big { white-space: normal; font-size: 15.5vw !important; line-height: 0.9; }
  .stats { grid-template-columns: 1fr 1fr; }
  .next { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal .w, .fade-in { transition: none; opacity: 1; filter: none; transform: none; }
}
