/* ============================================================
   DigitalYogi — site styles on the shared design system
   (same tokens as Learn and KB: ground / raised / ink / muted /
   line, indigo fields, Manrope + JetBrains Mono, light + dark).
   The #c81e3a bindu is reserved for the logo.
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ground: #fff;
  --raised: #f4f3ef;
  --ink: #0b0d12;
  --muted: #5a5f6b;
  --line: #e2e0da;
  --card: #fff;
  --button: #1f1a4d;
  --button-ink: #fff;
  --indigo: #1f1a4d;
  --indigo-line: #3a3478;
  --indigo-soft: #b9b4e0;
  /* KB track colours */
  --lld: #0f172a;
  --hld: #0f766e;
  --ai: #0369a1;
  --dsa: #b45309;
  --font: 'Manrope', system-ui, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0b0d12; --raised: #16191f; --ink: #fff; --muted: #a0a6b0; --line: #262a33;
    --card: #16191f; --button: #fff; --button-ink: #0b0d12;
    --lld: #38bdf8; --hld: #2dd4bf; --ai: #f472b6; --dsa: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ground: #0b0d12; --raised: #16191f; --ink: #fff; --muted: #a0a6b0; --line: #262a33;
  --card: #16191f; --button: #fff; --button-ink: #0b0d12;
  --lld: #38bdf8; --hld: #2dd4bf; --ai: #f472b6; --dsa: #fbbf24;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.3vw, 46px); }
h3 { font-size: 22px; letter-spacing: -0.03em; }
/* The brand's two-tone headline: second line in muted ink, same family. */
h1 em, h2 em { font-style: normal; color: var(--muted); }
h1 em { display: inline; }

.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; line-height: 1.7; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); margin-bottom: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 200; background: var(--ground); padding: 10px 14px; font-weight: 700; font-size: 13px; }
.skip:focus { top: 10px; }

/* ---------- Buttons & links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; background: var(--button); color: var(--button-ink); padding: 16px 23px; border-radius: 5px; font-size: 13px; font-weight: 700; line-height: 1.5; transition: transform 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.button.small { padding: 11px 17px; gap: 18px; }
.button.light { background: #fff; color: var(--indigo); }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); padding: 5px 0; transition: border-color 0.2s ease, gap 0.25s var(--ease); }
.text-link:hover { border-color: var(--ink); gap: 20px; }
.light-link { color: #fff; border-color: var(--indigo-line); }
.light-link:hover { border-color: #fff; }
.fine { font-size: 11px; color: var(--muted); line-height: 1.8; max-width: 450px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 80px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 27px; letter-spacing: -1.3px; line-height: 1; font-weight: 400; white-space: nowrap; }
.wordmark strong { font-weight: 700; }
.dy-i { position: relative; display: inline-block; }
.dy-dot { position: absolute; width: 0.16em; height: 0.16em; background: #c81e3a; border-radius: 50%; left: 50%; top: 0.03em; transform: translateX(-50%); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.theme-toggle { border: 0; background: none; cursor: pointer; display: flex; gap: 7px; align-items: center; font-size: 12px; min-height: 44px; padding: 0; }
.theme-toggle > span:first-child { font-size: 20px; line-height: 1; }
.theme-toggle[hidden] { display: none; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu-button span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-button span:first-child { top: 18px; }
.menu-button span:last-child { top: 24px; }
.menu-button[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 10px 24px 24px; display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.mobile-menu .button { margin-top: 18px; border: 0; justify-content: space-between; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 80px 84px; }
.hero h1 { font-size: clamp(40px, 4vw, 58px); line-height: 1.07; letter-spacing: -0.055em; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 560px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hero-facts strong { color: var(--ink); font-weight: 700; margin-right: 3px; }

/* The indigo field that holds the Three.js scene. */
.hero-visual { position: relative; display: flex; flex-direction: column; background: var(--indigo); color: #fff; border: 1px solid var(--indigo-line); border-radius: 9px; box-shadow: 14px 18px 0 var(--raised); overflow: hidden; aspect-ratio: 1 / 0.92; min-height: 380px; isolation: isolate; }
.visual-heading { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--indigo-line); }
.visual-heading .mono { font-size: 9px; color: var(--indigo-soft); }
.visual-heading .status { font-size: 9px; color: var(--indigo-soft); display: inline-flex; align-items: center; gap: 8px; }
.status .live { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: live 2.4s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hero-scene { position: absolute; inset: 0; z-index: 1; }
#hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
#hero-scene.is-ready { opacity: 1; }
.scene-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.node-label { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 1px; opacity: 0; white-space: nowrap; will-change: transform, opacity; }
.node-label b { font-size: 11.5px; font-weight: 700; color: #fff; padding: 2px 9px; border: 1px solid var(--indigo-line); border-radius: 999px; background: rgba(11, 13, 18, 0.55); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.node-label small { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-soft); }
.node-label.is-hot b { border-color: #fff; box-shadow: 0 0 18px -4px rgba(255, 255, 255, 0.7); }
.scene-fallback { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 10px; padding: 24px; font-family: var(--mono); font-size: 11px; transition: opacity 0.8s ease; }
.scene-fallback span { padding: 10px 12px; border: 1px solid var(--indigo-soft); border-radius: 4px; }
.scene-fallback i { font-style: normal; color: var(--indigo-soft); }
.hero.scene-ready .scene-fallback { opacity: 0; }
.scene-cta { position: relative; z-index: 3; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--indigo-line); font-size: 12.5px; font-weight: 700; background: rgba(31, 26, 77, 0.6); }
.scene-cta span:last-child { transition: transform 0.25s var(--ease); }
.scene-cta:hover span:last-child { transform: translateX(4px); }

.topic-strip { border-bottom: 1px solid var(--line); }
.topic-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; font-size: 10.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.course, .courses, .cta-band, .alt { background: var(--raised); }
.section-heading { max-width: 760px; margin-bottom: clamp(36px, 4vw, 48px); }
.section-heading.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 24px 60px; align-items: end; }
.section-lede { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 56ch; margin-top: 18px; }
.heading-side .section-lede { margin-top: 0; }
.heading-side .text-link { margin-top: 18px; }

/* The way */
.way-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.steps li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no { color: var(--muted); font-size: 9px; padding-top: 6px; }
.steps h3 { font-size: 20px; }
.steps li > p { grid-column: 2; color: var(--muted); font-size: 14px; }
.code-card { margin: 0; background: #0b0d12; color: #fff; border: 1px solid var(--indigo-line); border-radius: 7px; overflow: hidden; box-shadow: 14px 18px 0 var(--raised); }
.code-card figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #262a33; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #a0a6b0; }
.code-card .mono { margin-left: auto; color: #a0a6b0; font-size: 9px; text-transform: none; }
.code-card pre { margin: 0; padding: 18px 20px; font: 12px/2 var(--mono); overflow: auto; }
.c-muted { color: #a0a6b0; }
.c-key { color: var(--indigo-soft); }
.code-note { padding: 0 20px 20px; font-size: 12.5px; color: #a0a6b0; line-height: 1.7; }

/* Course */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts li { border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px; color: var(--muted); font-size: 10px; background: var(--card); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.syllabus { background: var(--card); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.syllabus-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.syllabus ol li { border-bottom: 1px solid var(--line); }
.syllabus ol a, .syllabus ol .row { display: flex; align-items: center; gap: 18px; padding: 15px 22px; }
.syllabus ol a { transition: background-color 0.2s ease; }
.syllabus ol a:hover { background: var(--raised); }
.syllabus .num { color: var(--muted); font-size: 9px; width: 18px; flex: none; }
.syllabus .lesson { display: grid; gap: 2px; flex: 1; min-width: 0; }
.syllabus .lesson strong { font-size: 14px; letter-spacing: -0.015em; line-height: 1.4; }
.syllabus .lesson small { font-size: 11.5px; color: var(--muted); }
.syllabus-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 22px; }
.outcomes { background: var(--indigo); color: #fff; border: 1px solid var(--indigo-line); border-radius: 7px; padding: 28px; }
.outcomes .muted { color: var(--indigo-soft); font-size: 9px; }
.outcomes ul { margin-top: 18px; display: grid; gap: 14px; }
.outcomes li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.65; }
.outcomes li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 10px; height: 1px; background: var(--indigo-soft); }
.outcomes-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--indigo-line); font-size: 12px; color: var(--indigo-soft); }

/* Practice tracks (colours match KB) */
.practice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.track-card { --track: var(--lld); display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--track); border-radius: 7px; transition: transform 0.25s var(--ease), border-color 0.25s ease; }
.practice-grid > :nth-child(2) { --track: var(--hld); }
.practice-grid > :nth-child(3) { --track: var(--ai); }
.practice-grid > :nth-child(4) { --track: var(--dsa); }
a.track-card:hover, .glow-card:hover { transform: translateY(-3px); }
.track-card .mono { color: var(--track); font-size: 9px; }
.track-card h3 { font-size: 18px; margin: 14px 0 8px; }
.track-card p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.track-link { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 700; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.examples li { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { display: flex; align-items: baseline; gap: 10px; }
.stats strong { font-size: 30px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stats span { font-size: 9px; color: var(--muted); max-width: 14ch; line-height: 1.5; }
.stats p { margin-left: auto; font-size: 12.5px; color: var(--muted); max-width: 36ch; }

/* Course cards (brand art colours) */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.course-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--card); transition: transform 0.25s var(--ease); }
.course-art { height: 205px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: #12324a; }
.art-2 { background: #2a2f3a; }
.art-3 { background: var(--indigo); }
.art-4 { background: #0b0d12; }
.course-art .mono { color: var(--indigo-soft); font-size: 9px; }
.art-caption { font-size: 11px; color: var(--indigo-soft); }
.art-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.art-flow span { padding: 9px 11px; border: 1px solid var(--indigo-soft); border-radius: 4px; font: 10.5px var(--mono); }
.art-flow i, .art-stream i { font-style: normal; color: var(--indigo-soft); }
.art-stream { display: flex; gap: 15px; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; }
.art-stream strong { border: 1px solid #a0a6b0; border-radius: 4px; padding: 8px 12px; font-weight: 400; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.course-body .eyebrow { font-size: 9px; margin-bottom: 14px; }
.course-body h3 { font-size: 24px; }
.course-body > p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 16px 0 22px; }
.course-body .text-link { margin-top: auto; align-self: flex-start; }

/* Vision */
.vision-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: start; }
.vision-statement { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.5; margin-top: 26px; max-width: 30ch; }
.vision-copy > p:not(.eyebrow):not(.vision-statement) { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 52ch; }
.vision-copy .text-link { margin-top: 26px; }
.vision-side { display: grid; gap: 16px; }
.topics-card { background: var(--raised); border: 1px solid var(--line); border-radius: 7px; padding: 22px 24px; }
.topics-card .muted { font-size: 9px; }
.topics-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.topics-card li { font-size: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 30px; background: var(--card); }
.big-number { margin-top: 10px; font-size: 32px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; }
.big-number span { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.author-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.author-links a { font-size: 12.5px; font-weight: 700; }
.author-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro .text-link { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 14px; height: 14px; margin-top: 6px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 14.5px; }

/* Closing — the brand's indigo band */
.closing { background: var(--indigo); color: #fff; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 56px; }
.closing .eyebrow { color: var(--indigo-soft); margin-bottom: 12px; }
.closing h2 { font-size: clamp(28px, 3vw, 40px); }
.closing h2 em { color: var(--indigo-soft); }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 48px; padding-block: 56px 40px; }
.site-footer .wordmark { font-size: 23px; }
.footer-tagline { margin-top: 14px; font-size: 12px; color: var(--muted); max-width: 28ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav > div { display: grid; align-content: start; gap: 8px; }
.footer-nav .muted { font-size: 9px; margin-bottom: 4px; }
.footer-nav a { font-size: 12.5px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px 30px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.footer-bottom .mono { font-size: 9px; }

/* ---------- Sub-pages ---------- */
.page-hero { border-bottom: 1px solid var(--line); padding-block: 56px 80px; }
.crumbs { margin-bottom: 30px; color: var(--muted); font-size: 9.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.6; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-title { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.055em; max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }
.plain-page { min-height: 62vh; display: grid; align-content: center; }

.two-col { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.two-col .section-heading { margin-bottom: 0; position: sticky; top: 112px; }
.prose p { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 64ch; }
.prose p + p { margin-top: 18px; }
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.method.stack { grid-template-columns: minmax(0, 1fr); }
.method li { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 24px; }
.method .mono { color: var(--muted); font-size: 9px; }
.method h3 { font-size: 20px; margin: 16px 0 8px; }
.method p { font-size: 14px; color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.offer.dark { background: var(--indigo); color: #fff; border-color: var(--indigo-line); }
.offer .mono { color: var(--muted); font-size: 9px; }
.offer.dark .mono { color: var(--indigo-soft); }
.offer h3 { font-size: 30px; margin: 16px 0 10px; }
.offer p { font-size: 14.5px; color: var(--muted); }
.offer.dark p { color: var(--indigo-soft); }
.offer ul { margin: 20px 0 26px; display: grid; gap: 10px; }
.offer li { position: relative; padding-left: 22px; font-size: 14px; }
.offer li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: currentColor; opacity: 0.5; }
.offer .button { margin-top: auto; align-self: flex-start; }
.offer.dark .button { background: #fff; color: var(--indigo); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(26px, 2.8vw, 36px); max-width: 24ch; }
.cta-band .actions { margin-top: 0; }
.proof { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.proof div { display: flex; align-items: baseline; gap: 10px; }
.proof strong { font-size: 30px; letter-spacing: -0.05em; line-height: 1; }
.proof span { font-size: 9px; color: var(--muted); max-width: 16ch; }

/* Legal */
.legal { padding-block: 64px 96px; }
.legal .page-title { font-size: clamp(36px, 4.5vw, 56px); }
.legal .lede { margin-top: 18px; max-width: 70ch; }
.legal h2 { margin: 38px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.legal p, .legal li { max-width: 760px; line-height: 1.75; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal b { color: var(--ink); }
.legal ul { padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
.will-reveal { opacity: 0; transform: translateY(16px); }
.will-reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hero .reveal { animation: hero-in 0.8s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: 0.07s; }
.hero .reveal:nth-child(3) { animation-delay: 0.14s; }
.hero .reveal:nth-child(4) { animation-delay: 0.21s; }
.hero .reveal:nth-child(5) { animation-delay: 0.28s; }
.hero-visual.reveal { animation-delay: 0.18s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 56px); }
  .hero-inner { gap: 40px; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav, .header-actions > .button { display: none; }
  .menu-button { display: block; }
  .hero-inner, .way-grid, .course-layout, .vision-grid, .faq-grid, .two-col, .offer-grid, .section-heading.split, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 48px 64px; }
  .hero-visual { box-shadow: 8px 10px 0 var(--raised); min-height: 340px; }
  .faq-intro, .two-col .section-heading { position: static; }
  .method { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; }
  .wordmark { font-size: 24px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 15.5px; }
  .hero .button, .syllabus-foot .button { width: 100%; justify-content: space-between; }
  .hero-visual { aspect-ratio: auto; height: 360px; }
  .topic-strip .wrap { justify-content: flex-start; font-size: 9.5px; }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .steps li > p { grid-column: 1; }
  .practice-grid, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats p { margin-left: 0; }
  .course-art { height: 190px; }
  .course-body, .offer { padding: 24px; }
  .theme-toggle .theme-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .will-reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero-scene, .closing { display: none !important; }
}
