/* ==========================================================================
   Living Atlas — ported verbatim from the approved prototype's globals.css.
   ONLY change: url(/assets/...) -> url(...) so paths resolve relative to this
   file inside the theme. Do not reformat or minify — mask-image, clip-path and
   backdrop-filter in here are load-bearing.
   ========================================================================== */
@import "tailwindcss";

@font-face {
  font-family: "TLC Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "TLC Marcellus";
  src: url("fonts/marcellus-400-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TLC Garamond";
  src: url("fonts/ebgaramond-400-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TLC Garamond";
  src: url("fonts/ebgaramond-400-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #07090a;
  --ink-soft: #0d1112;
  --ink-glass: rgba(7, 10, 11, 0.78);
  --bone: #eee9df;
  --bone-dim: #b9b3aa;
  --gold: #c0a466;
  --gold-pale: #e4cf98;
  --gold-dark: #6c5a34;
  --cyan: #78d4ed;
  --cyan-soft: rgba(120, 212, 237, 0.16);
  --vermilion: #b54a3b;
  --line: rgba(212, 191, 137, 0.21);
  --page: min(1420px, calc(100vw - 112px));
  --header-height: 88px;
  --rail-width: 94px;
  --frame-gutter: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: "TLC Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--ink);
  background: var(--gold-pale);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(97, 158, 177, 0.06), transparent 32%),
    var(--ink);
}

.site-shell::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(117deg, transparent 0 3px, rgba(255,255,255,.5) 4px 4.5px, transparent 5px 9px),
    repeating-linear-gradient(32deg, transparent 0 7px, rgba(255,255,255,.22) 8px 8.5px, transparent 9px 13px);
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 12px rgba(120, 212, 237, 0.5);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: var(--frame-gutter);
  right: var(--frame-gutter);
  left: var(--frame-gutter);
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: center;
  width: auto;
  height: var(--header-height);
  padding: 0 38px 0 calc(var(--rail-width) + 132px);
  border: 1px solid rgba(212,191,137,.12);
  border-bottom-color: rgba(212,191,137,.24);
  border-radius: 18px 18px 0 0;
  background: rgba(4,8,9,.9);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: inset 350ms ease, height 350ms ease, padding 350ms ease, border-radius 350ms ease, background 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
}

.site-header.is-scrolled {
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  padding-left: 188px;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(6, 9, 10, 0.82);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand {
  position: absolute;
  top: -5px;
  left: calc(var(--rail-width) + 20px);
  display: flex;
  align-items: center;
  width: 138px;
  height: 112px;
  overflow: visible;
  transition: top 350ms ease, left 350ms ease, width 350ms ease, height 350ms ease;
}

.brand img {
  width: 132px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.6));
  transition: transform 300ms ease;
}

.site-header.is-scrolled .brand {
  top: -4px;
  left: 42px;
  width: 110px;
  height: 78px;
}

.site-header.is-scrolled .brand img {
  width: 104px;
  height: 78px;
}

.brand:hover img {
  transform: scale(1.035);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 3.2vw, 58px);
}

.site-header nav a,
.account-link {
  position: relative;
  padding: 12px 0;
  color: rgba(239, 234, 224, 0.76);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 280ms ease;
}

.site-header nav a + a::before {
  position: absolute;
  top: 50%;
  left: clamp(-31px, -1.65vw, -20px);
  width: 5px;
  height: 5px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(192,164,102,.52);
}

.site-header nav a:hover,
.account-link:hover {
  color: var(--bone);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.menu-toggle {
  display: none;
}

/* Shared */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid;
  color: var(--bone);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 0 24px;
  font-size: 10px;
}

.button-gold {
  border-color: rgba(229, 207, 152, 0.78);
  color: #16130d;
  background: linear-gradient(135deg, #e7d5aa, #ae8f4d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), 0 12px 34px rgba(147, 114, 52, 0.19);
}

.button-gold:hover {
  color: #060606;
  background: linear-gradient(135deg, #f0dfb4, #c8a966);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32), 0 15px 44px rgba(195, 159, 84, 0.31);
}

.button-cyan {
  border-color: rgba(120, 212, 237, 0.8);
  background: rgba(5, 21, 26, 0.63);
  box-shadow: inset 0 0 18px rgba(120, 212, 237, 0.07), 0 0 24px rgba(57, 181, 215, 0.14);
}

.button-cyan:hover {
  color: #071114;
  background: var(--cyan);
  box-shadow: 0 0 36px rgba(120, 212, 237, 0.34);
}

.button-cyan span,
.text-link span {
  margin-left: 12px;
  font-size: 15px;
}

.button-red {
  border-color: rgba(213, 91, 73, 0.75);
  background: rgba(121, 34, 27, 0.56);
  box-shadow: inset 0 0 20px rgba(230, 83, 61, 0.08), 0 16px 36px rgba(58, 9, 4, 0.25);
}

.button-red:hover {
  background: #9f3a2c;
  box-shadow: 0 0 34px rgba(181, 74, 59, 0.35);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: rgba(238, 233, 224, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.text-link i {
  display: grid;
  width: 32px;
  height: 32px;
  margin-right: 11px;
  place-items: center;
  border: 1px solid rgba(238, 233, 224, 0.28);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.text-link:hover,
.text-link.gold {
  color: var(--gold-pale);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.eyebrow.red {
  color: #d66b5b;
}

.section-mark {
  position: absolute;
  z-index: 5;
  top: 170px;
  left: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-mark i {
  width: 1px;
  height: 64px;
  margin: 13px 0;
  background: linear-gradient(var(--gold), transparent);
}

.section-mark small {
  color: rgba(238, 233, 224, 0.5);
  font-size: 8px;
  letter-spacing: 0.26em;
  writing-mode: vertical-rl;
}

.section-intro {
  width: min(800px, calc(100% - 80px));
  margin: 0 auto 70px;
  text-align: center;
}

.section-intro h2,
.chronicle-heading h2 {
  margin: 0;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.section-intro > p:last-child {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--bone-dim);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.55;
}

.section-dark {
  position: relative;
  background:
    radial-gradient(circle at 72% 20%, rgba(120, 212, 237, 0.055), transparent 28%),
    linear-gradient(180deg, #07090a, #0c1011 52%, #07090a);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.opening-spread {
  position: relative;
  margin: var(--frame-gutter) var(--frame-gutter) 0;
  overflow: hidden;
  border: 1px solid rgba(212,191,137,.12);
  border-radius: 18px 18px 0 0;
  background: var(--ink);
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
}

.hero {
  position: relative;
  display: flex;
  width: calc(100% - var(--rail-width));
  min-height: clamp(660px, 70svh, 860px);
  margin-left: var(--rail-width);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-ink,
.hero-contours {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  transform: scale(1.035);
  background-image: url("realms/jina.jpg");
  background-position: center;
  background-size: cover;
  animation: hero-breathe 24s ease-in-out infinite alternate;
}

.hero-ink {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.98) 0%, rgba(4, 7, 8, 0.84) 28%, rgba(4, 7, 8, 0.25) 60%, rgba(4, 7, 8, 0.1) 80%),
    linear-gradient(180deg, rgba(2, 4, 5, 0.55) 0%, transparent 28%, transparent 66%, rgba(3, 6, 7, 0.94) 100%);
}

.hero-contours {
  z-index: -2;
  width: 54vw;
  height: 70vw;
  top: 8%;
  left: -19%;
  opacity: 0.22;
  border-radius: 48%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 31px, rgba(192,164,102,.22) 32px 33px, transparent 34px 52px);
  transform: rotate(-18deg);
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

@keyframes hero-breathe {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(-1.2%, -0.7%, 0); }
}

.chapter-rail {
  position: absolute;
  z-index: 6;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--rail-width);
  padding-top: 88px;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid rgba(212,191,137,.24);
  background: linear-gradient(180deg, rgba(3,7,8,.98), rgba(3,7,8,.88) 46%, rgba(3,7,8,.97));
}

.chapter-rail::before {
  position: absolute;
  z-index: -1;
  top: 36px;
  right: -1px;
  bottom: 42px;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(192,164,102,.55) 18%, rgba(192,164,102,.55) 82%, transparent);
}

.chapter-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 0 10px;
  flex-direction: column;
  color: rgba(238, 233, 224, 0.38);
  text-align: center;
  transition: color 200ms ease;
}

.chapter-rail a::before {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid currentColor;
  background: var(--ink);
}

.chapter-rail a b {
  display: block;
  color: var(--gold);
  font-family: "TLC Marcellus", serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .08em;
}

.chapter-rail a span {
  margin-top: 4px;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chapter-rail a.active,
.chapter-rail a:hover {
  color: var(--gold-pale);
}

.chapter-rail a.active::before {
  border-color: var(--gold-pale);
  background: var(--gold);
  box-shadow: 0 0 13px rgba(192,164,102,0.75);
}

.chapter-sigil {
  position: absolute;
  right: 22px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .75;
  filter: sepia(.45) saturate(1.35) drop-shadow(0 0 12px rgba(192,164,102,.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(730px, 48vw);
  margin-top: 48px;
  margin-left: clamp(74px, 9vw, 180px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  color: var(--bone);
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(62px, 6.5vw, 104px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.93;
  text-shadow: 0 10px 40px rgba(0,0,0,.42);
}

.hero-copy {
  max-width: 550px;
  margin: 32px 0 36px;
  color: rgba(238, 233, 224, 0.72);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 38px;
  display: flex;
  gap: 44px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  padding-left: 17px;
  border-left: 1px solid rgba(238, 233, 224, 0.23);
}

.hero-meta span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.hero-meta b {
  margin-top: 4px;
  color: rgba(238, 233, 224, 0.72);
  font-size: 11px;
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(238, 233, 224, 0.55);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 33px;
  background: linear-gradient(var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(.45); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.hero-slash {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(180deg, #080b0c, #090c0d);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-slash::before {
  position: absolute;
  top: 72px;
  left: -2%;
  width: 105%;
  height: 1px;
  content: "";
  transform: rotate(-2.35deg);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), rgba(192,164,102,.16));
  box-shadow: 0 0 10px rgba(192,164,102,.16);
}

/* Atlas */
.atlas {
  width: calc(100% - var(--rail-width));
  margin-left: var(--rail-width);
  padding: 106px 0 130px;
}

.opening-spread .section-mark {
  display: none;
}

.atlas > .section-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.atlas-frame {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.5fr);
  width: calc(100% - 72px);
  min-height: 700px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 11, 0.55);
}

.atlas-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.atlas-copy {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  padding: 66px 58px 145px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(15,19,20,.95), rgba(6,9,10,.96)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(192,164,102,.025) 19px 20px);
}

.realm-number {
  position: absolute;
  top: 38px;
  right: 38px;
  color: rgba(192,164,102,.24);
  font-family: "TLC Marcellus", serif;
  font-size: 76px;
  line-height: 1;
}

.realm-tone {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.atlas-copy h3 {
  margin: 0;
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(50px, 4.7vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.atlas-copy h4 {
  margin: 10px 0 32px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.realm-description {
  max-width: 410px;
  margin: 0 0 34px;
  color: var(--bone-dim);
  font-family: "TLC Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
}

.realm-coordinate {
  display: flex;
  width: 100%;
  margin-bottom: 32px;
  padding-top: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.realm-coordinate span,
.realm-coordinate b {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.realm-coordinate span { color: rgba(238,233,224,.4); }
.realm-coordinate b { color: rgba(238,233,224,.72); }

.atlas-visual {
  position: relative;
  min-width: 0;
  min-height: 700px;
  overflow: hidden;
}

.realm-image,
.realm-shade {
  position: absolute;
  inset: 0;
}

.realm-image {
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: background-image 500ms ease, transform 8s ease;
}

.atlas-frame:hover .realm-image {
  transform: scale(1.055);
}

.realm-shade {
  background:
    linear-gradient(90deg, rgba(3,7,8,.92) 0%, rgba(3,7,8,.72) 25%, rgba(3,7,8,.16) 64%, rgba(3,7,8,.03) 100%),
    linear-gradient(180deg, rgba(3,6,7,.04) 35%, rgba(3,6,7,.78) 100%);
}

.map-lines {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: -7%;
  width: 74%;
  height: 84%;
  opacity: .46;
  background: url("maps/atlas-topography.png") center / contain no-repeat;
  filter: sepia(1) saturate(.55) brightness(.72) drop-shadow(0 0 6px rgba(208,170,94,.12));
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 72%, rgba(0,0,0,.55) 85%, transparent 100%);
}

.map-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(228,207,152,.7);
  border-radius: 50%;
  color: var(--gold-pale);
  background: rgba(4,9,10,.66);
  box-shadow: 0 0 0 8px rgba(192,164,102,.08);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.map-pin span {
  font-family: "TLC Marcellus", serif;
  font-size: 13px;
}

.map-pin:hover {
  transform: scale(1.1);
  border-color: var(--cyan);
}

.map-pin.is-active {
  border-color: var(--cyan);
  color: #dff8ff;
  box-shadow: 0 0 0 8px rgba(120,212,237,.12), 0 0 28px rgba(120,212,237,.55);
}

.map-pin.is-active::before {
  position: absolute;
  inset: -17px;
  content: "";
  border: 1px solid rgba(120,212,237,.28);
  border-radius: 50%;
  animation: pin-wave 2.4s ease-out infinite;
}

@keyframes pin-wave {
  0% { transform: scale(.7); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.pin-one { top: 43%; left: 31%; }
.pin-two { top: 22%; left: 64%; }
.pin-three { top: 61%; left: 58%; }
.pin-four { top: 70%; right: 12%; }

.realm-tabs {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 100px;
  border-top: 1px solid var(--line);
  background: rgba(4,7,8,.86);
  backdrop-filter: blur(18px);
}

.realm-tabs button {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 12px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  color: rgba(238,233,224,.56);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 200ms ease, background 200ms ease;
}

.realm-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--cyan);
  transition: transform 220ms ease;
}

.realm-tabs button > span {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 250ms ease;
}

.realm-tabs button > span::after { content: none; }

.realm-tabs button small {
  position: relative;
  color: var(--gold);
  font-family: "TLC Marcellus", serif;
  font-size: 10px;
}

.realm-tabs button b {
  position: relative;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.realm-tabs button:hover,
.realm-tabs button.is-active {
  color: var(--bone);
  background: rgba(120,212,237,.035);
}

.realm-tabs button.is-active::after { transform: scaleX(1); }
.realm-tabs button.is-active > span { opacity: .16; }

.world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1000px, calc(100vw - 80px));
  margin: 80px auto 0;
}

.world-stats div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.world-stats div:last-child { border-right: 0; }

.world-stats strong {
  color: var(--gold-pale);
  font-family: "TLC Marcellus", serif;
  font-size: 44px;
  font-weight: 400;
}

.world-stats span {
  max-width: 110px;
  color: rgba(238,233,224,.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Gods */
.gods {
  position: relative;
  min-height: 1100px;
  padding: 160px 0 130px;
  overflow: hidden;
  background: #0b0c0d;
  isolation: isolate;
}

.gods-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: .42;
  background-image: url("realms/arena-durga.jpg");
  background-position: center;
  background-size: cover;
}

.gods::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 58%, rgba(214,160,65,.15), transparent 25%),
    radial-gradient(circle at 50% 55%, rgba(181,74,59,.13), transparent 23%),
    radial-gradient(circle at 82% 58%, rgba(95,173,231,.15), transparent 25%),
    linear-gradient(180deg, rgba(6,8,9,.97) 0%, rgba(6,8,9,.63) 35%, rgba(6,8,9,.72) 72%, #060809 100%);
}

.gods::after {
  position: absolute;
  z-index: -1;
  top: 160px;
  left: 50%;
  width: 780px;
  height: 780px;
  content: "";
  transform: translateX(-50%);
  opacity: .2;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(192,164,102,.18) 0deg 1deg, transparent 1deg 15deg);
  mask-image: radial-gradient(circle, transparent 28%, black 29% 30%, transparent 31% 40%, black 41% 42%, transparent 43% 53%, black 54% 54.5%, transparent 55%);
}

.god-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  min-height: 570px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.god-panel {
  --god-color: var(--gold);
  position: relative;
  display: flex;
  min-width: 0;
  padding: 56px 28px 45px;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  transition: background 400ms ease;
}

.god-panel:last-child { border-right: 0; }
.god-panel.brahma { --god-color: #d6a041; }
.god-panel.vishnu { --god-color: #cf5a49; }
.god-panel.shiva { --god-color: #69b9ee; }

.god-panel:hover {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--god-color) 10%, transparent));
}

.god-aura {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 270px;
  height: 270px;
  transform: translateX(-50%);
  opacity: .42;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--god-color) 18%, transparent) 0 20%, transparent 58%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--god-color) 22%, transparent) 0deg .5deg, transparent .5deg 18deg);
  mask-image: radial-gradient(circle, #000 0 58%, transparent 72%);
  transition: opacity 300ms ease, transform 500ms ease;
}

.god-aura::before,
.god-aura::after {
  position: absolute;
  content: "";
  border: 1px solid color-mix(in srgb, var(--god-color) 30%, transparent);
  border-radius: 50%;
}

.god-aura::before {
  inset: 31px;
  box-shadow: 0 0 32px color-mix(in srgb, var(--god-color) 13%, transparent), inset 0 0 28px color-mix(in srgb, var(--god-color) 8%, transparent);
}

.god-aura::after {
  inset: 57px;
  opacity: .5;
}

.god-panel:hover .god-aura {
  transform: translateX(-50%) scale(1.08) rotate(3deg);
  opacity: .65;
}

.god-index {
  position: absolute;
  top: 24px;
  right: 25px;
  color: color-mix(in srgb, var(--god-color) 60%, transparent);
  font-family: "TLC Marcellus", serif;
  font-size: 13px;
}

.god-panel > img {
  position: relative;
  z-index: 1;
  width: min(246px, 66%);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter:
    drop-shadow(0 2px 1px rgba(255,255,255,.14))
    drop-shadow(0 0 9px color-mix(in srgb, var(--god-color) 24%, transparent))
    drop-shadow(0 18px 24px rgba(0,0,0,.72));
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.god-panel:hover > img {
  transform: translateY(-5px) scale(1.025);
  filter:
    drop-shadow(0 2px 1px rgba(255,255,255,.18))
    drop-shadow(0 0 13px color-mix(in srgb, var(--god-color) 34%, transparent))
    drop-shadow(0 22px 31px rgba(0,0,0,.75));
}

.god-panel > p {
  margin: 28px 0 6px;
  color: var(--god-color);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.god-panel h3 {
  margin: 0;
  font-family: "TLC Marcellus", serif;
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.god-panel h4 {
  margin: 2px 0 22px;
  color: rgba(238,233,224,.52);
  font-family: "TLC Garamond", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
}

.god-reveal {
  max-width: 340px;
}

.god-reveal p {
  min-height: 74px;
  margin: 0 0 18px;
  color: rgba(238,233,224,.58);
  font-family: "TLC Garamond", serif;
  font-size: 16px;
  line-height: 1.5;
}

.god-reveal a {
  color: var(--god-color);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.god-reveal a span { margin-left: 8px; }

.oath-note {
  margin: 38px 0 0;
  color: rgba(238,233,224,.38);
  font-family: "TLC Garamond", serif;
  font-size: 16px;
  font-style: italic;
  text-align: center;
}

/* Kruma */
.kruma {
  position: relative;
  display: grid;
  min-height: 930px;
  padding: 150px max(7vw, 90px);
  grid-template-columns: 1.1fr .75fr;
  align-items: center;
  gap: 100px;
  overflow: hidden;
  border-top: 1px solid rgba(181,74,59,.35);
  border-bottom: 1px solid rgba(181,74,59,.25);
  isolation: isolate;
}

.kruma-bg,
.kruma-overlay {
  position: absolute;
  inset: 0;
}

.kruma-bg {
  z-index: -3;
  transform: scale(1.04);
  background-image: url("realms/worldbattle.jpg");
  background-position: center;
  background-size: cover;
}

.kruma-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,7,8,.96) 0%, rgba(5,7,8,.72) 46%, rgba(5,7,8,.3) 73%, rgba(5,7,8,.68) 100%),
    linear-gradient(180deg, rgba(6,8,9,.76), transparent 30%, rgba(6,8,9,.72));
}

.kruma-content {
  max-width: 700px;
}

.kruma-content h2 {
  margin: 0;
  font-family: "TLC Marcellus", Georgia, serif;
  font-size: clamp(58px, 6vw, 94px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.kruma-content > p:not(.eyebrow) {
  max-width: 580px;
  margin: 30px 0 36px;
  color: rgba(238,233,224,.7);
  font-family: "TLC Garamond", serif;
  font-size: 22px;
  line-height: 1.5;
}

.kruma-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.war-status {
  width: min(460px, 100%);
  justify-self: end;
  padding: 34px 34px 30px;
  border-top: 1px solid rgba(213,91,73,.5);
  border-bottom: 1px solid rgba(213,91,73,.22);
  background: rgba(5,8,9,.66);
  backdrop-filter: blur(16px);
}

.status-title {
  display: flex;
  margin-bottom: 30px;
  align-items: center;
  color: rgba(238,233,224,.72);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 11px;
  border-radius: 50%;
  background: #e15947;
  box-shadow: 0 0 12px #e15947;
  animation: live-pulse 1.7s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

.faction {
  --faction: var(--gold);
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.faction.vishnu { --faction: #d95b4b; }
.faction.shiva { --faction: #69b9ee; }

.faction > span,
.faction > strong {
  color: rgba(238,233,224,.7);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.faction > strong { color: var(--faction); text-align: right; }

.faction > i {
  height: 2px;
  background: rgba(238,233,224,.12);
}

.faction > i b {
  display: block;
  height: 100%;
  background: var(--faction);
  box-shadow: 0 0 10px color-mix(in srgb, var(--faction) 60%, transparent);
}

.war-status > small {
  display: block;
  margin-top: 26px;
  color: rgba(238,233,224,.34);
  font-family: "TLC Garamond", serif;
  font-size: 14px;
  font-style: italic;
}

/* Tribes */
.tribes {
  padding: 160px 0 150px;
}

.tribe-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(440px, .92fr);
  width: var(--page);
  margin: 0 auto;
  align-items: center;
  column-gap: 70px;
}

.tribe-copy {
  align-self: center;
}

.tribe-copy h2 {
  margin: 0;
  font-family: "TLC Marcellus", serif;
  font-size: clamp(54px, 5vw, 80px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.tribe-copy > p:not(.eyebrow) {
  max-width: 550px;
  margin: 30px 0 46px;
  color: var(--bone-dim);
  font-family: "TLC Garamond", serif;
  font-size: 21px;
  line-height: 1.5;
}

.selected-tribe {
  max-width: 470px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.selected-tribe > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.selected-tribe h3 {
  margin: 6px 0 10px;
  font-family: "TLC Marcellus", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.selected-tribe div {
  display: flex;
  gap: 18px;
  color: rgba(238,233,224,.55);
  font-family: "TLC Garamond", serif;
  font-size: 16px;
}

.selected-tribe div b { color: var(--cyan); font-weight: 400; }
.selected-tribe div i { font-style: italic; }

.tribe-portrait {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: center;
  overflow: hidden;
}

.tribe-portrait::before,
.tribe-portrait::after,
.portrait-ring {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.tribe-portrait::before {
  width: 500px;
  height: 500px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(120,212,237,.105), rgba(120,212,237,.02) 48%, transparent 69%),
    linear-gradient(180deg, rgba(120,212,237,.025), transparent 64%);
  box-shadow: inset 0 0 80px rgba(120,212,237,.025);
}

.tribe-portrait::after {
  width: 620px;
  height: 620px;
  opacity: .4;
  background: repeating-conic-gradient(from 0deg, var(--line) 0deg .6deg, transparent .6deg 12deg);
  mask-image: radial-gradient(circle, transparent 55%, black 56% 57%, transparent 58% 68%, black 69% 69.5%, transparent 70%);
  animation: ring-turn 80s linear infinite;
}

.portrait-ring {
  width: min(432px, 82vw);
  height: min(432px, 82vw);
  border: 1px solid rgba(120,212,237,.28);
  box-shadow: 0 0 80px rgba(120,212,237,.08), inset 0 0 80px rgba(120,212,237,.055);
}

@keyframes ring-turn { to { transform: rotate(360deg); } }

.tribe-portrait > img {
  position: relative;
  z-index: 2;
  width: min(410px, 78vw);
  height: min(410px, 78vw);
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  border: 1px solid rgba(120,212,237,.24);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(29,65,75,.74), rgba(5,10,12,.96) 72%);
  backface-visibility: hidden;
  box-shadow: 0 28px 50px rgba(0,0,0,.52), inset 0 0 38px rgba(120,212,237,.06);
  filter: contrast(1.035) saturate(1.025) drop-shadow(0 0 16px rgba(120,212,237,.08));
  animation: portrait-enter 450ms ease both;
}

@keyframes portrait-enter {
  from { opacity: .4; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.portrait-name {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 20px;
  left: 0;
  color: rgba(238,233,224,.055);
  font-family: "TLC Marcellus", serif;
  font-size: clamp(80px, 10vw, 148px);
  letter-spacing: -.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.tribe-selector {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 66px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tribe-selector button {
  position: relative;
  display: flex;
  min-width: 0;
  height: 116px;
  padding: 12px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  color: rgba(238,233,224,.42);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 200ms ease, background 200ms ease;
}

.tribe-selector button:last-child { border-right: 0; }

.tribe-selector button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: transform 220ms ease;
}

.tribe-selector img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity 200ms ease, filter 200ms ease, transform 250ms ease;
}

.tribe-selector span {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tribe-selector button:hover,
.tribe-selector button.is-active {
  color: var(--bone);
  background: rgba(120,212,237,.035);
}

.tribe-selector button:hover img,
.tribe-selector button.is-active img {
  transform: translateY(-3px);
  opacity: 1;
  filter: none;
}

.tribe-selector button.is-active::after { transform: scaleX(1); }

/* Chronicle */
.chronicle {
  position: relative;
  padding: 150px max(5vw, 70px);
  background: #0a0c0d;
}

.chronicle-heading {
  display: flex;
  width: var(--page);
  margin: 0 auto 68px;
  align-items: flex-end;
  justify-content: space-between;
}

.chronicle-heading h2 {
  font-size: clamp(52px, 5.5vw, 82px);
}

.chronicle-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  width: var(--page);
  margin: 0 auto;
  gap: 34px;
}

.chronicle-card {
  min-width: 0;
}

.chronicle-image {
  position: relative;
  aspect-ratio: 1.45;
  margin-bottom: 25px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.chronicle-card:first-child .chronicle-image { aspect-ratio: 1.55; }

.chronicle-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(3,6,7,.74));
  transition: background 250ms ease;
}

.chronicle-card:hover .chronicle-image::after {
  background: linear-gradient(180deg, transparent 65%, rgba(3,6,7,.55));
}

.chronicle-image span {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 10px;
  color: rgba(238,233,224,.35);
  font-family: "TLC Marcellus", serif;
  font-size: 38px;
}

.chronicle-meta {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  color: rgba(238,233,224,.38);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.chronicle-meta span { color: var(--gold); }

.chronicle-card h3 {
  margin: 0 0 14px;
  color: var(--bone);
  font-family: "TLC Marcellus", serif;
  font-size: clamp(25px, 2.3vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.chronicle-card p {
  margin: 0 0 18px;
  color: rgba(238,233,224,.5);
  font-family: "TLC Garamond", serif;
  font-size: 17px;
  line-height: 1.5;
}

.chronicle-card > a {
  color: var(--gold);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.chronicle-card > a span { margin-left: 8px; }

/* Download */
.download {
  position: relative;
  display: grid;
  min-height: 1080px;
  padding: 130px 0;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.download-bg,
.download-ink {
  position: absolute;
  inset: 0;
}

.download-bg {
  z-index: -3;
  transform: scale(1.025);
  background-image: url("realms/shambala.jpg");
  background-position: center;
  background-size: cover;
}

.download-ink {
  z-index: -2;
  background:
    radial-gradient(circle at 78% 24%, rgba(151,103,55,.17), transparent 31%),
    linear-gradient(90deg, rgba(3,7,8,.92), rgba(4,7,8,.54) 58%, rgba(3,6,7,.84)),
    linear-gradient(180deg, rgba(4,7,8,.84), rgba(4,7,8,.26) 40%, rgba(4,7,8,.95));
}

.download-content {
  width: min(1540px, calc(100vw - 80px));
  padding: clamp(54px, 5vw, 82px);
  border-top: 1px solid rgba(228,207,152,.45);
  border-bottom: 1px solid rgba(228,207,152,.25);
  background:
    linear-gradient(135deg, rgba(11,16,17,.88), rgba(4,7,8,.68)),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(228,207,152,.018) 23px 24px);
  box-shadow: 0 36px 90px rgba(0,0,0,.35);
  backdrop-filter: blur(13px);
}

.download-heading {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.download-heading h2 {
  margin: 0;
  font-family: "TLC Marcellus", serif;
  font-size: clamp(58px, 6.2vw, 98px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.download-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin: 26px auto 0;
  color: rgba(238,233,224,.72);
  font-family: "TLC Garamond", serif;
  font-size: 21px;
  line-height: 1.52;
}

.release-ledger {
  display: grid;
  grid-template-columns: minmax(310px, .72fr) minmax(600px, 1.42fr);
  margin-top: 58px;
  gap: 18px;
}

.release-primary {
  position: relative;
  display: flex;
  min-height: 318px;
  padding: 38px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(192,164,102,.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(192,164,102,.15), transparent 44%),
    rgba(4,8,9,.68);
  overflow: hidden;
  text-align: left;
}

.release-primary::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 42%;
  content: "";
  background: linear-gradient(var(--gold), transparent);
  box-shadow: 0 0 14px rgba(192,164,102,.35);
}

.release-primary > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.release-primary h3 {
  margin: 8px 0 14px;
  font-family: "TLC Marcellus", serif;
  font-size: clamp(35px, 3.3vw, 50px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.release-primary p {
  margin: 0 0 24px;
  color: rgba(238,233,224,.56);
  font-family: "TLC Garamond", serif;
  font-size: 16px;
  line-height: 1.5;
}

.release-primary .button {
  width: 100%;
  padding: 0 22px;
}

.release-primary .button i {
  margin-left: 14px;
  font-style: normal;
}

.release-primary small {
  margin-top: 14px;
  color: rgba(238,233,224,.32);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  position: relative;
  display: grid;
  min-height: 150px;
  padding: 24px;
  grid-template-columns: 58px 1fr;
  align-items: center;
  border: 1px solid rgba(238,233,224,.17);
  background: rgba(4,8,9,.66);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.platform-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(.22);
  transform-origin: left;
  background: var(--gold);
  transition: transform 260ms ease;
}

.platform-card.is-live::before { background: var(--cyan); }

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228,207,152,.46);
  background: rgba(7,12,13,.84);
}

.platform-card:hover::before { transform: scaleX(1); }

.platform-glyph {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--gold-pale);
  background: linear-gradient(145deg, rgba(192,164,102,.18), rgba(120,212,237,.04));
  clip-path: polygon(16% 0, 84% 0, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0 84%, 0 16%);
  font-family: "TLC Marcellus", serif;
  font-size: 9px;
  letter-spacing: .05em;
}

.platform-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.platform-card div b {
  font-size: 14px;
  font-weight: 600;
}

.platform-card div small {
  margin-top: 4px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.platform-card.is-live div small { color: var(--cyan); }

.platform-card strong {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(238,233,224,.09);
  color: rgba(238,233,224,.56);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.platform-card strong i {
  float: right;
  color: var(--gold);
  font-style: normal;
}

.account-band {
  display: grid;
  margin-top: 18px;
  padding: 25px 28px;
  grid-template-columns: .8fr 1.15fr 1.35fr;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(238,233,224,.11);
  background: rgba(4,8,9,.56);
}

.account-band > div:first-child {
  display: flex;
  flex-direction: column;
}

.account-band > div:first-child span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.account-band > div:first-child b {
  margin-top: 3px;
  font-family: "TLC Marcellus", serif;
  font-size: 18px;
  font-weight: 400;
}

.account-band > p {
  margin: 0;
  color: rgba(238,233,224,.48);
  font-family: "TLC Garamond", serif;
  font-size: 15px;
  line-height: 1.45;
}

.account-facts {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.account-facts span {
  display: flex;
  align-items: baseline;
  color: rgba(238,233,224,.42);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-facts b {
  margin-right: 7px;
  color: var(--gold-pale);
  font-family: "TLC Marcellus", serif;
  font-size: 22px;
  font-weight: 400;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 0 0 40px;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(35,57,88,.25), transparent 62%),
    radial-gradient(circle at 8% 80%, rgba(137,86,41,.11), transparent 30%),
    linear-gradient(180deg, #090b11 0%, #090806 58%, #050708 100%);
  box-shadow: inset 0 32px 80px rgba(0,0,0,.55);
}

.footer-filigree {
  position: relative;
  display: flex;
  height: 54px;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid var(--gold-dark);
  box-shadow: 0 -4px 0 #080a0d, 0 -5px 0 rgba(192,164,102,.62);
}

.footer-filigree::before,
.footer-filigree::after {
  height: 1px;
  margin-top: 31px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-dark) 18%, var(--gold) 52%, var(--gold-dark) 84%, transparent);
}

.footer-filigree > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: -18px 20px 0;
  flex: none;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #1b3159, #080d18 72%);
  box-shadow: 0 0 0 5px #080a0d, 0 0 30px rgba(192,164,102,.25);
}

.footer-filigree img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-inner {
  width: min(2200px, calc(100% - 120px));
  margin: 0 auto;
  padding-top: 62px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  margin-bottom: 54px;
  gap: clamp(48px, 6vw, 112px);
}

.footer-emblem {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(72,145,228,.18));
}

.footer-story h2 {
  margin: 0;
  color: var(--gold-pale);
  font-family: "TLC Marcellus", serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
}

.footer-story > span {
  display: inline-block;
  margin-top: 9px;
  color: rgba(238,233,224,.38);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.footer-story p {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgba(238,233,224,.54);
  font-family: "TLC Garamond", serif;
  font-size: 18px;
  line-height: 1.55;
}

.footer-column h3 {
  position: relative;
  margin: 4px 0 24px;
  padding-bottom: 13px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.footer-column h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-column a {
  display: block;
  padding: 7px 0;
  color: rgba(238,233,224,.62);
  font-family: "TLC Garamond", serif;
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  transform: translateX(4px);
  color: var(--gold-pale);
}

.footer-bottom {
  display: flex;
  padding-top: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(192,164,102,.22);
}

.footer-studio {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-studio img {
  width: min(390px, 31vw);
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
}

.footer-studio span {
  color: rgba(238,233,224,.4);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-studio span b {
  color: #5796ad;
  font-weight: 600;
}

.footer-legal {
  color: rgba(238,233,224,.4);
  font-size: 12px;
  text-align: right;
}

.footer-legal p {
  margin: 0 0 5px;
}

.footer-legal div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.footer-legal a { color: var(--gold); }
.footer-legal a:hover { color: var(--gold-pale); }
.footer-legal i { color: rgba(192,164,102,.4); font-style: normal; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 1180px) {
  :root {
    --page: calc(100vw - 64px);
  }

  .site-header {
    grid-template-columns: 1fr 190px;
    padding: 0 28px 0 calc(var(--rail-width) + 112px);
  }

  .brand { left: calc(var(--rail-width) + 13px); }

  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 9px; }
  .account-link { display: none; }

  .hero-content {
    width: 60vw;
    margin-left: 128px;
  }

  .hero-meta { right: 3vw; gap: 18px; }

  .atlas-frame {
    grid-template-columns: minmax(300px, .75fr) minmax(460px, 1.25fr);
  }

  .atlas-copy { padding-right: 38px; padding-left: 38px; }
  .realm-tabs button b { font-size: 7px; }

  .kruma {
    padding-right: 60px;
    padding-left: 60px;
    gap: 55px;
  }

  .tribe-layout {
    grid-template-columns: minmax(390px, 1.08fr) minmax(330px, .92fr);
    gap: 35px;
  }

  .release-ledger {
    grid-template-columns: 1fr;
  }

  .chronicle { padding-right: 32px; padding-left: 32px; }
  .chronicle-grid { gap: 24px; }
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 40px);
    --header-height: 72px;
    --rail-width: 0px;
    --frame-gutter: 0px;
  }

  .site-header,
  .site-header.is-scrolled {
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: 1fr auto;
    height: 72px;
    padding: 0 20px;
    border-radius: 0;
  }

  .brand,
  .site-header.is-scrolled .brand {
    position: static;
    width: 98px;
    height: 64px;
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: 90px;
    height: 64px;
  }

  .opening-spread {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(238,233,224,.22);
    background: rgba(5,8,9,.44);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--bone);
  }

  .site-header nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    transform: translateX(100%);
    padding: 60px 34px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    background: rgba(5,8,9,.97);
    backdrop-filter: blur(24px);
    transition: transform 330ms cubic-bezier(.2,.7,.2,1);
  }

  .site-header nav.is-open { transform: translateX(0); }

  .site-header nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: "TLC Marcellus", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .site-header nav a + a::before { display: none; }

  .header-actions { display: none; }
  .section-mark, .chapter-rail { display: none; }

  .hero {
    width: 100%;
    min-height: 900px;
    margin-left: 0;
    align-items: flex-end;
    padding: 0 20px 150px;
  }

  .hero-image { background-position: 62% center; }
  .hero-ink {
    background:
      linear-gradient(180deg, rgba(4,7,8,.35), rgba(4,7,8,.2) 30%, rgba(4,7,8,.68) 62%, rgba(4,7,8,.98) 100%),
      linear-gradient(90deg, rgba(4,7,8,.42), transparent 68%);
  }

  .hero-content {
    width: 100%;
    margin: 0;
  }

  .hero-content h1 { font-size: clamp(52px, 13vw, 82px); }
  .hero-copy { max-width: 620px; }
  .hero-meta { right: 20px; bottom: 45px; left: 20px; justify-content: space-between; }
  .hero-meta div:last-child { display: none; }
  .scroll-cue { display: none; }

  .atlas,
  .gods,
  .tribes,
  .chronicle { padding-top: 110px; padding-bottom: 100px; }

  .atlas {
    width: 100%;
    margin-left: 0;
  }

  .section-intro { width: calc(100% - 40px); margin-bottom: 50px; }

  .atlas-frame {
    grid-template-columns: 1fr;
    width: var(--page);
    min-height: auto;
  }

  .atlas-copy {
    min-height: 500px;
    padding: 58px 42px 68px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .atlas-visual { min-height: 610px; }
  .realm-tabs { grid-template-columns: repeat(3, 1fr); height: 150px; }
  .realm-tabs button { min-height: 75px; }
  .god-triptych {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .god-panel {
    min-height: 560px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .god-panel:last-child { border-bottom: 0; }
  .god-panel > img { width: 230px; }

  .kruma {
    grid-template-columns: 1fr;
    min-height: 1000px;
    padding: 120px 40px 90px;
    align-content: center;
    gap: 70px;
  }

  .kruma-content { max-width: 700px; }
  .war-status { justify-self: start; }

  .tribe-layout {
    grid-template-columns: 1fr;
  }

  .tribe-copy { text-align: center; }
  .tribe-copy > p:not(.eyebrow), .selected-tribe { margin-right: auto; margin-left: auto; }
  .tribe-portrait { min-height: 560px; }
  .tribe-selector { grid-template-columns: repeat(4, 1fr); }
  .tribe-selector button { border-bottom: 1px solid var(--line); }

  .chronicle-heading { align-items: flex-end; }
  .chronicle-grid { grid-template-columns: 1fr 1fr; }
  .chronicle-card:first-child { grid-column: 1 / -1; }

  .download {
    min-height: auto;
    padding: 110px 0;
  }

  .download-content {
    width: calc(100% - 40px);
    padding: 58px 36px;
  }

  .release-ledger {
    grid-template-columns: 1fr;
  }

  .release-primary {
    min-height: 300px;
  }

  .account-band {
    grid-template-columns: 1fr 1fr;
  }

  .account-facts {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .footer-inner {
    width: calc(100% - 56px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
  }

  .footer-story {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    text-align: left;
  }

  .footer-legal div {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root { --page: calc(100vw - 28px); }

  .hero {
    min-height: 820px;
    padding-right: 18px;
    padding-bottom: 135px;
    padding-left: 18px;
  }

  .hero-content h1 { font-size: clamp(47px, 14.8vw, 68px); }
  .hero-copy { margin: 24px 0 30px; font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .hero-actions .button { width: 100%; }
  .hero-meta { bottom: 32px; }
  .hero-meta b { font-size: 9px; }

  .eyebrow { font-size: 9px; letter-spacing: .25em; }
  .section-intro { width: calc(100% - 28px); }
  .section-intro h2 { font-size: 48px; }
  .section-intro > p:last-child { font-size: 18px; }

  .atlas-copy { min-height: 520px; padding: 50px 25px 62px; }
  .realm-number { top: 22px; right: 20px; font-size: 58px; }
  .atlas-copy h3 { font-size: 50px; }
  .atlas-visual { min-height: 560px; }
  .map-pin { width: 40px; height: 40px; }
  .realm-tabs button { grid-template-columns: 25px 1fr; padding: 0 7px; }
  .realm-tabs button b { font-size: 6px; letter-spacing: .09em; }
  .pin-four { display: none; }
  .world-stats { grid-template-columns: 1fr; gap: 20px; }
  .world-stats div { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .gods { padding-top: 100px; }
  .god-panel { padding-right: 18px; padding-left: 18px; }

  .kruma {
    min-height: 980px;
    padding: 100px 20px 80px;
  }

  .kruma-content h2 { font-size: 54px; }
  .kruma-content > p:not(.eyebrow) { font-size: 19px; }
  .kruma-actions { align-items: stretch; flex-direction: column; }
  .war-status { padding-right: 22px; padding-left: 22px; }

  .tribe-copy h2 { font-size: 49px; }
  .tribe-copy > p:not(.eyebrow) { font-size: 18px; }
  .tribe-portrait { min-height: 470px; }
  .tribe-portrait::before { width: min(500px, 90vw); height: min(500px, 90vw); }
  .tribe-portrait::after { width: min(620px, 98vw); height: min(620px, 98vw); }
  .tribe-selector button { height: 98px; }
  .tribe-selector img { width: 48px; height: 48px; }

  .chronicle { padding-right: 14px; padding-left: 14px; }
  .chronicle-heading { align-items: flex-start; flex-direction: column; gap: 26px; }
  .chronicle-grid { grid-template-columns: 1fr; }
  .chronicle-card:first-child { grid-column: auto; }

  .download {
    min-height: auto;
    padding: 90px 0;
  }

  .download-content {
    width: calc(100vw - 28px);
    padding: 48px 18px;
  }

  .download-heading h2 { font-size: 52px; }
  .download-heading > p:not(.eyebrow) { font-size: 18px; }
  .release-ledger { margin-top: 40px; }
  .release-primary { min-height: auto; padding: 30px 24px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 136px; }

  .account-band {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .account-facts {
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .footer-inner {
    width: calc(100% - 32px);
    padding-top: 52px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-story {
    grid-column: auto;
  }

  .footer-bottom,
  .footer-studio {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-studio img {
    width: min(310px, 84vw);
  }

  .footer-legal { text-align: center; }
  .footer-legal div { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
