/* Eonian Sealed Craft — website. Brand tokens from brand/BRAND.md. */
:root {
  --night: #0b0a10; --panel: #15131d; --line: #2a2636;
  --gold: #d8b45a; --gold-pale: #f0d48a; --gold-deep: #a8873a;
  --violet: #8b6cf0; --text: #ece8f4; --muted: #9a93ad;
  --paper: #fbf8f1; --paper-ink: #24201a; --paper-gold: #c8a24a;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: min(1180px, 100% - 48px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: linear-gradient(180deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep)); color: #17130a; border-color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-pale); }
.btn-ghost { color: var(--text); border-color: #4a4458; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-pale); }
.btn-small { padding: 10px 16px; font-size: 14px; white-space: nowrap; }

/* ---------- falling gold coins (parallax with scroll) ---------- */
.coins { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; perspective: 900px; }
.coin { position: absolute; top: 0; left: 0; will-change: transform; }
.coin-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: coin-spin var(--spin, 4s) linear infinite; }
.coin-face, .coin-edge { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; }
.coin-face { background: url("/assets/coin-face.svg") center / cover no-repeat; }
.coin-face.front { transform: translateZ(calc(var(--t) / 2)); }
.coin-face.back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.coin-edge { backface-visibility: visible; background: linear-gradient(90deg, #6e5420, #c9a24c 30%, #f0d48a 50%, #c9a24c 70%, #6e5420); }
@keyframes coin-spin { to { transform: rotateY(360deg) rotateZ(var(--tilt, 0deg)); } }
.coin.far { filter: blur(1.6px) brightness(.75); opacity: .4; }
main, .foot, .top { position: relative; z-index: 1; }
.top { position: fixed; z-index: 50; }
main > section, .band, .foot { position: relative; }
@media (prefers-reduced-motion: reduce) { .coins { display: none; } }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(24px, (100% - 1180px) / 2); background: linear-gradient(180deg, rgba(11,10,16,.92), rgba(11,10,16,.0)); transition: background .3s; }
.top.solid { background: rgba(11,10,16,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { font: 700 15px/1 var(--serif); letter-spacing: .14em; color: var(--gold-pale); text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--text); text-decoration: none; font-size: 15px; }
nav a:not(.btn):hover { color: var(--gold-pale); }
@media (max-width: 860px) { nav a:not(.btn) { display: none; } .wordmark { font-size: 12px; letter-spacing: .1em; } }
@media (max-width: 420px) { .wordmark { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; width: var(--wrap); margin: 0 auto; padding: 140px 0 90px; }
.inscriptions { position: absolute; inset: 0 calc((100vw - 100%) / -2); overflow: hidden; pointer-events: none; z-index: 0; }
.ins { position: absolute; left: 0; white-space: nowrap; font: 900 clamp(110px, 19vw, 300px)/0.9 var(--serif); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(216,180,90,.16); will-change: transform; }
.ins-1 { top: 9%; left: 4%; }
.ins-2 { top: 39%; left: 32%; -webkit-text-stroke-color: rgba(240,212,138,.10); }
.ins-3 { top: 68%; left: -2%; -webkit-text-stroke-color: rgba(139,108,240,.14); }
.hexrain { position: absolute; inset: -20% 0 auto auto; width: 46%; font: 400 12px/2.1 var(--mono); color: rgba(154,147,173,.14); word-break: break-all; will-change: transform; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero-copy, .fingerprint { position: relative; z-index: 1; }
.hero h1 { font: 700 clamp(42px, 5.6vw, 82px)/1.04 var(--serif); letter-spacing: .005em; margin: 0 0 28px; color: var(--gold-pale); text-wrap: balance; text-shadow: 0 2px 30px rgba(11,10,16,.9); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: #d6d0e2; max-width: 34em; margin: 0 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.fingerprint { background: rgba(21,19,29,.86); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 30px 28px 26px; backdrop-filter: blur(6px); }
.fingerprint h2 { font: 600 20px/1.2 var(--serif); margin: 0 0 8px; color: var(--text); letter-spacing: .02em; }
.fingerprint > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.drop { display: block; position: relative; border: 1px dashed #4a4458; padding: 22px 16px; text-align: center; color: var(--text); cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(216,180,90,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--gold-pale); outline-offset: 3px; }
.hash { display: block; margin: 18px 0 10px; font: 500 15px/1.7 var(--mono); color: var(--gold-pale); word-spacing: .4em; letter-spacing: .02em; min-height: 3.4em; }
.hash.small { font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 0; }
.fp-note { margin: 0; font-size: 14px; color: var(--muted); }
.fp-note a { color: var(--gold-pale); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: 0; } .hexrain { display: none; } }

/* ---------- parallax band ---------- */
.band { overflow: hidden; padding: 40px 0; border-block: 1px solid var(--line); background: #0e0c14; }
.band-line { white-space: nowrap; font: 700 clamp(44px, 7vw, 96px)/1.15 var(--serif); letter-spacing: .06em; color: var(--gold); will-change: transform; }
.band-line.outline { color: transparent; -webkit-text-stroke: 1px rgba(240,212,138,.45); }
.band-line i { display: inline-block; width: .32em; height: .32em; margin: 0 .5em; vertical-align: middle; background: currentColor; transform: rotate(45deg); }
.band-line.outline i { background: transparent; border: 1px solid rgba(240,212,138,.45); }

/* ---------- section titles ---------- */
.section-title { font: 700 clamp(30px, 3.6vw, 50px)/1.12 var(--serif); color: var(--gold-pale); margin: 0 0 48px; max-width: 18em; text-wrap: balance; }

/* ---------- how ---------- */
.how { width: var(--wrap); margin: 0 auto; padding: 130px 0 90px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 400 54px/1 var(--serif); color: var(--gold); }
.steps h3 { font: 600 24px/1.2 var(--serif); margin: 4px 0 10px; letter-spacing: .03em; }
.steps p { margin: 0; max-width: 40em; color: #d6d0e2; }
@media (max-width: 640px) { .steps li { grid-template-columns: 64px 1fr; gap: 16px; } .step-n { font-size: 36px; } }

/* ---------- why ---------- */
.why { width: var(--wrap); margin: 0 auto; padding: 70px 0 130px; }
.why-lead { font: 600 clamp(30px, 4vw, 58px)/1.12 var(--serif); margin: 0 0 64px; max-width: 17em; color: var(--text); text-wrap: balance; }
.why-lead em { font-style: normal; color: var(--gold-pale); border-bottom: 2px solid var(--gold); }
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-grid article { background: var(--night); padding: 34px 30px; }
.why-grid .why-main { grid-row: span 2; background: var(--panel); padding: 44px 40px; }
.why-main h3 { font-size: 30px !important; }
.why-grid h3 { font: 600 21px/1.25 var(--serif); margin: 0 0 12px; color: var(--gold-pale); letter-spacing: .02em; }
.why-grid p { margin: 0; color: #cfc9dc; font-size: 16px; }
.why-main p { font-size: 18px; }
.why-grid article:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-grid .why-main, .why-grid article:nth-child(4) { grid-row: auto; grid-column: auto; } }

/* ---------- specimens (the one light moment) ---------- */
.specimens { background: var(--paper); color: var(--paper-ink); padding: 120px 24px 110px; }
.specimens > * { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.section-title.dark { color: var(--paper-ink); max-width: min(1180px, 100%); }
.section-title.dark { padding-right: 30%; }
@media (max-width: 860px) { .section-title.dark { padding-right: 0; } }
.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.plaque { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 38px 36px; background: #fffdf8; border: 1px solid #e6dcc4; box-shadow: inset 0 0 0 6px #fffdf8, inset 0 0 0 7px var(--paper-gold); }
.plaque strong { display: block; font: 700 21px/1.25 var(--serif); letter-spacing: .03em; color: var(--paper-ink); margin-bottom: 6px; }
.p-title { display: block; font-size: 16px; color: #6a604e; margin-bottom: 18px; }
.plaque dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.plaque dt { color: #8a7f68; } .plaque dd { margin: 0; }
.plaque .mono { font-size: 13px; }
.spec-note { margin-top: 26px; color: #6a604e; font-size: 15px; }
@media (max-width: 860px) { .plaques { grid-template-columns: 1fr; } .plaque { grid-template-columns: 1fr; } }

/* ---------- commercials ---------- */
.commercials { width: var(--wrap); margin: 0 auto; padding: 130px 0 60px; }
.theatre { position: relative; background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.theatre video, .theatre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.now { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; margin: 22px 0 34px; }
.now h3 { font: 600 26px/1.2 var(--serif); margin: 0; color: var(--gold-pale); }
.now p { margin: 6px 0 0; color: #cfc9dc; max-width: 44em; }
.reel { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.reel button { flex: 0 0 260px; scroll-snap-align: start; text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 0; cursor: pointer; font: inherit; }
.reel button[aria-current="true"] { border-color: var(--gold); }
.reel button:hover { border-color: #5a5368; }
.reel .thumb { aspect-ratio: 16/9; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.reel .thumb span { width: 44px; height: 44px; border: 1px solid rgba(240,212,138,.7); border-radius: 50%; display: grid; place-items: center; color: var(--gold-pale); font-size: 14px; background: rgba(11,10,16,.55); }
.reel .t { display: block; padding: 12px 14px 14px; font-weight: 600; font-size: 15px; }

/* ---------- audience ---------- */
.audience { padding: 120px 0; overflow: hidden; }
.audience .section-title { width: var(--wrap); max-width: var(--wrap); margin: 0 auto 50px; padding-right: 35%; }
@media (max-width: 860px) { .audience .section-title { padding-right: 0; } }
.aud-line { white-space: nowrap; font: 600 clamp(40px, 6vw, 84px)/1.2 var(--serif); margin: 0; color: var(--text); will-change: transform; }
.aud-line.gold { color: var(--gold); }
.aud-plain { width: var(--wrap); margin: 40px auto 0; color: var(--muted); }

/* ---------- plans ---------- */
.plans { width: var(--wrap); margin: 0 auto; padding: 120px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--line); }
.plan { padding: 38px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--panel); box-shadow: inset 0 2px 0 var(--gold); }
.plan h3 { font: 700 24px/1.2 var(--serif); margin: 0 0 8px; color: var(--gold-pale); letter-spacing: .03em; }
.plan .price { font: 600 20px/1.3 var(--sans); margin: 0 0 4px; }
.plan .price small { color: var(--muted); font-weight: 400; font-size: 15px; }
.plan .blurb { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 9px 0 9px 24px; border-top: 1px solid var(--line); font-size: 15px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 860px) { .plan { border-right: 0; border-bottom: 1px solid var(--line); } }
.waitlist { margin-top: 56px; padding: 40px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--panel), #1b1724); }
.waitlist h3 { font: 700 26px/1.2 var(--serif); margin: 0 0 6px; color: var(--gold-pale); }
.waitlist > p { margin: 0 0 22px; color: #cfc9dc; }
.wl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-row input, .wl-row select { flex: 1 1 220px; padding: 14px 16px; background: var(--night); color: var(--text); border: 1px solid #4a4458; font: 16px var(--sans); }
.wl-row select { flex: 0 1 200px; }
.wl-out { margin: 14px 0 0; min-height: 1.6em; font-size: 15px; }
.wl-out.ok { color: var(--gold-pale); } .wl-out.bad { color: #f08a8a; }

/* ---------- limits + footer ---------- */
.limits { width: var(--wrap); margin: 0 auto; padding: 40px 0 120px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 60px; }
.limits h2 { font: 600 24px/1.25 var(--serif); margin: 0; color: var(--text); }
.limits p { margin: 0; color: #cfc9dc; max-width: 42em; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; gap: 14px; } }
.foot { border-top: 1px solid var(--line); padding: 56px max(24px, (100% - 1180px) / 2) 70px; display: grid; gap: 14px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; } .foot a { margin-right: 22px; color: var(--muted); }
.foot a:hover { color: var(--gold-pale); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ins, .hexrain, .band-line, .aud-line { transform: none !important; }
}
