@font-face {
  font-family: "Rubik Mono BK";
  src: url("./assets/fonts/RubikMonoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0d0c12;
  --panel: #15131b;
  --panel-2: #1b1824;
  --paper: #f3efe7;
  --white: #ffffff;
  --muted: #b5afba;
  --yellow: #f3efe7;
  --cyan: #9b7cff;
  --red: #ff3b2a;
  --line: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: "Onest BK", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,.12) 50% 51%, transparent 52%),
    linear-gradient(0deg, transparent 0 49%, rgba(255,255,255,.08) 50% 51%, transparent 52%);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 1000;
  letter-spacing: -0.09em;
  line-height: 0.9;
  transform: rotate(-1deg);
}

.brand-boom {
  color: var(--ink);
  background: var(--yellow);
  padding: 7px 10px 8px;
  border-radius: 4px 12px 4px 10px;
}

.brand-frame {
  color: var(--white);
  letter-spacing: -0.075em;
}

.top-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-weight: 760;
}

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

.sound-check {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.sound-check:hover,
.sound-check:focus-visible {
  border-color: var(--cyan);
  color: var(--white);
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 59, 42, 0.13);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 20px;
  padding: clamp(46px, 7vw, 110px) clamp(18px, 6vw, 92px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 42%, rgba(155, 124, 255, 0.17), transparent 24%),
    radial-gradient(circle at 65% 62%, rgba(243, 239, 231, 0.12), transparent 30%),
    linear-gradient(115deg, #090b0f 0 54%, #111821 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(58px, 8.7vw, 142px);
  line-height: 0.78;
  letter-spacing: -0.085em;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero h1 .boom-word {
  display: block;
  color: var(--yellow);
  text-shadow: 7px 7px 0 rgba(155, 124, 255, 0.22);
}

.hero h1 .frame-word {
  display: block;
  padding-left: clamp(14px, 4vw, 74px);
}

.hero-lead {
  max-width: 630px;
  margin: 30px 0 28px;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.25;
  color: #e7ebef;
  font-weight: 650;
}

.hero-actions,
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  min-height: 530px;
  align-self: stretch;
}

.camera-hero {
  position: absolute;
  z-index: 1;
  width: min(720px, 57vw);
  right: -8vw;
  bottom: -2vw;
  filter: drop-shadow(0 32px 55px rgba(0,0,0,.55));
  transform: translate3d(calc(var(--pointer-x) * 0.32), calc(var(--pointer-y) * 0.24), 0) rotate(-5deg);
  transition: transform 120ms linear;
  mix-blend-mode: screen;
}

.boom-hero {
  position: absolute;
  z-index: 2;
  width: min(590px, 50vw);
  top: -9vw;
  right: -4vw;
  transform: translate3d(calc(var(--pointer-x) * -0.18), calc(var(--pointer-y) * -0.15), 0) rotate(3deg);
  transform-origin: 100% 0;
  filter: drop-shadow(0 25px 48px rgba(0,0,0,.5));
  mix-blend-mode: screen;
  animation: mic-float 4.8s ease-in-out infinite;
}

@keyframes mic-float {
  0%, 100% { margin-top: -16px; }
  50% { margin-top: 18px; }
}

.take-stamp {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 12%;
  width: 152px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(12deg);
  background: rgba(9, 11, 15, .78);
  box-shadow: 0 0 0 8px rgba(255, 59, 42, .08);
}

.ticker {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  flex: none;
  min-width: max-content;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
  animation: ticker 22s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(72px, 9vw, 136px) clamp(18px, 6vw, 92px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 420px);
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}

.section h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -.06em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.lesson-card {
  position: relative;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.lesson-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -140px;
  right: -90px;
  border-radius: 50%;
  background: var(--card-color);
  opacity: .14;
  filter: blur(2px);
}

.lesson-card[data-ready="true"]:hover {
  transform: translateY(-8px) rotate(-.4deg);
  border-color: var(--card-color);
  box-shadow: var(--shadow);
}

.lesson-card.yellow { --card-color: var(--yellow); }
.lesson-card.cyan { --card-color: var(--cyan); }
.lesson-card.red { --card-color: var(--red); }

.lesson-meta,
.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lesson-number {
  color: var(--card-color);
  font-size: 54px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.08em;
}

.lesson-status {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lesson-card h3 {
  max-width: 440px;
  margin: 58px 0 14px;
  font-size: clamp(29px, 3vw, 44px);
  line-height: .98;
  letter-spacing: -.045em;
}

.lesson-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.lesson-tags {
  margin-top: auto;
}

.tag {
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #d5dbe2;
  font-size: 12px;
  font-weight: 750;
}

.lesson-open {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.lesson-open .arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card-color);
  color: var(--ink);
  transition: transform 180ms ease;
}

.lesson-card:hover .arrow {
  transform: rotate(-22deg) scale(1.07);
}

.about-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  background: var(--paper);
  color: var(--ink);
}

.about-number {
  font-size: clamp(100px, 19vw, 270px);
  font-weight: 1000;
  letter-spacing: -.11em;
  line-height: .74;
  color: var(--red);
}

.about-copy {
  align-self: center;
  max-width: 760px;
}

.about-copy h2 {
  font-size: clamp(40px, 5vw, 72px);
}

.about-copy p {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 620;
}

.about-note {
  color: #555e66;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 36px clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.brand-small {
  font-size: 20px;
}

.footer-origin {
  text-align: right;
}

/* lesson player */
.lesson-shell {
  --lesson-accent: var(--yellow);
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 80% 22%, rgba(155, 124, 255,.10), transparent 28%),
    var(--ink);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.lesson-shell.lesson-cyan { --lesson-accent: var(--cyan); }
.lesson-shell.lesson-red { --lesson-accent: var(--red); }
.lesson-shell.lesson-yellow { --lesson-accent: var(--yellow); }

.lesson-toolbar {
  position: sticky;
  top: 76px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(9,11,15,.88);
  backdrop-filter: blur(16px);
}

.lesson-code {
  color: var(--lesson-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.back-link,
.teacher-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.back-link:hover,
.teacher-toggle:hover,
.back-link:focus-visible,
.teacher-toggle:focus-visible {
  color: var(--white);
  border-color: var(--cyan);
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.progress-caption {
  color: #76808a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.progress-track {
  height: 6px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.10);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lesson-accent), var(--yellow));
  transition: width 260ms ease;
}

.progress-label {
  color: #aeb6bf;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.scene-stage {
  width: min(1440px, 100%);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(32px, 4vw, 64px) clamp(18px, 5vw, 76px) 26px;
}

.scene {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  animation: scene-in 420ms cubic-bezier(.2,.8,.2,1) both;
}

.scene-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #7e8994;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scene-meta span:last-child { color: var(--lesson-accent); text-align: right; }

@keyframes scene-in {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.scene-copy h1,
.scene-copy h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .92;
  letter-spacing: -.06em;
}

.scene-copy .eyebrow { color: var(--lesson-accent); }

.scene-copy > p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c4cbd3;
  font-size: clamp(18px, 1.7vw, 23px);
}

.scene-accent {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--lesson-accent);
  background: color-mix(in srgb, var(--lesson-accent) 9%, transparent);
  color: var(--lesson-accent);
  font-size: 20px;
  font-weight: 900;
}

.scene-visual {
  min-width: 0;
}

.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-card::before {
  content: "FRAME";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  background: rgba(9,11,15,.78);
  color: var(--lesson-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-label {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-grid.single {
  grid-template-columns: 1fr;
}

.compare-grid.single img {
  aspect-ratio: 16 / 8.7;
}

.answer-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.answer-buttons,
.choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.answer-button,
.choice-button {
  flex: 1 1 160px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
  padding: 13px 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 850;
}

.answer-button:hover,
.choice-button:hover,
.answer-button:focus-visible,
.choice-button:focus-visible {
  border-color: var(--cyan);
}

.choice-button.is-correct,
.answer-button.is-correct {
  border-color: var(--yellow);
  background: rgba(243, 239, 231,.14);
}

.choice-button.is-wrong,
.answer-button.is-wrong {
  border-color: var(--red);
  background: rgba(255, 59, 42,.10);
}

.feedback {
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--lesson-accent);
  border-radius: 0;
  background: rgba(255,255,255,.06);
  color: #d8dee5;
  font-weight: 680;
}

.rule-list {
  display: grid;
  gap: 12px;
}

.rule-item {
  display: grid;
  grid-template-columns: minmax(90px, .55fr) 1.45fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

.rule-item strong {
  color: var(--lesson-accent);
  font-size: 20px;
}

.rule-item span {
  color: #d1d7dd;
  font-size: 18px;
}

.practice-card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(.6deg);
  box-shadow: 12px 12px 0 var(--cyan);
}

.practice-card::after {
  content: "REC";
  position: absolute;
  right: -8px;
  bottom: -32px;
  color: rgba(9,11,15,.08);
  font-size: 150px;
  font-weight: 1000;
  letter-spacing: -.09em;
}

.checklist {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 18px;
  font-weight: 780;
}

.checklist li::before {
  content: "✓";
  flex: none;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 14px;
}

.thirds-demo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(circle at 67% 34%, var(--red) 0 42px, transparent 44px),
    linear-gradient(145deg, #183744, #0d1117 70%);
  box-shadow: var(--shadow);
}

.thirds-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 33%, rgba(255,255,255,.62) 33.2% 33.5%, transparent 33.7% 66%, rgba(255,255,255,.62) 66.2% 66.5%, transparent 66.7%),
    linear-gradient(0deg, transparent 33%, rgba(255,255,255,.62) 33.2% 33.5%, transparent 33.7% 66%, rgba(255,255,255,.62) 66.2% 66.5%, transparent 66.7%);
}

.thirds-demo::after {
  content: "главное здесь";
  position: absolute;
  left: 67%;
  top: 34%;
  transform: translate(32px, -56px) rotate(-4deg);
  color: var(--yellow);
  font-weight: 950;
}

.lesson-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
}

.nav-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 900;
}

.nav-button.next {
  justify-self: end;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.nav-button:disabled {
  opacity: .34;
  cursor: not-allowed;
}

.scene-dots {
  display: flex;
  gap: 6px;
}

.scene-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  padding: 0;
}

.scene-dot.active {
  width: 24px;
  border-radius: 99px;
  background: var(--lesson-accent);
}

.cover-slate {
  position: relative;
  min-height: min(62vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: #0d1015;
  box-shadow: 24px 24px 0 color-mix(in srgb, var(--lesson-accent) 22%, transparent);
  isolation: isolate;
}

.cover-slate > img,
.cover-slate-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-slate > img {
  z-index: -3;
  object-fit: cover;
  filter: saturate(.76) contrast(1.08) brightness(.72);
}

.lesson-cyan .cover-slate > img { object-fit: contain; transform: scale(1.18) rotate(-7deg); }

.cover-slate-shade {
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(5,7,10,.9), transparent 60%),
    linear-gradient(90deg, rgba(5,7,10,.34), transparent 55%);
}

.cover-number {
  position: absolute;
  right: 3%;
  bottom: -8%;
  color: rgba(255,255,255,.13);
  font-size: clamp(180px, 28vw, 430px);
  font-weight: 1000;
  line-height: .8;
  letter-spacing: -.12em;
}

.cover-rec {
  position: absolute;
  top: 28px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.cover-rec i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 59, 42,.16);
  animation: rec-pulse 1s steps(1) infinite;
}

.cover-caption {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.58);
  font-size: 13px;
  text-transform: uppercase;
}

.cover-caption b { color: var(--lesson-accent); }
.cover-caption span { max-width: 65%; text-align: right; font-weight: 850; }

.cover-frame {
  position: absolute;
  inset: 58px 30px 74px;
}

.cover-frame i { position: absolute; width: 32px; height: 32px; border-color: rgba(255,255,255,.8); border-style: solid; }
.cover-frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.cover-frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.cover-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.cover-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.teacher-note {
  display: none;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px dashed rgba(155, 124, 255,.5);
  border-radius: 12px;
  background: rgba(155, 124, 255,.06);
  color: #bfeff4;
  font-size: 14px;
}

.teacher-mode .teacher-note {
  display: block;
}

.finish-mark {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 239, 231,.18), transparent 65%);
}

.finish-mark span {
  color: var(--yellow);
  font-size: clamp(58px, 9vw, 124px);
  line-height: .82;
  font-weight: 1000;
  letter-spacing: -.09em;
  text-align: center;
  transform: rotate(-5deg);
}

.scene-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: #10161c;
  padding: 10px 16px;
  font-weight: 850;
  transition: all 220ms ease;
}

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

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr .72fr;
  }

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

  .lesson-card:first-child {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .scene {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .scene-cover {
    grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .top-nav {
    display: none;
  }

  .sound-check {
    font-size: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    min-height: 690px;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 56px;
  }

  .hero-copy {
    z-index: 5;
  }

  .hero h1 {
    font-size: clamp(63px, 21vw, 118px);
  }

  .hero-lead {
    max-width: 88%;
  }

  .hero-visual {
    position: absolute;
    inset: auto 0 0;
    min-height: 330px;
    opacity: .72;
  }

  .camera-hero {
    width: 125vw;
    right: -45vw;
  }

  .boom-hero {
    width: 110vw;
    top: -140px;
    right: -45vw;
  }

  .take-stamp {
    width: 105px;
  }

  .section-head,
  .about-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .lesson-card:first-child {
    grid-column: auto;
  }

  .site-footer,
  .footer-origin {
    text-align: left;
  }

  .lesson-toolbar {
    top: 66px;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
  }

  .teacher-toggle {
    display: block;
    padding: 8px 10px;
    font-size: 11px;
  }

  .lesson-code {
    justify-self: center;
  }

  .progress-wrap {
    grid-column: 1 / -1;
    grid-template-columns: minmax(90px, 1fr) auto;
  }

  .progress-caption {
    display: none;
  }

  .scene-stage {
    min-height: calc(100vh - 128px);
    padding: 28px 16px 16px;
  }

  .scene-copy h1,
  .scene-copy h2 {
    font-size: clamp(40px, 12vw, 68px);
  }

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

  .rule-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .lesson-nav {
    grid-template-columns: 1fr 1fr;
    position: sticky;
    z-index: 8;
    bottom: 0;
    margin: 24px -16px -16px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line);
    background: rgba(9,11,15,.94);
    backdrop-filter: blur(14px);
  }

  .scene-dots {
    display: none;
  }

  .scene-cover { grid-template-columns: 1fr; }
  .cover-slate { min-height: 330px; box-shadow: 10px 10px 0 color-mix(in srgb, var(--lesson-accent) 22%, transparent); }
  .cover-number { font-size: 180px; }
  .cover-caption { left: 18px; right: 18px; bottom: 18px; }
  .cover-caption span { max-width: 72%; }
  .cover-frame { inset: 48px 18px 65px; }
}

@media (max-width: 520px) {
  .back-link { padding: 8px 10px; font-size: 11px; }
  .lesson-code { font-size: 9px; }
  .scene-meta { margin-bottom: 18px; }
  .scene-copy > p { margin-top: 18px; }
  .scene-accent { margin-top: 22px; font-size: 17px; }
  .cover-caption { display: grid; gap: 5px; }
  .cover-caption span { max-width: none; text-align: left; }
  .answer-button, .choice-button { flex-basis: 100%; }
}

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

/* home: live production interface */
.studio-entry {
  --focus-x: 50%;
  --focus-y: 48%;
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 18px clamp(14px, 2.2vw, 34px) 36px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #07090d;
  background-size: 36px 36px;
  overflow: hidden;
}

.studio-entry::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  top: -260px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .08;
  filter: blur(70px);
}

.entry-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 0 4px 14px;
  color: #8c97a4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.entry-meta > :last-child { text-align: right; }

.entry-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9dfe5;
}

.entry-live i,
.record-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 59, 42,.13);
}

.production-board {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 25vw);
  border: 1px solid rgba(255,255,255,.22);
  background: #0b0e13;
  box-shadow: 0 36px 100px rgba(0,0,0,.48);
}

.viewfinder {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111;
  isolation: isolate;
  cursor: crosshair;
}

.shot-feed,
.viewfinder-shade {
  position: absolute;
  inset: 0;
}

.shot-feed {
  z-index: -4;
  background-image: url("./assets/runner-mixed.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-position: 0 0;
  transform: scale(1.03);
  filter: saturate(.82) contrast(1.05) brightness(.72);
  transition: background-position 650ms cubic-bezier(.2,.8,.2,1), filter 500ms ease, transform 800ms cubic-bezier(.2,.8,.2,1);
}

.shot-feed[data-shot="medium"] { background-position: 100% 0; }
.shot-feed[data-shot="close"] { background-position: 0 100%; }

.is-live .shot-feed {
  filter: saturate(1.04) contrast(1.04) brightness(.94);
  transform: scale(1);
}

.viewfinder-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,6,9,.88) 0, rgba(4,6,9,.48) 48%, rgba(4,6,9,.08) 78%),
    linear-gradient(0deg, rgba(4,6,9,.62), transparent 40%);
  transition: opacity 500ms ease;
}

.is-live .viewfinder-shade { opacity: .34; }

.thirds-grid {
  position: absolute;
  z-index: 2;
  inset: 10%;
  opacity: .19;
  transition: opacity 300ms ease;
}

.thirds-grid i { position: absolute; background: white; }
.thirds-grid i:nth-child(1), .thirds-grid i:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.thirds-grid i:nth-child(1) { left: 33.333%; }
.thirds-grid i:nth-child(2) { left: 66.666%; }
.thirds-grid i:nth-child(3), .thirds-grid i:nth-child(4) { left: 0; right: 0; height: 1px; }
.thirds-grid i:nth-child(3) { top: 33.333%; }
.thirds-grid i:nth-child(4) { top: 66.666%; }
.is-live .thirds-grid { opacity: .42; }

.frame-corner {
  position: absolute;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-color: rgba(255,255,255,.88);
  border-style: solid;
}

.corner-tl { top: 28px; left: 28px; border-width: 2px 0 0 2px; }
.corner-tr { top: 28px; right: 28px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 28px; left: 28px; border-width: 0 0 2px 2px; }
.corner-br { right: 28px; bottom: 28px; border-width: 0 2px 2px 0; }

.focus-mark {
  position: absolute;
  z-index: 5;
  left: var(--focus-x);
  top: var(--focus-y);
  width: 74px;
  height: 74px;
  border: 1px solid rgba(243, 239, 231,.95);
  transform: translate(-50%, -50%);
  transition: left 80ms linear, top 80ms linear, width 250ms ease, height 250ms ease;
}

.focus-mark::before,
.focus-mark::after,
.focus-mark span::before,
.focus-mark span::after {
  content: "";
  position: absolute;
  background: var(--yellow);
}

.focus-mark::before { width: 16px; height: 2px; left: -8px; top: 50%; }
.focus-mark::after { width: 16px; height: 2px; right: -8px; top: 50%; }
.focus-mark span::before { width: 2px; height: 16px; left: 50%; top: -8px; }
.focus-mark span::after { width: 2px; height: 16px; left: 50%; bottom: -8px; }
.is-live .focus-mark { width: 46px; height: 46px; }

.camera-status {
  position: absolute;
  z-index: 5;
  left: 42px;
  right: 42px;
  top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .06em;
}

.record-state { display: inline-flex; align-items: center; gap: 10px; }
.record-state i { background: #8f99a3; box-shadow: none; }
.is-live .record-state i { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 59, 42,.16); animation: rec-pulse 1s steps(1) infinite; }

@keyframes rec-pulse { 50% { opacity: .18; } }

.set-boom {
  position: absolute;
  z-index: 1;
  width: min(710px, 64vw);
  right: -250px;
  top: -240px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.55));
  opacity: .9;
  transition: transform 800ms cubic-bezier(.2,.8,.2,1), top 800ms cubic-bezier(.2,.8,.2,1);
}

.viewfinder:hover .set-boom,
.is-live .set-boom { top: -155px; transform: rotate(-3deg); }

.viewfinder-copy {
  position: absolute;
  z-index: 3;
  left: clamp(34px, 5vw, 82px);
  bottom: clamp(118px, 15vh, 164px);
  width: min(720px, 72%);
  transition: transform 500ms ease, opacity 500ms ease;
}

.viewfinder-copy p {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.viewfinder-copy h1 {
  margin: 0;
  font-size: clamp(52px, 6.6vw, 112px);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.viewfinder-copy h1 em {
  color: var(--yellow);
  font-style: normal;
}

.is-live .viewfinder-copy {
  transform: translateY(28px);
  opacity: 0;
  pointer-events: none;
}

.rec-trigger {
  position: absolute;
  z-index: 7;
  left: clamp(34px, 5vw, 82px);
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  border: 0;
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 13px 19px 13px 13px;
  cursor: pointer;
  text-align: left;
  box-shadow: 10px 10px 0 rgba(0,0,0,.35);
  transition: transform 160ms ease, background 200ms ease;
}

.rec-trigger:hover { transform: translate(-3px,-3px); }
.rec-trigger:disabled { cursor: wait; }
.rec-button-dot {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 8px rgba(9,11,15,.16);
}

.rec-trigger span:last-child { display: grid; }
.rec-trigger b { font-size: 23px; line-height: 1; }
.rec-trigger small { margin-top: 4px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.is-live .rec-trigger { background: rgba(9,11,15,.82); color: white; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.is-live .rec-button-dot { width: 16px; height: 16px; box-shadow: none; animation: rec-pulse 1s steps(1) infinite; }

.countdown {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--yellow);
  font-size: clamp(100px, 22vw, 320px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.09em;
  opacity: 0;
  background: rgba(3,4,6,.7);
}

.is-arming .countdown { opacity: 1; }
.is-arming .viewfinder-copy,
.is-arming .rec-trigger { opacity: 0; }

.camera-console {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3vw, 46px);
  border-left: 1px solid rgba(255,255,255,.2);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 5px),
    #0e1218;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -.07em;
}
.console-brand strong { background: var(--yellow); color: var(--ink); padding: 5px 8px; transform: rotate(-2deg); }
.console-copy { margin: auto 0 34px; }
.console-kicker { margin: 0 0 16px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.console-copy h2 { margin: 0; font-size: clamp(36px, 3.8vw, 64px); line-height: .9; letter-spacing: -.06em; }
.console-copy > p:last-child { min-height: 84px; margin: 20px 0 0; color: var(--muted); font-size: 16px; }

.shot-controls { display: grid; border-top: 1px solid var(--line); }
.shot-controls button {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 15px 4px;
  color: #818b96;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}
.shot-controls button span { font-family: ui-monospace, monospace; font-size: 11px; }
.shot-controls button:hover,
.shot-controls button[aria-pressed="true"] { padding-left: 12px; color: var(--ink); background: var(--yellow); }

.console-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  color: #dbe1e7;
  font-size: 13px;
  font-weight: 900;
}
.console-next span { color: var(--yellow); font-size: 24px; }

.production-tape {
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-1deg);
  border-block: 3px solid var(--ink);
}
.production-tape div {
  width: max-content;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .05em;
  white-space: nowrap;
  animation: tape-run 24s linear infinite;
}
@keyframes tape-run { to { transform: translateX(-50%); } }

.roles-rig,
.cut-room,
.production-proof {
  padding: clamp(78px, 9vw, 142px) clamp(18px, 6vw, 92px);
}

.rig-header,
.cut-header {
  display: grid;
  grid-template-columns: 1.25fr minmax(260px, 430px);
  gap: 50px;
  align-items: end;
  margin-bottom: 52px;
}
.rig-header h2,
.cut-header h2,
.production-proof h2 {
  margin: 0;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: .84;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.rig-header > p,
.cut-header > p { margin: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 22px); }

.role-machine {
  display: grid;
  grid-template-columns: minmax(260px,.38fr) minmax(0,.62fr);
  min-height: 540px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.role-switches { display: grid; border-right: 1px solid var(--line); }
.role-switches button {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 24px 28px;
  color: #8e98a3;
  text-align: left;
  cursor: pointer;
  font-size: clamp(20px,2.1vw,32px);
  font-weight: 950;
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}
.role-switches button:last-child { border-bottom: 0; }
.role-switches button span { font-family: ui-monospace, monospace; font-size: 11px; }
.role-switches button:hover,
.role-switches button[aria-selected="true"] { padding-left: 40px; background: var(--yellow); color: var(--ink); }

.role-output {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: clamp(38px,6vw,92px);
  background:
    radial-gradient(circle at 76% 32%, rgba(155, 124, 255,.16), transparent 22%),
    #0a0d12;
}
.role-output::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -110px;
  top: -110px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.018);
}
.role-code { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 12px; }
.role-output > strong { position: relative; z-index: 1; margin-top: 20px; color: var(--yellow); font-size: clamp(62px,10vw,158px); line-height: .8; letter-spacing: -.085em; word-break: break-word; }
.role-output > p { max-width: 680px; margin: 34px 0 0; color: #c3cbd3; font-size: clamp(18px,2vw,26px); }
.role-output[data-role="reporter"] > strong { color: var(--red); }
.role-output[data-role="sound"] > strong { color: var(--cyan); }
.role-output[data-role="editor"] > strong { color: var(--white); }

.role-signal {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
}
.role-signal i { width: 8px; height: 18%; background: currentColor; animation: signal 1.1s ease-in-out infinite alternate; }
.role-signal i:nth-child(2) { height: 58%; animation-delay: -.7s; }
.role-signal i:nth-child(3) { height: 86%; animation-delay: -.3s; }
.role-signal i:nth-child(4) { height: 42%; animation-delay: -.8s; }
.role-signal i:nth-child(5) { height: 100%; animation-delay: -.1s; }
.role-signal i:nth-child(6) { height: 68%; animation-delay: -.55s; }
.role-signal i:nth-child(7) { height: 34%; animation-delay: -.9s; }
.role-signal i:nth-child(8) { height: 74%; animation-delay: -.45s; }
@keyframes signal { to { transform: scaleY(.25); opacity: .45; } }

.cut-room { background: #f0eee8; color: var(--ink); }
.cut-room .eyebrow { color: #087c8a; }
.cut-header > p { color: #525b63; }
.timeline-ruler {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  padding: 10px 0;
  border-block: 1px solid rgba(9,11,15,.3);
  color: #626a70;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.timeline-ruler span:not(:first-child) { border-left: 1px solid rgba(9,11,15,.22); padding-left: 8px; }
.lesson-timeline { display: grid; }
.timeline-clip {
  --clip: #d5d7d9;
  position: relative;
  display: grid;
  grid-template-columns: 64px 90px minmax(260px,1fr) minmax(180px,.42fr) 110px;
  gap: 20px;
  align-items: center;
  min-height: 142px;
  border-bottom: 1px solid rgba(9,11,15,.28);
  color: var(--ink);
  transition: min-height 260ms ease, padding 260ms ease, background 220ms ease, transform 220ms ease;
}
.timeline-clip.yellow { --clip: #dce815; }
.timeline-clip.cyan { --clip: #00bfd3; }
.timeline-clip.red { --clip: #ff5a4e; }
.timeline-link:hover .timeline-clip { min-height: 178px; padding-inline: 22px; background: var(--clip); transform: translateX(8px); }
.clip-time { font-family: ui-monospace, monospace; font-size: 11px; color: #72797f; }
.clip-number { font-size: 58px; font-weight: 1000; letter-spacing: -.08em; }
.clip-label { color: #656d73; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.clip-copy h3 { margin: 8px 0 5px; font-size: clamp(25px,3vw,44px); line-height: .95; letter-spacing: -.045em; }
.clip-copy p { max-width: 690px; max-height: 0; margin: 0; overflow: hidden; opacity: 0; color: #32383d; transition: max-height 260ms ease, opacity 260ms ease; }
.timeline-link:hover .clip-copy p { max-height: 80px; opacity: 1; }
.clip-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.clip-tags span { border: 1px solid rgba(9,11,15,.25); padding: 5px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.clip-action { justify-self: end; font-size: 12px; font-weight: 950; text-transform: uppercase; }

.production-proof {
  display: grid;
  grid-template-columns: minmax(250px,.4fr) minmax(0,.6fr);
  gap: clamp(36px,8vw,120px);
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 59, 42,.16), transparent 30%),
    #090b0f;
}
.proof-number { display: flex; align-items: flex-end; gap: 22px; align-self: start; }
.proof-number strong { color: var(--red); font-size: clamp(150px,24vw,360px); line-height: .67; letter-spacing: -.12em; }
.proof-number span { padding-bottom: 18px; font-size: 24px; font-weight: 950; line-height: .85; text-transform: uppercase; }
.proof-copy > p { max-width: 820px; color: #bdc5cd; font-size: clamp(18px,2vw,26px); }
.proof-strip { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 44px; border-block: 1px solid var(--line); }
.proof-strip span { padding: 20px 12px; color: #9ca6b0; }
.proof-strip span + span { border-left: 1px solid var(--line); }
.proof-strip b { display: block; color: var(--yellow); font-size: 20px; }
.proof-origin { font-size: 14px !important; color: #7d8790 !important; }

@media (max-width: 1100px) {
  .production-board { grid-template-columns: 1fr 300px; }
  .viewfinder-copy { width: 78%; }
  .viewfinder-copy h1 { font-size: clamp(48px,7vw,82px); }
  .timeline-clip { grid-template-columns: 50px 72px 1fr 100px; }
  .clip-tags { display: none; }
}

@media (max-width: 820px) {
  .entry-meta { grid-template-columns: 1fr auto; }
  .entry-meta > :last-child { display: none; }
  .production-board { grid-template-columns: 1fr; }
  .viewfinder { min-height: 620px; }
  .camera-console { border-left: 0; border-top: 1px solid var(--line); }
  .console-copy { margin: 20px 0; }
  .console-copy > p:last-child { min-height: auto; }
  .shot-controls { grid-template-columns: repeat(3,1fr); }
  .shot-controls button { grid-template-columns: 1fr; gap: 4px; border-right: 1px solid var(--line); }
  .rig-header, .cut-header { grid-template-columns: 1fr; gap: 24px; }
  .role-machine { grid-template-columns: 1fr; }
  .role-switches { grid-template-columns: repeat(2,1fr); border-right: 0; }
  .role-switches button { min-height: 104px; border-right: 1px solid var(--line); }
  .production-proof { grid-template-columns: 1fr; }
  .proof-number { margin-bottom: 20px; }
}

@media (max-width: 560px) {
  .studio-entry { min-height: 0; padding: 10px 10px 28px; }
  .entry-meta { font-size: 9px; }
  .viewfinder { min-height: 540px; }
  .viewfinder-copy { left: 24px; bottom: 124px; width: 88%; }
  .viewfinder-copy h1 { font-size: clamp(45px,14vw,70px); }
  .viewfinder-shade { background: linear-gradient(0deg, rgba(4,6,9,.88), rgba(4,6,9,.1) 76%); }
  .set-boom { width: 620px; right: -290px; top: -205px; }
  .viewfinder:hover .set-boom, .is-live .set-boom { top: -165px; }
  .rec-trigger { left: 24px; bottom: 26px; min-width: 230px; }
  .camera-status { left: 20px; right: 20px; top: 20px; font-size: 9px; }
  .frame-corner { width: 28px; height: 28px; }
  .corner-tl { top: 16px; left: 16px; }
  .corner-tr { top: 16px; right: 16px; }
  .corner-bl { bottom: 16px; left: 16px; }
  .corner-br { bottom: 16px; right: 16px; }
  .role-switches button { grid-template-columns: 1fr; gap: 4px; padding: 18px; font-size: 18px; }
  .role-switches button:hover, .role-switches button[aria-selected="true"] { padding-left: 22px; }
  .role-output { min-height: 390px; padding: 32px 24px; }
  .role-output > strong { font-size: clamp(54px,18vw,90px); }
  .timeline-ruler { display: none; }
  .timeline-clip { grid-template-columns: 50px 1fr 76px; gap: 12px; min-height: 126px; }
  .clip-time { display: none; }
  .clip-number { font-size: 42px; }
  .clip-copy h3 { font-size: 24px; }
  .clip-copy p { display: none; }
  .clip-action { font-size: 9px; }
  .timeline-link:hover .timeline-clip { min-height: 126px; padding-inline: 8px; transform: none; }
  .proof-number strong { font-size: 170px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip span + span { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .production-tape div,
  .record-state i,
  .rec-button-dot,
  .role-signal i { animation: none !important; }
}

/* Lesson 03: immersive visual story */
.lesson-red {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 59, 42,.16), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(155, 124, 255,.08), transparent 28%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #07090d;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.lesson-red .scene-dot { width: 5px; height: 5px; }
.lesson-red .scene-dot.active { width: 20px; }
.lesson-red .scene-dots { gap: 4px; }
.lesson-red .nav-button.next.is-ready { animation: next-pulse 850ms ease 2; }

@keyframes next-pulse {
  50% { transform: translateX(5px); box-shadow: 0 0 0 8px rgba(243, 239, 231,.12); }
}

.scene-magic {
  min-height: min(680px, calc(100vh - 245px));
}

.scene-magic .scene-copy h2 {
  font-size: clamp(46px, 5.5vw, 82px);
}

.magic-stage {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 480px;
}

.magic-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: #11151b;
  box-shadow: 18px 18px 0 rgba(255, 59, 42,.14);
}

.magic-photo img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
}

.magic-photo-wide img { height: auto; aspect-ratio: 16 / 9; }

.magic-badge {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 36px;
  font-weight: 1000;
}

.magic-type-card {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 59, 42,.22), transparent 38%),
    linear-gradient(145deg, #151a20, #080a0e);
  text-align: center;
}

.magic-type-card strong {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--yellow);
  font-size: clamp(38px, 5vw, 76px);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.magic-type-card i {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  animation: magic-orbit 9s linear infinite;
}

.magic-type-card i:nth-of-type(2) { width: 390px; height: 390px; animation-direction: reverse; animation-duration: 13s; }
.magic-type-card i:nth-of-type(3) { width: 520px; height: 520px; animation-duration: 18s; }
.magic-spark { position: absolute; top: 10%; right: 12%; color: var(--cyan); font-size: 52px; animation: spark 1.8s ease-in-out infinite; }

@keyframes magic-orbit { to { transform: rotate(360deg); } }
@keyframes spark { 50% { transform: scale(1.35) rotate(28deg); opacity: .55; } }

.magic-compare,
.air-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.magic-compare figure,
.air-compare figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #11151b;
}

.magic-compare img,
.air-compare img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.magic-compare figcaption,
.air-compare figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-width: 48px;
  padding: 9px 13px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 19px;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.magic-picks,
.magic-quiz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.magic-picks button,
.magic-quiz button {
  min-height: 66px;
  border: 1px solid rgba(255,255,255,.22);
  background: #12171d;
  color: var(--white);
  padding: 14px 18px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 950;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.magic-picks button:hover,
.magic-quiz button:hover,
.magic-picks button:focus-visible,
.magic-quiz button:focus-visible { transform: translateY(-3px); border-color: var(--yellow); }
.magic-picks button.is-selected,
.magic-quiz button.is-selected { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }

.pick-feedback {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--yellow);
  font-weight: 850;
}

.next-answer-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: #939da7;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.next-answer-hint span { color: var(--yellow); font-size: 24px; }

.magic-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.magic-answer-grid > div {
  position: relative;
  min-height: 200px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, #191f26, #0b0e12);
}

.magic-answer-grid span {
  position: absolute;
  top: -18px;
  right: 8px;
  color: rgba(255,255,255,.06);
  font-size: 120px;
  font-weight: 1000;
}

.magic-answer-grid strong { color: var(--yellow); font-size: 28px; text-transform: uppercase; }
.magic-answer-grid p { position: relative; margin: 7px 0 0; color: #cbd2d9; font-size: 17px; }

.magic-label-row,
.before-after-labels,
.shot-answer-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.magic-label-row span,
.before-after-labels span,
.shot-answer-labels span {
  padding: 11px 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.plan-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr);
  align-items: stretch;
}

.plan-focus .magic-photo { box-shadow: none; }
.plan-focus .magic-photo img { height: min(62vh, 600px); }
.plan-question { display: grid; align-content: center; padding: 30px; background: var(--yellow); color: var(--ink); }
.plan-question span { font-size: clamp(38px, 5vw, 72px); font-weight: 1000; line-height: .9; letter-spacing: -.055em; }
.plan-question p { margin: 22px 0 0; font-size: 20px; font-weight: 820; }

.magic-steps { counter-reset: step; display: grid; gap: 9px; }
.magic-steps > div {
  min-height: 90px;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: #11161c;
}
.magic-steps span { color: var(--red); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 1000; }
.magic-steps strong { font-size: clamp(19px, 2vw, 28px); }

.lesson-timer {
  --timer-progress: 0;
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle, rgba(255, 59, 42,.16), transparent 58%), #0c0f14;
}

.timer-display {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(88px, 13vw, 190px);
  font-weight: 1000;
  line-height: .8;
  letter-spacing: -.1em;
  font-variant-numeric: tabular-nums;
}

.timer-ring {
  position: absolute;
  width: min(70%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) calc(var(--timer-progress) * 1turn), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
}

.lesson-timer.is-urgent .timer-display { color: var(--red); animation: timer-beat 1s steps(1) infinite; }
@keyframes timer-beat { 50% { opacity: .45; } }
.timer-actions { position: relative; z-index: 2; display: flex; gap: 9px; }
.timer-actions button { border: 1px solid var(--line); background: #171c22; padding: 12px 18px; cursor: pointer; font-weight: 900; }
.timer-actions button:first-child { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.magic-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.magic-checks > div { min-height: 250px; display: grid; align-content: center; padding: 25px; border: 1px solid var(--line); background: #11161c; }
.magic-checks span { color: var(--yellow); font-size: 52px; }
.magic-checks strong { margin-top: 18px; font-size: 28px; text-transform: uppercase; }
.magic-checks p { color: #aeb7c0; font-size: 17px; }

.question-mark {
  position: absolute;
  right: -18px;
  bottom: -34px;
  color: var(--yellow);
  font-size: clamp(150px, 22vw, 320px);
  font-weight: 1000;
  line-height: .7;
  text-shadow: 0 16px 50px rgba(0,0,0,.65);
}

.composition-grid,
.thirds-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.composition-grid i { position: absolute; background: rgba(255,255,255,.72); }
.composition-grid i:nth-child(1), .composition-grid i:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.composition-grid i:nth-child(1) { left: 33.333%; }
.composition-grid i:nth-child(2) { left: 66.666%; }
.composition-grid i:nth-child(3), .composition-grid i:nth-child(4) { left: 0; right: 0; height: 1px; }
.composition-grid i:nth-child(3) { top: 33.333%; }
.composition-grid i:nth-child(4) { top: 66.666%; }
.grid-point { position: absolute; width: 13px; height: 13px; margin: -6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 8px rgba(243, 239, 231,.18); }
.grid-point.p1 { left: 33.333%; top: 33.333%; }
.grid-point.p2 { left: 66.666%; top: 33.333%; }
.grid-point.p3 { left: 33.333%; top: 66.666%; }
.grid-point.p4 { left: 66.666%; top: 66.666%; }

.magic-answer-photo .magic-stage,
.magic-gaze .magic-stage { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); }
.magic-photo-answer { box-shadow: none; }
.photo-callouts { display: grid; align-content: center; gap: 12px; margin: 0; padding: 20px 0 20px 28px; list-style: none; counter-reset: callout; }
.photo-callouts li { counter-increment: callout; position: relative; padding: 18px 16px 18px 52px; border: 1px solid var(--line); background: #13181e; font-size: 17px; font-weight: 800; }
.photo-callouts li::before { content: counter(callout); position: absolute; left: 15px; color: var(--yellow); font-family: ui-monospace, monospace; }

.gaze-photo { box-shadow: none; }
.gaze-air { position: absolute; inset: 12% 5% 12% 52%; display: grid; place-items: center; border: 2px dashed var(--yellow); background: rgba(243, 239, 231,.06); }
.gaze-air span { padding: 8px 10px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 1000; text-transform: uppercase; }
.gaze-air i { color: var(--yellow); font-size: 74px; font-style: normal; }

.air-compare figure.bad { outline: 2px solid var(--red); outline-offset: -2px; }
.air-compare figure.good { outline: 2px solid var(--yellow); outline-offset: -2px; }
.air-compare figcaption { right: 14px; left: 14px; }

.before-after-labels { grid-template-columns: repeat(2, 1fr); }
.magic-game-intro .scene-copy h2 { font-size: clamp(58px, 7vw, 104px); }
.game-orbit { position: relative; min-height: 480px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(243, 239, 231,.18), transparent 62%); }
.game-orbit strong { color: var(--yellow); font-size: 180px; line-height: 1; }
.game-orbit span { position: absolute; display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: var(--red); font-size: 30px; font-weight: 1000; }
.game-orbit span:nth-child(1) { top: 10%; left: 16%; }
.game-orbit span:nth-child(2) { right: 10%; top: 28%; background: var(--cyan); color: var(--ink); }
.game-orbit span:nth-child(3) { bottom: 8%; left: 38%; background: var(--yellow); color: var(--ink); }

.shot-word-bank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.shot-word-bank span { padding: 11px 5px; border: 1px dashed rgba(255,255,255,.3); color: #aab4be; font-size: 12px; font-weight: 900; text-align: center; text-transform: uppercase; }
.shot-answer-labels { grid-template-columns: repeat(4, 1fr); }
.magic-quiz { grid-template-columns: 1fr; margin: 0; }
.magic-quiz button { min-height: 78px; font-size: clamp(18px, 2vw, 25px); }

@media (max-width: 1040px) {
  .scene-magic { min-height: auto; gap: 28px; }
  .magic-stage { min-height: 420px; }
  .magic-photo img { max-height: 580px; }
  .magic-answer-photo .magic-stage,
  .magic-gaze .magic-stage { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); }
}

@media (max-width: 760px) {
  .scene-magic .scene-copy h2 { font-size: clamp(40px, 11vw, 66px); }
  .magic-stage { min-height: 0; }
  .magic-photo img { height: auto; max-height: none; aspect-ratio: 4 / 3; }
  .magic-photo-wide img { aspect-ratio: 16 / 9; }
  .magic-type-card { min-height: 340px; }
  .magic-type-card strong { font-size: clamp(34px, 10vw, 56px); }
  .magic-answer-grid > div { min-height: 155px; padding: 20px; }
  .plan-focus { grid-template-columns: 1fr; }
  .plan-question { padding: 24px; }
  .magic-checks { grid-template-columns: 1fr; }
  .magic-checks > div { min-height: 130px; }
  .lesson-timer { min-height: 360px; }
  .timer-display { font-size: clamp(74px, 24vw, 124px); }
  .magic-answer-photo .magic-stage,
  .magic-gaze .magic-stage { grid-template-columns: 1fr; }
  .photo-callouts { padding: 10px 0 0; }
  .game-orbit { min-height: 350px; }
}

@media (max-width: 520px) {
  .magic-compare,
  .air-compare,
  .magic-answer-grid { grid-template-columns: 1fr; }
  .magic-compare img,
  .air-compare img { aspect-ratio: 16 / 10; }
  .magic-picks { grid-template-columns: 1fr 1fr; }
  .magic-steps > div { grid-template-columns: 52px 1fr; padding-inline: 14px; }
  .shot-word-bank,
  .shot-answer-labels { grid-template-columns: repeat(2, 1fr); }
  .timer-actions { flex-direction: column; }
}

/* Lesson 03 layout corrections */
.lesson-red { overflow-x: clip; }

.lesson-red .scene-stage {
  padding-top: 28px;
}

.lesson-red .scene-magic {
  min-height: min(630px, calc(100vh - 300px));
}

.lesson-red .scene,
.lesson-red .scene-copy,
.lesson-red .scene-visual,
.lesson-red .magic-stage,
.lesson-red .scene-copy h2 {
  min-width: 0;
  max-width: 100%;
}

.scene-magic .scene-copy h2 {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.magic-promise .scene-copy h2,
.magic-big-question .scene-copy h2,
.magic-game-intro .scene-copy h2,
.magic-shots-answer .scene-copy h2 {
  font-size: clamp(38px, 3.85vw, 58px);
  line-height: 1;
}

.plan-question {
  min-width: 0;
  overflow: hidden;
  padding: 24px;
}

.plan-question span {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: .96;
  letter-spacing: -.04em;
  hyphens: auto;
}

.magic-question .magic-photo-question img,
.magic-big-question .magic-photo-question img {
  height: auto;
  max-height: 430px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.magic-big-question .magic-stage {
  overflow: hidden;
  padding-bottom: 4px;
}

.magic-big-question .next-answer-hint {
  position: relative;
  z-index: 3;
}

.question-mark {
  right: 8px;
  bottom: 44px;
  z-index: 2;
  max-width: 32%;
  font-size: clamp(110px, 15vw, 210px);
  pointer-events: none;
}

.lesson-red .lesson-nav {
  position: relative;
  z-index: 6;
}

.finish-mark {
  overflow: hidden;
  padding: 36px;
}

.finish-mark span {
  max-width: 90%;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: .92;
  overflow-wrap: break-word;
}

@media (max-width: 1040px) {
  .lesson-red .scene-magic {
    min-height: auto;
  }

  .scene-magic .scene-copy h2,
  .magic-promise .scene-copy h2,
  .magic-big-question .scene-copy h2,
  .magic-game-intro .scene-copy h2,
  .magic-shots-answer .scene-copy h2 {
    font-size: clamp(38px, 6.5vw, 58px);
  }

  .magic-question .magic-photo-question img,
  .magic-big-question .magic-photo-question img {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .scene-magic .scene-copy h2,
  .magic-promise .scene-copy h2,
  .magic-big-question .scene-copy h2,
  .magic-game-intro .scene-copy h2,
  .magic-shots-answer .scene-copy h2 {
    font-size: clamp(36px, 10.2vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
  }

  .scene-magic {
    gap: 24px;
  }

  .magic-question .magic-photo-question img,
  .magic-big-question .magic-photo-question img {
    aspect-ratio: 16 / 10;
  }

  .question-mark {
    right: 4px;
    bottom: 46px;
    font-size: clamp(86px, 28vw, 150px);
  }

  .finish-mark {
    min-height: 300px;
    padding: 24px;
  }

  .finish-mark span {
    font-size: clamp(38px, 11vw, 58px);
  }
}

@media (max-width: 520px) {
  .scene-meta {
    gap: 10px;
    font-size: 9px;
  }

  .scene-meta span:last-child {
    max-width: 48%;
  }

  .plan-question span {
    font-size: 34px;
  }
}

/* Title page: playful opening credits for a growing lesson library */
.title-stage {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(16px, 3vw, 54px);
  padding: clamp(34px, 6vw, 90px) clamp(18px, 6vw, 92px) clamp(46px, 6vw, 86px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 42%, rgba(155, 124, 255, .16), transparent 28%),
    radial-gradient(circle at 66% 76%, rgba(243, 239, 231, .13), transparent 28%),
    linear-gradient(125deg, #090b0f 0 55%, #111922 100%);
}

.title-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 60%, #000 100%);
}

.title-stage-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.title-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(24px, 4vw, 48px);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.title-badges > span,
.title-badges > b,
.title-badges > i {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(9,11,15,.5);
  font-style: normal;
}

.title-badges > b { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.title-badges > i { color: #dfe5ea; }
.title-badges em { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255, 59, 42,.13); }

.title-stage h1 {
  margin: 0;
  width: min-content;
  display: grid;
  font-size: clamp(86px, 11.4vw, 184px);
  font-weight: 1000;
  line-height: .69;
  letter-spacing: -.095em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.title-stage h1 span {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: .1em .14em .13em .09em;
  border-radius: 8px 24px 8px 18px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 12px 12px 0 var(--cyan);
}

.title-stage h1 .boom-hit {
  display: flex;
  align-items: flex-end;
  gap: .015em;
  letter-spacing: -.13em;
  isolation: isolate;
}

.boom-hit::before,
.boom-hit::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: .28em;
  height: .065em;
  border-radius: 99px;
  background: var(--red);
}

.boom-hit::before { left: -.18em; top: .17em; transform: rotate(28deg); }
.boom-hit::after { right: -.22em; top: .08em; transform: rotate(-24deg); }

.boom-hit i {
  --tilt: 0deg;
  --drop: 0em;
  --pop: 1;
  display: inline-block;
  font-style: normal;
  transform: translateY(var(--drop)) rotate(var(--tilt)) scale(var(--pop));
  transform-origin: 50% 82%;
  animation: boom-letter-drop .58s cubic-bezier(.18,.89,.32,1.45) backwards;
}

.boom-hit i:nth-child(1) { --tilt: -8deg; --drop: .035em; animation-delay: .03s; }
.boom-hit i:nth-child(2) { --tilt: 6deg; --drop: -.08em; --pop: 1.06; animation-delay: .1s; }
.boom-hit i:nth-child(3) { --tilt: -4deg; --drop: .055em; animation-delay: .16s; }
.boom-hit i:nth-child(4) {
  --tilt: 9deg;
  --drop: -.015em;
  margin-left: .02em;
  color: var(--red);
  text-shadow: .025em .025em 0 var(--ink);
  animation-delay: .23s;
}

@keyframes boom-letter-drop {
  0% { opacity: 0; transform: translateY(-.9em) rotate(0deg) scale(1.3); }
  72% { opacity: 1; transform: translateY(calc(var(--drop) + .06em)) rotate(var(--tilt)) scale(var(--pop)); }
  100% { transform: translateY(var(--drop)) rotate(var(--tilt)) scale(var(--pop)); }
}

@media (prefers-reduced-motion: reduce) {
  .boom-hit i { animation: none; }
}

.title-stage h1 strong {
  width: max-content;
  margin: .14em 0 0 .2em;
  color: var(--white);
  text-shadow: 7px 7px 0 rgba(255, 59, 42,.68);
}

.title-action-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin: clamp(28px, 4vw, 46px) 0 24px;
  color: #dce3e9;
  font-size: clamp(19px, 2vw, 29px);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.title-action-line b:nth-child(1) { color: var(--cyan); }
.title-action-line b:nth-child(2) { color: var(--yellow); }
.title-action-line b:nth-child(3) { color: var(--red); }

.title-buttons { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.title-primary,
.title-secondary {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.title-primary {
  max-width: 480px;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 8px 8px 0 rgba(155, 124, 255,.45);
}

.title-primary span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.title-primary b { margin-left: auto; font-size: 25px; }
.title-secondary { padding: 13px 19px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.title-primary:hover,
.title-primary:focus-visible,
.title-secondary:hover,
.title-secondary:focus-visible { transform: translateY(-4px) rotate(-.5deg); }

.title-stage-picture {
  --hero-x: 0;
  --hero-y: 0;
  position: relative;
  min-height: min(720px, 73svh);
  align-self: stretch;
}

.camera-flash {
  position: absolute;
  inset: 8% 0 0 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 239, 231,.28), rgba(155, 124, 255,.08) 38%, transparent 67%);
  filter: blur(8px);
}

.title-camera {
  position: absolute;
  z-index: 2;
  width: min(920px, 64vw);
  max-width: none;
  right: clamp(-270px, -15vw, -95px);
  bottom: -5%;
  filter: drop-shadow(0 42px 60px rgba(0,0,0,.68));
  mix-blend-mode: screen;
  transform: translate(calc(var(--hero-x) * 12px), calc(var(--hero-y) * 9px)) rotate(-5deg);
  transition: transform 100ms linear;
}

.title-mic {
  position: absolute;
  z-index: 3;
  width: min(720px, 54vw);
  max-width: none;
  top: -12%;
  right: -12%;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.56));
  mix-blend-mode: screen;
  transform: translate(calc(var(--hero-x) * -9px), calc(var(--hero-y) * -7px)) rotate(5deg);
  transition: transform 100ms linear;
}

.title-sticker {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 1000;
  letter-spacing: .05em;
  box-shadow: 8px 8px 0 rgba(0,0,0,.38);
}

.sticker-rec { top: 18%; left: 2%; color: var(--white); background: var(--red); transform: rotate(-8deg); }
.sticker-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.sticker-take { right: 3%; bottom: 12%; background: var(--yellow); transform: rotate(8deg); }
.sticker-ready { left: 12%; bottom: 21%; background: var(--cyan); transform: rotate(5deg); }

.title-frame { position: absolute; z-index: 5; inset: 10% 1% 8% 1%; pointer-events: none; }
.title-frame i { position: absolute; width: 48px; height: 48px; border-color: rgba(255,255,255,.7); border-style: solid; }
.title-frame i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.title-frame i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.title-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.title-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }

.boom-ticker {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-.65deg) scale(1.02);
}

.boom-ticker div {
  width: max-content;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: .08em;
  animation: boom-ticker 28s linear infinite;
}

@keyframes boom-ticker { to { transform: translateX(-50%); } }

.course-library {
  padding: clamp(76px, 9vw, 140px) clamp(18px, 6vw, 92px);
  background:
    radial-gradient(circle at 5% 20%, rgba(155, 124, 255,.08), transparent 24%),
    linear-gradient(#0b0e13, #11161c);
}

.library-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.library-header h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(56px, 8vw, 118px);
  font-weight: 1000;
  line-height: .78;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.library-header > p {
  margin: 0 0 5px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.library-header > p strong { color: var(--yellow); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

.course-card-link { min-width: 0; }
.course-card-link.is-disabled { cursor: default; }
.course-card {
  --course-accent: var(--yellow);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background: #151a20;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card-cyan { --course-accent: var(--cyan); }
.course-card-red { --course-accent: var(--red); }
.course-card-yellow { --course-accent: var(--yellow); }
.course-card-link:not(.is-disabled):hover .course-card,
.course-card-link:not(.is-disabled):focus-visible .course-card {
  transform: translateY(-8px) rotate(-.45deg);
  border-color: var(--course-accent);
  box-shadow: 12px 14px 0 color-mix(in srgb, var(--course-accent) 28%, transparent), 0 30px 70px rgba(0,0,0,.4);
}

.course-card-photo {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #080a0e;
}

.course-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(8,10,14,.88)); }
.course-card-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.9) contrast(1.04); transition: transform 260ms ease; }
.course-card-cyan .course-card-photo img,
.course-card-yellow .course-card-photo img { object-fit: contain; padding: 18px; mix-blend-mode: screen; }
.course-card-link:not(.is-disabled):hover img { transform: scale(1.045); }

.course-card-number {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: -10px;
  color: var(--course-accent);
  font-size: clamp(82px, 9vw, 132px);
  font-weight: 1000;
  line-height: .76;
  letter-spacing: -.08em;
  text-shadow: 0 10px 20px rgba(0,0,0,.5);
}

.course-card-status {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--course-accent);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.course-card[data-ready="false"] { opacity: .58; filter: grayscale(.35); }
.course-card-copy { display: grid; align-content: start; padding: 25px; }
.course-card-copy > p { margin: 0 0 9px; color: var(--course-accent); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; }
.course-card-copy h3 { margin: 0; min-height: 2.35em; font-size: clamp(26px, 2.3vw, 37px); font-weight: 950; line-height: 1.02; letter-spacing: -.035em; }
.course-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.course-card-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #c6ced5; font-size: 12px; font-weight: 800; }
.course-card-action { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 950; }
.course-card-action b { color: var(--course-accent); font-size: 27px; }

.studio-about {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  padding: clamp(78px, 10vw, 150px) clamp(18px, 8vw, 124px);
  background: var(--paper);
  color: var(--ink);
}

.about-splash {
  min-height: 380px;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transform: rotate(-6deg);
  box-shadow: 18px 20px 0 var(--yellow);
}

.about-splash span { font-size: clamp(150px, 20vw, 280px); font-weight: 1000; line-height: .68; letter-spacing: -.1em; }
.about-splash b { margin-top: 24px; font-size: clamp(22px, 3vw, 38px); line-height: .88; text-align: center; text-transform: uppercase; }
.about-copy .eyebrow { color: #0b7987; }
.about-copy > p:not(.eyebrow) { max-width: 760px; margin: 30px 0; font-size: clamp(20px, 2vw, 29px); font-weight: 650; line-height: 1.28; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.about-chips span { padding: 9px 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; }

@media (max-width: 1040px) {
  .title-stage { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); }
  .title-stage-picture { min-height: 590px; }
  .title-camera { width: 770px; right: -280px; }
  .title-mic { width: 620px; right: -220px; }
}

@media (max-width: 780px) {
  .title-stage { min-height: auto; grid-template-columns: 1fr; align-items: start; padding-top: 36px; }
  .title-stage-copy { z-index: 7; }
  .title-stage h1 { font-size: clamp(76px, 24vw, 130px); }
  .title-stage-picture { min-height: 440px; margin: -30px -18px 0; }
  .title-camera { width: min(760px, 135vw); right: -32vw; bottom: -11%; }
  .title-mic { width: min(620px, 112vw); right: -28vw; top: -6%; }
  .sticker-rec { top: 22%; left: 7%; }
  .sticker-ready { left: 8%; bottom: 15%; }
  .title-frame { inset: 7% 18px 4%; }
  .library-header { align-items: start; flex-direction: column; }
  .library-header h2,
  .about-copy h2 { font-size: clamp(52px, 17vw, 88px); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-about { grid-template-columns: 1fr; }
  .about-splash { width: min(78vw, 430px); min-height: 0; aspect-ratio: 1; justify-self: center; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; grid-template-columns: 1fr auto; padding-inline: 14px; }
  .top-nav { display: none; }
  .sound-check { padding: 9px 11px; font-size: 12px; }
  .title-stage { padding-inline: 14px; }
  .title-badges { margin-bottom: 26px; }
  .title-badges > span { width: 100%; justify-content: center; }
  .title-stage h1 { font-size: clamp(68px, 24vw, 112px); }
  .title-action-line { margin-block: 27px 19px; font-size: 18px; }
  .title-buttons { display: grid; }
  .title-primary { min-height: 76px; }
  .title-secondary { min-height: 52px; }
  .title-stage-picture { min-height: 370px; }
  .title-camera { right: -43vw; bottom: -10%; }
  .title-mic { right: -43vw; }
  .sticker-take { right: 7%; bottom: 7%; }
  .course-library { padding-inline: 14px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card-photo { min-height: 230px; }
  .course-card-copy h3 { min-height: 0; }
  .studio-about { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .boom-ticker div { animation: none; }
  .title-camera,
  .title-mic { transition: none; }
}

/* 2026 identity: rounder type, hand-written accents, vector logo */
.brand {
  display: inline-flex;
  width: auto;
  transform: none;
  font-size: 0;
}

.brand-logo {
  display: block;
  width: clamp(150px, 13vw, 205px);
  height: auto;
}

.brand-small .brand-logo { width: 155px; }

.title-stage h1,
.library-header h2,
.about-copy h2 {
  font-family: "Rubik Mono BK", "Onest BK", sans-serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.library-header h2,
.about-copy h2 {
  font-size: clamp(52px, 6.4vw, 94px);
  line-height: .88;
}

.title-action-line,
.title-sticker,
.console-kicker,
.clip-label,
.course-card-copy > p,
.scene-copy .eyebrow,
.next-answer-hint,
.magic-badge,
.timer-note {
  font-family: "Onest BK", ui-sans-serif, system-ui, sans-serif;
  font-weight: 780;
  letter-spacing: .015em;
  text-transform: none;
}

.title-action-line {
  font-size: clamp(24px, 2.3vw, 34px);
  transform: rotate(-1deg);
}

.course-card-copy h3,
.scene-copy h2,
.plan-question span,
.finish-mark span {
  font-family: "Onest BK", ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
}

.course-card-copy h3 {
  letter-spacing: -.025em;
  line-height: 1.04;
}

.scene-copy h2 {
  letter-spacing: -.035em;
  line-height: 1.01;
}

@media (max-width: 560px) {
  .brand-logo { width: 146px; }
  .library-header h2,
  .about-copy h2 { font-size: clamp(46px, 14vw, 70px); }
}

/* TIMECODE identity */
.site-header {
  background: rgba(13, 12, 18, .88);
}

.timecode-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
}

.timecode-film {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--red);
  box-shadow: 0 8px 22px rgba(255, 59, 42, .2);
}

.timecode-film i {
  width: 100%;
  height: 11px;
  border-radius: 3px;
  background: var(--paper);
}

.timecode-name {
  font-family: "Rubik Mono BK", "Arial Black", sans-serif;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.timecode-name span {
  color: var(--red);
}

.brand-small .timecode-logo {
  transform: scale(.88);
  transform-origin: left center;
}

.title-stage {
  background:
    radial-gradient(circle at 79% 37%, rgba(155, 124, 255, .19), transparent 29%),
    radial-gradient(circle at 70% 78%, rgba(255, 59, 42, .14), transparent 28%),
    linear-gradient(125deg, #0d0c12 0 55%, #17121e 100%);
}

.title-stage h1.timecode-title {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: var(--paper);
  font-family: "Rubik Mono BK", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: none;
}

.title-stage h1.timecode-title span {
  width: auto;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  box-shadow: none;
}

.timecode-title-mark {
  display: grid;
  gap: 12px;
  width: clamp(54px, 5.8vw, 82px) !important;
  margin: 0 0 clamp(20px, 2.3vw, 32px) 8%;
}

.timecode-title-mark i {
  width: 100%;
  aspect-ratio: 1.12 / 1;
  border-radius: clamp(9px, 1vw, 15px);
  background: var(--red);
  box-shadow: 0 10px 28px rgba(255, 59, 42, .18);
}

.title-stage h1.timecode-title > strong {
  width: auto;
  margin: 0;
  color: var(--paper);
  font-size: clamp(42px, 5.8vw, 94px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.07em;
  white-space: nowrap;
  text-shadow: none;
}

.title-stage h1.timecode-title > strong span {
  color: var(--red);
}

.title-stage h1.timecode-title > small {
  margin-top: clamp(18px, 2vw, 28px);
  font-family: "Onest BK", sans-serif;
  font-size: clamp(11px, 1.05vw, 16px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: clamp(.16em, .42vw, .42em);
  color: #d6d0d8;
  white-space: nowrap;
}

.title-action-line b:nth-child(1) { color: var(--paper); }
.title-action-line b:nth-child(2) { color: var(--cyan); }
.title-action-line b:nth-child(3) { color: var(--red); }

@media (max-width: 780px) {
  .timecode-title-mark { margin-left: 4%; }
  .title-stage h1.timecode-title > small {
    white-space: normal;
    max-width: 34ch;
  }
}

@media (max-width: 560px) {
  .site-header { gap: 10px; padding-inline: 10px; }
  .sound-check { padding: 8px 10px; font-size: 11px; }
  .timecode-logo { gap: 9px; }
  .timecode-film { width: 34px; height: 34px; padding: 6px 9px; border-radius: 8px; }
  .timecode-film i { height: 9px; }
  .timecode-name { font-size: 16px; }
  .timecode-title-mark { width: 54px !important; gap: 8px; margin-bottom: 18px; }
  .title-stage h1.timecode-title > strong { font-size: clamp(39px, 11.3vw, 56px); }
  .title-stage h1.timecode-title > small { font-size: 10px; letter-spacing: .16em; }
}

@media (max-width: 380px) {
  .timecode-name { font-size: 15px; }
  .sound-check { font-size: 0; }
  .sound-check::after { content: "Звук"; font-size: 11px; }
}

/* TIMECODE brandbook layout: compact navigation and mobile-first lessons */
.site-header {
  position: relative;
  top: auto;
  z-index: 30;
  grid-template-columns: auto 1fr;
  min-height: 62px;
  padding: 9px clamp(16px, 4vw, 54px);
  background: var(--ink);
  backdrop-filter: none;
}

.top-nav {
  justify-self: end;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, .06);
}

.mobile-menu {
  display: none;
  justify-self: end;
  position: relative;
}

.mobile-menu summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

.mobile-menu summary i,
.mobile-menu summary i::before,
.mobile-menu summary i::after {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 9px;
  background: var(--red);
  content: "";
  transition: transform 160ms ease;
}

.mobile-menu summary i::before { transform: translateY(-5px); }
.mobile-menu summary i::after { transform: translateY(3px); }
.mobile-menu[open] summary i { background: transparent; }
.mobile-menu[open] summary i::before { transform: translateY(0) rotate(45deg); }
.mobile-menu[open] summary i::after { transform: translateY(-2px) rotate(-45deg); }

.mobile-menu nav {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  right: 0;
  min-width: 210px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #17141d;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .48);
}

.mobile-menu nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--paper);
  font-weight: 800;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible { background: rgba(255, 255, 255, .07); }

body.lesson-active > .site-header,
body.lesson-active > .site-footer { display: none; }

.lesson-shell {
  min-height: 100svh;
}

.lesson-toolbar {
  top: 0;
  min-height: 58px;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: 14px;
  padding: 8px clamp(14px, 3vw, 40px);
  background: rgba(13, 12, 18, .94);
}

.back-link,
.teacher-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, .035);
}

.back-link:hover,
.teacher-toggle:hover,
.back-link:focus-visible,
.teacher-toggle:focus-visible { border-color: var(--red); }

.lesson-code { color: var(--red); }

.progress-track { height: 4px; }
.progress-bar { background: var(--red); }

.scene-stage {
  min-height: calc(100svh - 58px);
  padding-top: clamp(24px, 3vw, 42px);
}

.lesson-nav {
  padding-top: 22px;
}

.nav-button {
  min-height: 52px;
  border-radius: 16px;
}

.nav-button.next {
  color: var(--paper);
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 900px) {
  .scene,
  .scene-cover {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .scene-copy h1,
  .scene-copy h2 { max-width: 18ch; }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    gap: 10px;
    padding: 8px 12px;
  }

  .top-nav { display: none; }
  .mobile-menu { display: block; }
  .timecode-logo { gap: 8px; }
  .timecode-film { width: 34px; height: 34px; padding: 6px 9px; }
  .timecode-name { font-size: clamp(15px, 4.4vw, 18px); }

  .title-stage {
    min-height: auto;
    gap: 0;
    padding: 24px 14px 0;
  }

  .title-badges {
    gap: 6px;
    margin-bottom: 22px;
    font-size: 10px;
    letter-spacing: .045em;
  }

  .title-badges > span,
  .title-badges > b,
  .title-badges > i {
    width: auto;
    min-height: 30px;
    padding: 6px 9px;
    justify-content: center;
  }

  .timecode-title-mark {
    width: 48px !important;
    gap: 7px;
    margin: 0 0 16px 3%;
  }

  .title-stage h1.timecode-title > strong {
    font-size: clamp(38px, 11vw, 58px);
  }

  .title-stage h1.timecode-title > small {
    margin-top: 15px;
    max-width: 31ch;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .14em;
  }

  .title-action-line {
    margin: 24px 0 18px;
    font-size: 18px;
  }

  .title-buttons { gap: 8px; }
  .title-primary { min-height: 66px; border-radius: 16px; }
  .title-secondary { min-height: 48px; }

  .title-stage-picture {
    min-height: 340px;
    margin: -4px -14px 0;
  }

  .title-camera {
    width: min(760px, 145vw);
    right: -49vw;
    bottom: -8%;
  }

  .title-mic {
    width: min(620px, 118vw);
    right: -43vw;
    top: 1%;
  }

  .title-frame { inset: 8% 14px 5%; }
  .sticker-rec { top: 18%; left: 5%; }
  .sticker-ready { left: 5%; bottom: 17%; }
  .sticker-take { right: 5%; bottom: 7%; }

  .course-library { padding: 62px 14px 72px; }
  .library-header { gap: 18px; margin-bottom: 30px; }
  .library-header h2 { font-size: clamp(44px, 14vw, 66px); line-height: .92; }
  .library-header > p { padding: 8px 11px; font-size: 12px; }
  .course-grid { grid-template-columns: 1fr; gap: 16px; }
  .course-card { border-radius: 20px; }
  .course-card-photo { min-height: 210px; }
  .course-card-copy { padding: 20px; }
  .course-card-copy h3 { font-size: 27px; }
  .course-card-tags { margin: 16px 0; }

  .studio-about { padding: 66px 18px; }
  .about-splash { width: min(70vw, 320px); }
  .about-copy h2 { font-size: clamp(42px, 13vw, 62px); line-height: .94; }
  .about-copy > p:not(.eyebrow) { margin: 22px 0; font-size: 19px; }

  .lesson-toolbar {
    position: sticky;
    top: 0;
    min-height: 56px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 10px 11px;
  }

  .lesson-code,
  .progress-caption { display: none; }

  .progress-wrap { display: contents; }

  .progress-track {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0;
  }

  .progress-label {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    color: var(--muted);
    font-size: 9px;
  }

  .back-link,
  .teacher-toggle {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .back-link { grid-column: 1; grid-row: 1; }
  .teacher-toggle { grid-column: 3; grid-row: 1; }

  .scene-stage,
  .lesson-red .scene-stage {
    min-height: calc(100svh - 56px);
    padding: 18px 14px calc(82px + env(safe-area-inset-bottom));
  }

  .scene,
  .scene-cover,
  .scene-magic {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
  }

  .scene-meta {
    justify-content: flex-start;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .scene-meta span:first-child { display: none; }
  .scene-meta span:last-child { max-width: none; text-align: left; }

  .scene-copy h1,
  .scene-copy h2,
  .scene-magic .scene-copy h2,
  .magic-promise .scene-copy h2,
  .magic-big-question .scene-copy h2,
  .magic-game-intro .scene-copy h2,
  .magic-shots-answer .scene-copy h2 {
    max-width: none;
    font-size: clamp(34px, 9.5vw, 48px);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .scene-copy > p,
  .lesson-red .scene-copy > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.42;
  }

  .scene-accent {
    margin-top: 18px;
    padding: 14px 15px;
    font-size: 16px;
    line-height: 1.3;
  }

  .scene-visual,
  .magic-stage,
  .media-card { width: 100%; }

  .cover-slate {
    min-height: min(54svh, 410px);
    border-radius: 16px;
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--lesson-accent) 22%, transparent);
  }

  .media-card,
  .magic-type-card,
  .answer-panel,
  .practice-card { border-radius: 16px; }

  .answer-button,
  .choice-button,
  .magic-quiz button {
    min-height: 56px;
    font-size: 17px;
  }

  .lesson-nav,
  .lesson-red .lesson-nav {
    position: fixed;
    z-index: 24;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(13, 12, 18, .96);
    backdrop-filter: blur(16px);
  }

  .lesson-nav .nav-button {
    width: 100%;
    min-height: 50px;
    justify-self: stretch;
    border-radius: 14px;
  }

  .scene-dots { display: none; }
}

@media (max-width: 390px) {
  .mobile-menu summary span { display: none; }
  .mobile-menu summary { width: 40px; justify-content: center; padding: 8px; }
  .title-badges > i { display: none; }
  .title-stage h1.timecode-title > strong { font-size: 37px; }
  .title-action-line { gap: 5px 12px; font-size: 17px; }
}
