:root {
  --paper: #f2edde;
  --white: #fbf8ee;
  --ink: #283f35;
  --muted: #566353;
  --line: #d2c9b4;
  --gold: #a1844c;
  --rust: #a84936;
  --mint: #e0e5d5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 8% 5%, #e4dcc53b, transparent 38%), var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 400; }
img, svg { max-width: 100%; }
.wrap { width: min(1300px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 20px; top: -80px; z-index: 20; background: var(--white); padding: 12px; }
.skip:focus { top: 12px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 99px; gap: 24px; }
.brand { display: flex; gap: 15px; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 41px; height: 47px; background: var(--rust); color: var(--paper); outline: 1px solid var(--rust); outline-offset: 3px; border: 1px solid #e2bc9459; font: 40px/.8 var(--serif); padding-bottom: 6px; transform: rotate(-2deg); }
.brand b { display: block; font-size: 16px; font-weight: 600; letter-spacing: .15em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .025em; margin-top: 2px; }
.topbar nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.topbar nav a { padding-block: 12px; text-decoration: none; }
.topbar nav a:hover { color: var(--rust); }
.nav-private { border-left: 1px solid var(--line); padding-left: 26px; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.eyebrow:before { content: ''; width: 22px; height: 1px; background: currentColor; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 46px; padding: 54px 0 41px; }
.hero-copy { padding-bottom: 16px; }
.hero h1 { font: clamp(54px, 5.7vw, 82px)/1.04 var(--serif); letter-spacing: -.043em; margin: 27px 0 25px; }
.hero h1 em { color: #50705b; font-style: normal; }
.hero .lead { max-width: 430px; color: #657064; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin: 32px 0 30px; }
.button, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 49px; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; }
.button:hover { background: #3e5e4b; border-color: #3e5e4b; }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ghost:hover { background: var(--mint); }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; text-decoration: none; border-bottom: 1px solid #aaa38e; font-size: 14px; }
.text-link:hover { color: var(--rust); border-color: var(--rust); }
.hero-small { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; }
.small-seal { display: inline-grid; place-items: center; flex-shrink: 0; width: 27px; height: 29px; color: var(--rust); border: 1px solid var(--rust); font: 18px var(--serif); }
.hero-art { min-width: 0; padding: 11px; border: 1px solid #bfb79e; background: #e6dfc9; box-shadow: 7px 8px 0 -2px #e7dfcd, 7px 8px 0 -1px #d3c9b2; }
.landscape-frame { position: relative; border: 1px solid #cbc1a7; overflow: hidden; background: #eae4d1; }
.hero-landscape { display: block; width: 100%; aspect-ratio: 920/660; }
.landscape-label { position: absolute; right: 20px; top: 24px; writing-mode: vertical-rl; letter-spacing: .35em; font-size: 10px; color: #425d4b; }
.landscape-seal { position: absolute; right: 19px; bottom: 25px; width: 29px; height: 38px; display: grid; place-items: center; color: #e8ddbf; background: #a34c39; border: 1px solid #d3ad88; outline: 1px solid #a34c39; outline-offset: 2px; font: 24px var(--serif); }
.hero-art figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 2px 1px; color: #6e7564; font-size: 10px; letter-spacing: .07em; }
.hero-art figcaption b { font: 15px var(--serif); color: #465d4c; letter-spacing: .015em; }
.intro-line { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 12px 0 69px; }
.intro-line > div { display: flex; align-items: center; gap: 18px; padding: 22px 35px; }
.intro-line > div:first-child { padding-left: 0; }
.intro-line > div + div { border-left: 1px solid var(--line); }
.intro-number { font: 33px var(--serif); color: #9b8b65; }
.intro-line p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.intro-line strong { font-weight: 500; color: var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 27px; }
.section-head h2 { font: 43px var(--serif); margin-top: 10px; letter-spacing: -.025em; }
.section-head > p { color: var(--muted); font-size: 14px; max-width: 310px; }
.collection-tabs { display: flex; gap: 6px; padding-bottom: 0; border-bottom: 1px solid var(--line); margin: 27px 0 22px; }
.collection-tabs a { display: flex; align-items: center; gap: 18px; padding: 15px 22px; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; min-height: 51px; text-decoration: none; font-size: 14px; }
.collection-tabs a[aria-current=true] { border-color: var(--line); background: var(--ink); color: var(--white); }
.collection-tabs span { opacity: .65; font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 2px; font-size: 12px; min-height: 44px; padding: 9px 13px; }
.filters button[aria-pressed=true] { background: #e2ddcb; border-color: #bdb59b; color: var(--ink); }
.filters button:hover { color: var(--rust); }
.search { display: flex; align-items: center; border-bottom: 1px solid #b7b09c; color: var(--muted); padding: 4px 0 4px 6px; flex: 0 1 230px; }
.search svg { flex-shrink: 0; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 9px 10px; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #72796a; opacity: 1; }
.catalog-count { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 22px; gap: 20px; }
.collection-title { font: 26px var(--serif); }
.collection-heading > span { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
#agents { margin-top: 30px; }
.lesson-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 27px; }
.lesson-card { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #f7f3e7; transition: border-color .2s, box-shadow .2s; }
.lesson-card.featured-card { grid-column: span 3; }
.lesson-card:hover { border-color: #89967d; box-shadow: 0 5px 17px #43523e0d; }
.poster-link { position: relative; display: block; background: #e4e4d4; aspect-ratio: 760/440; overflow: hidden; border-bottom: 1px solid var(--line); }
.poster-link > svg, .poster-link > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lesson-card:hover .poster-link > svg, .lesson-card:hover .poster-link > img { transform: scale(1.018); }
.poster-number { position: absolute; top: 15px; left: 15px; display: grid; place-items: center; width: 30px; height: 35px; font: 18px var(--serif); color: #eee3c9; background: #8f4839; border: 1px solid #d2ad86; }
.poster-type { position: absolute; bottom: 12px; left: 15px; padding: 3px 8px; background: #f7f2e0e8; color: #425e4a; font-size: 10px; border: 1px solid #b9bea6b3; }
.card-body { padding: 23px 24px 20px; display: flex; flex: 1; flex-direction: column; }
.card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--rust); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 11px; }
.card-kicker span { color: #566353; font-size: 9px; letter-spacing: .06em; }
.card-body h3 { font: 27px var(--serif); letter-spacing: -.01em; margin-bottom: 9px; }
.featured-card .card-body h3 { font-size: 32px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--rust); }
.card-body > p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #ddd6c4; padding-top: 16px; margin-top: 23px; font-size: 12px; }
.card-bottom > span { color: var(--muted); }
.card-bottom a { display: inline-flex; gap: 16px; align-items: center; min-height: 30px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.empty { border: 1px dashed var(--line); padding: 30px; text-align: center; margin-top: 22px; }
.empty p { margin-bottom: 16px; color: var(--muted); }
.method-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; margin: 68px 0 46px; padding: 35px 0; border-block: 1px solid var(--line); }
.method-mark { color: var(--rust); border: 1px solid var(--rust); outline: 1px solid #ae77624d; outline-offset: 5px; width: 58px; height: 77px; display: grid; place-items: center; font: 38px var(--serif); margin-inline: 5px; }
.method-band h2 { font: 31px var(--serif); margin: 12px 0; }
.method-band p:not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 670px; }
.method-band .text-link { white-space: nowrap; }
.other-world { position: relative; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 30px; background: #263f35; color: var(--white); margin: 0 0 75px; padding: 39px 42px; border: 1px solid #1a352b; }
.other-world:before { content: ''; position: absolute; inset: 7px; border: 1px solid #a69c7252; pointer-events: none; }
.other-symbol { color: #b2a378; }
.other-symbol svg { display: block; }
.other-world .eyebrow { color: #c0b182; }
.other-world h2 { font: 32px var(--serif); margin: 11px 0 13px; }
.other-world p:not(.eyebrow) { color: #c6cfbe; font-size: 14px; max-width: 640px; }
.other-world .ghost { color: #f6edda; border-color: #8b967b; white-space: nowrap; }
.other-world .ghost:hover { background: #3c5747; }
.footer { border-top: 1px solid var(--line); padding: 35px 0 24px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 17px; text-decoration: none; }
.footer-brand .brand-mark { width: 27px; height: 31px; font-size: 27px; padding-bottom: 3px; outline-offset: 2px; }
.footer-wordmark { font-size: 14px; letter-spacing: .14em; color: var(--ink); font-weight: 600; }
.footer p, .footer a { font-size: 12px; }
.footer-links { display: flex; gap: 23px; flex-wrap: wrap; margin-top: 17px; }
.footer-address { text-align: right; }
.footer-address p + p { margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 27px; padding-top: 19px; font-size: 11px; }
.lesson-main { padding: 32px 0 68px; }
.back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; color: var(--muted); }
.lesson-heading { margin: 23px 0 28px; }
.lesson-heading .eyebrow { margin-bottom: 14px; }
.lesson-heading h1 { font: clamp(36px, 4.5vw, 57px) var(--serif); letter-spacing: -.03em; margin-bottom: 13px; }
.lesson-heading .lead { font-size: 17px; color: var(--muted); max-width: 840px; }
.lesson-goal { font-size: 14px; padding: 13px 18px; background: #e5e5d3; border-left: 3px solid var(--rust); margin-top: 22px; max-width: 1000px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 25px; }
.stage-panel { border: 1px solid #b9baa4; background: #ecebd9; overflow: hidden; }
.scene-top { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; color: #53654f; padding: 13px 20px; border-bottom: 1px solid var(--line); }
#scene { display: block; line-height: 0; touch-action: pan-y; }
#scene svg { width: 100%; height: auto; display: block; }
.phase-caption { display: flex; align-items: start; gap: 14px; padding: 18px 21px 15px; background: #f6f2e4; }
.phase-stamp { color: var(--rust); font-size: 15px; padding-top: 3px; }
.phase-caption h2 { font: 22px/1.25 var(--serif); margin-bottom: 6px; }
.phase-caption p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.phase-nav { display: flex; gap: 0; padding: 0 16px 13px; background: #f6f2e4; flex-wrap: wrap; }
.phase-nav:empty { display: none; }
.phase-nav .phase-number { display: block; font: 18px var(--serif); margin-bottom: 5px; }
.phase-nav button { flex: 1; min-width: 90px; font-size: 11px; line-height: 1.3; min-height: 44px; padding: 10px 6px; border: 0; border-top: 2px solid #cbc7b2; background: transparent; color: var(--muted); }
.phase-nav button[aria-current=step], .phase-nav button[aria-current=true], .phase-nav button[aria-pressed=true], .phase-nav button.active { border-color: var(--rust); color: var(--rust); background: #e9e2cc; }
.scene-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; background: var(--white); border-top: 1px solid var(--line); }
.scene-toolbar button { min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 2px; padding: 9px 12px; font-size: 13px; }
.scene-toolbar button:first-child { background: var(--ink); color: var(--white); border-color: var(--ink); }
.scene-toolbar label { font-size: 12px; color: var(--muted); margin-left: auto; }
.scene-toolbar select { max-width: 115px; font-size: 13px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); }
.model-status { font-size: 13px; line-height: 1.65; padding: 14px 20px; min-height: 63px; background: #e1e5d4; border-top: 1px solid var(--line); }
.model-status.done { background: #dbe5cc; }
.controls { background: #f7f3e7; border: 1px solid var(--line); padding: 24px 22px 27px; }
.controls .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 11px; }
.controls .eyebrow:before { display: none; }
.controls h2 { font: 29px var(--serif); margin-bottom: 11px; }
.controls > p:not(.eyebrow) { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.control { display: block; margin-bottom: 25px; font-size: 13px; }
.control:last-child { margin-bottom: 0; }
.control-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.control output { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--rust); font-weight: 600; }
.control input[type=range] { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--rust); }
.control select { width: 100%; min-height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 13px; }
.control-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 17px; }
.metric { padding: 16px; border: 1px solid var(--line); background: #f7f3e7; }
.metric span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.metric b { font: 21px var(--serif); overflow-wrap: anywhere; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0; }
.guide-panel, .quiz { padding: 28px 30px; border: 1px solid var(--line); background: #f7f3e7; }
.guide-panel h2, .quiz h2 { font: 29px var(--serif); margin: 12px 0 17px; }
.guide-panel h3 { font-size: 16px; line-height: 1.4; margin: 17px 0 8px; }
.guide-panel p:not(.eyebrow) { font-size: 15px; color: #5e6c5e; }
.guide-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.guide-nav button { border: 1px solid var(--line); background: var(--paper); padding: 9px 15px; border-radius: 2px; font-size: 13px; color: var(--ink); min-height: 44px; }
.quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz legend { font-size: 15px; margin-bottom: 15px; }
.answers { display: grid; gap: 9px; }
.answers button { text-align: left; min-height: 44px; font-size: 14px; line-height: 1.5; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 11px 14px; }
.answers button.correct { border-color: #67835e; background: #e1ebd8; }
.answers button.wrong { border-color: #b77a52; background: #f5e8d9; }
.quiz-feedback { font-size: 14px; margin-top: 15px; color: var(--muted); min-height: 28px; }
.field-note { display: flex; gap: 19px; align-items: start; padding: 24px 0; border-block: 1px solid var(--line); margin: 27px 0 20px; }
.field-note .small-seal { margin: 2px 3px; }
.field-note h2 { font: 24px var(--serif); margin-bottom: 8px; }
.field-note p { color: var(--muted); font-size: 14px; max-width: 950px; }
.limits { margin: 12px 0; padding: 17px 22px; border: 1px solid var(--line); background: #eae7d7; }
.limits summary { cursor: pointer; font-size: 14px; }
.limits p, .limits a { color: var(--muted); font-size: 14px; margin-top: 12px; }
.source-links { display: flex; gap: 20px; flex-wrap: wrap; }
.next-lessons { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; font-size: 14px; }
.next-lessons a { padding-block: 8px; }
.error-box { padding: 45px; border: 1px solid var(--line); margin: 30px auto; }
.error-box h1 { font: 40px var(--serif); margin-bottom: 16px; }
.error-box a { display: inline-flex; margin-top: 22px; }
.no-script { border-left: 3px solid var(--rust); padding: 16px 20px; margin: 24px 0; background: #e8e0c8; font-size: 14px; }
.lesson-fallback h1 { font: 48px var(--serif); margin-top: 18px; }
.lesson-fallback h2 { font: 28px var(--serif); margin: 24px 0 8px; }
.lesson-fallback p { max-width: 900px; font-size: 15px; color: var(--muted); }
.focus-mode .guide, .focus-mode .limits, .focus-mode .footer, .focus-mode .next-lessons, .focus-mode .field-note { display: none; }
.motion-note { font-size: 13px; color: var(--muted); margin: 10px 0; }
.lesson-progress { width: 100%; display: block; height: 4px; border: 0; accent-color: var(--rust); }
.lesson-progress::-webkit-progress-bar { background: #ccd3bf; }
.lesson-progress::-webkit-progress-value { background: var(--rust); }
.hidden-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.compare-section { margin-top: 22px; border: 1px solid var(--line); background: #f7f3e7; padding: 24px 26px; }
.compare-heading { display: flex; justify-content: space-between; gap: 22px; align-items: start; }
.compare-heading h2 { font: 28px/1.2 var(--serif); margin: 8px 0; }
.compare-heading p:not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 600px; line-height: 1.6; }
.compare-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-buttons button { font-size: 13px; min-height: 44px; white-space: nowrap; padding: 9px 13px; border: 1px solid var(--ink); color: var(--ink); background: transparent; border-radius: 2px; }
.compare-buttons button:first-child { background: var(--ink); color: var(--white); }
.compare-notice { margin: 19px 0 12px; color: var(--ink); font-size: 14px; }
.compare-changes { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.compare-change { border-left: 3px solid #97ad8b; padding: 8px 13px; background: var(--mint); min-width: 190px; flex: 1; }
.compare-change > span, .compare-change > b { display: block; font-size: 13px; }
.compare-change > b { font-weight: 600; margin-top: 2px; }
.compare-hint { font-size: 13px; color: var(--muted); margin: 12px 0; }
.compare-table-scroll { overflow-x: auto; }
.compare-table-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; min-width: 350px; }
.compare-table-scroll caption { text-align: left; font-weight: 500; margin-bottom: 9px; }
.compare-table-scroll th, .compare-table-scroll td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.compare-table-scroll th { font-weight: 550; }
.compare-table-scroll thead th { background: #eae7d7; }
@media (min-width: 1100px) {
  .controls { position: sticky; top: 24px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .topbar nav { gap: 21px; }
  .nav-private { display: none; }
  .hero { gap: 30px; padding-top: 44px; }
  .hero h1 { font-size: 63px; }
  .hero .lead { font-size: 16px; }
  .hero-actions { gap: 18px; }
  .hero-art { padding: 8px; }
  .intro-line > div { padding-inline: 23px; }
  .catalog-controls { align-items: flex-start; flex-direction: column; gap: 12px; }
  .search { flex-basis: auto; width: min(100%, 310px); }
  .lesson-cards { gap: 19px; }
  .card-body { padding: 20px; }
  .card-body h3 { font-size: 25px; }
  .featured-card .card-body h3 { font-size: 29px; }
  .card-bottom { flex-wrap: wrap; gap: 5px 15px; }
  .method-band { grid-template-columns: auto 1fr; gap: 26px; }
  .method-band .text-link { grid-column: 2; justify-self: start; }
  .other-world { grid-template-columns: 80px 1fr; gap: 24px; padding: 33px; }
  .other-world .ghost { grid-column: 2; justify-self: start; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; }
  .controls { padding: 22px 18px; }
  .controls h2 { font-size: 26px; }
  .scene-toolbar label { margin-left: 0; }
  .compare-heading { flex-direction: column; gap: 14px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .topbar .wrap { min-height: 88px; }
  .topbar nav { gap: 17px; font-size: 12px; }
  .brand b { font-size: 14px; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 34px; height: 40px; font-size: 34px; }
  .hero { gap: 22px; }
  .hero h1 { font-size: 48px; }
  .hero .lead { font-size: 14px; }
  .hero-actions { margin-block: 24px; }
  .hero .button, .hero .text-link { font-size: 12px; }
  .hero-small { font-size: 11px; gap: 10px; }
  .landscape-label { right: 12px; top: 15px; font-size: 8px; }
  .landscape-seal { right: 12px; bottom: 17px; width: 22px; height: 28px; font-size: 19px; }
  .hero-art figcaption { gap: 7px; font-size: 9px; }
  .hero-art figcaption b { font-size: 12px; }
  .intro-line { margin-top: 6px; margin-bottom: 45px; }
  .intro-line > div { gap: 13px; padding: 18px 16px; }
  .intro-number { font-size: 27px; }
  .intro-line p { font-size: 11px; }
  .section-head h2 { font-size: 37px; }
  .section-head > p { font-size: 12px; max-width: 240px; }
  .lesson-card { grid-column: span 3; }
  .collection-tabs a { font-size: 13px; padding-inline: 17px; gap: 12px; }
  .card-body { padding: 18px; }
  .card-kicker { font-size: 9px; }
  .card-kicker span { display: none; }
  .featured-card .card-body h3, .card-body h3 { font-size: 26px; }
  .card-body > p { font-size: 13px; }
  .method-band { margin-top: 45px; }
  .method-band h2 { font-size: 29px; }
  .other-world { margin-bottom: 45px; }
  .other-world h2 { font-size: 29px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .controls { padding: 24px; }
  .controls > p:not(.eyebrow) { margin-bottom: 20px; }
  #settings { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .control { margin-bottom: 0; }
  .guide { gap: 18px; }
  .guide-panel, .quiz { padding: 23px; }
  .guide-panel h2, .quiz h2 { font-size: 26px; }
  .compare-heading { flex-direction: row; }
}
@media (max-width: 560px) {
  .topbar .wrap { flex-wrap: wrap; gap: 15px; padding-block: 18px 12px; min-height: 0; }
  .brand { gap: 13px; }
  .brand b { font-size: 14px; }
  .brand small { font-size: 11px; }
  .topbar nav { width: 100%; gap: 23px; font-size: 12px; border-top: 1px solid #d6cfbd; padding-top: 4px; }
  .topbar nav a { padding-block: 9px; }
  .hero { grid-template-columns: 1fr; padding: 32px 0 30px; gap: 27px; }
  .hero-copy { padding-bottom: 0; }
  .hero .eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(45px, 12vw, 65px); margin: 20px 0; letter-spacing: -.04em; }
  .hero .lead { font-size: 16px; max-width: none; line-height: 1.75; }
  .hero-actions { gap: 20px; margin: 25px 0 22px; }
  .hero .button, .hero .text-link { font-size: 13px; }
  .hero-small { font-size: 12px; }
  .hero-art { padding: 8px; box-shadow: 5px 6px 0 -2px #e7dfcd, 5px 6px 0 -1px #d3c9b2; }
  .hero-art figcaption { padding-top: 11px; font-size: 9px; }
  .hero-art figcaption b { font-size: 14px; }
  .intro-line { grid-template-columns: 1fr; margin-bottom: 39px; }
  .intro-line > div, .intro-line > div:first-child { padding: 15px 0; gap: 18px; }
  .intro-line > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .intro-line p { font-size: 13px; }
  .intro-line br { display: none; }
  .intro-line strong { margin-left: 5px; }
  .intro-number { font-size: 26px; min-width: 32px; }
  .section-head { flex-direction: column; align-items: start; gap: 13px; margin-bottom: 22px; }
  .section-head h2 { font-size: 37px; }
  .section-head > p { font-size: 14px; max-width: none; }
  .section-head > p br { display: none; }
  .collection-tabs { flex-direction: column; gap: 0; margin-top: 23px; }
  .collection-tabs a { padding: 13px 16px; justify-content: space-between; font-size: 14px; border: 1px solid var(--line); }
  .catalog-controls { gap: 14px; }
  .filters { gap: 0; }
  .filters button { font-size: 12px; padding-inline: 11px; }
  .search { width: 100%; }
  .search input { font-size: 16px; }
  .catalog-count { font-size: 11px; margin-top: 5px; }
  .collection-heading { gap: 13px; padding-top: 17px; margin-bottom: 18px; }
  .collection-title { font-size: 24px; }
  .collection-heading > span { flex-shrink: 0; font-size: 10px; }
  .lesson-cards { grid-template-columns: 1fr; gap: 22px; }
  .lesson-card, .lesson-card.featured-card { grid-column: auto; }
  .poster-number { top: 12px; left: 12px; }
  .poster-type { left: 12px; bottom: 10px; font-size: 10px; }
  .card-body { padding: 20px; }
  .card-kicker { font-size: 10px; }
  .card-kicker span { display: inline; font-size: 8px; }
  .card-body h3, .featured-card .card-body h3 { font-size: 29px; }
  .card-body > p { font-size: 15px; }
  .card-bottom { font-size: 12px; margin-top: 19px; padding-top: 13px; }
  .method-band { grid-template-columns: 1fr; gap: 19px; padding: 29px 0; margin: 40px 0 31px; }
  .method-mark { width: 37px; height: 45px; font-size: 28px; }
  .method-band h2 { font-size: 30px; }
  .method-band p:not(.eyebrow) { font-size: 15px; }
  .method-band .text-link { grid-column: 1; }
  .other-world { grid-template-columns: 1fr; gap: 21px; padding: 30px 26px; margin-bottom: 40px; }
  .other-symbol { width: 65px; }
  .other-world h2 { font-size: 31px; }
  .other-world p:not(.eyebrow) { font-size: 15px; }
  .other-world .ghost { grid-column: 1; }
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-address { text-align: left; }
  .footer-links { gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .lesson-main { padding-top: 17px; }
  .lesson-heading { margin-top: 17px; }
  .lesson-heading h1 { font-size: 39px; }
  .lesson-heading .lead { font-size: 16px; }
  .lesson-goal { font-size: 14px; padding: 13px 15px; }
  .scene-top { font-size: 10px; gap: 14px; padding: 12px 14px; }
  .scene-top span:first-child { max-width: 70%; }
  .scene-top span:last-child { white-space: nowrap; }
  .phase-caption { padding: 17px 15px; gap: 10px; }
  .phase-caption h2 { font-size: 23px; }
  .phase-caption p { font-size: 14px; }
  .phase-nav { padding-inline: 10px; }
  .phase-nav button { min-width: 80px; flex-basis: 25%; font-size: 11px; }
  .scene-toolbar { padding: 13px 12px; gap: 8px; }
  .scene-toolbar button { font-size: 13px; padding: 9px 11px; }
  .scene-toolbar label { font-size: 13px; }
  .model-status { padding: 13px 15px; font-size: 14px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 13px 11px; }
  .metric span { font-size: 11px; }
  .metric b { font-size: 19px; }
  #settings { grid-template-columns: 1fr; gap: 24px; }
  .control { font-size: 15px; }
  .control select { font-size: 16px; }
  .control input[type=range] { height: 32px; }
  .controls { padding: 23px; }
  .controls > p:not(.eyebrow) { font-size: 14px; }
  .guide { grid-template-columns: 1fr; margin-top: 25px; }
  .guide-panel, .quiz { padding: 24px; }
  .guide-panel p:not(.eyebrow), .quiz legend { font-size: 16px; }
  .answers button, .quiz-feedback { font-size: 15px; }
  .compare-section { padding: 22px 18px; }
  .compare-heading { flex-direction: column; gap: 14px; }
  .compare-heading h2 { font-size: 28px; }
  .compare-heading p:not(.eyebrow), .compare-notice { font-size: 15px; }
  .compare-buttons button { font-size: 14px; }
  .compare-table-scroll table { min-width: 320px; }
  .field-note p, .limits p, .limits a, .limits summary { font-size: 15px; }
  .next-lessons { font-size: 14px; flex-direction: column; gap: 9px; }
  .error-box { padding: 28px 22px; }
  .error-box h1 { font-size: 32px; }
  .lesson-fallback h1 { font-size: 38px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .topbar nav { gap: 18px; }
  .hero-actions { gap: 15px; }
  .hero .button { padding-inline: 16px; }
  .hero .text-link { gap: 9px; }
  .hero-small { font-size: 11px; }
  .intro-line p { font-size: 12px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .metric span { margin-bottom: 0; font-size: 12px; }
  .card-kicker span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .lesson-card:hover .poster-link > svg, .lesson-card:hover .poster-link > img { transform: none; }
}
