:root {
  --paper: oklch(94.5% 0.012 90);   /* sun-bleached marble white */
  --ink:   oklch(21% 0.012 80);     /* carved basalt */
  --alcove: oklch(16% 0.014 75);    /* recessed niche the 3D lives in */
  --alcove-2: oklch(12% 0.012 70);
  --gold:  oklch(64% 0.115 84);     /* gold leaf: seams, punctuation only */
  --gold-bright: oklch(78% 0.13 88);
  --cream: oklch(92% 0.03 90);      /* display type inside the alcove */
  --radius-panel: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--paper); }
body {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--paper); }

/* ---- two-scale typography: huge calm Marcellus vs tiny caps Manrope ---- */
.display {
  font-family: Marcellus, Georgia, serif;
  font-weight: 400;
  font-size: clamp(46px, 8.2vw, 122px);
  line-height: 1.04;
  letter-spacing: 0.002em;
}
.annotation, .pill, .alt-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.annotation { opacity: 0.72; line-height: 1.7; }

/* ---------------- nav ---------------- */
.nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 44px; }
.wordmark {
  font-family: Marcellus, serif;
  font-size: 19px; letter-spacing: 0.3em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark .omega { color: var(--gold); }
.nav-statement { font-size: clamp(16px, 1.7vw, 22px); max-width: 34ch; line-height: 1.4; }
.nav-actions { display: flex; gap: 10px; }
.pill {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 999px;
  display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
}
.pill .dot { color: var(--gold-bright); }
.pill-light { background: var(--paper); color: var(--ink); }
.pill-light .dot { color: var(--gold); }

/* ---------------- hero heading ---------------- */
.hero-head { padding: 9vh 44px 6vh; max-width: 1200px; }
.kicker { color: var(--gold); opacity: 1; margin-bottom: 22px; }
.hero-head .lede { margin-top: 28px; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.55; max-width: 52ch; opacity: 0.85; }

/* ---------------- hero stage: sticky alcove panel ---------------- */
.hero-stage { height: 340vh; padding: 0 44px; }
.hero-panel {
  position: sticky; top: 20px;
  height: calc(100vh - 40px); min-height: 480px;
  background:
    radial-gradient(120% 90% at 50% 0%, oklch(19% 0.016 75), var(--alcove-2) 78%);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }

/* giant cream beats sliding BEHIND the marble (canvas is transparent) */
.panel-beats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.beat {
  position: absolute; top: 50%; left: 0; width: 100%;
  font-family: Marcellus, serif;
  font-size: clamp(90px, 15vw, 230px);
  color: var(--cream); opacity: 0.92;
  text-align: center; white-space: nowrap;
  will-change: transform;
}

.mark { position: absolute; font-size: 13px; opacity: 0.55; z-index: 3; pointer-events: none; }
.hero-panel .mark, .finale-panel .mark { color: var(--cream); }
.mark.tl { top: 12px; left: 14px; } .mark.tr { top: 12px; right: 14px; }
.mark.bl { bottom: 10px; left: 14px; } .mark.br { bottom: 10px; right: 14px; }

.panel-label { position: absolute; z-index: 3; color: var(--cream); opacity: 0.6; pointer-events: none; }
.panel-label.lt { top: 16px; left: 40px; }
.panel-label.rt { top: 16px; right: 40px; text-align: right; }

.panel-state { position: absolute; left: 40px; bottom: 20px; z-index: 3; height: 16px; pointer-events: none; }
.state-chip { position: absolute; left: 0; bottom: 0; white-space: nowrap; color: var(--gold-bright); opacity: 0; }
#state-1 { opacity: 1; }

/* gold axis line that grows from the assembled column down out of the panel */
.panel-spine {
  position: absolute; z-index: 3; left: 50%; bottom: 0;
  width: 1px; height: 34%;
  background: var(--gold);
  transform: translateX(-0.5px) scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* ---------------- pantheon ---------------- */
.pantheon { position: relative; padding: 22vh 44px 14vh; }
.spine {
  position: absolute; left: 50%; top: 0; bottom: 8vh;
  width: 1px; background: var(--gold);
  transform: translateX(-0.5px) scaleY(0);
  transform-origin: top;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 10vh; position: relative; z-index: 1;
}
.section-head .annotation { max-width: 30ch; text-align: right; flex-shrink: 0; }

.ghost {
  position: absolute; top: -34px; right: 14px;
  font-family: Marcellus, serif; font-size: 170px; line-height: 1;
  color: var(--ink); opacity: 0.05; pointer-events: none; user-select: none;
}
.cat { color: var(--gold); opacity: 1; margin-bottom: 14px; }
.spec { margin-top: 20px; opacity: 0.55; }

/* ---- god halls: alternating statue niche + deep copy ---- */
.god {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 1fr;
  gap: 5vw; align-items: center;
  margin-bottom: 24vh;
}
.god:nth-of-type(even) .god-niche { order: 2; }
.god-niche {
  position: relative; height: 84vh; min-height: 420px;
  background: radial-gradient(120% 90% at 50% 0%, oklch(19% 0.016 75), var(--alcove-2) 78%);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.god-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.god-canvas:active { cursor: grabbing; }
.god-niche .mark { color: var(--cream); }
.god-niche .panel-label.lt { top: 16px; left: 26px; right: 26px; }
.god-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  color: var(--cream); opacity: 0.4; pointer-events: none; white-space: nowrap;
}
.god-copy { position: relative; padding: 40px 0; }
.god-name { font-size: clamp(44px, 5.6vw, 92px); margin-bottom: 18px; }
.god-epithet {
  font-family: Marcellus, serif; font-size: clamp(18px, 1.6vw, 24px);
  color: var(--gold); margin-bottom: 26px; max-width: 40ch; line-height: 1.45;
}
.god-body { line-height: 1.65; opacity: 0.85; max-width: 52ch; margin-bottom: 18px; font-size: 16px; }
.god-specs { list-style: none; margin-top: 30px; border-top: 1px solid oklch(21% 0.012 80 / 0.2); max-width: 420px; }
.god-specs li {
  padding: 12px 2px;
  border-bottom: 1px solid oklch(21% 0.012 80 / 0.14);
  display: flex; align-items: center; gap: 10px;
}
.god-specs li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* ---------------- meander divider (greek key) ---------------- */
.meander {
  height: 13px; margin: 0 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='13' viewBox='0 0 16 13'%3E%3Cpath d='M1 12 L1 1 L13 1 L13 8 L6 8 L6 5 L10 5' fill='none' stroke='%231B1915' stroke-opacity='0.22' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ---------------- oracles ---------------- */
.oracles { padding: 20vh 44px 16vh; }
.steles {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.stele {
  position: relative;
  padding: 40px 26px 30px;
  border: 1px solid oklch(21% 0.012 80 / 0.16);
  border-radius: 14px 14px 4px 4px;   /* stele: rounded top, squared base */
  min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  cursor: default; will-change: transform;
  transition: border-color 0.35s;
}
.stele:hover { border-color: oklch(64% 0.115 84 / 0.55); }
.stele-name {
  font-family: Marcellus, serif;
  font-size: clamp(19px, 1.8vw, 26px);
  letter-spacing: 0.06em;
  /* letterpress: carved into the paper */
  color: color-mix(in oklch, var(--ink) 26%, var(--paper));
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.85), 0 -1px 0 oklch(21% 0.012 80 / 0.25);
  transition: color 0.35s, text-shadow 0.35s;
}
.stele:hover .stele-name { color: var(--ink); text-shadow: none; }
.stele-meta { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; color: var(--gold); }
.stele:hover .stele-meta { opacity: 1; transform: translateY(0); }
.oracle-note { margin-top: 8vh; max-width: 62ch; }

/* ---------------- feats carousel ---------------- */
.feats { overflow: hidden; }
.feats-head { padding: 4vh 44px 0; }
.track {
  display: flex; gap: 28px;
  padding: 8vh 44px 12vh;
  width: max-content;
  will-change: transform;
  cursor: grab;
}
.track:active { cursor: grabbing; }
.feat {
  position: relative;
  width: min(560px, 78vw);
  padding: 54px 46px 44px;
  background: var(--alcove);
  color: var(--cream);
  border-radius: var(--radius-panel);
  overflow: hidden;
  flex-shrink: 0;
  will-change: transform;
}
.feat .ghost { top: auto; bottom: -52px; right: 6px; color: var(--cream); opacity: 0.07; font-size: 210px; }
.feat h3 { font-family: Marcellus, serif; font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); margin-bottom: 16px; }
.feat p { line-height: 1.6; opacity: 0.85; max-width: 46ch; }
.feat .cat { color: var(--gold-bright); }
.feat .spec { color: var(--gold-bright); opacity: 0.75; }

/* ---------------- tiers ---------------- */
.tiers { padding: 20vh 44px 18vh; }
.tier-table { border-top: 1px solid oklch(21% 0.012 80 / 0.2); }
.tier-row {
  display: grid; grid-template-columns: 0.9fr 1fr 1fr 1fr; gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid oklch(21% 0.012 80 / 0.14);
  line-height: 1.5;
  transition: background 0.3s;
}
.tier-row:hover { background: oklch(64% 0.115 84 / 0.06); }
.tier-cell { font-size: 15px; }
.tier-head .tier-cell { display: flex; flex-direction: column; gap: 8px; }
.tier-name { font-family: Marcellus, serif; font-size: clamp(24px, 2.2vw, 34px); }
.tier-price { color: var(--gold); opacity: 1; }
.gold-col { position: relative; padding-left: 16px; }
.gold-col::before {
  content: ''; position: absolute; left: 0; top: -22px; bottom: -23px;
  width: 1px; background: var(--gold); opacity: 0.7;
}

/* ---------------- finale ---------------- */
.finale { padding: 6vh 44px 8vh; }
.finale-panel {
  position: relative; height: 88vh; min-height: 460px;
  background: radial-gradient(120% 90% at 50% 0%, oklch(19% 0.016 75), var(--alcove-2) 78%);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
#finale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.finale-copy {
  position: absolute; z-index: 2; left: 6%; bottom: 9%;
  display: grid; gap: 26px; justify-items: start;
  pointer-events: none;
}
.finale-copy .pill { pointer-events: auto; }
.finale-display { color: var(--cream); }

/* ---------------- footer ---------------- */
.footer { padding: 10vh 44px 6vh; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-fine { margin-top: 40px; opacity: 0.4; }
/* the footer credits and the legal links: the page has no global anchor style, so they set their own */
.footer-fine a, .footer-row a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.footer-fine a:hover, .footer-row a:hover { color: var(--gold); }

/* ---------------- persistent altitude pill ---------------- */
.alt-pill {
  position: fixed; z-index: 20; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  border: 1px solid oklch(21% 0.012 80 / 0.25);
  backdrop-filter: blur(8px);
  padding: 10px 20px; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}

/* ---------------- splittext mask ---------------- */
.split-line { overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-statement { display: none; }
  .nav-actions .pill:nth-child(2) { display: none; }
  .panel-label.rt { display: none; }
  .spine, .panel-spine { display: none; }
  .nav, .hero-head, .hero-stage, .pantheon, .oracles, .tiers, .finale, .footer { padding-left: 20px; padding-right: 20px; }
  .meander { margin: 0 20px; }
  .steles { grid-template-columns: repeat(2, 1fr); }
  .god { grid-template-columns: 1fr; gap: 28px; margin-bottom: 16vh; }
  .god:nth-of-type(even) .god-niche { order: 0; }
  .god-niche { height: 58vh; }
  .god-copy { padding: 0 4px; }
  .tier-row { grid-template-columns: 1fr; gap: 8px; }
  .gold-col::before { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .annotation { text-align: left; }
}

/* ---------------- legal pages (privacy, terms) ----------------
   Plain documents on the same marble: an index down the left, the text
   on the right. No three.js, no scroll rig -- they must always render. */

.legal-main { padding: 0 44px; max-width: 1440px; margin: 0 auto; }
.legal-head { padding: 12vh 0 0; display: grid; gap: 20px; max-width: 62ch; }
.legal-head .display { font-size: clamp(44px, 7vw, 96px); }
.legal-lede { font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; opacity: 0.78; max-width: 52ch; }

.legal-grid {
  display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.7fr);
  gap: 40px clamp(28px, 6vw, 110px); align-items: start;
  padding: 10vh 0 12vh;
}
.legal-index { position: sticky; top: 40px; }
.legal-index ol { list-style: none; display: grid; gap: 10px; counter-reset: part; }
.legal-index li { counter-increment: part; }
.legal-index a { color: var(--ink); opacity: 0.66; text-decoration: none; }
.legal-index a::before { content: counter(part, decimal-leading-zero) "  "; color: var(--gold); opacity: 1; white-space: pre; }
.legal-index a:hover { opacity: 1; }

.legal-body { display: grid; gap: 56px; }
.legal-part { border-top: 1px solid color-mix(in oklch, var(--ink) 16%, transparent); padding-top: 18px; display: grid; gap: 14px; scroll-margin-top: 40px; }
.legal-part h2 { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.legal-part p, .legal-part li { font-size: 16px; line-height: 1.65; opacity: 0.8; max-width: 64ch; }
.legal-part a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-list li::marker { color: var(--gold); }

.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal-table th {
  text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.55;
  padding: 0 16px 10px 0; border-bottom: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
}
.legal-table td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid color-mix(in oklch, var(--ink) 9%, transparent); opacity: 0.8; }
.legal-table td:first-child { opacity: 1; white-space: nowrap; }

.legal-foot {
  border-top: 1px solid color-mix(in oklch, var(--ink) 16%, transparent);
  padding: 26px 44px 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
}
.legal-foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }

@media (max-width: 860px) {
  .legal-main { padding: 0 22px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-index { position: static; }
  .legal-foot { padding: 26px 22px 40px; }
}
