:root {
  --ink: #f6f4ef;
  --muted: #9ba4b7;
  --bg: #0b1020;
  --panel: #121a2e;
  --line: rgba(255,255,255,.13);
  --lime: #b8ff45;
  --orange: #ff9a51;
  --blue: #62b8ff;
  --pink: #ff71ba;
  --accent: var(--lime);
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body { color: var(--ink); font-family: var(--display); }
button, a { font: inherit; }
button { color: inherit; }

.deck { position: relative; width: 100%; height: 100%; min-height: 540px; background: var(--bg); overflow: hidden; isolation: isolate; }
.deck::before { content: ""; position: absolute; inset: 0; opacity: .24; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.deck::after { content: ""; position: absolute; width: 46vw; height: 46vw; border-radius: 50%; right: -23vw; bottom: -30vw; background: var(--accent); filter: blur(120px); opacity: .09; transition: background .45s ease; pointer-events: none; }

.chrome { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 78px; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0a0e18; font-weight: 900; letter-spacing: -.08em; transition: background .45s ease; }
.brand-mark span { opacity: .5; }
.brand-copy { color: #c7cddb; font-size: 11px; line-height: 1.15; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.chrome-right { display: flex; align-items: center; gap: 10px; }
.icon-button, .nav-button { border: 1px solid var(--line); background: rgba(13,19,34,.72); cursor: pointer; transition: .2s ease; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; font-weight: 800; }
.icon-button:hover, .nav-button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.counter { min-width: 84px; margin-left: 8px; font: 700 15px/1 var(--mono); letter-spacing: .04em; }
.counter i { margin: 0 7px; color: #5f6879; font-style: normal; }

.slides { position: absolute; inset: 78px 0 58px; }
.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: translateX(34px) scale(.992); transition: opacity .28s ease, transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s .34s; overflow: hidden; }
.slide.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; z-index: 2; }
.slide.is-leaving-left { visibility: visible; opacity: 0; transform: translateX(-34px) scale(.992); z-index: 1; }
.slide[data-accent="lime"] { --accent: var(--lime); }
.slide[data-accent="orange"] { --accent: var(--orange); }
.slide[data-accent="blue"] { --accent: var(--blue); }
.slide[data-accent="pink"] { --accent: var(--pink); }
.slide--question { background: radial-gradient(circle at 86% 72%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 32%); }
.slide--question::after { content: "?"; position: absolute; right: 2.4vw; bottom: -18vh; color: var(--accent); opacity: .1; font-size: min(52vw, 700px); line-height: .8; font-weight: 950; letter-spacing: -.12em; pointer-events: none; }
.slide--answer { background: linear-gradient(135deg, rgba(255,255,255,.012), transparent 54%); }
.slide--title { background: radial-gradient(circle at 78% 48%, rgba(184,255,69,.12), transparent 31%), linear-gradient(135deg, #0b1020, #111a2c); }
.slide-inner { position: relative; width: min(1440px, calc(100% - 8vw)); height: 100%; margin: 0 auto; padding: 4.5vh 0; display: flex; flex-direction: column; justify-content: center; }
.pair-number { position: absolute; z-index: 3; right: 3.2vw; top: 3.5vh; font: 800 12px/1 var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; padding: 7px 10px; }

.eyebrow { margin: 0 0 2vh; color: var(--accent); font: 800 12px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { text-wrap: balance; }
h1 { max-width: 1180px; margin: 0; font-size: clamp(54px, 7.4vw, 132px); line-height: .9; letter-spacing: -.065em; font-weight: 880; }
h1 code { font: inherit; color: var(--accent); }
h2 { margin: 0; font-size: clamp(38px, 4.25vw, 74px); line-height: .96; letter-spacing: -.05em; font-weight: 850; }
.question-layout { align-items: flex-start; }
.question-hint { margin: 4.5vh 0 0; padding-left: 42px; color: #8f98aa; font-size: clamp(15px, 1.35vw, 21px); position: relative; }
.question-hint::before { content: ""; position: absolute; left: 0; top: .7em; width: 28px; height: 2px; background: var(--accent); }
.lead { max-width: 780px; margin: 2.8vh 0 0; color: #bec6d5; font-size: clamp(17px, 1.45vw, 24px); line-height: 1.45; }
.lead strong { color: var(--ink); }
.note { margin: 2.5vh 0 0; color: #aeb7c7; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.45; }
.note strong { color: var(--accent); }
code { font-family: var(--mono); }

.title-layout { display: grid; grid-template-columns: 1.12fr .62fr; gap: 6vw; align-items: center; }
.title-layout h1 { font-size: clamp(52px, 6.25vw, 108px); }
.title-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 3.5vh; }
.title-meta span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #bdc5d4; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.title-meme { max-height: 46vh; }
.title-meme img { max-height: calc(46vh - 16px); aspect-ratio: 1.48; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr); gap: 5vw; align-items: center; }
.split--hero { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr); }
.split--code { grid-template-columns: 1fr .9fr; }
.stat-row { display: flex; gap: 14px; margin-top: 4vh; }
.stat { min-width: 118px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 16px; }
.stat strong { display: block; color: var(--accent); font-size: clamp(30px, 3vw, 50px); line-height: 1; letter-spacing: -.06em; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.meme-frame { margin: 0; max-height: 58vh; border: 8px solid #f2efe7; background: #f2efe7; box-shadow: 0 24px 80px rgba(0,0,0,.4); overflow: hidden; border-radius: 3px; }
.meme-frame img { display: block; width: 100%; max-height: calc(58vh - 16px); object-fit: cover; }
.meme-frame--wide img { aspect-ratio: 1.22; }
.meme-frame--portrait { max-width: 410px; justify-self: center; }
.meme-frame--portrait img { aspect-ratio: .82; }
.tilt-right { transform: rotate(2.3deg); }
.tilt-left { transform: rotate(-2deg); }

.big-list { margin: 3vh 0 0; padding: 0; list-style: none; max-width: 720px; }
.big-list li { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.75vw, 28px); font-weight: 650; }
.big-list li span { color: var(--accent); font: 700 11px/1 var(--mono); }

.big-list--dense { max-width: 960px; }
.big-list--dense li { padding: 9px 0; font-size: clamp(15px, 1.35vw, 22px); font-weight: 600; }
.callout { max-width: 720px; margin-top: 4vh; padding: 18px 22px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.45; }

.use-grid { margin-top: 3vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.use-grid article { min-height: 150px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.use-grid strong { display: block; margin-top: 8px; font-size: clamp(19px, 1.7vw, 28px); }
.use-grid p { margin: 7px 0 0; color: var(--muted); font-size: clamp(13px, 1.05vw, 17px); line-height: 1.38; }
.use-icon { color: var(--accent); font: 700 28px/1 var(--mono); }
.use-grid .use-grid__meme { padding: 0; overflow: hidden; border-color: var(--accent); }
.use-grid__meme img { width: 100%; height: 100%; object-fit: cover; }

.use-grid .use-grid__meme { max-height: 210px; }
.use-grid__meme img, .system-grid figure img { object-fit: contain; background: #fff; }
.system-grid figure { max-height: 230px; }

.definition-layout blockquote { max-width: 1190px; margin: 0; font-size: clamp(32px, 4.3vw, 72px); line-height: 1.08; letter-spacing: -.045em; font-weight: 720; }
.definition-layout blockquote::first-letter { color: var(--accent); }
.pipeline { display: grid; grid-template-columns: 1fr auto 1.4fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 4vh; max-width: 1120px; }
.pipeline > div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #11182a; }
.pipeline small { display: block; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; }
.pipeline code { color: #d7dce6; font-size: clamp(12px, 1vw, 16px); }
.pipeline > span { align-self: center; color: var(--accent); font-size: 24px; }
.meme-strip { position: absolute; right: 0; bottom: 3vh; width: 170px; height: 112px; border: 5px solid white; transform: rotate(3deg); overflow: hidden; }
.meme-strip img { width: 100%; height: 100%; object-fit: cover; }

.compare-list { margin-top: 3vh; }
.compare-list div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.compare-list code { color: var(--accent); font-size: clamp(18px, 1.5vw, 24px); font-weight: 750; }
.compare-list span { color: #bac2d0; font-size: clamp(14px, 1.15vw, 18px); }
.terminal-card { border: 1px solid #364057; border-radius: 18px; background: #080d18; box-shadow: 0 25px 80px rgba(0,0,0,.32); overflow: hidden; }
.terminal-top { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #151d30; border-bottom: 1px solid #313a4e; }
.terminal-top i { width: 9px; height: 9px; border-radius: 50%; background: #637086; }
.terminal-top i:first-child { background: #ff6e6e; }.terminal-top i:nth-child(2) { background: #ffd65f; }.terminal-top i:nth-child(3) { background: #7ce486; }
.terminal-top span { margin-left: auto; color: #768197; font: 11px/1 var(--mono); }
.terminal-card pre { margin: 0; padding: 30px; color: #eef1f7; font: clamp(16px, 1.6vw, 26px)/1.55 var(--mono); }
.terminal-card .dim { color: #69768b; }.terminal-card .ok { color: var(--lime); }.terminal-card .bad { color: #ff6e79; }
.answer-visual-stack { position: relative; padding-bottom: 58px; }
.mini-meme { position: absolute; right: -12px; bottom: -24px; width: 145px; height: 100px; margin: 0; border: 5px solid white; transform: rotate(3deg); overflow: hidden; }
.mini-meme img { width: 100%; height: 100%; object-fit: cover; }

.system-grid { margin-top: 3vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.system-grid article { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); display: flex; flex-direction: column; }
.system-grid article b { color: var(--accent); font: 750 10px/1 var(--mono); letter-spacing: .1em; }
.system-grid article strong { margin-top: auto; font-size: clamp(17px, 1.45vw, 24px); }
.system-grid article p { margin: 7px 0 0; color: var(--muted); font-size: clamp(11px, .92vw, 15px); line-height: 1.35; }
.system-grid figure { margin: 0; min-height: 150px; border: 5px solid white; overflow: hidden; transform: rotate(1.5deg); }
.system-grid figure img { width: 100%; height: 100%; object-fit: cover; }

.complexity-bars { margin-top: 3vh; max-width: 760px; }
.complexity-bars div { display: grid; grid-template-columns: 120px 1fr 130px; align-items: center; gap: 12px; margin: 12px 0; }
.complexity-bars span { color: var(--ink); font: 700 15px/1 var(--mono); }
.complexity-bars i { display: block; width: var(--w); height: 18px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 32%, transparent); }
.complexity-bars b { color: var(--muted); font-size: 13px; font-weight: 550; }

.process-line { margin: 3.5vh 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.process-line li { min-height: 84px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; font-size: clamp(14px, 1.15vw, 18px); font-weight: 680; }
.process-line li:nth-child(4n) { border-right: 0; }.process-line li:nth-child(n+5) { border-bottom: 0; }
.process-line span { color: var(--accent); font: 700 10px/1 var(--mono); }
.answer-bottom { display: grid; grid-template-columns: 1fr 118px; align-items: center; gap: 20px; max-width: 880px; margin-top: 2vh; }
.answer-bottom p { color: #b9c1d0; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.4; }
.answer-bottom img { width: 110px; height: 96px; object-fit: cover; border: 4px solid white; transform: rotate(3deg); }

.audit-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 6vw; align-items: center; }
.audit-stack { display: grid; gap: 10px; }
.audit-stack div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.audit-stack b { color: var(--accent); font: 800 12px/1 var(--mono); }
.audit-stack span { font-size: clamp(14px, 1.2vw, 19px); }
.audit-meme { width: 200px; height: 120px; margin: 2.5vh 0 0; border: 5px solid white; overflow: hidden; transform: rotate(-2deg); }
.audit-meme img { width: 100%; height: 100%; object-fit: cover; }

.company-grid { margin-top: 2vh; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.company-card { grid-column: span 2; min-height: 205px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); color: #111726; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.company-card:nth-child(4), .company-card:nth-child(5) { grid-column: span 3; min-height: 178px; }
.company-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.company-card img { width: auto; height: 34px; max-width: 150px; object-fit: contain; object-position: left center; }
.company-card p { margin: 18px 0 14px; font-size: clamp(12px, .92vw, 15px); line-height: 1.35; }
.company-card span { margin-top: auto; color: #4a556b; font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.company-card--muted { background: #eef0f3; }
.disclaimer { margin: 12px 0 0; color: #758095; font-size: 10px; }
.company-grid--compact .company-card { min-height: 160px; padding: 15px 17px; }
.company-grid--compact .company-card:nth-child(4), .company-grid--compact .company-card:nth-child(5) { min-height: 145px; }
.company-grid--compact .company-card p { margin: 13px 0 9px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.platform-row span { padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 999px; color: #c6cedb; font: 700 10px/1 var(--mono); }

.topic-cloud { margin-top: 3vh; display: flex; flex-wrap: wrap; gap: 9px; align-content: center; }
.topic-cloud span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #c3cad7; background: rgba(255,255,255,.025); font: 650 clamp(12px, 1vw, 16px)/1 var(--mono); }
.topic-cloud .lg { font-size: clamp(17px, 1.65vw, 27px); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.topic-cloud .xl { font-size: clamp(22px, 2.3vw, 40px); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.topic-foot { margin: 2.8vh 0 0; color: #adb6c7; font-size: clamp(14px, 1.25vw, 20px); }
.topic-bottom { display: grid; grid-template-columns: 1fr 115px; gap: 18px; align-items: center; max-width: 980px; margin-top: 2vh; }
.topic-bottom p { margin: 0; color: #adb6c7; font-size: clamp(14px, 1.25vw, 20px); }
.topic-bottom img { width: 108px; height: 78px; object-fit: cover; border: 4px solid white; transform: rotate(2deg); }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.roadmap article { min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); display: flex; flex-direction: column; }
.roadmap b { color: var(--accent); font: 700 11px/1 var(--mono); }
.roadmap strong { margin-top: auto; font-size: clamp(16px, 1.4vw, 23px); letter-spacing: -.025em; }
.roadmap span { margin-top: 7px; color: var(--muted); font-size: clamp(11px, .92vw, 14px); }
.roadmap-meme { position: absolute; right: -8px; bottom: 2vh; width: 160px; height: 90px; margin: 0; border: 5px solid white; overflow: hidden; transform: rotate(2deg); }
.roadmap-meme img { width: 100%; height: 100%; object-fit: cover; }

.canvas-flow { display: grid; grid-template-columns: repeat(11, auto); align-items: stretch; gap: 8px; margin-right: 145px; }
.canvas-flow div { min-width: 128px; min-height: 150px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.canvas-flow b { color: var(--accent); font: 700 11px/1 var(--mono); }
.canvas-flow strong { margin-top: auto; font-size: clamp(15px, 1.25vw, 20px); }
.canvas-flow span { margin-top: 8px; color: var(--muted); font-size: clamp(10px, .78vw, 12px); line-height: 1.35; }
.canvas-flow i { align-self: center; color: var(--accent); font-style: normal; }
.meme-corner { position: absolute; right: 0; bottom: 4vh; width: 150px; height: 160px; overflow: hidden; border: 5px solid white; transform: rotate(3deg); }
.meme-corner img { width: 100%; height: 100%; object-fit: cover; }

.timeline { display: flex; gap: 10px; margin-top: 2vh; margin-right: 180px; align-items: stretch; }
.timeline article { flex: var(--size); min-height: 250px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); display: flex; flex-direction: column; }
.timeline article:nth-child(2) { background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.timeline span { color: var(--accent); font: 700 12px/1 var(--mono); }
.timeline strong { margin-top: auto; font-size: clamp(19px, 1.7vw, 28px); }
.timeline p { margin: 10px 0 0; color: var(--muted); font-size: clamp(12px, 1vw, 16px); line-height: 1.4; }
.meme-inline { position: absolute; right: 0; bottom: 5vh; width: 155px; height: 215px; overflow: hidden; border: 5px solid white; transform: rotate(2deg); }
.meme-inline img { width: 100%; height: 100%; object-fit: cover; }
.lesson-policy { max-width: calc(100% - 190px); margin: 2vh 0 0; color: #808b9e; font-size: clamp(11px, .85vw, 14px); line-height: 1.4; }

.scenario-grid { margin-top: 3vh; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.scenario-grid > span { min-height: 78px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); display: grid; place-items: end start; font-size: clamp(15px, 1.3vw, 21px); font-weight: 700; }
.scenario-grid > span:nth-child(3n+1) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.scenario-grid figure { grid-column: span 2; grid-row: span 1; margin: 0; min-height: 78px; max-height: 92px; border: 5px solid white; overflow: hidden; transform: rotate(-1.5deg); }
.scenario-grid figure img { width: 100%; height: 100%; object-fit: cover; }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3vh; }
.policy-grid article { padding: 20px; border-radius: 16px; border: 1px solid var(--line); }
.policy-grid strong { font-size: clamp(17px, 1.4vw, 23px); }
.policy-grid p { margin: 10px 0 0; color: var(--muted); font-size: clamp(12px, 1vw, 16px); line-height: 1.4; }
.policy-ok { background: rgba(184,255,69,.06); }.policy-ok strong { color: var(--lime); }
.policy-no { background: rgba(255,113,186,.06); }.policy-no strong { color: var(--pink); }

.mock-grid { margin-top: 3vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mock-grid div { min-height: 90px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.mock-grid b { color: var(--accent); font: 700 10px/1 var(--mono); }
.mock-grid span { font-size: clamp(13px, 1.05vw, 17px); font-weight: 670; }

.portfolio-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4vw; align-items: center; }
.repo-card { border: 1px solid #3c475e; border-radius: 18px; background: #090e19; overflow: hidden; box-shadow: 0 24px 75px rgba(0,0,0,.34); }
.repo-top { display: flex; justify-content: space-between; padding: 13px 18px; background: #151d30; color: #9ea9bb; font: 11px/1 var(--mono); }
.repo-top b { color: var(--accent); }
.repo-card pre { margin: 0; padding: 24px; color: #e2e6ee; font: clamp(13px, 1.2vw, 19px)/1.75 var(--mono); }
.repo-card em { color: #7f8a9e; font-style: normal; }
.meme-float { position: absolute; left: 4vw; bottom: 4vh; width: 220px; height: 130px; border: 5px solid white; transform: rotate(-3deg); overflow: hidden; }
.meme-float img { width: 100%; height: 100%; object-fit: cover; }

.slide--final { background: radial-gradient(circle at 22% 28%, rgba(255,154,81,.11), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.018), transparent); }
.final-layout { display: grid; grid-template-columns: 1.1fr .62fr; gap: 6vw; align-items: center; }
.final-layout h2 { font-size: clamp(50px, 6.3vw, 108px); }
.final-steps { display: flex; gap: 10px; margin-top: 3vh; }
.final-steps span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.final-steps b { margin-right: 8px; color: var(--accent); font: 700 10px/1 var(--mono); }
.source-link { margin-top: 3vh; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 750; }
.final-course-layout { display: grid; grid-template-columns: 1.12fr .55fr; gap: 6vw; align-items: center; }
.final-course-layout h2 { font-size: clamp(42px, 4.7vw, 82px); }
.final-metrics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 3vh; }
.final-metrics span { padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; color: #aeb7c7; font-size: 12px; }
.final-metrics strong { color: var(--accent); margin-right: 5px; font: 800 15px/1 var(--mono); }

.controls { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 58px; display: flex; align-items: center; gap: 16px; padding: 10px 28px; border-top: 1px solid var(--line); background: rgba(8,12,22,.76); backdrop-filter: blur(12px); }
.nav-button { width: 38px; height: 38px; border-radius: 50%; }
.nav-button:disabled { opacity: .25; cursor: default; transform: none; }
.progress { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress::before { content: ""; display: block; width: var(--progress, 2.8%); height: 100%; background: var(--accent); transition: width .35s cubic-bezier(.2,.8,.2,1), background .45s ease; }
.key-hint { color: #636d7f; font: 10px/1 var(--mono); text-transform: uppercase; }

.sources-panel { position: fixed; z-index: 50; inset: 0; visibility: hidden; opacity: 0; transition: .25s ease; }
.sources-panel.is-open { visibility: visible; opacity: 1; }
.sources-backdrop { position: absolute; inset: 0; background: rgba(3,6,12,.68); backdrop-filter: blur(6px); }
.sources-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 92vw); padding: 6vh 5vw; background: #11182a; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.sources-panel.is-open .sources-sheet { transform: none; }
.sources-close { position: absolute; right: 24px; top: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 24px; }
.sources-sheet h2 { margin-bottom: 4vh; }
.sources-sheet ol { list-style: none; margin: 0; padding: 0; }
.sources-sheet li { border-top: 1px solid var(--line); }
.sources-sheet a { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 17px 0; color: inherit; text-decoration: none; }
.sources-sheet a:hover strong { color: var(--accent); }
.sources-sheet strong { font-size: 14px; }.sources-sheet span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.sources-note { margin-top: 4vh; color: #717d91; font-size: 11px; line-height: 1.5; }

@media (max-width: 980px) {
  .slide-inner { width: calc(100% - 48px); }
  .split, .split--hero, .split--code, .audit-layout, .portfolio-layout, .final-layout, .title-layout, .final-course-layout { grid-template-columns: 1.1fr .7fr; gap: 28px; }
  .company-grid { gap: 8px; }.company-card { padding: 14px; min-height: 180px; }
  .canvas-flow { overflow-x: auto; grid-template-columns: repeat(11, max-content); padding-bottom: 10px; }
  .timeline { margin-right: 140px; }.meme-inline { width: 125px; }
  .brand-copy, .key-hint { display: none; }
}

@media (max-width: 720px), (max-height: 620px) {
  .chrome { height: 60px; padding: 10px 16px; }.brand-mark { width: 36px; height: 36px; }
  .slides { inset: 60px 0 50px; }.controls { height: 50px; padding: 7px 16px; }
  .slide-inner { width: calc(100% - 32px); padding: 20px 0; }
  .pair-number { right: 16px; top: 16px; }
  .split, .split--hero, .split--code, .audit-layout, .portfolio-layout, .final-layout, .title-layout, .final-course-layout { grid-template-columns: 1fr; gap: 18px; }
  .meme-frame { position: absolute; right: 0; bottom: 16px; width: 34vw; max-height: 30vh; opacity: .46; z-index: -1; }.meme-frame img { max-height: 30vh; }
  .stat-row { gap: 6px; }.stat { min-width: 88px; padding: 11px; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }.use-grid article { min-height: 96px; padding: 12px; }
  .system-grid { grid-template-columns: repeat(2, 1fr); overflow-y: auto; }.system-grid article { min-height: 105px; }
  .pipeline { grid-template-columns: 1fr; gap: 6px; }.pipeline > span { display: none; }
  .process-line { grid-template-columns: repeat(2, 1fr); }.process-line li { min-height: 60px; }.process-line li:nth-child(2n) { border-right: 0; }
  .company-grid { grid-template-columns: repeat(2, 1fr); overflow-y: auto; max-height: 66vh; }.company-card, .company-card:nth-child(4), .company-card:nth-child(5) { grid-column: span 1; min-height: 150px; }
  .roadmap { grid-template-columns: repeat(2, 1fr); overflow-y: auto; }.roadmap article { min-height: 100px; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); overflow-y: auto; }.scenario-grid figure { grid-column: span 2; }
  .timeline { margin-right: 0; overflow-x: auto; }.timeline article { min-width: 210px; min-height: 190px; }
  .meme-inline, .meme-corner, .meme-float, .meme-strip, .mini-meme, .roadmap-meme, .audit-meme { display: none; }
  .policy-grid { grid-template-columns: 1fr; }.mock-grid { grid-template-columns: repeat(3, 1fr); }
  .counter { min-width: 64px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   ВИЗУАЛЬНАЯ СИСТЕМА ИЗ 01-ZNAKOMSTVO-S-PYTHON
   Кремовая бумага, тёмно-синие инверсные экраны,
   пиксельные подписи, жёсткие рамки и hard-shadow.
   ========================================================= */
:root {
  --brand-ink: #020835;
  --brand-blue: #2D7FC1;
  --brand-sky: #6FB8E3;
  --brand-light: #BFE2F5;
  --paper-base: #F2F1E9;
  --red: #E8503A;
  --green: #35C46B;
  --yellow: #FFC53D;
  --violet: #7C6BF5;
  --ink: var(--brand-ink);
  --bg: var(--paper-base);
  --panel: #fff;
  --line: var(--brand-ink);
  --lime: var(--green);
  --orange: var(--yellow);
  --blue: var(--brand-blue);
  --pink: var(--red);
  --display: "Unbounded", Inter, system-ui, sans-serif;
  --pixel: "Pixelify Sans", "Roboto Mono", monospace;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --body: Inter, system-ui, -apple-system, sans-serif;
}

body { background: var(--paper-base); color: var(--brand-ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }

/* ---------- заставка ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  background: radial-gradient(circle at 50% 40%, #0B1A6B 0%, #040D45 55%, #020835 100%);
  cursor: pointer;
}
.boot.is-gone { animation: bootLeave .6s steps(8, end) forwards; pointer-events: none; }
.boot__scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 4px); }
.boot-card { width: min(760px, 92vw); border: 3px solid #fff; background: rgba(0,4,30,.94); box-shadow: 0 0 0 5px rgba(111,184,227,.34), 0 0 46px rgba(111,184,227,.45); }
.boot-card__top { display: flex; justify-content: space-between; gap: 14px; padding: 8px 14px; background: #fff; color: var(--brand-ink); font: 600 11px/1 var(--pixel); letter-spacing: 1px; }
.boot-card__title { margin: 0; padding: 28px 30px 13px; color: #fff; font: 800 clamp(23px, 3vw, 42px)/1.13 var(--display); letter-spacing: -.03em; }
.boot-card__title em { color: var(--brand-sky); font-style: normal; }
.boot-card__fields { margin: 0; padding: 0 30px 27px; }
.boot-card__fields > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: baseline; margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.24); opacity: 0; }
.boot-card__fields dt { color: var(--brand-sky); font: 600 11px/1 var(--pixel); letter-spacing: 1px; }
.boot-card__fields dd { margin: 0; color: #DCE6FF; font-size: clamp(13px, 1.1vw, 16px); }
.boot-card__fields > div:nth-child(1) { animation: bootLine .01s .25s forwards; }
.boot-card__fields > div:nth-child(2) { animation: bootLine .01s .5s forwards; }
.boot-card__fields > div:nth-child(3) { animation: bootLine .01s .75s forwards; }
.boot-card__fields > div:nth-child(4) { animation: bootLine .01s 1s forwards; }
.boot__hint { margin: 0; color: #DCE6FF; font: 600 12px/1 var(--pixel); letter-spacing: 1px; opacity: 0; animation: bootLine .01s 1.35s forwards; }
.boot__hint i { color: var(--brand-sky); font-style: normal; animation: pixelNudge 1.1s steps(2) infinite; }
@keyframes bootLine { to { opacity: 1; } }
@keyframes bootLeave { to { clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes pixelNudge { 50% { transform: translateX(4px); } }

/* ---------- каркас ---------- */
.deck { background: var(--paper-base); color: var(--brand-ink); }
.deck::before { opacity: .32; background-image: linear-gradient(rgba(2,8,53,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(2,8,53,.055) 1px, transparent 1px); background-size: 32px 32px; mask-image: none; }
.deck::after { display: none; }
.chrome { height: 72px; padding: 14px 26px; border-bottom: 3px solid var(--brand-ink); background: rgba(242,241,233,.96); color: var(--brand-ink); backdrop-filter: none; transition: background .18s steps(2), color .18s steps(2), border-color .18s steps(2); }
.deck.is-inverse .chrome { background: rgba(2,8,53,.96); color: #fff; border-bottom-color: #fff; }
.brand-mark { width: 42px; height: 42px; border: 3px solid currentColor; border-radius: 0; background: var(--brand-blue); color: #fff; box-shadow: 3px 3px 0 var(--brand-ink); font-family: var(--pixel); }
.deck.is-inverse .brand-mark { background: var(--brand-sky); color: var(--brand-ink); border-color: #fff; box-shadow: 3px 3px 0 #000A2E; }
.brand-copy { color: inherit; font-family: var(--pixel); font-size: 10px; letter-spacing: .08em; }
.icon-button, .nav-button { border: 3px solid currentColor; border-radius: 0; background: #fff; color: var(--brand-ink); box-shadow: 3px 3px 0 var(--brand-ink); font-family: var(--pixel); transition: transform .08s steps(2), box-shadow .08s steps(2), background .12s; }
.deck.is-inverse .icon-button, .deck.is-inverse .nav-button { background: #0A1250; color: #fff; border-color: #fff; box-shadow: 3px 3px 0 #000A2E; }
.icon-button:hover, .nav-button:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 currentColor; color: inherit; }
.counter { font-family: var(--mono); color: inherit; }
.counter #currentNumber { color: var(--brand-blue); font-weight: 800; }
.deck.is-inverse .counter #currentNumber { color: var(--brand-sky); }
.slides { inset: 72px 0 56px; }
.controls { height: 56px; padding: 8px 26px; border-top: 3px solid var(--brand-ink); background: rgba(242,241,233,.96); backdrop-filter: none; color: var(--brand-ink); transition: background .18s steps(2), color .18s steps(2), border-color .18s steps(2); }
.deck.is-inverse .controls { background: rgba(2,8,53,.96); color: #fff; border-top-color: #fff; }
.progress { height: 7px; border: 2px solid currentColor; border-radius: 0; background: transparent; }
.progress::before { background: var(--brand-blue); transition: width .3s steps(8, end); }
.deck.is-inverse .progress::before { background: var(--brand-sky); }
.key-hint { color: inherit; opacity: .52; font-family: var(--pixel); }

/* ---------- слайды и переходы ---------- */
.slide { opacity: 0; visibility: hidden; transform: none; clip-path: inset(0 0 0 100%); transition: clip-path .45s steps(9,end), opacity .16s linear, visibility 0s .45s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; clip-path: inset(0); transition: clip-path .45s steps(9,end), opacity .16s linear; }
.slide.is-leaving-left { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 100% 0 0); }
.slide--answer { color: var(--brand-ink); background: var(--paper-base); }
.slide--question, .slide--title { color: #F4F7FF; background: var(--brand-ink); }
.slide--question { background-image: none; }
.slide--question::before, .slide--title::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(111,184,227,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(111,184,227,.09) 1px, transparent 1px); background-size: 32px 32px; }
.slide--question::after { right: 3vw; bottom: -11vh; color: var(--brand-sky); opacity: .09; font-family: var(--pixel); font-size: min(44vw, 620px); }
.slide--title { background: var(--brand-ink); }
.slide-inner { width: min(1440px, calc(100% - 8vw)); padding: clamp(22px, 3.2vh, 40px) 0; }
.pair-number { top: 18px; right: 3.5vw; border: 3px solid currentColor; border-radius: 0; padding: 6px 9px; color: var(--brand-blue); background: var(--paper-base); box-shadow: 3px 3px 0 var(--brand-ink); font-family: var(--pixel); }
.slide--question .pair-number, .slide--title .pair-number { color: var(--brand-ink); background: var(--brand-sky); border-color: #fff; box-shadow: 3px 3px 0 #000A2E; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5.3vw, 84px); line-height: .99; }
h2 { font-size: clamp(27px, 3.1vw, 48px); line-height: 1.06; }
.slide--answer h2 { color: var(--brand-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-blue); font: 600 11px/1 var(--pixel); letter-spacing: 1px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }
.slide--question .eyebrow, .slide--title .eyebrow { color: var(--brand-sky); }
.lead { color: #5A6183; font-size: clamp(14px, 1.28vw, 19px); line-height: 1.5; }
.slide--question .lead, .slide--title .lead { color: #C8D5F5; }
.question-hint { color: #9FB0E0; font-family: var(--mono); font-size: clamp(12px, 1vw, 15px); }
.question-hint::before { height: 4px; background: var(--brand-sky); }
.note { color: #5A6183; }

/* ---------- карточки и мемы ---------- */
.stat, .use-grid article, .system-grid article, .audit-stack div, .roadmap article,
.canvas-flow div, .timeline article, .mock-grid div, .company-card, .pipeline > div,
.terminal-card, .repo-card, .policy-grid article {
  border: 3px solid var(--brand-ink);
  border-radius: 0;
  background: #fff;
  box-shadow: 4px 4px 0 var(--brand-ink);
}
.stat strong, .use-icon, .compare-list code, .audit-stack b, .roadmap b,
.canvas-flow b, .mock-grid b, .final-metrics strong { color: var(--brand-blue); }
.stat span, .use-grid p, .system-grid article p, .compare-list span, .timeline p,
.roadmap span, .canvas-flow span, .mock-grid + .note { color: #5A6183; }
.use-grid p, .system-grid article p, .timeline p, .policy-grid p,
.complexity-bars b, .stat span, .compare-list span { color: #5A6183; }
.meme-float { left: auto; right: 4vw; }
.note--inset { max-width: calc(100% - 210px); }
.topic-cloud span { color: #3A4470; }
.topic-foot { color: #5A6183; }
.final-course-layout .note { margin-top: 1.2vh; }

/* ---------- масштаб типографики и монограмма ---------- */
.brand-mark { display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.brand-mark span { margin: 0 1px; }
.title-layout h1 { font-size: clamp(38px, 4.3vw, 74px); }
.slide--question h1 { font-size: clamp(34px, 4.2vw, 66px); }
.slide--title .lead, .slide--question .lead { font-size: clamp(15px, 1.25vw, 20px); }

.meme-frame, .meme-strip, .mini-meme, .system-grid figure, .audit-meme,
.topic-bottom img, .roadmap-meme, .meme-corner, .meme-inline, .scenario-grid figure {
  border: 3px solid var(--brand-ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(2,8,53,.48);
  background: #fff;
  padding: 6px;
}
.meme-frame img, .meme-strip img, .mini-meme img, .system-grid figure img,
.audit-meme img, .topic-bottom img, .roadmap-meme img, .meme-corner img,
.meme-inline img, .scenario-grid figure img { padding: 0; }
.terminal-card { background: #060F45; border-color: var(--brand-ink); }
.terminal-top { border-bottom: 3px solid #fff; background: var(--brand-ink); }
.terminal-card pre { color: #E3EAFF; }
.repo-card { background: #060F45; border-color: var(--brand-ink); }
.repo-top { border-bottom: 3px solid #fff; background: var(--brand-ink); }
.repo-card pre { color: #E3EAFF; }
.repo-card em { color: #9FB2E8; }
.company-card { box-shadow: 4px 4px 0 var(--brand-ink); }
.company-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--brand-ink); }

/* ---------- добавленная содержательная глубина ---------- */
.depth-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 9px; align-items: stretch; margin-top: 14px; }
.depth-strip > div { padding: 10px 12px; border: 2px solid var(--brand-ink); background: #fff; }
.depth-strip b { display: block; color: var(--brand-blue); font: 700 11px/1 var(--pixel); letter-spacing: .05em; }
.depth-strip span { display: block; margin-top: 4px; color: #5A6183; font-size: 12px; }
.depth-strip i { align-self: center; color: var(--brand-blue); font-style: normal; font-weight: 800; }

.definition-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; padding-right: 180px; }
.definition-notes div { padding: 10px 12px; border-left: 7px solid var(--brand-blue); background: #fff; box-shadow: 3px 3px 0 rgba(2,8,53,.22); }
.definition-notes b { display: block; font-size: 13px; }
.definition-notes span { display: block; margin-top: 3px; color: #5A6183; font-size: 11px; line-height: 1.35; }

.tradeoff-row, .criteria-row, .core-bands, .readiness-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tradeoff-row span, .criteria-row span, .core-bands span, .readiness-strip span { padding: 7px 9px; border: 2px solid var(--brand-ink); background: #fff; color: #5A6183; font-size: 11px; }
.tradeoff-row b, .criteria-row b, .core-bands b, .readiness-strip b { color: var(--brand-blue); font-family: var(--mono); }
.criteria-row span { flex: 1; min-width: 110px; }
.criteria-row b { display: block; font-size: 14px; }
.core-bands span { flex: 1; min-width: 190px; }
.core-bands b { display: block; margin-bottom: 3px; }

.system-note, .audit-note, .lesson-policy { margin-top: 12px; padding: 9px 12px; border-left: 6px solid var(--brand-blue); background: rgba(45,127,193,.09); color: #5A6183; font-size: 12px; line-height: 1.4; }
.audit-note { max-width: 760px; }
.lesson-policy { max-width: calc(100% - 190px); }

.roadmap article { position: relative; }
.roadmap article i { position: absolute; right: 12px; top: 11px; color: #5A6183; font: 700 10px/1 var(--mono); font-style: normal; }

.acceptance-strip { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 14px 170px 0 0; padding-top: 12px; border-top: 3px solid var(--brand-ink); }
.acceptance-strip b { font-family: var(--pixel); font-size: 11px; margin-right: 4px; }
.acceptance-strip span { padding: 6px 9px; background: var(--brand-light); border: 2px solid var(--brand-ink); font-size: 11px; }

.git-strip { display: flex; align-items: center; gap: 7px; margin: 12px 190px 0 0; }
.git-strip span { padding: 6px 9px; border: 2px solid var(--brand-ink); background: #fff; font: 600 10px/1 var(--mono); }
.git-strip i { color: var(--brand-blue); font-style: normal; }

.scenario-example { display: grid; grid-template-columns: auto 1fr 1fr; gap: 9px; margin-top: 12px; align-items: stretch; }
.scenario-example > * { padding: 9px 11px; border: 2px solid var(--brand-ink); background: #fff; font-size: 11px; line-height: 1.35; }
.scenario-example b { display: grid; place-items: center; background: var(--brand-blue); color: #fff; font-family: var(--pixel); text-align: center; }
.scenario-example code { color: var(--brand-blue); font-weight: 700; }

.portfolio-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.portfolio-strip span { padding: 5px 8px; border: 2px solid var(--brand-ink); background: #fff; color: var(--brand-ink); font: 600 10px/1 var(--mono); }
.final-metrics span { color: #5A6183; border: 3px solid var(--brand-ink); border-radius: 0; background: #fff; box-shadow: 3px 3px 0 var(--brand-ink); }
.source-link { padding: 9px 13px; border: 3px solid var(--brand-ink); background: var(--brand-blue); color: #fff; box-shadow: 4px 4px 0 var(--brand-ink); font-family: var(--pixel); cursor: pointer; }
.source-link:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--brand-ink); }

/* ---------- каскад и специальные анимации ---------- */
.fragment { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .26s ease-out, transform .34s cubic-bezier(.2,.8,.3,1); }
.fragment.revealed { opacity: 1; transform: none; }
.slide.is-active .slide-inner > *:not(.fragment) { animation: blockIn .44s cubic-bezier(.2,.8,.3,1) both; }
.slide.is-active .slide-inner > *:nth-child(1) { animation-delay: .05s; }
.slide.is-active .slide-inner > *:nth-child(2) { animation-delay: .13s; }
.slide.is-active .slide-inner > *:nth-child(3) { animation-delay: .21s; }
.slide.is-active .slide-inner > *:nth-child(4) { animation-delay: .29s; }
@keyframes blockIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.slide.is-active .pipeline > span { animation: pixelNudge 1s steps(2) infinite; }
.slide.is-active .depth-strip > i, .slide.is-active .git-strip > i { animation: arrowPulse 1.1s steps(2) infinite; }
@keyframes arrowPulse { 50% { opacity: .25; } }
.slide.is-active .terminal-card { animation: terminalWake .5s steps(5,end) .25s both; }
@keyframes terminalWake { from { filter: brightness(.45); } to { filter: brightness(1); } }
.slide.is-active .meme-frame, .slide.is-active .meme-strip, .slide.is-active .mini-meme,
.slide.is-active .audit-meme, .slide.is-active .roadmap-meme, .slide.is-active .meme-corner,
.slide.is-active .meme-inline { animation: pinIn .48s steps(6,end) .32s both; }
@keyframes pinIn { from { opacity: 0; transform: translateY(18px) rotate(0); } to { opacity: 1; } }

.sources-sheet { background: var(--paper-base); color: var(--brand-ink); border-left: 3px solid var(--brand-ink); box-shadow: -7px 0 0 rgba(2,8,53,.24); }
.sources-close { border: 3px solid var(--brand-ink); border-radius: 0; background: #fff; color: var(--brand-ink); box-shadow: 3px 3px 0 var(--brand-ink); }
.sources-sheet li { border-top: 2px solid var(--brand-ink); }
.sources-sheet span, .sources-note { color: #5A6183; }

@media (max-height: 820px) {
  .slide-inner { padding: 18px 0; }
  h2 { font-size: clamp(25px, 2.8vw, 42px); }
  .use-grid article, .system-grid article { min-height: 118px; padding: 13px; }
  .roadmap article { min-height: 116px; padding: 13px; }
  .timeline article { min-height: 190px; padding: 15px; }
  .definition-layout blockquote { font-size: clamp(27px, 3.45vw, 54px); }
  .company-grid--compact .company-card { min-height: 136px; }
  .company-grid--compact .company-card:nth-child(4), .company-grid--compact .company-card:nth-child(5) { min-height: 124px; }
  .company-card p { font-size: 11.5px; }
  .scenario-grid > span { min-height: 60px; padding: 11px; }
  .process-line li { min-height: 65px; padding: 11px; }
}

@media (max-width: 720px), (max-height: 620px) {
  .chrome { height: 60px; padding: 8px 14px; }
  .slides { inset: 60px 0 50px; }
  .controls { height: 50px; padding: 6px 14px; }
  .depth-strip, .definition-notes, .scenario-example { grid-template-columns: 1fr; }
  .depth-strip > i { display: none; }
  .definition-notes { padding-right: 0; }
  .acceptance-strip, .git-strip, .lesson-policy { margin-right: 0; max-width: 100%; }
  .criteria-row span { min-width: 82px; }
}


/* ---------- слайд знакомства ---------- */
.about-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 3.4vw, 56px); align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 8px; height: clamp(260px, 58vh, 520px); }
.mosaic .ph { position: relative; margin: 0; overflow: hidden; border: 3px solid var(--brand-ink); background: #fff; box-shadow: 4px 4px 0 var(--brand-ink); }
.mosaic .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic .m1 { grid-area: 1/1/4/4; } .mosaic .m2 { grid-area: 1/4/3/7; } .mosaic .m3 { grid-area: 3/4/5/6; }
.mosaic .m4 { grid-area: 3/6/5/7; } .mosaic .m5 { grid-area: 4/1/7/4; } .mosaic .m6 { grid-area: 5/4/7/7; }
.m1 img { object-position: 52% 26%; } .m2 img { object-position: 62% 34%; } .m3 img { object-position: 34% 26%; }
.m4 img { object-position: 46% 30%; } .m5 img { object-position: 38% 36%; } .m6 img { object-position: 72% 34%; }
.role { margin: 10px 0 0; color: var(--brand-blue); font: 700 clamp(11px, .95vw, 14px)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.fio { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.fio span { display: block; }
.fio span + span { color: var(--brand-blue); }
.about-quote { margin: clamp(16px, 2.6vh, 30px) 0 0; padding: 14px 0 0; border: 0; border-top: 3px solid var(--brand-ink); max-width: 620px; }
.about-quote p { margin: 0 0 7px; color: var(--brand-ink); font-size: clamp(14px, 1.2vw, 19px); font-style: italic; }
.about-quote cite { color: #5A6183; font: 700 10px/1 var(--mono); letter-spacing: .2em; font-style: normal; text-transform: uppercase; }
.about-layout .platform-row { margin-top: clamp(14px, 2vh, 22px); }
.about-layout .platform-row span { padding: 9px 13px; border: 2px solid var(--brand-ink); border-radius: 0; background: #fff; box-shadow: 3px 3px 0 var(--brand-ink); color: var(--brand-ink); font-size: 11px; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } .mosaic { height: clamp(200px, 34vh, 300px); } }


/* ---------- крупные карточки примеров ---------- */
.example-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3vh; }
.example-row article { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 32px); border: 3px solid var(--brand-ink); background: #fff; box-shadow: 5px 5px 0 var(--brand-ink); }
.example-row .use-icon { color: var(--brand-blue); font-size: clamp(20px, 1.9vw, 30px); line-height: 1; }
.example-row strong { margin-top: 14px; font-size: clamp(21px, 1.95vw, 32px); letter-spacing: -.03em; line-height: 1.05; }
.example-row p { margin: 12px 0 0; color: #5A6183; font-size: clamp(13px, 1.08vw, 18px); line-height: 1.45; }
.example-row b { margin-top: auto; padding-top: 16px; color: var(--brand-blue); font: 700 clamp(10px, .82vw, 12px)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .example-row { grid-template-columns: 1fr; gap: 10px; } .example-row article { padding: 14px; } }
.answer-bottom { max-width: 100%; grid-template-columns: minmax(0, 1fr) 118px; }
.answer-bottom p { color: #5A6183; max-width: 900px; }
.answer-bottom img { border: 3px solid var(--brand-ink); box-shadow: 4px 4px 0 var(--brand-ink); background: #fff; }

/* ---------- читаемость слайда с определением ---------- */
.pipeline small { color: var(--brand-blue); font-size: 11px; font-weight: 700; }
.pipeline code { color: var(--brand-ink); font-size: clamp(13px, 1.1vw, 18px); }
.pipeline > span { color: var(--brand-ink); }
.definition-notes b { font-size: clamp(14px, 1.1vw, 17px); }
.definition-notes span { color: #4A5170; font-size: clamp(12px, .95vw, 14px); }
.definition-layout blockquote { font-size: clamp(26px, 3.1vw, 52px); }
.definition-layout .note--inset { max-width: calc(100% - 230px); }
.example-row--duo { grid-template-columns: repeat(2, 1fr); max-width: 1200px; }
.example-row--duo b { text-transform: none; letter-spacing: 0; font-size: clamp(14px, 1.15vw, 19px); }


/* ---------- инфографика: список против множества ---------- */
.viz { margin-top: 3vh; display: grid; gap: 12px; }
.viz-row { display: grid; grid-template-columns: 190px 1fr 190px; gap: 18px; align-items: center; padding: 16px 18px; border: 3px solid var(--brand-ink); background: #fff; box-shadow: 5px 5px 0 var(--brand-ink); }
.viz-lead b { display: block; font-size: clamp(17px, 1.5vw, 24px); }
.viz-lead code { color: var(--brand-blue); font-size: clamp(12px, 1vw, 15px); }
.viz-track { position: relative; display: flex; flex-wrap: nowrap; gap: 6px; }
.viz-track i { flex: 1; min-width: 0; padding: 12px 4px; border: 2px solid #C9D2EA; background: #F4F6FC; color: #8A93B4; font: 700 clamp(12px, 1.1vw, 17px)/1 var(--mono); font-style: normal; text-align: center; }
.viz-track i.seen { border-color: var(--brand-ink); color: var(--brand-ink); background: #E7ECF9; }
.viz-track i.hit { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; box-shadow: 3px 3px 0 var(--brand-ink); }
.viz-track--set { padding-top: 22px; }
.viz-jump { position: absolute; top: 0; left: 0; color: var(--brand-blue); font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.viz-out b { display: block; font-size: clamp(17px, 1.5vw, 24px); color: var(--brand-blue); }
.viz-out span { color: #5A6183; font-size: clamp(11px, .92vw, 14px); }
.viz-scale { margin-top: 2.2vh; padding: 16px 18px; border: 3px solid var(--brand-ink); background: #fff; box-shadow: 5px 5px 0 var(--brand-ink); }
.viz-scale__title { margin: 0 0 12px; font-weight: 750; font-size: clamp(14px, 1.15vw, 19px); }
.viz-scale > div { display: grid; grid-template-columns: 120px 1fr 250px; gap: 14px; align-items: center; margin: 9px 0; }
.viz-scale span { color: var(--brand-ink); font: 700 clamp(12px, 1vw, 15px)/1 var(--mono); }
.viz-scale .bar { display: block; width: var(--w); height: 16px; border: 2px solid var(--brand-ink); }
.viz-scale .bar--bad { background: #E85D75; }
.viz-scale .bar--ok { background: #46B87A; }
.viz-scale b { color: #5A6183; font-size: clamp(11px, .95vw, 14px); font-weight: 600; }
@media (max-width: 900px) {
  .viz-row, .viz-scale > div { grid-template-columns: 1fr; gap: 8px; }
  .viz-track i { padding: 8px 2px; }
}

/* ---------- мем во весь слайд ---------- */
.slide--meme .slide-inner { align-items: center; }
.meme-slide { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.meme-slide figure { margin: 0; max-height: 76vh; border: 4px solid var(--brand-ink); background: #fff; box-shadow: 9px 9px 0 var(--brand-ink); overflow: hidden; }
.meme-slide img { display: block; max-height: calc(76vh - 8px); max-width: min(1120px, 88vw); width: auto; object-fit: contain; }
.meme-slide figcaption { max-width: 900px; color: var(--brand-ink); font-size: clamp(15px, 1.4vw, 23px); font-weight: 650; text-align: center; }


/* ---------- этапы интервью ---------- */
.step-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 3vw, 54px); align-items: center; }
.step-num { display: block; margin: 6px 0 0; color: var(--brand-blue); font: 800 clamp(64px, 8.5vw, 148px)/.82 var(--display); letter-spacing: -.06em; }
.step-layout h2 { margin-top: 6px; }
.step-lead { margin: 16px 0 0; max-width: 540px; color: #5A6183; font-size: clamp(14px, 1.15vw, 19px); line-height: 1.45; }
.step-say { margin: 16px 0 0; padding: 13px 16px; max-width: 540px; border-left: 6px solid var(--brand-blue); background: rgba(45,127,193,.09); color: var(--brand-ink); font-size: clamp(13px, 1.02vw, 17px); line-height: 1.4; font-style: italic; }
.step-lead b { color: var(--brand-ink); font-weight: 750; }
.step-def { margin: 12px 0 0; padding: 12px 15px; max-width: 540px; border: 2px solid var(--brand-ink); background: #fff; color: var(--brand-ink); font-size: clamp(12px, 1vw, 16px); line-height: 1.4; }
.step-cards { display: grid; gap: 11px; }
.step-cards article { padding: clamp(14px, 1.5vw, 22px); border: 3px solid var(--brand-ink); background: #fff; box-shadow: 5px 5px 0 var(--brand-ink); }
.step-cards b { display: block; color: var(--brand-blue); font: 700 clamp(10px, .85vw, 12px)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.step-cards p { margin: 9px 0 0; color: var(--brand-ink); font-size: clamp(13px, 1.05vw, 17px); line-height: 1.42; }
.step-cards .is-bad { border-color: #C0384A; background: #FFF4F5; box-shadow: 5px 5px 0 #C0384A; }
.step-cards .is-bad b { color: #C0384A; }
@media (max-width: 900px) { .step-layout { grid-template-columns: 1fr; gap: 14px; } .step-num { font-size: 56px; } }

.step-code { margin: 12px 0 0; padding: 11px 13px; border: 2px solid var(--brand-ink); background: #F4F6FC; color: var(--brand-ink); font: 600 clamp(11px, .92vw, 15px)/1.5 var(--mono); white-space: pre; overflow-x: auto; }
.example-row .is-bad { border-color: #C0384A; box-shadow: 5px 5px 0 #C0384A; }
.example-row .is-bad .use-icon, .example-row .is-bad b { color: #C0384A; }
.example-row .is-bad .step-code { border-color: #C0384A; background: #FFF4F5; }

.example-row p i { color: var(--brand-blue); font-style: normal; font-weight: 700; font-size: .88em; text-transform: uppercase; letter-spacing: .04em; }
.scenario-grid { grid-template-columns: repeat(5, 1fr); }

.final-course-layout h2 { font-size: clamp(30px, 3.4vw, 58px); }
.final-course-layout .lead { max-width: 560px; }
.final-course-layout .final-metrics { margin-top: 3vh; }


mark { padding: .05em .25em; border-radius: 2px; background: linear-gradient(180deg, transparent 12%, rgba(255,214,64,.72) 12%, rgba(255,214,64,.72) 92%, transparent 92%); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- словарь ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 3vh; }
.glossary > div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: baseline; padding: 11px 14px; border-left: 5px solid var(--brand-blue); background: #fff; box-shadow: 3px 3px 0 rgba(2,8,53,.18); }
.glossary b { color: var(--brand-ink); font-size: clamp(13px, 1.1vw, 18px); }
.glossary span { color: #5A6183; font-size: clamp(11px, .92vw, 15px); line-height: 1.4; }
@media (max-width: 1100px) { .glossary { grid-template-columns: 1fr; } .glossary > div { grid-template-columns: 150px 1fr; } }

/* ---------- порядок сдачи ДЗ ---------- */
.hw-row { grid-template-columns: 150px 1fr; }
.hw-text { color: var(--brand-ink); font-size: clamp(12px, 1.02vw, 17px); line-height: 1.45; }
.hw-text code { color: var(--brand-blue); font-weight: 700; }
#hwDownload { margin-top: 2.4vh; }

/* ---------- печатная версия домашнего задания ---------- */
.hw-sheet { display: none; }
@media print {
  @page { size: A4; margin: 15mm 14mm 14mm; }
  html, body { background: #fff !important; }
  body > *:not(.hw-sheet) { display: none !important; }
  .hw-sheet { display: block !important; color: #10143A; font: 10.5pt/1.5 "Inter", system-ui, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 10px; border-bottom: 3px solid #10143A; }
  .hw-course { margin: 0; font: 700 8pt/1.3 "Roboto Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #2D7FC1; }
  .hw-head h1 { margin: 6px 0 3px; font-size: 22pt; line-height: 1.05; letter-spacing: -.02em; }
  .hw-sub { margin: 0; font-size: 9.5pt; color: #5A6183; }
  .hw-mark { flex: 0 0 auto; padding: 7px 10px; border: 2.5px solid #10143A; background: #BBD7F2; font: 700 11pt/1 "Roboto Mono", monospace; }
  .hw-joke { margin: 11px 0 0; padding: 8px 12px; border-left: 5px solid #E9A13B; background: #FBF1DE; font-size: 11pt; font-style: italic; }
  .hw-meme { margin: 9px 0 0; text-align: center; page-break-inside: avoid; }
  .hw-meme img { max-width: 58mm; max-height: 44mm; border: 2.5px solid #10143A; }
  .hw-sheet h2 { margin: 12px 0 6px; font-size: 12.5pt; letter-spacing: -.01em; }
  .hw-list { margin: 0; padding-left: 18px; }
  .hw-list li { margin-bottom: 5px; page-break-inside: avoid; }
  .hw-note { margin: 7px 0 0; padding: 7px 10px; border: 1.5px solid #10143A; font-size: 9pt; }
  .hw-table { width: 100%; border-collapse: collapse; page-break-inside: avoid; }
  .hw-table th, .hw-table td { padding: 4.5px 8px; border: 1.5px solid #10143A; font-size: 9.5pt; text-align: left; vertical-align: top; }
  .hw-table th { width: 30mm; background: #EEF3FC; }
  .hw-gloss { margin: 0; display: grid; grid-template-columns: 32mm 1fr; gap: 2.5px 9px; font-size: 9pt; }
  .hw-gloss dt { font-weight: 700; }
  .hw-gloss dd { margin: 0; color: #3A4470; }
  .hw-table mark { background: rgba(255,214,64,.6); }
  .hw-foot { margin-top: 10px; padding-top: 6px; border-top: 1.5px solid #C9D2EA; font-size: 8.5pt; color: #5A6183; }
}
