/* =====================================================================
   ZENAPE — style.css
   Palette taken from the hero artwork: ember robe, sunrise gold, dusk.
   ===================================================================== */
:root {
  --ink: #140806;
  --ink-2: #1f0e09;
  --dusk: #2b1320;
  --robe: #b4471f;
  --robe-2: #7d2a16;
  --ember: #e0662a;
  --gold: #f3b454;
  --gold-2: #ffd98a;
  --gold-3: #fff1cf;
  --cream: #fbe9cf;
  --muted: rgba(251, 233, 207, .62);
  --line: rgba(243, 180, 84, .22);

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* Film grain overlay */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); }
  60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.kicker__line { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.h2 {
  font-family: var(--f-display); font-weight: 700; margin: 0 0 28px;
  font-size: clamp(38px, 6vw, 82px); line-height: 1.02; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold-2) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 em, .hero__sub em, .lead em {
  font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: 0;
  background: linear-gradient(90deg, var(--ember), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.h2--xl { font-size: clamp(52px, 10vw, 150px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; color: var(--cream); max-width: 60ch; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; display: inline-block; transition: transform .5s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 120%), rgba(255,255,255,.55), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.btn:hover::before { opacity: 1; }
.btn--gold {
  color: #2a0f06;
  background: linear-gradient(135deg, #fff3c8 0%, var(--gold-2) 30%, var(--gold) 60%, #d67a2a 100%);
  box-shadow: 0 10px 30px -10px rgba(243,180,84,.7), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--gold:hover { box-shadow: 0 16px 50px -12px rgba(255,190,90,.95), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--ghost { color: var(--gold-2); border: 1px solid rgba(255,217,138,.45); backdrop-filter: blur(8px); background: rgba(20,8,6,.25); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-3); }
.btn--lg { height: 58px; padding: 0 34px; font-size: 15px; }

/* ---------- Contract pill ---------- */
.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 8px 10px 8px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20, 8, 6, .45); backdrop-filter: blur(10px);
  font-size: 13px; transition: border-color .3s, background .3s;
}
.ca:hover { border-color: var(--gold); background: rgba(40, 16, 8, .6); }
.ca__label { padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: .12em; }
.ca__value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca__icon { color: var(--gold); font-size: 16px; }
.ca--big { padding: 12px 16px 12px 12px; font-size: 15px; }

/* =====================================================================
   LOADER (3D)
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  perspective: 1100px; overflow: hidden; color: var(--gold-2);
}
.loader__door {
  position: absolute; left: 0; right: 0; height: 50.5%; z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, #3a170c 0%, #160806 55%, #0b0403 100%);
  transition: transform 1.25s var(--ease-io);
}
.loader__door--top { top: 0; }
.loader__door--bottom { bottom: 0; background: radial-gradient(ellipse at 50% 0%, #3a170c 0%, #160806 55%, #0b0403 100%); }
.loader__door::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .4s;
}
.loader__door--top::after { bottom: 0; } .loader__door--bottom::after { top: 0; }
.loader__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; transition: opacity .8s; }

.loader__scene {
  position: relative; z-index: 2; width: 320px; height: 320px; margin-top: -90px;
  transform-style: preserve-3d; display: grid; place-items: center;
  transition: transform 1.2s var(--ease-io), opacity 1s;
}
/* gyroscope rings */
.gyro { position: absolute; inset: 0; transform-style: preserve-3d; animation: gyroFloat 6s ease-in-out infinite; }
.gyro__ring {
  position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d;
  border: 1px solid rgba(255, 217, 138, .55);
  box-shadow: 0 0 20px rgba(243,180,84,.25), inset 0 0 20px rgba(243,180,84,.15);
}
.gyro__ring i {
  position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-3); box-shadow: 0 0 14px 4px var(--gold);
}
.gyro__ring--1 { animation: ring1 5.5s linear infinite; }
.gyro__ring--2 { inset: 22px; border-style: dashed; animation: ring2 7s linear infinite; }
.gyro__ring--3 { inset: -28px; border-color: rgba(224, 102, 42, .45); animation: ring3 9s linear infinite; }
@keyframes ring1 { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ring2 { from { transform: rotateY(68deg) rotateZ(0); } to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes ring3 { from { transform: rotateX(-35deg) rotateY(40deg) rotateZ(0); } to { transform: rotateX(-35deg) rotateY(40deg) rotateZ(360deg); } }
@keyframes gyroFloat { 0%,100% { transform: rotateX(8deg) rotateY(-10deg); } 50% { transform: rotateX(-10deg) rotateY(12deg); } }

/* coin */
.coin {
  --size: 170px; --depth: 16px;
  position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d;
  animation: coinSpin 3.4s cubic-bezier(.45,.05,.55,.95) infinite, coinBob 3.4s ease-in-out infinite;
}
@keyframes coinSpin { from { transform: rotateX(10deg) rotateY(0); } to { transform: rotateX(10deg) rotateY(360deg); } }
@keyframes coinBob { 0%,100% { translate: 0 -6px; } 50% { translate: 0 8px; } }
.coin__face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden;
  background: radial-gradient(circle at 30% 25%, #fff5cf, #f3b454 45%, #a8561c 100%);
  box-shadow: inset 0 0 0 6px #e7a64a, inset 0 0 0 8px #8a4516, inset 0 0 24px 10px rgba(90,35,8,.6);
}
.coin__face--front { transform: translateZ(calc(var(--depth) / 2)); }
.coin__face--back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); display: grid; place-items: center; }
.coin__face img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); border-radius: 50%; object-fit: cover; }
.coin__sym {
  font-family: var(--f-display); font-weight: 900; font-size: 38px; color: #5a2308; letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,245,210,.8), 0 -1px 0 rgba(80,30,5,.5);
}
.coin__shine {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 48%, transparent 62%);
  mix-blend-mode: overlay; animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(120%); } }
.coin__edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin__edge i {
  position: absolute; left: 50%; top: 50%;
  width: var(--sw); height: var(--depth); margin-left: calc(var(--sw) / -2); margin-top: calc(var(--depth) / -2);
  background: linear-gradient(90deg, #8a4516, #f3b454 50%, #8a4516);
  backface-visibility: hidden;
}
.coin__shadow {
  position: absolute; bottom: 36px; left: 50%; width: 150px; height: 22px; margin-left: -75px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,180,84,.45), transparent);
  filter: blur(4px); animation: shadowPulse 3.4s ease-in-out infinite; transform: translateZ(-80px) rotateX(80deg);
}
@keyframes shadowPulse { 0%,100% { opacity: .9; scale: 1; } 50% { opacity: .5; scale: .8; } }

.loader__ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: max(8vh, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  transition: opacity .6s, transform .8s var(--ease);
}
.loader__brand { font-family: var(--f-display); font-weight: 700; letter-spacing: .6em; font-size: 13px; margin-right: -.6em; color: var(--gold); }
.loader__pct {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 11vw, 120px); line-height: 1;
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 70%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.loader__pct sup { font-size: .35em; vertical-align: top; margin-left: 4px; }
.loader__bar { width: min(280px, 70vw); height: 1px; background: rgba(243,180,84,.2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--ember), var(--gold-2)); box-shadow: 0 0 12px var(--gold); }
.loader__mantra { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--muted); min-height: 1.6em; transition: opacity .35s, transform .35s; }
.loader__mantra.is-swap { opacity: 0; transform: translateY(6px); }

/* exit */
.loader.is-done .loader__ui { opacity: 0; transform: translateY(20px); }
.loader.is-done .loader__scene { transform: translateZ(900px) rotateX(20deg); opacity: 0; }
.loader.is-done .loader__stars { opacity: 0; }
.loader.is-done .loader__door::after { opacity: 1; }
.loader.is-open .loader__door--top { transform: translateY(-101%); }
.loader.is-open .loader__door--bottom { transform: translateY(101%); }
.loader.is-gone { display: none; }

/* =====================================================================
   CURSOR
   ===================================================================== */
.cursor-trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }
.cursor { position: fixed; top: 0; left: 0; z-index: 160; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold-3); box-shadow: 0 0 12px 3px rgba(255,200,110,.8); }
.cursor__ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1px solid rgba(255, 217, 138, .7);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .35s, border-color .35s;
}
.cursor__label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(255, 217, 138, .92); border-color: transparent; }
.cursor.is-hover .cursor__label { opacity: 1; transform: none; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,217,138,.12); border-color: var(--gold-2); }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--robe), var(--gold-2)); box-shadow: 0 0 10px var(--gold); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 30px; padding: 0 var(--pad);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  transform: translateY(-110%);
}
.is-loaded .nav { transform: none; transition-delay: .9s; }
.is-loaded .nav.is-scrolled { transition-delay: 0s; background: rgba(20, 8, 6, .62); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.is-loaded .nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 900; letter-spacing: .18em; color: var(--gold-2); }
.nav__logo img { transition: transform 1s var(--ease); }
.nav__logo:hover img { transform: rotate(360deg); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--gold-2); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--gold-2); }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold-2); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
  background: rgba(16, 6, 4, .96); backdrop-filter: blur(12px);
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .9s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mobile-menu a:not(.btn) { font-family: var(--f-display); font-size: 34px; font-weight: 700; color: var(--gold-2); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #2a1208; }
.hero__stage { position: absolute; will-change: transform; transform-origin: 62% 40%; }
.hero__layer { position: absolute; inset: 0; will-change: transform; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg { inset: -2%; }
.hero__bg img { transform: scale(1.12); transition: transform 2.6s var(--ease); }
.is-loaded .hero__bg img { transform: scale(1); }
.hero__fg img { transform: translateY(6%) scale(1.04); opacity: 0; transition: transform 2.2s var(--ease) .15s, opacity 1.2s .15s; filter: drop-shadow(0 0 30px rgba(255, 180, 90, .25)); }
.is-loaded .hero__fg img { transform: none; opacity: 1; }

/* god rays from the sun (image coords ~ 21% / 18%) */
.hero__rays { mix-blend-mode: screen; pointer-events: none; }
.hero__rays span {
  position: absolute; left: 21%; top: 18%; width: 160%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .16) 0deg 2.2deg, transparent 2.2deg 9deg);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.4) 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.4) 40%, transparent 75%);
  animation: raysSpin 90s linear infinite; opacity: 0; transition: opacity 3s 1s;
}
.is-loaded .hero__rays span { opacity: 1; }
@keyframes raysSpin { to { rotate: 360deg; } }

/* halo — sits BETWEEN the landscape and the ape (true depth) */
.hero__halo-wrap { pointer-events: none; }
.hero__halo {
  position: absolute; left: 63.8%; top: 25.5%; width: 44%; translate: -50% -50%;
  mix-blend-mode: screen; overflow: visible; opacity: 0; scale: .6;
  transition: opacity 2s 1.1s, scale 2.4s var(--ease) 1.1s;
}
.is-loaded .hero__halo { opacity: .95; scale: 1; }
.halo-spin { transform-origin: 200px 200px; animation: haloSpin 60s linear infinite; }
.halo-spin--rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes haloSpin { to { transform: rotate(360deg); } }
.hero__halo circle:first-child { animation: haloBreath 6s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes haloBreath { 0%,100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero__fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,8,6,.82) 0%, rgba(20,8,6,.5) 30%, rgba(20,8,6,0) 58%),
    linear-gradient(0deg, var(--ink) 0%, rgba(20,8,6,0) 28%),
    linear-gradient(180deg, rgba(20,8,6,.5) 0%, rgba(20,8,6,0) 18%);
}
.hero__content {
  position: absolute; z-index: 5; left: var(--pad); bottom: clamp(90px, 16vh, 180px); max-width: 760px;
  will-change: transform, opacity;
}
.hero__kicker { opacity: 0; transform: translateY(20px); transition: all 1s var(--ease) .5s; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 900; line-height: .9; letter-spacing: -.02em;
  font-size: clamp(54px, 10.5vw, 168px); white-space: nowrap;
  perspective: 800px;
}
.hero__title .char {
  display: inline-block; transform-origin: 50% 100% -40px; opacity: 0;
  transform: translateY(70%) rotateX(-95deg);
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold-2) 40%, var(--gold) 70%, #c0621f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255, 160, 60, .35));
  transition: transform 1.4s var(--ease), opacity 1s;
  transition-delay: calc(.35s + var(--i) * .07s);
}
.hero__sub { margin: 20px 0 34px; font-size: clamp(18px, 1.7vw, 22px); color: var(--cream); opacity: 0; transform: translateY(20px); transition: all 1.1s var(--ease) 1s; }
.hero__sub em { font-size: 1.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; opacity: 0; transform: translateY(20px); transition: all 1.1s var(--ease) 1.15s; }
.hero .ca { opacity: 0; transform: translateY(20px); transition: opacity 1.1s 1.3s, transform 1.1s var(--ease) 1.3s, border-color .3s, background .3s; }
.is-loaded .hero__kicker, .is-loaded .hero__sub, .is-loaded .hero__actions, .is-loaded .hero .ca { opacity: 1; transform: none; }
.is-loaded .hero__title .char { opacity: 1; transform: none; }

.hero__scroll {
  position: absolute; z-index: 5; right: var(--pad); bottom: 40px; display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2);
  writing-mode: vertical-rl; opacity: 0; transition: opacity 1s 1.8s;
}
.is-loaded .hero__scroll { opacity: 1; }
.hero__scroll i { position: relative; width: 1px; height: 70px; background: rgba(255, 217, 138, .25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-2); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { position: relative; padding: 30px 0 60px; overflow: hidden; }
.marquee__row {
  display: flex; white-space: nowrap; padding: 18px 0; transform: rotate(-2.2deg) scale(1.05);
  background: linear-gradient(90deg, var(--robe-2), var(--robe), var(--ember), var(--robe));
  box-shadow: 0 20px 60px -20px rgba(180, 71, 31, .6);
}
.marquee__row--alt { transform: rotate(1.6deg) scale(1.05); margin-top: -14px; background: var(--gold-2); color: var(--ink); }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 48px); text-transform: uppercase; letter-spacing: .04em; padding: 0 .5em; }
.marquee__row:not(.marquee__row--alt) span { color: var(--gold-3); }
.marquee__track b { font-size: clamp(22px, 3vw, 38px); color: var(--gold-2); animation: spin 8s linear infinite; display: inline-block; }
.marquee__row--alt b { color: var(--robe); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   REVEAL SYSTEM
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.6s var(--ease-io); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 24px); }
[data-words] .w { display: inline-block; opacity: .14; transition: opacity .25s linear; }
[data-words] .w.on { opacity: 1; }

/* =====================================================================
   LEGEND
   ===================================================================== */
.legend { background: linear-gradient(180deg, var(--ink) 0%, #1c0b07 100%); }
.legend__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.legend__media { position: relative; margin: 0; border-radius: 24px; }
.legend__img { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 24px; }
.legend__img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.legend__media::before {
  content: ""; position: absolute; inset: -14px; border-radius: 30px; border: 1px solid var(--line); z-index: -1;
}
.legend__badge {
  position: absolute; right: -28px; bottom: 40px; padding: 20px 24px; border-radius: 18px;
  background: rgba(20, 8, 6, .7); backdrop-filter: blur(14px); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; font-size: 13px; line-height: 1.3; color: var(--muted);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.legend__badge-num { font-family: var(--f-display); font-weight: 900; font-size: 44px; color: var(--gold-2); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.stat { padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(243,180,84,.07), transparent); }
.stat:nth-child(2) { --d: .1s; } .stat:nth-child(3) { --d: .2s; }
.stat__num { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 2.8vw, 38px); color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   QUOTE
   ===================================================================== */
.quote { position: relative; padding: clamp(100px, 16vw, 220px) 0; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #3a170c 0%, #1c0b07 60%); }
.quote__enso { position: absolute; left: 50%; top: 50%; width: min(620px, 90vw); translate: -50% -50%; color: var(--robe); opacity: .55; }
.quote__enso svg { width: 100%; filter: drop-shadow(0 0 30px rgba(224, 102, 42, .5)); }
.quote blockquote { position: relative; margin: 0 auto; }
.quote p { margin: 0 auto 24px; max-width: 18ch; font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: clamp(38px, 6vw, 84px); line-height: 1.08; color: var(--gold-3); }
.quote cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* =====================================================================
   PILLARS
   ===================================================================== */
.pillars { background: #1c0b07; }
.section__head { margin-bottom: 60px; }
.section__head--center { text-align: center; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; padding: 34px 28px 36px; border-radius: 22px; overflow: hidden; min-height: 330px;
  background: linear-gradient(160deg, rgba(58, 23, 12, .9), rgba(28, 11, 7, .9));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform .7s var(--ease), border-color .4s;
}
.card.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.card:nth-child(2) { --d: .1s; } .card:nth-child(3) { --d: .2s; } .card:nth-child(4) { --d: .3s; }
.card:hover { border-color: rgba(255,217,138,.55); }
.card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 196, 110, .22), transparent 45%); }
.card:hover .card__glow { opacity: 1; }
.card__num { position: absolute; top: 24px; right: 26px; font-family: var(--f-display); font-size: 14px; color: var(--gold); opacity: .6; }
.card__icon { width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,217,138,.3), rgba(180,71,31,.2)); border: 1px solid var(--line); margin-bottom: 70px; transform: translateZ(40px); }
.card h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 24px; color: var(--gold-2); transform: translateZ(30px); }
.card p { margin: 0; font-size: 15px; color: var(--muted); transform: translateZ(20px); }

/* =====================================================================
   TOKENOMICS
   ===================================================================== */
.tokenomics { background: radial-gradient(ellipse at 20% 50%, #3a170c 0%, #1c0b07 55%, var(--ink) 100%); }
.tokenomics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.tokenomics__chart { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut__track { fill: none; stroke: rgba(243, 180, 84, .08); stroke-width: 34; }
.donut__seg { fill: none; stroke: var(--c); stroke-width: 34; transition: stroke-width .4s var(--ease), filter .4s; }
.donut__seg:hover { stroke-width: 44; filter: drop-shadow(0 0 10px var(--c)); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.donut__center img { width: 78px; height: 78px; border-radius: 50%; margin-bottom: 8px; animation: float 5s ease-in-out infinite; }
.donut__center strong { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--gold-2); }
.donut__center span { font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.tokenomics__chart::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed var(--line); animation: spin 60s linear infinite;
}
.alloc { list-style: none; padding: 0; margin: 0 0 30px; }
.alloc li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.alloc li:nth-child(2) { --d: .06s; } .alloc li:nth-child(3) { --d: .12s; } .alloc li:nth-child(4) { --d: .18s; } .alloc li:nth-child(5) { --d: .24s; }
.alloc i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.alloc b { font-family: var(--f-display); font-size: 22px; color: var(--gold-2); }
.token-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.token-meta div { padding: 16px; border-radius: 14px; background: rgba(243,180,84,.06); border: 1px solid var(--line); }
.token-meta span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.token-meta b { font-family: var(--f-display); color: var(--gold-2); font-size: 16px; word-break: break-all; }

/* =====================================================================
   HOW TO BUY
   ===================================================================== */
.how { background: var(--ink); }
.steps { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.steps__line { position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: rgba(243,180,84,.14); }
.steps__line span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--gold-2), var(--robe)); box-shadow: 0 0 14px var(--gold); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 30px; padding: 22px 0; }
.step__dot {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 24px; color: var(--ink);
  background: radial-gradient(circle at 30% 30%, #fff3c8, var(--gold) 60%, #b0601e);
  box-shadow: 0 0 0 8px var(--ink), 0 0 30px rgba(243,180,84,.5);
}
.step__body { padding: 22px 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(58,23,12,.6), rgba(28,11,7,.2)); transition: border-color .4s, transform .6s var(--ease); }
.step:hover .step__body { border-color: rgba(255,217,138,.5); transform: translateX(8px); }
.step h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: 24px; color: var(--gold-2); }
.step p { margin: 0; color: var(--muted); }
.how__ca { display: flex; justify-content: center; margin-top: 60px; }

/* =====================================================================
   ROADMAP (pinned horizontal)
   ===================================================================== */
.roadmap { position: relative; height: 400vh; background: var(--ink); }
.roadmap__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: calc(var(--nav-h) * .6); display: flex; flex-direction: column; justify-content: center; }
.roadmap__sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--sky-a, #2b1320), var(--sky-b, #140806));
  transition: background .2s;
}
.roadmap__sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(243,180,84,.2), transparent 60%); }
.roadmap__head { position: relative; z-index: 2; margin-bottom: 30px; }
.roadmap__head .h2 { margin-bottom: 0; }
.roadmap__track { position: relative; z-index: 2; display: flex; gap: clamp(24px, 3vw, 44px); padding: 0 var(--pad); will-change: transform; width: max-content; }
.phase {
  position: relative; flex: 0 0 auto; width: min(560px, 78vw); border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(20, 8, 6, .75); backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  transition: transform .6s var(--ease), border-color .4s;
}
.phase:hover { border-color: rgba(255,217,138,.55); transform: translateY(-8px); }
.phase__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.phase__media img { width: 118%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.phase__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,8,6,.9), transparent 45%); }
.phase__body { position: relative; padding: 0 30px 30px; margin-top: -48px; }
.phase__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.phase h3 { margin: 12px 0 14px; font-family: var(--f-display); font-size: clamp(30px, 3vw, 42px); line-height: 1; color: var(--gold-2); }
.phase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phase li { position: relative; padding-left: 26px; color: var(--cream); font-size: 15px; }
.phase li::before { content: "✺"; position: absolute; left: 0; color: var(--gold); font-size: 13px; top: 2px; }
.roadmap__progress { position: relative; z-index: 2; margin: 40px var(--pad) 0; height: 2px; background: rgba(243,180,84,.15); border-radius: 2px; }
.roadmap__progress span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--robe), var(--gold-2)); box-shadow: 0 0 12px var(--gold); }
.roadmap__progress::after { content: "🐒"; position: absolute; left: calc(var(--p, 0) * 100%); top: -17px; font-size: 22px; translate: -50% 0; filter: drop-shadow(0 0 8px rgba(243,180,84,.8)); }

/* =====================================================================
   COMMUNITY
   ===================================================================== */
.community { overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 60%, #4a1e0e 0%, #1c0b07 55%, var(--ink) 100%); padding: clamp(140px, 18vw, 240px) 0; }
.community__inner { position: relative; z-index: 2; }
.community__orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(900px, 130vw); aspect-ratio: 1; pointer-events: none; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243,180,84,.14); animation: spin 50s linear infinite; }
.orbit--2 { inset: 14%; animation-duration: 36s; animation-direction: reverse; border-style: dashed; }
.orbit--2 span { animation-duration: 36s; animation-direction: normal; }
.orbit span { position: absolute; font-size: 34px; animation: spin 50s linear infinite reverse; filter: drop-shadow(0 0 14px rgba(243,180,84,.6)); }
.orbit--1 span:nth-child(1) { top: -20px; left: 50%; } .orbit--1 span:nth-child(2) { bottom: 10%; left: 5%; } .orbit--1 span:nth-child(3) { bottom: 10%; right: 5%; }
.orbit--2 span:nth-child(1) { top: -18px; left: 50%; } .orbit--2 span:nth-child(2) { right: -18px; top: 50%; } .orbit--2 span:nth-child(3) { bottom: -18px; left: 50%; } .orbit--2 span:nth-child(4) { left: -18px; top: 50%; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.social {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(20,8,6,.5); backdrop-filter: blur(10px);
  font-weight: 700; letter-spacing: .08em; transition: background .4s, border-color .4s, color .4s;
}
.social svg { width: 22px; height: 22px; fill: var(--gold-2); transition: fill .4s; }
.social:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.social:hover svg { fill: var(--ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; background: #0d0504; padding: 40px 0 50px; }
.footer__mountains { position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; color: #0d0504; line-height: 0; }
.footer__mountains svg { width: 100%; height: 100%; }
.footer__inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; text-align: left; }
.footer__brand strong { display: block; font-family: var(--f-display); font-size: 26px; letter-spacing: .14em; color: var(--gold-2); }
.footer__brand span { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--muted); }
.footer__disclaimer { max-width: 760px; margin: 0; font-size: 13px; color: rgba(251,233,207,.45); }
.footer__disclaimer a { color: var(--gold); }
.footer__copy { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,233,207,.35); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 180; padding: 14px 24px; border-radius: 999px;
  background: var(--gold-2); color: var(--ink); font-weight: 800; letter-spacing: .06em;
  transform: translate(-50%, calc(100% + 50px)); transition: transform .6s var(--ease); box-shadow: 0 20px 40px -10px rgba(243,180,84,.6);
}
.toast.is-show { transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 22px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .legend__grid, .tokenomics__grid { grid-template-columns: 1fr; }
  .legend__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .legend__badge { right: 12px; }
  .hero__fog {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(20,8,6,.85) 30%, rgba(20,8,6,0) 62%),
      linear-gradient(180deg, rgba(20,8,6,.55) 0%, rgba(20,8,6,0) 20%);
  }
  .hero__content { right: var(--pad); bottom: 70px; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 36px; }
  .stats, .token-meta { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step__dot { width: 48px; height: 48px; font-size: 18px; }
  .steps__line { left: 23px; }
  .step__body { padding: 18px 20px; }
  .btn--lg { height: 52px; padding: 0 24px; font-size: 13px; }
  .hero__actions .btn { flex: 1; }
  .ca--big { font-size: 12px; }
  .loader__scene { transform: scale(.8); }
}

/* Mobile roadmap: vertical stack instead of pinned horizontal scroll */
@media (max-width: 760px) {
  .roadmap { height: auto !important; padding: 110px 0 90px; }
  .roadmap__sticky { position: relative; height: auto; }
  .roadmap__track { flex-direction: column; width: auto; transform: none !important; }
  .phase { width: 100%; }
  .roadmap__progress { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-trail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { display: none; }
}
