:root {
  color-scheme: dark;
  --bg: #070a11;
  --bg-soft: #0c101a;
  --panel: rgba(19, 24, 36, 0.78);
  --panel-strong: rgba(28, 34, 49, 0.95);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f9ff;
  --muted: #a8b0c4;
  --soft: #747f98;
  --red: #ff4058;
  --blue: #75c7ff;
  --gold: #ffd27a;
  --green: #62e2a2;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --radius-lg: 20px;
  --content: min(1180px, calc(100vw - 36px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Noto Sans Thai", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 64, 88, 0.15), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(117, 199, 255, 0.12), transparent 32rem),
    linear-gradient(180deg, #070a11 0%, #0a0d15 44%, #080a10 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 85%);
}

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

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

button {
  font: inherit;
}

button,
a[href],
summary,
select,
input[type="checkbox"],
input[type="radio"],
[role="button"] {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 17, 0.76);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--content);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--red), rgba(117, 199, 255, 0.66));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 64, 88, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-links .discord-link {
  color: #fff;
  border: 1px solid rgba(117, 199, 255, 0.36);
  background: rgba(117, 199, 255, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  place-items: center;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  width: var(--content);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero p,
.section-heading p,
.media-copy p,
.about-grid p,
.lesson-intro,
.subject-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #c91836);
  box-shadow: 0 18px 42px rgba(255, 64, 88, 0.25);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.discord-button {
  color: #fff;
  border-color: rgba(117, 199, 255, 0.36);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(117, 199, 255, 0.55));
  box-shadow: 0 18px 42px rgba(88, 101, 242, 0.22);
}

.hero-board {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 64, 88, 0.11), rgba(117, 199, 255, 0.08)),
    rgba(13, 17, 28, 0.78);
  box-shadow: var(--shadow);
}

.orbital-lines {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(117, 199, 255, 0.14);
  border-radius: 50%;
}

.orbital-lines::before,
.orbital-lines::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.orbital-lines::after {
  inset: 31%;
  border-color: rgba(255, 64, 88, 0.16);
}

.board-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(7, 10, 17, 0.62);
  backdrop-filter: blur(14px);
}

.board-card.active {
  border-color: rgba(117, 199, 255, 0.35);
  background: rgba(117, 199, 255, 0.1);
}

.board-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.92rem;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.subject-card,
.topic-panel,
.lesson-view,
.about-grid article,
.media-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.subject-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.subject-card:hover,
.subject-card:focus-visible {
  border-color: rgba(117, 199, 255, 0.42);
  outline: none;
}

.subject-card.active {
  border-color: rgba(255, 64, 88, 0.5);
  background: rgba(255, 64, 88, 0.1);
}

.subject-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue);
  font-weight: 900;
}

.subject-meta {
  margin-top: auto;
  color: var(--soft);
  font-size: 0.92rem;
}

.study-layout {
  width: var(--content);
  margin: 0 auto;
  padding: 56px 0 84px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.topic-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.panel-heading h2 {
  font-size: 1.7rem;
}

.subject-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tab-button,
.topic-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.tab-button {
  border-radius: 999px;
  padding: 9px 12px;
}

.tab-button.active {
  border-color: rgba(117, 199, 255, 0.45);
  background: rgba(117, 199, 255, 0.13);
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-button {
  width: 100%;
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
}

.topic-button:hover,
.topic-button:focus-visible,
.topic-button.active {
  border-color: rgba(255, 64, 88, 0.45);
  background: rgba(255, 64, 88, 0.12);
  outline: none;
}

.topic-button span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lesson-view {
  min-height: 620px;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  outline: none;
}

.lesson-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  border: 1px solid rgba(117, 199, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue);
  background: rgba(117, 199, 255, 0.09);
  font-size: 0.92rem;
}

.content-block {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.content-block ul,
.content-block ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.example-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  line-height: 1.75;
}

.example-card .button {
  margin-top: 14px;
}

.media-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 34px;
}

.media-copy p {
  max-width: 700px;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.media-preview {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(255, 210, 122, 0.16), rgba(117, 199, 255, 0.05) 42%, rgba(255, 255, 255, 0.025));
}

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3aa, #ff9f1c 70%);
  box-shadow: 0 0 42px rgba(255, 210, 122, 0.65);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.orbit i {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
}

.orbit-one {
  width: 130px;
  height: 130px;
}

.orbit-two {
  width: 210px;
  height: 210px;
}

.orbit-two i {
  background: var(--red);
}

.orbit-three {
  width: 290px;
  height: 290px;
}

.orbit-three i {
  background: var(--green);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 24px;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-grid article {
  border-radius: var(--radius);
  padding: 20px;
}

.footer {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(12, 16, 26, 0.97);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero,
  .study-layout,
  .media-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .topic-panel {
    position: static;
  }

  .subject-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --content: min(100vw - 28px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero-board {
    min-height: 390px;
    padding: 18px;
  }

  .subject-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .study-layout {
    padding-block: 56px;
  }

  .lesson-view,
  .media-section {
    padding: 22px;
  }

  .media-preview {
    min-height: 260px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Apple-inspired light theme: 60% white, 30% purple, 10% black */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f3ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 15, 18, 0.12);
  --text: #08080c;
  --muted: #4b4b57;
  --soft: #686872;
  --red: #7c3aed;
  --blue: #5865f2;
  --gold: #7c3aed;
  --green: #7c3aed;
  --purple: #7c3aed;
  --purple-soft: #f0e8ff;
  --black: #08080c;
  --shadow: 0 24px 70px rgba(58, 26, 112, 0.14);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 52%, #ffffff 100%);
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  opacity: 0.58;
}

.site-header {
  border-bottom-color: rgba(8, 8, 12, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(8, 8, 12, 0.05);
}

.brand-mark {
  background: linear-gradient(145deg, #7c3aed, #a78bfa);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.22);
}

.brand small,
.nav-links a,
.hero p,
.section-heading p,
.media-copy p,
.about-grid p,
.lesson-intro,
.subject-card p,
.content-block ul,
.content-block ol,
.topic-button span,
.subject-meta {
  color: var(--muted);
}

.eyebrow,
.board-card span,
.lesson-kicker {
  color: var(--purple);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: var(--black);
}

.nav-links .discord-link,
.discord-button {
  color: #fff;
  border-color: rgba(88, 101, 242, 0.32);
  background: linear-gradient(135deg, #5865f2, #2563eb);
  box-shadow: 0 18px 42px rgba(88, 101, 242, 0.2);
}

.menu-toggle,
.secondary,
.tab-button,
.topic-button {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
}

.primary,
.subject-card.active,
.tab-button.active,
.topic-button:hover,
.topic-button:focus-visible,
.topic-button.active {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.55);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.22);
}

.subject-card.active p,
.subject-card.active .subject-meta,
.topic-button.active span,
.topic-button:hover span,
.topic-button:focus-visible span {
  color: rgba(255, 255, 255, 0.82);
}

.button {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 14px 32px rgba(8, 8, 12, 0.12);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), box-shadow 260ms ease, background 260ms ease, border-color 260ms ease;
}

.button:hover,
.lesson-view .button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 24px 55px rgba(8, 8, 12, 0.18);
}

.primary:hover,
.tab-button.active:hover,
.topic-button.active:hover {
  box-shadow: 0 28px 64px rgba(124, 58, 237, 0.3);
}

.discord-button:hover,
.nav-links .discord-link:hover {
  background: linear-gradient(135deg, #5865f2, #1d4ed8);
  box-shadow: 0 28px 64px rgba(88, 101, 242, 0.28);
}

.hero-board,
.subject-card,
.topic-panel,
.lesson-view,
.about-grid article,
.media-section,
.viewer-section,
.example-card {
  border-color: rgba(8, 8, 12, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-board {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.16), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.92);
}

.board-card {
  border-color: rgba(8, 8, 12, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.board-card.active {
  border-color: rgba(124, 58, 237, 0.32);
  background: rgba(240, 232, 255, 0.78);
}

.subject-icon,
.lesson-kicker {
  border-color: rgba(124, 58, 237, 0.22);
  background: var(--purple-soft);
}

.orbital-lines,
.orbital-lines::before {
  border-color: rgba(124, 58, 237, 0.18);
}

.orbital-lines::after {
  border-color: rgba(8, 8, 12, 0.12);
}

.media-preview {
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.84) 45%, rgba(8, 8, 12, 0.035));
}

.sun {
  background: radial-gradient(circle, #ffffff, #a78bfa 72%);
  box-shadow: 0 0 42px rgba(124, 58, 237, 0.42);
}

.footer {
  color: var(--muted);
}

.viewer-section {
  width: var(--content);
  margin: 0 auto 84px;
  display: none;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.viewer-section.open {
  display: block;
  animation: viewerIn 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.viewer-topbar h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

#viewer-frame {
  width: 100%;
  height: min(78vh, 760px);
  min-height: 440px;
  display: block;
  border: 1px solid rgba(8, 8, 12, 0.12);
  border-radius: 14px;
  background: #000;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(10px);
  transition: opacity 780ms cubic-bezier(.2, .8, .2, 1), transform 780ms cubic-bezier(.2, .8, .2, 1), filter 780ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.subject-card,
.board-card,
.about-grid article,
.media-section,
.lesson-view {
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.subject-card:hover,
.board-card:hover,
.about-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 80px rgba(124, 58, 237, 0.18);
}

@keyframes viewerIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(8, 8, 12, 0.12);
  }

  .nav-links a {
    color: var(--text);
  }
}

@media (max-width: 620px) {
  .viewer-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #viewer-frame {
    min-height: 360px;
    height: 70vh;
  }
}

body.viewer-active {
  overflow: hidden;
}

.button.open-3d,
.button.open-3d.secondary,
.media-actions .button.open-3d {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.6);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 22px 54px rgba(124, 58, 237, 0.28);
}

.button.open-3d:hover,
.button.open-3d.secondary:hover,
.media-actions .button.open-3d:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  box-shadow: 0 30px 70px rgba(124, 58, 237, 0.34);
}

.nav-links .discord-link,
.button.discord-button {
  color: #fff;
  border-color: rgba(88, 101, 242, 0.34);
  background: linear-gradient(135deg, #5865f2, #2563eb);
  box-shadow: 0 18px 42px rgba(88, 101, 242, 0.22);
}

.nav-links .discord-link:hover,
.nav-links .discord-link:focus-visible,
.button.discord-button:hover,
.button.discord-button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #4752c4, #1d4ed8);
  box-shadow: 0 28px 64px rgba(88, 101, 242, 0.3);
}

@keyframes viewerFullscreenIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.button,
.subject-card,
.tab-button,
.topic-button,
.menu-toggle,
.nav-links a,
.event-nav-actions a,
.voice-header-actions button,
.voice-controls button,
.voice-chat-toggle,
.voice-chat-send,
.event-detail-button,
.stage-listen-button,
.stage-control,
.stage-chat-send,
.dialog-close,
.brand,
.footer a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.button::after,
.subject-card::after,
.tab-button::after,
.topic-button::after,
.menu-toggle::after,
.nav-links a::after,
.event-nav-actions a::after,
.voice-header-actions button::after,
.voice-controls button::after,
.voice-chat-toggle::after,
.voice-chat-send::after,
.event-detail-button::after,
.stage-listen-button::after,
.stage-control::after,
.stage-chat-send::after,
.dialog-close::after,
.brand::after,
.footer a::after {
  content: "";
  position: absolute;
  left: var(--tap-x, 50%);
  top: var(--tap-y, 50%);
  width: 12px;
  height: 12px;
  z-index: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 68%);
  transform: translate(-50%, -50%) scale(1);
}

.subject-card::after,
.topic-button::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0) 70%);
}

.tap-animate {
  animation: tapPress 280ms cubic-bezier(.2, .8, .2, 1);
}

.tap-animate::after {
  animation: tapRipple 620ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes tapPress {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.965);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tapRipple {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-animate,
  .tap-animate::after {
    animation: none;
  }
}

:root {
  --page: #fafafc;
  --apple-purple: #6d5ef8;
  --apple-purple-2: #a78bfa;
  --apple-text: #111111;
  --apple-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--apple-text);
}

.site-header {
  background: rgba(250, 250, 252, 0.78);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  backdrop-filter: blur(22px);
}

.hero {
  min-height: 100vh;
  padding-top: 112px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(4.4rem, 9vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 670px;
  color: #3f3f46;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.section-heading h2,
.featured-copy h2,
.media-copy h2,
.community-section h2 {
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--apple-purple);
}

.apple-orbit {
  min-height: 560px;
  background:
    radial-gradient(circle at 50% 45%, rgba(109, 94, 248, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 243, 255, 0.78));
}

.orbit-stage {
  position: relative;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  animation: floatStage 8s ease-in-out infinite;
}

.orbit-stage::before,
.orbit-stage::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(109, 94, 248, 0.18);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-14deg);
}

.orbit-stage::after {
  inset: 24%;
  border-color: rgba(17, 17, 17, 0.1);
  transform: rotateX(62deg) rotateZ(22deg);
}

.learning-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--apple-purple));
  box-shadow: 0 34px 90px rgba(109, 94, 248, 0.34);
  transform: translate(-50%, -50%);
}

.learn-object {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  font-size: 1.55rem;
  animation: slowSpin 14s linear infinite;
}

.object-book { left: 10%; top: 26%; }
.object-brain { right: 10%; top: 18%; animation-delay: -2s; }
.object-atom { right: 13%; bottom: 20%; animation-delay: -4s; }
.object-globe { left: 14%; bottom: 18%; animation-delay: -6s; }
.object-scope { left: 50%; top: 3%; animation-delay: -8s; }

.why-section .about-grid article,
.library-rail article {
  min-height: 190px;
  border: 1px solid var(--apple-border);
  background: rgba(255, 255, 255, 0.9);
}

.why-icon {
  display: block;
  margin-bottom: 18px;
  font-size: 2rem;
}

.featured-section {
  width: var(--content);
  margin: 0 auto 84px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: stretch;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 52px);
  background: #111;
  color: #fff;
  overflow: hidden;
}

.featured-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.lesson-meta span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.featured-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 310px;
  border-radius: 28px;
  padding: 30px;
  background:
    radial-gradient(circle at 70% 20%, rgba(167, 139, 250, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.featured-visual span,
.featured-visual strong {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.featured-visual strong {
  margin-left: auto;
  color: #c4b5fd;
}

.flow-section {
  text-align: center;
}

.learning-flow {
  width: min(1040px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.learning-flow span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
}

.learning-flow i {
  display: none;
}

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

.library-rail article {
  border-radius: 28px;
  padding: 24px;
}

.library-rail span {
  color: var(--apple-purple);
  font-size: 0.86rem;
  font-weight: 800;
}

.library-rail strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 1.24rem;
}

.stats-section {
  width: var(--content);
  margin: 0 auto 84px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--apple-border);
  border-bottom: 1px solid var(--apple-border);
}

.stats-section div {
  padding: 30px 18px;
  text-align: center;
}

.stats-section div + div {
  border-left: 1px solid var(--apple-border);
}

.stats-section strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.stats-section span {
  color: #71717a;
}

.community-section {
  width: var(--content);
  margin: 0 auto 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(88, 101, 242, 0.45), transparent 30%),
    linear-gradient(135deg, #111, #2e1065);
}

.community-section p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.reveal {
  transition-duration: 1050ms;
}

@keyframes floatStage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg) translateY(0); }
  to { transform: rotate(360deg) translateY(0); }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 106px;
  }

  .featured-section,
  .community-section {
    grid-template-columns: 1fr;
  }

  .featured-section {
    display: grid;
  }

  .learning-flow,
  .library-rail,
  .stats-section {
    grid-template-columns: 1fr 1fr;
  }

  .stats-section div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--apple-border);
  }

  .stats-section div:nth-child(4) {
    border-top: 1px solid var(--apple-border);
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: clamp(3.3rem, 16vw, 4.4rem);
  }

  .apple-orbit {
    min-height: 390px;
  }

  .learning-core {
    width: 88px;
    height: 88px;
  }

  .learn-object {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.25rem;
  }

  .learning-flow,
  .library-rail,
  .stats-section {
    grid-template-columns: 1fr;
  }

  .stats-section div + div,
  .stats-section div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--apple-border);
  }

  .community-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-stage,
  .learn-object {
    animation: none;
  }
}

.site-header {
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell {
  min-height: 42px;
}

.brand,
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
}

.brand small {
  color: rgba(255, 255, 255, 0.48);
}

.brand-mark {
  color: #000;
  background: #f5f5f7;
}

.promo-strip {
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.92);
  background: #1d1d1f;
  text-align: center;
  font-size: 0.96rem;
}

.promo-strip a {
  color: #2997ff;
  font-weight: 700;
}

.hero {
  width: 100%;
  min-height: calc(100vh - 42px);
  grid-template-columns: 1fr;
  gap: 0;
  padding: 86px 0 0;
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}

.hero-copy {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero-copy h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(3.7rem, 8vw, 5.4rem);
  line-height: 1.02;
}

.hero-copy p {
  max-width: none;
  margin-inline: auto;
  color: rgba(245, 245, 247, 0.88);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.12;
}

.hero .eyebrow {
  color: rgba(245, 245, 247, 0.7);
}

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

.hero-actions .button {
  min-height: 44px;
  padding: 10px 22px;
}

.hero-actions .secondary {
  color: #2997ff;
  border-color: #2997ff;
  background: transparent;
}

.apple-orbit {
  width: 100%;
  min-height: 530px;
  margin: -18px 0 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(109, 94, 248, 0.35), transparent 18%),
    radial-gradient(circle at 50% 76%, rgba(255, 255, 255, 0.2), transparent 24%),
    #000;
  box-shadow: none;
}

.orbit-stage {
  width: min(780px, 96vw);
}

.orbit-stage::before {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.08);
}

.orbit-stage::after {
  border-color: rgba(109, 94, 248, 0.28);
}

.learning-core {
  width: 160px;
  height: 160px;
  font-size: 2rem;
  box-shadow: 0 42px 120px rgba(109, 94, 248, 0.48);
}

.learn-object {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
  backdrop-filter: blur(18px);
}

.apple-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
}

.apple-tile {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: stretch;
  justify-items: center;
  gap: 8px;
  padding: clamp(38px, 5vw, 62px) 24px 28px;
  text-align: center;
  background: #f5f5f7;
}

.apple-tile h2 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 90%;
}

.apple-tile p:not(.eyebrow) {
  max-width: 560px;
  color: #1d1d1f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.25;
  min-height: 2.6em;
}

.apple-tile a {
  margin-top: 8px;
  color: #0066cc;
  font-size: 1.02rem;
  font-weight: 700;
}

.tile-dark {
  color: #f5f5f7;
  background: #000;
}

.tile-dark p:not(.eyebrow) {
  color: rgba(245, 245, 247, 0.82);
}

.tile-dark .eyebrow {
  color: rgba(245, 245, 247, 0.72);
}

.tile-visual {
  position: relative;
  align-self: end;
  margin-top: 22px;
  width: min(520px, 70%);
  aspect-ratio: 1.8;
  display: grid;
  place-items: center;
  border-radius: 42px;
  font-size: clamp(4rem, 13vw, 9rem);
  background:
    radial-gradient(circle at 40% 20%, rgba(167, 139, 250, 0.42), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  animation: productFloat 6s ease-in-out infinite;
}

.tile-light .tile-visual {
  background:
    radial-gradient(circle at 40% 20%, rgba(109, 94, 248, 0.18), transparent 32%),
    linear-gradient(145deg, #fff, #ececf1);
  box-shadow: 0 44px 110px rgba(17, 17, 17, 0.12);
}

.tile-visual.math {
  width: min(560px, 78%);
  height: 190px;
  aspect-ratio: auto;
  color: #111;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 900;
}

@keyframes productFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.018); }
}

@media (max-width: 980px) {
  .nav-links {
    background: rgba(0, 0, 0, 0.94);
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.82);
  }

  .apple-card-grid {
    grid-template-columns: 1fr;
  }

  .apple-tile {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .promo-strip {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 760px;
    padding-top: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero-copy p {
    font-size: clamp(1.28rem, 7vw, 1.8rem);
  }

  .apple-orbit {
    min-height: 410px;
  }

  .learning-core {
    width: 112px;
    height: 112px;
    font-size: 1.45rem;
  }

  .learn-object {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.45rem;
  }

  .apple-card-grid {
    padding: 8px;
    gap: 8px;
  }

  .apple-tile {
    min-height: 470px;
  }
}

.media-preview {
  background:
    radial-gradient(circle at center, rgba(255, 186, 73, 0.2), rgba(255, 255, 255, 0.72) 38%, rgba(8, 8, 12, 0.045)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.84));
}

.media-preview .sun {
  background: radial-gradient(circle at 38% 34%, #fff8c7 0 12%, #ffc857 34%, #ff8a1f 72%, #d9480f 100%);
  box-shadow: 0 0 34px rgba(255, 181, 51, 0.46), 0 0 80px rgba(255, 196, 87, 0.2);
}

.media-preview .orbit {
  border-color: rgba(8, 8, 12, 0.18);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-12deg);
}

.media-preview .orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 181, 51, 0.14);
  border-radius: inherit;
}

.media-preview .orbit-one i {
  background: #4f8cff;
}

.media-preview .orbit-two i {
  background: #d97706;
}

.media-preview .orbit-three i {
  background: #2f6fdf;
}

.viewer-section.open {
  display: block;
  min-height: min(78dvh, 820px);
  animation: viewerIn 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.viewer-section.open #viewer-frame {
  height: min(68dvh, 720px);
  min-height: 420px;
}

.viewer-section.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  overflow: hidden;
  animation: viewerFullscreenIn 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.viewer-section.fullscreen .viewer-topbar {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
  margin: 0;
  min-height: 0;
  pointer-events: none;
}

.viewer-section.fullscreen .viewer-topbar > div {
  display: none;
}

.viewer-section.fullscreen .viewer-actions {
  pointer-events: auto;
}

.viewer-section.fullscreen #fullscreen-viewer {
  display: none;
}

.viewer-section.fullscreen #viewer-frame {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 620px) {
  .viewer-section.open {
    padding: 14px;
  }

  .viewer-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .viewer-section.open #viewer-frame {
    height: 64dvh;
    min-height: 360px;
  }

  .viewer-section.fullscreen {
    padding: 0;
  }

  .viewer-section.fullscreen .viewer-topbar {
    top: 10px;
    right: 10px;
    width: auto;
    gap: 0;
  }

  .viewer-section.fullscreen #viewer-frame {
    height: 100dvh;
    border-radius: 0;
  }
}

/* 60/30/10 palette lock: 60% white, 30% purple highlight, 10% black text/actions. */
.promo-strip {
  display: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.brand,
.nav-links a {
  color: #111;
}

.brand small {
  color: #71717a;
}

.brand-mark {
  color: #fff;
  background: #111;
}

.hero {
  background:
    radial-gradient(circle at 50% 76%, rgba(109, 94, 248, 0.18), transparent 28%),
    #fafafc;
  color: #111;
}

.hero-copy p {
  color: #3f3f46;
}

.hero .eyebrow {
  color: #6d5ef8;
}

.hero-actions .secondary {
  color: #111;
  border-color: #111;
  background: transparent;
}

.apple-orbit {
  background:
    radial-gradient(circle at 50% 58%, rgba(109, 94, 248, 0.24), transparent 18%),
    radial-gradient(circle at 50% 76%, rgba(255, 255, 255, 0.94), transparent 24%),
    #fafafc;
}

.orbit-stage::before {
  border-color: rgba(109, 94, 248, 0.2);
  box-shadow: 0 0 80px rgba(109, 94, 248, 0.08);
}

.learn-object {
  border-color: rgba(229, 231, 235, 0.95);
  color: #111;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.1);
}

.apple-card-grid {
  background: #fafafc;
}

.apple-tile,
.tile-dark,
.tile-light,
.featured-section,
.community-section {
  color: #111;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.tile-dark p:not(.eyebrow),
.apple-tile p:not(.eyebrow),
.featured-copy p,
.community-section p {
  color: #3f3f46;
}

.tile-dark .eyebrow,
.apple-tile .eyebrow {
  color: #6d5ef8;
}

.tile-dark .tile-visual,
.tile-light .tile-visual,
.featured-visual {
  background:
    radial-gradient(circle at 40% 20%, rgba(109, 94, 248, 0.24), transparent 32%),
    linear-gradient(145deg, #fff, #f4f4f7);
  box-shadow: 0 44px 110px rgba(17, 17, 17, 0.12);
}

.lesson-meta span,
.featured-visual span,
.featured-visual strong {
  color: #111;
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, 0.88);
}

.community-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(109, 94, 248, 0.2), transparent 30%),
    #fff;
}

@media (max-width: 980px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links a {
    color: #111;
  }
}

/* Lesson reading experience cleanup */
.study-layout {
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

.topic-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 6px 4px 24px;
  background: transparent;
  box-shadow: none;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading .eyebrow {
  display: none;
}

.panel-heading h2 {
  font-size: 1.85rem;
  line-height: 1.12;
}

.subject-tabs {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  color: #6d5ef8;
  font-size: 0.95rem;
  font-weight: 800;
}

.topic-list {
  gap: 22px;
}

.topic-group {
  border: 0;
}

.topic-group + .topic-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.topic-group summary {
  cursor: pointer;
  color: #111;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 900;
}

.topic-group summary::-webkit-details-marker {
  display: none;
}

.topic-group summary::after {
  content: "⌄";
  float: right;
  color: #6d5ef8;
}

.topic-group:not([open]) summary::after {
  content: "›";
}

.topic-group-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.topic-button {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px 10px;
  color: #3f3f46;
  background: transparent;
  font-size: 0.96rem;
  line-height: 1.35;
}

.topic-button:hover,
.topic-button:focus-visible {
  color: #111;
  background: rgba(109, 94, 248, 0.08);
}

.topic-button.active {
  color: #6d5ef8;
  background: rgba(109, 94, 248, 0.12);
}

.topic-button .topic-dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 99px;
  background: #d4d4d8;
}

.topic-button.active .topic-dot {
  background: #6d5ef8;
}

.topic-button span:not(.topic-dot) {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.lesson-view {
  border: 0;
  border-radius: 32px;
  padding: clamp(30px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
}

.lesson-kicker {
  margin-bottom: 24px;
  border-color: rgba(109, 94, 248, 0.24);
  color: #6d5ef8;
  background: rgba(109, 94, 248, 0.08);
}

.lesson-view h2 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.04;
}

.lesson-intro {
  max-width: 760px;
  margin-top: 18px;
  color: #52525b;
  font-size: 1.08rem;
}

.content-block {
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 0;
  padding-top: 0;
}

.content-block h3 {
  margin-bottom: 18px;
  font-size: 1.28rem;
}

.content-block ul {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.content-block ul li {
  position: relative;
  padding-left: 22px;
  color: #3f3f46;
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #6d5ef8;
}

.example-card {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
  background: #f5f5f7;
  color: #111;
  box-shadow: none;
}

.example-card span {
  color: #6d5ef8;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.example-card strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.example-card i {
  color: #a78bfa;
  font-style: normal;
  font-weight: 900;
}

.calculation-block {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e4e4e7;
}

.calculation-heading { display: flex; align-items: baseline; gap: 10px; }
.calculation-heading span { color: #6d5ef8; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.calculation-heading h4 { margin: 0; color: #18181b; font-size: 1.15rem; }
.calculation-block > p:not(.calculation-insight) { margin: 12px 0 0; color: #52525b; line-height: 1.6; }
.calculation-block dl { margin: 20px 0 0; border-top: 1px solid #e4e4e7; }
.calculation-block dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 13px 0; border-bottom: 1px solid #e4e4e7; }
.calculation-block dt { color: #3f3f46; font-size: .94rem; }
.calculation-block dt small { display: block; margin-top: 3px; color: #71717a; font-size: .76rem; }
.calculation-block dd { margin: 0; color: #18181b; font-size: .94rem; font-weight: 800; text-align: right; white-space: nowrap; }
.calculation-block .calculation-total { border-top: 1px solid #a1a1aa; }
.calculation-block .calculation-result { color: #6d5ef8; border-bottom-color: transparent; }
.calculation-block .calculation-result dt,
.calculation-block .calculation-result dd { color: inherit; font-size: 1.04rem; }
.calculation-insight { margin: 20px 0 0; padding-left: 14px; border-left: 2px solid #a78bfa; color: #52525b; font-size: .9rem; line-height: 1.6; }

.lesson-deep-block { max-width: 760px; }
.lesson-deep-lens { max-width: 68ch; margin: 0; color: #3f3f46; font-size: 1.04rem; line-height: 1.72; }
.lesson-method { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.lesson-method li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.lesson-method span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d4d4d8; border-radius: 50%; color: #6d5ef8; font-size: .68rem; font-weight: 900; }
.lesson-method p { margin: 2px 0 0; color: #3f3f46; line-height: 1.62; }
.lesson-analysis-prompt { margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid #e4e4e7; }
.lesson-analysis-prompt span { color: #71717a; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lesson-analysis-prompt p { max-width: 64ch; margin: 8px 0 0; color: #18181b; font-size: 1rem; font-weight: 650; line-height: 1.6; }
.lesson-extended-section { max-width: 70ch; margin-top: 46px; padding-top: 34px; border-top: 1px solid #e4e4e7; }
.lesson-extended-section h4 { margin: 0; color: #18181b; font-size: clamp(1.18rem, 2vw, 1.4rem); line-height: 1.35; }
.lesson-extended-section > p { margin: 16px 0 0; color: #3f3f46; line-height: 1.74; }
.lesson-extended-section .lesson-extended-formula { padding-left: 14px; border-left: 2px solid #a78bfa; color: #27272a; font-weight: 750; }
.lesson-extended-section ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.lesson-extended-section li { position: relative; padding-left: 18px; color: #52525b; line-height: 1.6; }
.lesson-extended-section li::before { position: absolute; left: 0; color: #6d5ef8; content: "-"; font-weight: 900; }

#lesson-reflect {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

#lesson-reflect li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: #3f3f46;
}

#lesson-reflect li span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #6d5ef8;
  background: rgba(109, 94, 248, 0.1);
  font-weight: 900;
}

.lesson-next {
  margin-top: clamp(44px, 6vw, 64px);
  border-radius: 24px;
  padding: 22px;
  background: rgba(109, 94, 248, 0.08);
}

.lesson-next span {
  color: #6d5ef8;
  font-weight: 900;
}

.lesson-next p {
  margin-top: 8px;
  color: #52525b;
}

/* AKTS Global Footer V1: quiet, light, and consistent across information pages. */
.global-footer {
  margin-top: clamp(64px, 10vw, 148px);
  color: #18181b;
  background: #faf9fd;
}

.global-footer-closing,
.global-footer-inner {
  width: min(1240px, calc(100vw - 64px));
  margin: 0 auto;
}

.global-footer-closing {
  padding: 0 0 clamp(56px, 8vw, 110px);
}

.global-footer-closing p {
  max-width: 680px;
  margin: 0;
  color: #18181b;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 750;
  line-height: 1.16;
}

.global-footer-closing span {
  display: block;
  max-width: 470px;
  margin-top: 14px;
  color: #62626b;
  font-size: 1rem;
  line-height: 1.65;
}

.global-footer-surface { background: #f6f5fa; }
.global-footer-inner { padding: 0 0 42px; }
.global-footer-divider { height: 1px; background: rgba(109, 94, 248, 0.14); }

.global-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
  color: #18181b;
}

.global-footer-brand img { width: 31px; height: 31px; border-radius: 8px; object-fit: cover; }
.global-footer-brand span { display: grid; gap: 5px; }
.global-footer-brand strong { font-size: .8rem; font-weight: 750; letter-spacing: .075em; }
.global-footer-brand small { color: #71717a; font-size: .78rem; }

.global-footer-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 62px);
  margin-top: clamp(42px, 5vw, 56px);
}

.global-footer-group-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: #27272a;
  background: transparent;
  font-size: .82rem;
  font-weight: 750;
  text-align: left;
}

.global-footer-group-title b { display: none; font-size: 1.2rem; font-weight: 400; }
.global-footer-group-links { display: grid; gap: 10px; margin-top: 16px; }
.global-footer-group-links a,
.global-footer-legal a {
  width: fit-content;
  min-height: 22px;
  color: #62626d;
  font-size: .79rem;
  line-height: 1.45;
  transition: color 180ms ease;
}

.global-footer-group-links a:hover,
.global-footer-group-links a:focus-visible,
.global-footer-legal a:hover,
.global-footer-legal a:focus-visible { color: #18181b; }
.global-footer-group-links a[aria-current="page"] { color: #3f3f46; font-weight: 650; }
.global-footer a:focus-visible,
.global-footer-group-title:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; border-radius: 2px; }

.global-footer-legal-divider { margin-top: clamp(48px, 6vw, 64px); }
.global-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 22px;
  color: #71717a;
  font-size: .72rem;
  line-height: 1.5;
}

.global-footer-legal p { margin: 0; }
.global-footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.global-footer-legal-links a { font-size: inherit; }
.global-footer-signature { margin: 15px 0 0; color: #8a8897; font-size: .72rem; }

.policy-page { background: #fbfaff; color: #18181b; }
.policy-page::before { opacity: .42; }
.policy-nav { display: flex; align-items: center; gap: 18px; color: #62626d; font-size: .84rem; }
.policy-nav a { min-height: 36px; display: inline-flex; align-items: center; }
.policy-nav a:hover, .policy-nav a:focus-visible { color: #18181b; }
.policy-main { width: min(1180px, calc(100vw - 64px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0 0; }
.policy-hero { max-width: 760px; padding-bottom: clamp(48px, 7vw, 80px); }
.policy-eyebrow { margin: 0; color: #6d5ef8; font-size: .75rem; font-weight: 800; letter-spacing: .09em; }
.policy-hero h1 { margin: 16px 0 0; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: 0; }
.policy-hero > p { max-width: 640px; margin: 24px 0 0; color: #52525b; font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.7; }
.policy-hero > span { display: block; margin-top: 24px; color: #71717a; font-size: .82rem; }
.policy-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: clamp(48px, 9vw, 128px); align-items: start; padding-bottom: clamp(72px, 10vw, 130px); }
.policy-toc { position: sticky; top: 110px; display: grid; gap: 10px; padding-top: 8px; }
.policy-toc p { margin: 0 0 5px; color: #18181b; font-size: .77rem; font-weight: 800; }
.policy-toc a { color: #71717a; font-size: .8rem; line-height: 1.45; }
.policy-toc a:hover, .policy-toc a:focus-visible { color: #6d5ef8; }
.policy-content { min-width: 0; }
.policy-content section { scroll-margin-top: 120px; }
.policy-content section + section { margin-top: 52px; padding-top: 52px; border-top: 1px solid rgba(109, 94, 248, .14); }
.policy-content h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.policy-content h3 { margin: 30px 0 0; font-size: 1.05rem; }
.policy-content p, .policy-content li { color: #46464f; font-size: 1rem; line-height: 1.82; }
.policy-content p { margin: 16px 0 0; }
.policy-content ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.policy-content li { position: relative; padding-left: 18px; }
.policy-content li::before { position: absolute; left: 0; color: #6d5ef8; content: "-"; font-weight: 800; }
.policy-inline-link { color: #6d5ef8; text-decoration: underline; text-decoration-color: rgba(109, 94, 248, .35); text-underline-offset: 3px; }
.policy-inline-link:hover, .policy-inline-link:focus-visible { color: #4f46e5; text-decoration-color: currentColor; }
.policy-content .policy-closing { margin-top: 68px; padding: 30px 0 0; border-top-color: rgba(109, 94, 248, .24); }
.policy-closing p:first-child { color: #18181b; font-size: 1.17rem; font-weight: 700; line-height: 1.65; }
.policy-closing p:last-child { color: #6d5ef8; font-weight: 700; }

.help-main { width: min(980px, calc(100vw - 64px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0 clamp(72px, 10vw, 130px); }
.help-hero { max-width: 700px; padding-bottom: clamp(42px, 6vw, 64px); }
.help-hero h1 { margin: 16px 0 0; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; }
.help-hero > p { max-width: 590px; margin: 22px 0 0; color: #52525b; font-size: 1.08rem; line-height: 1.7; }
.help-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(109, 94, 248, .16); border-bottom: 1px solid rgba(109, 94, 248, .16); }
.help-paths a { min-height: 160px; display: grid; align-content: start; gap: 8px; padding: 24px; border-right: 1px solid rgba(109, 94, 248, .16); color: #18181b; }
.help-paths a:last-child { border-right: 0; }
.help-paths a:hover, .help-paths a:focus-visible { background: rgba(109, 94, 248, .06); }
.help-paths span { color: #6d5ef8; font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.help-paths strong { font-size: 1.02rem; }
.help-paths small { color: #71717a; font-size: .82rem; line-height: 1.5; }
.help-section { max-width: 720px; margin-top: clamp(62px, 9vw, 102px); }
.help-section h2, .help-contact h2 { margin: 12px 0 0; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.2; }
.help-faq-list { margin-top: 28px; border-top: 1px solid rgba(109, 94, 248, .16); }
.help-faq-list details { border-bottom: 1px solid rgba(109, 94, 248, .16); }
.help-faq-list summary { min-height: 66px; display: flex; align-items: center; padding: 14px 34px 14px 0; color: #27272a; font-size: 1rem; font-weight: 700; line-height: 1.45; cursor: pointer; list-style: none; position: relative; }
.help-faq-list summary::-webkit-details-marker { display: none; }
.help-faq-list summary::after { content: "+"; position: absolute; right: 4px; color: #6d5ef8; font-size: 1.35rem; font-weight: 400; }
.help-faq-list details[open] summary::after { content: "−"; }
.help-faq-list p { max-width: 66ch; margin: -3px 34px 22px 0; color: #52525b; line-height: 1.75; }
.help-contact { max-width: 720px; margin-top: clamp(68px, 10vw, 120px); padding-top: 34px; border-top: 1px solid rgba(109, 94, 248, .24); }
.help-contact > p:not(.policy-eyebrow) { max-width: 640px; margin: 18px 0 0; color: #52525b; line-height: 1.7; }
.help-contact > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.support-main { width: min(980px, calc(100vw - 64px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0 clamp(72px, 10vw, 130px); }
.support-layout { display: grid; grid-template-columns: minmax(200px, .68fr) minmax(0, 1.32fr); gap: clamp(38px, 7vw, 90px); align-items: start; }
.support-note { position: sticky; top: 110px; }
.support-note h2 { margin: 12px 0 0; font-size: 1.35rem; line-height: 1.3; }
.support-note ul { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.support-note li { position: relative; padding-left: 16px; color: #62626d; font-size: .9rem; line-height: 1.65; }
.support-note li::before { position: absolute; left: 0; color: #6d5ef8; content: "-"; font-weight: 800; }
.support-form { display: grid; gap: 24px; }
.support-field { display: grid; gap: 9px; }
.support-field label { color: #27272a; font-size: .9rem; font-weight: 750; }
.support-field label span { color: #71717a; font-weight: 400; }
.support-field input, .support-field select, .support-field textarea { width: 100%; border: 1px solid rgba(109, 94, 248, .2); border-radius: 6px; padding: 13px 14px; color: #27272a; background: rgba(255, 255, 255, .78); font: inherit; font-size: .95rem; line-height: 1.5; outline: none; }
.support-field textarea { min-height: 130px; resize: vertical; }
.support-field input:focus, .support-field select:focus, .support-field textarea:focus { border-color: #8b7cf5; box-shadow: 0 0 0 3px rgba(109, 94, 248, .11); }
.support-submit { display: grid; justify-items: start; gap: 12px; margin-top: 8px; }
.support-submit .button { min-height: 48px; }
.support-submit .button:disabled { cursor: wait; opacity: .7; }
.support-submit p { max-width: 480px; margin: 0; color: #71717a; font-size: .82rem; line-height: 1.6; }

.ecosystem-main { width: min(980px, calc(100vw - 64px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0 clamp(72px, 10vw, 130px); }
.news-list { border-top: 1px solid rgba(109, 94, 248, .16); }
.news-list article { max-width: 760px; padding: clamp(32px, 5vw, 54px) 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
.news-list time, .partner-areas span, .community-principles span { color: #6d5ef8; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.news-list h2, .partner-areas h2, .community-principles h2, .partner-cta h2, .community-guide h2 { margin: 12px 0 0; color: #18181b; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.25; }
.news-list p, .partner-intro p, .partner-areas p, .community-principles p, .partner-cta p:not(.policy-eyebrow), .community-guide li { color: #52525b; line-height: 1.75; }
.news-list p { max-width: 62ch; margin: 16px 0 0; }
.news-list a { display: inline-block; margin-top: 20px; color: #6d5ef8; font-size: .9rem; font-weight: 750; }
.partner-intro { max-width: 720px; padding: 28px 0 34px; border-top: 1px solid rgba(109, 94, 248, .16); }
.partner-intro p { margin: 0; font-size: 1.1rem; }
.partner-areas, .community-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(109, 94, 248, .16); border-bottom: 1px solid rgba(109, 94, 248, .16); }
.partner-areas article, .community-principles article { min-height: 240px; padding: 28px; border-right: 1px solid rgba(109, 94, 248, .16); }
.partner-areas article:last-child, .community-principles article:last-child { border-right: 0; }
.partner-areas p, .community-principles p { margin: 14px 0 0; font-size: .94rem; }
.partner-cta, .community-guide { max-width: 720px; margin-top: clamp(68px, 10vw, 118px); padding-top: 34px; border-top: 1px solid rgba(109, 94, 248, .24); }
.partner-cta p:not(.policy-eyebrow), .community-guide > p:not(.policy-eyebrow) { margin: 16px 0 0; }
.partner-cta .button { margin-top: 26px; }
.community-guide ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.community-guide li { position: relative; padding-left: 18px; }
.community-guide li::before { position: absolute; left: 0; color: #6d5ef8; content: "-"; font-weight: 800; }
.community-guide div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.about-statement { max-width: 760px; padding: 28px 0 38px; border-top: 1px solid rgba(109, 94, 248, .16); }
.about-statement p { margin: 0; color: #3f3f46; font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 650; line-height: 1.62; }
.about-ecosystem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(109, 94, 248, .16); border-bottom: 1px solid rgba(109, 94, 248, .16); }
.about-ecosystem article { min-height: 260px; padding: 28px; border-right: 1px solid rgba(109, 94, 248, .16); }
.about-ecosystem article:last-child { border-right: 0; }
.about-ecosystem span, .student-journey span { color: #6d5ef8; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.about-ecosystem h2, .student-journey h2, .about-closing h2, .ecosystem-note h2 { margin: 12px 0 0; color: #18181b; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.25; }
.about-ecosystem p, .about-closing p:not(.policy-eyebrow), .student-journey p, .ecosystem-note p:not(.policy-eyebrow) { color: #52525b; line-height: 1.75; }
.about-ecosystem p { margin: 14px 0 0; font-size: .94rem; }
.about-ecosystem a, .student-journey a { display: inline-block; margin-top: 20px; color: #6d5ef8; font-size: .9rem; font-weight: 750; }
.about-closing, .ecosystem-note { max-width: 720px; margin-top: clamp(68px, 10vw, 118px); padding-top: 34px; border-top: 1px solid rgba(109, 94, 248, .24); }
.about-closing p:not(.policy-eyebrow), .ecosystem-note p:not(.policy-eyebrow) { margin: 16px 0 0; }
.student-journey { border-top: 1px solid rgba(109, 94, 248, .16); }
.student-journey article { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; max-width: 760px; padding: clamp(30px, 5vw, 48px) 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
.student-journey span { padding-top: 6px; }
.student-journey h2 { margin-top: 0; }
.student-journey p { max-width: 60ch; margin: 14px 0 0; }
.student-services { max-width: 760px; margin-top: clamp(66px, 9vw, 104px); border-top: 1px solid rgba(109, 94, 248, .16); }
.student-services article { scroll-margin-top: 110px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; padding: clamp(30px, 5vw, 48px) 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
.student-services span { padding-top: 6px; color: #6d5ef8; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.student-services h2 { margin: 0; color: #18181b; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.28; }
.student-services p { max-width: 60ch; margin: 14px 0 0; color: #52525b; line-height: 1.75; }
.student-services a { display: inline-block; margin-top: 18px; color: #6d5ef8; font-size: .9rem; font-weight: 750; }

.store-coming-soon {
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: clamp(80px, 12vw, 160px) 24px;
  text-align: center;
}

.store-coming-soon > div { max-width: 620px; }
.store-mark { width: 74px; height: 74px; margin-bottom: 28px; border-radius: 18px; box-shadow: 0 18px 42px rgba(109, 94, 248, .16); }
.store-coming-soon h1 { margin: 12px 0 16px; color: #18181b; font-size: clamp(3.25rem, 9vw, 7.25rem); font-weight: 850; letter-spacing: .04em; line-height: .95; }
.store-coming-soon p { margin: 0; color: #27272a; font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 750; }
.store-coming-soon span { display: block; max-width: 36ch; margin: 16px auto 32px; color: #71717a; line-height: 1.75; }

@media (max-width: 767px) {
  .store-coming-soon { min-height: calc(100svh - 76px); padding-inline: 20px; }
  .store-mark { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 16px; }
}

.finance-intro { max-width: 760px; padding: 28px 0 38px; border-top: 1px solid rgba(109, 94, 248, .16); }
.finance-intro p { margin: 0; color: #3f3f46; font-size: clamp(1.16rem, 2.3vw, 1.45rem); font-weight: 650; line-height: 1.65; }
.finance-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(109, 94, 248, .16); border-bottom: 1px solid rgba(109, 94, 248, .16); }
.finance-ledger div { display: grid; gap: 9px; min-height: 164px; padding: 24px; border-right: 1px solid rgba(109, 94, 248, .16); }
.finance-ledger div:last-child { border-right: 0; }
.finance-ledger span, .finance-learning span { color: #6d5ef8; font-size: .75rem; font-weight: 800; }
.finance-ledger strong { color: #18181b; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.15; }
.finance-ledger small { color: #71717a; font-size: .78rem; line-height: 1.5; }
.finance-ledger .finance-result { background: rgba(109, 94, 248, .055); }
.finance-learning { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(60px, 8vw, 90px); border-top: 1px solid rgba(109, 94, 248, .16); border-bottom: 1px solid rgba(109, 94, 248, .16); }
.finance-learning article { min-height: 220px; padding: 26px; border-right: 1px solid rgba(109, 94, 248, .16); }
.finance-learning article:last-child { border-right: 0; }
.finance-learning h2, .finance-note h2 { margin: 12px 0 0; color: #18181b; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3; }
.finance-learning p, .finance-note p:not(.policy-eyebrow) { color: #52525b; line-height: 1.72; }
.finance-learning p { margin: 14px 0 0; font-size: .92rem; }
.finance-note { max-width: 720px; margin-top: clamp(68px, 10vw, 118px); padding-top: 34px; border-top: 1px solid rgba(109, 94, 248, .24); }
.finance-note p:not(.policy-eyebrow) { margin: 16px 0 0; }
.finance-note .button { margin-top: 26px; }

@media (max-width: 767px) {
  .help-main { width: min(100% - 40px, 680px); padding-top: 68px; padding-bottom: 72px; }
  .help-hero h1 { font-size: clamp(2.65rem, 14vw, 3.4rem); }
  .help-paths { grid-template-columns: 1fr; }
  .help-paths a { min-height: 0; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
  .help-paths a:last-child { border-bottom: 0; }
  .help-paths a span { grid-row: span 2; padding-top: 3px; }
  .help-paths a small { grid-column: 2; }
  .help-faq-list summary { min-height: 62px; font-size: .96rem; }
  .help-faq-list p { margin-right: 10px; font-size: .94rem; }
  .support-main { width: min(100% - 40px, 680px); padding-top: 68px; padding-bottom: 72px; }
  .support-layout { display: block; }
  .support-note { position: static; margin-bottom: 46px; }
  .support-submit .button { width: 100%; }
  .ecosystem-main { width: min(100% - 40px, 680px); padding-top: 68px; padding-bottom: 72px; }
  .partner-areas, .community-principles { grid-template-columns: 1fr; }
  .partner-areas article, .community-principles article { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
  .partner-areas article:last-child, .community-principles article:last-child { border-bottom: 0; }
  .community-guide div .button { width: 100%; }
  .about-ecosystem { grid-template-columns: 1fr; }
  .about-ecosystem article { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
  .about-ecosystem article:last-child { border-bottom: 0; }
  .student-journey article { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .student-services article { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .finance-ledger, .finance-learning { grid-template-columns: 1fr; }
  .finance-ledger div, .finance-learning article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(109, 94, 248, .16); }
  .finance-ledger div:last-child, .finance-learning article:last-child { border-bottom: 0; }
}

@media (max-width: 980px) {
  .global-footer-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 38px; }
}

@media (max-width: 767px) {
  .global-footer { margin-top: 72px; }
  .global-footer-closing,
  .global-footer-inner { width: min(100% - 40px, 640px); }
  .global-footer-closing { padding-bottom: 68px; }
  .global-footer-closing p { font-size: clamp(1.65rem, 8vw, 2rem); }
  .global-footer-closing span { max-width: 290px; margin-top: 12px; font-size: .92rem; }
  .global-footer-inner { padding-bottom: 30px; }
  .global-footer-brand { margin-top: 28px; }
  .global-footer-brand img { width: 27px; height: 27px; }
  .global-footer-brand strong { font-size: .73rem; }
  .global-footer-brand small { font-size: .73rem; }
  .global-footer-directory { display: block; margin-top: 34px; }
  .global-footer-group { border-bottom: 1px solid rgba(109, 94, 248, 0.14); }
  .global-footer-group-title { min-height: 53px; font-size: .88rem; }
  .global-footer-group-title b { display: block; color: #71717a; transition: transform 180ms ease; }
  .global-footer-group-title[aria-expanded="true"] b { transform: rotate(45deg); }
  .global-footer-group-links { max-height: 0; gap: 0; margin: 0; overflow: hidden; transition: max-height 200ms ease, padding 200ms ease; }
  .global-footer-group-title[aria-expanded="true"] + .global-footer-group-links { max-height: 240px; padding: 4px 0 16px; }
  .global-footer-group-links a { min-height: 0; overflow: hidden; font-size: .82rem; }
  .global-footer-group-title[aria-expanded="true"] + .global-footer-group-links a { min-height: 24px; }
  .global-footer-legal-divider { margin-top: 0; }
  .global-footer-legal { display: grid; gap: 18px; padding-top: 24px; font-size: .74rem; }
  .global-footer-legal p { max-width: 210px; }
  .global-footer-legal-links { display: grid; gap: 11px; }
  .global-footer-legal-links a { min-height: 25px; font-size: .76rem; }
  .global-footer-signature { margin-top: 22px; font-size: .74rem; }
  .policy-nav { gap: 12px; font-size: .75rem; }
  .policy-main { width: min(100% - 40px, 680px); padding-top: 68px; }
  .policy-hero { padding-bottom: 52px; }
  .policy-hero h1 { font-size: clamp(2.65rem, 14vw, 3.4rem); }
  .policy-layout { display: block; padding-bottom: 72px; }
  .policy-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 50px; padding: 20px 0; border-top: 1px solid rgba(109, 94, 248, .14); border-bottom: 1px solid rgba(109, 94, 248, .14); }
  .policy-toc p { grid-column: 1 / -1; }
  .policy-content section + section { margin-top: 40px; padding-top: 40px; }
  .policy-content p, .policy-content li { font-size: .96rem; line-height: 1.75; }
}

@media (max-width: 980px) {
  .topic-panel {
    position: static;
    max-height: none;
  }
}

.topic-panel .topic-button,
.topic-panel .topic-button:hover,
.topic-panel .topic-button:focus-visible,
.topic-panel .topic-button.active,
.topic-panel .topic-button.active:hover {
  box-shadow: none;
  transform: none;
}

.topic-panel .topic-button::after,
.topic-panel .topic-button.tap-animate::after {
  display: none;
}

/* AKTS logo asset */
.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(109, 94, 248, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Event Zone and production states */
.event-button {
  color: #fff;
  border-color: #111;
  background: #111;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.14);
}

.event-button:hover,
.event-button:focus-visible {
  color: #fff;
  border-color: #6d5ef8;
  background: #6d5ef8;
  box-shadow: 0 24px 55px rgba(109, 94, 248, 0.26);
}

.event-callout {
  width: var(--content);
  margin: 84px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111;
  background:
    radial-gradient(circle at 84% 18%, rgba(109, 94, 248, 0.22), transparent 27%),
    #fff;
}

.event-callout h2 {
  max-width: 720px;
  margin-bottom: 12px;
}

.event-callout p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: #52525b;
  font-size: 1.08rem;
  line-height: 1.65;
}

.event-page,
.not-found-page {
  min-height: 100vh;
  color: #111;
  background: #fafafc;
}

.event-page::before,
.not-found-page::before {
  display: none;
}

.event-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-nav-actions .quiet-link,
.event-nav-actions .discord-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.event-nav-actions .quiet-link {
  border: 2px solid transparent;
  background: transparent;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), color 260ms ease, background 260ms ease;
}

.event-nav-actions .quiet-link:hover,
.event-nav-actions .quiet-link:focus-visible,
.event-nav-actions .quiet-link.tap-animate {
  border-color: #111;
  color: #fff;
  background: #111;
  outline: none;
}

.event-nav-actions .discord-link {
  color: #fff;
  background: #5865f2;
  box-shadow: none;
  font-weight: 600;
}

.event-hero {
  width: var(--content);
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(34px, 8vw, 110px);
  padding: clamp(64px, 10vw, 126px) 0;
}

.event-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 8vw, 6.6rem);
  line-height: 0.97;
}

.event-hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: #52525b;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.event-hero-art {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 53% 49%, rgba(109, 94, 248, 0.5), transparent 7%),
    radial-gradient(circle at 54% 49%, rgba(167, 139, 250, 0.24), transparent 32%),
    linear-gradient(145deg, #15111f, #08070d);
}

.event-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-18deg);
}

.event-orbit-two {
  width: 108%;
  border-color: rgba(167, 139, 250, 0.28);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(36deg);
}

.event-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 140px;
  height: 140px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 80px rgba(109, 94, 248, 0.78);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.event-core small {
  margin-top: 10px;
  color: #c4b5fd;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.event-dot {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.88);
}

.dot-one { left: 25%; top: 28%; }
.dot-two { right: 18%; top: 35%; width: 12px; height: 12px; background: #a78bfa; }
.dot-three { left: 35%; bottom: 20%; width: 10px; height: 10px; background: #7dd3fc; }

/* Event Zone uses a soft audio signal instead of a generic orbit graphic. */
.event-hero-art { display: grid; place-items: center; isolation: isolate; }
.event-sound-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(196, 181, 253, 0.28); border-radius: 50%; transform: translate(-50%, -50%); animation: eventSoundPulse 4.8s ease-out infinite; }
.event-sound-ring-one { width: 178px; height: 178px; }
.event-sound-ring-two { width: 292px; height: 292px; border-color: rgba(196, 181, 253, 0.16); animation-delay: -1.6s; }
.event-sound-ring-three { width: 420px; height: 420px; border-color: rgba(196, 181, 253, 0.09); animation-delay: -3.2s; }
.event-vc-label { position: relative; z-index: 1; color: #f5f3ff; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: 0; text-shadow: 0 0 24px rgba(196, 181, 253, 0.65); animation: eventVcLabelGlow 3.2s ease-in-out infinite; }
.event-participant { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 11px; }
.event-participant-one { left: 8%; top: 22%; }
.event-participant-two { right: 8%; bottom: 21%; }
.event-participant-avatar { display: grid; width: 74px; height: 74px; place-items: center; border: 2px solid #38bdf8; border-radius: 50%; color: #dff6ff; background: rgba(18, 31, 52, 0.82); box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.08), 0 0 30px rgba(56, 189, 248, 0.32); animation: eventParticipantPulse 3.2s ease-in-out infinite; }
.event-participant-two .event-participant-avatar { animation-delay: -1.6s; }
.event-participant-avatar svg { width: 34px; height: 34px; }
.event-participant-status { position: absolute; top: 53px; right: -8px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(167, 243, 208, 0.72); border-radius: 50%; color: #a7f3d0; background: #11121d; transition: color 240ms ease, border-color 240ms ease, transform 240ms ease; }
.event-participant-status svg { width: 14px; height: 14px; }
.event-participant-wave { display: flex; height: 33px; align-items: center; gap: 4px; }
.event-participant-wave i { display: block; width: 4px; height: 12px; border-radius: 999px; background: #38bdf8; box-shadow: 0 0 9px rgba(56, 189, 248, 0.65); animation: eventParticipantWave 1.15s ease-in-out infinite; }
.event-participant-wave i:nth-child(2), .event-participant-wave i:nth-child(6) { height: 24px; animation-delay: -.16s; }
.event-participant-wave i:nth-child(3), .event-participant-wave i:nth-child(5) { height: 18px; animation-delay: -.42s; }
.event-participant-wave i:nth-child(4) { height: 31px; animation-delay: -.7s; }
.event-participant.is-muted .event-participant-avatar { border-color: rgba(147, 135, 173, 0.7); color: #9c91ae; box-shadow: 0 0 0 5px rgba(147, 135, 173, 0.06); animation-play-state: paused; }
.event-participant.is-muted .event-participant-status { border-color: #fda4af; color: #fda4af; transform: scale(1.08); }
.event-participant.is-muted .event-participant-wave i { opacity: .22; transform: scaleY(.12); animation-play-state: paused; }
@keyframes eventSoundPulse { 0%, 100% { opacity: 0.34; transform: translate(-50%, -50%) scale(.94); } 48% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes eventVcLabelGlow { 50% { opacity: .72; text-shadow: 0 0 34px rgba(196, 181, 253, 0.9); } }
@keyframes eventParticipantPulse { 50% { box-shadow: 0 0 0 11px rgba(56, 189, 248, 0.025), 0 0 38px rgba(56, 189, 248, 0.48); transform: translateY(-3px); } }
@keyframes eventParticipantWave { 50% { transform: scaleY(.3); opacity: .48; } }
@media (max-width: 520px) { .event-sound-ring-three { width: 340px; height: 340px; } .event-participant-one { left: 5%; top: 18%; } .event-participant-two { right: 5%; bottom: 17%; } .event-participant-avatar { width: 58px; height: 58px; } .event-participant-wave { gap: 3px; } }
@media (prefers-reduced-motion: reduce) { .event-sound-ring, .event-vc-label, .event-participant-avatar, .event-participant-wave i { animation: none; } }

/* Event Zone hero: a single quiet Live Core, not a preview of the voice interface. */
.event-hero {
  grid-template-columns: minmax(0, .84fr) minmax(390px, 1fr);
  min-height: min(780px, calc(92vh - 72px));
  gap: clamp(40px, 9vw, 142px);
}
.event-hero-copy { position: relative; z-index: 2; }
.event-hero-copy > p:not(.eyebrow) { max-width: 540px; font-size: clamp(1.05rem, 1.55vw, 1.28rem); }
.event-hero .hero-actions { align-items: center; }
.event-schedule-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; color: #52525b; font-size: .92rem; font-weight: 650; text-decoration: none; transition: color 160ms ease, transform 160ms ease; }
.event-schedule-link:hover, .event-schedule-link:focus-visible { color: #111; outline: none; transform: translateX(2px); }
.event-schedule-link span { color: #6d5ef8; font-size: 1.08em; }
.event-hero-art {
  min-height: 540px;
  overflow: visible;
  border-radius: 0;
  background: none;
  isolation: isolate;
  perspective: 1100px;
  --live-core-rotate-x: 0deg;
  --live-core-rotate-y: 0deg;
  --presence-drift-x: 0px;
  --presence-drift-y: 0px;
}
.event-hero-art::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: min(86%, 480px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(118, 103, 255, .095), rgba(118, 103, 255, .026) 42%, transparent 70%); transform: translate(-50%, -50%); }
.event-sound-ring { z-index: -1; border-color: rgba(72, 62, 95, .15); animation: eventLiveRing 5.2s ease-in-out infinite; }
.event-sound-ring-one { width: clamp(244px, 28vw, 340px); height: clamp(244px, 28vw, 340px); opacity: .86; }
.event-sound-ring-two { width: clamp(318px, 37vw, 448px); height: clamp(318px, 37vw, 448px); border-color: rgba(118, 103, 255, .1); opacity: .72; animation-delay: -1.75s; }
.event-sound-ring-three { width: clamp(410px, 47vw, 574px); height: clamp(410px, 47vw, 574px); border-color: rgba(72, 62, 95, .06); opacity: .64; animation-delay: -3.5s; }
.event-live-core-wrap { position: relative; z-index: 1; display: grid; width: clamp(238px, 28vw, 360px); aspect-ratio: 1; place-items: center; transform: rotateX(var(--live-core-rotate-x)) rotateY(var(--live-core-rotate-y)); transform-style: preserve-3d; transition: transform 620ms cubic-bezier(.2, .8, .2, 1); }
.event-live-core { position: relative; display: grid; width: 100%; height: 100%; place-content: center; overflow: hidden; border: 1px solid rgba(33, 27, 44, .26); border-radius: 48% 52% 50% 50% / 49% 47% 53% 51%; color: rgba(22, 19, 28, .9); background: linear-gradient(138deg, rgba(255, 255, 255, .94) 0%, rgba(235, 232, 242, .79) 31%, rgba(178, 167, 206, .48) 67%, rgba(72, 63, 91, .5) 100%); box-shadow: inset 10px 12px 24px rgba(255, 255, 255, .76), inset -15px -18px 30px rgba(40, 33, 54, .24), 0 24px 46px rgba(42, 35, 62, .16), 0 0 84px rgba(118, 103, 255, .1); transform: translateZ(12px) rotateZ(-1deg); animation: eventCoreDrift 10s ease-in-out infinite; }
.event-live-core::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(255, 255, 255, .62); border-radius: inherit; opacity: .76; }
.event-live-core::after { content: ""; position: absolute; inset: 0; border: 7px solid rgba(38, 32, 49, .17); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); pointer-events: none; }
.event-core-highlight { position: absolute; left: 15%; top: 11%; width: 44%; height: 22%; border-radius: 50%; background: linear-gradient(110deg, rgba(255, 255, 255, .84), transparent 72%); filter: blur(4px); transform: rotate(-18deg); }
.event-live-core strong, .event-live-core small { position: relative; z-index: 1; display: block; text-align: center; }
.event-live-core strong { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 760; letter-spacing: 0; text-shadow: 0 1px rgba(255, 255, 255, .5); }
.event-live-core small { margin-top: 8px; color: rgba(44, 36, 62, .78); font-size: .56rem; font-weight: 800; letter-spacing: .17em; }
.event-participant { z-index: 2; gap: 0; transform: translate(var(--presence-drift-x), var(--presence-drift-y)); transition: transform 620ms cubic-bezier(.2, .8, .2, 1); }
.event-participant-one { left: 7%; top: 19%; }
.event-participant-two { right: 5%; bottom: 17%; }
.event-participant-avatar { width: clamp(58px, 6vw, 74px); height: clamp(58px, 6vw, 74px); border: 1px solid rgba(37, 31, 51, .2); color: #3a314e; background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px rgba(255, 255, 255, .82), 0 14px 28px rgba(38, 30, 55, .13); animation: none; backdrop-filter: blur(9px); }
.event-participant-avatar svg { width: 31px; height: 31px; }
.event-participant.is-speaking .event-participant-avatar { border-color: rgba(118, 103, 255, .48); box-shadow: inset 0 1px rgba(255, 255, 255, .82), 0 0 0 4px rgba(118, 103, 255, .07), 0 14px 28px rgba(38, 30, 55, .13); animation: eventPresencePulse 4.4s ease-in-out infinite; }
.event-vc-label, .event-participant-status, .event-participant-wave { display: none; }
@keyframes eventLiveRing { 0%, 100% { transform: translate(-50%, -50%) scale(.99); } 50% { transform: translate(-50%, -50%) scale(1.018); } }
@keyframes eventCoreDrift { 0%, 100% { transform: translateZ(12px) rotateZ(-1deg) rotateY(-1.2deg); } 50% { transform: translateZ(12px) rotateZ(.8deg) rotateY(1.2deg); } }
@keyframes eventPresencePulse { 50% { box-shadow: inset 0 1px rgba(255, 255, 255, .82), 0 0 0 8px rgba(118, 103, 255, 0), 0 14px 28px rgba(38, 30, 55, .13); } }
@media (max-width: 980px) {
  .event-hero { grid-template-columns: 1fr; gap: 8px; padding-bottom: 72px; }
  .event-hero-art { min-height: 430px; max-width: 650px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .event-hero { padding-top: 56px; }
  .event-hero .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .event-hero .hero-actions .button { width: 100%; }
  .event-schedule-link { justify-content: center; }
  .event-hero-art { min-height: 330px; }
  .event-live-core-wrap { width: 228px; }
  .event-sound-ring-two { width: 310px; height: 310px; }
  .event-sound-ring-three { width: 408px; height: 408px; }
  .event-participant-one { left: 3%; top: 16%; }
  .event-participant-two { right: 3%; bottom: 13%; }
}
@media (prefers-reduced-motion: reduce) {
  .event-sound-ring, .event-live-core, .event-participant.is-speaking .event-participant-avatar { animation: none; }
  .event-live-core-wrap, .event-participant { transition: none; }
}

.event-section {
  width: var(--content);
  margin: 0 auto 96px;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.event-card.featured-event {
  border-color: rgba(109, 94, 248, 0.28);
  background: linear-gradient(110deg, rgba(109, 94, 248, 0.08), #fff 44%);
}

.event-card.halloween-event {
  border-color: rgba(234, 88, 12, 0.38);
  background: linear-gradient(110deg, rgba(249, 115, 22, 0.13), #fff 48%);
}
.halloween-event .event-date { background: #1c0d09; }
.halloween-event .event-date strong { font-size: 0.8rem; letter-spacing: 0.02em; }
.halloween-event .event-date span { color: #fdba74; }
.halloween-event .event-status { color: #c2410c; }

.event-date {
  display: grid;
  gap: 4px;
  min-height: 92px;
  place-content: center;
  border-radius: 8px;
  color: #fff;
  background: #111;
  text-align: center;
}

.event-date strong { font-size: 1.1rem; }
.event-date span { color: #c4b5fd; font-size: 0.72rem; font-weight: 800; }
.event-status { color: #6d5ef8; font-size: 0.84rem; font-weight: 900; }
.event-card h3 { margin: 7px 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.event-card p { max-width: 720px; margin-bottom: 0; color: #52525b; line-height: 1.55; }

.event-detail-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #111;
  background: #f4f4f5;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.event-detail-button:hover { transform: translateY(-2px); background: rgba(109, 94, 248, 0.14); }

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 8vw, 110px);
  padding: clamp(30px, 5vw, 60px);
  border-radius: 8px;
  color: #fff;
  background: #111;
}

.access-section h2 { max-width: 660px; }
.access-section p:not(.eyebrow) { max-width: 660px; margin-bottom: 0; color: rgba(255, 255, 255, 0.74); line-height: 1.65; }
.access-section .eyebrow { color: #c4b5fd; }

.join-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.join-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.join-steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #c4b5fd;
  font-weight: 900;
}

.event-notice {
  max-width: 820px;
  padding-bottom: 30px;
}

.event-notice h2 { margin-bottom: 18px; }
.event-notice p:not(.eyebrow) { max-width: 680px; margin-bottom: 24px; color: #52525b; line-height: 1.65; }

.event-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 34px;
  color: #111;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.26);
}

.event-dialog::backdrop { background: rgba(17, 17, 17, 0.5); backdrop-filter: blur(5px); }
.event-dialog h2 { font-size: clamp(2rem, 6vw, 3rem); }
.event-dialog p:not(.eyebrow) { color: #52525b; line-height: 1.65; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; color: #52525b; background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }

.not-found-shell {
  width: min(650px, calc(100% - 36px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  margin: 0 auto;
}

.not-found-shell img { width: 92px; height: 92px; object-fit: cover; border-radius: 26px; }
.not-found-shell h1 { margin-bottom: 0; font-size: clamp(3rem, 10vw, 5.8rem); }
.not-found-shell p:not(.eyebrow) { max-width: 540px; margin-bottom: 6px; color: #52525b; font-size: 1.1rem; line-height: 1.65; }

.hidden { display: none !important; }

.voice-page {
  min-height: 100vh;
  color: #f5f5f7;
  background: #08080b;
}

.voice-header {
  width: var(--content);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  animation: voiceHeaderIn 760ms cubic-bezier(.2, .8, .2, 1) both;
}

.voice-brand { color: #f5f5f7; }
.voice-brand small { color: rgba(245, 245, 247, 0.6); }
.voice-header-actions { display: flex; align-items: center; gap: 10px; }
.voice-user { color: rgba(245, 245, 247, 0.72); font-size: 0.9rem; }
.voice-privacy { display: inline-flex; align-items: center; gap: 7px; color: #a7f3d0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; white-space: nowrap; }
.voice-privacy > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(167, 243, 208, 0.1); animation: privacyPulse 2s ease-in-out infinite; }
.voice-login { min-height: 40px; color: #fff; border-color: transparent; background: #5865f2; }

.voice-shell { width: var(--content); margin: 0 auto; }

.voice-stage {
  min-height: min(650px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 8vw, 120px);
  padding: clamp(56px, 9vw, 108px) 0;
}

.voice-stage-copy h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  line-height: 0.95;
}

.voice-stage-copy { animation: voiceCopyIn 900ms 100ms cubic-bezier(.2, .8, .2, 1) both; }

.voice-stage-copy > p:not(.eyebrow) { max-width: 600px; color: rgba(245, 245, 247, 0.76); font-size: 1.2rem; line-height: 1.55; }
.voice-noise-intro { max-width: 520px; margin: -8px 0 18px; padding-left: 13px; border-left: 2px solid rgba(167, 243, 208, 0.72); }
.voice-stage-copy .voice-noise-caption { display: flex; align-items: center; gap: 7px; margin: 0; color: #a7f3d0; font-size: 0.84rem; font-weight: 800; letter-spacing: 0; }
.voice-noise-caption svg { width: 16px; height: 16px; }
.voice-stage-copy .voice-noise-detail { margin: 5px 0 0; color: rgba(245, 245, 247, 0.66); font-size: 0.82rem; line-height: 1.52; }
.voice-stage-copy .voice-noise-setting { margin: 7px 0 0; color: rgba(167, 243, 208, 0.76); font-size: 0.74rem; font-weight: 700; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.voice-controls .secondary { color: #fff; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1); }
.voice-controls #noise-cancel[aria-pressed="true"] { border-color: rgba(167, 243, 208, 0.6); color: #a7f3d0; background: rgba(167, 243, 208, 0.08); }
.voice-controls #noise-cancel svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.leave-button { color: #fff; border: 1px solid rgba(248, 113, 113, 0.38); border-radius: 999px; padding: 12px 18px; background: rgba(127, 29, 29, 0.44); cursor: pointer; }
.voice-meter { display: grid; gap: 10px; max-width: 420px; margin-top: 24px; }
.voice-meter-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #f5f5f7; font-size: 0.9rem; }
.voice-meter-copy span { color: #a7f3d0; font-size: 0.82rem; }
.voice-meter-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.voice-meter-track span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: #a7f3d0; transition: transform 80ms linear; }
.voice-note { margin-top: 18px; color: rgba(245, 245, 247, 0.5); font-size: 0.9rem; line-height: 1.5; }

.voice-pulse { --voice-scale: 1; --voice-glow: 90px; position: relative; display: grid; min-height: 430px; place-items: center; overflow: hidden; transform: scale(var(--voice-scale)); transition: transform 110ms linear; animation: voiceOrbIn 1000ms 180ms cubic-bezier(.2, .8, .2, 1) both; }
.voice-pulse > span { position: absolute; border: 1px solid rgba(196, 181, 253, 0.24); border-radius: 50%; animation: voicePulse 3.8s ease-out infinite; }
.voice-pulse > span:nth-child(1) { width: 170px; height: 170px; animation-delay: -2.6s; }
.voice-pulse > span:nth-child(2) { width: 290px; height: 290px; animation-delay: -1.3s; }
.voice-pulse > span:nth-child(3) { width: 410px; height: 410px; }
.voice-pulse strong { position: relative; z-index: 1; display: grid; width: 142px; height: 142px; place-content: center; border-radius: 50%; color: #111; background: #c4b5fd; box-shadow: 0 0 var(--voice-glow) rgba(167, 139, 250, 0.7); font-size: 1.6rem; line-height: 0.92; text-align: center; transition: box-shadow 110ms linear; }
.voice-pulse small { margin-top: 9px; font-size: 0.6rem; letter-spacing: 0.08em; }
.voice-pulse.is-muted > span { opacity: 0.12; animation-play-state: paused; }
.voice-pulse.is-muted strong { color: rgba(17, 17, 17, 0.72); background: #a8a4b1; box-shadow: none; }

@keyframes voicePulse {
  0% { opacity: 0.9; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.12); }
}

@keyframes privacyPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167, 243, 208, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(167, 243, 208, 0); }
}

@keyframes voiceHeaderIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes voiceCopyIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes voiceOrbIn {
  from { opacity: 0; transform: translateY(22px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(var(--voice-scale)); }
}

.voice-roster { display: grid; grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr); gap: 40px; padding: 42px 0 88px; border-top: 1px solid rgba(255, 255, 255, 0.14); animation: voiceRosterIn 860ms 280ms cubic-bezier(.2, .8, .2, 1) both; }
.voice-roster h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); }
.voice-roster h2 span { color: #c4b5fd; }
.voice-first-arrival { margin: 14px 0 0; color: rgba(245, 245, 247, 0.58); font-size: 0.9rem; line-height: 1.55; }
.voice-roster-main { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: start; gap: 10px; min-width: 0; }
.voice-roster ul { display: grid; grid-column: 1; gap: 10px; padding: 0; margin: 0; list-style: none; }
.voice-roster li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.05); animation: participantIn 620ms cubic-bezier(.2, .8, .2, 1) both; }
.voice-roster .empty-participants { display: block; color: rgba(245, 245, 247, 0.62); }
.participant-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid transparent; border-radius: 50%; color: #111; background: #ddd6fe; font-size: 0.86rem; font-weight: 900; transition: border-color 180ms ease, box-shadow 180ms ease; }
.participant-avatar.is-speaking { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.15), 0 0 18px rgba(167, 139, 250, 0.26); }
.participant-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.participant-identity { display: grid; min-width: 0; gap: 2px; }
.participant-identity strong { overflow: hidden; color: #f5f5f7; font-size: 0.94rem; text-overflow: ellipsis; white-space: nowrap; }
.participant-identity small { overflow: hidden; color: rgba(245, 245, 247, 0.56); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.participant-state { color: rgba(245, 245, 247, 0.48); font-size: 0.72rem; font-style: normal; line-height: 1.1; }
.participant-state.is-speaking { color: #c4b5fd; }
.participant-mic { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.participant-mic.is-live { color: #a7f3d0; background: rgba(167, 243, 208, 0.08); }
.participant-mic.is-muted { color: #fca5a5; background: rgba(252, 165, 165, 0.08); }
.participant-mic svg { display: block; }
.voice-chat-toggle,
.voice-chat-send { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(196, 181, 253, 0.52); border-radius: 50%; color: #c4b5fd; background: rgba(196, 181, 253, 0.08); cursor: pointer; transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease; }
.voice-chat-toggle:hover:not(:disabled),
.voice-chat-toggle:focus-visible { color: #111; border-color: #c4b5fd; background: #c4b5fd; transform: translateY(-2px); }
.voice-chat-toggle:disabled { opacity: 0.38; cursor: not-allowed; }
.voice-chat-toggle svg,
.voice-chat-send svg { width: 20px; height: 20px; }
.voice-chat-notice { position: absolute; top: 3px; right: 3px; z-index: 2; display: grid; width: 16px; height: 16px; place-items: center; border: 1.5px solid #08080b; border-radius: 50%; color: #fff; background: #ef4444; box-shadow: 0 2px 9px rgba(239, 68, 68, 0.45); font-size: 0.76rem; font-weight: 900; line-height: 1; animation: chatNoticeIn 420ms cubic-bezier(.2, .85, .25, 1) both, chatNoticePulse 2s 650ms ease-in-out infinite; }
.voice-chat { display: grid; grid-column: 1 / -1; gap: 16px; margin-top: 8px; padding: 18px; border: 1px solid rgba(196, 181, 253, 0.25); border-radius: 8px; background: rgba(255, 255, 255, 0.035); animation: participantIn 300ms cubic-bezier(.2, .8, .2, 1) both; }
.voice-chat-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.voice-chat-heading .eyebrow { margin-bottom: 5px; }
.voice-chat-heading h3 { margin: 0; font-size: 1.1rem; }
.voice-chat-heading > p { margin: 0; color: rgba(245, 245, 247, 0.52); font-size: 0.78rem; text-align: right; }
.voice-chat-log { display: grid; align-content: start; gap: 12px; min-height: 112px; max-height: 248px; overflow-y: auto; padding-right: 4px; }
.voice-chat-empty { margin: auto 0; color: rgba(245, 245, 247, 0.52); font-size: 0.88rem; }
.voice-chat-message { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; align-items: start; }
.voice-chat-message.is-own > div { padding: 7px 9px; border: 1px solid rgba(196, 181, 253, 0.22); border-radius: 7px; background: rgba(196, 181, 253, 0.08); }
.voice-chat-message.is-new { animation: chatMessageIn 460ms cubic-bezier(.2, .85, .25, 1) both; }
.voice-chat-avatar { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 50%; color: #111; background: #ddd6fe; font-size: 0.72rem; font-weight: 800; }
.voice-chat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.voice-chat-message header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.voice-chat-message strong { color: #f5f5f7; font-size: 0.84rem; }
.voice-chat-message header span,
.voice-chat-message time { color: rgba(245, 245, 247, 0.48); font-size: 0.72rem; }
.voice-chat-message time { margin-left: auto; }
.voice-chat-message p { margin: 3px 0 0; color: rgba(245, 245, 247, 0.84); font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.voice-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 9px; }
.voice-chat-form input { width: 100%; min-width: 0; height: 42px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 7px; outline: none; padding: 0 13px; color: #f5f5f7; background: rgba(255, 255, 255, 0.06); font: inherit; }
.voice-chat-form input::placeholder { color: rgba(245, 245, 247, 0.42); }
.voice-chat-form input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.14); }
.voice-chat-send { width: 42px; height: 42px; border-radius: 7px; color: #111; border-color: #c4b5fd; background: #c4b5fd; }
.voice-chat-send:hover:not(:disabled),
.voice-chat-send:focus-visible { transform: translateY(-1px); background: #ddd6fe; }
.voice-chat-send:disabled { opacity: 0.42; cursor: not-allowed; }
.voice-chat-send.is-sent { animation: chatSendBurst 460ms cubic-bezier(.2, .85, .25, 1) both; }

.voice-prejoin { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(8, 8, 11, 0.76); backdrop-filter: blur(12px); animation: prejoinBackdropIn 200ms ease both; }
.voice-prejoin-dialog { width: min(100%, 510px); padding: clamp(26px, 5vw, 42px); border: 1px solid rgba(196, 181, 253, 0.28); border-radius: 8px; color: #f5f5f7; background: #131318; box-shadow: 0 24px 75px rgba(0, 0, 0, 0.42); animation: prejoinDialogIn 260ms cubic-bezier(.2, .85, .25, 1) both; }
.voice-prejoin-dialog h2 { margin: 7px 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.04; }
.voice-prejoin-dialog > p:not(.eyebrow):not(.prejoin-privacy) { max-width: 420px; margin: 0; color: rgba(245, 245, 247, 0.68); line-height: 1.55; }
.prejoin-devices { display: grid; gap: 10px; margin: 26px 0 16px; }
.prejoin-devices > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 62px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; background: rgba(255, 255, 255, 0.04); }
.prejoin-device-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #c4b5fd; background: rgba(196, 181, 253, 0.12); }
.prejoin-device-icon svg { width: 18px; height: 18px; }
.prejoin-devices strong,
.prejoin-devices small { display: block; }
.prejoin-devices strong { font-size: 0.9rem; }
.prejoin-devices small { margin-top: 2px; color: rgba(245, 245, 247, 0.5); font-size: 0.78rem; }
.prejoin-level { display: flex; align-items: center; gap: 3px; height: 20px; }
.prejoin-level i { display: block; width: 3px; border-radius: 999px; background: #a7f3d0; animation: prejoinMeter 1.1s ease-in-out infinite; }
.prejoin-level i:nth-child(1) { height: 6px; animation-delay: -0.35s; }
.prejoin-level i:nth-child(2) { height: 12px; animation-delay: -0.15s; }
.prejoin-level i:nth-child(3) { height: 17px; }
.prejoin-level i:nth-child(4) { height: 10px; animation-delay: -0.2s; }
.prejoin-level i:nth-child(5) { height: 6px; animation-delay: -0.45s; }
.prejoin-privacy { margin: 0; color: #a7f3d0; font-size: 0.84rem; }
.prejoin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prejoin-actions .secondary { color: #f5f5f7; border-color: rgba(255, 255, 255, 0.2); background: transparent; }
.voice-reconnect { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 12px; width: min(calc(100% - 48px), 330px); padding: 14px 16px; border: 1px solid rgba(196, 181, 253, 0.26); border-radius: 8px; color: #f5f5f7; background: rgba(19, 19, 24, 0.94); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3); animation: reconnectIn 220ms cubic-bezier(.2, .85, .25, 1) both; }
.voice-reconnect strong { display: block; font-size: 0.9rem; }
.voice-reconnect p { margin: 2px 0 0; color: rgba(245, 245, 247, 0.58); font-size: 0.78rem; }
.voice-reconnect-spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgba(196, 181, 253, 0.25); border-top-color: #c4b5fd; border-radius: 50%; animation: reconnectSpin 900ms linear infinite; }

@keyframes prejoinBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes prejoinDialogIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes reconnectIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reconnectSpin { to { transform: rotate(360deg); } }
@keyframes prejoinMeter { 0%, 100% { opacity: 0.45; transform: scaleY(0.55); } 50% { opacity: 1; transform: scaleY(1); } }

@keyframes chatMessageIn {
  0% { opacity: 0; transform: translateY(9px) scale(0.97); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chatSendBurst {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 181, 253, 0.58); }
  42% { transform: scale(0.86) rotate(-9deg); box-shadow: 0 0 0 9px rgba(196, 181, 253, 0); }
  72% { transform: scale(1.08) rotate(4deg); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(196, 181, 253, 0); }
}

@keyframes chatNoticeIn {
  0% { opacity: 0; transform: scale(0.35); }
  72% { opacity: 1; transform: scale(1.16); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes chatNoticePulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

@keyframes voiceRosterIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes participantIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .voice-stage,
  .voice-roster { grid-template-columns: 1fr; }
  .voice-stage { min-height: auto; padding: 60px 0 28px; }
  .voice-pulse { min-height: 320px; }
  .voice-pulse > span:nth-child(3) { width: 300px; height: 300px; }
  .voice-roster { gap: 20px; padding-top: 38px; }
  .voice-reconnect { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 360px); }
}

@media (max-width: 520px) {
  .voice-header { min-height: 66px; }
  .voice-header .brand-mark { width: 38px; height: 38px; }
  .voice-header .brand strong { font-size: 0.9rem; }
  .voice-header .brand small { font-size: 0.7rem; }
  .voice-user { display: none; }
  .voice-header-actions { gap: 6px; }
  .voice-header-actions .button { min-height: 36px; padding: 8px 11px; font-size: 0.82rem; }
  .voice-privacy { display: none; }
  .voice-stage-copy h1 { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .voice-stage-copy > p:not(.eyebrow) { font-size: 1.08rem; }
  .voice-pulse { min-height: 280px; }
  .voice-pulse > span:nth-child(2) { width: 230px; height: 230px; }
  .voice-pulse > span:nth-child(3) { width: 290px; height: 290px; }
  .voice-roster li { grid-template-columns: 42px 1fr; }
  .voice-roster li i { grid-column: 2; }
  .voice-chat-heading { align-items: start; flex-direction: column; gap: 5px; }
  .voice-chat-heading > p { text-align: left; }
  .voice-controls { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; width: max-content; max-width: 100%; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(8, 8, 11, 0.88); backdrop-filter: blur(12px); }
  .voice-prejoin { align-items: end; padding: 12px; }
  .voice-prejoin-dialog { padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); }
  .prejoin-actions .button { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-header,
  .voice-stage-copy,
  .voice-pulse,
  .voice-pulse > span,
  .voice-roster,
  .voice-roster li,
  .voice-privacy > span,
  .voice-prejoin,
  .voice-prejoin-dialog,
  .voice-reconnect,
  .voice-reconnect-spinner,
  .prejoin-level i { animation: none; transition: none; }
  .voice-chat-message.is-new,
  .voice-chat-send.is-sent,
  .voice-chat-notice { animation: none; }
}

@media (max-width: 760px) {
  .event-callout,
  .access-section,
  .event-hero {
    grid-template-columns: 1fr;
  }

  .event-callout { align-items: flex-start; flex-direction: column; margin: 56px auto; }
  .event-hero { min-height: auto; padding: 56px 0; }
  .event-hero-art { min-height: 360px; }
  .event-card { grid-template-columns: 78px minmax(0, 1fr); gap: 18px; }
  .event-date { min-height: 72px; }
  .event-detail-button { grid-column: 1 / -1; width: 100%; }
  .event-section { margin-bottom: 64px; }
}

@media (max-width: 520px) {
  .event-nav-actions .quiet-link { display: none; }
  .event-nav-actions .discord-link { padding-inline: 12px; font-size: 0.88rem; }
  .event-hero-copy h1 { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .event-card { grid-template-columns: 1fr; }
  .event-date { width: 110px; }
  .event-dialog { padding: 30px 24px; }
}

/* AKTS Stage: a listening-first room with its own spotlight language. */
.stage-page { min-height: 100vh; color: #f7f3ff; background: #0a0910; }
.stage-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(157, 112, 255, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 112, 255, 0.025) 1px, transparent 1px); background-size: 48px 48px; }
.stage-header { border-bottom-color: rgba(219, 197, 255, 0.13); background: rgba(10, 9, 16, 0.76); }
.stage-shell { width: var(--content); min-height: calc(100vh - 80px); margin: 0 auto; }
.event-hero .hero-actions { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; }
.event-hero .hero-actions .button:nth-child(4) { grid-column: 1; grid-row: 2; }
.stage-connection { display: inline-flex; align-items: center; gap: 7px; color: rgba(247, 243, 255, 0.45); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.stage-connection i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stage-connection.is-connected { color: #a7f3d0; }
.stage-moderator { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(213, 184, 255, 0.42); border-radius: 999px; color: #d5b8ff; background: rgba(213, 184, 255, 0.09); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.07em; }
.stage-moderator svg { width: 13px; height: 13px; }
.stage-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.76fr); align-items: center; gap: 56px; min-height: calc(100vh - 80px); padding: 60px 0 92px; }
.stage-landing-copy { animation: stageCopyIn 700ms cubic-bezier(.2, .8, .2, 1) both; }
.stage-landing-copy h1 { max-width: 680px; margin: 10px 0 22px; color: #f7f3ff; font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.93; letter-spacing: 0; }
.stage-landing-copy > p:not(.eyebrow):not(.stage-listen-note) { max-width: 520px; margin: 0; color: rgba(247, 243, 255, 0.65); font-size: 1.1rem; line-height: 1.55; }
.stage-listen-button { display: inline-flex; align-items: center; gap: 18px; min-height: 56px; margin-top: 32px; padding: 0 22px 0 24px; border: 1px solid #d5b8ff; border-radius: 999px; color: #1e102d; background: #d5b8ff; box-shadow: 0 10px 34px rgba(167, 111, 255, 0.24); cursor: pointer; font: inherit; font-weight: 800; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.stage-listen-button:hover:not(:disabled), .stage-listen-button:focus-visible { transform: translateY(-2px); background: #efe5ff; box-shadow: 0 14px 42px rgba(167, 111, 255, 0.38); }
.stage-listen-button:disabled { opacity: 0.58; cursor: wait; }
.stage-listen-button svg { width: 19px; height: 19px; }
.stage-listen-note { max-width: 420px; margin: 16px 0 0; color: rgba(247, 243, 255, 0.48); font-size: 0.84rem; line-height: 1.5; }
.stage-now { position: relative; min-height: 530px; overflow: hidden; padding: 34px; border: 1px solid rgba(213, 184, 255, 0.2); border-radius: 8px; background: radial-gradient(circle at 50% 45%, rgba(169, 116, 255, 0.19), rgba(18, 14, 27, 0.86) 50%, #111018 78%); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28); animation: stageVisualIn 860ms 120ms cubic-bezier(.2, .8, .2, 1) both; }
.stage-now > p { margin: 0; color: #d5b8ff; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; }
.stage-now h2 { margin: 24px 0 6px; font-size: clamp(2rem, 3.5vw, 3rem); }
.stage-now > p:not(:first-of-type) { color: rgba(247, 243, 255, 0.66); font-weight: 400; letter-spacing: 0; }
.stage-now > small { display: block; margin-top: 18px; color: #a7f3d0; font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; }
.stage-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.1); animation: stageLivePulse 2.2s ease-in-out infinite; }
.stage-now > .stage-live-dot { position: absolute; top: 38px; right: 34px; margin: 0; }
.stage-now-visual { position: relative; display: grid; min-height: 300px; place-items: center; margin-top: 8px; }
.stage-now-visual::before, .stage-now-visual::after, .stage-now-visual span { content: ""; position: absolute; border: 1px solid rgba(221, 199, 255, 0.22); border-radius: 50%; }
.stage-now-visual::before { width: 180px; height: 180px; }
.stage-now-visual::after { width: 280px; height: 280px; border-color: rgba(221, 199, 255, 0.1); }
.stage-now-visual span { width: 360px; height: 360px; border-color: rgba(221, 199, 255, 0.06); }
.stage-now-visual strong { position: relative; z-index: 1; display: grid; width: 136px; height: 136px; place-content: center; border-radius: 50%; color: #1d1128; background: #d5b8ff; box-shadow: 0 0 72px rgba(194, 145, 255, 0.7); font-size: 1.55rem; line-height: 0.9; text-align: center; }
.stage-now-visual small { margin-top: 8px; font-size: 0.62rem; letter-spacing: 0.08em; }
.stage-room { min-height: calc(100vh - 80px); padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); animation: stageRoomIn 420ms cubic-bezier(.2, .8, .2, 1) both; }
.stage-room-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stage-room-topline .eyebrow { color: #fda4af; }
.stage-room-topline > p:last-child { margin: 0; color: #a7f3d0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.stage-main-speaker { display: grid; justify-items: center; max-width: 760px; min-height: 420px; margin: 14px auto 0; padding: 34px 0 18px; text-align: center; }
.stage-speaker-avatar { position: relative; display: grid; width: 168px; height: 168px; place-items: center; overflow: hidden; border: 1px solid rgba(213, 184, 255, 0.72); border-radius: 50%; color: #21132f; background: #d5b8ff; box-shadow: 0 0 0 16px rgba(213, 184, 255, 0.05), 0 0 0 48px rgba(213, 184, 255, 0.025), 0 0 74px rgba(170, 113, 255, 0.26); font-size: 2.3rem; font-weight: 800; }
.stage-speaker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stage-main-speaker .eyebrow { margin: 38px 0 8px; color: #d5b8ff; }
.stage-main-speaker h1 { margin: 0; color: #f7f3ff; font-size: clamp(2.6rem, 5vw, 4.75rem); line-height: 1.02; }
.stage-main-speaker > p:last-child { margin: 12px 0 0; color: rgba(247, 243, 255, 0.62); }
.stage-speakers { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 28px 0; border-top: 1px solid rgba(213, 184, 255, 0.14); }
.stage-speakers h2 { margin: 0; font-size: 1.4rem; }
.stage-speakers ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.stage-speakers li { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 9px 12px; border: 1px solid rgba(213, 184, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.stage-speakers li.stage-empty { min-width: 0; color: rgba(247, 243, 255, 0.5); font-size: 0.9rem; }
.stage-list-avatar, .stage-message-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: #21132f; background: #d5b8ff; font-size: 0.7rem; font-weight: 800; }
.stage-list-avatar img, .stage-message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stage-speakers strong { display: block; color: #f7f3ff; font-size: 0.88rem; }
.stage-speakers small { display: block; margin-top: 2px; color: #a7f3d0; font-size: 0.72rem; }
.stage-speaker-mute { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; margin-left: auto; border: 1px solid rgba(251, 113, 133, 0.62); border-radius: 50%; color: #fda4af; background: rgba(127, 29, 29, 0.26); cursor: pointer; transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease; }
.stage-speaker-mute:hover, .stage-speaker-mute:focus-visible { border-color: #fb7185; color: #fff1f2; background: #7f1d1d; transform: scale(1.06); }
.stage-speaker-mute:disabled { cursor: wait; opacity: 0.55; transform: none; }
.stage-speaker-mute.is-standby { border-style: dashed; color: #fda4af; background: rgba(127, 29, 29, 0.12); }
.stage-speaker-mute svg { width: 16px; height: 16px; }
.stage-controls { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: 24px auto 0; padding: 8px; border: 1px solid rgba(213, 184, 255, 0.22); border-radius: 8px; background: rgba(18, 15, 25, 0.88); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28); backdrop-filter: blur(14px); }
.stage-control { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; color: #f7f3ff; background: transparent; cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 700; transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease; }
.stage-control:hover, .stage-control:focus-visible, .stage-control.is-raised { border-color: #d5b8ff; color: #20132e; background: #d5b8ff; transform: translateY(-1px); }
.stage-control.stage-leave:hover, .stage-control.stage-leave:focus-visible { border-color: #fb7185; color: #fff1f2; background: #7f1d1d; }
.stage-control.stage-down:hover, .stage-control.stage-down:focus-visible { border-color: rgba(251, 191, 36, 0.7); color: #fef3c7; background: rgba(146, 64, 14, 0.54); }
.stage-control svg { width: 18px; height: 18px; }
.stage-hand-note { margin: 15px 0 0; color: #a7f3d0; text-align: center; font-size: 0.86rem; }
.stage-chat { max-width: 820px; margin: 24px auto 0; padding: 20px; border: 1px solid rgba(213, 184, 255, 0.2); border-radius: 8px; background: rgba(18, 15, 25, 0.72); animation: stageChatIn 220ms ease both; }
.stage-chat-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.stage-chat-heading h2 { margin: 0; font-size: 1.1rem; }
.stage-chat-heading .eyebrow { margin-bottom: 5px; }
.stage-chat-heading > p { margin: 0; color: rgba(247, 243, 255, 0.5); font-size: 0.78rem; text-align: right; }
.stage-chat-log { display: grid; align-content: start; gap: 12px; min-height: 116px; max-height: 280px; overflow-y: auto; margin: 18px 0; padding-right: 4px; }
.stage-chat-log article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
.stage-chat-log strong { color: #f7f3ff; font-size: 0.84rem; }
.stage-chat-log small { margin-left: 7px; color: rgba(247, 243, 255, 0.45); font-size: 0.72rem; }
.stage-chat-log p { margin: 3px 0 0; color: rgba(247, 243, 255, 0.82); font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.stage-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 9px; }
.stage-chat-form input { width: 100%; min-width: 0; height: 42px; border: 1px solid rgba(213, 184, 255, 0.24); border-radius: 7px; outline: none; padding: 0 13px; color: #f7f3ff; background: rgba(255, 255, 255, 0.05); font: inherit; }
.stage-chat-form input:focus { border-color: #d5b8ff; box-shadow: 0 0 0 3px rgba(213, 184, 255, 0.12); }
.stage-chat-send { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d5b8ff; border-radius: 7px; color: #20132e; background: #d5b8ff; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.stage-chat-send:hover, .stage-chat-send:focus-visible { transform: translateY(-1px); background: #efe5ff; }
.stage-chat-send svg { width: 18px; height: 18px; }
@keyframes stageCopyIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageVisualIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stageRoomIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageChatIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageLivePulse { 50% { box-shadow: 0 0 0 8px rgba(251, 113, 133, 0); } }
@media (max-width: 760px) {
  .stage-landing { grid-template-columns: 1fr; gap: 18px; padding: 54px 0 44px; }
  .stage-now { min-height: 400px; }
  .stage-now-visual { min-height: 230px; }
  .stage-now-visual span { width: 290px; height: 290px; }
  .stage-speakers { grid-template-columns: 1fr; gap: 14px; }
  .stage-main-speaker { min-height: 370px; }
  .event-hero .hero-actions { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; }
  .event-hero .hero-actions .button:nth-child(4) { grid-column: 1; grid-row: 2; }
  .event-hero .hero-actions .button:nth-child(3) { grid-column: 2; grid-row: 2; }
}
@media (max-width: 520px) {
  .stage-connection { display: none; }
  .stage-moderator { padding: 5px 7px; font-size: 0.6rem; }
  .stage-landing-copy h1 { font-size: clamp(3.2rem, 16vw, 4.7rem); }
  .stage-listen-button { width: 100%; justify-content: space-between; }
  .stage-now { min-height: 360px; padding: 26px; }
  .stage-now > .stage-live-dot { top: 30px; right: 26px; }
  .stage-now-visual { min-height: 210px; }
  .stage-now-visual::after { width: 230px; height: 230px; }
  .stage-now-visual span { width: 280px; height: 280px; }
  .stage-main-speaker { min-height: 340px; padding-top: 26px; }
  .stage-speaker-avatar { width: 134px; height: 134px; }
  .stage-main-speaker .eyebrow { margin-top: 34px; }
  .stage-controls { width: calc(100% - 8px); justify-content: space-between; }
  .stage-control { flex: 1; justify-content: center; padding: 0 8px; }
  .stage-control span { font-size: 0.76rem; }
  .stage-noise-control { flex: 0 0 44px; padding: 0; }
  .stage-noise-control span { display: none; }
  .stage-chat-heading { align-items: start; flex-direction: column; gap: 5px; }
  .stage-chat-heading > p { text-align: left; }
  .event-hero .hero-actions { grid-template-columns: 1fr; width: 100%; }
  .event-hero .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-landing-copy, .stage-now, .stage-room, .stage-chat, .stage-live-dot { animation: none; transition: none; }
}

/* Calm motion gives Stage a living spotlight without competing with the speaker. */
.stage-now-visual::before { animation: stageOrbitSpin 14s linear infinite; }
.stage-now-visual::after { animation: stageOrbitSpin 22s linear infinite reverse; }
.stage-now-visual span { animation: stageOrbitSpin 30s linear infinite; }
.stage-now-visual strong { animation: stageCoreFloat 4.6s ease-in-out infinite; }
.stage-main-speaker { position: relative; }
.stage-main-speaker::before, .stage-main-speaker::after { content: ""; position: absolute; top: 31px; left: 50%; width: 194px; height: 194px; border: 1px solid rgba(213, 184, 255, 0.13); border-radius: 50%; transform: translateX(-50%); pointer-events: none; }
.stage-main-speaker::after { width: 252px; height: 252px; border-color: rgba(213, 184, 255, 0.07); }
.stage-main-speaker.is-speaking::before { animation: stageSpeakerRing 2.1s ease-out infinite; }
.stage-main-speaker.is-speaking::after { animation: stageSpeakerRing 2.1s 700ms ease-out infinite; }
.stage-speaker-avatar { z-index: 1; transition: box-shadow 360ms ease, transform 360ms ease; }
.stage-main-speaker.is-speaking .stage-speaker-avatar { transform: scale(1.035); box-shadow: 0 0 0 18px rgba(213, 184, 255, 0.08), 0 0 0 52px rgba(213, 184, 255, 0.04), 0 0 92px rgba(170, 113, 255, 0.5); }
.stage-main-speaker.speaker-changed .stage-speaker-avatar { animation: stageSpeakerFocus 520ms cubic-bezier(.2, .85, .25, 1) both; }
.stage-main-speaker.speaker-changed h1, .stage-main-speaker.speaker-changed > p:last-child { animation: stageSpeakerCopy 420ms 70ms cubic-bezier(.2, .85, .25, 1) both; }
.stage-speakers li { animation: stageSpeakerIn 360ms cubic-bezier(.2, .8, .2, 1) both; }
.stage-requests .stage-person-card, .stage-audience .stage-person-card { animation: stageSpeakerIn 360ms cubic-bezier(.2, .8, .2, 1) both; }
.stage-person-card { animation-delay: calc(var(--stage-index) * 44ms) !important; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.stage-speakers .stage-person-card:hover, .stage-requests .stage-person-card:hover, .stage-audience .stage-person-card:hover { transform: translateY(-2px); border-color: rgba(213, 184, 255, 0.48); background: rgba(213, 184, 255, 0.075); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); }
.stage-control.is-live { border-color: rgba(167, 243, 208, 0.7); color: #a7f3d0; background: rgba(167, 243, 208, 0.08); box-shadow: 0 0 0 0 rgba(167, 243, 208, 0.34); animation: stageMicLive 2.4s ease-in-out infinite; }
.stage-control.is-live:hover, .stage-control.is-live:focus-visible { color: #10221c; background: #a7f3d0; }
.stage-noise-control[aria-pressed="true"] { border-color: rgba(167, 243, 208, 0.5); color: #a7f3d0; background: rgba(167, 243, 208, 0.07); }
.stage-control.is-raised { animation: stageHandRaised 440ms cubic-bezier(.2, .9, .2, 1) both; }
.stage-chat-log article { animation: stageMessageIn 360ms cubic-bezier(.2, .85, .25, 1) both; }
@keyframes stageOrbitSpin { to { transform: rotate(360deg); } }
@keyframes stageCoreFloat { 50% { transform: translateY(-5px); box-shadow: 0 0 92px rgba(194, 145, 255, 0.84); } }
@keyframes stageSpeakerRing { 0% { opacity: .62; transform: translateX(-50%) scale(.82); } 100% { opacity: 0; transform: translateX(-50%) scale(1.2); } }
@keyframes stageSpeakerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageSpeakerFocus { 0% { opacity: .52; transform: scale(.92); } 65% { opacity: 1; transform: scale(1.055); } 100% { transform: scale(1); } }
@keyframes stageSpeakerCopy { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageMicLive { 50% { box-shadow: 0 0 0 6px rgba(167, 243, 208, 0); } }
@keyframes stageHandRaised { 45% { transform: translateY(-4px) scale(1.045); } 100% { transform: translateY(-1px) scale(1); } }
@keyframes stageMessageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .stage-now-visual::before, .stage-now-visual::after, .stage-now-visual span, .stage-now-visual strong, .stage-main-speaker::before, .stage-main-speaker::after, .stage-main-speaker.speaker-changed .stage-speaker-avatar, .stage-main-speaker.speaker-changed h1, .stage-main-speaker.speaker-changed > p:last-child, .stage-speakers li, .stage-person-card, .stage-control.is-raised, .stage-control.is-live, .stage-chat-log article { animation: none; transition: none; }
}

.stage-requests { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 28px 0; border-top: 1px solid rgba(213, 184, 255, 0.14); }
.stage-requests h2 { margin: 0; font-size: 1.4rem; }
.stage-requests h2 span { color: #d5b8ff; }
.stage-requests ul { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.stage-requests li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid rgba(213, 184, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.stage-requests li.stage-empty { display: block; color: rgba(247, 243, 255, 0.5); font-size: 0.9rem; }
.stage-requests strong { display: block; color: #f7f3ff; font-size: 0.88rem; }
.stage-requests small { display: block; margin-top: 2px; color: rgba(247, 243, 255, 0.5); font-size: 0.72rem; }
.stage-request-invite { min-height: 34px; padding: 0 12px; border: 1px solid #d5b8ff; border-radius: 7px; color: #20132e; background: #d5b8ff; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.stage-request-invite:hover, .stage-request-invite:focus-visible { transform: translateY(-1px); background: #efe5ff; }
.stage-audience { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 28px 0; border-top: 1px solid rgba(213, 184, 255, 0.14); }
.stage-audience h2 { margin: 0; font-size: 1.4rem; }
.stage-audience h2 span { color: #a7f3d0; }
.stage-audience ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.stage-audience li { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 9px 12px; border: 1px solid rgba(167, 243, 208, 0.16); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.stage-audience li.stage-empty { min-width: 0; color: rgba(247, 243, 255, 0.5); font-size: 0.9rem; }
.stage-audience strong { display: block; color: #f7f3ff; font-size: 0.88rem; }
.stage-audience small { display: block; margin-top: 2px; color: #a7f3d0; font-size: 0.72rem; }
.stage-invitation { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(8, 7, 12, 0.76); backdrop-filter: blur(12px); }
.stage-invitation > div { width: min(100%, 460px); padding: clamp(26px, 5vw, 38px); border: 1px solid rgba(213, 184, 255, 0.4); border-radius: 8px; color: #f7f3ff; background: #17131f; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42); animation: stageInvitationIn 240ms cubic-bezier(.2, .85, .25, 1) both; }
.stage-invitation h2 { margin: 7px 0 12px; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; }
.stage-invitation > div > p:not(.eyebrow) { margin: 0; color: rgba(247, 243, 255, 0.68); line-height: 1.55; }
.stage-invitation > div > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
@keyframes stageInvitationIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) { .stage-requests, .stage-audience { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 520px) { .stage-invitation { align-items: end; padding: 12px; } .stage-invitation > div { padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .stage-invitation > div { animation: none; transition: none; } }

/* AKTS Stage landing: a story becomes a stage, without a live-status card. */
.stage-landing { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 0; min-height: calc(100vh - 80px); padding: clamp(68px, 9vw, 110px) 0 36px; text-align: center; overflow: hidden; }
.stage-landing-copy { position: relative; z-index: 2; display: grid; justify-items: center; max-width: 900px; animation: stageLandingCopyIn 760ms cubic-bezier(.2, .82, .24, 1) both; }
.stage-landing-live { display: inline-flex; align-items: center; justify-content: center; min-height: 18px; margin: 0; color: #d5b8ff; }
.stage-landing-live .stage-live-dot { margin: 0 8px 0 0; }
.stage-landing-copy h1 { max-width: 900px; margin: 14px 0 20px; font-size: clamp(3.25rem, 7vw, 6.8rem); line-height: .97; }
.stage-landing-summary { max-width: 610px; margin: 0; color: rgba(247, 243, 255, .66); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.58; }
.stage-listen-button { margin-top: 25px; }
.stage-listen-note { margin-top: 12px; }
.stage-landing-scene { position: relative; width: min(960px, 100%); height: clamp(320px, 34vw, 470px); margin-top: clamp(4px, 2vw, 20px); isolation: isolate; perspective: 1100px; animation: stageSceneIn 980ms 190ms cubic-bezier(.2, .82, .24, 1) both; }
.stage-landing-word { position: absolute; left: 50%; top: 8%; z-index: -2; color: rgba(247, 243, 255, .045); font-size: clamp(5.8rem, 16vw, 13.5rem); font-weight: 850; letter-spacing: .14em; line-height: .8; transform: translateX(-43%); user-select: none; }
.stage-architecture { position: absolute; left: 50%; top: 13%; z-index: 0; width: min(58%, 530px); height: 56%; transform: translateX(-50%); transform-style: preserve-3d; }
.stage-architecture-light { position: absolute; left: 50%; top: 4%; width: 76%; height: 80%; border-radius: 50%; background: radial-gradient(ellipse, rgba(184, 157, 255, .19), rgba(129, 90, 222, .055) 42%, transparent 70%); filter: blur(13px); transform: translateX(-50%); }
.stage-architecture-ring { position: absolute; left: 50%; top: 35%; border: 1px solid rgba(213, 184, 255, .14); border-radius: 50%; transform: translate(-50%, -50%) rotateX(68deg); }
.stage-architecture-ring-one { width: 58%; aspect-ratio: 1; }
.stage-architecture-ring-two { width: 94%; aspect-ratio: 1; border-color: rgba(213, 184, 255, .07); }
.stage-architecture-platform { position: absolute; left: 50%; bottom: 10%; width: 100%; height: 38%; border: 1px solid rgba(220, 210, 245, .28); border-radius: 48% 48% 16% 16% / 72% 72% 12% 12%; background: linear-gradient(162deg, rgba(58, 49, 75, .86), rgba(14, 12, 20, .94) 50%, rgba(42, 34, 56, .88)); box-shadow: inset 0 1px rgba(255, 255, 255, .17), inset 0 -22px 34px rgba(0, 0, 0, .36), 0 30px 40px rgba(0, 0, 0, .34); transform: translateX(-50%) rotateX(59deg); }
.stage-architecture-platform::after { content: ""; position: absolute; left: 12%; right: 12%; top: 17%; height: 1px; background: rgba(224, 205, 255, .22); box-shadow: 0 13px rgba(224, 205, 255, .07); }
.stage-architecture-podium { position: absolute; left: 50%; bottom: 24%; width: 68px; height: 46px; border: 1px solid rgba(230, 219, 255, .38); border-radius: 50% 50% 12px 12px; background: linear-gradient(160deg, #8373a9, #251e33 68%); box-shadow: 0 0 32px rgba(181, 142, 255, .2); transform: translateX(-50%) rotateX(22deg); }
.stage-architecture-podium i { position: absolute; left: 50%; top: -12px; width: 14px; height: 14px; border-radius: 50%; background: #d5b8ff; box-shadow: 0 0 20px rgba(213, 184, 255, .74); transform: translateX(-50%); }
.stage-book { position: absolute; left: 50%; bottom: 2%; z-index: 2; width: clamp(248px, 42vw, 460px); height: clamp(100px, 15vw, 166px); color: rgba(247, 243, 255, .78); transform: translateX(-50%) rotateX(55deg) rotateZ(-8deg); transform-style: preserve-3d; filter: drop-shadow(0 26px 21px rgba(0, 0, 0, .44)); animation: stageBookSettle 9s ease-in-out infinite; }
.stage-book-cover, .stage-book-page { position: absolute; bottom: 0; width: 52%; height: 100%; border: 1px solid rgba(229, 222, 241, .3); background: linear-gradient(135deg, #2b2437, #09090e 72%); }
.stage-book-cover-left { left: 0; border-radius: 9px 2px 4px 11px; transform: skewY(8deg) rotateY(-8deg); transform-origin: right bottom; }
.stage-book-cover-right { right: 0; border-radius: 2px 9px 11px 4px; transform: skewY(-8deg) rotateY(8deg); transform-origin: left bottom; }
.stage-book-page { bottom: 8px; height: 88%; border-color: rgba(245, 240, 255, .66); background: linear-gradient(132deg, #fbfafc, #d8d5df 76%); box-shadow: inset 0 0 0 1px rgba(91, 79, 111, .08); }
.stage-book-page-left { left: 1.8%; border-radius: 8px 1px 2px 9px; transform: skewY(8deg) rotateY(-6deg); transform-origin: right bottom; }
.stage-book-page-right { right: 1.8%; border-radius: 1px 8px 9px 2px; transform: skewY(-8deg) rotateY(6deg); transform-origin: left bottom; }
.stage-book-spine { position: absolute; left: 50%; bottom: 3px; z-index: 3; width: 12px; height: 96%; background: linear-gradient(90deg, #09090e, #81738f, #08080d); box-shadow: 0 0 5px rgba(255, 255, 255, .2); transform: translateX(-50%); }
.stage-book strong, .stage-book small { position: absolute; z-index: 4; left: 26%; text-align: center; transform: skewY(8deg); }
.stage-book strong { bottom: 41%; font-size: clamp(.72rem, 1.45vw, 1.1rem); letter-spacing: .05em; }
.stage-book small { bottom: 29%; font-size: clamp(.34rem, .7vw, .5rem); font-weight: 800; letter-spacing: .18em; }
.stage-landing.is-entering .stage-landing-copy { opacity: 0; transform: translateY(-14px); transition: opacity 320ms ease, transform 320ms ease; }
.stage-landing.is-entering .stage-landing-scene { opacity: 0; transform: translateY(-22px) scale(1.06); transition: opacity 420ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes stageLandingCopyIn { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stageSceneIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes stageBookSettle { 0%, 100% { transform: translateX(-50%) rotateX(55deg) rotateZ(-8deg) translateY(0); } 50% { transform: translateX(-50%) rotateX(55deg) rotateZ(-7.2deg) translateY(-4px); } }
@media (max-width: 760px) {
  .stage-landing { min-height: auto; padding: 58px 0 26px; }
  .stage-landing-copy h1 { font-size: clamp(3.1rem, 14vw, 5.2rem); }
  .stage-landing-scene { height: 340px; margin-top: 16px; }
  .stage-architecture { width: 72%; top: 12%; height: 58%; }
  .stage-landing-word { top: 14%; font-size: clamp(5rem, 22vw, 9rem); }
}
@media (max-width: 520px) {
  .stage-landing { padding-top: 44px; }
  .stage-landing-summary { font-size: 1rem; }
  .stage-listen-button { width: min(100%, 360px); justify-content: space-between; }
  .stage-landing-scene { height: 278px; }
  .stage-architecture { width: 84%; top: 8%; height: 60%; }
  .stage-book { width: min(87vw, 365px); height: 118px; bottom: 4%; }
  .stage-landing-word { opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-landing-copy, .stage-landing-scene, .stage-book, .stage-live-dot { animation: none; transition: none; }
}

/* Keep the centered Stage scene within one viewport and let the book physically overlap the platform. */
.stage-landing { min-height: calc(100svh - 80px); padding: clamp(34px, 4vw, 52px) 0 0; align-content: start; }
.stage-landing-copy h1 { margin: 10px 0 16px; font-size: clamp(3.1rem, 5.7vw, 6.15rem); }
.stage-landing-summary { max-width: 570px; }
.stage-listen-button { margin-top: 20px; }
.stage-landing-scene { height: clamp(270px, 25vw, 350px); margin-top: 0; }
.stage-landing-word { top: 15%; font-size: clamp(5rem, 13.2vw, 10.8rem); letter-spacing: .12em; }
.stage-architecture { top: 2%; width: min(62%, 510px); height: 86%; }
.stage-architecture-light { top: 0; height: 90%; }
.stage-architecture-platform { bottom: 4%; height: 42%; }
.stage-architecture-podium { bottom: 23%; }
.stage-book { bottom: -4%; width: clamp(250px, 39vw, 430px); height: clamp(100px, 13vw, 148px); }
@media (max-width: 760px) {
  .stage-landing { padding-top: 42px; }
  .stage-landing-scene { height: 310px; margin-top: 2px; }
  .stage-architecture { top: 1%; height: 88%; }
  .stage-book { bottom: -1%; }
}
@media (max-width: 520px) {
  .stage-landing { padding-top: 34px; }
  .stage-landing-copy h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .stage-landing-scene { height: 260px; }
  .stage-architecture { width: 88%; }
  .stage-book { bottom: 0; height: 106px; }
}

/* The rendered book-and-stage object replaces the earlier CSS mockup. */
.stage-landing-scene { display: grid; height: clamp(286px, 29vw, 420px); place-items: center; margin-top: -4px; }
.stage-landing-word { top: 22%; color: rgba(247, 243, 255, .035); font-size: clamp(4.8rem, 12vw, 10.2rem); }
.stage-hero-object { position: relative; z-index: 1; display: block; width: min(790px, 92vw); max-height: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .48)); animation: stageRenderedObjectIn 900ms 180ms cubic-bezier(.2, .82, .24, 1) both; }
.stage-landing.is-entering .stage-hero-object { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(1.035); transition: opacity 420ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes stageRenderedObjectIn { from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.975); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@media (max-width: 760px) { .stage-landing-scene { height: 300px; margin-top: 8px; } .stage-hero-object { width: min(730px, 108vw); } }
@media (max-width: 520px) { .stage-landing-scene { height: 225px; margin-top: 16px; } .stage-hero-object { width: 128vw; max-width: none; } .stage-landing-word { top: 25%; } }
@media (prefers-reduced-motion: reduce) { .stage-hero-object { animation: none; transition: none; } }

/* Final foreground/material pass for the rendered Stage object. */
.stage-landing-copy h1 { margin-bottom: 16px; line-height: .93; }
.stage-landing-summary { color: rgba(247, 243, 255, .55); }
.stage-listen-note { color: rgba(247, 243, 255, .4); }
.stage-landing-scene { height: clamp(310px, 29vw, 405px); margin-top: -2px; }
.stage-landing-scene::before { content: ""; position: absolute; left: 50%; bottom: 1%; z-index: 0; width: min(680px, 86vw); height: 86px; border-radius: 50%; background: radial-gradient(ellipse, rgba(184, 157, 255, .2), rgba(103, 77, 154, .07) 45%, transparent 74%); filter: blur(18px); transform: translateX(-50%); }
.stage-landing-word { top: 19%; color: rgba(247, 243, 255, .058); font-size: clamp(5.1rem, 12.8vw, 11.1rem); }
.stage-hero-object { left: 50%; position: absolute; bottom: -34px; width: min(725px, 105vw); max-height: none; transform: translateX(-50%); filter: drop-shadow(0 34px 32px rgba(0, 0, 0, .58)); }
@media (max-width: 760px) { .stage-landing-scene { height: 320px; } .stage-hero-object { bottom: -26px; width: min(690px, 116vw); } }
@media (max-width: 520px) { .stage-landing-scene { height: 246px; } .stage-hero-object { bottom: -17px; width: 137vw; } .stage-landing-word { top: 22%; } }

/* Final Stage lobby hierarchy: preserve the composition, refine its quiet layers. */
.stage-listen-note { color: rgba(247, 243, 255, .47); }
.stage-landing-scene { margin-top: 24px; }
.stage-landing-word { font-size: clamp(5.35rem, 13.65vw, 11.85rem); }

.stage-page .stage-header .voice-header-actions {
  gap: 8px;
  opacity: .78;
}
.stage-page .stage-header .voice-user {
  color: rgba(245, 245, 247, .54);
  font-size: .82rem;
}
.stage-page .stage-header .stage-moderator {
  border-color: rgba(213, 184, 255, .25);
  color: rgba(213, 184, 255, .72);
  background: rgba(213, 184, 255, .04);
  font-size: .61rem;
  opacity: .86;
}
.stage-page .stage-header #stage-logout {
  color: rgba(247, 243, 255, .62);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: .82rem;
}
.stage-page .stage-header #stage-logout:hover,
.stage-page .stage-header #stage-logout:focus-visible {
  color: #f7f3ff;
  background: rgba(255, 255, 255, .05);
}

@media (max-width: 760px) { .stage-landing-scene { margin-top: 24px; } }

/* Final foreground pass: create air below the CTA without changing the copy. */
@media (min-width: 761px) {
  .stage-landing-scene { margin-top: 44px; }
  .stage-landing-word { font-size: clamp(5.65rem, 14.55vw, 12.55rem); }
  .stage-hero-object { bottom: -62px; width: min(768px, 111vw); }
  .stage-listen-button { min-height: 48px; gap: 14px; padding: 0 18px 0 20px; font-size: .92rem; }
  .stage-listen-button svg { width: 17px; height: 17px; }
}

/* Mobile is a separate composition: copy first, then the cinematic object. */
.stage-mobile-break { display: none; }
@media (max-width: 767px) {
  .stage-page:has(.stage-landing:not(.hidden)) { height: 100svh; overflow: hidden; }
  .stage-page .stage-header { min-height: 66px; }
  .stage-shell { min-height: 0; }
  .stage-page .stage-header .voice-header-actions { gap: 6px; }
  .stage-page .stage-header .voice-user { display: none; }
  .stage-page .stage-header .stage-moderator { padding: 4px 6px; font-size: .55rem; }
  .stage-page .stage-header #stage-logout { padding: 7px 5px; font-size: .73rem; }

  .stage-landing {
    height: calc(100svh - 66px);
    min-height: 0;
    box-sizing: border-box;
    padding: 28px 0 0;
    overflow: hidden;
  }
  .stage-landing-copy { width: 100%; }
  .stage-landing-copy h1 {
    max-width: 360px;
    margin: 12px 0 16px;
    font-size: clamp(3rem, 13vw, 3.5rem);
    line-height: .94;
  }
  .stage-mobile-break { display: inline; }
  .stage-landing-summary {
    max-width: 310px;
    color: rgba(247, 243, 255, .64);
    font-size: .84rem;
    line-height: 1.45;
  }
  .stage-listen-button {
    width: auto;
    min-width: 166px;
    min-height: 50px;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    padding: 0 19px 0 21px;
  }
  .stage-landing-scene {
    width: 100%;
    height: clamp(360px, 88vw, 440px);
    margin-top: 0;
  }
  .stage-landing-word { display: none; }
  .stage-hero-object {
    top: 40px;
    bottom: auto;
    width: 120vw;
    max-width: none;
  }
}
@media (max-width: 390px) {
  .stage-landing { height: calc(100svh - 66px); padding-top: 24px; }
  .stage-landing-copy h1 { font-size: 3rem; }
  .stage-landing-scene { height: 360px; }
  .stage-hero-object { width: 122vw; }
}

/* Speaker-only screen sharing: shared content becomes the Stage focal point. */
.stage-screen-share {
  width: min(100%, 1020px);
  margin: 18px auto 26px;
  animation: stageScreenShareIn 260ms cubic-bezier(.2, .82, .24, 1) both;
}
.stage-screen-share-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(213, 184, 255, .34);
  border-radius: 8px;
  background: #08070c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32), 0 0 42px rgba(170, 113, 255, .1);
}
.stage-screen-share-frame video { width: 100%; height: 100%; object-fit: contain; background: #050507; }
.stage-screen-share > p { margin: 10px 0 0; color: #d5b8ff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-align: center; }
.stage-room.has-screen-share .stage-main-speaker { min-height: 0; margin-top: 6px; padding-top: 12px; }
.stage-room.has-screen-share .stage-speaker-avatar { width: 112px; height: 112px; font-size: 1.55rem; }
.stage-room.has-screen-share .stage-main-speaker::before { top: 10px; width: 136px; height: 136px; }
.stage-room.has-screen-share .stage-main-speaker::after { top: 10px; width: 174px; height: 174px; }
.stage-room.has-screen-share .stage-main-speaker .eyebrow { margin-top: 25px; }
.stage-control.is-screen-sharing { border-color: rgba(213, 184, 255, .78); color: #20132e; background: #d5b8ff; }
.stage-control.is-screen-sharing:hover, .stage-control.is-screen-sharing:focus-visible { color: #20132e; background: #efe5ff; }
@keyframes stageScreenShareIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  .stage-screen-share { width: 100%; margin: 14px auto 20px; }
  .stage-screen-share-frame { border-radius: 7px; }
  .stage-room.has-screen-share .stage-main-speaker { padding-top: 10px; }
  .stage-screen-share-control { flex: 0 0 44px; padding: 0; }
  .stage-screen-share-control span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stage-screen-share { animation: none; } }

/* Product Launch presenter setup stays focused before the browser chooser appears. */
.stage-presentation-picker {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 12, .82);
  backdrop-filter: blur(14px);
}
.stage-presentation-picker > div {
  width: min(100%, 620px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(213, 184, 255, .36);
  border-radius: 8px;
  background: #17131f;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .48);
  animation: stagePresentationPickerIn 240ms cubic-bezier(.2, .85, .25, 1) both;
}
.stage-presentation-picker h2 { margin: 7px 0 10px; color: #f7f3ff; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.04; }
.stage-presentation-picker > div > p:not(.eyebrow) { margin: 0; color: rgba(247, 243, 255, .64); line-height: 1.5; }
.stage-presentation-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 23px; }
.stage-presentation-modes button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  min-height: 96px;
  padding: 13px;
  border: 1px solid rgba(213, 184, 255, .18);
  border-radius: 7px;
  color: #f7f3ff;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.stage-presentation-modes button:hover, .stage-presentation-modes button:focus-visible { border-color: rgba(213, 184, 255, .55); background: rgba(213, 184, 255, .08); transform: translateY(-1px); }
.stage-presentation-modes button:active { transform: scale(.985); }
.stage-presentation-modes button.is-selected { border-color: #d5b8ff; background: rgba(213, 184, 255, .14); box-shadow: inset 0 0 0 1px rgba(213, 184, 255, .16); }
.stage-presentation-modes svg { width: 20px; height: 20px; color: #d5b8ff; }
.stage-presentation-modes strong, .stage-presentation-modes small { display: block; }
.stage-presentation-modes strong { font-size: .82rem; line-height: 1.28; }
.stage-presentation-modes small { margin-top: 5px; color: rgba(247, 243, 255, .52); font-size: .68rem; line-height: 1.34; }
.stage-presentation-audio { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: rgba(247, 243, 255, .72); font-size: .83rem; line-height: 1.42; cursor: pointer; }
.stage-presentation-audio input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #d5b8ff; }
.stage-presentation-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
@keyframes stagePresentationPickerIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 600px) {
  .stage-presentation-picker { align-items: end; padding: 12px; }
  .stage-presentation-picker > div { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .stage-presentation-modes { grid-template-columns: 1fr; }
  .stage-presentation-modes button { min-height: 66px; grid-template-columns: 27px minmax(0, 1fr); }
  .stage-presentation-actions { justify-content: stretch; }
  .stage-presentation-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .stage-presentation-picker > div { animation: none; } }

/* Backstage is a speaker-only control room: preflight first, then a faithful broadcast preview. */
.stage-backstage {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 7, 12, .84);
  backdrop-filter: blur(14px);
}
.stage-backstage > div {
  width: min(100%, 760px);
  max-height: min(850px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(213, 184, 255, .36);
  border-radius: 8px;
  background: #17131f;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .48);
  animation: stagePresentationPickerIn 240ms cubic-bezier(.2, .85, .25, 1) both;
}
.stage-backstage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.stage-backstage-heading h2 { margin: 7px 0 0; color: #f7f3ff; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.04; }
.stage-backstage-close { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(213, 184, 255, .27); border-radius: 7px; color: #f7f3ff; background: transparent; cursor: pointer; }
.stage-backstage-close:hover, .stage-backstage-close:focus-visible { border-color: #d5b8ff; color: #20132e; background: #d5b8ff; }
.stage-backstage-close svg { width: 18px; height: 18px; }
.stage-backstage-intro { margin: 13px 0 0; color: rgba(247, 243, 255, .64); font-size: .9rem; line-height: 1.5; }
.stage-preflight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.stage-preflight-grid article { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px; border: 1px solid rgba(213, 184, 255, .16); border-radius: 7px; background: rgba(255, 255, 255, .035); }
.stage-preflight-grid article > svg { flex: 0 0 auto; width: 20px; height: 20px; color: #d5b8ff; }
.stage-preflight-grid strong, .stage-preflight-grid small { display: block; }
.stage-preflight-grid strong { color: #f7f3ff; font-size: .8rem; }
.stage-preflight-grid small { margin-top: 4px; color: rgba(247, 243, 255, .56); font-size: .72rem; line-height: 1.25; }
.stage-backstage-preview { margin-top: 23px; }
.stage-backstage-preview > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.stage-backstage-preview .eyebrow { margin: 0; }
.stage-backstage-preview small { color: rgba(247, 243, 255, .54); font-size: .72rem; text-align: right; }
.stage-backstage-preview-frame { display: grid; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; place-items: center; border: 1px solid rgba(213, 184, 255, .3); border-radius: 7px; background: #08070c; }
.stage-backstage-preview-frame video { width: 100%; height: 100%; object-fit: contain; background: #050507; }
.stage-diagnostics { margin-top: 23px; padding-top: 19px; border-top: 1px solid rgba(213, 184, 255, .15); }
.stage-diagnostics .eyebrow { margin: 0; }
.stage-diagnostics dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.stage-diagnostics dl > div { min-width: 0; }
.stage-diagnostics dt { color: rgba(247, 243, 255, .44); font-size: .64rem; font-weight: 800; letter-spacing: .06em; }
.stage-diagnostics dd { overflow: hidden; margin: 5px 0 0; color: #a7f3d0; font-size: .8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.stage-backstage-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.stage-backstage-actions .button { min-height: 44px; }
@media (max-width: 760px) {
  .stage-backstage { align-items: end; padding: 12px; }
  .stage-backstage > div { max-height: calc(100svh - 24px); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .stage-preflight-grid { grid-template-columns: 1fr; }
  .stage-diagnostics dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .stage-backstage-actions { justify-content: stretch; }
  .stage-backstage-actions .button { flex: 1; }
  .stage-backstage-control { flex: 0 0 44px; padding: 0; }
  .stage-backstage-control span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stage-backstage > div { animation: none; } }

/* Mobile Stage is a focused state surface, not a compressed desktop dashboard. */
@media (max-width: 767px) {
  .stage-page:has(.stage-room:not(.hidden)) {
    height: 100svh;
    overflow: hidden;
  }

  .stage-page:has(.stage-room:not(.hidden)) .stage-shell {
    width: 100%;
    height: calc(100svh - 66px);
    overflow: hidden;
  }

  .stage-room {
    box-sizing: border-box;
    height: calc(100svh - 66px);
    min-height: 0;
    padding: 22px 18px calc(78px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .stage-room-topline { gap: 12px; }
  .stage-room-topline .eyebrow,
  .stage-room-topline > p:last-child { font-size: .68rem; }

  .stage-main-speaker {
    min-height: 0;
    margin-top: 22px;
    padding: 18px 0 0;
  }

  .stage-speaker-avatar { width: 112px; height: 112px; font-size: 1.9rem; }
  .stage-main-speaker::before { top: 10px; width: 146px; height: 146px; }
  .stage-main-speaker::after { top: 10px; width: 184px; height: 184px; }
  .stage-main-speaker .eyebrow { margin: 28px 0 6px; font-size: .68rem; }
  .stage-main-speaker h1 { max-width: 330px; font-size: clamp(2rem, 9vw, 2.55rem); line-height: 1.05; }
  .stage-main-speaker > p:last-child { max-width: 285px; margin-top: 9px; color: rgba(247, 243, 255, .68); font-size: .86rem; line-height: 1.42; }

  .stage-room.stage-state-waiting .stage-main-speaker { margin-top: 17px; }
  .stage-room.stage-state-speaking .stage-main-speaker { margin-top: 24px; }

  /* Empty lists do not explain the same waiting state a second time. */
  .stage-room .stage-audience,
  .stage-room:not(.stage-moderator-view) .stage-speakers,
  .stage-room:not(.stage-moderator-view) .stage-requests,
  .stage-room.stage-moderator-view:not(.has-stage-speakers) .stage-speakers,
  .stage-room.stage-moderator-view:not(.has-stage-requests) .stage-requests { display: none; }

  /* A live request is moderator-only and intentionally becomes a compact task surface. */
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests {
    position: fixed;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 14;
    max-height: 152px;
    gap: 8px;
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid rgba(213, 184, 255, .28);
    border-radius: 8px;
    background: rgba(18, 15, 25, .94);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
  }

  .stage-room.stage-moderator-view.has-stage-requests .stage-requests > div { display: flex; align-items: baseline; gap: 8px; }
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests .eyebrow { margin: 0; font-size: .61rem; }
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests h2 { font-size: .95rem; }
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests ul { margin-top: 7px; }

  /* Presentation is the hero on a phone. The presenter identity stays with the shared content. */
  .stage-room.stage-state-presenting .stage-main-speaker { display: none; }
  .stage-room.stage-state-presenting .stage-screen-share { margin: 30px auto 0; }
  .stage-room.stage-state-presenting .stage-screen-share-frame { aspect-ratio: 16 / 10; }
  .stage-room.stage-state-presenting .stage-screen-share > p { margin-top: 12px; font-size: .76rem; line-height: 1.35; }

  /* The three listener commands read as a native dock instead of a floating card. */
  .stage-controls {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: auto;
    max-width: none;
    min-height: 64px;
    margin: 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(213, 184, 255, .2);
    border-radius: 0;
    background: rgba(10, 9, 16, .88);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
  }

  .stage-control { min-height: 48px; padding: 0 7px; }
  .stage-controls:has(#stage-mic:not(.hidden)) { justify-content: flex-start; overflow-x: auto; }
  .stage-controls:has(#stage-mic:not(.hidden)) .stage-control { flex: 0 0 48px; padding: 0; }
  .stage-controls:has(#stage-mic:not(.hidden)) .stage-control span { display: none; }

  .stage-hand-note {
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 21;
    margin: 0;
    font-size: .78rem;
  }

  .stage-chat {
    position: fixed;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 22;
    max-width: none;
    max-height: min(58svh, 470px);
    margin: 0;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: rgba(18, 15, 25, .97);
    box-shadow: 0 20px 54px rgba(0, 0, 0, .38);
  }

  .stage-chat-log { max-height: min(31svh, 250px); }
}

/* Mobile Stage overview: the hero changes, while the people layer remains learnable. */
.stage-screen-share-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.stage-screen-share > .stage-screen-share-meta > p { margin: 0; color: #d5b8ff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-align: center; }
.stage-screen-share-fullscreen { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(213, 184, 255, .34); border-radius: 7px; color: #d5b8ff; background: rgba(213, 184, 255, .06); cursor: pointer; }
.stage-screen-share-fullscreen:hover, .stage-screen-share-fullscreen:focus-visible { border-color: #d5b8ff; color: #20132e; background: #d5b8ff; }
.stage-screen-share-fullscreen svg { width: 16px; height: 16px; }
.stage-audience-more { display: none; }
@media (max-width: 767px) {
  .stage-page:has(.stage-room:not(.hidden)) { height: auto; overflow: visible; }
  .stage-page:has(.stage-room:not(.hidden)) .stage-shell { width: var(--content); height: auto; overflow: visible; }

  .stage-room {
    height: auto;
    min-height: calc(100svh - 66px);
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .stage-main-speaker {
    min-height: 340px;
    margin-top: 12px;
    padding: 20px 0 16px;
  }

  .stage-room.stage-state-waiting .stage-main-speaker,
  .stage-room.stage-state-speaking .stage-main-speaker { margin-top: 12px; }

  .stage-room .stage-audience,
  .stage-room:not(.stage-moderator-view) .stage-speakers,
  .stage-room:not(.stage-moderator-view) .stage-requests,
  .stage-room.stage-moderator-view:not(.has-stage-speakers) .stage-speakers,
  .stage-room.stage-moderator-view:not(.has-stage-requests) .stage-requests { display: grid; }

  .stage-room.stage-moderator-view.has-stage-requests .stage-requests {
    position: static;
    z-index: auto;
    max-height: none;
    gap: 13px;
    padding: 22px 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(213, 184, 255, .14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .stage-speakers,
  .stage-requests,
  .stage-audience {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 22px 0;
  }

  .stage-speakers > div,
  .stage-requests > div,
  .stage-audience > div,
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }

  .stage-speakers .eyebrow,
  .stage-requests .eyebrow,
  .stage-audience .eyebrow,
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests .eyebrow { margin: 0; font-size: .66rem; }
  .stage-speakers h2,
  .stage-requests h2,
  .stage-audience h2,
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests h2 { margin: 0; font-size: 1rem; }
  .stage-speakers h2 span,
  .stage-requests h2 span,
  .stage-audience h2 span { color: #a7f3d0; }

  .stage-speakers ul,
  .stage-requests ul,
  .stage-audience ul,
  .stage-room.stage-moderator-view.has-stage-requests .stage-requests ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin: 0;
    padding: 0 2px 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
  }

  .stage-speakers ul::-webkit-scrollbar,
  .stage-requests ul::-webkit-scrollbar,
  .stage-audience ul::-webkit-scrollbar { display: none; }

  .stage-speakers li.stage-person-card,
  .stage-requests li.stage-person-card,
  .stage-audience li.stage-person-card {
    position: relative;
    display: grid;
    flex: 0 0 74px;
    min-width: 0;
    justify-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .stage-speakers .stage-list-avatar,
  .stage-requests .stage-list-avatar,
  .stage-audience .stage-list-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(213, 184, 255, .36);
    border-radius: 50%;
  }

  .stage-speakers li.is-active .stage-list-avatar {
    border-color: #d5b8ff;
    box-shadow: 0 0 0 5px rgba(213, 184, 255, .1), 0 0 22px rgba(170, 113, 255, .48);
  }

  .stage-speakers li > span:nth-child(2),
  .stage-requests li > span:nth-child(2),
  .stage-audience li > span:nth-child(2) { min-width: 0; }
  .stage-speakers strong,
  .stage-requests strong,
  .stage-audience strong { overflow: hidden; max-width: 74px; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .stage-speakers small,
  .stage-requests small,
  .stage-audience small { overflow: hidden; max-width: 74px; margin-top: 2px; color: rgba(247, 243, 255, .56); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
  .stage-speakers li.is-active small { color: #a7f3d0; }

  .stage-speaker-mute {
    position: absolute;
    top: 29px;
    right: 7px;
    width: 24px;
    height: 24px;
  }

  .stage-request-invite { min-height: 28px; padding: 0 8px; font-size: .68rem; }

  .stage-audience li.stage-person-card:nth-child(n+6) { display: none; }
  .stage-audience-more { display: grid; flex: 0 0 48px; place-items: center; }
  .stage-audience-more button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(167, 243, 208, .38);
    border-radius: 50%;
    color: #a7f3d0;
    background: rgba(167, 243, 208, .06);
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
  }

  .stage-room.stage-state-presenting .stage-main-speaker {
    display: grid;
    min-height: 122px;
    margin-top: 4px;
    padding: 8px 0 12px;
  }
  .stage-room.stage-state-presenting .stage-speaker-avatar { display: none; }
  .stage-room.stage-state-presenting .stage-main-speaker::before,
  .stage-room.stage-state-presenting .stage-main-speaker::after { display: none; }
  .stage-room.stage-state-presenting .stage-main-speaker .eyebrow { margin-top: 0; }
  .stage-room.stage-state-presenting .stage-main-speaker h1 { font-size: 1.45rem; }
  .stage-room.stage-state-presenting .stage-main-speaker > p:last-child { margin-top: 5px; font-size: .8rem; }
  .stage-room.stage-state-presenting .stage-screen-share { margin-top: 18px; }
  .stage-room.stage-state-presenting .stage-screen-share-frame { aspect-ratio: 16 / 9; }

  .stage-screen-share-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
  .stage-screen-share > .stage-screen-share-meta > p { margin: 0; }
  .stage-screen-share-fullscreen {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(213, 184, 255, .34);
    border-radius: 7px;
    color: #d5b8ff;
    background: rgba(213, 184, 255, .06);
    cursor: pointer;
  }
  .stage-screen-share-fullscreen svg { width: 16px; height: 16px; }

  .stage-people-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: end;
    padding: 12px;
    background: rgba(8, 7, 12, .62);
    backdrop-filter: blur(8px);
  }
  .stage-people-sheet > div {
    max-height: min(68svh, 580px);
    overflow: auto;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border: 1px solid rgba(213, 184, 255, .3);
    border-radius: 8px;
    background: #17131f;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  }
  .stage-people-sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .stage-people-sheet-heading .eyebrow { margin: 0 0 5px; }
  .stage-people-sheet-heading h2 { margin: 0; font-size: 1.3rem; }
  .stage-people-sheet-heading button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(213, 184, 255, .28); border-radius: 7px; color: #f7f3ff; background: transparent; cursor: pointer; }
  .stage-people-sheet ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
  .stage-people-sheet li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(213, 184, 255, .1); }
  .stage-people-sheet li:last-child { border-bottom: 0; }
  .stage-people-sheet .stage-list-avatar { width: 34px; height: 34px; }
  .stage-people-sheet strong, .stage-people-sheet small { display: block; }
  .stage-people-sheet strong { font-size: .84rem; }
  .stage-people-sheet small { margin-top: 2px; color: #a7f3d0; font-size: .7rem; }
}

/* AKTS Knowledge lesson detail: enough context to choose, never the lesson itself. */
.study-layout.details-open {
  grid-template-columns: 250px minmax(420px, 560px);
  gap: clamp(22px, 3vw, 38px);
  justify-content: start;
}

.lesson-detail {
  position: sticky;
  top: 86px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 108px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 52px rgba(17, 17, 17, .08);
  animation: lessonDetailIn 220ms cubic-bezier(.2, .8, .2, 1) both;
}

.lesson-detail-scroll {
  overflow-y: auto;
  padding: clamp(28px, 4vw, 42px);
  overscroll-behavior: contain;
}

.lesson-detail-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.lesson-detail-context {
  margin: 0;
  color: #71717a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.lesson-detail-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  margin: -10px -10px 0 0;
  border: 0;
  border-radius: 7px;
  color: #71717a;
  background: transparent;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.lesson-detail-close:hover,
.lesson-detail-close:focus-visible { color: #111; background: #f4f4f5; outline: none; }

.lesson-detail h2 {
  max-width: 12ch;
  margin: 30px 0 0;
  color: #111;
  font-size: clamp(2.15rem, 3.6vw, 3.6rem);
  line-height: 1.04;
}

.lesson-detail-hook {
  max-width: 27ch;
  margin: 22px 0 0;
  color: #18181b;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.48;
  white-space: pre-line;
}

.lesson-detail-description {
  margin: 30px 0 0;
  color: #52525b;
  font-size: 1rem;
  line-height: 1.7;
}

.lesson-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 26px 0 0;
  color: #52525b;
  font-size: .82rem;
  line-height: 1.5;
}

.lesson-detail-facts span + span::before { content: "·"; margin: 0 9px; color: #a1a1aa; }

.lesson-detail-section { margin-top: 52px; }
.lesson-detail-section h3 { margin: 0 0 15px; color: #18181b; font-size: 1rem; line-height: 1.4; }

.lesson-detail-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-detail-section li {
  position: relative;
  padding-left: 16px;
  color: #3f3f46;
  font-size: .94rem;
  line-height: 1.55;
}

.lesson-detail-section li::before { content: "—"; position: absolute; left: 0; color: #a1a1aa; }

.lesson-detail-concepts { margin-top: 42px; }
.lesson-detail-concepts h3 { color: #71717a; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lesson-detail-concepts p { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 0; color: #52525b; font-size: .82rem; }
.lesson-detail-concepts span { padding-bottom: 2px; border-bottom: 1px solid #d4d4d8; }

.lesson-detail-recommended { margin-top: 38px; }
.lesson-detail-recommended button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  border: 0;
  padding: 0;
  color: #18181b;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.lesson-detail-recommended button span { font-weight: 700; }
.lesson-detail-recommended button small { color: #71717a; font-size: .76rem; white-space: nowrap; }
.lesson-detail-recommended button:hover span,
.lesson-detail-recommended button:focus-visible span { color: #6d5ef8; }

.lesson-detail-action {
  padding: 16px clamp(28px, 4vw, 42px) 20px;
  border-top: 1px solid #e4e4e7;
  background: rgba(255, 255, 255, .98);
}
.lesson-detail-action > p { margin: 0 0 8px; color: #71717a; font-size: .76rem; }
.lesson-detail-action .button { width: 100%; min-height: 46px; justify-content: center; }
.study-layout.details-open .lesson-view { display: none; }

@keyframes lessonDetailIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1080px) and (min-width: 768px) {
  .study-layout.details-open { grid-template-columns: 230px minmax(0, 1fr); }
  .study-layout.details-open .lesson-detail { grid-column: 2; }
}

@media (max-width: 767px) {
  body.lesson-detail-open { overflow: hidden; }
  .study-layout.details-open { display: grid; grid-template-columns: 1fr; }
  .study-layout.details-open .lesson-view { display: block; }
  .lesson-detail {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(17, 17, 17, .22);
    box-shadow: none;
  }
  .lesson-detail-scroll {
    position: absolute;
    top: 18svh;
    right: 0;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 0;
    overflow-y: auto;
    padding: 24px 22px 32px;
    border-radius: 12px 12px 0 0;
    background: #fff;
  }
  .lesson-detail-topline { position: sticky; top: -24px; z-index: 1; padding: 18px 0 14px; background: #fff; }
  .lesson-detail-close { flex-basis: 44px; width: 44px; height: 44px; margin: -7px -8px 0 0; }
  .lesson-detail h2 { max-width: 13ch; margin-top: 20px; font-size: clamp(2.3rem, 11vw, 3.25rem); }
  .lesson-detail-hook { margin-top: 18px; font-size: 1.1rem; line-height: 1.48; }
  .lesson-detail-description { margin-top: 24px; font-size: .94rem; line-height: 1.62; }
  .lesson-detail-facts { margin-top: 20px; font-size: .78rem; }
  .lesson-detail-section { margin-top: 38px; }
  .lesson-detail-action {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 74px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top-color: #e4e4e7;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(17, 17, 17, .06);
  }
}

@media (prefers-reduced-motion: reduce) { .lesson-detail { animation: none; } }

/* Reading mode deliberately leaves browsing behind and gives the lesson the whole frame. */
.lesson-back { display: none; }
.study-layout.reading-mode {
  display: block;
  width: min(920px, var(--content));
  padding-top: 42px;
}
.study-layout.reading-mode .topic-panel { display: none; }
.study-layout.reading-mode .lesson-view {
  max-width: 840px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px);
  opacity: 1;
}
.study-layout.reading-mode .lesson-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: -12px 0 26px;
  border: 0;
  padding: 0;
  color: #71717a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
}
.study-layout.reading-mode .lesson-back:hover,
.study-layout.reading-mode .lesson-back:focus-visible { color: #6d5ef8; outline: none; }

@media (max-width: 767px) {
  .study-layout.reading-mode { width: var(--content); padding-top: 22px; }
  .study-layout.reading-mode .lesson-view { min-height: calc(100svh - 96px); padding: 28px 0 48px; background: transparent; }
  .study-layout.reading-mode .lesson-back { margin: 0 0 20px; }
  .study-layout.reading-mode .lesson-view h2 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
}
