@font-face { font-family: 'Outfit'; src: url('fonts/outfit.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --blue: #1971c2; --orange: #f08c00; --red: #e03131;
  --ink: #101828; --soft: #475467; --line: #e4e7ec; --wash: #f5f7fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 'Outfit', system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 30px; line-height: 1.15; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
main, .top { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mark span { color: var(--blue); }
.repo { margin-left: auto; margin-right: 28px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); }
.repo:hover { border-color: var(--blue); color: var(--blue); }
.legend { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; }
.blue { background: var(--blue); } .orange { background: var(--orange); } .red { background: var(--red); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 56px; align-items: start; padding: 28px 0 72px; }
.intro { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 13px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs button { border: 0; background: none; padding: 8px 0; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--blue); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick:disabled { color: var(--soft); background: var(--wash); opacity: 1; }
.pick { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--ink); font-weight: 500; width: 100%; }
.check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; }
.tip { position: absolute; z-index: 3; max-width: 280px; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 20px rgba(16, 24, 40, 0.2); border-left: 4px solid var(--c, var(--red)); }
.tip b { font-weight: 600; }

.compare { min-width: 0; }
.frame { position: relative; aspect-ratio: 1; width: 100%; max-width: 760px; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--wash); touch-action: pan-y; user-select: none; --pos: 50%; }
.pane { position: absolute; inset: 0; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.pane.left { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pane .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); font-size: 14px; }
.m { position: absolute; border-radius: 2px; background: color-mix(in srgb, var(--c) 26%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 80%, transparent); cursor: default; }
.m.hot { background: color-mix(in srgb, var(--c) 46%, transparent); }
.frame.nomarks .m { display: none; }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; border: 0; background: none; cursor: ew-resize; color: #fff; display: grid; place-items: center; padding: 0; }
.handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--blue); }
.handle svg { position: relative; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 2px 8px rgba(16, 24, 40, 0.25); }
.handle:focus-visible svg { outline: 3px solid color-mix(in srgb, var(--blue) 40%, #fff); }
.captions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 760px; margin: 12px 0 0 auto; font-size: 14px; color: var(--soft); }
.captions div:last-child { text-align: right; }
.captions b { color: var(--ink); font-weight: 600; }

/* leaderboard */
.board { position: relative; padding: 56px 0; border-top: 1px solid var(--line); }
.boardhead { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.boardhead p { color: var(--soft); }
.efforts { margin-left: auto; }
.rows .name.fs { padding-top: 40px; }
.rows .cellb.fs { padding-top: 36px; }
.rows .name.sub small { color: color-mix(in srgb, var(--soft) 80%, #fff); }
.rows { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.rows .h { font-size: 13px; font-weight: 600; color: var(--soft); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rows .h small { font-weight: 400; margin-left: 6px; }
.rows .name { font-weight: 600; font-size: 18px; white-space: nowrap; padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.rows .name i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); width: 18px; }
.rows .name small { display: block; font-size: 12px; font-weight: 500; color: var(--soft); margin-top: 2px; }
.cellb { padding: 18px 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.bar { display: flex; align-items: center; gap: 14px; }
.stack { flex: 1; display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--wash); gap: 2px; }
.stack span { height: 100%; min-width: 0; transition: flex-basis 0.5s ease, filter 0.15s; cursor: default; }
.stack:hover span { filter: saturate(0.55) opacity(0.6); }
.stack span:hover { filter: none; }
.bar b { width: 52px; text-align: right; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* the single runs under each bar */
.spread { position: relative; margin: 10px 66px 0 0; }
.strip { height: 16px; }
.strip::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--line); }
.strip i { position: absolute; top: 5px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, #fff); }
.tk { position: absolute; top: 1px; width: 4px; height: 14px; margin-left: -2px; border: 0; padding: 0; border-radius: 2px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.tk::after { content: ''; position: absolute; inset: -6px -4px; }
.tk.n { top: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 8px; }
.tk:hover, .tk:focus-visible, .sl:hover, .sl:focus-visible { background: var(--blue); color: #fff; outline: none; z-index: 2; }
.tk:hover, .tk:focus-visible { transform: scale(1.25); }
.spread.cols, .spread.tiles { display: flex; gap: 4px; }
.spread span { flex: 1; }
.sl { position: relative; flex: 1; min-width: 0; border: 0; padding: 0; cursor: pointer; transition: background 0.12s; }
.spread.cols { height: 30px; align-items: flex-end; border-bottom: 2px solid var(--line); }
.spread.cols .sl { height: max(3px, calc(var(--v) * 1%)); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--ink) 26%, #fff); }
.spread.cols .sl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; }
.tiles .sl { height: 22px; border-radius: 5px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--red) calc(var(--v) * 0.85%), var(--wash)); }
.tiles .sl.hi { color: #fff; }
.axis { display: flex; justify-content: space-between; margin: 6px 66px 0 0; font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; }
.cellb.wait { color: var(--soft); font-size: 13px; }
.pop { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 9px 12px; font-size: 13px; line-height: 1.4; max-width: 260px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.22); }
.pop b { font-weight: 600; }
.pop img { display: block; width: 180px; height: 180px; border-radius: 4px; margin-bottom: 8px; background: #fff; }
.pop .k { display: flex; align-items: center; gap: 6px; }
.pop .k i { width: 9px; height: 9px; border-radius: 50%; }

/* cost and time */
.cost { position: relative; padding: 56px 0; border-top: 1px solid var(--line); }
.cost .boardhead .seg { margin-left: auto; }
.cost .boardhead.sub { margin: 40px 0 20px; }
.cost .boardhead.sub h3 { font-size: 20px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.charts figure { margin: 0; min-width: 0; }
.charts h3 { font-size: 16px; margin: 0 0 8px; }
.plot svg { display: block; overflow: visible; }
.plot .g { stroke: var(--line); stroke-width: 1; }
.plot .t { font-size: 12px; fill: var(--soft); font-variant-numeric: tabular-nums; }
.plot .ml { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, #fff); stroke-width: 1.5; }
.plot .fr { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.plot .pf { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.plot .po { fill: #fff; stroke: color-mix(in srgb, var(--ink) 55%, #fff); stroke-width: 1.6; }
.plot .hit { fill: transparent; cursor: default; outline: none; }
.plot .hit:hover, .plot .hit:focus-visible { stroke: var(--blue); stroke-width: 2; }
.plot .nm { font-size: 12px; font-weight: 500; fill: var(--soft); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.plot .nm.f { font-weight: 700; fill: var(--ink); }
.charts figcaption { font-size: 13px; color: var(--soft); margin-top: 6px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 13px; color: var(--soft); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.kline { width: 22px; height: 0; border-top: 2px solid var(--blue); }
.kdot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--ink) 55%, #fff); }
.kdot.f { background: var(--blue); box-shadow: none; }
.kml { width: 22px; height: 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 22%, #fff); }
.hb { display: grid; gap: 7px; }
.hbr { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14px; }
.hl { font-weight: 600; white-space: nowrap; }
.hl small { font-weight: 500; color: var(--soft); margin-left: 6px; font-size: 12px; }
.tr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tr i { display: block; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 78%, #fff); width: max(3px, calc((100% - 78px) * var(--r))); }
.tr b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) {
  .cost { padding: 40px 0; }
  .charts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cost .boardhead .seg { margin-left: 0; width: 100%; }
  .cost .boardhead .seg button { flex: 1; }
  .cost .efforts { width: 100%; }
  .hbr { grid-template-columns: minmax(84px, 120px) minmax(0, 1fr); gap: 8px; }
}

/* wall */
.wall { padding: 56px 0; border-top: 1px solid var(--line); }
.wallhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }
.grid { display: grid; grid-template-columns: 150px repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; align-items: center; }
.grid .ch { font-weight: 600; font-size: 14px; }
.grid .ch small { display: block; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.grid .rh { font-size: 14px; font-weight: 500; color: var(--soft); }
.cell { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; padding: 0; background: var(--wash); cursor: pointer; }
.cell img { width: 100%; height: 100%; display: block; }
.cell .m { box-shadow: none; background: color-mix(in srgb, var(--c) 34%, transparent); }
.cell em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 12px; font-weight: 600; background: #fff; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px var(--line); }
.cell:hover, .cell:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cell.empty { cursor: default; display: grid; place-items: center; color: var(--soft); font-size: 12px; }

/* method */
.method { padding: 56px 0 96px; border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 24px; }
.cols p { color: var(--soft); }
.cols b { color: var(--ink); font-weight: 600; }
.fine { margin-top: 32px; font-size: 13px; color: var(--soft); max-width: 820px; }

.by { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.by a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); }
.by a:hover { border-color: var(--blue); color: var(--blue); }

.wrow { display: contents; }
.foot { display: none; }

@media (max-width: 900px) {
  main, .top { padding: 0 18px; }
  .top { height: 56px; }
  .top .repo { display: none; }
  .foot { display: inline-block; margin: 14px 0 0; padding: 8px 0; }
  .mark { font-size: 20px; }
  .legend { gap: 12px; font-size: 13px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 0 40px; }
  .intro { padding-top: 0; gap: 12px; }
  .tabs { margin-top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 11px 0; white-space: nowrap; }
  .pick { padding: 11px 10px; }
  .picks { grid-template-columns: 1fr; gap: 8px; }
  .rows .name.fs, .rows .cellb.fs { padding-top: 0; }
  .rows .name.fs { padding-top: 26px; }
  .tip { max-width: 220px; }
  .frame, .captions { margin-left: 0; }
  .captions { font-size: 13px; gap: 8px; white-space: nowrap; margin-top: 4px; }
  .captions .w { display: none; }
  .check { padding: 10px 0; }
  .captions .plink { position: relative; }
  .captions .plink::after { content: ''; position: absolute; inset: -12px -6px; }
  .board, .wall { padding: 40px 0; }
  .method { padding: 40px 0 64px; }
  .boardhead { margin-bottom: 8px; gap: 6px; }
  /* leaderboard: one compact block per model, two labelled bars */
  .rows { grid-template-columns: 1fr; }
  .rows .h, .rows .spread, .rows .axis { display: none; }
  .rows .name { padding: 18px 0 6px; border: 0; font-size: 17px; }
  .cellb { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; padding: 4px 0; border: 0; }
  .cellb::before { content: attr(data-v); font-size: 13px; font-weight: 500; color: var(--soft); }
  .cellb:nth-child(3n + 3) { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .bar { gap: 8px; }
  .stack { height: 18px; }
  .bar b { width: 46px; font-size: 17px; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; }
  .grid .rh { grid-column: 1 / -1; margin-top: 10px; }
  .grid .corner { display: none; }
  .grid .ch { font-size: 12px; }
  .cell em { font-size: 10px; padding: 0 5px; right: 3px; bottom: 3px; }
  .modal { padding: 20px 18px 22px; }
}
@media (max-width: 640px) {
  /* the comparison runs edge to edge so the graphic is as large as the phone allows */
  .frame { width: auto; margin: 0 -18px; border-width: 1px 0; border-radius: 0; }
  /* every graphic: one sideways row per post, large enough to read */
  .grid { display: block; }
  .grid .ch { display: none; }
  .grid .rh { margin: 18px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
  .wrow { display: flex; gap: 8px; margin: 0 -18px; padding: 0 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 18px; scrollbar-width: none; }
  .wrow::-webkit-scrollbar { display: none; }
  .wrow .cell { flex: 0 0 43vw; scroll-snap-align: start; }
  .cell em { font-size: 12px; padding: 1px 8px; right: 5px; bottom: 5px; }
  .cell em::before { content: attr(data-who) ' · '; font-weight: 500; color: var(--soft); }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) { .stack span { transition: none; } html { scroll-behavior: auto; } }

/* prompt modal */
.plink { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; border-bottom: 1.5px dashed currentColor; }
.plink:hover, .plink:focus-visible { color: var(--blue); border-bottom-style: solid; outline: none; }
.modal { border: 0; border-radius: 14px; padding: 28px 32px 32px; width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); color: var(--ink); box-shadow: 0 30px 80px rgba(16, 24, 40, 0.3); }
.modal::backdrop { background: rgba(16, 24, 40, 0.45); }
.mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mhead button { border: 0; background: var(--wash); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--soft); }
.mhead button:hover { background: var(--line); color: var(--ink); }
.modal pre { margin: 0; white-space: pre-wrap; font: 15px/1.55 'Outfit', system-ui, sans-serif; background: var(--wash); border-radius: 10px; padding: 16px 18px; border-left: 4px solid var(--blue); }
.modal h3 { margin: 22px 0 8px; font-size: 14px; color: var(--soft); }
.modal pre.shared { border-left-color: var(--line); font-size: 13px; color: var(--soft); }

/* animations page */
.beta { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); margin-left: 3px; }
.repo + .repo { margin-left: 0; }
.more { display: none; }
.here { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.anim .hero { grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 48px; }
.anim h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.anim .frame { aspect-ratio: 16 / 9; max-width: 860px; background: #fff; }
.anim .captions { max-width: 860px; }
.pane video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.pane [hidden] { display: none; }
.play { position: absolute; left: 12px; bottom: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 72%, transparent); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.frame:hover .play, .play:focus-visible, .frame.paused .play { opacity: 1; }
.play .pl, .frame.paused .play .ps { display: none; }
.frame.paused .play .pl { display: inline; }
.prog { position: absolute; left: 0; bottom: 0; z-index: 1; height: 3px; width: 0; background: var(--blue); pointer-events: none; }
.anim .cell { aspect-ratio: 16 / 9; background: #fff; }
.cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.cell video.on { opacity: 1; }
.anim .pop img { height: 101px; }
.anim .method { padding-bottom: 56px; }
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding: 56px 0 96px; border-top: 1px solid var(--line); }
.join p { color: var(--soft); margin-top: 10px; max-width: 560px; }
.join label { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.field { display: flex; gap: 8px; }
.field input[type='email'] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; }
.field input[type='email']:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.field button { border: 0; border-radius: 8px; padding: 11px 20px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.field button:hover { background: color-mix(in srgb, var(--blue) 86%, #000); }
.field button:disabled { opacity: 0.6; cursor: default; }
#website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join .note { font-size: 13px; margin-top: 8px; }
.join .note.bad { color: var(--red); }
.join form.done label, .join form.done .field { display: none; }
.join form.done .note { font-size: 16px; color: var(--ink); font-weight: 600; margin: 0; }
@media (max-width: 900px) {
  .more { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .here { margin-left: 10px; padding-left: 10px; font-size: 14px; margin-right: auto; }
  .anim .legend li:first-child, .here .beta { display: none; }
  .anim .legend { gap: 10px; font-size: 12px; }
  .anim .legend li { gap: 5px; }
  .anim .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .anim .method { padding-bottom: 40px; }
  .join { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 64px; }
  .field input[type='email'], .field button { padding: 13px 14px; }
}
@media (max-width: 640px) {
  .anim .wrow .cell { flex: 0 0 72vw; }
}

/* local design options: the two animations side by side instead of under one slider */
[data-hero='pair'] .anim .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
[data-hero='pair'] .anim .intro { padding-top: 12px; }
[data-hero='pair'] .anim .frame { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 0; border-radius: 0; overflow: visible; background: none; }
[data-hero='pair'] .anim .pane { position: relative; inset: auto; aspect-ratio: 16 / 9; clip-path: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
[data-hero='pair'] .anim .pane.left { order: -1; }
[data-hero='pair'] .anim .handle, [data-hero='pair'] .anim .prog { display: none; }
[data-hero='pair'] .anim .captions { max-width: none; }

/* Expanded still matrix: retain readable columns within a sideways scroller. */
@media (min-width: 641px) {
  .grid.many { overflow-x: auto; grid-template-columns: repeat(var(--cols), minmax(180px, 1fr)); padding-bottom: 12px; }
}
@media (min-width: 901px) {
  .grid.many { grid-template-columns: 150px repeat(var(--cols), minmax(180px, 1fr)); }
}
@media (max-width: 360px) {
  body:not(.anim) .legend { gap: 8px; font-size: 12px; }
  body:not(.anim) .legend li { gap: 5px; }
}
