/* GENESIS — The First Pack */
:root {
  --bg: #0b0a08;
  --bg-2: #12100d;
  --surface: #15130f;
  --text: #efe9dc;
  --muted: #9a9386;
  --faint: #5f5a50;
  --line: rgba(239, 233, 220, .08);
  --line-2: rgba(239, 233, 220, .16);
  --ember: #ff6a2b;
  --dawn: #ffb06a;
  --pale: #ffe2b8;
  --sun: linear-gradient(180deg, #ffe2b8 0%, #ff9a52 55%, #ff5a24 100%);
  --wide: "Michroma", "Instrument Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--ember); color: #0b0a08; }
[hidden] { display: none !important; }

/* ---------- type helpers ---------- */
.label, .eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); }
h2 { font: 300 clamp(38px, 5.2vw, 68px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0; }
h2 em { color: var(--dawn); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 14px 24px; font: 500 15px/1 var(--ui);
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, opacity .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-solid { background: var(--text); color: #0b0a08; }
.btn-solid:hover { background: #fff; }
.btn-solid:disabled { background: rgba(239, 233, 220, .1); color: var(--faint); cursor: not-allowed; }
.btn-ghost { border-color: var(--line-2); background: rgba(239, 233, 220, .02); }
.btn-ghost:hover { border-color: rgba(239, 233, 220, .4); }
.btn-link { padding-left: 6px; padding-right: 6px; color: var(--muted); }
.btn-link:hover { color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-wide { width: 100%; }
.btn:active { transform: scale(.98); }
.btn-ember { background: var(--sun); color: #1a0d05; }
.btn-ember:hover { filter: brightness(1.08); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 10, 8, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 400 13px/1 var(--wide); letter-spacing: .32em; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.nav-links { display: flex; gap: 30px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: rgba(239, 233, 220, .06); }
.icon-btn svg { width: 17px; height: 17px; }
#walletBtn.on { border-color: rgba(255, 176, 106, .4); color: var(--pale); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 40px; padding: 120px var(--gutter) 110px; max-width: var(--max); margin: 0 auto; isolation: isolate; overflow-x: clip;
}
.hero::before { /* the glow of first light behind the pack */
  content: ""; position: absolute; z-index: -2; right: -10%; top: 8%; width: 70vw; max-width: 980px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 106, 43, .22), rgba(255, 106, 43, .07) 45%, transparent 72%);
  filter: blur(10px); pointer-events: none;
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.horizon {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 92px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(239, 233, 220, .12) 20%, rgba(255, 176, 106, .55) 72%, rgba(239, 233, 220, .12) 92%, transparent);
}
.hero-copy { container-type: inline-size; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 106, 43, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 106, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); } }
.hero h1 { margin: 6px 0 30px; font-weight: 400; }
.h-word {
  display: block; font: 400 clamp(34px, 15cqi, 120px)/.9 var(--wide); letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(180deg, #f6f1e6 30%, #b9b0a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-serif { display: block; margin-top: 16px; font: 300 clamp(34px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -.02em; color: var(--text); }
.h-serif em { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lede { max-width: 470px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); margin: 0 0 36px; }
.lede b { color: var(--text); font-weight: 500; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; }
.hero-stats { display: flex; margin: 56px 0 0; border-top: 1px solid var(--line); max-width: 470px; }
.hero-stats div { flex: 1; padding: 18px 0 0; }
.hero-stats div + div { padding-left: 22px; border-left: 1px solid var(--line); margin-left: 22px; }
.hero-stats dt { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero-stats dd { margin: 10px 0 0; font: 400 26px/1 var(--serif); }
.hero-stats small { font: 400 13px var(--mono); color: var(--faint); margin-left: 4px; }

.hero-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 1400px; }
.ring { position: absolute; inset: 2%; width: 96%; height: 96%; animation: spin 90s linear infinite; pointer-events: none; }
.ring text { font: 400 11.5px var(--mono); letter-spacing: .42em; fill: rgba(239, 233, 220, .28); }
@keyframes spin { to { transform: rotate(360deg); } }
.pack-tilt { --w: clamp(220px, 23vw, 320px); position: relative; transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
.pack-shadow { position: absolute; bottom: 9%; width: 42%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(6px); animation: shadow 7s ease-in-out infinite; }
@keyframes shadow { 0%, 100% { transform: scale(1.06); opacity: .8; } 50% { transform: scale(.9); opacity: .55; } }

/* ---------- the pack ---------- */
.pack {
  --mx: .5; --my: .4; --rx: 0deg; --ry: 0deg;
  position: relative; width: var(--w); aspect-ratio: 5 / 7.4; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform;
}
.pack.live { transition: transform .08s linear; }
.pk-body {
  position: absolute; inset: 0; overflow: hidden; border-radius: 3px;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(255, 106, 43, .28), transparent 60%),
    linear-gradient(180deg, #1d1a15 0%, #0f0d0b 55%, #15110d 100%);
  box-shadow: inset 0 0 0 1px rgba(239, 233, 220, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
  /* crimped top + bottom edge */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x;
}
.pk-crimp { position: absolute; left: 0; right: 0; height: 7.5%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .25)); }
.pk-crimp.t { top: 0; border-bottom: 1px solid rgba(239, 233, 220, .08); }
.pk-crimp.b { bottom: 0; border-top: 1px solid rgba(239, 233, 220, .08); }
.pk-tear { position: absolute; top: 10.5%; left: 7%; right: 7%; display: flex; align-items: center; gap: 8px; font: 500 calc(var(--w) * .026)/1 var(--mono); letter-spacing: .2em; color: rgba(239, 233, 220, .32); }
.pk-tear::after { content: ""; flex: 1; border-top: 1px dashed rgba(239, 233, 220, .22); }
.pk-meta { position: absolute; top: 17%; left: 9%; right: 9%; display: flex; justify-content: space-between; font: 500 calc(var(--w) * .032)/1 var(--mono); letter-spacing: .12em; color: rgba(239, 233, 220, .55); }
.pk-sun { position: absolute; left: 50%; top: 45%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pk-sun .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(239, 233, 220, .12); }
.pk-sun .orbit.o2 { inset: -16%; border-color: rgba(239, 233, 220, .06); }
.pk-sun .orbit.o3 { inset: 16%; border-style: dashed; border-color: rgba(239, 233, 220, .1); }
.pk-sun .disc {
  position: absolute; inset: 27%; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 calc(var(--w) * .12) rgba(255, 120, 50, .55), 0 0 calc(var(--w) * .3) rgba(255, 90, 36, .25);
  -webkit-mask: linear-gradient(#000 52%, transparent 52%); mask: linear-gradient(#000 52%, transparent 52%);
}
.pk-sun .line { position: absolute; left: -14%; right: -14%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 210, 160, .8), transparent); }
.pk-sun .refl { position: absolute; left: 27%; right: 27%; top: 52.5%; height: 19%; background: repeating-linear-gradient(180deg, rgba(255, 140, 70, .45) 0 1px, transparent 1px 6px); -webkit-mask: radial-gradient(60% 100% at 50% 0, #000, transparent); mask: radial-gradient(60% 100% at 50% 0, #000, transparent); }
.pk-name { position: absolute; left: 0; right: 0; bottom: 15%; text-align: center; }
.pk-name b { display: block; font: 400 calc(var(--w) * .088)/1 var(--wide); letter-spacing: .14em; padding-left: .14em; color: #f2ecdf; }
.pk-name i { display: block; margin-top: calc(var(--w) * .03); font: 300 italic calc(var(--w) * .07)/1 var(--serif); color: var(--dawn); }
.pk-name small { display: block; margin-top: calc(var(--w) * .045); font: 500 calc(var(--w) * .028)/1 var(--mono); letter-spacing: .2em; color: rgba(239, 233, 220, .38); }
.pk-foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; border-radius: 3px;
  background:
    radial-gradient(40% 30% at calc(var(--mx) * 100%) calc(var(--my) * 100%), rgba(255, 230, 200, .35), transparent 70%),
    linear-gradient(calc(110deg + var(--mx) * 40deg), transparent 30%, rgba(255, 170, 110, .18) 42%, rgba(160, 200, 255, .14) 50%, rgba(255, 120, 200, .12) 56%, transparent 68%);
  -webkit-mask: inherit; mask: inherit;
}
.pk-edge { position: absolute; inset: 0; border-radius: 3px; pointer-events: none; background: linear-gradient(calc(90deg + var(--mx) * 60deg), rgba(255, 255, 255, .06), transparent 40%, rgba(0, 0, 0, .3)); }

/* ---------- ticker ---------- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden; border-top: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; gap: 48px; width: max-content; height: 100%; align-items: center; animation: tick 60s linear infinite; font: 400 12px var(--mono); letter-spacing: .06em; color: var(--faint); }
.ticker-track span b { color: var(--muted); font-weight: 500; }
.ticker-track span i { font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 160px) var(--gutter) 0; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec-head .muted { margin: 22px 0 0; max-width: 520px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 34px 34px 10px 0; }
.steps li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.step-n { font: 400 12px var(--mono); color: var(--dawn); letter-spacing: .1em; }
.steps h3 { font: 400 30px/1 var(--serif); margin: 28px 0 14px; }
.steps p { color: var(--muted); margin: 0; max-width: 330px; }

/* ---------- quests ---------- */
.quests { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.q-side { position: sticky; top: 104px; }
.q-side > .muted { margin: 22px 0 34px; }
.q-progress p { margin: 12px 0 0; font: 400 13px var(--mono); color: var(--muted); }
.q-progress p b { color: var(--text); font-weight: 500; }
.q-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.q-bar i { height: 3px; border-radius: 2px; background: rgba(239, 233, 220, .1); transition: background .5s var(--ease), box-shadow .5s; }
.q-bar i.on { background: var(--dawn); box-shadow: 0 0 12px rgba(255, 140, 70, .5); }
.claim-box { margin-top: 34px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(180deg, rgba(239, 233, 220, .025), transparent); }
.claim-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.claim-row span { color: var(--faint); }
.claim-row b { font: 400 13px var(--mono); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-box .btn { margin-top: 20px; }
.claim-box.ready .btn-solid { background: var(--sun); color: #1a0d05; box-shadow: 0 10px 40px -10px rgba(255, 106, 43, .6); }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }

.q-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: q; }
.quest { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: opacity .4s; }
.q-n { font: 400 12px var(--mono); color: var(--faint); letter-spacing: .08em; }
.q-plat { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.q-plat svg { width: 12px; height: 12px; }
.quest h3 { margin: 0; font: 400 clamp(21px, 2vw, 26px)/1.2 var(--serif); letter-spacing: -.01em; }
.quest p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.q-act { display: flex; align-items: center; gap: 8px; }
.q-act .btn { min-width: 116px; }
.q-field { grid-column: 2 / -1; display: flex; gap: 8px; margin-top: -4px; }
.q-field input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 13px 18px;
  color: var(--text); font: 400 14px var(--mono); outline: none; transition: border-color .2s;
}
.q-field input:focus { border-color: rgba(255, 176, 106, .5); }
.q-field input::placeholder { color: var(--faint); }
.q-done { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; color: var(--dawn); font: 500 13px var(--mono); letter-spacing: .06em; border: 1px solid rgba(255, 176, 106, .25); }
.q-done svg { width: 16px; height: 16px; }
.quest.done .q-n { color: var(--dawn); }
.quest.locked { opacity: .38; pointer-events: none; }
.q-wait { font: 400 13px var(--mono); color: var(--muted); min-width: 116px; text-align: center; }
.q-redo { background: none; border: 0; color: var(--faint); font: 400 12px var(--mono); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- specimens ---------- */
.specimens { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.spec { margin: 0; }
.spec-card { position: relative; aspect-ratio: 600 / 840; border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.spec-card canvas { width: 100%; height: 100%; display: block; }
.spec:hover .spec-card { transform: translateY(-8px); }
.spec figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.spec figcaption b { font: 400 22px var(--serif); }
.spec figcaption span { font: 400 12px var(--mono); color: var(--muted); }

/* ---------- ledger ---------- */
.led-stats { display: flex; gap: 40px; margin: 0; }
.led-stats dt { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.led-stats dd { margin: 10px 0 0; font: 300 40px/1 var(--serif); }
.table { border-top: 1px solid var(--line-2); }
.tr { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 1fr .8fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 13.5px var(--mono); }
.tr.th { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 0; }
.tr .no { font: 400 18px var(--serif); }
.rar { display: inline-flex; align-items: center; gap: 8px; }
.rar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #bbb); box-shadow: 0 0 10px var(--c, transparent); }
.rar.origin { --c: #d8d0c0; } .rar.ember { --c: #ff7a3a; } .rar.prime { --c: #8fd2ff; } .rar.singularity { --c: #e7a6ff; }
.pay-q { color: var(--muted); }
.pay-s { color: var(--dawn); }
.pay-s:hover { text-decoration: underline; }
.when { color: var(--faint); }
.empty { padding: 48px 0; text-align: center; color: var(--faint); font: 400 14px var(--mono); border-bottom: 1px solid var(--line); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font: 400 22px/1.3 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 24px var(--ui); color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: -8px 0 26px; color: var(--muted); max-width: 620px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(100px, 14vw, 180px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-word {
  font: 400 clamp(60px, 17.5vw, 270px)/.8 var(--wide); letter-spacing: -.02em; text-align: center; padding-top: 50px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(239, 233, 220, .1), rgba(239, 233, 220, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-row { max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
.foot-row p { margin: 0; }
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }

/* ---------- opening stage ---------- */
.stage { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, rgba(40, 22, 10, .92), rgba(6, 5, 4, .97)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.stage-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.stage-close:hover { color: var(--text); }
.stage-inner { position: relative; width: min(92vw, 520px); height: min(88svh, 760px); display: grid; place-items: center; perspective: 1400px; }
.stage-pack { --w: min(62vw, 290px); position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); transition: transform .9s var(--ease), opacity .7s; }
.stage-pack.shake { animation: shake .09s linear infinite; }
@keyframes shake { 0% { translate: calc(var(--s, 0) * -1px) 0; } 50% { translate: calc(var(--s, 0) * 1px) calc(var(--s, 0) * -.5px); } 100% { translate: calc(var(--s, 0) * -1px) 0; } }
.stage-pack .pk-sun .disc { transition: box-shadow .2s; }
.stage-pack.torn .pack { animation: tornOut 1s var(--ease) forwards; }
@keyframes tornOut { 0% { opacity: 1; transform: none; } 30% { transform: scale(1.08); filter: brightness(1.6); } 100% { opacity: 0; transform: translateY(40%) scale(.9); filter: brightness(.6); } }
.stage-pack .tear-top { position: absolute; left: 0; right: 0; top: 0; height: 12%; z-index: 3; background: linear-gradient(180deg, #1d1a15, #15120e); clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 88%, 84% 72%, 75% 95%, 66% 76%, 57% 92%, 48% 74%, 39% 96%, 30% 78%, 21% 94%, 12% 75%, 0 90%); opacity: 0; }
.stage-pack.torn .tear-top { opacity: 1; animation: flyTop .9s var(--ease) forwards; }
@keyframes flyTop { to { transform: translate(40%, -260%) rotate(28deg); opacity: 0; } }
.flash { position: absolute; inset: -30%; z-index: 4; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 220, 180, .9), rgba(255, 120, 50, .3) 40%, transparent 70%); opacity: 0; }
.stage-pack.torn .flash { animation: flash 1.1s ease-out forwards; }
@keyframes flash { 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }

.reveal-card { --cw: min(66vw, 300px); position: absolute; top: 40%; left: 50%; width: var(--cw); aspect-ratio: 600 / 840; transform: translate(-50%, -30%) scale(.7); opacity: 0; pointer-events: none; transition: transform 1.1s var(--ease), opacity .6s; }
.reveal-card.up { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.rc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); transform: rotateY(180deg); }
.reveal-card.flip .rc-inner { transform: rotateY(0); }
.rc-back, .rc-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rc-back { transform: rotateY(180deg); display: grid; place-items: center; background: linear-gradient(180deg, #1d1a15, #0f0d0b); box-shadow: inset 0 0 0 1px rgba(239, 233, 220, .14); color: var(--text); }
.rc-back svg { width: 34%; height: 34%; }
.rc-face { box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 80px -10px var(--glow, rgba(255, 120, 50, .35)); }
.rc-face canvas { width: 100%; height: 100%; display: block; }
.stage-ui { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; transition: opacity .4s; }
.stage-ui p { margin: 14px 0 0; font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hold { position: relative; width: 84px; height: 84px; border: 0; border-radius: 50%; background: rgba(239, 233, 220, .04); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold circle { fill: none; stroke: rgba(239, 233, 220, .14); stroke-width: 2; }
.hold .hold-fill { stroke: var(--dawn); stroke-dasharray: 289; stroke-dashoffset: 289; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 140, 70, .7)); }
.hold span { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.stage-result { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .7s .2s var(--ease), transform .7s .2s var(--ease); pointer-events: none; }
.stage-result.show { opacity: 1; transform: none; pointer-events: auto; }
.stage-result .label { margin-bottom: 10px; color: var(--dawn); }
.stage-result h3 { margin: 0; font: 300 34px/1 var(--serif); }
.stage-result .muted { margin: 10px 0 20px; font-size: 14.5px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px; background: #efe9dc; color: #0b0a08; font: 500 14px var(--ui); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 90px; gap: 10px; text-align: left; }
  .hero-stage { order: -1; width: min(100%, 440px); margin: 0 auto; }
  .horizon { display: none; }
  .quests, .faq { grid-template-columns: 1fr; }
  .q-side { position: static; }
  .specimens { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav { height: 62px; gap: 10px; }
  .brand span { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps h3 { margin-top: 16px; }
  .quest { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 24px 0; }
  .q-act { grid-column: 2; margin-top: 14px; }
  .q-field { grid-column: 1 / -1; margin-top: 12px; flex-direction: column; }
  .q-field .btn { width: 100%; }
  .hero-stats div + div { padding-left: 16px; margin-left: 16px; }
  .hero-stats dd { font-size: 22px; }
  .led-stats { gap: 26px; }
  .led-stats dd { font-size: 30px; }
  .tr { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .tr.th { display: none; }
  .tr > :nth-child(3) { grid-column: 1; color: var(--muted); }
  .tr > :nth-child(4) { justify-self: end; }
  .tr > :nth-child(2) { justify-self: end; }
  .tr .when { display: none; }
  summary { font-size: 19px; }
  .stage-result h3 { font-size: 28px; }
}
