:root {
  --ink: #0b1014;
  --ink-soft: #121a20;
  --ink-card: #172229;
  --paper: #eef2ea;
  --paper-deep: #dbe4db;
  --paper-dim: #b7c4b9;
  --text-muted: #708078;
  --line: rgba(11, 16, 20, 0.14);
  --line-light: rgba(238, 242, 234, 0.15);
  --mint: #b9ff55;
  --mint-soft: #dbff9b;
  --orange: #ff8b67;
  --blue: #879fff;
  --display: 'Syne', 'Trebuchet MS', sans-serif;
  --body: 'Manrope', 'Trebuchet MS', sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --max: 1320px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

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

.skip-link {
  background: var(--mint);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  text-transform: uppercase;
  top: -4rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.ambient,
.grain {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient {
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.13;
}

.ambient-one {
  background: var(--mint);
  height: 360px;
  right: -150px;
  top: 140px;
  width: 360px;
}

.ambient-two {
  background: var(--orange);
  bottom: 7%;
  height: 260px;
  left: -160px;
  width: 260px;
}

.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.05;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  align-items: center;
  background: rgba(11, 16, 20, 0.96);
  border-bottom: 1px solid var(--line-light);
  color: var(--paper);
  display: flex;
  gap: 2rem;
  height: 76px;
  padding: 0 clamp(1.25rem, 4vw, 4.75rem);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 0.72rem;
  text-decoration: none;
}

.brand-glyph {
  display: inline-flex;
  gap: 3px;
  height: 27px;
  transform: skew(-18deg);
  width: 28px;
}

.brand-glyph i {
  background: var(--mint);
  display: block;
  height: 100%;
  width: 6px;
}

.brand-glyph i:nth-child(2) {
  background: var(--paper);
  height: 72%;
  margin-top: 28%;
}

.brand-glyph i:nth-child(3) {
  background: var(--orange);
  height: 48%;
  margin-top: 52%;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.brand-name span {
  color: var(--mint);
}

.brand-name sup {
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0;
  margin-left: 0.15rem;
  position: relative;
  top: -0.65rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.2rem);
  margin-left: clamp(1rem, 4vw, 4rem);
}

.site-nav a,
.header-link,
.header-status,
.kicker,
.lesson-meta,
.experiment-index,
.reset-experiment,
.stage-instruction,
.stage-footer,
.lab-tag,
.lab-caption,
.console-id,
.console-live,
.screen-corner,
.hero-facts span,
.principle-top,
.queued,
.footer-center,
.footer-meta,
.signal-footnote {
  font-family: var(--mono);
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(238, 242, 234, 0.62);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a span {
  color: var(--mint);
  font-size: 0.52rem;
  margin-left: 0.35rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
}

.language-switcher {
  flex-shrink: 0;
  position: relative;
  z-index: 80;
}

.language-trigger {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(238, 242, 234, 0.2);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.56rem;
  gap: 0.45rem;
  letter-spacing: 0.06em;
  min-height: 34px;
  padding: 0.55rem 0.65rem;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-switcher.is-open .language-trigger {
  background: rgba(185, 255, 85, 0.08);
  border-color: var(--mint);
  color: var(--mint);
}

.language-flag {
  font-size: 1rem;
  line-height: 1;
}

.language-chevron {
  color: var(--mint);
  font-size: 0.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.language-menu {
  background: #12191e;
  border: 1px solid rgba(185, 255, 85, 0.32);
  box-shadow: 8px 8px 0 rgba(135, 159, 255, 0.22);
  display: none;
  min-width: 154px;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
}

.language-switcher.is-open .language-menu {
  display: grid;
}

.language-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(238, 242, 234, 0.72);
  cursor: pointer;
  display: grid;
  font-family: var(--mono);
  font-size: 0.58rem;
  gap: 0.55rem;
  grid-template-columns: 1.2rem 1fr auto;
  padding: 0.7rem 0.55rem;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-current='true'] {
  background: rgba(185, 255, 85, 0.1);
  color: var(--mint);
}

.language-menu small {
  color: var(--text-muted);
  font-size: 0.5rem;
}

.header-status {
  align-items: center;
  color: rgba(238, 242, 234, 0.46);
  display: inline-flex;
  font-size: 0.54rem;
  gap: 0.42rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-status i,
.console-live i,
.console-footbar i,
.lesson-status i,
.queued i {
  background: var(--mint);
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}

.header-status i,
.console-live i,
.console-footbar i,
.lesson-status i {
  animation: soft-pulse 2.2s ease-in-out infinite;
}

.header-link {
  align-items: center;
  border: 1px solid rgba(185, 255, 85, 0.42);
  color: var(--mint);
  display: inline-flex;
  font-size: 0.59rem;
  gap: 0.7rem;
  padding: 0.72rem 0.88rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  background: var(--mint);
  color: var(--ink);
  transform: translateY(-2px);
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  margin-left: auto;
  padding: 0.4rem;
}

.menu-line {
  background: var(--paper);
  display: block;
  height: 1px;
  margin: 5px 0;
  transition: transform 180ms ease;
  width: 23px;
}

.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(238, 242, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 242, 234, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 71% 44%, rgba(135, 159, 255, 0.15), transparent 31%),
    linear-gradient(118deg, var(--ink) 0%, var(--ink) 49%, #101c22 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--paper);
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 0.87fr) minmax(430px, 1.13fr);
  min-height: 728px;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8.5rem) clamp(4.8rem, 8vw, 7.4rem);
}

.hero::before {
  background: var(--mint);
  bottom: 0;
  box-shadow: 31px 0 0 var(--orange), 62px 0 0 var(--blue);
  content: '';
  height: 8px;
  left: 0;
  position: absolute;
  width: min(17vw, 218px);
}

.hero::after {
  border: 1px dashed rgba(135, 159, 255, 0.34);
  border-radius: 50%;
  content: '';
  height: 78vw;
  max-height: 980px;
  max-width: 980px;
  pointer-events: none;
  position: absolute;
  right: -35vw;
  top: -25vw;
  width: 78vw;
}

.hero-copy {
  align-self: center;
  max-width: 670px;
  position: relative;
  z-index: 2;
}

.kicker {
  align-items: center;
  color: var(--mint);
  display: flex;
  font-size: 0.59rem;
  gap: 0.74rem;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0 0 1.7rem;
}

.kicker > span {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 0.5rem;
  height: 22px;
  justify-content: center;
  letter-spacing: 0;
  width: 26px;
}

.kicker-dark {
  color: var(--text-muted);
}

.hero h1,
.section-intro h2,
.lesson-copy h3,
.principles-heading h2,
.signal-title h2,
.next-intro h2,
.final-cta h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.095em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(4.7rem, 8vw, 9rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 em,
.section-intro h2 em,
.lesson-copy h3 em,
.principles-heading h2 em,
.signal-title h2 em,
.next-intro h2 em,
.final-cta h2 em {
  color: var(--mint);
  font-style: normal;
}

.hero-lede {
  color: rgba(238, 242, 234, 0.68);
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.7;
  margin: 2.2rem 0 0;
  max-width: 510px;
}

.hero-lede strong {
  color: var(--paper);
  font-weight: 600;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.45rem;
  margin-top: 2.2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.64rem;
  gap: 1.35rem;
  justify-content: space-between;
  letter-spacing: 0.04em;
  min-width: 205px;
  padding: 1rem 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  background: var(--mint);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--orange);
  transform: translate(-2px, -2px);
}

.text-link {
  color: rgba(238, 242, 234, 0.66);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.text-link span {
  color: var(--mint);
  font-size: 0.9rem;
  margin-left: 0.45rem;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--paper);
}

.hero-facts {
  border-top: 1px solid var(--line-light);
  display: flex;
  gap: clamp(1.3rem, 4vw, 3.3rem);
  margin-top: 4.1rem;
  max-width: 530px;
  padding-top: 1.25rem;
}

.hero-facts div {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
}

.hero-facts strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.hero-facts span {
  color: rgba(238, 242, 234, 0.46);
  font-size: 0.47rem;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.hero-lab {
  align-self: center;
  justify-self: end;
  max-width: 690px;
  min-height: 500px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-lab-orbit {
  border: 1px solid rgba(135, 159, 255, 0.28);
  border-radius: 50%;
  height: 90%;
  pointer-events: none;
  position: absolute;
  right: -8%;
  top: 2%;
  transform: rotate(-16deg);
  width: 92%;
}

.orbit-a {
  animation: orbit-drift 16s ease-in-out infinite;
}

.orbit-b {
  border-color: rgba(185, 255, 85, 0.24);
  height: 74%;
  right: 3%;
  top: 10%;
  transform: rotate(34deg);
  width: 76%;
}

.lab-tag {
  align-items: center;
  color: rgba(238, 242, 234, 0.62);
  display: flex;
  font-size: 0.54rem;
  gap: 0.45rem;
  letter-spacing: 0.07em;
  position: absolute;
  z-index: 3;
}

.lab-tag i {
  background: var(--orange);
  display: block;
  height: 7px;
  width: 7px;
}

.lab-tag-top {
  left: 3%;
  top: 4%;
}

.lab-tag-bottom {
  bottom: 7%;
  right: 5%;
}

.lab-tag-bottom span {
  color: var(--mint);
  font-size: 0.95rem;
  margin-left: 0.2rem;
}

.console-card {
  background: var(--ink-soft);
  border: 1px solid rgba(238, 242, 234, 0.23);
  box-shadow: 14px 17px 0 rgba(0, 0, 0, 0.2);
  left: 4%;
  position: absolute;
  right: 3%;
  top: 12%;
  transform: rotate(2.8deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease;
}

.hero-lab:hover .console-card {
  box-shadow: 20px 22px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(0deg) translateY(-5px);
}

.console-topbar,
.console-footbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 1rem;
}

.console-topbar {
  border-bottom: 1px solid var(--line-light);
}

.console-dots {
  display: flex;
  gap: 0.28rem;
}

.console-dots i {
  background: rgba(238, 242, 234, 0.35);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.console-dots i:first-child {
  background: var(--orange);
}

.console-id,
.console-live {
  color: rgba(238, 242, 234, 0.45);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.console-live {
  align-items: center;
  color: var(--mint);
  display: flex;
  gap: 0.4rem;
}

.console-screen {
  background:
    radial-gradient(circle at 74% 46%, rgba(135, 159, 255, 0.16), transparent 32%),
    linear-gradient(rgba(238, 242, 234, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 242, 234, 0.065) 1px, transparent 1px),
    #0d151b;
  background-size: auto, 43px 43px, 43px 43px, auto;
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.console-screen::after {
  animation: screen-scan 7s linear infinite;
  background: linear-gradient(180deg, transparent, rgba(185, 255, 85, 0.06), transparent);
  content: '';
  height: 80px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -80px;
}

.screen-corner {
  color: rgba(238, 242, 234, 0.45);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  position: absolute;
  z-index: 2;
}

.corner-tl {
  left: 1.2rem;
  top: 1.1rem;
}

.corner-br {
  bottom: 1rem;
  right: 1.2rem;
}

.hero-network {
  height: 100%;
  left: 5%;
  position: absolute;
  top: 4%;
  width: 90%;
}

.hero-edges path {
  stroke-width: 1.2;
}

.hero-pulse-paths path {
  stroke-dasharray: 4 24;
  stroke-width: 1.7;
  opacity: 0.74;
  animation: data-flow 3.8s linear infinite;
}

.hero-pulse-paths path:nth-child(2) {
  animation-delay: -1.5s;
}

.hero-node {
  animation: node-breathe 2.8s ease-in-out infinite;
  stroke-width: 1.5;
}

.input-node {
  fill: var(--mint);
  stroke: rgba(185, 255, 85, 0.3);
}

.hidden-node {
  fill: var(--blue);
  stroke: rgba(135, 159, 255, 0.38);
  animation-delay: -0.6s;
}

.output-node {
  fill: var(--orange);
  stroke: rgba(255, 139, 103, 0.45);
  animation-delay: -1.2s;
}

.screen-layer {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  position: absolute;
}

.screen-layer span {
  color: rgba(238, 242, 234, 0.42);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-layer strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.layer-input {
  left: 6%;
  top: 17%;
}

.layer-hidden {
  left: 42%;
  top: 8%;
}

.layer-output {
  bottom: 18%;
  right: 7%;
  text-align: right;
}

.console-footbar {
  color: rgba(238, 242, 234, 0.5);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.console-footbar b {
  color: var(--mint);
  margin: 0 0.25rem;
}

.console-footbar span:last-child {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.lab-caption {
  align-items: center;
  bottom: -0.3%;
  color: rgba(238, 242, 234, 0.47);
  display: flex;
  font-size: 0.52rem;
  gap: 0.62rem;
  left: 13%;
  letter-spacing: 0.08em;
  position: absolute;
}

.lab-caption > span:first-child {
  color: var(--mint);
}

.lab-caption strong {
  color: var(--paper);
  font-weight: 400;
}

.caption-rule {
  background: rgba(238, 242, 234, 0.28);
  display: block;
  height: 1px;
  width: 36px;
}

.marquee {
  background: var(--mint);
  color: var(--ink);
  overflow: hidden;
  padding: 0.8rem 0;
  position: relative;
  z-index: 2;
}

.marquee-track {
  align-items: center;
  animation: marquee 26s linear infinite;
  display: flex;
  gap: 4.5rem;
  min-width: max-content;
  transform: translateX(-5%);
}

.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.marquee-track b {
  color: var(--orange);
  font-size: 1rem;
  margin: 0 0.9rem;
}

.lessons-section,
.principles-section,
.next-section {
  padding: clamp(5.5rem, 10vw, 9.5rem) clamp(1.25rem, 7vw, 8.5rem);
}

.lessons-section {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(11, 16, 20, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 16, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.section-intro {
  align-items: flex-end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto 3.2rem;
  max-width: var(--max);
}

.section-intro h2,
.principles-heading h2,
.next-intro h2 {
  color: var(--ink);
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.section-intro h2 em,
.principles-heading h2 em,
.next-intro h2 em {
  color: var(--orange);
}

.section-intro-aside {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 270px;
}

.section-intro-aside p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
}

.lesson-count {
  align-items: baseline;
  color: var(--text-muted);
  display: flex;
  font-family: var(--mono);
  font-size: 0.58rem;
  gap: 0.35rem;
  letter-spacing: 0.08em;
}

.lesson-count strong {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.lesson-count i {
  color: var(--orange);
  font-style: normal;
}

.lesson-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 1rem;
  max-width: var(--max);
}

.lesson-tab {
  align-items: center;
  background: rgba(11, 16, 20, 0.035);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 1rem;
  min-height: 88px;
  padding: 1.15rem 1.4rem;
  position: relative;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lesson-tab + .lesson-tab {
  border-left: 0;
}

.lesson-tab:hover,
.lesson-tab:focus-visible {
  transform: translateY(-3px);
}

.lesson-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tab-number {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.61rem;
  align-self: flex-start;
}

.tab-copy {
  display: flex;
  flex-direction: column;
  gap: 0.33rem;
}

.tab-copy strong {
  font-family: var(--display);
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.tab-copy small {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.lesson-tab.is-active .tab-copy small {
  color: rgba(238, 242, 234, 0.5);
}

.tab-arrow {
  color: var(--orange);
  font-size: 1.35rem;
  margin-left: auto;
  transition: transform 180ms ease;
}

.lesson-tab:hover .tab-arrow,
.lesson-tab.is-active .tab-arrow {
  transform: translate(3px, -3px);
}

.lesson-view {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1.48fr);
  margin: 0 auto;
  max-width: var(--max);
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.lesson-view::before {
  background: repeating-linear-gradient(135deg, var(--orange) 0 7px, transparent 7px 14px);
  content: '';
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 132px;
}

.lesson-copy {
  display: flex;
  flex-direction: column;
  min-height: 610px;
  padding-top: 0.55rem;
  position: relative;
  z-index: 2;
}

.lesson-meta {
  align-items: center;
  color: rgba(238, 242, 234, 0.43);
  display: flex;
  font-size: 0.52rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-bottom: auto;
}

.lesson-status {
  align-items: center;
  color: var(--mint);
  display: inline-flex;
  gap: 0.45rem;
}

.lesson-copy h3 {
  font-size: clamp(3.25rem, 5vw, 5.3rem);
  line-height: 0.82;
  margin-top: 2.5rem;
  text-transform: uppercase;
}

.lesson-copy h3 em {
  color: var(--blue);
}

.lesson-copy > p {
  color: rgba(238, 242, 234, 0.63);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.6rem 0 0;
  max-width: 310px;
}

.plain-language {
  border-left: 2px solid var(--mint);
  margin-top: 2.3rem;
  max-width: 330px;
  padding: 0.1rem 0 0.1rem 1rem;
}

.plain-language span {
  color: var(--mint);
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.plain-language strong {
  color: var(--paper);
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.55;
}

.switch-lesson {
  align-items: center;
  align-self: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(238, 242, 234, 0.3);
  color: rgba(238, 242, 234, 0.72);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.58rem;
  gap: 1rem;
  margin-top: auto;
  padding: 0.45rem 0 0.7rem;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.switch-lesson span {
  color: var(--mint);
  font-size: 1rem;
}

.switch-lesson:hover,
.switch-lesson:focus-visible {
  border-color: var(--mint);
  color: var(--paper);
}

.experiment-shell {
  background: var(--ink-soft);
  border: 1px solid rgba(238, 242, 234, 0.17);
  min-width: 0;
}

.experiment-head {
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 1.15rem;
}

.experiment-head > div {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.experiment-index {
  color: var(--orange);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.experiment-head strong {
  color: rgba(238, 242, 234, 0.55);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.reset-experiment {
  background: transparent;
  border: 0;
  color: rgba(238, 242, 234, 0.42);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  padding: 0.4rem;
  transition: color 180ms ease, transform 180ms ease;
}

.reset-experiment span {
  color: var(--mint);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.reset-experiment:hover,
.reset-experiment:focus-visible {
  color: var(--paper);
  transform: rotate(-12deg);
}

.experiment-stage {
  min-height: 555px;
  padding: 1.25rem;
  position: relative;
}

.experiment-stage.is-hidden {
  display: none;
}

.stage-instruction {
  align-items: center;
  color: rgba(238, 242, 234, 0.47);
  display: flex;
  font-size: 0.5rem;
  gap: 0.5rem;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.instruction-pulse {
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(185, 255, 85, 0.1);
  display: inline-block;
  height: 6px;
  width: 6px;
}

.instruction-pulse.orange {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 139, 103, 0.11);
}

.network-map,
.gradient-map {
  aspect-ratio: 640 / 300;
  margin: 1.25rem 0 0.9rem;
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.network-map {
  background: radial-gradient(circle at 54% 48%, rgba(135, 159, 255, 0.12), transparent 31%);
}

.network-map::before,
.network-map::after {
  border: 1px dashed rgba(238, 242, 234, 0.13);
  border-radius: 50%;
  content: '';
  height: 35%;
  left: 3%;
  position: absolute;
  top: 32%;
  width: 19%;
}

.network-map::after {
  height: 68%;
  left: 26%;
  top: 16%;
  width: 48%;
}

.network-edges {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.edge-lines path {
  fill: none;
  opacity: 0.52;
  stroke-width: 1.2;
}

.edge-flow path {
  stroke-dasharray: 3 22;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.85;
  animation: data-flow 3.1s linear infinite;
}

.edge-flow path:nth-child(2) {
  animation-delay: -1.1s;
}

.network-node {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  z-index: 3;
}

.network-node::before {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: '';
  inset: 2px;
  opacity: 0;
  position: absolute;
  transition: inset 180ms ease, opacity 180ms ease;
}

.network-node span {
  background: var(--blue);
  border: 1px solid rgba(238, 242, 234, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(135, 159, 255, 0.08);
  display: block;
  height: 12px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 12px;
}

.network-node[data-node='input'] span {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(185, 255, 85, 0.08);
}

.network-node[data-node='output'] span {
  background: var(--orange);
  height: 16px;
  width: 16px;
}

.network-node:hover span,
.network-node:focus-visible span,
.network-node.is-selected span {
  box-shadow: 0 0 0 7px rgba(185, 255, 85, 0.13), 0 0 22px rgba(185, 255, 85, 0.43);
  transform: scale(1.25);
}

.network-node:hover::before,
.network-node:focus-visible::before,
.network-node.is-selected::before {
  inset: -3px;
  opacity: 0.65;
}

.node-1 { left: 10%; top: 24%; }
.node-2 { left: 10%; top: 50%; }
.node-3 { left: 10%; top: 87%; }
.node-4 { left: 33.75%; top: 13.3%; }
.node-5 { left: 33.75%; top: 50%; }
.node-6 { left: 33.75%; top: 86.7%; }
.node-7 { left: 60.9%; top: 27.3%; }
.node-8 { left: 60.9%; top: 72.7%; }
.node-9 { left: 85.6%; top: 50%; }

.network-layer-label {
  align-items: center;
  color: rgba(238, 242, 234, 0.38);
  display: flex;
  font-family: var(--mono);
  font-size: 0.49rem;
  gap: 0.38rem;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
  z-index: 4;
}

.network-layer-label i {
  background: currentColor;
  display: block;
  height: 1px;
  width: 23px;
}

.label-data { left: 4%; top: 4%; }
.label-pattern { left: 42%; top: 3%; color: rgba(135, 159, 255, 0.72); }
.label-answer { right: 3%; top: 4%; color: rgba(255, 139, 103, 0.72); }

.network-inspector {
  align-items: flex-start;
  background: rgba(238, 242, 234, 0.055);
  border: 1px solid rgba(238, 242, 234, 0.13);
  display: flex;
  gap: 0.85rem;
  min-height: 76px;
  padding: 0.8rem 0.9rem;
}

.inspector-symbol {
  align-items: center;
  background: var(--mint);
  color: var(--ink);
  display: flex;
  flex: 0 0 29px;
  font-size: 1.45rem;
  height: 29px;
  justify-content: center;
  line-height: 1;
}

.network-inspector span,
.network-inspector strong,
.network-inspector p {
  display: block;
}

.network-inspector span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.network-inspector strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.network-inspector p {
  color: rgba(238, 242, 234, 0.52);
  font-size: 0.66rem;
  line-height: 1.45;
  margin: 0.3rem 0 0;
}

.stage-controls {
  align-items: flex-end;
  display: flex;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.signal-control {
  display: block;
  flex: 1;
}

.signal-control > span {
  align-items: center;
  color: rgba(238, 242, 234, 0.48);
  display: flex;
  font-family: var(--mono);
  font-size: 0.5rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.signal-control small {
  font-size: inherit;
}

.signal-control output {
  color: var(--mint);
  font-size: 0.66rem;
}

.signal-control input[type='range'] {
  appearance: none;
  background: linear-gradient(90deg, var(--mint) 72%, rgba(238, 242, 234, 0.14) 72%);
  border: 0;
  display: block;
  height: 2px;
  margin: 0;
  width: 100%;
}

.signal-control input[type='range']::-webkit-slider-thumb {
  appearance: none;
  background: var(--mint);
  border: 3px solid var(--ink-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--mint);
  height: 15px;
  width: 15px;
}

.signal-control input[type='range']::-moz-range-thumb {
  background: var(--mint);
  border: 3px solid var(--ink-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--mint);
  height: 11px;
  width: 11px;
}

.control-button {
  align-items: center;
  background: var(--mint);
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.55rem;
  gap: 1rem;
  justify-content: space-between;
  min-height: 39px;
  min-width: 148px;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.control-button b {
  font-size: 1rem;
  font-weight: 400;
}

.control-button:hover,
.control-button:focus-visible {
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--blue);
  transform: translate(-2px, -2px);
}

.control-orange {
  background: var(--orange);
}

.control-orange:hover,
.control-orange:focus-visible {
  box-shadow: 4px 4px 0 var(--mint);
}

.stage-footer {
  border-top: 1px solid var(--line-light);
  color: rgba(238, 242, 234, 0.4);
  display: flex;
  font-size: 0.48rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
}

.stage-footer span:first-child {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}

.dot-mint { background: var(--mint); }
.dot-orange { background: var(--orange); }

.gradient-stage {
  --gradient-accent: var(--orange);
}

.gradient-map {
  background: radial-gradient(circle at 48% 77%, rgba(255, 139, 103, 0.11), transparent 36%);
}

.gradient-graph {
  height: 100%;
  overflow: visible;
  width: 100%;
}

.graph-grid path {
  fill: none;
  stroke: rgba(238, 242, 234, 0.08);
  stroke-width: 1;
}

.valley-fill {
  fill: url(#valleyFill);
}

.valley-line {
  fill: none;
  stroke: rgba(255, 139, 103, 0.76);
  stroke-dasharray: 2 7;
  stroke-width: 2;
}

.gradient-trail {
  fill: none;
  stroke: var(--orange);
  stroke-dasharray: 4 8;
  stroke-width: 2;
}

.gradient-dot-shadow {
  fill: rgba(255, 139, 103, 0.16);
  transition: cx 450ms cubic-bezier(0.2, 0.8, 0.2, 1), cy 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gradient-dot {
  fill: var(--orange);
  stroke: var(--paper);
  stroke-width: 2;
  transition: cx 450ms cubic-bezier(0.2, 0.8, 0.2, 1), cy 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.axis-line {
  fill: none;
  stroke: rgba(238, 242, 234, 0.38);
  stroke-width: 1;
}

.graph-label {
  color: rgba(238, 242, 234, 0.43);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
}

.graph-label-top { left: 6%; top: 9%; }
.graph-label-bottom { bottom: 6%; left: 6%; }
.graph-label-min { bottom: 5%; left: 48%; color: var(--orange); }

.gradient-metrics {
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.7rem 0;
}

.gradient-metrics div + div {
  border-left: 1px solid var(--line-light);
  padding-left: 1rem;
}

.gradient-metrics small,
.gradient-metrics strong {
  display: block;
}

.gradient-metrics small {
  color: rgba(238, 242, 234, 0.4);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.42rem;
  text-transform: uppercase;
}

.gradient-metrics strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.gradient-metrics strong i {
  color: rgba(238, 242, 234, 0.36);
  font-family: var(--mono);
  font-size: 0.5rem;
  font-style: normal;
  letter-spacing: 0;
}

.gradient-metrics .metric-down {
  color: var(--orange);
  font-size: 0.82rem;
}

.gradient-control input[type='range'] {
  background: linear-gradient(90deg, var(--orange) 25%, rgba(238, 242, 234, 0.14) 25%);
}

.gradient-control input[type='range']::-webkit-slider-thumb,
.gradient-control input[type='range']::-moz-range-thumb {
  background: var(--orange);
}

.gradient-control output {
  color: var(--orange);
}

.takeaway {
  align-items: center;
  background: var(--orange);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 150px minmax(0, 1fr) 40px;
  margin: 1rem auto 0;
  max-width: var(--max);
  min-height: 88px;
  padding: 1.15rem 1.4rem;
}

.takeaway-label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.takeaway p {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 0;
}

.takeaway-mark {
  color: rgba(11, 16, 20, 0.57);
  font-size: 2rem;
  justify-self: end;
}

.principles-section {
  background: var(--paper);
  display: grid;
  gap: clamp(3rem, 7vw, 8rem);
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}

.principles-heading {
  max-width: 390px;
}

.principles-heading h2 {
  margin-bottom: 2rem;
}

.principles-heading > p:last-child {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
}

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

.principle-card {
  border-left: 1px solid var(--line);
  min-height: 300px;
  padding: 0.2rem clamp(1rem, 2vw, 1.8rem) 0;
  transition: background 180ms ease, transform 180ms ease;
}

.principle-card:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
}

.principle-card-accent {
  background: var(--mint);
  border-left: 0;
}

.principle-top {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.5rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
}

.principle-card-accent .principle-top {
  color: rgba(11, 16, 20, 0.6);
}

.principle-icon {
  height: 76px;
  margin: 3.3rem 0 2rem;
  position: relative;
  width: 91px;
}

.icon-eye::before {
  border: 2px solid var(--orange);
  border-radius: 70% 0 70% 0;
  content: '';
  height: 42px;
  left: 17px;
  position: absolute;
  top: 11px;
  transform: rotate(45deg);
  width: 42px;
}

.icon-eye span {
  background: var(--orange);
  border-radius: 50%;
  height: 12px;
  left: 33px;
  position: absolute;
  top: 26px;
  width: 12px;
}

.icon-eye i {
  border-bottom: 1px solid var(--orange);
  border-top: 1px solid var(--orange);
  height: 61px;
  left: 8px;
  opacity: 0.3;
  position: absolute;
  top: 0;
  transform: rotate(45deg);
  width: 61px;
}

.icon-click span {
  color: var(--ink);
  font-family: var(--display);
  font-size: 3.8rem;
  left: 12px;
  letter-spacing: -0.2em;
  line-height: 1;
  position: absolute;
  top: -4px;
  transform: rotate(-12deg);
}

.icon-click i {
  border: 1px solid var(--ink);
  height: 32px;
  left: 54px;
  position: absolute;
  top: 36px;
  width: 28px;
}

.icon-link span {
  border: 2px solid var(--blue);
  border-radius: 50%;
  height: 35px;
  position: absolute;
  top: 18px;
  width: 35px;
}

.icon-link span:first-child { left: 12px; }
.icon-link span:nth-child(2) { left: 44px; }

.icon-link i {
  background: var(--blue);
  height: 3px;
  left: 37px;
  position: absolute;
  top: 35px;
  transform: rotate(-30deg);
  width: 21px;
}

.principle-card h3,
.next-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.07em;
  margin: 0;
}

.principle-card p,
.next-card p {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.65;
  margin: 0.85rem 0 0;
  max-width: 180px;
}

.principle-card-accent p {
  color: rgba(11, 16, 20, 0.65);
}

.signal-section {
  background: var(--paper);
  padding: 0 clamp(1.25rem, 7vw, 8.5rem) clamp(5.5rem, 10vw, 9.5rem);
}

.signal-card {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  margin: 0 auto;
  max-width: var(--max);
  overflow: hidden;
  padding: clamp(2.3rem, 6vw, 5.5rem);
  position: relative;
}

.signal-card::after {
  border: 1px solid rgba(185, 255, 85, 0.25);
  border-radius: 50%;
  content: '';
  height: 440px;
  position: absolute;
  right: -100px;
  top: -220px;
  width: 440px;
}

.signal-title,
.signal-explanation {
  position: relative;
  z-index: 1;
}

.signal-title h2 {
  font-size: clamp(3.4rem, 6.7vw, 7.1rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.signal-title h2 em {
  color: var(--orange);
}

.signal-explanation {
  align-self: end;
  max-width: 370px;
}

.signal-explanation > p {
  color: rgba(238, 242, 234, 0.63);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 2rem;
}

.signal-formula {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.signal-formula span {
  border: 1px solid rgba(238, 242, 234, 0.28);
  color: rgba(238, 242, 234, 0.72);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  padding: 0.58rem 0.68rem;
  text-transform: uppercase;
}

.signal-formula .formula-active {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}

.signal-formula i {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-style: normal;
}

.signal-footnote {
  color: rgba(238, 242, 234, 0.33);
  display: block;
  font-size: 0.49rem;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

.next-section {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(11, 16, 20, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 16, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.next-intro {
  align-items: flex-end;
  margin-bottom: 3.2rem;
}

.next-aside {
  align-self: flex-end;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
  max-width: 285px;
}

.next-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.next-card {
  background: var(--ink);
  color: var(--paper);
  min-height: 342px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.next-card:hover {
  box-shadow: 8px 9px 0 rgba(11, 16, 20, 0.16);
  transform: translateY(-6px);
}

.next-card-warm {
  background: var(--orange);
  color: var(--ink);
}

.next-card-blue {
  background: var(--blue);
  color: var(--ink);
}

.next-card-top {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 0.53rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}

.queued {
  align-items: center;
  color: rgba(238, 242, 234, 0.53);
  display: inline-flex;
  font-size: 0.48rem;
  gap: 0.38rem;
}

.next-card-warm .queued,
.next-card-blue .queued {
  color: rgba(11, 16, 20, 0.62);
}

.next-card-warm .queued i { background: var(--ink); }
.next-card-blue .queued i { background: var(--ink); }

.next-visual {
  height: 141px;
  margin: 1.25rem 0 1.65rem;
  position: relative;
}

.token-visual::before,
.token-visual::after {
  border: 1px solid rgba(185, 255, 85, 0.48);
  content: '';
  height: 76px;
  position: absolute;
  top: 28px;
  transform: rotate(32deg);
  width: 76px;
}

.token-visual::before { left: 22%; }
.token-visual::after { border-color: rgba(135, 159, 255, 0.52); left: 44%; }

.token-visual span {
  color: var(--mint);
  font-family: var(--display);
  font-size: 3.7rem;
  font-weight: 600;
  left: 32%;
  letter-spacing: -0.15em;
  position: absolute;
  top: 37px;
  z-index: 2;
}

.token-visual i {
  background: var(--orange);
  height: 10px;
  left: 19%;
  position: absolute;
  top: 14px;
  transform: rotate(32deg);
  width: 10px;
}

.token-visual b {
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  position: absolute;
  right: 18%;
  top: 7px;
}

.embedding-visual {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}

.embedding-visual::before,
.embedding-visual::after {
  border: 1px dashed rgba(11, 16, 20, 0.38);
  border-radius: 50%;
  content: '';
  height: 113px;
  position: absolute;
  width: 113px;
}

.embedding-visual::before { left: 21%; top: 14px; }
.embedding-visual::after { left: 51%; top: 14px; }

.embedding-visual i {
  background: var(--ink);
  border-radius: 50%;
  height: 9px;
  position: relative;
  width: 9px;
  z-index: 2;
}

.embedding-visual i:nth-child(1),
.embedding-visual i:nth-child(2) { background: var(--paper); }
.embedding-visual i:nth-child(4),
.embedding-visual i:nth-child(5) { background: var(--blue); }
.embedding-visual i:nth-child(3) { height: 13px; width: 13px; }

.attention-visual span {
  border: 1px solid rgba(11, 16, 20, 0.48);
  display: block;
  height: 33px;
  left: 26%;
  position: absolute;
  top: 25px;
  transform: skewY(-28deg);
  width: 33px;
}

.attention-visual span:nth-child(2) { left: 42%; top: 49px; }
.attention-visual span:nth-child(3) { left: 58%; top: 29px; }
.attention-visual span:nth-child(4) { left: 73%; top: 61px; }

.attention-visual i {
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  left: 41%;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.45rem;
  position: absolute;
  text-transform: uppercase;
  top: 78px;
}

.next-card h3 {
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
}

.next-card p {
  color: rgba(238, 242, 234, 0.56);
  position: relative;
  z-index: 2;
}

.next-card-warm p,
.next-card-blue p {
  color: rgba(11, 16, 20, 0.65);
}

.next-arrow {
  bottom: 1.2rem;
  color: var(--mint);
  font-size: 1.35rem;
  position: absolute;
  right: 1.35rem;
}

.next-card-warm .next-arrow { color: var(--ink); }
.next-card-blue .next-arrow { color: var(--ink); }

.final-cta {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.52fr);
  overflow: hidden;
  padding: clamp(4.8rem, 9vw, 9rem) clamp(1.25rem, 12vw, 13rem);
  position: relative;
}

.final-cta::before,
.final-cta::after {
  border: 1px solid rgba(135, 159, 255, 0.27);
  border-radius: 50%;
  content: '';
  height: 36vw;
  max-height: 530px;
  max-width: 530px;
  position: absolute;
  right: -8vw;
  top: -13vw;
  width: 36vw;
}

.final-cta::after {
  border-color: rgba(185, 255, 85, 0.2);
  height: 28vw;
  right: 0;
  top: -9vw;
  width: 28vw;
}

.final-cta > div {
  position: relative;
  z-index: 1;
}

.cta-mark {
  color: var(--orange);
  font-size: 2rem;
  left: -3.1rem;
  position: absolute;
  top: -0.6rem;
}

.final-cta h2 {
  font-size: clamp(3.8rem, 7.6vw, 8.5rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.final-cta h2 em {
  color: var(--mint);
}

.final-cta-copy {
  align-self: end;
  max-width: 330px;
}

.final-cta-copy p {
  color: rgba(238, 242, 234, 0.62);
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0 0 1.8rem;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  color: var(--paper);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.45rem clamp(1.25rem, 4vw, 4.75rem);
}

.site-footer .brand-name {
  font-size: 0.95rem;
}

.site-footer .brand-glyph {
  height: 22px;
  transform: skew(-18deg) scale(0.82);
  width: 23px;
}

.footer-center {
  align-items: center;
  color: rgba(238, 242, 234, 0.4);
  display: flex;
  font-size: 0.49rem;
  gap: 0.7rem;
  letter-spacing: 0.08em;
}

.footer-center i {
  background: var(--orange);
  height: 5px;
  width: 5px;
}

.footer-meta {
  color: rgba(238, 242, 234, 0.36);
  font-size: 0.49rem;
  letter-spacing: 0.08em;
}

.toast {
  background: var(--mint);
  bottom: 1.5rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.59rem;
  left: 50%;
  max-width: calc(100% - 2.5rem);
  opacity: 0;
  padding: 0.75rem 1rem;
  pointer-events: none;
  position: fixed;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 100;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-one { transition-delay: 80ms; }
.reveal-two { transition-delay: 220ms; }

.network-stage.is-running .edge-flow path,
.network-stage.is-running .network-node span {
  animation: signal-flash 920ms cubic-bezier(0.2, 0.8, 0.2, 1) 2;
}

.network-stage.is-running .network-node:nth-of-type(3n) span {
  animation-delay: 180ms;
}

.network-stage.is-running .network-node:nth-of-type(4n) span {
  animation-delay: 340ms;
}

@keyframes data-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -110; }
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.74; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes signal-flash {
  0% { filter: brightness(1); transform: scale(1); }
  35% { filter: brightness(1.9); transform: scale(1.22); }
  100% { filter: brightness(1); transform: scale(1); }
}

@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 255, 85, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(185, 255, 85, 0); }
}

@keyframes screen-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(480px); }
}

@keyframes orbit-drift {
  0%, 100% { transform: rotate(-16deg) scale(1); }
  50% { transform: rotate(-10deg) scale(1.03); }
}

@keyframes orbit-drift-reverse {
  0%, 100% { transform: rotate(34deg) scale(1); }
  50% { transform: rotate(26deg) scale(1.04); }
}

@keyframes marquee {
  from { transform: translateX(-5%); }
  to { transform: translateX(-45%); }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 1.3rem;
    margin-left: 1rem;
  }

  .header-status {
    display: none;
  }

  .hero {
    display: block;
    grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1.18fr);
    min-height: auto;
    padding-left: clamp(1.25rem, 4vw, 4rem);
    padding-right: clamp(1.25rem, 4vw, 4rem);
    padding-bottom: 6.2rem;
    padding-top: 6.2rem;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-lab {
    margin: 3.8rem auto 0;
    max-width: 680px;
    min-height: 490px;
  }

  .console-screen {
    min-height: 335px;
  }

  .principles-section {
    gap: 3rem;
    grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  }

  .principle-icon {
    margin-top: 2.5rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
    order: 3;
  }

  .site-nav {
    align-items: stretch;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line-light);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    position: absolute;
    right: 0;
    top: 68px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(238, 242, 234, 0.09);
    padding: 0.95rem 0;
  }

  .header-actions {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
    order: 2;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-bottom: 6.2rem;
    padding-top: 6.2rem;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-lab {
    margin: 3.8rem auto 0;
    max-width: 680px;
    min-height: 490px;
  }

  .lesson-view,
  .principles-section,
  .signal-card,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .lesson-copy {
    min-height: 0;
    padding-bottom: 2.5rem;
  }

  .lesson-meta {
    margin-bottom: 0;
  }

  .switch-lesson {
    margin-top: 2rem;
  }

  .experiment-stage {
    min-height: 0;
  }

  .principles-heading {
    max-width: 520px;
  }

  .principles-grid {
    margin-top: 1rem;
  }

  .final-cta-copy {
    max-width: 420px;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.8rem;
  }

  .section-intro-aside {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .hero,
  .lessons-section,
  .principles-section,
  .next-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-bottom: 5rem;
    padding-top: 5.3rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6rem);
    max-width: 100%;
  }

  .hero h1 em {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  html[lang="de"] .hero h1 {
    font-size: clamp(3.2rem, 14.5vw, 5rem);
  }

  .hero-lede {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 1.8rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1.05rem;
    max-width: 285px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3.3rem;
  }

  .hero-facts div {
    gap: 0.35rem;
  }

  .hero-facts strong {
    font-size: 1.4rem;
  }

  .hero-facts span {
    font-size: 0.43rem;
  }

  .hero-lab {
    margin-top: 3.6rem;
    min-height: 345px;
  }

  .console-card {
    left: 0;
    right: 0;
    top: 10%;
  }

  .console-screen {
    min-height: 245px;
  }

  .console-topbar,
  .console-footbar {
    min-height: 35px;
    padding: 0 0.7rem;
  }

  .console-id,
  .console-live,
  .console-footbar,
  .screen-corner {
    font-size: 0.4rem;
  }

  .screen-layer strong {
    font-size: 0.8rem;
  }

  .lab-tag {
    font-size: 0.43rem;
  }

  .lab-tag-top { left: 0; top: 2%; }
  .lab-tag-bottom { bottom: 1%; right: 0; }

  .lab-caption {
    bottom: -2%;
    font-size: 0.43rem;
    left: 6%;
  }

  .caption-rule {
    width: 20px;
  }

  .marquee-track {
    gap: 2rem;
  }

  .marquee-track span {
    font-size: 0.92rem;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.2rem;
  }

  .section-intro h2,
  .principles-heading h2,
  .next-intro h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .section-intro-aside {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    max-width: none;
    width: 100%;
  }

  .section-intro-aside p {
    font-size: 0.73rem;
    max-width: 250px;
  }

  .lesson-tabs {
    grid-template-columns: 1fr;
  }

  .lesson-tab + .lesson-tab {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .lesson-tab.is-active + .lesson-tab {
    border-left-color: var(--line);
  }

  .lesson-view {
    padding: 1.45rem 1rem 1rem;
  }

  .lesson-copy h3 {
    font-size: clamp(3rem, 15vw, 4.4rem);
    margin-top: 2.1rem;
  }

  .lesson-copy > p {
    font-size: 0.82rem;
  }

  .plain-language {
    margin-top: 1.8rem;
  }

  .experiment-head {
    min-height: 49px;
    padding: 0 0.8rem;
  }

  .experiment-head > div {
    gap: 0.45rem;
  }

  .experiment-index,
  .experiment-head strong,
  .reset-experiment {
    font-size: 0.44rem;
  }

  .experiment-stage {
    padding: 0.8rem;
  }

  .stage-instruction {
    font-size: 0.43rem;
  }

  .network-map,
  .gradient-map {
    min-height: 178px;
  }

  .network-node {
    height: 27px;
    width: 27px;
  }

  .network-node span {
    height: 9px;
    width: 9px;
  }

  .network-node[data-node='output'] span {
    height: 13px;
    width: 13px;
  }

  .network-layer-label,
  .graph-label {
    font-size: 0.4rem;
  }

  .network-inspector {
    gap: 0.6rem;
    min-height: 71px;
    padding: 0.65rem;
  }

  .inspector-symbol {
    flex-basis: 25px;
    font-size: 1.1rem;
    height: 25px;
  }

  .network-inspector span {
    font-size: 0.4rem;
  }

  .network-inspector strong {
    font-size: 0.8rem;
  }

  .network-inspector p {
    font-size: 0.58rem;
  }

  .stage-controls {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1rem;
  }

  .control-button {
    min-height: 42px;
    width: 100%;
  }

  .stage-footer {
    font-size: 0.4rem;
    gap: 0.75rem;
    line-height: 1.4;
  }

  .gradient-metrics strong {
    font-size: 0.95rem;
  }

  .gradient-metrics .metric-down {
    font-size: 0.66rem;
  }

  .takeaway {
    align-items: flex-start;
    gap: 0.6rem;
    grid-template-columns: 1fr 22px;
    margin-top: 0.7rem;
    padding: 1rem;
  }

  .takeaway-label {
    grid-column: 1 / -1;
  }

  .takeaway p {
    font-size: 0.95rem;
  }

  .takeaway-mark {
    font-size: 1.4rem;
  }

  .principles-section {
    gap: 2.8rem;
  }

  .principles-heading > p:last-child {
    font-size: 0.75rem;
  }

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

  .principle-card,
  .principle-card-accent {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
    padding: 1.1rem 0 1.5rem;
  }

  .principle-card-accent {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .principle-icon {
    margin: 1.8rem 0 1.3rem;
  }

  .signal-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .signal-card {
    gap: 2.6rem;
    padding: 2.1rem 1.2rem 2.3rem;
  }

  .signal-title h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .signal-explanation > p {
    font-size: 0.78rem;
  }

  .signal-formula {
    gap: 0.35rem;
  }

  .signal-formula span {
    font-size: 0.42rem;
    padding: 0.5rem 0.48rem;
  }

  .signal-formula i {
    font-size: 0.7rem;
  }

  .next-intro {
    gap: 1.8rem;
  }

  .next-aside {
    font-size: 0.73rem;
  }

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

  .next-card {
    min-height: 300px;
  }

  .final-cta {
    gap: 2.5rem;
    padding: 5rem 1rem 5.5rem;
  }

  .final-cta h2 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .cta-mark {
    left: auto;
    right: 0;
    top: -1rem;
  }

  .final-cta-copy p {
    font-size: 0.78rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.4rem 1rem 1.7rem;
  }

  .footer-center {
    order: 3;
  }
}

@media (max-width: 380px) {
  .language-trigger {
    gap: 0.3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

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

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

/* Home page lesson launchers */
.home-lessons {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(11, 16, 20, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 16, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: clamp(5.5rem, 10vw, 9.5rem) clamp(1.25rem, 7vw, 8.5rem);
}

.home-lesson-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.home-lesson-card {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 525px;
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.home-lesson-card:hover {
  box-shadow: 9px 10px 0 rgba(11, 16, 20, 0.16);
  transform: translateY(-6px);
}

.gradient-card {
  background: var(--orange);
  color: var(--ink);
}

.home-card-top,
.home-card-footer {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 0.52rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  z-index: 3;
}

.home-card-top > span:first-child {
  color: rgba(238, 242, 234, 0.48);
}

.gradient-card .home-card-top > span:first-child {
  color: rgba(11, 16, 20, 0.6);
}

.home-card-arrow {
  color: var(--mint);
  font-size: 1.45rem;
  transition: transform 180ms ease;
}

.gradient-card .home-card-arrow {
  color: var(--ink);
}

.home-lesson-card:hover .home-card-arrow {
  transform: translate(3px, -3px);
}

.home-card-copy {
  margin-top: 3.2rem;
  max-width: 360px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.home-card-copy h3 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 0.82;
  margin: 0;
  text-transform: uppercase;
}

.home-card-copy h3 em {
  color: var(--blue);
  font-style: normal;
}

.gradient-card .home-card-copy h3 em {
  color: var(--ink);
}

.home-card-copy p {
  color: rgba(238, 242, 234, 0.58);
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 1.35rem 0 0;
  max-width: 240px;
}

.gradient-card .home-card-copy p {
  color: rgba(11, 16, 20, 0.64);
}

.home-card-footer {
  border-top: 1px solid rgba(238, 242, 234, 0.2);
  color: rgba(238, 242, 234, 0.44);
  margin-top: auto;
  padding-top: 1rem;
}

.gradient-card .home-card-footer {
  border-color: rgba(11, 16, 20, 0.25);
  color: rgba(11, 16, 20, 0.58);
}

.card-link {
  align-items: center;
  background: var(--mint);
  color: var(--ink);
  display: inline-flex;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.gradient-card .card-link {
  background: var(--ink);
  color: var(--paper);
}

.card-link:hover,
.card-link:focus-visible {
  background: var(--paper);
}

.gradient-card .card-link:hover,
.gradient-card .card-link:focus-visible {
  background: var(--blue);
}

.embedding-card {
  background: #6544a7;
}

.attention-card {
  background: #91a9ff;
  color: var(--ink);
}

.embedding-card .home-card-top > span:first-child,
.attention-card .home-card-top > span:first-child {
  color: rgba(238, 242, 234, 0.62);
}

.attention-card .home-card-top > span:first-child {
  color: rgba(11, 16, 20, 0.62);
}

.embedding-card .home-card-arrow {
  color: #ffd58b;
}

.attention-card .home-card-arrow,
.attention-card .home-card-copy h3 em {
  color: var(--ink);
}

.embedding-card .home-card-copy h3 em {
  color: #ffd58b;
}

.embedding-card .home-card-copy p {
  color: rgba(238, 242, 234, 0.66);
}

.attention-card .home-card-copy p {
  color: rgba(11, 16, 20, 0.64);
}

.embedding-card .home-card-footer {
  border-color: rgba(238, 242, 234, 0.25);
  color: rgba(238, 242, 234, 0.54);
}

.attention-card .home-card-footer {
  border-color: rgba(11, 16, 20, 0.25);
  color: rgba(11, 16, 20, 0.58);
}

.embedding-card .card-link {
  background: #ffd58b;
}

.attention-card .card-link {
  background: var(--ink);
  color: var(--paper);
}

.embedding-card .card-link:hover,
.embedding-card .card-link:focus-visible {
  background: var(--paper);
}

.attention-card .card-link:hover,
.attention-card .card-link:focus-visible {
  background: var(--mint);
  color: var(--ink);
}

.ffn-card {
  background: #0f6972;
}

.ffn-card .home-card-arrow {
  color: var(--mint);
}

.ffn-card .home-card-copy h3 em {
  color: var(--mint);
}

.ffn-card .home-card-copy p {
  color: rgba(238, 242, 234, 0.68);
}

.ffn-card .home-card-footer {
  border-color: rgba(238, 242, 234, 0.25);
  color: rgba(238, 242, 234, 0.56);
}

.ffn-card .card-link {
  background: var(--mint);
}

.ffn-card .card-link:hover,
.ffn-card .card-link:focus-visible {
  background: var(--paper);
}

.block-card {
  background: #202b49;
}

.block-card .home-card-arrow,
.block-card .home-card-copy h3 em {
  color: #8fe7df;
}

.block-card .home-card-copy p {
  color: rgba(238, 242, 234, 0.66);
}

.block-card .home-card-footer {
  border-color: rgba(143, 231, 223, 0.28);
  color: rgba(238, 242, 234, 0.54);
}

.block-card .card-link {
  background: #8fe7df;
}

.block-card .card-link:hover,
.block-card .card-link:focus-visible {
  background: var(--mint);
}

.journey-card {
  background: #18282b;
  grid-column: 1 / -1;
  min-height: 440px;
}

.journey-card .home-card-arrow,
.journey-card .home-card-copy h3 em {
  color: var(--orange);
}

.journey-card .home-card-copy p {
  color: rgba(238, 242, 234, 0.66);
}

.journey-card .home-card-footer {
  border-color: rgba(255, 139, 103, 0.28);
  color: rgba(238, 242, 234, 0.54);
}

.journey-card .card-link {
  background: var(--orange);
}

.journey-card .card-link:hover,
.journey-card .card-link:focus-visible {
  background: var(--paper);
}

.home-ffn-preview,
.home-block-preview,
.home-journey-preview {
  bottom: 92px;
  height: 185px;
  left: 39%;
  pointer-events: none;
  position: absolute;
  right: 5%;
}

.home-ffn-preview {
  background: radial-gradient(circle at 48% 50%, rgba(185, 255, 85, 0.17), transparent 27%);
}

.ffn-line {
  background: linear-gradient(90deg, rgba(185, 255, 85, 0.65), rgba(135, 159, 255, 0.65), rgba(255, 139, 103, 0.65));
  height: 1px;
  left: 8%;
  position: absolute;
  transform-origin: left center;
  width: 56%;
}

.ffn-line-one {
  top: 36%;
  transform: rotate(-16deg);
}

.ffn-line-two {
  top: 51%;
}

.ffn-line-three {
  top: 66%;
  transform: rotate(16deg);
}

.ffn-point,
.ffn-output-point {
  border-radius: 50%;
  position: absolute;
}

.ffn-in-one,
.ffn-in-two {
  background: var(--mint);
  box-shadow: 0 0 18px rgba(185, 255, 85, 0.7);
  height: 12px;
  left: 7%;
  width: 12px;
}

.ffn-in-one {
  top: 30%;
}

.ffn-in-two {
  top: 63%;
}

.ffn-hidden-one,
.ffn-hidden-two,
.ffn-hidden-three {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(135, 159, 255, 0.65);
  height: 10px;
  left: 47%;
  width: 10px;
}

.ffn-hidden-one {
  top: 24%;
}

.ffn-hidden-two {
  top: 47%;
}

.ffn-hidden-three {
  top: 70%;
}

.ffn-output-point {
  background: var(--orange);
  box-shadow: 0 0 21px rgba(255, 139, 103, 0.8);
  height: 22px;
  right: 8%;
  top: 45%;
  width: 22px;
}

.ffn-caption {
  bottom: 8%;
  color: rgba(238, 242, 234, 0.52);
  font: 0.5rem var(--mono);
  letter-spacing: 0.08em;
  position: absolute;
  right: 5%;
  text-transform: uppercase;
}

.home-block-preview {
  background: radial-gradient(circle at 54% 50%, rgba(143, 231, 223, 0.14), transparent 31%);
}

.block-route {
  height: 2px;
  left: 4%;
  position: absolute;
  transform-origin: left center;
  width: 83%;
}

.block-route-main {
  background: linear-gradient(90deg, var(--mint), #8fe7df, var(--orange));
  top: 50%;
}

.block-route-skip {
  border-top: 1px dashed rgba(185, 255, 85, 0.7);
  height: 74%;
  left: 23%;
  top: 13%;
  transform: skewX(-26deg);
  width: 60%;
}

.block-node {
  align-items: center;
  background: #8fe7df;
  color: var(--ink);
  display: flex;
  justify-content: center;
  position: absolute;
}

.block-node-in,
.block-node-out {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.block-node-in {
  background: var(--mint);
  left: 3%;
  top: 47%;
}

.block-node-out {
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 139, 103, 0.65);
  right: 3%;
  top: 47%;
}

.block-node-attn,
.block-node-add,
.block-node-ffn {
  font: 0.48rem var(--mono);
  height: 46px;
  top: 37%;
  width: 60px;
}

.block-node-attn {
  left: 22%;
}

.block-node-add {
  background: var(--mint);
  left: 47%;
}

.block-node-ffn {
  background: var(--orange);
  left: 72%;
}

.home-journey-preview {
  align-items: center;
  display: flex;
  gap: clamp(0.45rem, 1.2vw, 1rem);
  justify-content: center;
  overflow: hidden;
}

.journey-step {
  border: 1px solid rgba(238, 242, 234, 0.3);
  color: var(--paper);
  font: 0.56rem var(--mono);
  padding: 0.75rem 0.7rem;
  position: relative;
  text-transform: uppercase;
}

.journey-text {
  border-color: var(--mint);
}

.journey-token {
  border-color: var(--blue);
}

.journey-attention {
  border-color: #8fe7df;
}

.journey-block {
  border-color: var(--orange);
}

.journey-next {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.home-journey-preview > i {
  color: var(--orange);
  font: 1.2rem var(--display);
}

.journey-baton {
  animation: journey-baton 3.6s ease-in-out infinite;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(185, 255, 85, 0.76);
  height: 9px;
  left: 8%;
  position: absolute;
  top: 25%;
  width: 9px;
}

@keyframes journey-baton {
  0%, 100% { left: 8%; }
  50% { left: 91%; }
}

.home-network-preview,
.home-gradient-preview,
.home-embedding-preview,
.home-attention-preview,
.home-ffn-preview,
.home-block-preview,
.home-journey-preview {
  bottom: 92px;
  height: 185px;
  left: 8%;
  pointer-events: none;
  position: absolute;
  right: 4%;
}

.home-embedding-preview,
.home-attention-preview,
.home-ffn-preview,
.home-block-preview,
.home-journey-preview {
  bottom: 93px;
  height: 176px;
  left: 8%;
  pointer-events: none;
  position: absolute;
  right: 7%;
}

.home-embedding-preview {
  background: radial-gradient(circle at 35% 48%, rgba(255, 213, 139, 0.22), transparent 24%), radial-gradient(circle at 73% 55%, rgba(185, 255, 85, 0.12), transparent 25%);
}

.home-ffn-preview,
.home-block-preview {
  left: 39%;
  right: 5%;
}

.home-journey-preview {
  left: 31%;
  right: 4%;
}

.embed-ring {
  border: 1px dashed rgba(255, 213, 139, 0.5);
  border-radius: 50%;
  display: block;
  position: absolute;
}

.embed-ring-one {
  height: 118px;
  left: 9%;
  top: 27px;
  transform: rotate(-22deg);
  width: 230px;
}

.embed-ring-two {
  border-color: rgba(185, 255, 85, 0.32);
  height: 86px;
  right: 5%;
  top: 46px;
  transform: rotate(26deg);
  width: 154px;
}

.embed-point {
  background: #ffd58b;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 213, 139, 0.12), 0 0 18px rgba(255, 213, 139, 0.52);
  height: 13px;
  position: absolute;
  width: 13px;
}

.embed-cat { left: 18%; top: 80px; }
.embed-dog { left: 38%; top: 55px; }
.embed-puppy { left: 48%; top: 112px; }
.embed-queen { background: var(--mint); box-shadow: 0 0 0 6px rgba(185, 255, 85, 0.1), 0 0 18px rgba(185, 255, 85, 0.42); right: 16%; top: 82px; }

.embed-label {
  color: rgba(238, 242, 234, 0.65);
  font-family: var(--mono);
  font-size: 0.5rem;
  position: absolute;
  text-transform: uppercase;
}

.embed-label-cat { left: 14%; top: 105px; }
.embed-label-dog { left: 35%; top: 44px; }
.embed-label-queen { color: var(--mint); right: 11%; top: 108px; }

.home-attention-preview {
  background: radial-gradient(circle at 50% 55%, rgba(11, 16, 20, 0.12), transparent 22%);
}

.attention-word {
  color: rgba(11, 16, 20, 0.62);
  font-family: var(--mono);
  font-size: 0.52rem;
  position: absolute;
  text-transform: uppercase;
}

.word-one { left: 7%; top: 45px; }
.word-two { left: 57%; top: 32px; }
.word-three { left: 70%; top: 125px; }

.attention-beam {
  background: rgba(11, 16, 20, 0.62);
  height: 1px;
  left: 20%;
  position: absolute;
  top: 83px;
  transform-origin: left center;
  width: 60%;
}

.beam-one { transform: rotate(-20deg); }
.beam-two { transform: rotate(7deg); }
.beam-three { transform: rotate(33deg); }

.attention-focus-dot {
  background: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(11, 16, 20, 0.1), 0 0 22px rgba(11, 16, 20, 0.35);
  height: 21px;
  left: 49%;
  position: absolute;
  top: 74px;
  width: 21px;
}

.home-network-preview {
  background: radial-gradient(circle at 53% 50%, rgba(135, 159, 255, 0.17), transparent 29%);
}

.home-network-preview::before,
.home-network-preview::after {
  border: 1px dashed rgba(238, 242, 234, 0.2);
  border-radius: 50%;
  content: '';
  height: 102px;
  left: 32%;
  position: absolute;
  top: 39px;
  width: 45%;
}

.home-network-preview::after {
  height: 58px;
  left: 1%;
  top: 61px;
  width: 20%;
}

.preview-line {
  background: linear-gradient(90deg, rgba(185, 255, 85, 0.25), rgba(185, 255, 85, 0.8), rgba(135, 159, 255, 0.45));
  height: 1px;
  position: absolute;
  transform-origin: left center;
  width: 42%;
}

.line-one { left: 7%; top: 54px; transform: rotate(-11deg); }
.line-two { left: 7%; top: 89px; transform: rotate(7deg); }
.line-three { left: 7%; top: 124px; transform: rotate(24deg); }

.home-network-preview i,
.home-network-preview b,
.home-network-preview strong {
  border-radius: 50%;
  display: block;
  height: 12px;
  position: absolute;
  width: 12px;
}

.home-network-preview i {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(185, 255, 85, 0.08), 0 0 18px rgba(185, 255, 85, 0.42);
  left: 5%;
}

.home-network-preview i:nth-of-type(1) { top: 48px; }
.home-network-preview i:nth-of-type(2) { top: 83px; }
.home-network-preview i:nth-of-type(3) { top: 118px; }

.home-network-preview b {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(135, 159, 255, 0.08), 0 0 18px rgba(135, 159, 255, 0.35);
  left: 48%;
  top: 76px;
}

.home-network-preview b:nth-of-type(2) {
  left: 65%;
  top: 121px;
}

.home-network-preview strong {
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 139, 103, 0.09), 0 0 21px rgba(255, 139, 103, 0.42);
  height: 19px;
  right: 5%;
  top: 83px;
  width: 19px;
}

.home-gradient-preview {
  bottom: 113px;
  height: 165px;
  left: 8%;
  right: 8%;
}

.home-gradient-preview svg {
  height: 100%;
  overflow: visible;
  width: 100%;
}

.mini-grid {
  fill: none;
  stroke: rgba(11, 16, 20, 0.16);
  stroke-dasharray: 2 5;
  stroke-width: 1;
}

.mini-valley {
  fill: none;
  stroke: rgba(11, 16, 20, 0.8);
  stroke-dasharray: 3 6;
  stroke-width: 2;
}

.home-gradient-preview circle {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 2;
}

.home-gradient-preview .mini-dot-two {
  fill: var(--blue);
  stroke: var(--ink);
  stroke-width: 1;
}

.home-gradient-preview > span {
  color: rgba(11, 16, 20, 0.55);
  font-family: var(--mono);
  font-size: 0.48rem;
  left: 1%;
  letter-spacing: 0.1em;
  position: absolute;
  text-transform: uppercase;
  top: 6%;
}

.home-gradient-preview > strong {
  bottom: 2%;
  color: var(--ink);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  position: absolute;
  right: 6%;
}

@media (max-width: 820px) {
  .home-card-copy {
    margin-top: 2.5rem;
  }

  .home-lesson-grid {
    grid-template-columns: 1fr;
  }

  .home-lesson-card {
    min-height: 460px;
  }

  .journey-card {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .home-lessons {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-lesson-grid {
    grid-template-columns: 1fr;
  }

  .home-lesson-card {
    min-height: 460px;
  }

  .home-card-copy h3 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .home-network-preview,
  .home-gradient-preview,
  .home-embedding-preview,
  .home-attention-preview,
  .home-ffn-preview,
  .home-block-preview,
  .home-journey-preview {
    bottom: 92px;
    height: 150px;
  }

  .home-ffn-preview,
  .home-block-preview,
  .home-journey-preview {
    left: 8%;
    right: 4%;
  }

  .home-journey-preview {
    gap: 0.35rem;
  }

  .journey-step {
    font-size: 0.47rem;
    padding: 0.6rem 0.4rem;
  }

  .home-card-footer {
    align-items: flex-end;
    gap: 0.7rem;
  }

  .home-card-footer > span {
    font-size: 0.42rem;
    line-height: 1.45;
  }

  .card-link {
    font-size: 0.48rem;
    padding: 0.62rem 0.55rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .home-card-copy h3 {
    font-size: clamp(2.9rem, 14.5vw, 4.2rem);
  }
}
