/* ATLAS project page, early release. Structured like a research project page (title, one film, the question beside one
   figure, 01/02/03, task cards, Step 1/2/3, FAQ). White, near-black, one blue, Geist. Clean: hairlines, few boxes,
   one accent, media at their own ratios with nothing drawn on them. */

:root {
  --bg: #ffffff;
  --fg: #111418;
  --muted: #5d6470;
  --faint: #8a9099;
  --line: #e5e7eb;
  --tint: #f6f7f9;
  --accent: #1f4e9c;
  --accent-tint: #eef3fb;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 1100px;
  --text: 760px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
sup { font-size: .6em; line-height: 0; position: relative; top: -.6em; vertical-align: baseline; }
figure { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--fg); color: #fff; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; font-size: 15px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--fg); text-decoration: none; }
.links a.tag { padding: 2px 11px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.links a.tag:hover { background: #dfe9f9; color: var(--accent); }
.links a.tag[aria-current] { background: var(--accent); color: #fff; }
.links a.yt { display: inline-flex; align-items: center; flex: none; }
.links a.yt svg { width: 26px; height: 19px; display: block; flex: none; }
.links a.xpost { display: inline-flex; align-items: center; flex: none; margin-left: -10px; }
.links a.xpost svg { width: 19px; height: 19px; display: block; flex: none; }
.links a.xpost:hover svg rect { fill: #333; }
@media (max-width: 420px) { .links a.yt svg { width: 20px; height: 15px; } .links a.xpost { margin-left: -2px; } .links a.xpost svg { width: 15px; height: 15px; } }
.links a.yt:hover svg rect { fill: #cc0000; }

/* ---------- "on this page": the section being read ---------- */
.toc { font-size: 13.5px; line-height: 1.35; }
.toc-title { margin-bottom: 12px; color: var(--fg); font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { display: flex; gap: 7px; color: var(--muted); }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.is-active { color: var(--accent); font-weight: 500; }
.toc-n { flex: none; min-width: 20px; color: var(--faint); font-variant-numeric: tabular-nums; }
.toc a.is-active .toc-n { color: inherit; }
.toc--page { display: none; position: fixed; z-index: 40; top: 50%; left: max(20px, calc((100vw - var(--wide)) / 2 - 148px)); width: 122px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .25s; }
.toc--page.is-reading { opacity: 1; pointer-events: auto; }
@media (min-width: 1400px) { .toc--page { display: block; } }

/* ---------- title and the film ---------- */
.top { padding: 40px 24px 0; text-align: center; }
.top h1 { margin: 0 auto; max-width: 900px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.top h1 .name { color: var(--accent); }
.authors { margin: 14px auto 0; max-width: 980px; font-size: 16px; line-height: 1.7; color: var(--fg); }
.authors .au { white-space: nowrap; }
/* two lines of eight names: on medium screens the type yields a little, on phones the names simply flow */
@media (min-width: 880px) and (max-width: 1020px) { .authors { font-size: calc((100vw - 64px) / 62); } }
@media (max-width: 879px) { .authors br { display: none; } }
.authors a { color: var(--accent); text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.authors sup { font-size: 11px; color: var(--muted); margin-left: 1px; }
.affil { margin: 10px auto 0; max-width: 680px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 15.5px; font-weight: 700; color: var(--fg); }
.affil span { max-width: 100%; }
.affil sup { font-size: 11px; color: var(--muted); margin-right: 2px; }
.logos { margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; }
.logos img { height: 52px; width: auto; object-fit: contain; }
.logos img.wide { height: 34px; }
.marks { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.award { margin-top: 18px; }
.award a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 15px; border: 1px solid #ead8a4; border-radius: 999px; background: #fcf7e8; color: #77560f; font-size: 14.5px; font-weight: 600; line-height: 1.35; text-align: left; }
.award a:hover { background: #f8eecf; text-decoration: none; }
.award svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 640px) { .award a { border-radius: 14px; } }
.date { margin-top: 6px; font-size: 14.5px; font-weight: 500; }
.top-links { margin-top: 14px; }
.top-links a { display: inline-block; padding: 7px 16px; border: 1px solid #d2e0f6; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 15px; font-weight: 500; }
.top-links a:hover { background: #dfe9f9; text-decoration: none; }
.film { max-width: 980px; margin: 32px auto 0; border-radius: var(--r); overflow: hidden; }
.film--showcase { border: 1px solid var(--line); background: #f5f5f7; box-shadow: 0 8px 26px rgba(17, 20, 24, .07); }
/* Two rows by setting: the two outdoor takes above the two indoor ones. Each column's fr is its video's width / height,
   so the videos of a row share one height and every file is shown whole at its own ratio. */
.showcase-scenes { display: grid; gap: 1px; background: var(--line); }
.showcase-row { display: grid; gap: 1px; background: var(--line); }
.showcase-row--outdoor { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4527fr); }
.showcase-row--indoor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.showcase-scene { min-width: 0; display: flex; flex-direction: column; background: #f5f5f7; }
.showcase-visual { aspect-ratio: 16 / 9; overflow: hidden; background: #151a20; }
.showcase-scene--stairs-down .showcase-visual { aspect-ratio: 4 / 5; }
.showcase-scene--candy .showcase-visual { aspect-ratio: 1412 / 972; }
.showcase-visual video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.showcase-caption { flex: 1; padding: 12px 16px 14px; text-align: left; }
.showcase-command { display: block; color: var(--fg); font-size: 15px; font-weight: 500; line-height: 1.5; text-wrap: balance; }
@media (min-width: 641px) and (max-width: 900px) {
  .showcase-caption { padding: 9px 11px 11px; }
  .showcase-command { font-size: 13px; line-height: 1.45; }
}
@media (max-width: 640px) {
  .film--showcase { margin-top: 22px; border-radius: 12px; }
  .showcase-scenes, .showcase-scenes .showcase-row { grid-template-columns: 1fr; gap: 0; }
  .showcase-row + .showcase-row, .showcase-scene + .showcase-scene { border-top: 1px solid var(--line); }
  .showcase-caption { padding: 11px 13px; }
  .showcase-command { font-size: 14px; }
}
.facts { list-style: none; margin: 26px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.facts li { min-width: 0; max-width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border: 1px solid #d2e0f6; border-radius: 999px; background: #e0eafa; color: var(--accent); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; text-wrap: balance; }
.facts li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
@media (max-width: 900px) { .facts { display: flex; flex-wrap: wrap; justify-content: center; } }
@media (max-width: 640px) { .facts li { min-height: 38px; font-size: 13px; padding: 8px 10px; } }

/* ---------- framework and learning figures ---------- */
.fig { min-width: 0; }
.fig img { width: 100%; height: auto; }
.fig figcaption { margin: 12px auto 0; max-width: 92ch; font-size: 15px; line-height: 1.5; color: var(--muted); text-align: center; }
.fig figcaption b { color: var(--fg); font-weight: 600; }
.ref { margin-bottom: 18px; }
.learning-loop { padding: 34px 0 22px; border-radius: 24px; overflow: hidden; background: #f5f5f7; }
.learning-loop__heading { padding: 0 28px; text-align: center; }
.learning-loop__heading h3 { margin: 0 0 8px; color: #1d1d1f; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.14; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.learning-loop__heading p { color: #626268; font-size: 16px; line-height: 1.45; text-wrap: balance; }
.learning-loop__media { position: relative; margin-top: 20px; aspect-ratio: 24 / 11; }
.learning-loop__media video, .learning-loop__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.learning-loop__media video, .learning-loop__poster img { width: 100%; height: 100%; object-fit: contain; }
.learning-loop__media:not(.is-started) video { visibility: hidden; }
.learning-loop__media.is-started .learning-loop__poster { display: none; }
.learning-details { border-top: 1px solid var(--line); }
.learning-details summary { padding: 13px 0; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; }
.learning-details[open] summary { margin-bottom: 6px; }
.fig figcaption.exp { max-width: 92ch; margin: 18px auto 0; text-align: left; }
.exp .lead { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.exp .lead b { color: var(--fg); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.steps li { position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.steps li b { color: var(--fg); font-weight: 600; }
.steps li i { font-style: italic; color: var(--accent); }
.exp .key { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.steps .g { position: absolute; left: 0; top: 6px; width: 22px; height: 12px; }
.steps .g-rail { border-top: 1.2px solid var(--accent); height: 0; top: 10px; }
.steps .g-rail::after { content: ""; position: absolute; left: 8px; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.steps .g-miss { border-top: 1.6px solid #d94a3d; height: 0; top: 10px; }
.steps .g-miss::after { content: ""; position: absolute; right: -1px; top: -4px; width: 6px; height: 6px; border-top: 1.6px solid #d94a3d; border-right: 1.6px solid #d94a3d; transform: rotate(45deg); }
.steps .g-loop { width: 16px; height: 16px; left: 3px; top: 1px; border: 1.8px solid var(--accent); border-radius: 50%; border-right-color: transparent; }
.steps .g-slow { border: 1.2px dashed var(--accent); border-radius: 999px; top: 6px; }
.fig figcaption .key { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .bar .wrap { gap: 12px; } .links { gap: 12px; font-size: 13.5px; } .links a { white-space: nowrap; } .fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; } .steps li { font-size: 13px; } }
@media (max-width: 800px) {
  .learning-loop { padding-top: 28px; border-radius: 20px; }
  .learning-loop__heading { padding: 0 20px; }
  .learning-loop__heading p { font-size: 14px; }
  .learning-loop__media { width: 100%; max-width: 560px; margin: 16px auto 0; aspect-ratio: 24 / 35; }
}


/* ---------- sections ---------- */
.sec { max-width: var(--wide); margin: 0 auto; padding: 96px 24px 0; }
.sec .lede, .sec .faq, .sec .scope { max-width: var(--text); }
.sec--method { padding-top: 72px; }
.section-heading { margin-bottom: 36px; }
.section-heading .lede { margin-bottom: 0; color: var(--muted); }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.eyebrow-n { margin-right: 10px; color: var(--faint); font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sec h2 .nw { white-space: nowrap; }
.section-text p + p { margin-top: 14px; }
.section-text .lede { margin-bottom: 0; color: var(--fg); }
.section-text .more-link { margin-top: 12px; font-size: 15.5px; font-weight: 500; }
.sec--overview { padding-top: 72px; }
.sec--overview .section-heading { margin-bottom: 0; }
/* wide screens: the section's title on the left, its text on the right, the media below at full width */
@media (min-width: 900px) {
  .section-heading:has(.section-text) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 48px; }
  .section-heading:has(.section-text) .section-eyebrow { grid-column: 1; }
  .section-heading:has(.section-text) h2 { grid-column: 1; margin-bottom: 0; }
  .section-heading:has(.section-text) .section-text { grid-column: 2; grid-row: 1 / span 2; padding-top: 22px; }
}
.sec h2 { margin: 6px 0 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; color: var(--accent); text-wrap: balance; }
.sec--details h2 { font-size: clamp(28px, 3vw, 34px); }
.sec--details .section-heading { margin-bottom: 28px; }
.subsection-heading { margin: 48px 0 24px; max-width: var(--text); }
.subsection-heading h3 { margin-bottom: 8px; }
.subsection-heading p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.lede { margin-bottom: 32px; }
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h3.sub { margin-top: 40px; }
h3.sub:first-of-type { margin-top: 8px; }

/* the instruction, as the robot hears it */
.say { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: var(--accent-tint); font-size: 17px; line-height: 1.45; font-weight: 500; }
.say::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--accent);
  -webkit-mask: var(--person) center / contain no-repeat; mask: var(--person) center / contain no-repeat;
  --person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M4 21c1.2-4.2 4.3-6.5 8-6.5s6.8 2.3 8 6.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- task cards ---------- */
.media { border-radius: 12px; overflow: hidden; background: var(--tint); }
.media video { width: 100%; height: auto; }
.sec > p.text { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.points li b { color: var(--fg); font-weight: 600; }
.points + p.text { margin-top: 8px; font-size: 13.5px; }
.sec > .media + .text { margin-bottom: 28px; }
.sec > .say { margin-bottom: 16px; }
.sec > .media + .say { margin-top: 28px; }
.sec > .media + .gallery { margin-top: 28px; }
.nw { white-space: nowrap; }
.fig figcaption sub { line-height: 0; }
.showcase-caption .spd { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.say .spd { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.strips { display: grid; gap: 22px; }
.strips figure { margin: 0; }
.strips video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--tint); }
.strips figcaption { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.strips .duo-sim { max-width: 66%; margin: 0 auto; }
.strips .duo-sim figcaption { text-align: center; }
/* Simulation results: original plot pixels, responsive labels and layout. */
.learning-study { --study-blue: #2b7ce2; --study-control: #fc6330; margin-top: 0; padding: 28px; background: #fcfcfb; border: 1px solid #e6e8eb; border-radius: 18px; }
.study-eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.study-header h3 { margin: 0; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.study-deck { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.study-deck strong { color: var(--accent); font-weight: 500; }
.study-legend { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.study-legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.study-legend small { padding-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.study-swatch { position: relative; display: block; width: 28px; height: 3px; background: var(--study-blue); }
.study-swatch::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border: 1.5px solid #fcfcfb; border-radius: 50%; background: inherit; transform: translate(-50%, -50%); }
.study-swatch--control { background: var(--study-control); }
.study-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 24px; }
.study-task { min-width: 0; }
.study-task h4 { margin: 0 0 16px; padding-top: 16px; border-top: 1px solid #dfe3e8; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.study-metric + .study-metric { margin-top: 24px; }
.study-metric-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.study-metric-heading strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.study-metric-heading p > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.study-direction { flex: none; color: var(--muted); font-size: 11px; }
.study-plot { position: relative; width: calc(100% - 32px); margin: 0 0 0 32px; aspect-ratio: 868 / 410; min-height: 164px; }
.study-plot svg { width: 100%; height: 100%; overflow: visible; }
.study-y-ticks span { position: absolute; left: -14px; transform: translate(-100%, -50%); font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.study-x-ticks span { position: absolute; top: 100%; margin-top: 9px; transform: translateX(-50%); font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.study-x-label { margin: 30px 0 0 32px; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.study-metric:first-of-type .study-x-ticks, .study-metric:first-of-type .study-x-label { display: none; }
.study-caption { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dfe3e8; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.study-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; color: var(--fg); font-size: 13px; font-weight: 500; }
.study-meta p > span { padding: 0 7px; color: #a0a6af; }
.study-meta a { font-size: 12px; white-space: nowrap; }
.study-band-note { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin: 10px 0; }
.study-band-swatch, .study-warmup-swatch { display: inline-block; width: 14px; height: 10px; flex: none; border-radius: 2px; background: #dce7f6; }
.study-warmup-swatch { margin-left: 8px; background: #eeeeeb; border: 1px solid #e2e2df; }
.study-caption b { font-weight: 500; color: var(--fg); }
@media (max-width: 800px) {
  .learning-study { padding: 24px; }
  .study-panels { gap: 28px; }
  .study-metric-heading { display: block; }
  .study-direction { display: none; }
}
@media (max-width: 640px) {
  .learning-study { padding: 24px 16px 20px; border-radius: 12px; }
  .study-header h3 { max-width: 13ch; font-size: 30px; }
  .study-deck { font-size: 15px; }
  .study-deck strong { display: block; margin-top: 3px; }
  .study-legend { gap: 10px; flex-direction: column; margin-top: 20px; }
  .study-panels { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .study-task h4 { margin-bottom: 20px; }
  .study-metric-heading { display: flex; }
  .study-direction { display: block; font-size: 10px; }
  .study-metric + .study-metric { margin-top: 24px; }
  .study-caption { margin-top: 24px; }
  .study-meta p { max-width: 24ch; line-height: 1.8; }
  .study-meta p > span { padding: 0 4px; }
  .study-band-note { display: block; }
  .study-band-swatch, .study-warmup-swatch { margin-right: 3px; }
  .study-warmup-swatch { margin-left: 0; }
}
@media (max-width: 640px) { .strips .duo-sim { max-width: 100%; } }
.gallery li { display: flex; flex-direction: column; }
.gallery li p.say { flex: 1; }
.gallery p.say { margin: 8px 0 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.35; border-radius: 10px; }

/* ---------- how it works ---------- */
.step + .step { margin-top: 56px; }
.step p.text { margin-bottom: 18px; }
.chart { margin-top: 20px; padding: 20px 20px 14px; border: 1px solid var(--line); border-radius: 12px; }
.chart-title { margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid path { stroke: var(--line); stroke-width: 1; }
.chart .ticks text, .chart .axis text { font: 500 13px var(--font); fill: var(--muted); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.chart .end { fill: var(--accent); }
.chart .lab { font: 600 17px var(--font); fill: var(--accent); }
.chart .lab--start { fill: var(--muted); font-weight: 500; }
.cap { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.still { border-radius: 12px; overflow: hidden; background: var(--tint); }
.still img { width: 100%; height: auto; }

/* ---------- 03: the other tasks, small ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.gallery video { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 10px; background: var(--tint); }
.gallery p { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* ---------- faq, scope ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 16px 36px 16px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: -4px 0 18px; color: var(--muted); }
.scope { color: var(--muted); }
.foot { max-width: var(--wide); margin: 96px auto 0; padding: 24px 24px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .sec { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 24px; }
  .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); justify-items: center; gap: 20px 24px; max-width: 344px; margin-left: auto; margin-right: auto; }
  .logos img { height: 42px; }
  .logos img.wide { height: 28px; }
  .sec { padding-top: 72px; }
  .sec--method { padding-top: 48px; }
  .section-heading { margin-bottom: 28px; }
  .subsection-heading { margin-top: 36px; }
  .gallery { grid-template-columns: 1fr; gap: 20px; }
      .foot { flex-direction: column; gap: 8px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) { .links { gap: 9px; font-size: 12px; } .links a.tag { padding: 2px 8px; } }
@media (max-width: 400px) { .links { gap: 7px; font-size: 11px; } }
@media (max-width: 360px) { .brand { font-size: 17px; } .links { gap: 7px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* the one portrait clip in Step 1 stays its own size, centred */
.step video.tall { width: auto; max-height: 380px; border-radius: 12px; background: var(--tint); }

/* ---------- ablation: learners under a per-attempt bias ---------- */
.ablation-study { --abl-ours: #2b7ce2; --abl-other: #9aa3ae; --abl-ctrl: #fc6330; margin-top: 28px; padding: 28px; background: #fcfcfb; border: 1px solid #e6e8eb; border-radius: 18px; }
.abm { margin-top: 26px; }
.ablation-study .nw { white-space: nowrap; }
.abm-row { display: grid; grid-template-columns: minmax(150px, 200px) repeat(3, minmax(0, 1fr)); column-gap: 40px; align-items: stretch; border-top: 1px solid #eceef1; }
.abm-row > * { display: flex; flex-direction: column; justify-content: center; padding: 11px 0; }
.abm-head { border-top: 0; }
.abm-head > * { justify-content: flex-end; padding: 14px 0 12px; }
.abm-key { margin: 0 -18px; padding-left: 18px !important; padding-right: 18px !important; background: var(--accent-tint); }
.abm-head .abm-key { border-radius: 12px 12px 0 0; }
.abm-axis .abm-key { border-radius: 0 0 12px 12px; }
.abm-measure { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.abm-flag { margin-bottom: 8px; color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.abm-flag--empty { visibility: hidden; }
.abm-colhead strong { color: var(--fg); font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.abm-short { display: none; }
.abm-sub { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.abm-name { color: var(--fg); font-size: 14px; line-height: 1.3; }
.abm-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.abm-row--ours .abm-name { color: var(--accent); font-weight: 600; }
.abm-cell { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; column-gap: 10px; outline: none; }
.abm-track { position: relative; height: 14px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, transparent calc(50% - .5px), #fff calc(50% - .5px), #fff calc(50% + .5px), transparent calc(50% + .5px)), rgba(17, 24, 39, .055); }
.abm-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 3px 3px 0; background: var(--abl-other); }
.abm-row--ours .abm-bar { background: var(--abl-ours); }
.abm-row--ctrl .abm-bar { background: var(--abl-ctrl); }
.abm-ci { position: absolute; top: 50%; height: 0; border-top: 1px solid rgba(17, 20, 24, .62); }
.abm-ci::before, .abm-ci::after { content: ""; position: absolute; top: -4.5px; height: 8px; border-left: 1px solid rgba(17, 20, 24, .62); }
.abm-ci::before { left: 0; } .abm-ci::after { right: 0; }
.abm-val { color: var(--fg); font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: right; }
.abm-row--ours .abm-val { font-weight: 600; }
.abm-cell--na .abm-track { background: none; }
.abm-cell--na .abm-val { color: #b4b9c0; }
.abm-tip { position: absolute; left: 0; bottom: calc(100% + 6px); padding: 5px 9px; border-radius: 6px; background: #1d232b; color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.abm-cell:last-child .abm-tip { left: auto; right: 0; }
.abm-cell:hover .abm-tip, .abm-cell:focus .abm-tip { opacity: 1; }
.abm-cell:focus-visible .abm-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.abm-axis > * { padding: 7px 0 10px; }
.abm-ticks { position: relative; height: 14px; margin-right: 48px; color: var(--muted); font-size: 11px; }
.abm-ticks span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.ablation-study .study-caption > p { margin-top: 8px; }
.ablation-study .study-meta p { max-width: none; }
.abm--one .abm-row { grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); column-gap: 28px; }
.abm--one .abm-row > * { padding: 13px 0; }
.abm--one .abm-head > * { padding: 0 0 10px; }
.abm--one .abm-measure, .abm--one .abm-flag { display: none; }
.abm--one .abm-colhead strong { color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.abm--one .abm-name { font-size: 15px; }
.abm--one .abm-cell { grid-template-columns: minmax(0, 1fr) 46px; column-gap: 14px; }
.abm--one .abm-track { height: 20px; }
.abm--one .abm-val { font-size: 15px; }
.abm--one .abm-ticks { margin-right: 60px; }
.abm--one .abm-axis > * { padding-top: 8px; }
@media (max-width: 900px) { .abm-long { display: none; } .abm-short { display: inline; } .abm-sub { display: none; } }
@media (max-width: 640px) {
  .ablation-study { padding: 24px 16px 20px; border-radius: 12px; }
  .ablation-study .study-header h3 { max-width: none; font-size: 26px; }
  .ablation-study .study-deck strong { display: inline; margin-top: 0; }
  .abm-row { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .abm-row > * { padding: 4px 0; }
  .abm-row > .abm-name { padding-top: 12px; }
  .abm-row > .abm-cell { padding-bottom: 12px; }
  .abm-corner, .abm-name { grid-column: 1 / -1; }
  .abm-head > * { padding: 4px 0 10px; }
  .abm-head > .abm-corner { padding: 0 0 6px; }
  .abm-measure { color: var(--fg); font-size: 13px; font-weight: 600; }
  .abm-key { margin: 0; padding-left: 0 !important; padding-right: 0 !important; background: none; }
  .abm-colhead strong { font-size: 12.5px; }
  .abm-flag { margin-bottom: 4px; font-size: 9px; letter-spacing: .1em; }
  .abm-cell { grid-template-columns: minmax(0, 1fr) 34px; column-gap: 6px; }
  .abm-val { font-size: 12.5px; }
  .abm-axis { display: none; }
  .abm--one .abm-row { grid-template-columns: minmax(0, 1fr); }
  .abm--one .abm-head .abm-corner { display: none; }
  .abm--one .abm-row > * { padding: 2px 0; }
  .abm--one .abm-row > .abm-name { padding-top: 12px; }
  .abm--one .abm-row > .abm-cell { padding-bottom: 12px; }
  .abm--one .abm-head > * { padding: 0 0 8px; }
  .abm--one .abm-cell { grid-template-columns: minmax(0, 1fr) 40px; column-gap: 10px; }
  .abm--one .abm-axis { display: grid; }
  .abm--one .abm-axis > div:first-child { display: none; }
  .abm--one .abm-ticks { margin-right: 50px; }
}
