:root {
  --bg: #0b0907; --fg: #ece3d3; --fg2: rgba(236,227,211,.62); --fg3: rgba(236,227,211,.3);
  --gold: #c9a35f; --gold2: rgba(201,163,95,.45); --gold-hi: #f0d49a;
  --cap: 'Cinzel', serif; --serif: 'Cormorant Garamond', 'Times New Roman', serif; --greek: 'GFS Didot', 'Cormorant Garamond', serif;
  --gx: clamp(16px, 4vw, 60px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--serif); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(201,163,95,.35); }

/* ---------- fixed layers ---------- */
#gl, #net, .veil, .fallback { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#gl { display: block; z-index: 0; }
#net { z-index: 1; opacity: 0; mix-blend-mode: screen; }
.veil { z-index: 2; opacity: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11,9,7,.85), rgba(11,9,7,.4)); }
.fallback { display: none; z-index: 0; background: radial-gradient(ellipse 40% 60% at 50% 40%, #1a1510, #0b0907 70%); }
.fallback .stele { position: absolute; left: 50%; top: 14%; width: min(22vw,150px); height: 46%; transform: translateX(-50%);
  background: linear-gradient(100deg,#0c0a09 0%,#26201b 38%,#0f0d0b 52%,#060505 100%); box-shadow: 0 0 80px rgba(201,163,95,.08); }
.fallback .stele::after { content: ""; position: absolute; left: -10%; right: -10%; height: 1px; top: 40%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: scan 12s linear infinite; }
@keyframes scan { from { top: 100%; } to { top: 0; } }
.nogl .fallback { display: block; }
.nogl #gl { display: none; }

main { position: relative; z-index: 3; }
.cap { font: 400 10px/1.4 var(--cap); letter-spacing: .34em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- folds ---------- */
.fold { position: relative; min-height: 100vh; min-height: 100svh; }
.pin { height: 160vh; height: 160svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gx); }
.idx { position: absolute; top: clamp(26px,3.4vw,46px); left: 50%; transform: translateX(-50%); color: var(--gold); white-space: nowrap; }
.idx::before, .idx::after { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--gold2); vertical-align: middle; margin: 0 14px; }

/* hero */
.hero { display: flex; flex-direction: column; padding: clamp(26px,3.4vw,46px) var(--gx) clamp(30px,3.6vw,48px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; background: linear-gradient(180deg, rgba(11,9,7,0), rgba(11,9,7,.55) 55%, rgba(11,9,7,.82)); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.badge { justify-self: start; color: var(--fg2); display: inline-flex; align-items: center; gap: 10px; }
.badge::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.brand { text-align: center; }
.mark { font: 500 clamp(16px,1.45vw,21px)/1 var(--cap); letter-spacing: .72em; margin-right: -.72em; color: var(--fg); }
.mark.small { font-size: 12px; }
.sigil { display: block; width: clamp(26px,2.2vw,34px); margin: 0 auto 16px; fill: var(--gold); filter: drop-shadow(0 0 10px rgba(201,163,95,.35)); }
.greek { margin-top: 14px; font: italic 300 15px/1.3 var(--serif); color: var(--fg2); letter-spacing: .02em; }
.greek span { font: 400 16px var(--greek); font-style: normal; color: var(--gold); letter-spacing: .04em; }
.obj { justify-self: end; color: var(--fg3); text-align: right; }
.spacer { flex: 1; min-height: 34vh; }
.copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
h1, .ret h2 { font: italic 300 clamp(40px,5.4vw,82px)/1 var(--serif); letter-spacing: -.01em; }
.rule { width: 60px; height: 1px; background: var(--gold); margin: 22px auto 20px; opacity: .8; }
.sub { font: 400 clamp(17px,1.35vw,20px)/1.5 var(--serif); color: var(--fg2); max-width: 31em; }
.side { position: absolute; top: 50%; color: var(--fg3); writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); white-space: nowrap; }
.side.l { left: clamp(14px,2vw,30px); }
.side.r { right: clamp(14px,2vw,30px); transform: translateY(-50%); }
.scroll { position: absolute; right: var(--gx); bottom: clamp(30px,3.6vw,48px); color: var(--fg3); }
.scroll::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* waitlist */
.waitlist { margin-top: 30px; display: flex; align-items: stretch; width: min(100%,30rem); border-bottom: 1px solid var(--gold2); transition: border-color .4s; }
.waitlist:focus-within { border-color: var(--gold); }
.waitlist input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--fg); font: italic 400 19px var(--serif); padding: 12px 2px; text-align: left; }
.waitlist input::placeholder { color: var(--fg3); }
.waitlist button { flex: none; background: transparent; border: 0; color: var(--gold); font: 500 10.5px/1 var(--cap); letter-spacing: .3em; text-transform: uppercase; padding: 0 4px 0 18px; cursor: pointer; transition: color .3s, text-shadow .3s; }
.waitlist button:hover, .waitlist button:focus-visible { color: var(--gold-hi); text-shadow: 0 0 14px rgba(201,163,95,.6); outline: none; }
.ok { display: none; margin-top: 30px; font: italic 300 26px/1.2 var(--serif); color: var(--fg); }
.ok::after { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 14px auto 0; }
.done .waitlist { display: none; }
.done .ok { display: block; animation: in 1s ease both; }
.ok:focus { outline: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { margin-top: 12px; min-height: 1.2em; font: italic 400 16px/1.2 var(--serif); color: #d98b6a; }
.done .err { display: none; }
.waitlist button:disabled { opacity: .5; cursor: progress; }
@keyframes in { from { opacity: 0; transform: translateY(5px); } }

/* origin */
.line { font: italic 300 clamp(30px,4.2vw,64px)/1.15 var(--serif); max-width: 16em; text-shadow: 0 2px 30px rgba(11,9,7,.9);
  opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease; }
.line + .line { margin-top: .5em; color: var(--gold); }
.line.is-lit { opacity: 1; filter: none; transform: none; }

/* people */
.stage.people { align-items: flex-start; justify-content: flex-end; text-align: left; padding-bottom: clamp(40px,7vh,90px); }
.people h2 { font: italic 300 clamp(34px,4.6vw,70px)/1.05 var(--serif); max-width: 9.5em; text-shadow: 0 2px 30px rgba(11,9,7,.95); }
.counters { position: absolute; right: var(--gx); bottom: clamp(40px,7vh,90px); display: grid; gap: 10px; color: var(--fg3); text-align: right; }
.counters div { display: flex; justify-content: flex-end; gap: 18px; }
.counters dd { color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .2em; min-width: 5.5ch; }

/* nature */
.words { font: 400 clamp(26px,4.4vw,68px)/1.2 var(--cap); letter-spacing: .14em; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em .5em; }
.word { color: #1d1915; text-shadow: 0 1px 0 rgba(236,227,211,.07), 0 -1px 0 rgba(0,0,0,.8); transition: color 1.2s ease, text-shadow 1.2s ease; }
.word.is-lit { color: var(--gold); text-shadow: 0 0 22px rgba(201,163,95,.45), 0 0 2px rgba(240,212,154,.6); }
.dot { color: var(--fg3); font-size: .5em; }

/* return */
.ret { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gx) clamp(26px,3vw,40px); }
.ret::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(180deg, rgba(11,9,7,0), rgba(11,9,7,.6) 50%, rgba(11,9,7,.85)); }
.ret .copy { margin-bottom: clamp(40px,9vh,110px); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--fg3); border-top: 1px solid rgba(201,163,95,.18); padding-top: 18px; }

@media (max-width: 720px) {
  .hero { padding: 22px 16px 40px; }
  .top { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .badge { justify-self: center; }
  .obj, .side, .scroll { display: none; }
  .mark { letter-spacing: .5em; margin-right: -.5em; }
  .spacer { min-height: 30vh; }
  .waitlist { flex-direction: column; border-bottom: 0; }
  .waitlist input { border-bottom: 1px solid var(--gold2); text-align: center; }
  .waitlist button { padding: 16px 0; border: 1px solid var(--gold2); margin-top: 14px; }
  .stage { padding: 0 16px; }
  .stage.people { padding-bottom: 120px; }
  .counters { left: 16px; right: 16px; bottom: 36px; grid-auto-flow: column; justify-content: space-between; gap: 8px; }
  .counters div { flex-direction: column; gap: 4px; align-items: flex-start; }
  .counters dd { min-width: 0; }
  .words { flex-direction: column; align-items: center; letter-spacing: .1em; }
  .dot { display: none; }
  .ret { padding: 0 16px 22px; }
  .foot { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .line, .word { transition-duration: .01s; filter: none; transform: none; }
  .scroll::after, .fallback .stele::after { animation: none; }
}
