@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/mulish-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/mulish-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --night: #03051c;
  --black: #00072d;
  --navy: #051650;
  --royal: #0a2472;
  --blue: #123499;
  --iris: #142de0;
  --ink: #dce1f3;
  --muted: #a4aed1;
  --signal: #a4b7ff;
  --surface-quiet: #081239;
  --surface-panel: #101f54;
  --surface-raised: #1b3275;
  --surface-hover: #25448d;
  --surface-selected: #2c4bb3;
  --focus-surface: #eff2ff;
  --focus-ink: var(--black);
  --header-height: 69px;
  --header-offset: var(--header-height);
  --gutter: clamp(20px, 5.35vw, 84px);
  --curve: cubic-bezier(.2,.8,.25,1);
  --font-heading: Mulish, sans-serif;
  --font-body: Inter, sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 16px); }
body { margin: 0; background: var(--night); color: var(--ink); font: 500 1rem/1.6 var(--font-body); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.055; font-weight: 700; }
:focus-visible { outline: none; }
::selection { color: var(--night); background: var(--signal); }
.wrap { width: min(1350px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { color: var(--muted); font: 500 .73rem/1.45 var(--font-body); text-transform: uppercase; letter-spacing: .12em; }
.skip-link { position: fixed; z-index: 30; top: 10px; left: var(--gutter); transform: translateY(-180%); background: var(--ink); color: var(--night); padding: 10px 18px; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header {
  position: sticky; z-index: 10; top: 0; isolation: isolate;
  background: #0b1744f2;
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
}
.header-inner { display: flex; align-items: center; gap: clamp(22px,4vw,61px); min-height: var(--header-height); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; padding: 6px; margin-inline-start: -6px; border-radius: 7px; font-family: var(--font-heading); font-weight: 800; letter-spacing: .18em; font-size: .9rem; flex: 0 0 auto; }
.wordmark-symbol {
  width: 24px; height: 24px; flex: none;
  background: url("assets/icon.png") center / 125%;
  mix-blend-mode: screen;
}
.navigation { display: flex; align-items: center; gap: clamp(9px,2.1vw,30px); }
.navigation a, .footer nav a { color: var(--muted); padding: 7px 8px; border-radius: 7px; font-size: .88rem; transition: background-color .25s, color .25s; }
.navigation a:hover, .footer nav a:hover { color: var(--ink); background: var(--surface-panel); }
.header-cta { margin-left: auto; white-space: nowrap; }
.menu-button { color: var(--ink); background: var(--surface-raised); border-radius: 999px; min-height: 44px; padding: 0 14px; font-size: .86rem; }
.menu-button[aria-expanded="true"] { background: var(--surface-selected); color: #f0f3ff; }
.menu-button span {
  width: 13px; height: 13px; display: inline-block; margin-left: 5px; vertical-align: -2px;
  background: radial-gradient(circle at center, currentColor 0 1.45px, transparent 1.6px) 0 0 / 6px 6px;
  transition: transform .2s;
}
.menu-button[aria-expanded="true"] span { transform: rotate(45deg); }
.reading-fill {
  position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--surface-raised) 72%, transparent);
  transform: scaleX(var(--reading,0)); transform-origin: left; opacity: .44; pointer-events: none;
}
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  padding: .69rem 1.15rem; min-height: 47px;
  background: var(--surface-raised); color: var(--ink); border-radius: 999px;
  font: 690 .9rem/1.2 var(--font-body); text-align: center;
  transition: background-color .24s, color .24s, transform .24s var(--curve);
}
.button:hover, .menu-button:hover { background: var(--surface-hover); color: #f0f3ff; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--ink); color: var(--navy); }
.button-primary:hover { background: #b9c6f7; color: var(--night); }
.button-quiet { background: var(--surface-panel); }
.button-quiet:hover { background: var(--surface-raised); }
.button-small { min-height: 41px; font-size: .83rem; padding: .55rem .9rem; }
.play-icon { display: inline-block; width: 10px; height: 11px; flex: none; background: currentColor; clip-path: polygon(5% 0, 100% 50%, 5% 100%); }

.hero { position: relative; isolation: isolate; overflow: clip; background: var(--night); }
.hero-art, .hero-floor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art { overflow: hidden; }
.portrait { position: absolute; inset: -5% 0 -10% 12%; display: block; -webkit-mask-image: linear-gradient(to right, transparent, #000 37%); mask-image: linear-gradient(to right, transparent, #000 37%); }
.portrait img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 30%; opacity: .93; }
.hero-glow {
  position: absolute; top: -49%; left: -21%; width: min(76vw,1200px); aspect-ratio: 1.19;
  transform: rotate(-27deg);
  background: radial-gradient(ellipse at 57% 61%, #2545c485, #12349944 37%, transparent 70%);
}
.hero-floor {
  z-index: -1;
  background: linear-gradient(90deg,#03051cf2 0%,#03051cca 27%,#03051c00 73%), linear-gradient(0deg,#03051c 1%,#03051c07 36%), linear-gradient(270deg,#03051ca0,transparent 19%);
}
.hero-layout { min-height: clamp(636px,83svh,825px); display: flex; justify-content: space-between; align-items: flex-end; padding-block: clamp(48px,8svh,100px) clamp(56px,9svh,105px); gap: 20px; }
.hero-content { position: relative; z-index: 1; }
.hero-mark { position: relative; display: grid; align-items: center; width: max-content; margin-bottom: clamp(17px,2.8svh,27px); }
.dotmark { width: clamp(146px,18.2vw,248px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(7,1fr); grid-template-rows: repeat(7,1fr); align-items: center; justify-items: center; }
.dotmark img { width: 90%; mix-blend-mode: screen; grid-area: 1/1/-1/-1; }
.dotmark b { display: block; width: 49%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.dotmark b:nth-child(4n) { background: #a4b7ff; }
.hero-eyebrow { margin-bottom: 17px; color: #c5ceec; }
.hero h1 { font-size: clamp(3.08rem,5.5vw,5.45rem); line-height: 1.02; letter-spacing: -.06em; text-transform: uppercase; }
.hero-title-line { display: block; }
.hero-title-line > b { display: block; font-weight: inherit; }
.hero-title-line:last-child { color: #a4b7ff; }
.title-words { display: inline-grid; vertical-align: baseline; padding-bottom: .11em; overflow: clip; }
.title-word { display: block; grid-area: 1 / 1; visibility: hidden; }
.title-word[data-state="on"], .title-word[data-state="out"] { visibility: visible; }
.title-word i { display: inline-block; font-style: normal; }
.motion .title-word[data-state="on"] i { animation: title-letter-in .63s var(--curve) both; animation-delay: calc(var(--glyph-index) * 31ms); }
.motion .title-word[data-state="out"] i { animation: title-letter-out .44s ease-in both; animation-delay: calc(var(--glyph-index) * 17ms); }
.hero-intro { max-width: 31rem; color: #bfc9e6; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.catalog { position: relative; padding-block: 66px 76px; isolation: isolate; background: var(--surface-quiet); }
.section-heading { display: grid; align-items: end; grid-template-columns: minmax(0,1fr) minmax(220px,300px); gap: 34px; margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2, .closing h2 { font-size: clamp(2.18rem,4.45vw,4.05rem); letter-spacing: -.059em; text-transform: uppercase; }
.section-heading > p { color: var(--muted); line-height: 1.52; }
.workflow {
  --scene-top: calc(var(--header-height) + 14px);
  --run: clamp(530px,91svh,780px);
  padding: 63px 0 calc(58px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, var(--night), #03051c46 30%, #03051c32 64%, var(--night)),
    linear-gradient(90deg, #03051ce0, #03051c64 78%),
    url("assets/optics-small.webp") center / cover no-repeat var(--night);
}
.workflow-heading { margin-bottom: 24px; }
.scene { position: relative; display: grid; grid-template-rows: auto 1fr; isolation: isolate; }
.scene-art { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.scene-particles {
  position: absolute; right: 0; top: 50%; width: min(100%, 870px); height: min(100%, 600px);
  transform: translateY(-50%);
}
.scene-canvas { display: block; width: 100%; height: 100%; }
.scene-body { display: grid; align-content: center; padding-block: clamp(27px,4vw,58px) 0; min-width: 0; }
.stage-panel { display: grid; grid-area: 1 / 1; grid-template-columns: .92fr 1.08fr; gap: clamp(30px,7vw,114px); align-items: center; min-width: 0; }
.stage-panel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.stage-copy { padding: 10px; margin: -10px; border-radius: 8px; }
.stage-copy h3 { font-size: clamp(2.52rem,4.6vw,4.64rem); letter-spacing: -.062em; }
.stage-copy p { color: #bdc9ee; max-width: 25rem; margin-top: 16px; }
.stage-object { max-width: 440px; width: 100%; min-width: 0; justify-self: center; }
.sample-window {
  width: 100%; padding: clamp(10px,1.95vw,22px);
  border-radius: 12px;
  background: var(--surface-raised);
}
.sample-top { color: #d0d9fb; font: 500 .77rem/1.3 var(--font-body); padding: 1px 0 12px; }
.file-row { padding: 10px; margin-top: 6px; display: flex; align-items: center; gap: 10px; background: var(--surface-quiet); border-radius: 6px; }
.extension { font: 600 .66rem/1 var(--font-body); border-radius: 4px; min-width: 40px; padding: 7px 4px; text-align: center; background: var(--surface-hover); }
.file-row b { display: block; font-size: .88rem; line-height: 1.3; font-weight: 670; }
.file-row small { display: block; font-size: .78rem; color: #a4aed1; margin-top: 2px; }
.syllabus { margin: 0; padding: 0; display: grid; gap: 5px; list-style: none; counter-reset: lesson-list; }
.syllabus li { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 6px; background: var(--surface-quiet); font-size: .9rem; counter-increment: lesson-list; }
.syllabus li::before { content: "0" counter(lesson-list); font: 520 .74rem/1 var(--font-body); color: var(--signal); }
.preview-course {
  min-height: 182px; display: grid; justify-items: start; align-content: center; gap: 6px; padding: 15px 16px;
  border-radius: 7px;
  background: linear-gradient(90deg,#03051c 0%,#00072d62 100%),url("assets/studio.webp") 50% 42% / cover no-repeat;
}
.preview-course small { color: #bbc9fa; font: 550 .75rem/1.2 var(--font-body); }
.preview-course b { font-family: var(--font-heading); font-size: clamp(1.18rem,2.15vw,2.15rem); line-height: 1.08; letter-spacing: -.04em; }
.preview-course .button { margin-top: 6px; }
.stage-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.stage-controls button {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 50px; min-width: 0; border-radius: 8px; background: var(--surface-panel); color: var(--muted); padding: 7px 12px;
  font-size: clamp(.8rem,1.1vw,.97rem); font-weight: 650; transition: background-color .24s, color .24s;
}
.stage-controls button:hover { color: var(--ink); background: var(--surface-raised); }
.stage-controls button[aria-selected="true"] { color: #f0f3ff; background: var(--surface-selected); }
.stage-controls span { font: 500 .75rem/1 var(--font-body); color: var(--signal); }
.stage-controls button[aria-selected="true"] span { color: var(--ink); }

.workspace { position: relative; isolation: isolate; overflow: clip; background: var(--surface-quiet); }
.workspace-image { position: absolute; z-index: -2; inset: 0; }
.workspace-image img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 53%; opacity: .78; }
.workspace:before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg,#03051c 3%,transparent 41%,#03051c5a 66%,#03051ce8 100%),linear-gradient(90deg,#03051cb8,#03051c14 66%);
}
.workspace-inner { padding-block: 55px 29px; }
.workspace-heading { margin-bottom: 31px; }
.workspace-heading > p { color: #c5ceec; }
.closing { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; padding-top: 43px; }
.closing h2 { font-size: clamp(2.08rem,3.55vw,3.3rem); }
.closing p { margin-top: 9px; color: #bbc9ef; }
.closing .button { min-width: 170px; }
.closing .button-primary { background: var(--iris); color: #f0f3ff; }
.closing .button-primary:hover { background: #2842ef; }
.footer { background: var(--surface-quiet); }
.footer-inner { display: flex; align-items: center; gap: clamp(20px,4vw,56px); padding-block: 20px max(20px,env(safe-area-inset-bottom)); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 19px; }
.footer small { margin-left: auto; color: var(--muted); font: 500 .74rem/1.25 var(--font-body); white-space: nowrap; }

body:has(.dialog[open]) { overflow: hidden; }
.dialog {
  padding: 0; color: var(--ink); max-width: min(760px,calc(100% - 34px)); max-height: min(84dvh,790px);
  width: 100%; background: var(--surface-panel); border: 0; border-radius: 16px;
  overflow: hidden;
}
.lesson-content { max-height: inherit; overflow: auto; overscroll-behavior: contain; }
.dialog::backdrop { background: #03051cdd; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.dialog[open] { animation: dialog-in .42s var(--curve) both; }
.dialog[open]::backdrop { animation: backdrop-in .42s ease both; }
.close-dialog {
  position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 43px; height: 43px;
  border-radius: 50%; padding: 0; background: var(--surface-raised); font: 400 1.52rem/1 var(--font-body);
}
.close-dialog:hover { background: var(--surface-hover); }
.lesson-content { padding: 37px clamp(20px,4vw,40px) 30px; }
.lesson-content h2, .lesson-content h3 { font-size: clamp(1.85rem,4vw,2.8rem); letter-spacing: -.052em; margin-block: 12px 15px; }
.lesson-page p { color: #c5ceec; }
.lesson-dialog { max-width: min(565px,calc(100% - 34px)); }
.lesson-content { position: relative; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; padding-right: 39px; gap: 12px; }
.lesson-top span {
  color: var(--ink); padding: 7px 9px; border-radius: 6px; font: 500 .77rem/1 var(--font-body);
  position: relative; isolation: isolate; overflow: hidden; background: var(--surface-quiet);
}
.lesson-top span::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-selected);
  transform-origin: left; transform: scaleX(var(--lesson-progress,.333)); transition: transform .4s var(--curve);
}
.lesson-page { min-height: 205px; padding-top: 10px; }
.lesson-page:not([hidden]) { animation: stage-copy-in .45s var(--curve) both; }
.lesson-answers { padding: 0; border: 0; margin: 0; }
.lesson-answers label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 11px; margin-bottom: 7px; border-radius: 8px; background: var(--surface-quiet); cursor: pointer; }
.lesson-answers label:hover { background: var(--surface-raised); }
.lesson-answers label:has(:checked) { background: var(--surface-selected); }
.lesson-answers input {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; width: 16px; height: 16px;
  border-radius: 50%; background: #667dca; flex: none; cursor: pointer;
}
.lesson-answers input:checked { background: var(--ink); }
.lesson-feedback { font-size: .9rem; min-height: 1.8em; padding-block: 6px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 15px; }

:is(.wordmark,.menu-button,.button,.close-dialog):focus-visible,.navigation a:focus-visible,.footer nav a:focus-visible,.stage-controls button[aria-selected]:focus-visible,.stage-panel:focus-visible .stage-copy,.lesson-answers label:has(:focus-visible) {
  background: var(--focus-surface);
  color: var(--focus-ink);
}
.wordmark:focus-visible .wordmark-symbol { mix-blend-mode: normal; filter: brightness(0); }
.button-primary:focus-visible, .skip-link:focus-visible { background: var(--surface-selected); color: #f0f3ff; }
.closing .button-primary:focus-visible { background: var(--focus-surface); color: var(--focus-ink); }
.stage-controls button:focus-visible span,
.stage-panel:focus-visible .stage-copy p { color: var(--focus-ink); }
.lesson-answers label:has(:focus-visible) input { background: var(--surface-selected); }
.lesson-answers label:has(:focus-visible) input:checked { background: var(--focus-ink); }

.motion .dotmark b { animation: dot-arrive .94s var(--curve) both; animation-delay: var(--dot-delay); }
.motion .hero-glow { animation: glow-in 1.55s var(--curve) both; }
.motion .hero-title-line > b { animation: title-in 1.05s var(--curve) both; animation-delay: var(--title-delay,.26s); }
.motion .hero-title-line:nth-child(2) { --title-delay: .34s; }
.motion .hero-title-line:nth-child(3) { --title-delay: .42s; }
.motion .portrait { animation: portrait-in 1.45s var(--curve) both; }
.motion .hero-eyebrow, .motion .hero-intro, .motion .hero-actions { animation: stage-copy-in .75s var(--curve) both; }
.motion .hero-intro { animation-delay: .55s; }
.motion .hero-actions { animation-delay: .65s; }
.motion .stage-panel.stage-enter { animation: stage-fade .24s ease-out both; }
.motion [data-reveal].awaiting { transform: translateY(21px); opacity: .15; }
.motion [data-reveal] { transition: transform .72s var(--curve),opacity .7s var(--curve); }
@media (min-width: 933px) and (min-height: 680px) {
  .workflow { --scene-height: clamp(470px,70svh,630px); }
  .motion .sequence { min-height: calc(var(--scene-height) + var(--run)); }
  .motion .scene-sticky { position: sticky; top: var(--scene-top); min-height: var(--scene-height); }
}
@keyframes dot-arrive { from { opacity: 0; transform: translate3d(var(--dot-x),var(--dot-y),0) scale(.24); } }
@keyframes glow-in { from { opacity: .08; scale: 1.22; } }
@keyframes title-in { from { opacity: 0; filter: blur(12px); transform: translateY(17px); } }
@keyframes title-letter-in { from { opacity: 0; transform: translateY(.52em); } }
@keyframes title-letter-out { to { opacity: 0; transform: translateY(-.48em); visibility: hidden; } }
@keyframes portrait-in { from { opacity: .18; transform: translate3d(4%,2%,0) scale(1.055); } }
@keyframes stage-copy-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@keyframes stage-fade { from { opacity: .5; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }

@media (max-width: 880px) {
  .header-inner { gap: 19px; }
  .navigation { gap: 14px; }
  .navigation a { font-size: .83rem; }
  .hero-layout { min-height: 650px; }
  .hero h1 { font-size: clamp(2.95rem,6.9vw,4.1rem); }
  .portrait { inset-inline-start: 9%; }
  .section-heading { grid-template-columns: minmax(0,1fr) minmax(190px,235px); gap: 20px; }
  .stage-panel { gap: 24px; }
}

@media (max-width: 780px) {
  :root { --header-height: 61px; }
  .header-inner { justify-content: space-between; flex-wrap: wrap; gap: 0; }
  .header-cta { display: none; }
  .js .navigation {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 5px; padding: 8px var(--gutter) 14px; margin: 0;
    background: var(--surface-panel);
  }
  .navigation a { display: flex; min-height: 44px; align-items: center; padding: 3px 4px; font-size: .94rem; }
  .js .navigation a { padding-inline: 12px; background: var(--surface-quiet); }
  .js .navigation a:hover { background: var(--surface-raised); }
  .js .navigation a:focus-visible { background: var(--focus-surface); color: var(--focus-ink); }
  .js .navigation:not([hidden]) { animation: stage-copy-in .26s var(--curve) both; }
}

@media (max-width: 680px) {
  :root { --gutter: clamp(15px,5vw,32px); }
  .hero-layout { min-height: 720px; padding-top: 0; padding-bottom: 39px; display: block; }
  .hero-content { padding-top: 305px; }
  .hero-mark { position: absolute; top: 31px; left: 0; margin-bottom: 0; }
  .dotmark { width: clamp(89px,25vw,128px); }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .085em; margin-bottom: 11px; }
  .hero h1 { font-size: clamp(2.18rem,9.08vw,4.05rem); letter-spacing: -.069em; }
  .hero-intro { margin-top: 15px; max-width: 28rem; }
  .hero-actions { margin-top: 18px; gap: 8px; }
  .hero-actions .button { padding: .6rem .8rem; font-size: .82rem; min-height: 44px; }
  .hero-floor { background: linear-gradient(0deg,#03051c 4%,#03051c 37%,#03051c31 69%,transparent 100%); }
  .portrait { inset: -9px 0 auto 6%; height: 457px; mask-image: linear-gradient(90deg,transparent 0%,black 29%); -webkit-mask-image: linear-gradient(90deg,transparent 0%,black 29%); }
  .portrait img { object-position: 52% 36%; }
  .hero-glow { display: block; width: 460px; max-width: none; top: -227px; left: -250px; }
  .catalog { padding-block: 44px 38px; }
  .catalog-orb { top: 43%; left: 64%; width: clamp(320px,108vw,620px); }
  .catalog-art::before { background-position: center, center, 61% center; }
  .section-heading { grid-template-columns: 1fr; gap: 13px; margin-bottom: 19px; }
  .section-heading .eyebrow { margin-bottom: 8px; }
  .section-heading h2, .closing h2 { font-size: clamp(2rem,8.3vw,3.52rem); }
  .section-heading > p { max-width: 32rem; }
  .workflow { padding: 42px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
  .scene-body { padding-top: 24px; }
  .stage-panel { grid-template-columns: 1fr; align-content: start; gap: 15px; }
  .stage-copy h3 { font-size: clamp(2.1rem,9.33vw,3.45rem); }
  .stage-copy p { margin-top: 10px; line-height: 1.42; font-size: .97rem; }
  .stage-object { max-width: 388px; justify-self: start; }
  .stage-controls button { min-height: 48px; padding: 5px; gap: 4px; justify-content: center; font-size: clamp(.75rem,3.2vw,.94rem); }
  .stage-controls span { font-size: .66rem; }
  .preview-course { min-height: 149px; }
  .preview-course .button { min-height: 44px; }
  .workspace-inner { padding-block: 42px 23px; }
  .workspace-image img { object-position: 61% center; opacity: .7; }
  .workspace:before { background: linear-gradient(0deg,#03051c 3%,transparent 41%,#03051c5a 69%,#03051ce8 100%),linear-gradient(90deg,#03051cb8,#03051c2b 82%); }
  .closing { grid-template-columns: 1fr; justify-items: start; padding-top: 31px; gap: 14px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; gap: 11px; }
  .footer nav { order: 2; flex-basis: 100%; }
  .footer nav a { font-size: .82rem; }
  .footer small { margin: 0; }
  .dialog { max-height: 88dvh; }
  .lesson-content { padding-top: 24px; }
}

@media (max-width: 400px) {
  .hero-layout { min-height: 658px; padding-bottom: 31px; }
  .hero-content { padding-top: 267px; }
  .portrait { height: 393px; }
  .hero-floor { background: linear-gradient(0deg,#03051c 5%,#03051c 40%,#03051c31 72%,transparent 100%); }
  .hero-mark { top: 24px; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: clamp(1.95rem,9.45vw,2.17rem); }
  .hero-content { padding-top: 232px; }
  .hero-layout { min-height: 606px; }
  .portrait { height: 345px; }
  .stage-copy h3 { font-size: 2rem; }
  .stage-controls button { flex-direction: column; gap: 3px; }
}

@media (max-width: 680px) and (max-height: 700px) {
  .hero-content { padding-top: clamp(156px, 34svh, 240px); }
  .portrait { height: clamp(255px, 56svh, 393px); }
  .hero-layout { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .motion [data-reveal].awaiting { transform: none; opacity: 1; }
}

@media (forced-colors: active) {
  :root { --focus-surface: Highlight; --focus-ink: HighlightText; }
  :focus-visible, .stage-panel:focus-visible .stage-copy, .lesson-answers label:has(:focus-visible) {
    forced-color-adjust: none;
  }
  .button-primary:focus-visible, .skip-link:focus-visible {
    background: var(--focus-surface); color: var(--focus-ink);
  }
  .stage-controls button[aria-selected="true"]:not(:focus-visible),
  .lesson-answers label:has(:checked):not(:has(:focus-visible)) {
    forced-color-adjust: none; background: ButtonText; color: ButtonFace;
  }
  .stage-controls button[aria-selected="true"]:not(:focus-visible) span { color: ButtonFace; }
  .lesson-answers input { forced-color-adjust: none; background: GrayText; }
  .lesson-answers input:checked { background: ButtonFace; }
  .lesson-answers label:has(:focus-visible) input { background: GrayText; }
  .lesson-answers label:has(:focus-visible) input:checked { background: HighlightText; }
}

/* The in-flow slots provide the scroll distances for the visual layers. */
.landing-stack { isolation: isolate; }
.stack-slot { position: relative; isolation: isolate; }
.stack-feather {
  position: fixed; z-index: 9; pointer-events: none;
  inset: var(--header-height) 0 0;
}
.stack-feather::before, .stack-feather::after {
  content: ""; position: absolute; inset-inline: 0; height: clamp(25px,5.2svh,46px);
  background: #08123933; transition: opacity .16s ease-out;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(var(--feather-direction), #000 5%, transparent);
  mask-image: linear-gradient(var(--feather-direction), #000 5%, transparent);
}
.stack-feather::before { --feather-direction: to bottom; top: 0; opacity: var(--feather-top, 0); }
.stack-feather::after { --feather-direction: to top; bottom: 0; opacity: var(--feather-bottom, 0); }
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) and (hover: hover), (min-width: 701px) and (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .js .landing-stack[data-scroll-mode="native"] {
    --stack-overlap: calc(100svh - var(--header-offset));
  }
  .js .landing-stack[data-scroll-mode="native"] > main { display: flow-root; }
  .js .landing-stack[data-scroll-mode="native"] .stack-slot:not(#outro) { margin-bottom: calc(0px - var(--stack-overlap)); }
  .js .landing-stack[data-scroll-mode="native"] .stack-slot:not(#outro)::after {
    content: "";
    display: block;
    height: var(--stack-overlap);
    pointer-events: none;
  }
  .js .landing-stack[data-scroll-mode="native"] .stack-layer { min-height: var(--stack-overlap); }
  .js .landing-stack[data-scroll-mode="native"] .stack-slot:not(#outro) > .stack-layer {
    position: sticky;
    top: min(var(--header-offset), calc(100svh - var(--layer-height, 100svh)));
  }
  /* When the next sticky surface enters from below, align centred controls inside their own section. */
  .landing-stack[data-scroll-mode="native"] :is(.tool-index a, .feature-caption :is(a,button,summary), .bechat-copy .button) {
    scroll-margin-block-start: calc(var(--stack-overlap) * .65);
  }
  .js .landing-stack[data-scroll-mode="native"] .hero-layout { min-height: var(--stack-overlap); }
  .js .landing-stack[data-scroll-mode] [data-reveal].awaiting { opacity: 1; transform: none; }
}
.outro {
  min-height: clamp(340px,57svh,580px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface-panel);
}
.outro-action { display: grid; align-content: center; padding-block: clamp(45px,10svh,112px); }
.outro-action .closing { padding-top: 0; }

@media (max-width: 680px) {
  .outro-action .closing { align-items: start; }
}

@media (max-width: 932px), (hover: none) and (pointer: coarse) {
  .header { background: #0b1744; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .reading-fill { display: none; }
  .motion .sequence { min-height: auto; }
  .scene { grid-template-rows: auto auto; }
  .scene-body { align-content: start; }
  .motion .scene-sticky { position: relative; top: auto; min-height: 0; }
  .motion .scene[data-art-active] .scene-particles { animation: particle-drift 7s ease-in-out infinite alternate; }
}

@keyframes particle-drift {
  from { transform: translate3d(0,-50%,0) rotate(-6deg); }
  to { transform: translate3d(-6%,-43%,0) rotate(8deg); }
}

@media (min-width: 933px) and (max-height: 840px) and (hover: hover) and (pointer: fine) {
  .hero-layout, .js .landing-stack[data-scroll-mode="native"] .hero-layout {
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(24px,5svh,42px);
  }
  .hero-mark { height: auto; margin-bottom: clamp(10px,2svh,20px); }
  .dotmark { width: clamp(85px,17svh,148px); }
  .hero h1 { font-size: clamp(2.48rem,min(5.5vw,9svh),5.45rem); }
  .hero-intro { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .catalog { padding-block: clamp(24px,4.7svh,40px); }
}
