:root {
  --abyss: #050807;
  --styx: #2dffb0;
  --dawn: #ffc46b;
  --divine: #fff8ec;
  --ichor: #ffd34d;
  --ink: #f3f1ea;
  --ink-muted: #a9b5af;
  --ink-dark: #1d1408;
  --ink-dark-muted: #5a4630;
  --mortal: #c9d3da;
  --hero: #f0a35a;
  --demigod: #b294ff;
  --immortal: #ffd34d;
  --display: 'Chakra Petch', system-ui, sans-serif;
  --body: 'Rajdhani', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; opacity: 0; transition: opacity 1.6s ease; }
#world.ready { opacity: 1; }
.spacer { height: 900vh; }

/* ---------- film fx ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx-vignette { z-index: 2; background: radial-gradient(ellipse at center, transparent 50%, rgb(0 0 0 / .55) 100%); }
.fx-scan {
  z-index: 3; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-grain {
  inset: -50%; z-index: 3; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.fx-flash { z-index: 4; background: radial-gradient(ellipse at center, #fffdf5 0%, #ffe9b8 60%, #ffd27a 100%); opacity: 0; }

/* ---------- loader: the hero wordmark, filling with light as the world loads ---------- */
.loader {
  --p: 0;
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 38% at 50% 100%, rgb(31 214 160 / .13), transparent 70%),
    linear-gradient(180deg, #020403 0%, #040908 55%, #061310 100%);
  transition: --p .9s cubic-bezier(.3, .7, .2, 1), opacity 1.2s ease, visibility 0s linear 1.2s;
}
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mist { position: absolute; left: -20%; right: -20%; bottom: 8%; height: 40%; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 30% 40% at 30% 60%, rgb(160 230 210 / .08), transparent 70%), radial-gradient(ellipse 34% 36% at 72% 50%, rgb(160 230 210 / .07), transparent 70%);
  animation: mist 18s ease-in-out infinite alternate; }
@keyframes mist { to { transform: translateX(8%); } }
.loader-word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; }
.loader-word .wordmark { display: block; }
.lw-ghost { color: rgb(239 255 248 / .035); -webkit-text-stroke: 1px rgb(150 255 215 / .16); }
/* the lit copy rises like water: a feathered mask, its box padded so the glow is never cropped */
.lw-fill { position: absolute; left: 0; right: 0; top: -.4em; bottom: -.4em; padding-top: .4em;
  -webkit-mask-image: linear-gradient(to top, #000 calc(18% + var(--p) * 74% - 6%), transparent calc(18% + var(--p) * 74% + 6%));
  mask-image: linear-gradient(to top, #000 calc(18% + var(--p) * 74% - 6%), transparent calc(18% + var(--p) * 74% + 6%)); }
.loader-meta { position: absolute; left: 26px; right: 26px; bottom: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
  font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.loader-meta .loader-msg { color: #dff7ee; }
.loader-pct { justify-self: end; color: var(--styx); font-variant-numeric: tabular-nums; }
.loader-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgb(255 255 255 / .06); }
.loader-line i { display: block; height: 100%; background: var(--styx); box-shadow: 0 0 12px var(--styx); transform-origin: left; transform: scaleX(var(--p)); }
.loader-embers i { position: absolute; left: var(--x); bottom: -10px; width: calc(2px * var(--s)); height: calc(2px * var(--s)); border-radius: 50%;
  background: #d9fff0; box-shadow: 0 0 6px 1px rgb(45 255 176 / .6); opacity: 0; animation: rise 9s linear var(--d) infinite; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translate3d(calc(16px * var(--s)), -75vh, 0); opacity: 0; } }
@media (max-width: 760px) { .loader-meta { left: 16px; right: 16px; grid-template-columns: 1fr auto; } .loader-meta > span:first-child { display: none; } }
@keyframes breathe { 50% { transform: scale(.82); opacity: .6; } }

/* ---------- glass ---------- */
.glass {
  background: rgb(10 14 14 / .34);
  backdrop-filter: blur(12px) saturate(1.7) brightness(.85);
  -webkit-backdrop-filter: blur(12px) saturate(1.7) brightness(.85);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 30px rgb(0 0 0 / .22);
  border-radius: 999px;
  transition: background .6s ease, border-color .6s ease, color .6s ease;
}
body.bright .glass { background: rgb(255 250 238 / .42); border-color: rgb(80 50 10 / .16); color: var(--ink-dark); }

/* ---------- top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  transition: color .6s ease;
}
body.bright .top { color: var(--ink-dark); }
/* logo: S◯ULS, the O is the ring the soul becomes at the end */
.logo { --glow: 45 255 176; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; font-family: var(--display); line-height: 1; transition: color .6s; }
.logo small { font-size: 8.5px; font-weight: 600; letter-spacing: .56em; text-transform: uppercase; opacity: .72; padding-left: .1em; }
.logo b { display: flex; align-items: center; font-size: 22px; font-weight: 700; letter-spacing: .05em; color: #f2fff9;
  text-shadow: 0 0 8px rgb(var(--glow) / .55), 0 0 26px rgb(var(--glow) / .3); transition: color .6s, text-shadow .6s; }
.logo b i { width: .64em; height: .64em; margin: 0 .07em 0 .09em; border-radius: 50%; border: .12em solid currentColor; flex: none;
  box-shadow: 0 0 8px rgb(var(--glow) / .9), inset 0 0 6px rgb(var(--glow) / .7); transition: box-shadow .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.logo:hover b i { transform: scale(1.18); box-shadow: 0 0 14px rgb(var(--glow) / 1), inset 0 0 9px rgb(var(--glow) / .9); }
body.gold .logo { --glow: 255 190 90; }
body.gold .logo b { color: #fff8ec; }
body.bright .logo { --glow: 255 170 60; }
body.bright .logo b { color: #2a1a05; text-shadow: 0 0 14px rgb(255 220 150 / .7); }
.nav { display: flex; gap: 2px; padding: 4px; }
.nav button { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; transition: background .3s; }
.nav button:hover { background: rgb(255 255 255 / .1); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; color: inherit; }

/* ---------- rail ---------- */
.rail { position: fixed; right: 30px; top: 140px; bottom: 140px; width: 1px; background: rgb(255 255 255 / .14); z-index: 6; }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: currentColor; color: var(--styx); box-shadow: 0 0 10px currentColor; transition: color .6s; }
body.bright .rail { background: rgb(60 40 10 / .18); }
body.bright .rail-fill, body.gold .rail-fill { color: #e09a2a; }

/* ---------- panels ---------- */
.panels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.panel small { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

.wordmark {
  font-family: var(--display); font-weight: 700; line-height: .8;
  font-size: clamp(110px, 25vw, 420px); letter-spacing: -.01em;
  user-select: none;
}
.wordmark.styx {
  color: #effff8;
  text-shadow: 0 0 10px rgb(45 255 176 / .8), 0 0 40px rgb(45 255 176 / .45), 0 0 120px rgb(31 214 160 / .35), 0 0 220px rgb(31 214 160 / .2);
}
.wordmark.divine {
  color: #fffaf0;
  text-shadow: 0 0 10px rgb(255 210 120 / .8), 0 0 40px rgb(255 190 90 / .45), 0 0 140px rgb(255 140 200 / .25);
}

.hero .meta {
  position: absolute; top: 76px; left: 26px; right: 66px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hero .meta div { display: flex; flex-direction: column; gap: 2px; }
.hero .meta .r { text-align: right; }
.hero .meta span { font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.hero .meta b { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero .wordmark { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; }
.hero .tag { position: absolute; left: 0; right: 0; top: calc(50% + 12vw); text-align: center; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .06em; color: #cfeee2; text-shadow: 0 2px 20px rgb(0 0 0 / .8); }
.hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint span { font-family: var(--display); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.hint i { width: 1px; height: 46px; background: linear-gradient(var(--styx), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.statement { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 0 26px 140px; max-width: 760px; }
.statement.right { left: auto; right: 66px; text-align: right; align-items: flex-end; }
.statement.center { max-width: none; align-items: center; justify-content: center; text-align: center; padding-bottom: 0; }
.statement h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.2vw, 84px); line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 4px rgb(0 0 0 / .35), 0 4px 40px rgb(0 0 0 / .65); }
.statement p { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.38; font-weight: 600; color: #fbf8f1; max-width: 520px; text-shadow: 0 1px 2px rgb(0 0 0 / .55), 0 2px 18px rgb(0 0 0 / .75); }
/* a soft pool of shade behind the words, so they read over bright skies */
.statement::before { content: ''; position: absolute; z-index: -1; pointer-events: none; bottom: 40px; left: -140px; width: min(1000px, 95vw); height: 520px;
  background: radial-gradient(closest-side, rgb(8 8 16 / .6), rgb(8 8 16 / .42) 30%, rgb(8 8 16 / .2) 62%, rgb(8 8 16 / .06) 85%, transparent); }
.statement.right::before { left: auto; right: -140px; }
.statement.center::before { left: 50%; top: 50%; bottom: auto; width: min(1100px, 100vw); height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(14 8 4 / .6), rgb(14 8 4 / .42) 30%, rgb(14 8 4 / .2) 62%, rgb(14 8 4 / .06) 85%, transparent); }
.statement.center h2 { text-shadow: 0 2px 4px rgb(40 20 0 / .45), 0 4px 40px rgb(30 12 0 / .7); }

.title { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.4vw, 104px); letter-spacing: -.015em; line-height: .95; }

.gates { color: var(--ink-dark); padding: 92px 26px 120px 26px; display: flex; flex-direction: column; justify-content: space-between; }
.gates .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-right: 40px; }
.gates .num {
  font-family: var(--display); font-weight: 700; font-size: clamp(60px, 8.6vw, 170px); line-height: .9; letter-spacing: -.03em;
  margin: 8px 0 14px;
  text-shadow: 0 0 22px rgb(255 160 60 / .55), 0 0 70px rgb(255 120 80 / .25);
}
.gates h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 30px); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; margin-bottom: 8px; }
.gates p { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; color: var(--ink-dark-muted); max-width: 360px; font-weight: 600; }

.pantheon { padding: 92px 66px 120px 26px; display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.pantheon .title { color: #fff6e4; text-shadow: 0 0 40px rgb(120 60 0 / .45); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  position: relative; border-radius: 22px; padding: 22px 22px 20px;
  background: rgb(18 12 6 / .42);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid rgb(255 255 255 / .16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 20px 50px rgb(60 30 0 / .3);
  overflow: hidden;
}
.tier::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); box-shadow: 0 0 24px 4px var(--c); }
.tier::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.tier small { color: var(--c); opacity: 1; }
.tier h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.4vw, 38px); margin: 4px 0 18px; color: #fff; text-shadow: 0 0 24px var(--c); }
.tier dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.tier dt { color: #d9cdb8; text-transform: uppercase; font-family: var(--display); font-size: 11px; letter-spacing: .14em; align-self: center; }
.tier dd { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.formula { font-family: var(--display); font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .08em; color: #fff3dc; text-shadow: 0 2px 14px rgb(80 40 0 / .6); }

.mint-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 80px 16px 70px; }
.closing .gap { display: block; width: clamp(70px, 11vh, 112px); aspect-ratio: 1; flex: none; }
.closing .tag { position: absolute; left: 26px; bottom: 34px; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e7e2ff; }

/* ---------- dock ---------- */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10; }
.ca { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.ca span { opacity: .6; }
.ca code { font-family: var(--display); }
.ca button {
  font-family: var(--display); font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: #111; cursor: not-allowed;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .3), 0 0 22px rgb(45 255 176 / .35);
}
.ca button i { font-style: normal; color: #18b47e; margin-left: 4px; }
.sound { position: fixed; right: 18px; bottom: 18px; z-index: 10; }
.sound .bars { display: none; }
.sound[aria-pressed='true'] .bars { display: block; animation: pulse 1.2s ease-in-out infinite; }
.sound[aria-pressed='true'] .play { display: none; }
@keyframes pulse { 50% { opacity: .5; } }
body.bright .top, body.bright .sound { color: var(--ink-dark); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .top { padding: 14px 16px; }
  .nav button { padding: 7px 9px; font-size: 10px; letter-spacing: .08em; }
  .logo { font-size: 11px; }
  .rail { display: none; }
  .hero .meta { left: 16px; right: 16px; grid-template-columns: repeat(2, 1fr); row-gap: 14px; top: 70px; }
  .hero .meta div:nth-child(2n) { text-align: right; }
  .hero .tag { top: calc(50% + 22vw); padding: 0 16px; }
  .statement { padding: 0 16px 120px; }
  .statement.right { right: 0; }
  .gates { padding: 80px 16px 100px; justify-content: center; gap: 22px; }
  .gates .nums { grid-template-columns: 1fr; gap: 18px; padding-right: 0; }
  .gates .num { font-size: 64px; margin: 2px 0 6px; }
  .gates p { display: none; }
  .pantheon { padding: 80px 16px 100px; gap: 20px; }
  .tiers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tier { padding: 16px; border-radius: 16px; }
  .tier h3 { margin-bottom: 10px; }
  .closing .tag { left: 16px; right: 16px; bottom: 80px; text-align: center; }
  .ca { font-size: 10px; }
}

/* ---------- tier sample souls + gallery link ---------- */
.tier { padding-top: 14px; }
.tier .tier-soul { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 14px; border: 1px solid rgb(255 255 255 / .14); box-shadow: 0 10px 30px -12px var(--c); }
.explore { pointer-events: auto; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #1d1408; text-decoration: none; padding: 12px 20px; border-radius: 999px; background: linear-gradient(135deg, #ffe7b0, #ffc65c); box-shadow: 0 10px 30px -10px rgb(255 190 90 / .7); transition: transform .2s; }
.explore:hover { transform: translateY(-2px); }
.explore i { font-style: normal; margin-left: 6px; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; color: inherit; text-decoration: none; transition: background .3s; }
.nav a:hover { background: rgb(255 255 255 / .1); }
@media (max-width: 760px) { .tier .tier-soul { margin-bottom: 8px; } .pantheon .tiers { gap: 8px; } .tier dl { font-size: 13px; } }
.ca .ca-go { pointer-events: auto; font-family: var(--display); font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #111; text-decoration: none; box-shadow: 0 0 0 1px rgb(255 255 255 / .3), 0 0 22px rgb(45 255 176 / .35); }
.ca .ca-go i { font-style: normal; color: #18b47e; margin-left: 4px; }
