/* Spellcast3D's website. The colours, radii and fonts are the app's own, so a screen recording sits in the page. */

:root {
  --bg: #0c0e12;
  --surface: #14171d;
  --surface-2: #191d25;
  --surface-3: #222733;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #e9ecf3;
  --text-2: #a9b1bf;
  --text-3: #808999;
  --accent: #8b7dff;
  --accent-2: #a89dff;
  --accent-soft: rgba(139, 125, 255, 0.14);
  --brand: linear-gradient(135deg, #a193ff, #5a6dff);
  --on-brand: #0b0c14;
  --ok: #45d29f;
  --warn: #f1b64c;
  --radius: 20px;
  --radius-sm: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --top-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 650; max-width: 28ch; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c9c2ff; }
code { font: 0.9em var(--mono); background: var(--surface-3); border-radius: 6px; padding: 0.12em 0.42em; white-space: nowrap; }
small { font-size: 0.78em; color: var(--text-3); }
svg { width: 1.25em; height: 1.25em; flex: none; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.section { padding: 104px 0 0; }
.section > .wrap > h2 + * { margin-top: 44px; }
.fine { font-size: 0.9rem; color: var(--text-3); }
.kicker { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.accent-text { background: linear-gradient(100deg, #c2b9ff, #8090ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; text-decoration: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--surface-3); color: var(--text); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }


/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.72em 1.25em; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand);
  font: 650 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 10px 34px rgba(110, 100, 255, 0.4); }
.btn-big { font-size: 1.06rem; padding: 0.85em 1.45em; }
.btn-small { font-size: 0.92rem; padding: 0.55em 1.05em; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-3); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }


/* Top bar */

.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: rgba(12, 14, 18, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 650 1.1rem var(--font-display); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.top-nav { display: flex; gap: 4px; margin-right: auto; }
.top-nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.top-side { display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-2); }
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.icon-link + .btn { margin-left: 8px; }


/* Hero */

.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.hero::before {   /* a viewport's floor grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(124, 112, 255, 0.2), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%);
  mask-image: linear-gradient(#000 30%, transparent 92%);
}
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.hero h1 span { display: block; padding-bottom: 0.14em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 46rem; margin-top: 16px; }
.hero .cta { justify-content: center; margin-top: 36px; }
.release { font: 0.82rem var(--mono); color: var(--text-3); margin-top: 20px; }

.screen { margin: 60px 0 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 40px 120px rgba(90, 80, 255, 0.22), 0 24px 64px rgba(0, 0, 0, 0.5); }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.screen-bar span { margin: 0 auto; transform: translateX(-27px); font: 0.78rem var(--mono); color: var(--text-3); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 18px; }
.screen video { width: 100%; height: auto; background: #000; }
.screen.is-missing { display: none; }


/* The idea: one prop at a time reloads the models, stage by stage loads each of them once */

.idea-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; color: var(--text-2); }
.idea-text .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 14px; color: var(--text); font-size: 0.95rem; font-weight: 600; }
.flow i { color: var(--accent); font-style: normal; }

.race { --block-h: 42px; --tray-pad: 5px; margin: 48px 0 0; padding: 0; border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px); background: var(--surface); overflow: hidden; }
.race-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 22px 32px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.race-title { font: 650 1.3rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.race-props { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.race-props input { width: 200px; accent-color: var(--accent); cursor: pointer; }
.race-props output { min-width: 2ch; font: 600 1.05rem var(--mono); color: var(--accent-2); text-align: right; }

.lane { padding: 26px 32px 22px; }
.lane + .lane { border-top: 1px solid var(--line); }
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.lane-kicker { width: 100%; font: 600 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--warn); }
.lane.is-ours .lane-kicker { color: var(--accent-2); }
.lane h3 { font-size: 1.2rem; }
.lane-loads { margin-left: auto; display: flex; align-items: baseline; gap: 8px; font-size: 0.9rem; color: var(--text-3); white-space: nowrap; }
.lane-loads b { font: 700 1.8rem/1 var(--font-display); color: var(--warn); font-variant-numeric: tabular-nums; }
.lane.is-ours .lane-loads b { color: var(--accent-2); }

/* What a lane is doing right now. */
.lane-now { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--surface-3); font-size: 0.82rem; color: var(--text-2); white-space: nowrap; }
.lane-now:empty { visibility: hidden; }
.lane-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lane-now[data-kind="load"]::before { background: var(--warn); }
.lane-now[data-kind="done"] { color: var(--ok); background: rgba(69, 210, 159, 0.12); }
.lane-now[data-kind="done"]::before { background: var(--ok); }

/* Both lanes share one scale of time: a tray and a block are as wide as the time they take.
   A block is a grey slot until its turn comes, then it takes its colour. */
.track { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.track > *, .block { flex: var(--units) 1 0; min-width: 0; }
.blocks { display: flex; gap: 3px; padding: var(--tray-pad); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.block { position: relative; display: grid; place-items: center; height: var(--block-h); border-radius: 7px; container-type: inline-size; background: rgba(255, 255, 255, 0.07); transition: box-shadow 0.2s; }
.block.is-load { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 4px, rgba(255, 255, 255, 0.04) 4px 8px); }
.block::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.25s; }
.block.is-load::after, .key.is-load::before { background: repeating-linear-gradient(135deg, var(--warn) 0 4px, #c58d36 4px 8px); }
.block.is-work::after, .key.is-work::before { background: linear-gradient(180deg, #a59aff, var(--accent)); }
.block.is-done::after, .block.is-now::after { opacity: 1; }
.block.is-now { box-shadow: 0 0 0 2px var(--text); z-index: 1; }
.block b { position: relative; z-index: 1; font: 600 0.8rem var(--mono); color: var(--text-3); transition: color 0.25s; }
.block.is-done b, .block.is-now b { color: var(--on-brand); }
@container (max-width: 18px) { .block b { display: none; } }
.group-name { margin: 8px 0 0 6px; font-size: 0.78rem; color: var(--text-3); white-space: nowrap; overflow: hidden; }

.saved { height: calc(var(--block-h) + 2 * var(--tray-pad) + 2px); display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed rgba(69, 210, 159, 0.4); border-radius: 12px; font-size: 0.86rem; font-weight: 600; color: rgba(69, 210, 159, 0.75); white-space: nowrap; overflow: hidden; transition: color 0.4s, background-color 0.4s, border-color 0.4s; }
.saved svg { width: 16px; height: 16px; opacity: 0; transition: opacity 0.4s; }
.lane.is-finished .saved { color: var(--ok); background: rgba(69, 210, 159, 0.12); border-color: rgba(69, 210, 159, 0.7); }
.lane.is-finished .saved svg { opacity: 1; }

.race.is-dense { --tray-pad: 3px; }
.race.is-dense .track { gap: 4px; }
.race.is-dense .blocks { gap: 2px; border-radius: 8px; }
.race.is-dense .block { border-radius: 4px; }
.race.is-dense .group-name { margin-left: 3px; }

.race figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 32px 18px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--text-2); }
.race figcaption small { margin-left: auto; font-size: inherit; }
.key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.key::before { content: ""; width: 22px; height: 12px; border-radius: 3px; }


/* Stages */

.stages { display: grid; gap: 24px; }
.stage { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 52px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: linear-gradient(180deg, var(--surface), rgba(20, 23, 29, 0.4)); }
.shot { margin: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); color: var(--accent);
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(139, 125, 255, 0.16), transparent 75%),
    linear-gradient(var(--line) 1px, transparent 1px) 50% 50% / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 50% / 40px 40px,
    var(--bg);
}
.shot svg { width: 36%; height: auto; aspect-ratio: 1; }
/* A screenshot or a clip keeps its own proportions: nothing of the app's page is cut off. */
.shot:has(img, video) { aspect-ratio: auto; }
.shot img, .shot video { width: 100%; height: auto; }
.stage-body { padding: 8px 12px 8px 0; }
.stage-no { font: 600 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.stage-no em { font-style: normal; color: var(--text-3); margin-left: 10px; letter-spacing: 0.08em; }
.stage h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 10px; }
.stage-what { font-size: 1.08rem; color: var(--text); margin-top: 10px; }
.stage .ticks { margin-top: 20px; }
.after-stages { text-align: center; margin-top: 28px; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tools > * { font-size: 0.86rem; font-weight: 600; color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); }
.tools a:hover { color: var(--text); border-color: rgba(139, 125, 255, 0.5); }
.tools small { font-weight: 400; margin-left: 4px; }


/* Features: a light list, each one a line */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 48px; }
.features li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; align-items: start; }
.features svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--accent-2); }
.features h3 { font-size: 1.02rem; line-height: 1.35; }
.features p { margin-top: 3px; color: var(--text-2); font-size: 0.93rem; }
.hood { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; font: 0.86rem/1.7 var(--mono); color: var(--text-3); }


/* Requirements */

.need { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 36px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.need-get { display: grid; gap: 14px; justify-items: start; }
.need-get .more { margin-top: 2px; }


/* Lessons, on the home page */

.lesson-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lesson-cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.lesson-cards a:hover { border-color: rgba(139, 125, 255, 0.5); transform: translateY(-2px); }
.lesson-cards span { font: 600 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.lesson-cards b { font: 650 1.2rem/1.25 var(--font-display); }
.lesson-cards i { font-style: normal; color: var(--text-2); font-size: 0.95rem; }


/* Community and the foot */

.community { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; border-radius: calc(var(--radius) + 8px); border: 1px solid rgba(139, 125, 255, 0.28); background: radial-gradient(80% 140% at 0% 0%, rgba(124, 112, 255, 0.2), transparent 70%), var(--surface); }
.community h2 { max-width: 22ch; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.community p { color: var(--text-2); margin-top: 18px; max-width: 52ch; }
.community-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.community-links .btn:nth-child(-n+2) { grid-column: 1 / -1; }

.foot { margin-top: 104px; padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.foot nav a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .brand { font-size: 1rem; }


/* The lessons page */

.page-head { padding: 72px 0 0; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.page-head > p:not(.kicker) { color: var(--text-2); font-size: 1.12rem; margin-top: 18px; max-width: 58ch; }
.page-head .cta { margin-top: 28px; }

.lesson-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.lesson-index a { font-size: 0.9rem; font-weight: 600; color: var(--text-2); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.lesson-index a:hover { color: var(--text); border-color: rgba(139, 125, 255, 0.5); }

.lessons { display: grid; gap: 24px; margin-top: 40px; }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.lesson.has-video { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.lesson-no { font: 600 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.lesson h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 10px; max-width: none; }
.lesson .ticks { margin-top: 20px; max-width: 78ch; }
.lesson:not(.has-video) .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: none; }
.lesson kbd { font: 0.82em var(--mono); background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0.1em 0.45em; white-space: nowrap; color: var(--text); }

.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; cursor: pointer; color: #fff; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); transition: background-color 0.2s; }
.yt:hover::after { background: rgba(0, 0, 0, 0.08); }
.yt svg { position: absolute; z-index: 1; inset: 0; margin: auto; width: 76px; height: 76px; padding: 20px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--radius); display: block; }

.keys { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; }
.keys div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.keys dt { color: var(--text); }
.keys dd { margin: 0; text-align: right; }

.lost { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.lost p { color: var(--text-2); }


/* Narrower screens */

@media (max-width: 980px) {
  .section { padding-top: 80px; }
  .idea-text, .stage, .need, .community, .lesson.has-video { grid-template-columns: minmax(0, 1fr); }
  .idea-text { gap: 24px; }
  .stage { gap: 28px; padding: 20px; }
  .stage-body { padding: 0 4px 8px; }
  .need { gap: 32px; padding: 28px; }
  .features, .lesson-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community { padding: 32px; gap: 32px; }
  .top-nav a:not([href="/lessons"]) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .hero { padding-top: 52px; }
  .screen { margin-top: 44px; border-radius: 14px; }
  .features, .lesson-cards, .lesson:not(.has-video) .ticks, .keys { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 22px; }
  .race { --block-h: 32px; --tray-pad: 3px; }
  .race-head, .lane, .race figcaption { padding-inline: 18px; }
  .race-props input { width: 130px; }
  .lane h3 { width: 100%; }
  .track { gap: 4px; }
  .blocks { gap: 2px; border-radius: 9px; }
  .block { border-radius: 5px; }
  .race figcaption small { margin-left: 0; }
  .race.is-dense { --tray-pad: 0px; }
  .race.is-dense .track { gap: 3px; }
  .race.is-dense .blocks { gap: 1px; border: 0; background: none; }
  .race.is-dense .block { border-radius: 2px; }
  .race.is-dense .saved { height: var(--block-h); }
  .lesson { padding: 22px; }
  .icon-link { display: none; }
  .top-row { gap: 12px; }
  .cta .btn { flex: 1 1 100%; }
  .community-links { grid-template-columns: minmax(0, 1fr); }
}

/* Asked for less motion: the page does not glide and nothing lifts. The video and the chart still play. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .lesson-cards a:hover { transform: none; }
}
