/*
 * Cabal Tellus cinematic microsite index
 * Inspired by classic CABAL update microsites: fixed chapter navigation,
 * a full-screen cover, monumental headings, mist, and ornate information panels.
 */

.tellus-microsite {
  --micro-gold: #d7ad58;
  --micro-gold-light: #f4d98d;
  --micro-green: #1fd18d;
  --micro-deep: #040b08;
  background: var(--micro-deep);
  color: #edf4ed;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.tellus-microsite::before {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, .38);
}

.microsite-header {
  height: 76px;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 0 3.5vw;
  border-bottom: 1px solid rgba(227, 190, 111, .35);
  background:
    linear-gradient(90deg, rgba(5, 29, 20, .98), rgba(14, 71, 49, .97) 43%, rgba(7, 35, 24, .98)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, .02) 8px 9px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .44), inset 0 -1px rgba(0, 0, 0, .55);
}

.microsite-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background: radial-gradient(circle at 35% 0, rgba(76, 229, 164, .19), transparent 28rem);
}

.microsite-header::after {
  inset: auto 0 -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--micro-gold), var(--micro-green), var(--micro-gold), transparent);
}

.microsite-header .brand-mark {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 66px;
}

.microsite-header .brand-mark img { transform: scale(1.12); }

.chapter-nav {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 0;
  max-width: 790px;
  width: 100%;
  margin: 0 auto;
}

.chapter-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 11px;
  border-left: 1px solid rgba(255, 255, 255, .045);
  color: #d6e0d8;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.chapter-nav a:last-child { border-right: 1px solid rgba(255, 255, 255, .045); }
.chapter-nav a small { color: #bda66d; font-family: Georgia, serif; font-size: .54rem; letter-spacing: .24em; }
.chapter-nav a strong { margin-top: 5px; font-family: Georgia, serif; font-size: .78rem; font-weight: 400; letter-spacing: .055em; white-space: nowrap; }
.chapter-nav a::after { bottom: 0; height: 3px; background: var(--micro-gold-light); box-shadow: 0 0 13px var(--micro-gold); }
.chapter-nav a:hover { color: #fff; background: linear-gradient(transparent, rgba(14, 111, 71, .24)); }

.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; }
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #dce8df;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.microsite-header .header-cta { padding: 11px 15px; white-space: nowrap; }

.microsite-hero {
  position: relative;
  min-height: 900px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #06100c;
}

.hero-world {
  position: absolute;
  z-index: -5;
  inset: -3%;
  background: url("../images/tellus-core-hero.png") center 42% / cover no-repeat;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.08);
  transition: transform 140ms ease-out;
}

.microsite-hero::before {
  content: "";
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 5, .92) 0%, rgba(3, 12, 8, .66) 34%, rgba(4, 14, 9, .05) 67%, rgba(3, 10, 7, .2)),
    linear-gradient(180deg, rgba(2, 8, 5, .27) 0%, transparent 48%, #050c09 99%);
}

.microsite-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 210px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(5, 12, 9, .84) 55%, #050c09);
}

.hero-beams {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .38;
  background:
    linear-gradient(118deg, transparent 43%, rgba(99, 255, 191, .2) 49%, transparent 56%),
    linear-gradient(73deg, transparent 57%, rgba(224, 190, 111, .16) 62%, transparent 67%);
  animation: heroBeam 7s ease-in-out infinite alternate;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  left: 51%;
  top: 50%;
  width: min(57vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 189, 105, .23);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(27, 201, 132, .12), inset 0 0 75px rgba(29, 199, 132, .06);
  animation: orbitPulse 5s ease-in-out infinite;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit i {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(54, 218, 151, .17);
  border-radius: 50%;
}
.hero-orbit::after { inset: 20%; border-color: rgba(229, 193, 111, .18); }
.hero-orbit i:nth-child(1) { inset: -2% 45%; background: linear-gradient(transparent, rgba(238, 206, 131, .62), transparent); border: 0; border-radius: 0; }
.hero-orbit i:nth-child(2) { inset: 45% -2%; background: linear-gradient(90deg, transparent, rgba(50, 218, 149, .55), transparent); border: 0; border-radius: 0; }

.hero-warrior {
  position: absolute;
  z-index: 1;
  right: max(1vw, calc((100vw - 1560px) / 2));
  bottom: -3%;
  width: min(53vw, 800px);
  height: 91%;
  object-fit: contain;
  object-position: right bottom;
  filter: hue-rotate(220deg) saturate(.82) drop-shadow(-24px 28px 24px rgba(0, 0, 0, .82)) drop-shadow(0 0 29px rgba(33, 211, 140, .24));
  animation: warriorFloat 6s ease-in-out infinite alternate;
}

.microsite-hero-copy {
  position: relative;
  z-index: 3;
  width: min(700px, 46vw);
  margin-left: max(6vw, calc((100vw - 1500px) / 2));
  padding-top: 21vh;
  text-align: center;
}

.episode-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
  color: #251b09;
  font-family: Georgia, serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.episode-ribbon span {
  position: relative;
  min-width: 220px;
  padding: 9px 34px;
  border: 1px solid #f3d686;
  background: linear-gradient(180deg, #f6db8a, #b78127 54%, #e9c86e);
  box-shadow: 0 0 18px rgba(229, 188, 90, .35), inset 0 1px rgba(255, 255, 255, .66);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.microsite-logo {
  display: block;
  width: min(690px, 100%);
  margin: -12px auto -5px;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .85)) drop-shadow(0 0 20px rgba(30, 207, 136, .27));
}

.hero-tagline {
  margin: -6px 0 0;
  color: var(--micro-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  letter-spacing: .42em;
  text-shadow: 0 2px 14px #000, 0 0 12px rgba(215, 173, 88, .45);
  text-transform: uppercase;
}

.hero-intro {
  max-width: 590px;
  margin: 23px auto 0;
  color: #cedbd1;
  font-size: .96rem;
  line-height: 1.75;
  text-shadow: 0 2px 10px #000;
}

.microsite-hero .hero-actions { justify-content: center; margin-top: 31px; }

.ornate-button {
  position: relative;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 22px;
  border: 1px solid rgba(224, 188, 107, .5);
  background: rgba(5, 17, 12, .72);
  color: #f2eee1;
  font-family: Georgia, serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: 180ms ease;
}
.ornate-button::before { content: "◆"; margin-right: 10px; color: var(--micro-gold); font-size: .55rem; }
.ornate-button:hover { border-color: #f0d27e; background: rgba(27, 99, 67, .76); transform: translateY(-2px); }
.ornate-button-primary { background: linear-gradient(135deg, #08764e, #19ae75 58%, #9a6f26); box-shadow: 0 9px 30px rgba(8, 96, 62, .28); }

.microsite-scroll {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #cab880;
  transform: translateX(-50%);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.microsite-scroll b { color: #70efbb; font-size: 1.5rem; line-height: 1; animation: scrollBounce 1.8s ease-in-out infinite; }

.microsite-section,
.microsite-class-section {
  position: relative;
  min-height: 930px;
  padding: 120px max(6vw, calc((100vw - 1220px) / 2));
  overflow: hidden;
  isolation: isolate;
}

.awakening-section {
  background:
    linear-gradient(180deg, #050c09 0%, rgba(5, 14, 10, .9) 20%, rgba(6, 18, 13, .94)),
    url("../images/tellus-core-hero.png") center 36% / cover fixed;
}
.awakening-section::before,
.battlefield-section::before,
.voters-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 172, 130, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 172, 130, .035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(transparent, black 18%, black 82%, transparent);
}

.section-mist {
  position: absolute;
  z-index: 0;
  left: -10%;
  right: -10%;
  top: -90px;
  height: 320px;
  opacity: .55;
  filter: blur(20px);
  background: radial-gradient(ellipse, rgba(218, 237, 225, .31), transparent 67%);
}

.chapter-heading {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto 64px;
  text-align: center;
}
.chapter-heading > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: var(--micro-gold-light);
  font-family: Georgia, serif;
  font-size: .85rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.chapter-heading > p span { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--micro-gold)); }
.chapter-heading > p span:last-child { background: linear-gradient(90deg, var(--micro-gold), transparent); }
.chapter-heading h1,
.chapter-heading h2 {
  margin: 17px 0 9px;
  color: #f5f4ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
  text-shadow: 0 4px 24px #000, 0 0 22px rgba(212, 171, 84, .18);
  text-transform: uppercase;
}
.chapter-heading small { color: #9caf9f; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

.ornate-panel {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(217, 177, 91, .55);
  outline: 1px solid rgba(217, 177, 91, .17);
  outline-offset: -9px;
  background: linear-gradient(145deg, rgba(5, 16, 11, .94), rgba(3, 9, 6, .97));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .44), inset 0 0 45px rgba(26, 135, 89, .05);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.ornate-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(52, 183, 125, .12);
}

.ornate-corner { position: absolute; z-index: 3; width: 46px; height: 46px; pointer-events: none; }
.ornate-corner::before,
.ornate-corner::after { content: ""; position: absolute; background: var(--micro-gold); box-shadow: 0 0 8px rgba(215, 173, 88, .4); }
.ornate-corner::before { width: 33px; height: 2px; }
.ornate-corner::after { width: 2px; height: 33px; }
.corner-tl { left: 5px; top: 5px; }
.corner-tr { right: 5px; top: 5px; transform: rotate(90deg); }
.corner-br { right: 5px; bottom: 5px; transform: rotate(180deg); }
.corner-bl { left: 5px; bottom: 5px; transform: rotate(270deg); }

.panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: 0 0 27px;
  color: #f2f0e7;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.panel-title span { color: var(--micro-gold); font-size: .6rem; }

.narrative-panel { padding: 58px clamp(30px, 7vw, 100px); text-align: center; }
.narrative-panel > p:not(.panel-title) { max-width: 980px; margin: 17px auto 0; color: #b8c7bd; font-size: 1rem; line-height: 1.9; }

.overview-panel {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 42px;
  margin-top: 54px;
  padding: 54px clamp(34px, 6vw, 84px);
}
.overview-list { margin: 0; }
.overview-list div { display: grid; grid-template-columns: 175px 1fr; gap: 22px; padding: 13px 0; border-bottom: 1px solid rgba(77, 159, 116, .13); }
.overview-list div:last-child { border-bottom: 0; }
.overview-list dt { position: relative; padding: 8px 15px; background: linear-gradient(90deg, #d8af59, #9b7026); color: #181004; font-family: Georgia, serif; font-size: .69rem; font-weight: 700; text-align: center; text-transform: uppercase; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.overview-list dd { align-self: center; margin: 0; color: #d6e1d9; font-size: .98rem; }

.overview-core { position: relative; width: min(290px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: auto; border: 1px solid rgba(226, 190, 109, .42); border-radius: 50%; background: radial-gradient(circle, rgba(111, 255, 196, .72) 0 2%, rgba(25, 202, 131, .36) 3% 16%, rgba(7, 57, 37, .6) 31%, rgba(3, 14, 9, .92) 68%); box-shadow: 0 0 50px rgba(28, 205, 135, .27), inset 0 0 32px rgba(229, 193, 112, .16); }
.overview-core::before,
.overview-core::after { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(225, 188, 105, .42); border-radius: 50%; animation: coreSpin 20s linear infinite; }
.overview-core::after { inset: -8% 45%; border: 0; border-radius: 0; background: linear-gradient(transparent, rgba(225, 189, 108, .7), transparent); animation: none; }
.overview-core span { position: absolute; inset: 23%; border: 1px solid rgba(62, 234, 162, .36); transform: rotate(45deg); }
.overview-core i { position: absolute; inset: 37%; border: 1px solid #efd386; transform: rotate(45deg); box-shadow: 0 0 17px #25cf8d; }
.overview-core b { position: relative; z-index: 2; color: #f4e1aa; font-family: Georgia, serif; font-size: 3.4rem; font-weight: 400; text-shadow: 0 0 20px #1bc786; }

.microsite-class-section {
  min-height: 880px;
  padding: 80px 24px 92px;
  background:
    radial-gradient(circle at 79% 49%, rgba(31, 148, 97, .18), transparent 31rem),
    radial-gradient(circle at 20% 40%, rgba(183, 135, 50, .07), transparent 24rem),
    linear-gradient(180deg, #050d09, #07140e 60%, #040b08);
}
.microsite-class-section::before {
  opacity: .28;
  background-size: 72px 72px;
}
.microsite-class-section .chapter-heading { margin-bottom: 32px; }
.class-browser {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 12px;
  margin: 0 auto;
}
.class-list-shell {
  min-height: 560px;
  padding: 8px 0;
  border: 1px solid rgba(214, 173, 86, .2);
  background: linear-gradient(180deg, rgba(8, 23, 15, .9), rgba(3, 10, 7, .96));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .4);
}
.class-list-label {
  margin: 0 17px 7px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(214, 173, 86, .19);
  color: #b99850;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.microsite-class-section .class-tabs {
  position: static;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.microsite-class-section .class-tabs button,
.microsite-class-section .class-tabs button.is-active {
  position: relative;
  width: 100%;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 7px 13px;
  border: 0;
  border-bottom: 1px solid rgba(210, 173, 92, .11);
  background: transparent;
  color: #8b9b91;
  clip-path: none;
  box-shadow: none;
  transform: none;
  filter: none;
  text-align: left;
}
.microsite-class-section .class-tabs button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(46, 165, 108, .16), rgba(195, 146, 53, .08) 70%, transparent);
  opacity: 0;
  transform: translateX(-22%);
  transition: opacity .22s ease, transform .22s ease;
}
.microsite-class-section .class-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  height: auto;
  background: #d7ae56;
  box-shadow: 0 0 14px rgba(54, 224, 146, .7);
  opacity: 0;
}
.microsite-class-section .class-tabs button:hover,
.microsite-class-section .class-tabs button.is-active {
  color: #f1ead8;
  background: rgba(17, 55, 37, .26);
  transform: none;
  filter: none;
}
.microsite-class-section .class-tabs button:hover::before,
.microsite-class-section .class-tabs button.is-active::before {
  opacity: 1;
  transform: translateX(0);
}
.microsite-class-section .class-tabs button.is-active::after { opacity: 1; }
.class-tab-sigil {
  position: relative;
  z-index: 2;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(209, 170, 82, .36);
  border-radius: 50%;
  color: #b99a59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.class-tabs button.is-active .class-tab-sigil {
  border-color: #e0bd6c;
  color: #f3d98f;
  box-shadow: inset 0 0 14px rgba(27, 179, 116, .25), 0 0 14px rgba(203, 157, 63, .12);
}
.microsite-class-section .class-tab-copy {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.microsite-class-section .class-tab-copy strong {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.1;
}
.microsite-class-section .class-tab-copy small {
  color: #586b60;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}
.class-tabs button.is-active .class-tab-copy small { color: #a58a4d; }
.class-tab-number {
  position: relative;
  z-index: 2;
  color: #405148;
  font-family: Georgia, serif;
  font-size: .62rem;
  text-align: right;
}
.class-tabs button.is-active .class-tab-number { color: #b69349; }

.microsite-class-section .class-stage {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-color: rgba(218, 177, 90, .42);
  outline-offset: -9px;
  background:
    linear-gradient(90deg, rgba(3, 11, 8, .98) 0%, rgba(4, 14, 10, .94) 43%, rgba(4, 13, 9, .48) 67%, rgba(3, 8, 6, .82) 100%),
    radial-gradient(circle at 78% 42%, rgba(41, 183, 121, .19), transparent 36rem),
    #040b08;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .48), inset 0 0 80px rgba(0, 0, 0, .38);
}
.microsite-class-section .class-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, transparent 0 66%, rgba(205, 169, 87, .08) 66.1% 66.25%, transparent 66.35%),
    linear-gradient(180deg, transparent 68%, rgba(2, 8, 5, .96));
  pointer-events: none;
}
.microsite-class-section .class-stage::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 8;
  border: 1px solid rgba(226, 188, 105, .13);
  pointer-events: none;
}
.microsite-class-section .class-info {
  position: relative;
  z-index: 6;
  width: 49%;
  margin: 0;
  padding: 48px 22px 42px 42px;
  text-align: left;
}
.class-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
}
.class-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(210, 169, 83, .2);
  color: #8d7650;
  background: rgba(4, 14, 9, .58);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.microsite-class-section .class-role {
  margin: 0 0 8px;
  color: #51c98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
}
.microsite-class-section .class-info h3 {
  max-width: 620px;
  color: #f4f1e7;
  font-size: clamp(2.65rem, 3.4vw, 4.05rem);
  line-height: .92;
  text-align: left;
}
.class-divider {
  width: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
}
.class-divider::before,
.class-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, #b48b3c, transparent); }
.class-divider::after { transform: scaleX(-1); }
.class-divider i { width: 7px; height: 7px; border: 1px solid #d8b55f; transform: rotate(45deg); box-shadow: 0 0 9px rgba(49, 212, 139, .5); }
.microsite-class-section .class-description {
  max-width: 500px;
  margin: 0;
  color: #92a49a;
  font-size: .94rem;
  line-height: 1.7;
  text-align: left;
}
.class-stats {
  max-width: 460px;
  display: grid;
  gap: 13px;
  margin-top: 25px;
}
.class-stat {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
}
.class-stat > span {
  color: #74857b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.class-stat > i {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(161, 182, 170, .12);
}
.class-stat > i b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, #8d6c25, #efd477 68%, #65e1aa);
  box-shadow: 0 0 12px rgba(66, 222, 153, .38);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.class-stat > em {
  color: #b7954c;
  font-family: Georgia, serif;
  font-size: .68rem;
  font-style: normal;
  text-align: right;
}
.microsite-class-section .class-character-panel {
  position: absolute;
  z-index: 3;
  inset: 0 0 0 43%;
  width: auto;
  height: auto;
}
.microsite-class-section .class-character-panel::before {
  content: "";
  position: absolute;
  inset: 13% 5% 5% 15%;
  border: 1px solid rgba(203, 167, 83, .09);
  transform: rotate(45deg) scale(.69);
  box-shadow: 0 0 0 55px rgba(50, 161, 107, .018), 0 0 0 110px rgba(50, 161, 107, .012);
}
.microsite-class-section .class-character-panel::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, rgba(2, 8, 5, .98));
}
.microsite-class-section .class-watermark {
  position: absolute;
  z-index: 0;
  left: 7%;
  top: 4%;
  color: rgba(171, 204, 186, .035);
  font-family: Georgia, serif;
  font-size: clamp(17rem, 24vw, 28rem);
  line-height: .8;
  letter-spacing: -.1em;
  user-select: none;
}
.microsite-class-section .class-character-aura {
  left: 12%;
  right: -5%;
  bottom: -11%;
  height: 69%;
  background: radial-gradient(ellipse at center bottom, rgba(36, 195, 128, .48), rgba(157, 120, 47, .14) 42%, transparent 72%);
  filter: blur(20px);
  opacity: .7;
}
.microsite-class-section .class-character-echo {
  left: 0;
  bottom: -2%;
  width: 92%;
  height: 105%;
  object-position: center bottom;
  opacity: .12;
  filter: blur(1px) saturate(.7) sepia(.25) drop-shadow(0 0 52px rgba(38, 204, 134, .3));
  transform: scale(1.08);
}
.microsite-class-section .class-character {
  left: auto;
  right: 0;
  bottom: -6%;
  width: 80%;
  height: 107%;
  object-position: center bottom;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .88)) drop-shadow(0 0 28px rgba(36, 190, 125, .18));
}
.microsite-class-section .class-arrow {
  z-index: 10;
  top: auto;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border-color: rgba(213, 174, 89, .25);
  background: rgba(4, 14, 9, .72);
  color: #ae9256;
  font-size: 1.5rem;
}
.microsite-class-section .class-arrow-previous { left: auto; right: 64px; }
.microsite-class-section .class-arrow-next { right: 20px; }
.microsite-class-section .class-arrow:hover {
  border-color: #d5b15f;
  background: rgba(24, 93, 61, .84);
  color: #fff1bd;
}

.battlefield-section { background: linear-gradient(180deg, #040b08, #08170f 48%, #040b08); }
.system-showcase { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.system-feature { min-height: 410px; padding: 58px 34px 38px; text-align: center; }
.feature-number { position: absolute; left: 22px; top: 20px; color: rgba(219, 179, 93, .52); font-family: Georgia, serif; font-size: .72rem; letter-spacing: .18em; }
.feature-sigil { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 25px; border: 1px solid rgba(226, 188, 105, .44); transform: rotate(45deg); background: radial-gradient(circle, rgba(27, 191, 126, .25), transparent 69%); color: #e8ca7d; font-size: 2rem; box-shadow: 0 0 25px rgba(22, 170, 110, .13); }
.feature-sigil::first-letter { transform: rotate(-45deg); }
.system-feature > p { margin: 0; color: #65dca9; font-size: .65rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.system-feature h3 { margin: 12px 0 18px; color: #f0f1e9; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; line-height: 1.05; text-transform: uppercase; }
.system-feature > span:last-child { color: #8fa398; font-size: .88rem; line-height: 1.75; }

.tellus-microsite .voters-section { min-height: 820px; background: radial-gradient(circle at 50% 30%, rgba(29, 145, 96, .14), transparent 34rem), #040b08; }
.tellus-microsite .top-voter-board { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; padding: 24px; }
.tellus-microsite .top-voter-row { min-height: 70px; border: 0; border-bottom: 1px solid rgba(76, 166, 122, .15); background: rgba(4, 15, 10, .65); }
.tellus-microsite .top-voter-row:last-child { border-bottom: 0; }
.tellus-microsite .top-voter-row:first-child { background: linear-gradient(90deg, rgba(194, 145, 50, .12), rgba(22, 138, 89, .12)); }
.tellus-microsite .top-voter-action { margin-top: 32px; }

.final-chapter {
  position: relative;
  min-height: 880px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("../images/tellus-core-hero.png") center / cover fixed no-repeat;
}
.final-chapter-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(5, 28, 18, .22), rgba(2, 8, 5, .93) 78%), linear-gradient(180deg, #040b08, transparent 30%, #030805); }
.final-chapter-content { position: relative; z-index: 2; width: min(980px, calc(100% - 40px)); padding: 110px 20px; text-align: center; }
.final-chapter-content > img { width: min(650px, 86vw); filter: drop-shadow(0 18px 30px #000) drop-shadow(0 0 25px rgba(24, 205, 133, .26)); }
.final-chapter-content h2 { margin: -12px 0 12px; color: #f4f2e8; font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; line-height: .96; text-transform: uppercase; text-shadow: 0 4px 25px #000; }
.final-chapter-content > p:not(.episode-ribbon) { color: #a9b9af; }
.final-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.final-action { position: relative; min-height: 102px; display: flex; flex-direction: column; justify-content: center; padding: 20px 42px 20px 22px; border: 1px solid rgba(218, 177, 91, .38); background: rgba(4, 16, 10, .86); text-align: left; transition: 180ms ease; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.final-action small { color: #8ca095; font-size: .58rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.final-action strong { margin-top: 7px; color: #eff2e9; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; text-transform: uppercase; }
.final-action i { position: absolute; right: 18px; color: var(--micro-gold); font-style: normal; }
.final-action:hover { border-color: var(--micro-gold-light); background: rgba(16, 94, 61, .82); transform: translateY(-4px); }

.microsite-footer { min-height: 165px; border-top: 1px solid rgba(215, 173, 88, .24); background: #020604; }
.microsite-footer > img { width: 170px; height: 82px; object-fit: contain; }

.back-to-top { position: fixed; z-index: 65; right: 20px; bottom: 86px; width: 58px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(218, 177, 91, .35); background: rgba(21, 52, 38, .84); color: #e9d299; font-family: Georgia, serif; font-size: 1rem; backdrop-filter: blur(12px); }
.back-to-top span { margin-top: 2px; font-size: .54rem; letter-spacing: .18em; text-transform: uppercase; }

@keyframes heroBeam { from { opacity: .2; transform: translateX(-2%); } to { opacity: .52; transform: translateX(2%); } }
@keyframes orbitPulse { 50% { opacity: .58; transform: translate(-50%, -50%) scale(1.035); } }
@keyframes warriorFloat { to { transform: translateY(-8px); } }
@keyframes coreSpin { to { transform: rotate(360deg); } }
@keyframes scrollBounce { 50% { transform: translateY(6px); } }

@media (max-width: 1180px) {
  .microsite-header { grid-template-columns: 170px minmax(0, 1fr) auto; padding-inline: 2vw; }
  .microsite-header .brand-mark { width: 160px; }
  .chapter-nav a { padding-inline: 7px; }
  .chapter-nav a strong { font-size: .67rem; }
  .chapter-nav a small { font-size: .48rem; }
  .header-login { display: none; }
  .microsite-hero-copy { width: min(610px, 50vw); margin-left: 3.5vw; }
  .hero-warrior { right: -4vw; width: 58vw; }
  .final-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .microsite-header { grid-template-columns: 1fr auto auto; padding-inline: 22px; }
  .microsite-header .brand-mark { width: 178px; }
  .microsite-header .menu-button { position: relative; z-index: 5; display: grid; }
  .microsite-header .header-actions { margin-left: auto; }
  .chapter-nav {
    position: fixed;
    inset: 76px 0 auto;
    width: 100%;
    max-width: none;
    display: none;
    grid-template-columns: 1fr;
    padding: 15px 22px 22px;
    border-bottom: 1px solid rgba(215, 173, 88, .33);
    background: rgba(3, 14, 9, .98);
  }
  .chapter-nav.is-open { display: grid; }
  .chapter-nav a { min-height: 58px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .chapter-nav a:last-child { border-right: 0; }
  .microsite-hero { min-height: 850px; }
  .microsite-hero::before { background: linear-gradient(180deg, rgba(2,8,5,.25), rgba(2,8,5,.38) 47%, #040b08 98%); }
  .hero-world { background-position: 53% center; }
  .hero-warrior { right: -16%; bottom: -5%; width: 84vw; height: 75%; opacity: .74; }
  .microsite-hero-copy { width: min(680px, calc(100% - 38px)); margin: 0 auto; padding-top: 17vh; }
  .microsite-logo { width: min(610px, 92%); }
  .hero-intro { max-width: 520px; }
  .overview-panel { grid-template-columns: 1fr; }
  .overview-core { width: 250px; }
  .system-showcase { grid-template-columns: 1fr; }
  .system-feature { min-height: 320px; }
  .class-browser { grid-template-columns: 1fr; }
  .class-list-shell { min-height: 0; padding: 13px; }
  .class-list-label { margin-inline: 4px; }
  .microsite-class-section .class-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .microsite-class-section .class-tabs button,
  .microsite-class-section .class-tabs button.is-active {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 9px;
    border: 1px solid rgba(211, 173, 88, .12);
  }
  .class-tab-number { display: none; }
  .microsite-class-section .class-stage { min-height: 560px; }
  .microsite-class-section .class-info { width: 54%; padding: 43px 14px 40px 34px; }
  .microsite-class-section .class-info h3 { font-size: clamp(2.5rem, 6.6vw, 3.65rem); }
  .microsite-class-section .class-character-panel { inset: 0 0 0 42%; }
}

@media (max-width: 640px) {
  .microsite-header { height: 68px; padding-inline: 13px; gap: 6px; }
  .microsite-header .brand-mark { width: 140px; height: 58px; }
  .microsite-header .header-cta { padding: 9px 10px; font-size: .63rem; }
  .microsite-header .header-cta span { display: none; }
  .chapter-nav { inset: 68px 0 auto; }
  .microsite-hero { min-height: 790px; }
  .microsite-hero-copy { padding-top: 16vh; }
  .episode-ribbon span { min-width: 180px; padding-inline: 24px; }
  .hero-tagline { font-size: .82rem; letter-spacing: .24em; }
  .hero-intro { font-size: .84rem; line-height: 1.65; }
  .microsite-hero .hero-actions { display: grid; gap: 9px; }
  .ornate-button { width: 100%; min-width: 0; }
  .hero-warrior { right: -31%; width: 118vw; height: 70%; }
  .hero-orbit { left: 58%; width: 100vw; }
  .microsite-section,
  .microsite-class-section { padding: 90px 18px; }
  .chapter-heading { margin-bottom: 38px; }
  .chapter-heading > p { font-size: .7rem; }
  .chapter-heading > p span { width: 40px; }
  .chapter-heading h1,
  .chapter-heading h2 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .chapter-heading small { display: block; line-height: 1.6; }
  .narrative-panel { padding: 45px 26px; }
  .narrative-panel > p:not(.panel-title) { font-size: .88rem; line-height: 1.75; }
  .overview-panel { padding: 45px 25px; }
  .overview-list div { grid-template-columns: 1fr; gap: 7px; }
  .overview-list dt { max-width: 190px; }
  .overview-core { width: 210px; }
  .class-browser { gap: 12px; }
  .class-list-shell { padding: 10px; }
  .class-list-label { padding-bottom: 10px; }
  .microsite-class-section .class-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .microsite-class-section .class-tabs button,
  .microsite-class-section .class-tabs button.is-active {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
  }
  .class-tab-sigil { width: 35px; height: 35px; }
  .microsite-class-section .class-tab-copy strong { font-size: .7rem; }
  .microsite-class-section .class-tab-copy small { font-size: .47rem; }
  .microsite-class-section .class-stage { min-height: 760px; }
  .microsite-class-section .class-info {
    width: 100%;
    padding: 34px 26px 0;
    text-align: left;
  }
  .class-meta { margin-bottom: 18px; }
  .microsite-class-section .class-info h3 { max-width: 90%; font-size: clamp(2.55rem, 13vw, 4rem); }
  .microsite-class-section .class-description { max-width: 94%; font-size: .86rem; line-height: 1.6; }
  .class-stats { max-width: 88%; margin-top: 22px; }
  .microsite-class-section .class-character-panel {
    inset: 310px -12% 0 0;
    opacity: .78;
  }
  .microsite-class-section .class-character {
    right: -7%;
    bottom: -8%;
    width: 96%;
    height: 108%;
  }
  .microsite-class-section .class-character-echo { left: 7%; width: 100%; }
  .microsite-class-section .class-arrow { bottom: 15px; }
  .system-feature { padding-inline: 25px; }
  .tellus-microsite .top-voter-board { padding: 13px; }
  .final-chapter { min-height: 950px; }
  .final-actions { grid-template-columns: 1fr; }
  .final-action { min-height: 86px; }
  .back-to-top { right: 12px; bottom: 78px; width: 49px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-beams,
  .hero-orbit,
  .hero-warrior,
  .overview-core::before,
  .microsite-scroll b { animation: none !important; }
}
