@font-face {
  font-family: "Alexandria";
  src: url("vendor/fonts/tour/alexandria-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+1EE00-1EEFF;
}

@font-face {
  font-family: "Alexandria";
  src: url("vendor/fonts/tour/alexandria-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  src: url("vendor/fonts/tour/dm-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111827;
  --ink-deep: #0b0d14;
  --surface: #171923;
  --surface-2: #1a1d27;
  --surface-3: #202431;
  --paper: #f8fafc;
  --paper-soft: #e5e7eb;
  --muted: #9ca3af;
  --faint: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --root: #a78bfa;
  --root-rgb: 167, 139, 250;
  --amber: #d9ba74;
  --coral: #ff7b6c;
  --cyan: #72d9d1;
  --violet: #a88af7;
  --content: min(1240px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Alexandria", sans-serif;
  --body: "Alexandria", sans-serif;
  --mono: "DM Mono", monospace;
  --glass: rgba(15, 17, 26, .9);
  --card-glass: rgba(23, 25, 35, .9);
  --wash: rgba(255, 255, 255, .035);
  --wash-strong: rgba(255, 255, 255, .065);
  --grid-line: rgba(255, 255, 255, .018);
}

:root[data-theme="dim"] {
  --ink: #0f111a;
  --ink-deep: #0b0d14;
  --surface: #151720;
  --surface-2: #171923;
  --surface-3: #202431;
  --paper: #f8fafc;
  --paper-soft: #d1d5db;
  --muted: #9ca3af;
  --glass: rgba(11, 13, 20, .92);
  --card-glass: rgba(21, 23, 32, .92);
}

* {
  box-sizing: border-box;
}

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

html[data-font-size="xs"] {
  font-size: 14px;
}

html[data-font-size="sm"] {
  font-size: 15px;
}

html[data-font-size="md"] {
  font-size: 16px;
}

html[data-font-size="lg"] {
  font-size: 17px;
}

html[data-font-size="xl"] {
  font-size: 18px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -18%, rgba(var(--root-rgb), .08), transparent 34rem),
    linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 82%, var(--ink-deep)) 48%, var(--ink-deep) 100%);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 85%);
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  color: var(--ink-deep);
  background: var(--root);
}

:focus-visible {
  outline: 2px solid var(--root);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-160%);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.skip-link:focus {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ambient,
.ambient__grain,
.ambient__orb {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient__grain {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient__orb {
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .065;
}

.ambient__orb--a {
  inset: 20% auto auto -18rem;
  background: var(--cyan);
}

.ambient__orb--b {
  inset: 64% -20rem auto auto;
  background: var(--amber);
}

.living-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .8;
}

.living-root path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.living-root__ghost {
  stroke: rgba(var(--root-rgb), .11);
  stroke-width: 1.1;
}

.living-root__line {
  stroke: var(--root);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 9px rgba(var(--root-rgb), .72));
}

.living-root__flow {
  stroke: rgba(224, 214, 255, .95);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-dasharray: .018 .092;
  filter: drop-shadow(0 0 10px rgba(var(--root-rgb), .95));
  opacity: calc(.22 + var(--scroll-progress, 0) * .38);
  animation: living-root-flow 4.8s linear infinite;
}

.living-root__node {
  fill: #f6f1ff;
  stroke: var(--root);
  stroke-width: .42;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(var(--root-rgb), 1));
  transition: opacity .25s;
  animation: living-root-node 1.8s ease-in-out infinite;
}

@keyframes living-root-flow {
  to { stroke-dashoffset: -.22; }
}

@keyframes living-root-node {
  50% { r: 1.05px; }
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 2px;
  background: rgba(255, 255, 255, .04);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--root);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 18px rgba(var(--root-rgb), .5);
}

[dir="rtl"] .page-progress span {
  transform-origin: 100% 50%;
}

.topbar {
  position: fixed;
  inset: 16px 50% auto auto;
  z-index: 60;
  width: var(--content);
  min-height: 66px;
  padding: 8px 10px 8px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  transform: translateX(50%);
  transition: background .35s, border-color .35s, box-shadow .35s, top .35s;
}

.topbar.is-scrolled {
  inset-block-start: 10px;
  border-color: var(--line);
  background: var(--glass);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand img {
  width: 32px;
  height: 32px;
  filter: saturate(.85) brightness(1.18);
}

.brand span {
  display: grid;
  line-height: 1.25;
}

.brand b {
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 720;
}

.brand small {
  margin-block-start: 3px;
  color: var(--muted);
  font-family: var(--display);
  font-size: .56rem;
  font-weight: 520;
  letter-spacing: 0;
}

[dir="ltr"] .brand small {
  font-size: .54rem;
  letter-spacing: .015em;
}

.chapter-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chapter-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 560;
  transition: color .2s, background .2s;
}

.chapter-nav a:hover,
.chapter-nav a.is-active {
  color: var(--paper);
  background: var(--wash-strong);
}

.chapter-nav a.is-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 10px rgba(var(--root-rgb), .8);
  vertical-align: middle;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch,
.lang-switch,
.topbar__enter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.theme-switch {
  position: relative;
  width: 40px;
  min-width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  font-size: .76rem;
}

.theme-switch::after {
  content: "";
  position: absolute;
  inset: auto 7px 6px auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 8px rgba(var(--root-rgb), .7);
}

.theme-switch span {
  display: grid;
  place-items: center;
  transition: color .2s, transform .3s var(--ease);
}

.theme-switch:active span {
  transform: rotate(18deg) scale(.9);
}

.lang-switch {
  min-width: 74px;
  padding: 0 14px;
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 620;
}

.topbar__enter {
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: rgba(var(--root-rgb), .24);
  background: rgba(var(--root-rgb), .1);
  font-size: .74rem;
  font-weight: 650;
}

.topbar__enter i {
  color: var(--root);
  font-style: normal;
}

.theme-switch:hover,
.lang-switch:hover,
.topbar__enter:hover {
  border-color: rgba(var(--root-rgb), .48);
  background: rgba(var(--root-rgb), .15);
  transform: translateY(-1px);
}

main,
.tour-footer {
  position: relative;
  z-index: 2;
}

.hero,
.chapter,
.atlas,
.finale {
  width: var(--content);
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  padding: clamp(150px, 17vh, 210px) 0 70px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.25fr);
  grid-template-areas:
    "copy stage"
    "stats stats";
  align-items: center;
  gap: 74px 72px;
}

.hero__copy {
  grid-area: copy;
  position: relative;
  z-index: 5;
}

.eyebrow,
.chapter__kicker {
  color: var(--root);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 580;
  letter-spacing: 0;
  text-transform: none;
}

[dir="ltr"] .eyebrow,
[dir="ltr"] .chapter__kicker {
  font-size: .66rem;
  letter-spacing: .015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--root-rgb), .19);
  border-radius: 999px;
  background: rgba(var(--root-rgb), .055);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 12px rgba(var(--root-rgb), .85);
}

.hero h1 {
  margin: 27px 0 22px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 5.4vw, 6.5rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.055em;
}

[dir="rtl"] .hero h1 {
  letter-spacing: -.025em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 span {
  color: var(--paper-soft);
  font-size: .68em;
  font-weight: 420;
}

.hero h1 em {
  position: relative;
  color: var(--paper);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  inset: auto 0 -.13em auto;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--root));
  opacity: .75;
}

[dir="ltr"] .hero h1 em::after {
  inset-inline-start: 0;
  inset-inline-end: auto;
  background: linear-gradient(90deg, var(--root), transparent);
}

.hero__lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  font-weight: 360;
  line-height: 2;
}

.hero__actions,
.finale__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-block-start: 32px;
}

.primary-action,
.quiet-action {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}

.primary-action {
  border: 1px solid var(--root);
  background: var(--root);
  box-shadow: 0 14px 42px rgba(var(--root-rgb), .12);
  color: var(--ink-deep);
  font-weight: 720;
}

.primary-action i,
.quiet-action small {
  font-family: var(--mono);
  font-style: normal;
}

.quiet-action {
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--paper-soft);
}

button.quiet-action {
  border: 1px solid var(--line);
}

.quiet-action small {
  color: var(--root);
  font-size: .67rem;
}

.primary-action:hover,
.quiet-action:hover {
  transform: translateY(-3px);
}

.primary-action:hover {
  box-shadow: 0 18px 54px rgba(var(--root-rgb), .22);
}

.quiet-action:hover {
  border-color: var(--line-strong);
  background: var(--wash-strong);
}

.hero-stage {
  grid-area: stage;
  position: relative;
  min-height: 650px;
  perspective: 1700px;
}

.hero-stage__halo {
  position: absolute;
  inset: 8% 8% 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--root-rgb), .12), transparent 68%);
  filter: blur(30px);
}

.screen {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 230, 218, .18);
  border-radius: 16px;
  background: #101827;
  box-shadow: 0 42px 120px rgba(0, 0, 0, .56);
  transform-style: preserve-3d;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen--hero {
  inset: 11% 3% auto 3%;
  height: 71%;
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
}

[dir="rtl"] .screen--hero {
  transform: rotateY(7deg) rotateX(3deg) translateZ(0);
}

.screen--hero img {
  object-position: 50% 0;
}

.screen__bar,
.product-frame__top {
  height: 35px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: #1a1d27;
}

.screen__bar span,
.product-frame__top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b5563;
}

.screen__bar span:first-child,
.product-frame__top span:first-child {
  background: #d66f63;
}

.screen__bar span:nth-child(2),
.product-frame__top span:nth-child(2) {
  background: #d4b264;
}

.screen__bar span:nth-child(3),
.product-frame__top span:nth-child(3) {
  background: #8b7ec8;
}

.screen__bar b,
.product-frame__top b {
  margin-inline: auto;
  color: #9ca3af;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .08em;
}

.screen--lesson {
  inset: auto auto 0 -4%;
  width: 48%;
  height: 31%;
  transform: rotateY(9deg) rotateZ(-2deg) translateZ(70px);
}

.screen--lesson img {
  object-position: 40% 50%;
}

.screen--lab {
  inset: auto -3% 2% auto;
  width: 43%;
  height: 30%;
  transform: rotateY(-10deg) rotateZ(2deg) translateZ(95px);
}

.screen--lab img {
  object-position: 50% 17%;
}

.hero-stage__tag {
  position: absolute;
  z-index: 6;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
  color: var(--paper-soft);
  font-size: .65rem;
}

.hero-stage__tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 12px rgba(var(--root-rgb), .8);
}

.hero-stage__tag--a {
  inset: 5% auto auto 8%;
}

.hero-stage__tag--b {
  inset: 3% 24% auto auto;
}

.hero-stage__tag--c {
  inset: auto 2% 20% auto;
}

.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stat {
  min-height: 116px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-inline-start: 1px solid var(--line);
}

.hero-stat:last-child {
  border-inline-end: 1px solid var(--line);
}

.hero-stat b {
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.07em;
}

.hero-stat small {
  margin-block-start: 5px;
  color: var(--muted);
  font-size: .68rem;
}

.scroll-cue {
  position: absolute;
  inset: auto 50% 25px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(50%);
  color: var(--faint);
}

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

.scroll-cue b {
  font-family: var(--mono);
  font-size: .48rem;
  font-weight: 400;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

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

.chapter,
.atlas {
  padding: clamp(120px, 15vw, 210px) 0;
}

.chapter__intro,
.atlas__head {
  display: grid;
  grid-template-columns: 100px minmax(0, 800px);
  gap: 30px;
  margin-block-end: 80px;
}

.chapter__number {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
}

.chapter__number::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-block-start: 14px;
  background: linear-gradient(90deg, var(--root), transparent);
}

[dir="rtl"] .chapter__number::after {
  background: linear-gradient(90deg, transparent, var(--root));
}

.chapter__kicker {
  margin: 0 0 14px;
}

.chapter__intro h2,
.atlas__head h2,
.finale h2 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.1vw, 4.8rem);
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -.045em;
}

[dir="rtl"] .chapter__intro h2,
[dir="rtl"] .atlas__head h2,
[dir="rtl"] .finale h2 {
  letter-spacing: -.018em;
}

.chapter__intro > div > p:last-child,
.atlas__head > div > p:last-child,
.finale__copy > p:not(.chapter__kicker) {
  max-width: 720px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 350;
  line-height: 2;
}

.learn-stage {
  position: relative;
  min-height: 940px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: auto 1fr;
  gap: 26px;
}

.depth-panel,
.target-simulator,
.circuit-demo {
  position: relative;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-glass);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .22);
}

.depth-panel {
  grid-column: 1 / 2;
  width: 82%;
  padding: 22px;
}

.depth-panel__label,
.memory-live__head,
.target-simulator__head,
.circuit-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-soft);
  font-size: .76rem;
  font-weight: 620;
}

.depth-tabs {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.depth-tabs button {
  min-height: 62px;
  padding: 8px 11px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
  cursor: pointer;
  transition: .25s var(--ease);
}

.depth-tabs button[aria-selected="true"] {
  border-color: rgba(var(--root-rgb), .44);
  background: rgba(var(--root-rgb), .11);
  box-shadow: inset 0 0 0 1px rgba(var(--root-rgb), .08);
}

.depth-tabs span {
  font-size: .72rem;
  font-weight: 660;
}

.depth-tabs small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .52rem;
}

.depth-panel > p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.8;
}

.product-frame,
.diagram-card {
  position: relative;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0f1927;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .35);
}

.product-frame img,
.diagram-card img {
  width: 100%;
  height: auto;
}

.product-frame--lesson {
  grid-column: 1 / 2;
  width: 94%;
  align-self: start;
}

.product-frame--lesson figcaption {
  position: absolute;
  inset: auto 24px 22px auto;
  max-width: 280px;
  padding: 14px 16px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(var(--root-rgb), .28);
  border-radius: 13px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.product-frame--lesson figcaption b {
  color: var(--root);
  font-size: .72rem;
}

.product-frame--lesson figcaption span {
  color: var(--muted);
  font-size: .63rem;
  line-height: 1.65;
}

.diagram-card {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  transform: translateY(42px);
}

.diagram-card__top {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--paper-soft);
  font-size: .67rem;
}

.diagram-card__top b {
  color: var(--root);
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 400;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hotspot i {
  display: block;
  width: 12px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 0 6px rgba(var(--root-rgb), .16), 0 0 22px rgba(var(--root-rgb), .75);
}

.hotspot b {
  padding: 5px 9px;
  border: 1px solid rgba(var(--root-rgb), .2);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper-soft);
  font-size: .58rem;
}

.hotspot--lesson {
  inset: 43% 26% auto auto;
}

.branch {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.branch path {
  fill: none;
  stroke: rgba(var(--root-rgb), .34);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
}

.branch circle {
  fill: var(--root);
  filter: drop-shadow(0 0 7px rgba(var(--root-rgb), .75));
}

.is-visible .branch path,
.branch.is-visible path {
  animation: branch-draw 2.4s .2s var(--ease) forwards;
}

@keyframes branch-draw {
  to { stroke-dashoffset: 0; }
}

.proof-row,
.decision-proof,
.ownership-row {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-row {
  grid-template-columns: repeat(3, 1fr);
  margin-block-start: 60px;
}

.proof-row > span,
.decision-proof > span {
  min-height: 126px;
  padding: 22px 26px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-inline-start: 1px solid var(--line);
}

.proof-row > span:last-child,
.decision-proof > span:last-child {
  border-inline-end: 1px solid var(--line);
}

.proof-row b,
.decision-proof b,
.language-proof > span b {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 400;
}

.proof-row small,
.decision-proof small,
.language-proof > span small {
  color: var(--muted);
  font-size: .68rem;
}

.memory-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.memory-live,
.quiz-live {
  min-height: 560px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--surface-3), var(--ink));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}

.memory-live__head b,
.target-simulator__head b,
.circuit-demo__head b {
  color: var(--root);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
}

.demo-flashcard {
  position: relative;
  width: 100%;
  height: 385px;
  margin: 22px 0 16px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.demo-flashcard__face {
  position: absolute;
  inset: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backface-visibility: hidden;
  transition: transform .7s var(--ease);
  background:
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(255, 255, 255, .032) 42px),
    var(--surface-3);
  box-shadow: 10px 12px 0 -5px var(--ink-deep), 20px 24px 0 -10px var(--surface-2);
}

.demo-flashcard__face small {
  position: absolute;
  inset: 18px auto auto 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .58rem;
}

[dir="rtl"] .demo-flashcard__face small {
  inset: 18px 20px auto auto;
}

.demo-flashcard__face b {
  max-width: 520px;
  color: var(--paper);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 650;
  line-height: 1.65;
}

.demo-flashcard__face em {
  color: var(--muted);
  font-size: .7rem;
  font-style: normal;
}

.demo-flashcard__back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--root-rgb), .07), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(255, 255, 255, .032) 42px),
    var(--surface-3);
}

.demo-flashcard[aria-pressed="true"] .demo-flashcard__front {
  transform: rotateY(-180deg);
}

.demo-flashcard[aria-pressed="true"] .demo-flashcard__back {
  transform: rotateY(0);
}

.review-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.review-scale button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--wash);
  color: var(--muted);
  font-size: .66rem;
  cursor: pointer;
  transition: .2s;
}

.review-scale button:hover,
.review-scale button.is-picked {
  border-color: rgba(var(--root-rgb), .38);
  background: rgba(var(--root-rgb), .1);
  color: var(--paper);
}

.product-frame--cards {
  align-self: center;
  transform: rotate(1.5deg);
}

.quiz-live {
  grid-column: 1 / 3;
  min-height: 420px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  grid-template-areas:
    "meta meta"
    "question answers"
    "feedback answers";
  align-items: center;
  gap: 12px 60px;
}

.quiz-live__meta {
  grid-area: meta;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .72rem;
}

.quiz-live__meta b {
  font-family: var(--mono);
  font-weight: 400;
}

.quiz-live h3 {
  grid-area: question;
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 620;
  line-height: 1.6;
}

.quiz-live__answers {
  grid-area: answers;
  display: grid;
  gap: 9px;
}

.quiz-live__answers button {
  min-height: 64px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
  cursor: pointer;
  transition: .2s var(--ease);
}

.quiz-live__answers button:hover {
  transform: translateX(-4px);
  border-color: var(--line-strong);
}

[dir="ltr"] .quiz-live__answers button:hover {
  transform: translateX(4px);
}

.quiz-live__answers button b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
}

.quiz-live__answers button.is-correct {
  border-color: rgba(var(--root-rgb), .55);
  background: rgba(var(--root-rgb), .09);
}

.quiz-live__answers button.is-wrong {
  border-color: rgba(255, 123, 108, .48);
  background: rgba(255, 123, 108, .08);
}

.quiz-live__feedback {
  grid-area: feedback;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

.quiz-live__feedback.is-correct {
  color: var(--root);
}

.quiz-live__feedback.is-wrong {
  color: var(--coral);
}

.memory-sequence {
  margin-block-start: 58px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}

.memory-sequence span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.memory-sequence i {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .58rem;
  font-style: normal;
}

.memory-sequence b {
  font-size: .74rem;
}

.memory-sequence em {
  color: var(--root);
  font-style: normal;
}

.semester-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.product-frame--semester {
  min-height: 800px;
}

.semester-stage__viewport {
  height: 810px;
  overflow: hidden;
}

.semester-stage__viewport img {
  transition: transform 12s cubic-bezier(.12, .62, .2, 1);
}

.product-frame--semester.is-exploring .semester-stage__viewport img,
.product-frame--semester:hover .semester-stage__viewport img {
  transform: translateY(calc(-100% + 810px));
}

.hotspot--semester-a {
  inset: 13% auto auto 10%;
}

.hotspot--semester-b {
  inset: 48% 25% auto auto;
}

.semester-notes {
  position: sticky;
  inset-block-start: 110px;
  display: grid;
  gap: 12px;
}

.semester-notes > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-glass);
  transition: border-color .25s, transform .25s;
}

.semester-notes > div:hover {
  border-color: rgba(var(--root-rgb), .35);
  transform: translateX(-5px);
}

[dir="ltr"] .semester-notes > div:hover {
  transform: translateX(5px);
}

.semester-notes span {
  color: var(--root);
  font-family: var(--mono);
  font-size: .58rem;
}

.semester-notes b {
  display: block;
  margin: 8px 0 4px;
  font-size: .78rem;
}

.semester-notes p {
  margin: 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.8;
}

.schedule-strip {
  margin-block-start: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr);
  gap: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-glass);
}

.schedule-strip figure {
  height: 420px;
  margin: 0;
  overflow: hidden;
  border-inline-end: 1px solid var(--line);
}

.schedule-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.schedule-strip > div {
  padding: 34px 44px;
}

.schedule-strip h3 {
  margin: 13px 0;
  font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  font-weight: 630;
  line-height: 1.45;
}

.schedule-strip p {
  color: var(--muted);
  font-size: .78rem;
}

.schedule-strip a {
  margin-block-start: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--root);
  font-size: .72rem;
  font-weight: 650;
}

.schedule-strip a i {
  font-style: normal;
}

.intensive-showcase {
  position: relative;
  margin-block-start: 54px;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 8%, rgba(var(--root-rgb), .12), transparent 31%),
    linear-gradient(145deg, var(--surface-2), var(--ink-deep));
  box-shadow: 0 34px 110px rgba(0, 0, 0, .25);
}

.intensive-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .025) 50%, transparent 72%);
  transform: translateX(-110%);
  animation: plan-sheen 8s var(--ease) infinite;
}

@keyframes plan-sheen {
  58%, 100% { transform: translateX(110%); }
}

.intensive-showcase__copy,
.plan-board {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.intensive-showcase__copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -.028em;
}

[dir="rtl"] .intensive-showcase__copy h3 {
  letter-spacing: -.012em;
}

.intensive-showcase__copy > p:not(.plan-verdict) {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 2;
}

.plan-density {
  margin-block-start: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.plan-density button {
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}

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

.plan-density button[aria-pressed="true"] {
  border-color: rgba(var(--root-rgb), .56);
  background: rgba(var(--root-rgb), .12);
  box-shadow: inset 0 0 0 1px rgba(var(--root-rgb), .08);
}

.plan-density span {
  font-size: .61rem;
  font-weight: 650;
}

.plan-density b {
  color: var(--root);
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 400;
}

.plan-verdict {
  min-height: 64px;
  margin: 15px 0 0;
  padding: 12px 14px;
  border-inline-start: 2px solid var(--root);
  background: rgba(var(--root-rgb), .055);
  color: var(--paper-soft);
  font-size: .66rem;
  line-height: 1.8;
}

.intensive-showcase__copy > a {
  margin-block-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--root);
  font-size: .66rem;
  font-weight: 650;
}

.intensive-showcase__copy > a i {
  font-style: normal;
}

.plan-board {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(11, 13, 20, .82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}

.plan-board__head,
.plan-board__courses,
.plan-board__logic {
  display: flex;
  align-items: center;
}

.plan-board__head {
  justify-content: space-between;
  padding-block-end: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
  font-size: .68rem;
  font-weight: 630;
}

.plan-board__head b {
  color: var(--root);
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 400;
}

.plan-board__courses {
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.plan-board__courses span {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .5rem;
}

.plan-board__courses i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plan-course);
  box-shadow: 0 0 10px var(--plan-course);
}

.plan-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.plan-calendar > div {
  min-width: 0;
  min-height: 190px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.plan-calendar small {
  padding-block-end: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: .5rem;
  text-align: center;
}

.plan-session {
  min-height: 48px;
  padding: 7px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--session, var(--root)) 30%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--session, var(--root)) 9%, transparent);
  color: var(--session, var(--root));
  font-family: var(--mono);
  font-size: .54rem;
  transition: opacity .3s, transform .3s, max-height .3s, padding .3s, min-height .3s;
}

.plan-session.is-cs231 { --session: #a78bfa; }
.plan-session.is-cs240 { --session: #38bdf8; }
.plan-session.is-math { --session: #f59e0b; }
.plan-session.is-review { --session: #34d399; gap: 2px; font-family: var(--body); }
.plan-session.is-review i { font-style: normal; }

.intensive-showcase[data-plan-density="1"] [data-density-min="2"],
.intensive-showcase[data-plan-density="1"] [data-density-min="3"],
.intensive-showcase[data-plan-density="2"] [data-density-min="3"] {
  min-height: 0;
  max-height: 0;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
}

.plan-board__logic {
  justify-content: space-between;
  gap: 8px;
  margin-block-start: 15px;
}

.plan-board__logic span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .52rem;
}

.plan-board__logic i {
  color: var(--root);
}

.plan-board__logic b {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ratings-stage {
  margin-block-end: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.rating-lens,
.ratings-stage__principle {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-glass);
}

.rating-lens {
  min-height: 440px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.rating-lens::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--lens-glow, var(--root));
  filter: blur(100px);
  opacity: .1;
  pointer-events: none;
}

.rating-lens--course { --lens-glow: #a78bfa; }
.rating-lens--faculty { --lens-glow: #38bdf8; }

.rating-lens__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating-lens__top > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-soft);
  font-size: .68rem;
}

.rating-lens__top i {
  color: var(--lens-glow);
}

.rating-lens__top small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .48rem;
}

.rating-lens h3 {
  margin: 26px 0 7px;
  font-size: clamp(1.5rem, 2.45vw, 2.35rem);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.025em;
}

[dir="rtl"] .rating-lens h3 {
  letter-spacing: -.01em;
}

.rating-lens > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.9;
}

.course-rating-bars {
  display: grid;
  gap: 12px;
}

.course-rating-bars > span {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.course-rating-bars b,
.course-rating-bars small {
  font-size: .56rem;
  font-weight: 520;
}

.course-rating-bars small {
  color: var(--muted);
  text-align: end;
}

.course-rating-bars > span > i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.course-rating-bars em {
  display: block;
  width: var(--rating);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lens-glow), var(--cyan));
  box-shadow: 0 0 14px color-mix(in srgb, var(--lens-glow) 46%, transparent);
}

.rating-tags {
  margin-block-start: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rating-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .52rem;
}

.rating-lens > a {
  position: relative;
  z-index: 2;
  margin-block-start: auto;
  padding-block-start: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: var(--lens-glow);
  font-size: .62rem;
  font-weight: 650;
}

.rating-lens > a i {
  font-style: normal;
}

.faculty-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.faculty-signals span {
  min-height: 72px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.faculty-signals i {
  color: var(--lens-glow);
  font-size: .72rem;
}

.faculty-signals b {
  color: var(--paper-soft);
  font-size: .55rem;
  font-weight: 560;
}

.ratings-stage__principle {
  padding: 28px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(var(--root-rgb), .14), transparent 34%),
    linear-gradient(180deg, var(--surface-2), var(--ink-deep));
}

.ratings-stage__principle::before,
.ratings-stage__principle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--root));
  opacity: .55;
}

.ratings-stage__principle::before { inset-inline-start: 0; }
.ratings-stage__principle::after { inset-inline-end: 0; transform: rotate(180deg); }

.ratings-stage__pulse {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--root-rgb), .28);
  border-radius: 50%;
  background: rgba(var(--root-rgb), .07);
  box-shadow: 0 0 60px rgba(var(--root-rgb), .18);
}

.ratings-stage__pulse i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 0 9px rgba(var(--root-rgb), .1), 0 0 28px rgba(var(--root-rgb), .9);
  animation: rating-pulse 2.2s ease-in-out infinite;
}

@keyframes rating-pulse {
  50% { transform: scale(.72); opacity: .68; }
}

.ratings-stage__principle small {
  margin-block-start: 24px;
  color: var(--root);
  font-size: .56rem;
}

.ratings-stage__principle b {
  margin-block-start: 8px;
  font-size: .82rem;
  line-height: 1.75;
}

.ratings-stage__principle p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.8;
}

.decision-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .65fr);
  gap: 28px;
  align-items: start;
}

.product-frame--gpa {
  grid-row: 1 / 3;
}

.gpa-crop {
  position: relative;
  height: auto;
  overflow: hidden;
  background: #202a3a;
}

.gpa-crop img {
  display: block;
  object-position: 50% 0;
}

.gpa-caption {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 3;
  padding: 13px 15px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(var(--root-rgb), .28);
  border-radius: 13px;
  background: rgba(11, 13, 20, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .28);
}

.gpa-caption span {
  color: var(--root);
  font-size: .52rem;
}

.gpa-caption b {
  font-size: .66rem;
  font-weight: 620;
}

.target-simulator {
  padding: 26px;
}

.target-simulator__head b {
  font-size: 1.5rem;
}

.target-simulator input {
  width: 100%;
  height: 5px;
  margin: 36px 0 10px;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber) var(--range, 66%), #4b5563 var(--range, 66%));
  cursor: pointer;
}

[dir="rtl"] .target-simulator input {
  background: linear-gradient(90deg, #4b5563 calc(100% - var(--range, 66%)), var(--amber) calc(100% - var(--range, 66%)));
}

.target-simulator input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 22px rgba(217, 186, 116, .34);
}

.target-simulator__scale {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .52rem;
}

.target-simulator > p {
  min-height: 92px;
  margin: 26px 0;
  padding: 16px;
  border-inline-start: 2px solid var(--amber);
  background: rgba(217, 186, 116, .055);
  color: var(--paper-soft);
  font-size: .72rem;
  line-height: 1.9;
}

.target-simulator__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.target-simulator__chips span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .58rem;
}

.decision-proof {
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1 / 3;
}

.lab-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .75fr);
  gap: 28px;
  align-items: center;
}

.product-frame--labs {
  transform: perspective(1400px) rotateY(3deg);
}

[dir="rtl"] .product-frame--labs {
  transform: perspective(1400px) rotateY(-3deg);
}

.circuit-demo {
  padding: 24px;
}

.circuit-demo svg {
  width: 100%;
  margin: 20px 0 10px;
}

.circuit-demo svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-demo .wire {
  stroke: #4b5563;
  stroke-width: 5;
  transition: stroke .3s, filter .3s;
}

.circuit-demo .gate {
  fill: #252a3a;
  stroke: var(--muted);
  stroke-width: 4;
}

.circuit-demo .lamp {
  fill: #374151;
  stroke: #6b7280;
  stroke-width: 3;
  transition: .3s;
}

.circuit-demo svg text {
  fill: var(--paper-soft);
  font-family: var(--mono);
  font-size: 18px;
  text-anchor: middle;
}

.circuit-demo[data-a="1"] .wire--a,
.circuit-demo[data-b="1"] .wire--b,
.circuit-demo[data-out="1"] .wire--out {
  stroke: var(--root);
  filter: drop-shadow(0 0 6px rgba(var(--root-rgb), .75));
}

.circuit-demo[data-out="1"] .lamp {
  fill: var(--root);
  stroke: #ede9fe;
  filter: drop-shadow(0 0 16px rgba(var(--root-rgb), .9));
}

.circuit-demo__controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
}

.circuit-demo__controls button,
.circuit-demo__controls > div {
  min-height: 58px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.circuit-demo__controls button {
  cursor: pointer;
  transition: .2s;
}

.circuit-demo__controls button[aria-pressed="true"] {
  border-color: rgba(var(--root-rgb), .42);
  background: rgba(var(--root-rgb), .1);
}

.circuit-demo__controls span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .6rem;
}

.circuit-demo__controls b {
  font-family: var(--mono);
  font-size: 1rem;
}

.circuit-demo > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .68rem;
  text-align: center;
}

.language-proof {
  margin-block-start: 48px;
  min-height: 120px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.language-proof > span {
  display: grid;
  gap: 3px;
}

.language-proof__ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.language-proof__ticker i {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .58rem;
  font-style: normal;
  animation: ticker 18s linear infinite alternate;
}

@keyframes ticker {
  to { transform: translateX(-170px); }
}

.lab-capabilities {
  margin-block-start: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lab-capability {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-glass);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .2);
}

.lab-capability__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lab-capability__head > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .7rem;
}

.lab-capability__head i {
  color: var(--lab-accent, var(--root));
}

.lab-capability__head small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .45rem;
}

.lab-capability > p {
  margin: 20px 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.9;
}

.lab-capability--circuit { --lab-accent: #a78bfa; }
.lab-capability--code { --lab-accent: #38bdf8; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.capability-grid span {
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  text-align: center;
}

.capability-grid i {
  color: var(--lab-accent);
  font-size: .76rem;
}

.capability-grid b {
  font-size: .5rem;
  font-weight: 560;
  line-height: 1.45;
}

.lab-capability > a {
  margin-block-start: auto;
  padding-block-start: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: var(--lab-accent);
  font-size: .62rem;
  font-weight: 650;
}

.lab-capability > a i {
  font-style: normal;
}

.code-window {
  direction: ltr;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #10141e;
  color: #c8d3f5;
  font-family: var(--mono);
  font-size: .56rem;
}

.code-window > span {
  min-height: 34px;
  padding: 8px 12px;
  display: block;
  white-space: nowrap;
}

.code-window > span i {
  width: 22px;
  display: inline-block;
  color: #4b5563;
  font-style: normal;
}

.code-window b {
  font-weight: 400;
}

.code-window .is-key { color: #bb9af7; }
.code-window .is-fn { color: #7dcfff; }
.code-window .is-str { color: #9ece6a; }

.code-window em {
  padding: 9px 12px;
  display: block;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  color: #9ece6a;
  font-style: normal;
}

.code-window em i {
  margin-inline-end: 6px;
}

.code-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.code-workflow span {
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--lab-accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--lab-accent) 6%, transparent);
  color: var(--muted);
  font-size: .52rem;
}

.sync-stage {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--root-rgb), .07), transparent 34%),
    linear-gradient(145deg, var(--surface-2), var(--ink-deep));
}

.device,
.merged-state {
  position: absolute;
  z-index: 4;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.device {
  width: 230px;
  height: 360px;
  border-radius: 24px;
}

.device::before {
  content: "";
  position: absolute;
  inset: 32px 12px 12px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(var(--root-rgb), .08), transparent),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .03) 35px),
    var(--surface-2);
}

.device--a {
  inset: 90px auto auto 8%;
  transform: rotate(-4deg);
}

.device--b {
  inset: 90px 8% auto auto;
  transform: rotate(4deg);
}

.device__cam {
  position: absolute;
  inset: 13px 50% auto auto;
  width: 40px;
  height: 5px;
  border-radius: 10px;
  background: var(--surface-3);
  transform: translateX(50%);
}

.device div {
  position: absolute;
  inset: 38% 26px auto;
  z-index: 2;
  display: grid;
  gap: 8px;
  text-align: center;
}

.device small,
.merged-state small {
  color: var(--root);
  font-family: var(--mono);
  font-size: .56rem;
}

.device b {
  font-size: .84rem;
}

.device i {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .56rem;
  font-style: normal;
}

.sync-map {
  position: absolute;
  inset: 76px 4% auto;
  width: 92%;
  height: 430px;
}

.sync-map path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.sync-map__ghost {
  stroke: #4b5563;
  stroke-dasharray: 8 12;
}

.sync-map__active {
  stroke: var(--root);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 7px rgba(var(--root-rgb), .5));
}

.sync-stage.is-syncing .sync-map__active--a,
.sync-stage.is-syncing .sync-map__active--b {
  animation: sync-in 1.15s var(--ease) forwards;
}

.sync-stage.is-syncing .sync-map__active--b {
  animation-delay: .16s;
}

.sync-stage.is-syncing .sync-map__active--out {
  animation: sync-in .95s 1.1s var(--ease) forwards;
}

@keyframes sync-in {
  to { stroke-dashoffset: 0; }
}

.sync-map circle {
  fill: var(--surface-3);
  stroke: var(--root);
  stroke-width: 2;
}

.sync-map text {
  fill: var(--root);
  font-family: var(--mono);
  font-size: 22px;
  text-anchor: middle;
}

.merged-state {
  inset: 40% 50% auto auto;
  width: 210px;
  padding: 22px;
  display: grid;
  gap: 5px;
  border-radius: 17px;
  transform: translate(50%, -50%) scale(.85);
  text-align: center;
  opacity: .28;
  transition: opacity .5s 1.55s, transform .5s 1.55s var(--ease), box-shadow .5s 1.55s;
}

.sync-stage.is-syncing .merged-state {
  opacity: 1;
  transform: translate(50%, -50%) scale(1);
  box-shadow: 0 0 0 1px rgba(var(--root-rgb), .16), 0 24px 90px rgba(0, 0, 0, .42), 0 0 70px rgba(var(--root-rgb), .09);
}

.merged-state b {
  font-size: .83rem;
}

.merged-state span {
  color: var(--muted);
  font-size: .6rem;
}

.sync-trigger {
  position: absolute;
  inset: auto 50% 32px auto;
  z-index: 6;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(var(--root-rgb), .38);
  border-radius: 999px;
  background: rgba(var(--root-rgb), .1);
  transform: translateX(50%);
  cursor: pointer;
}

.sync-trigger i {
  color: var(--root);
  font-style: normal;
}

.sync-stage.is-syncing .sync-trigger i {
  animation: spin 1.1s linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ownership-row {
  grid-template-columns: repeat(4, 1fr);
  margin-block-start: 42px;
}

.ownership-row > span {
  min-height: 164px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-inline-start: 1px solid var(--line);
}

.ownership-row > span:last-child {
  border-inline-end: 1px solid var(--line);
}

.ownership-row i {
  margin-block-end: 10px;
  color: var(--root);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-style: normal;
}

.ownership-row b {
  font-size: .8rem;
}

.ownership-row small {
  color: var(--muted);
  font-size: .62rem;
}

.taste-stage {
  position: relative;
  margin-block-start: 74px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card-glass);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .2);
}

.taste-stage::before {
  content: "";
  position: absolute;
  inset: -45% auto auto 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--course-accent, #ef4444) 12%, transparent);
  filter: blur(100px);
  pointer-events: none;
  transition: background .45s;
}

.taste-stage__copy,
.course-personalizer {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4vw, 52px);
}

.taste-stage__copy {
  border-inline-end: 1px solid var(--line);
}

.taste-stage__copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.taste-stage__copy > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 2;
}

.theme-picker {
  margin-block-start: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-picker button {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}

.theme-picker button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.theme-picker button[aria-pressed="true"] {
  border-color: rgba(var(--root-rgb), .55);
  background: rgba(var(--root-rgb), .09);
  box-shadow: inset 0 0 0 1px rgba(var(--root-rgb), .08);
}

.theme-picker b {
  font-size: .61rem;
  font-weight: 580;
}

.theme-preview {
  position: relative;
  height: 45px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: #111827;
}

.theme-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  background: #1f2937;
}

.theme-preview span {
  position: absolute;
  inset: 17px 8px 7px;
  border-radius: 4px;
  background: #1f2937;
}

.theme-preview span::after {
  content: "";
  position: absolute;
  inset: 5px 6px auto;
  width: 52%;
  height: 3px;
  border-radius: 4px;
  background: #a78bfa;
}

.theme-preview--dim {
  background: #0f111a;
}

.theme-preview--dim::before,
.theme-preview--dim span {
  background: #171923;
}

.course-personalizer {
  --course-accent: #ef4444;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--course-accent) 13%, transparent), transparent 42%);
  transition: background .45s;
}

.course-personalizer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 18px;
  color: var(--paper-soft);
  font-size: .72rem;
  font-weight: 620;
}

.course-personalizer__head b {
  color: var(--course-accent);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  transition: color .35s;
}

.course-preview {
  position: relative;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--course-accent);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 22px 70px color-mix(in srgb, var(--course-accent) 13%, transparent);
  transition: border-color .35s, box-shadow .35s, background .35s;
}

.course-preview__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--course-accent) 13%, transparent);
  color: var(--course-accent);
  font-family: var(--mono);
  font-size: .64rem;
  transition: color .35s, background .35s;
}

.course-preview div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.course-preview small {
  color: var(--course-accent);
  font-size: .61rem;
  transition: color .35s;
}

.course-preview b {
  overflow: hidden;
  font-size: .76rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-preview em {
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: .68rem;
  font-style: normal;
}

.course-preview > i {
  position: absolute;
  inset: auto 22px 13px;
  height: 3px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-3);
}

.course-preview > i span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--course-accent);
  transition: background .35s;
}

.course-swatches {
  margin-block-start: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.course-swatches > button,
.course-colour-own {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--swatch, var(--course-accent)) 72%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--swatch, var(--course-accent)) 20%, transparent);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.course-swatches > button:hover,
.course-colour-own:hover {
  transform: translateY(-3px);
}

.course-swatches > button[aria-checked="true"] {
  background: var(--swatch);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--swatch);
}

.course-colour-own {
  position: relative;
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
}

.course-colour-own input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.course-colour-own span {
  font-family: var(--mono);
  font-size: .8rem;
}

.course-personalizer > p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.8;
}

.course-personalizer > a {
  margin-block-start: 17px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: var(--course-accent);
  font-size: .65rem;
  font-weight: 620;
  transition: color .35s;
}

.course-personalizer > a i {
  font-style: normal;
}

.study-skins {
  grid-column: 1 / 3;
  padding: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(330px, 1fr);
  grid-template-areas: "copy preview" "options preview";
  gap: 24px 42px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 28%, rgba(var(--root-rgb), .08), transparent 31%),
    rgba(9, 11, 18, .24);
}

.study-skins__copy {
  grid-area: copy;
}

.study-skins__copy h4 {
  margin: 11px 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  font-weight: 640;
  line-height: 1.48;
  letter-spacing: -.022em;
}

[dir="rtl"] .study-skins__copy h4 {
  letter-spacing: -.008em;
}

.study-skins__copy p {
  margin: 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.9;
}

.study-skin-preview {
  --study-bg: #16161e;
  --study-panel: #1a1b26;
  --study-text: #c8d3f5;
  --study-muted: #828bb8;
  --study-key: #bb9af7;
  --study-str: #9ece6a;
  --study-fn: #7dcfff;
  grid-area: preview;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 18px;
  background: var(--study-bg);
  color: var(--study-text);
  box-shadow: 0 28px 90px color-mix(in srgb, var(--study-bg) 72%, transparent);
  transition: background .35s, color .35s, box-shadow .35s;
}

.study-skin-preview[data-study-theme="garden"] { --study-bg:#111827; --study-panel:#1f2937; --study-text:#f8fafc; --study-muted:#9ca3af; --study-key:#a78bfa; --study-str:#72d9d1; --study-fn:#d9ba74; }
.study-skin-preview[data-study-theme="paper"] { --study-bg:#f6f0e4; --study-panel:#fbf7ee; --study-text:#302a24; --study-muted:#74685b; --study-key:#a44a3f; --study-str:#587b7f; --study-fn:#8c6d31; }
.study-skin-preview[data-study-theme="github"] { --study-bg:#ffffff; --study-panel:#f6f8fa; --study-text:#1f2328; --study-muted:#656d76; --study-key:#cf222e; --study-str:#0a3069; --study-fn:#8250df; }
.study-skin-preview[data-study-theme="solar"] { --study-bg:#fdf6e3; --study-panel:#f4edda; --study-text:#586e75; --study-muted:#839496; --study-key:#b58900; --study-str:#2aa198; --study-fn:#268bd2; }
.study-skin-preview[data-study-theme="onedark"] { --study-bg:#282c34; --study-panel:#21252b; --study-text:#abb2bf; --study-muted:#7f848e; --study-key:#c678dd; --study-str:#98c379; --study-fn:#61afef; }
.study-skin-preview[data-study-theme="dracula"] { --study-bg:#282a36; --study-panel:#2f313f; --study-text:#f8f8f2; --study-muted:#a3a4b0; --study-key:#ff79c6; --study-str:#f1fa8c; --study-fn:#8be9fd; }
.study-skin-preview[data-study-theme="nord"] { --study-bg:#2e3440; --study-panel:#333b4a; --study-text:#eceff4; --study-muted:#a7b0c0; --study-key:#b48ead; --study-str:#a3be8c; --study-fn:#88c0d0; }
.study-skin-preview[data-study-theme="gruvbox"] { --study-bg:#282828; --study-panel:#32302f; --study-text:#ebdbb2; --study-muted:#a89984; --study-key:#d3869b; --study-str:#b8bb26; --study-fn:#83a598; }
.study-skin-preview[data-study-theme="oled"] { --study-bg:#000000; --study-panel:#0a0a0a; --study-text:#f5f5f5; --study-muted:#8a8a8a; --study-key:#f472b6; --study-str:#a3e635; --study-fn:#22d3ee; }
.study-skin-preview[data-study-theme="tokyo"] { --study-bg:#16161e; --study-panel:#1a1b26; --study-text:#c8d3f5; --study-muted:#828bb8; --study-key:#bb9af7; --study-str:#9ece6a; --study-fn:#7dcfff; }
.study-skin-preview[data-study-theme="amber"] { --study-bg:#0d0b06; --study-panel:#14110a; --study-text:#f5deb3; --study-muted:#9b835e; --study-key:#f59e0b; --study-str:#fcd34d; --study-fn:#fb923c; }

.study-skin-preview__bar {
  min-height: 48px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--study-text) 10%, transparent);
  background: var(--study-panel);
  font-family: var(--mono);
  font-size: .48rem;
}

.study-skin-preview__bar span {
  color: var(--study-muted);
}

.study-skin-preview__bar b {
  color: var(--study-key);
  font-family: var(--body);
  font-size: .56rem;
  font-weight: 600;
}

.study-skin-preview article {
  padding: clamp(25px, 4vw, 42px);
}

.study-skin-preview article > small {
  color: var(--study-key);
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .08em;
}

.study-skin-preview h5 {
  margin: 12px 0 10px;
  color: var(--study-text);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.5;
}

.study-skin-preview article > p {
  margin: 0;
  color: var(--study-muted);
  font-size: .65rem;
  line-height: 1.9;
}

.study-code {
  margin-block-start: 22px;
  padding: 17px 19px;
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--study-text) 10%, transparent);
  border-radius: 11px;
  background: var(--study-panel);
  color: var(--study-text);
  font-family: var(--mono);
  font-size: .65rem;
}

.study-code b { color: var(--study-fn); }
.study-code i { color: var(--study-str); font-style: normal; }
.study-code em { color: var(--study-key); font-style: normal; }

.study-theme-options {
  grid-area: options;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.study-theme-options button {
  min-width: 0;
  min-height: 66px;
  padding: 7px 5px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}

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

.study-theme-options button[aria-checked="true"] {
  border-color: rgba(var(--root-rgb), .62);
  background: rgba(var(--root-rgb), .09);
  box-shadow: inset 0 0 0 1px rgba(var(--root-rgb), .09);
}

.study-theme-options button > i {
  position: relative;
  width: 31px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 5px;
  background: var(--skin-bg);
}

.study-theme-options button > i::before,
.study-theme-options button > i::after {
  content: "";
  position: absolute;
  inset: 5px auto auto 5px;
  width: 10px;
  height: 2px;
  border-radius: 4px;
  background: var(--skin-a);
  box-shadow: 6px 5px 0 var(--skin-b);
}

.study-theme-options button span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter--learn {
  --course-accent: #ef4444;
}

.chapter--learn .depth-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--course-accent) 58%, transparent);
  background: color-mix(in srgb, var(--course-accent) 12%, transparent);
}

.chapter--learn .product-frame--lesson figcaption b,
.chapter--learn .diagram-card__top b {
  color: var(--course-accent);
}

.chapter--learn .hotspot i {
  background: var(--course-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--course-accent) 16%, transparent), 0 0 22px color-mix(in srgb, var(--course-accent) 76%, transparent);
}

.chapter--learn .branch path {
  stroke: color-mix(in srgb, var(--course-accent) 38%, transparent);
}

.chapter--learn .branch circle {
  fill: var(--course-accent);
}

.atlas {
  border-top: 1px solid var(--line);
}

.atlas__head {
  margin-block-end: 54px;
}

.atlas__toolbar {
  position: sticky;
  inset-block-start: 90px;
  z-index: 20;
  margin-block-end: 24px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr minmax(230px, .42fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--glass);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.atlas__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.atlas__filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .65rem;
  cursor: pointer;
  transition: .2s;
}

.atlas__filters button:hover,
.atlas__filters button.is-active {
  border-color: var(--line);
  background: var(--wash-strong);
  color: var(--paper);
}

.atlas__filters button.is-active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--root);
  vertical-align: middle;
}

.atlas__search {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--wash);
}

.atlas__search > span {
  color: var(--faint);
  font-family: var(--mono);
}

.atlas__search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: .68rem;
}

.atlas__search input::placeholder {
  color: var(--faint);
}

.atlas__result {
  min-width: 42px;
  color: var(--root);
  font-family: var(--mono);
  font-size: .65rem;
  text-align: center;
}

.atlas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-card {
  min-height: 210px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--wash);
  transition: transform .28s var(--ease), border-color .28s, background .28s;
}

.feature-card:hover {
  z-index: 2;
  border-color: rgba(var(--root-rgb), .28);
  background: rgba(var(--root-rgb), .045);
  transform: translateY(-5px);
}

.feature-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-card__index {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .56rem;
}

.feature-card__cat {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .53rem;
}

.feature-card h3 {
  margin: 22px 0 8px;
  font-size: .9rem;
  font-weight: 640;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.85;
}

.feature-card a {
  margin-block-start: auto;
  padding-block-start: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--root);
  font-size: .6rem;
}

.feature-card a i {
  font-style: normal;
}

.atlas__empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}

.finale {
  min-height: 90svh;
  padding: 140px 0 90px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.finale__mark {
  position: relative;
  width: 96px;
  height: 96px;
  margin-block-end: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--root-rgb), .28);
  border-radius: 50%;
  background: rgba(var(--root-rgb), .06);
  box-shadow: 0 0 90px rgba(var(--root-rgb), .09);
}

.finale__mark img {
  width: 43px;
}

.finale__mark span {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(var(--root-rgb), .1);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.finale__mark span::after {
  content: "";
  position: absolute;
  inset: 8px auto auto 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--root);
  box-shadow: 0 0 12px rgba(var(--root-rgb), .8);
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.finale__copy {
  max-width: 930px;
}

.finale__copy > p:not(.chapter__kicker) {
  margin-inline: auto;
}

.finale__actions {
  justify-content: center;
}

.finale__meta {
  width: min(760px, 90vw);
  margin-block-start: 76px;
  padding-block: 20px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.tour-footer {
  width: var(--content);
  margin-inline: auto;
  padding: 34px 0 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.tour-footer p {
  margin: 0;
  color: var(--faint);
  font-size: .62rem;
  text-align: center;
}

.tour-footer > a:last-child {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: .65rem;
}

.tour-footer > a:last-child i {
  color: var(--root);
  font-style: normal;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

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

@media (max-width: 1120px) {
  :root {
    --content: min(100% - 40px, 1040px);
  }

  .chapter-nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar__actions {
    grid-column: 2;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "stage" "stats";
    gap: 60px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero-stage {
    width: min(850px, 100%);
    margin-inline: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat:nth-child(3) {
    border-inline-end: 1px solid var(--line);
  }

  .hero-stat:nth-child(n+4) {
    border-top: 1px solid var(--line);
  }

  .learn-stage {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .depth-panel {
    width: 100%;
  }

  .product-frame--lesson {
    width: 100%;
  }

  .branch {
    display: none;
  }

  .semester-stage,
  .decision-stage,
  .lab-stage {
    grid-template-columns: 1fr;
  }

  .semester-notes {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .product-frame--gpa,
  .decision-proof {
    grid-column: 1;
    grid-row: auto;
  }

  .product-frame--labs {
    transform: none;
  }

  .device--a {
    inset-inline-start: 4%;
  }

  .device--b {
    inset-inline-end: 4%;
  }

  .atlas__toolbar {
    grid-template-columns: 1fr auto;
  }

  .atlas__filters {
    grid-column: 1 / 3;
  }
}

@media (max-width: 760px) {
  :root {
    --content: calc(100% - 28px);
  }

  body::before {
    background-size: 44px 44px;
  }

  .living-root {
    inset: 0 auto 0 -38px;
    width: 148px;
    opacity: .62;
  }

  [dir="ltr"] .living-root {
    inset: 0 -38px 0 auto;
  }

  .topbar {
    inset-block-start: 8px;
    min-height: 58px;
    padding: 7px 8px;
    gap: 8px;
    border-color: var(--line);
    background: var(--glass);
    backdrop-filter: blur(16px);
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .brand b {
    font-size: .74rem;
  }

  .brand small,
  .topbar__enter span {
    display: none;
  }

  .theme-switch,
  .topbar__enter,
  .lang-switch {
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
  }

  .theme-switch {
    padding: 0;
  }

  .hero {
    padding-block-start: 118px;
    gap: 42px;
  }

  .hero h1 {
    margin-block-start: 22px;
    font-size: clamp(2.45rem, 11vw, 3.35rem);
    line-height: 1.28;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  [dir="rtl"] .hero h1 {
    line-height: 1.42;
    letter-spacing: -.01em;
  }

  .hero h1 span,
  .hero h1 em {
    text-wrap: balance;
  }

  .eyebrow {
    max-width: 100%;
    align-items: flex-start;
    border-radius: 18px;
    line-height: 1.65;
  }

  .eyebrow > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero__lead {
    font-size: .87rem;
    line-height: 2.05;
    overflow-wrap: anywhere;
  }

  .hero__actions,
  .finale__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .quiet-action {
    width: 100%;
  }

  .hero-stage {
    min-height: 430px;
  }

  .screen--hero {
    inset: 10% 0 auto;
    height: 74%;
    transform: rotateX(2deg);
  }

  [dir="rtl"] .screen--hero {
    transform: rotateX(2deg);
  }

  .screen--lesson {
    inset-inline-start: -2%;
    width: 56%;
    height: 27%;
  }

  .screen--lab {
    inset-inline-end: -1%;
    width: 49%;
    height: 26%;
  }

  .hero-stage__tag--a {
    inset-block-start: 0;
    inset-inline-start: 0;
  }

  .hero-stage__tag--b {
    display: none;
  }

  .hero-stage__tag--c {
    inset-inline-end: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(2n) {
    border-inline-end: 1px solid var(--line);
  }

  .hero-stat:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .hero-stat b {
    font-size: 1.35rem;
  }

  .scroll-cue {
    display: none;
  }

  .chapter,
  .atlas {
    padding-block: 105px;
  }

  .chapter__intro,
  .atlas__head {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-block-end: 50px;
  }

  .chapter__number::after {
    display: inline-block;
    margin: 0 12px 3px 0;
  }

  [dir="rtl"] .chapter__number::after {
    margin: 0 0 3px 12px;
  }

  .chapter__intro h2,
  .atlas__head h2,
  .finale h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.8rem);
    line-height: 1.48;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  [dir="rtl"] .chapter__intro h2,
  [dir="rtl"] .atlas__head h2,
  [dir="rtl"] .finale h2 {
    line-height: 1.62;
    letter-spacing: -.006em;
  }

  .chapter__intro > div > p:last-child,
  .atlas__head > div > p:last-child,
  .finale__copy > p:not(.chapter__kicker) {
    font-size: .82rem;
  }

  .learn-stage,
  .memory-stage,
  .schedule-strip,
  .decision-stage,
  .lab-stage,
  .intensive-showcase,
  .lab-capabilities,
  .ratings-stage {
    grid-template-columns: 1fr;
  }

  .intensive-showcase {
    padding: 28px 20px;
    gap: 34px;
  }

  .intensive-showcase__copy h3,
  .rating-lens h3,
  .study-skins__copy h4 {
    line-height: 1.58;
  }

  .plan-board {
    padding: 14px;
  }

  .plan-board__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .plan-calendar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    overflow-x: auto;
    padding-block-end: 8px;
    scroll-snap-type: x proximity;
  }

  .plan-calendar > div {
    min-height: 172px;
    scroll-snap-align: start;
  }

  .plan-board__logic {
    align-items: flex-start;
    flex-direction: column;
  }

  .ratings-stage {
    gap: 14px;
  }

  .ratings-stage__principle {
    min-height: 330px;
  }

  .ratings-stage__principle::before,
  .ratings-stage__principle::after {
    width: 24%;
  }

  .rating-lens {
    min-height: 0;
  }

  .depth-panel,
  .product-frame--lesson,
  .diagram-card,
  .quiz-live {
    grid-column: 1;
    grid-row: auto;
  }

  .diagram-card {
    transform: none;
  }

  .product-frame--lesson figcaption,
  .hotspot {
    display: none;
  }

  .proof-row,
  .decision-proof,
  .ownership-row {
    grid-template-columns: 1fr;
  }

  .taste-stage {
    margin-block-start: 52px;
    grid-template-columns: 1fr;
    border-radius: 21px;
  }

  .taste-stage::before {
    inset: 40% -42% auto auto;
    width: 390px;
    height: 390px;
  }

  .taste-stage__copy,
  .course-personalizer {
    padding: 28px 22px;
  }

  .taste-stage__copy {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .taste-stage__copy h3 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .theme-picker {
    margin-block-start: 24px;
    gap: 6px;
  }

  .theme-picker button {
    padding: 6px;
  }

  .course-preview {
    padding: 19px 17px 25px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .course-preview em {
    position: absolute;
    inset: 13px auto auto 17px;
  }

  [dir="ltr"] .course-preview em {
    inset: 13px 17px auto auto;
  }

  .course-preview > i {
    inset-inline: 17px;
    inset-block-end: 12px;
  }

  .course-swatches {
    flex-wrap: wrap;
  }

  .study-skins {
    grid-column: 1;
    padding: 30px 20px;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "preview" "options";
    gap: 24px;
  }

  .study-skin-preview {
    min-height: 0;
  }

  .study-theme-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proof-row > span,
  .decision-proof > span,
  .ownership-row > span {
    min-height: 105px;
    border-inline-end: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .proof-row > span:first-child,
  .decision-proof > span:first-child,
  .ownership-row > span:first-child {
    border-top: 0;
  }

  .memory-live,
  .quiz-live {
    min-height: 0;
  }

  .demo-flashcard {
    height: 350px;
  }

  .demo-flashcard__face {
    padding: 22px;
  }

  .quiz-live {
    grid-template-columns: 1fr;
    grid-template-areas: "meta" "question" "answers" "feedback";
    gap: 20px;
  }

  .memory-sequence {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-sequence em {
    transform: rotate(90deg);
    align-self: center;
  }

  .semester-stage__viewport,
  .product-frame--semester {
    min-height: 0;
    height: 590px;
  }

  .product-frame--semester:hover .semester-stage__viewport img,
  .product-frame--semester.is-exploring .semester-stage__viewport img {
    transform: none;
  }

  .semester-notes {
    grid-template-columns: 1fr;
  }

  .schedule-strip {
    gap: 0;
  }

  .schedule-strip figure {
    height: 290px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-strip > div {
    padding: 28px 24px;
  }

  .gpa-crop {
    height: auto;
  }

  .gpa-caption {
    inset: auto 10px 10px;
  }

  .lab-capability__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .circuit-demo__controls {
    grid-template-columns: 1fr 1fr;
  }

  .circuit-demo__controls > div {
    grid-column: 1 / 3;
  }

  .language-proof {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .language-proof__ticker {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .sync-stage {
    min-height: 690px;
  }

  .device {
    width: 155px;
    height: 255px;
  }

  .device--a {
    inset: 46px auto auto 5%;
  }

  .device--b {
    inset: 46px 5% auto auto;
  }

  .device div {
    inset-inline: 12px;
  }

  .sync-map {
    inset-block-start: 150px;
    transform: rotate(90deg) scale(.84);
  }

  .merged-state {
    inset-block-start: 63%;
  }

  .atlas__toolbar {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr auto;
  }

  .atlas__filters {
    grid-column: 1 / 3;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .atlas__filters::-webkit-scrollbar {
    display: none;
  }

  .atlas__filters button {
    flex: 0 0 auto;
  }

  .atlas__grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 190px;
  }

  .finale {
    min-height: auto;
    padding-block: 110px;
  }

  .finale__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .tour-footer {
    grid-template-columns: 1fr auto;
  }

  .tour-footer p {
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: start;
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }

  .topbar__actions {
    gap: 6px;
  }

  .study-theme-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-density button {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

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

  .living-root__line,
  .living-root__flow,
  .living-root__node,
  .branch path,
  .sync-map__active {
    stroke-dashoffset: 0;
  }

  .semester-stage__viewport img {
    transform: none !important;
  }
}

/*@3.TOUC.1*/
@supports (-webkit-touch-callout: none) {
  .atlas__search input { font-size: 16px; }
}
