@font-face {
  font-family: "Starlight Title";
  src: url("assets/cover-title.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #13234e;
  --muted: #52628a;
  --blue: #2457c7;
  --purple: #6747ba;
  --paper: #f6f8ff;
  --line: #dce4f7;
  --panel: #ffffff;
  --radius: 22px;
  --gutter: clamp(1.1rem, 4vw, 4.6rem);
  --shadow: 0 16px 48px #263d8312, 0 3px 8px #263d8308;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #eaf0fc;
  color: var(--ink);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); }
:is(button, a, input):focus-visible { outline: 3px solid #3978ec; outline-offset: 4px; }
.scene :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
:is(h1, h2, h3, h4, p, figure) { margin: 0; }
img { display: block; max-width: 100%; }

.topbar, .bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  min-height: 3.75rem;
  background: #f9fbff;
  z-index: 5;
}
.topbar { border-bottom: 1px solid var(--line); }
.bottom-bar { position: sticky; bottom: 0; border-top: 1px solid var(--line); padding-block: .45rem; }
.brand, .topbar-actions, .nav-controls, .inline-actions { display: flex; align-items: center; gap: .6rem; }
.brand { font-weight: 800; letter-spacing: .08em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: .62rem;
  color: white;
  background: linear-gradient(135deg, #366ce2, #7b53d6);
  box-shadow: 0 3px 12px #507ce147;
  font-size: 1.28rem;
  line-height: 1;
}
.cover-brand-mark, .cover-progress, .cover-horizon { display: none; }

body[data-scene="intro"] { position: relative; display: block; background: #091536; }
body[data-scene="intro"] :is(.topbar, .bottom-bar) {
  position: absolute;
  inset-inline: 0;
}
body[data-scene="intro"] .topbar {
  top: 0;
  min-height: clamp(3.4rem, 7.9vh, 5.5rem);
  color: #f7f8ff;
  background: linear-gradient(180deg, #06163d9c, #0c1c478a);
  border-color: #b9c5ff48;
}
body[data-scene="intro"] .brand { gap: clamp(.65rem, 1.3vw, 1.35rem); font-size: clamp(1rem, 1.85vw, 1.9rem); }
body[data-scene="intro"] .brand-mark { display: none; }
body[data-scene="intro"] .cover-brand-mark { display: block; margin-right: .15rem; }
.planet-mark {
  position: relative;
  flex: none;
  width: clamp(1.5rem, 2.8vw, 2.9rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 23%, #90f0ff, #4f9def 34%, #654bee 66%, #ad72fb);
  box-shadow: 0 0 .9rem #5a8bffc4;
}
.planet-mark::after {
  content: "";
  position: absolute;
  inset: 32% -30%;
  border: clamp(1px, .15vw, 3px) solid #e0adff;
  border-top-color: #8cd3ff;
  border-radius: 50%;
  rotate: -29deg;
}
body[data-scene="intro"] .top-button {
  display: flex;
  align-items: center;
  gap: .52rem;
  color: #f4f6ff;
  font-size: clamp(.94rem, 1.35vw, 1.3rem);
  font-weight: 650;
}
body[data-scene="intro"] .top-button:hover { background: #9eaff42c; }
body[data-scene="intro"] .top-button::before {
  content: "";
  width: .95em;
  height: .86em;
}
body[data-scene="intro"] #open-chapters::before {
  border: 2px solid currentColor;
  border-radius: .25rem .25rem .15rem .15rem;
  background: linear-gradient(90deg, transparent 43%, currentColor 44% 55%, transparent 56%);
}
body[data-scene="intro"] #fullscreen::before {
  background:
    conic-gradient(from 90deg at 2px 2px, #0000 0 25%, currentColor 0) top left,
    conic-gradient(from 180deg at calc(100% - 2px) 2px, #0000 0 25%, currentColor 0) top right,
    conic-gradient(from 0deg at 2px calc(100% - 2px), #0000 0 25%, currentColor 0) bottom left,
    conic-gradient(from 270deg at calc(100% - 2px) calc(100% - 2px), #0000 0 25%, currentColor 0) bottom right;
  background-size: 37% 40%;
  background-repeat: no-repeat;
}
body[data-scene="intro"] .bottom-bar {
  bottom: 0;
  min-height: clamp(3.85rem, 9.25vh, 6rem);
  isolation: isolate;
  border: 0;
  background: linear-gradient(180deg, #d4d8fc 0%, #eceafe 69%, #f4f1ff 100%);
  box-shadow: 0 0 2rem #879aff70;
}
body[data-scene="intro"] #position-index { color: #4b49db; font-size: clamp(.92rem, 1.5vw, 1.43rem); }
body[data-scene="intro"] #position-name { font-size: clamp(.9rem, 1.42vw, 1.32rem); }
body[data-scene="intro"] #progress { display: none; }
body[data-scene="intro"] .cover-horizon {
  display: block;
  position: absolute;
  inset: auto 0 100%;
  height: clamp(1.9rem, 5vh, 3.8rem);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cover-horizon::before, .cover-horizon::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 275%;
  top: 48%;
  border-top: 3px solid #eaf2ff;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background: linear-gradient(140deg, #b1baf0, #d4d8fc 72%);
  box-shadow: 0 -5px 0 #9ca9ffad, 0 -15px 0 #819dfb49;
}
.cover-horizon::before { left: -9%; rotate: 5deg; }
.cover-horizon::after { right: -9%; rotate: -5deg; }
body[data-scene="intro"] .cover-progress {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  width: clamp(14rem, 28vw, 30rem);
}
.cover-progress::before {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  top: 50%;
  height: 2px;
  background: #9199ec;
}
.cover-stop {
  display: grid;
  place-items: center;
  position: relative;
  width: 1.55rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
}
.cover-stop:not([aria-current])::before {
  content: "";
  width: .62rem;
  aspect-ratio: 1;
  border: 1px solid #8f9aea;
  border-radius: 50%;
  background: #fbfbff;
}
.cover-stop:hover::before { box-shadow: 0 0 0 3px #888bf55c; }
.cover-stop .planet-mark { width: clamp(1.25rem, 2vw, 1.9rem); }
body[data-scene="intro"] .nav-controls .button {
  min-height: clamp(2.45rem, 5.6vh, 3.2rem);
  border-radius: 99rem;
  padding-inline: clamp(.8rem, 1.45vw, 1.6rem);
}
body[data-scene="intro"] #next {
  background: linear-gradient(120deg, #7865f5, #6146ed);
  box-shadow: 0 .28rem .75rem #6e55ed57;
}
body[data-scene="intro"] #previous { border-color: #9b9eed; background: #f3f0ff; }
.plain { border: 0; padding: 0; background: transparent; color: inherit; }
.top-button { min-width: 3.25rem; padding: .5rem .65rem; border-radius: .6rem; color: var(--muted); font-weight: 700; }
.top-button:hover { background: #eaf0fc; color: var(--ink); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .52rem 1rem;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-weight: 700;
  line-height: 1.25;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:not(:disabled):active { transform: translateY(0); }
.primary { color: white; background: linear-gradient(115deg, #2459cd, #6242bf); box-shadow: 0 5px 12px #3158c12b; }
.primary:not(:disabled):hover { box-shadow: 0 6px 16px #3158c158; }
.secondary { border-color: #cbd8f5; background: #f7faff; color: var(--ink); }
.secondary:not(:disabled):hover { background: #eaf0ff; }
.button:disabled { opacity: .4; box-shadow: none; }
.position { display: flex; align-items: baseline; gap: .75rem; min-width: 9rem; color: var(--muted); }
#position-index { font-size: .94rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
#position-name { font-weight: 650; }
progress { width: min(24vw, 19rem); height: .3rem; border: 0; border-radius: 100px; overflow: hidden; background: #e2eafb; }
progress::-webkit-progress-bar { background: #e2eafb; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #3881e8, #8355cf); transition: width .3s ease; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #3881e8, #8355cf); }

#stage { min-width: 0; display: grid; }
.scene {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.content-scene {
  background: radial-gradient(ellipse at 0% 0%, #e2f1ff 0%, transparent 52%),
              radial-gradient(ellipse at 100% 0%, #eee6ff 0%, transparent 44%), var(--paper);
  padding: clamp(1.5rem, 5vh, 3.65rem) var(--gutter) clamp(1.5rem, 4vh, 3.2rem);
}
.content-scene > * { width: 100%; max-width: 1380px; margin-inline: auto; }
.section-heading { margin-bottom: clamp(1rem, 3.3vh, 2.1rem); }
.section-heading .kicker { margin-bottom: .42rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #42578c;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
}
.kicker span { width: 1.45rem; height: 2px; background: #5476d9; border-radius: 10px; }
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.13;
  text-wrap: balance;
}
.section-heading > p:last-child:not(.kicker) {
  margin-top: .55rem;
  font-size: clamp(1rem, 1.42vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
}
.scene:not([hidden]) .scene-enter { animation: scene-in .58s cubic-bezier(.18,.65,.25,1) both; }
.scene:not([hidden]) .scene-enter:nth-child(2) { animation-delay: .065s; }
.scene:not([hidden]) .scene-enter:nth-child(3) { animation-delay: .12s; }
@keyframes scene-in { from { opacity: 0; translate: 0 13px; } to { opacity: 1; translate: 0 0; } }
.surface {
  border: 1px solid #dfe7f8;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scene-cover {
  display: grid;
  align-items: center;
  min-height: min(40rem, calc(100svh - 7.5rem));
  overflow: hidden;
  color: #f6faff;
  background: #111e46;
}
.cover-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
#intro { min-height: 100vh; min-height: 100svh; background: #091536; }
#intro .cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #07173908 57%, #101c4d20 76%, #1f327f73 100%);
}
.cover-world {
  --art-width: max(100vw, 177.68svh);
  --art-height: max(56.28vw, 100svh);
  --art-x: .5;
  position: absolute;
  left: calc((100% - var(--art-width)) * var(--art-x));
  top: calc((100% - var(--art-height)) * .4);
  width: var(--art-width);
  aspect-ratio: 1672 / 941;
  background: url("assets/academy.webp") center / cover no-repeat;
}
.cover-planet {
  position: absolute;
  left: 73.65%;
  top: 20.5%;
  width: 14.31%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0;
  border-radius: 50%;
  filter: brightness(1.14) saturate(1.15);
  mask-image: radial-gradient(circle closest-side, #000 0 72%, #000d 90%, transparent 100%);
  pointer-events: none;
}
.cover-planet.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cover-planet { display: none; }
}
.cover-content { position: relative; width: min(100%, 1460px); margin-inline: auto; padding: 2.2rem var(--gutter); }
.cover-content .kicker { color: #b7d8ff; margin-bottom: 1.2rem; }
.cover-content .kicker span { background: #79c8ff; }
.intro-content {
  display: grid;
  align-self: stretch;
  grid-template-rows: 1fr auto;
  gap: .85rem;
  width: 100%;
  padding: clamp(5.2rem, 20.4vh, 13rem) clamp(1.1rem, 7.1vw, 8.1rem) clamp(6.2rem, 19vh, 12.5rem);
}
.intro-heading {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-inline-end: 10vw;
}
.intro-title-line { position: relative; isolation: isolate; width: max-content; max-width: 100%; }
.intro-orbit {
  position: absolute;
  inset: -8% -10% -16% -6%;
  z-index: -1;
  rotate: -11deg;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #9fc9ff8c;
  border-right-color: #e4eaff;
  filter: drop-shadow(0 0 .6rem #94adff);
  mask-image: linear-gradient(90deg, transparent 41%, #000 67%);
}
.intro-orbit::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 4%;
  width: clamp(1.45rem, 4vw, 4.1rem);
  aspect-ratio: 1;
  background: #fff1dd;
  clip-path: polygon(50% 0, 58% 32%, 68% 42%, 100% 50%, 68% 58%, 58% 68%, 50% 100%, 42% 68%, 32% 58%, 0 50%, 32% 42%, 42% 32%);
}
.intro-heading h1 {
  display: inline-block;
  color: #f4f6ff;
  font-family: "Starlight Title", "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(1.8rem, 6.7vw, 7.35rem);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.17;
  text-shadow: 0 .15rem .3rem #132557, 0 0 .85rem #c6d8ff65;
  transform: skewX(-7deg);
  white-space: nowrap;
}
.intro-heading h1 span {
  color: #e1caff;
  background: linear-gradient(115deg, #d5efff, #e5adfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 .65rem #a98bf770);
}
.intro-subtitle {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.15vw, 1.1rem);
  width: fit-content;
  max-width: 100%;
  padding: .46rem clamp(.75rem, 1.55vw, 1.55rem);
  margin-top: clamp(.65rem, 2.2vh, 1.6rem);
  border: 1px solid #bfc8ffab;
  border-radius: 5rem;
  background: linear-gradient(110deg, #244b9bdf, #515ab5aa);
  box-shadow: inset 0 0 1rem #b0a8fa4f, 0 .3rem 1rem #061a4e70;
  color: #f2f6ff;
  font-size: clamp(.94rem, 1.63vw, 1.65rem);
  line-height: 1.48;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 10px #030d2c;
}
.subtitle-copy > span { display: inline-block; }
.subtitle-light { color: #f3eaff; text-shadow: 0 0 .6rem #a995ff; }
.intro-byline {
  display: grid;
  justify-items: center;
  gap: .32rem;
  color: #edf2ff;
  font-size: clamp(.88rem, 1.36vw, 1.39rem);
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 10px #050e30, 0 0 1.4rem #122f68;
}
.intro-byline strong {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.9rem);
  color: #f4f6ff;
  font-size: clamp(1.35rem, 2.45vw, 2.55rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: .12em;
}
.intro-byline strong::before, .intro-byline strong::after {
  content: "";
  width: clamp(1.4rem, 3vw, 3.2rem);
  height: 2px;
  background: #e2e9fdde;
}
.cover-replay { min-height: 2.8rem; padding-inline: 1.35rem; }
.cover-subtitle { font-size: clamp(1rem, 1.9vw, 1.55rem); line-height: 1.65; margin-top: 1.25rem; color: #e9eeff; }
.cover-replay { margin-top: 1.35rem; background: #101d52a6; color: #f2f6ff; border-color: #738cc5; }
.cover-replay:hover { background: #223772 !important; }
.light-trail {
  pointer-events: none;
  position: absolute;
  left: -24%;
  bottom: 6%;
  width: 26%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #75cafaff, #ffffff);
  filter: drop-shadow(0 0 9px #9de6ff);
  opacity: 0;
}
.launch-sequence {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  background: #03050d;
  transition: opacity var(--launch-reveal-duration) cubic-bezier(.24,.62,.43,1);
}
.launch-sequence.is-ending { opacity: 0; pointer-events: none; }
.launch-sequence canvas { display: block; width: 100%; height: 100%; }
.launch-skip {
  position: absolute;
  inset: auto max(var(--gutter), env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  padding: .62rem .84rem;
  border-radius: .62rem;
  border: 1px solid #b9cff680;
  background: #091226c9;
  color: #e9f1ff;
  font-weight: 700;
}
#intro.is-waiting .cover-content { opacity: 0; animation: none; }
#intro.is-revealing .cover-content { animation: title-in var(--launch-reveal-duration) cubic-bezier(.14,.78,.25,1) both; }
#intro.is-revealing .light-trail { animation: cover-trail var(--launch-reveal-duration) ease-out both; }
@keyframes title-in {
  from { opacity: 0; translate: 0 8px; filter: blur(3px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes cover-trail {
  0% { translate: 0 0; opacity: 0; }
  18% { opacity: .9; }
  100% { translate: 510% -88px; opacity: 0; }
}
.finale .cover-art { background: linear-gradient(180deg, #08163835, #0816380d), url("assets/farewell.webp") center 61% / cover no-repeat; }
.finale .cover-content { padding-bottom: clamp(5.5rem, 20vh, 13rem); text-align: center; }
.finale .kicker { justify-content: center; }
.finale h2 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .99;
  text-shadow: 0 8px 34px #070b35a3;
}

.cycle-layout, .profiles-layout, .demo-layout {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.classroom-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(.7rem, 2vh, 1.15rem);
}
.classroom-step {
  min-height: 2.6rem;
  padding: .43rem .92rem;
  border: 1px solid #c5d6f4;
  border-radius: .68rem;
  background: #f8faff;
  color: #3b5489;
  font-weight: 750;
}
.classroom-step:hover { background: #ecf2ff; border-color: #90a9e7; }
.classroom-step[aria-pressed="true"] {
  border-color: #c3d4fa;
  background: #dae8ff;
  color: #234b9d;
  box-shadow: inset 0 -2px #4977dc;
}
.classroom-step:nth-child(2)[aria-pressed="true"] { color: #4e41a0; background: #e7e4ff; box-shadow: inset 0 -2px #7865d2; }
.classroom-step:nth-child(3)[aria-pressed="true"] { color: #653989; background: #efe5ff; box-shadow: inset 0 -2px #9465bd; }

.classroom-panel {
  --case-ink: #2754a8;
  --case-accent: #759cec;
  display: grid;
  grid-template-columns: minmax(13rem, .78fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-width: 0;
  padding: clamp(.9rem, 2.4vw, 2rem);
  border: 1px solid #dce6fa;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  box-shadow: var(--shadow);
}
.classroom-case { animation: change-in .38s ease both; }
.case-learning { --case-ink: #5142a2; --case-accent: #967fdf; }
.case-support { --case-ink: #633d92; --case-accent: #ac7bd3; }
.classroom-copy h3 {
  color: var(--case-ink);
  font-size: clamp(2.65rem, 5.4vw, 5.2rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.055em;
}
.classroom-points {
  display: grid;
  gap: .8rem;
  margin: clamp(.8rem, 2.7vh, 1.65rem) 0 0;
  padding: 0;
  list-style: none;
}
.classroom-points li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.63vw, 1.45rem);
  line-height: 1.46;
}
.classroom-points li::before {
  content: "";
  flex: 0 0 .45rem;
  height: .45rem;
  border-radius: 100%;
  background: var(--case-accent);
}
.classroom-visual {
  position: relative;
  min-width: 0;
  height: clamp(13.5rem, 43vh, 25rem);
  overflow: hidden;
  border: 1px solid #d8e3f8;
  border-radius: .88rem;
  background: #e8edff;
}
.classroom-visual img { width: 100%; height: 100%; object-fit: cover; }
.blackbox-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  position: absolute;
  inset: auto .55rem .55rem 15%;
  padding: .37rem;
  border: 1px solid #c2c9ed;
  border-radius: .58rem;
  color: #332e6d;
  background: #f5f3ffed;
  text-align: center;
  font-size: clamp(.84rem, 1.05vw, 1rem);
  font-weight: 700;
}
.blackbox-labels span:nth-child(2) { color: #756d95; }
.classroom-product {
  --case-ink: #3e4eae;
  position: relative;
  overflow: hidden;
}
.classroom-product h3 { margin-block: .55rem; font-size: clamp(2.45rem, 5vw, 4.7rem); }
.classroom-product p { font-size: clamp(1rem, 1.42vw, 1.22rem); line-height: 1.58; color: var(--muted); }
.classroom-product .classroom-question { color: var(--ink); font-weight: 720; }
.classroom-product .showcase img { max-height: 42vh; object-fit: contain; }
.classroom-product :is(.classroom-copy, .showcase) { animation: change-in .57s .40s ease both; }
.classroom-convergence {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.classroom-convergence span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(3rem, 12vw, 11rem);
  height: 3px;
  margin-left: clamp(-5.5rem, -6vw, -1.5rem);
  border-radius: 1rem;
  background: linear-gradient(90deg, transparent, var(--ray-color), #fff);
  box-shadow: 0 0 .8rem var(--ray-color);
  rotate: var(--ray-angle);
  animation: classroom-ray .66s cubic-bezier(.25,.72,.38,1) both;
}
.classroom-convergence span:nth-child(1) { --ray-color: #4089e6; --ray-angle: 16deg; --ray-x: -27vw; --ray-y: -8vh; }
.classroom-convergence span:nth-child(2) { --ray-color: #806ae7; --ray-angle: -91deg; --ray-x: 0; --ray-y: 24vh; }
.classroom-convergence span:nth-child(3) { --ray-color: #aa6cdd; --ray-angle: 161deg; --ray-x: 27vw; --ray-y: -8vh; }
.classroom-convergence::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(3rem, 10vw, 7rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: classroom-star .47s .36s ease-out both;
}
.classroom-convergence::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #fff 0%, #e5deffae 17%, transparent 63%);
  animation: classroom-flash .48s .34s ease-out both;
}
@keyframes classroom-ray {
  0% { opacity: 0; translate: var(--ray-x) var(--ray-y); }
  18% { opacity: 1; }
  78% { opacity: .93; }
  100% { translate: 0 0; scale: .05; opacity: 0; }
}
@keyframes classroom-flash {
  0%, 100% { opacity: 0; }
  34% { opacity: .95; }
}
@keyframes classroom-star {
  0% { opacity: 0; scale: .2; }
  32% { opacity: 1; }
  100% { opacity: 0; scale: 1.4; }
}
.showcase figcaption, .cluster-figure figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.image-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #cddaf5; border-radius: 1rem; background: #131f48; }
.image-button img { width: 100%; height: auto; }
.image-button:hover { box-shadow: 0 0 0 3px #91b8f977, var(--shadow); }
.image-action {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  border-radius: .43rem;
  padding: .35rem .55rem;
  color: #10285c;
  background: #f6faffef;
  font-size: .83rem;
  font-weight: 750;
}
.showcase .image-button { box-shadow: 0 15px 45px #263b7b29; }

.cycle-layout { grid-template-columns: minmax(0, 1.13fr) minmax(18rem, .87fr); gap: clamp(.75rem, 5vw, 5rem); }
.cycle-map { width: 100%; aspect-ratio: 1.41; position: relative; max-width: 42rem; }
.orbit, .orbit-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.orbit {
  width: 66%;
  height: 73%;
  border: 1.5px solid #bbcdf6;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d8e7ff80, transparent 69%);
}
.orbit::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: #4c74da;
  border-bottom-color: #a17ae4;
  border-radius: inherit;
  rotate: -14deg;
  transition: rotate .5s cubic-bezier(.2,.8,.2,1);
}
.cycle-map[data-step="1"] .orbit::before { rotate: 46deg; }
.cycle-map[data-step="2"] .orbit::before { rotate: 106deg; }
.cycle-map[data-step="3"] .orbit::before { rotate: 166deg; }
.cycle-map[data-step="4"] .orbit::before { rotate: 226deg; }
.cycle-map[data-step="5"] .orbit::before { rotate: 286deg; }
.orbit-core { display: grid; place-content: center; text-align: center; background: linear-gradient(145deg,#eef6ff,#e4dbff); color: #3454ab; border: 1px solid #bacbf3; width: 29%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 22px #fff; }
.orbit-core span { font-size: clamp(2rem, 5.1vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.orbit-core small { color: #43587f; margin-top: .45rem; font-weight: 700; }
.cycle-nodes { position: absolute; inset: 0; }
.cycle-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  min-height: 2.75rem;
  min-width: 7rem;
  border-radius: .9rem;
  border: 1px solid #b7c8f0;
  background: #fafdff;
  color: var(--ink);
  box-shadow: 0 4px 13px #274baa16;
  font-size: clamp(.9rem, 1.42vw, 1.16rem);
  font-weight: 750;
  white-space: nowrap;
}
.cycle-node[aria-pressed="true"] { color: white; border-color: #527ce7; background: linear-gradient(125deg,#1e5fd0,#6841c5); box-shadow: 0 0 0 6px #7196e62f, 0 7px 22px #335cc63e; }
.cycle-node:hover:not([aria-pressed="true"]) { border-color: #587ed5; background: #ebf2ff; }
.cycle-info { padding: clamp(1.2rem, 3vw, 2.75rem); }
.cycle-count { color: #5269af; font-size: .94rem; font-weight: 800; }
.cycle-detail h3 { font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.26; margin: .45rem 0 .5rem; }
.cycle-detail p, .cycle-detail dd { color: var(--muted); line-height: 1.65; }
.cycle-detail dl { padding: .7rem .9rem; margin: .9rem 0 1.05rem; background: #eff4ff; border-left: 3px solid #7f9ce4; border-radius: 0 .55rem .55rem 0; }
.cycle-detail dt { margin-bottom: .25rem; color: #284a99; font-weight: 800; }
.cycle-detail dd { margin: 0; }
.inline-actions { flex-wrap: wrap; }
.change-in { animation: change-in .35s ease both; }
@keyframes change-in { from { opacity: .36; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }

.tabs { display: flex; flex-wrap: wrap; gap: .46rem; margin-bottom: 1rem; }
.tab {
  min-height: 2.55rem;
  padding: .48rem .9rem;
  background: #f8faff;
  color: #3c5182;
  border: 1px solid #c9d7f2;
  border-radius: .65rem;
  font-weight: 700;
}
.tab:hover { border-color: #7b9cde; background: #eaf1ff; }
.tab[aria-pressed="true"] { color: white; background: #3259be; border-color: #3259be; box-shadow: 0 3px 9px #3a60ba2c; }
.engineering-detail { min-width: 0; }
.engineering-layout { display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.25fr); gap: clamp(1rem, 3.5vw, 2.75rem); align-items: center; }
.engineering-copy { padding: clamp(1.15rem, 2.8vw, 2rem); }
.engineering-copy h3 { font-size: clamp(1.4rem, 2.8vw, 2.35rem); margin-bottom: .55rem; }
.engineering-copy p { color: var(--muted); line-height: 1.65; }
.engineering-copy ul { padding-left: 1.18rem; margin-block: .75rem 0; }
.engineering-copy li { margin-block: .3rem; line-height: 1.53; }
.engineering-snapshot { display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; margin-top: .9rem; }
.engineering-snapshot strong { display: block; color: #355ac4; font-size: 1.72rem; font-variant-numeric: tabular-nums; }
.engineering-snapshot span { color: var(--muted); }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.doc-item { padding: 1rem 1.2rem; }
.doc-item code { color: var(--blue); font-weight: 750; overflow-wrap: anywhere; }
.doc-item h3 { margin: .36rem 0; font-size: 1.25rem; }
.doc-item p { color: var(--muted); line-height: 1.55; }

.theory-panel { padding: clamp(.65rem, 2vw, 1.5rem); }
.theory-row { display: grid; grid-template-columns: minmax(10rem,.73fr) minmax(0,1fr) minmax(0,1fr); gap: clamp(.8rem, 3vw, 2.4rem); padding: 1.25rem .75rem; align-items: start; }
.theory-row + .theory-row { border-top: 1px solid var(--line); }
.theory-row h3 { font-size: clamp(1.38rem, 2.1vw, 1.8rem); line-height: 1.25; color: var(--blue); margin-bottom: .4rem; }
.theory-row:nth-child(2) h3, .theory-collaboration h3 { color: var(--purple); }
.theory-row p, .theory-collaboration p { color: #394e78; line-height: 1.65; }
.theory-row strong { display: block; color: var(--ink); margin-bottom: .24rem; }
.reference { font-size: .93rem; font-weight: 650; text-underline-offset: .2em; }
.theory-collaboration { display: grid; grid-template-columns: minmax(10rem,.38fr) minmax(0,1fr); gap: 1rem; margin-top: .45rem; padding: .95rem 1rem; border-radius: .8rem; background: #edeaff; }
.theory-collaboration h3 { font-size: 1.22rem; line-height: 1.4; }

.profiles-layout { grid-template-columns: minmax(0,1.23fr) minmax(16rem,.77fr); }
.profile-distribution { padding: clamp(1rem, 2.4vw, 1.75rem); }
.sample-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; color: var(--muted); }
.sample-total strong { color: #2f5ccd; font-size: clamp(2.6rem, 4.5vw, 4.25rem); letter-spacing: -.07em; line-height: 1; font-variant-numeric: tabular-nums; }
.profile-counts { margin: .85rem 0 1rem; }
.profile-count-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid #e4eafa; }
.profile-count-row h3 { font-size: 1rem; }
.profile-count-row strong { color: #365cca; font-variant-numeric: tabular-nums; }
.count-track { grid-column: 1/-1; width: 100%; height: .32rem; background: #eaf0ff; border-radius: 1rem; overflow: hidden; }
.count-fill { display: block; height: 100%; background: var(--color, #4e7cdb); border-radius: inherit; }

.demo-layout { grid-template-columns: minmax(0,1.13fr) minmax(17rem,.87fr); gap: clamp(.85rem, 2.5vw, 1.7rem); align-items: stretch; }
.support-panel, .sim { padding: clamp(.8rem, 2vw, 1.4rem); }
.support-lead { margin-bottom: .55rem; }
.support-lead h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: .25rem 0; color: #2c51af; }
.support-lead p { color: var(--muted); line-height: 1.5; }
.example-label { font-size: .88rem; color: #3e5995; font-weight: 800; }
.prompt-example {
  margin: 0 0 .65rem;
  padding: .65rem .75rem;
  border-radius: .72rem;
  background: #eef3ff;
  color: #172f6b;
  border: 1px solid #dce7fc;
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  font-weight: 740;
  line-height: 1.48;
}
.support-panel details { color: var(--ink); }
.support-panel summary { font-weight: 750; color: var(--blue); padding: .24rem 0; cursor: pointer; }
.support-details { display: grid; gap: .32rem; margin: .4rem 0 0; padding: 0; color: var(--muted); line-height: 1.53; }
.support-details dt { font-weight: 750; color: var(--ink); }
.support-details dd { margin: 0 0 .15rem; }
.sim { display: flex; flex-direction: column; gap: .6rem; }
.sim-room {
  min-height: clamp(6.3rem, 17vh, 11rem);
  border-radius: .8rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: linear-gradient(148deg, var(--room-light, #738aca), #35446e);
  transition: background-color .32s ease;
}
.room-window { position: absolute; left: 10%; top: 21%; width: 23%; aspect-ratio: 1.4; border: 4px solid #eaf4ffb5; border-radius: .38rem; background: linear-gradient(145deg,#f0f9ff, #94bdff); opacity: var(--window-light, .72); box-shadow: inset 0 0 0 1px #37558e60; }
.room-window::before, .room-window::after { content: ""; position: absolute; background: #5d7ab088; }
.room-window::before { left: 48%; width: 2px; height: 100%; }
.room-window::after { top: 47%; width: 100%; height: 2px; }
.lamp { position: absolute; left: 56%; top: 0; height: 100%; width: 8rem; translate: -50% 0; }
.lamp-arm { position: absolute; left: 49%; width: 2px; height: 26%; background: #1b2b57; }
.lamp-shade { position: absolute; left: 22%; top: 25%; width: 56%; height: 22%; border-radius: 100px 100px 8px 8px; background: #213761; z-index: 1; }
.lamp-glow { position: absolute; left: -45%; top: 30%; width: 190%; height: 100%; opacity: 0; transition: opacity .32s ease; background: radial-gradient(ellipse at 50% 12%, #fff9b3 2%, #ffe58a88 30%, transparent 70%); }
.is-lit .lamp-glow { opacity: 1; }
.is-lit .lamp-shade { box-shadow: 0 5px 10px #ffed8d; }
.lamp-state { position: absolute; right: .6rem; bottom: .55rem; color: #fff; background: #132244e8; border-radius: .38rem; padding: .27rem .55rem; font-size: .91rem; font-weight: 750; z-index: 2; }
.is-lit .lamp-state { background: #fff6c6; color: #53411a; }
.sim-controls { display: grid; grid-template-columns: 1fr; gap: .2rem; }
.sim-controls label { display: flex; justify-content: space-between; align-items: center; color: #253d74; font-size: .96rem; font-weight: 700; }
.sim-controls output { color: var(--blue); font-variant-numeric: tabular-nums; }
.sim-controls input { width: 100%; accent-color: #536ad6; margin: .12rem 0 .35rem; cursor: pointer; }
.sim-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; font-size: .91rem; color: var(--muted); }
.text-button { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; font-weight: 700; }

.results-detail { min-width: 0; }
.chart { padding: clamp(.85rem, 2.5vw, 1.65rem); }
.chart-summary { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; margin-bottom: .7rem; }
.chart-summary h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.legend { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .94rem; }
.legend :is(.pre-color,.post-color)::before { content: ""; display: inline-block; width: .7rem; height: .65rem; border-radius: .13rem; background: var(--bar-color); margin-right: .34rem; }
.pre-color { --bar-color: #85a0d8; }
.post-color { --bar-color: #4e76de; }
.chart-rows { display: grid; gap: .48rem; }
.chart-row { display: grid; grid-template-columns: minmax(5.2rem, .22fr) minmax(0, 1fr); gap: .7rem; align-items: center; }
.chart-row h4 { font-size: .98rem; color: #243964; }
.bars { display: grid; gap: .17rem; }
.bar-pair { display: grid; grid-template-columns: minmax(0,1fr) 3.1rem; align-items: center; gap: .45rem; }
.bar-track { height: .46rem; border-radius: 1rem; background: #edf2fe; overflow: hidden; }
.bar { height: 100%; width: var(--bar-size); border-radius: inherit; background: var(--bar-color); transform-origin: left; animation: grow-bar .62s cubic-bezier(.22,.75,.27,1) both; }
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-value { text-align: right; color: #304678; font-size: .86rem; font-variant-numeric: tabular-nums; }
.chart-note { margin-top: .72rem; border-top: 1px solid var(--line); padding-top: .65rem; color: var(--muted); line-height: 1.45; }
.chart-note strong { color: #3151a5; }
.experience-layout { display: grid; grid-template-columns: minmax(13rem,.7fr) minmax(0,1fr); align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.experience-layout .image-button { max-width: 36rem; background: #f1f5ff; }

.research-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.85rem,2.7vw,2rem); }
.research-column { border-top: 3px solid #91a9ef; padding-top: .85rem; }
.research-column:nth-child(2) { border-color: #9dc7e8; }
.research-column:nth-child(3) { border-color: #b6a2ef; }
.research-column h3 { font-size: clamp(1.4rem,2.5vw,2rem); }
.research-column > div { margin-top: .8rem; padding-bottom: .64rem; border-bottom: 1px solid #d9e4f9; }
.research-tag { color: #3f61b4; font-size: .95rem; font-weight: 750; }
.research-column h4 { margin: .22rem 0; font-size: clamp(1.02rem, 1.4vw, 1.19rem); line-height: 1.4; }
.research-column > div p:last-child { color: var(--muted); line-height: 1.5; }
.research-photo { margin-top: .65rem; max-width: 12rem; }

.dialog { width: min(90vw, 52rem); max-height: 90svh; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #cfdbf7; border-radius: 1rem; background: #f9fbff; color: var(--ink); box-shadow: 0 23px 100px #111c5277; }
.dialog::backdrop { background: #18274bb5; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .95rem; }
.dialog-heading h2 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.chapter-dialog { max-width: 42rem; }
#chapter-links { display: grid; grid-template-columns: 1fr 1fr; gap: .42rem; }
.chapter-link { display: flex; align-items: center; gap: .65rem; width: 100%; border: 1px solid #d8e2f8; border-radius: .65rem; color: var(--ink); background: #f1f5ff; padding: .65rem .7rem; text-align: left; font-weight: 700; }
.chapter-link span { color: #4668bc; font-variant-numeric: tabular-nums; font-size: .9rem; }
.chapter-link[aria-current="step"], .chapter-link:hover { background: #e0eaff; border-color: #aac2f3; }
.keyboard-hint { margin-top: .8rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.image-dialog { width: min(94vw, 78rem); }
.image-dialog img { width: 100%; max-height: 72svh; object-fit: contain; }
.profiles-dialog { width: min(94vw, 79rem); }
.profiles-table-wrap { overflow-x: auto; }
.profiles-table-wrap table { border-collapse: collapse; width: 100%; min-width: 48rem; font-size: .97rem; line-height: 1.6; }
.profiles-table-wrap :is(th, td) { padding: .68rem .72rem; text-align: left; vertical-align: top; border: 1px solid #dce5f8; }
.profiles-table-wrap thead th { color: #244484; background: #e7efff; }
.profiles-table-wrap tbody th { min-width: 7.2rem; color: #294da6; }
.noscript { padding: 1rem; background: #ffeab5; color: #422d00; }

@media (max-height: 780px) and (min-width: 821px) {
  .topbar, .bottom-bar { min-height: 3.25rem; }
  .content-scene { padding-top: 1.45rem; padding-bottom: 1.25rem; }
  .section-heading { margin-bottom: .8rem; }
  .section-heading h2 { font-size: clamp(2.2rem,3.9vw,3.45rem); }
  :is(.engineering-layout, .cluster-figure) .image-button img { max-height: 50vh; object-fit: contain; }
  .experience-layout .image-button img { max-height: 46vh; object-fit: contain; }
  .cycle-map { max-width: min(43rem,66vh); }
  .theory-row { padding-top: .83rem; padding-bottom: .83rem; }
  .profile-distribution { padding-block: .9rem; }
  .tabs { margin-bottom: .65rem; }
}
@media (max-width: 820px) {
  .classroom-panel, .engineering-layout, .profiles-layout, .demo-layout { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .classroom-visual { height: auto; aspect-ratio: 16 / 10; }
  .classroom-product .showcase img { max-height: none; }
  .cycle-layout { gap: 1rem; grid-template-columns: minmax(0,1fr) minmax(14rem,.85fr); }
  .cycle-node { min-width: auto; min-height: 2.25rem; padding: .35rem .48rem; font-size: .9rem; }
  .research-grid { grid-template-columns: minmax(0,1fr); }
  .theory-row { grid-template-columns: minmax(9rem,.52fr) minmax(0,1fr); }
  .theory-row p:last-child { grid-column: 2; }
  .cover-world { --art-x: .73; }
  body[data-scene="intro"] .cover-progress { display: none; }
  .intro-content { padding-inline: var(--gutter); }
  .intro-heading { padding-inline-end: 0; }
}
@media (max-width: 570px) {
  .topbar, .bottom-bar { gap: .55rem; }
  .position { min-width: 0; gap: .4rem; font-size: .89rem; }
  progress { display: none; }
  .nav-controls { gap: .34rem; }
  .nav-controls .button { min-height: 2.32rem; padding-inline: .62rem; font-size: .89rem; }
  .intro-content { padding-block-start: clamp(5rem, 16vh, 9rem); }
  .intro-heading h1 { font-size: clamp(1.7rem, 9.35vw, 3.6rem); }
  .intro-orbit { inset: -14% -5% -19% -6%; }
  .intro-subtitle { max-width: 24rem; border-radius: 1.1rem; }
  .cover-world { --art-x: .81; }
  body[data-scene="intro"] .top-button::before { display: none; }
  body[data-scene="intro"] .nav-controls .button { padding-inline: .65rem; }
  .finale h2 { font-size: clamp(3rem, 14vw, 4.9rem); }
  .scene-cover { min-height: min(38rem, calc(100svh - 7rem)); }
  .classroom-step { padding-inline: .64rem; }
  .classroom-points { gap: .36rem; }
  .classroom-visual { aspect-ratio: 16 / 11; }
  body[data-scene="classroom"] #position-name { display: none; }
  .cycle-layout { grid-template-columns: minmax(0,1fr); }
  .cycle-map { aspect-ratio: auto; }
  .orbit, .orbit-core { display: none; }
  .cycle-nodes { position: static; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .cycle-node { position: static; translate: none; min-height: 2.5rem; }
  .theory-row, .theory-collaboration, .experience-layout { grid-template-columns: minmax(0,1fr); gap: .5rem; }
  .theory-row p:last-child { grid-column: 1; }
  .tabs .tab { padding-inline: .59rem; font-size: .94rem; }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .classroom-convergence { display: none; }
}
