  @font-face { font-family: "Routed Gothic"; src: url("fonts/routed-gothic.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
  @font-face { font-family: "Routed Gothic Wide"; src: url("fonts/routed-gothic-wide.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
  @font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
  @font-face { font-family: "Spline Sans Mono"; src: url("fonts/spline-sans-mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
  /* Every color a rule paints with is a token of this palette, and the block after the `body` rule gives the tokens other values for a
     reader whose system asks for dark. Three things stay written out where they are used, in both schemes: the shade and grain of a
     stone, a shadow that darkens, and every color of a terminal, which is dark in both. */
  :root {
    color-scheme: light dark;
    /* The four grounds, from darkest to lightest: the page, the head of a block, a section, a block inside a section. */
    --fog: #EDF0EE;
    --band: #F1F4F2;
    --paper: #FAFBF9;
    --card: #FFFFFF;
    --ink: #1E2A2E;
    --muted: #5B6B70;
    --line: #C9D1CC;
    --line-soft: #DDE3DF;
    --focus: #5E6C76;
    /* The bar and the hero are the paper with the map showing through, and inline code stands on a tint of the ink. */
    --bar: rgba(250,251,249,.94);
    --veil: rgba(250,251,249,.62);
    --tint: rgba(30,42,46,.06);
    --lichen: #C8D645;
    --slate: #5E6C76; --slate-ink: #46535C;
    --sandstone: #C9AE84; --sandstone-ink: #7E5F2A;
    --ironstone: #A0624A; --ironstone-ink: #84472E;
    --base: #AEB7B3; --sha: #3C4749; --waymark: #6F7F83;
    --add: #E4EFD6;
    --del: #F6DFE3;
    --ok: #EAF1DC; --ok-line: #C9D8AD; --ok-ink: #2E4716;
    /* The map: `map.js` reads its lines and spot heights from here at each draw, and the trail's two forms take theirs by a rule. */
    --contour: #DAE0DC; --contour-5: #C6CFCA; --spot: #9AA6A3; --trail: #7F8D8A;
    --code-key: #2C6490; --code-str: #2F6B3A; --code-lit: #6B6600;
    --photo-edge: rgba(255,255,255,.6);
    --display: "Routed Gothic", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --loop: 9s;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 64px; }
  body { margin: 0; background: var(--fog) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'%3E%3Cg fill='none' stroke='%23D6DDD8' stroke-width='1'%3E%3Cpath d='M0 60 C200 10 400 110 600 60 S1000 110 1200 60'/%3E%3Cpath d='M0 120 C200 80 400 160 600 120 S1000 160 1200 120'/%3E%3Cpath d='M0 200 C200 260 400 140 600 200 S1000 140 1200 200'/%3E%3Cpath d='M0 270 C200 310 400 230 600 270 S1000 230 1200 270'/%3E%3Cpath d='M0 360 C200 300 400 420 600 360 S1000 420 1200 360'/%3E%3Cpath d='M0 430 C200 395 400 465 600 430 S1000 465 1200 430'/%3E%3Cpath d='M0 520 C200 575 400 465 600 520 S1000 465 1200 520'/%3E%3Cpath d='M0 590 C200 560 400 620 600 590 S1000 620 1200 590'/%3E%3Cpath d='M250 315 C290 290 360 292 385 318 S350 356 300 350 S225 338 250 315Z'/%3E%3Cpath d='M880 470 C930 440 1010 446 1030 476 S985 512 930 505 S850 495 880 470Z'/%3E%3Cpath d='M905 474 C935 458 985 462 998 478 S970 497 938 493 S890 488 905 474Z'/%3E%3C/g%3E%3C/svg%3E") top center / 1200px 640px repeat; color: var(--ink); font: 400 17px/1.55 var(--body); }
  /* The dark look takes its grounds and hues from the terminals below, so a terminal sits flush in its frame. A stone keeps its rock. The
     block stands after the `body` rule because that rule's shorthand names the light tile, and would put it back over an image set
     before it. The tile is the one above with a dark stroke: a token is not read inside an address. */
  @media (prefers-color-scheme: dark) {
    :root {
      --fog: #131B1E;
      --band: #172024;
      --paper: #1B2529;
      --card: #222E33;
      --ink: #E3E9E5;
      --muted: #A3B0AE;
      --line: #3E4E56;
      --line-soft: #313F45;
      --focus: #A9B8C3;
      --bar: rgba(27,37,41,.94);
      --veil: rgba(27,37,41,.62);
      --tint: rgba(227,233,229,.08);
      --slate: #8394A0; --slate-ink: #A9B8C3;
      --sandstone-ink: #D9BE94;
      --ironstone: #BD7B62; --ironstone-ink: #E39C80;
      --add: #27402B;
      --del: #57303A;
      --ok: #2A3F1F; --ok-line: #4E6B35; --ok-ink: #BFDA9A;
      --contour: #1E282D; --contour-5: #27343A; --spot: #465355; --trail: #5A6869;
      --code-key: #8FBCDD; --code-str: #A9C77B; --code-lit: #C8D645;
      --photo-edge: rgba(255,255,255,.08);
    }
    body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='640' viewBox='0 0 1200 640'%3E%3Cg fill='none' stroke='%23202B2F' stroke-width='1'%3E%3Cpath d='M0 60 C200 10 400 110 600 60 S1000 110 1200 60'/%3E%3Cpath d='M0 120 C200 80 400 160 600 120 S1000 160 1200 120'/%3E%3Cpath d='M0 200 C200 260 400 140 600 200 S1000 140 1200 200'/%3E%3Cpath d='M0 270 C200 310 400 230 600 270 S1000 230 1200 270'/%3E%3Cpath d='M0 360 C200 300 400 420 600 360 S1000 420 1200 360'/%3E%3Cpath d='M0 430 C200 395 400 465 600 430 S1000 465 1200 430'/%3E%3Cpath d='M0 520 C200 575 400 465 600 520 S1000 465 1200 520'/%3E%3Cpath d='M0 590 C200 560 400 620 600 590 S1000 620 1200 590'/%3E%3Cpath d='M250 315 C290 290 360 292 385 318 S350 356 300 350 S225 338 250 315Z'/%3E%3Cpath d='M880 470 C930 440 1010 446 1030 476 S985 512 930 505 S850 495 880 470Z'/%3E%3Cpath d='M905 474 C935 458 985 462 998 478 S970 497 938 493 S890 488 905 474Z'/%3E%3C/g%3E%3C/svg%3E"); }
  }

  a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
  a:hover { text-decoration-color: var(--ink); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  code { font-family: var(--mono); font-size: 0.86em; background: var(--tint); padding: 2px 5px; border-radius: 4px; }
  .wrap { max-width: 1168px; margin: 0 auto; padding: 0 clamp(28px, 6vw, 48px); }

  /* ---------- motion: every animated part rests in its final state ---------- */
  .s1, .s2, .s3, .s4, .s5, .s6 { animation: var(--loop) ease-out infinite both; transform-box: fill-box; transform-origin: center; }
  .s1 { animation-name: s1; } .s2 { animation-name: s2; } .s3 { animation-name: s3; }
  .s4 { animation-name: s4; } .s5 { animation-name: s5; } .s6 { animation-name: s6; }
  @keyframes s1 { 0%, 4%  { opacity: 0; transform: var(--from, translateY(-10px)); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes s2 { 0%, 16% { opacity: 0; transform: var(--from, translateY(-10px)); } 22%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes s3 { 0%, 28% { opacity: 0; transform: var(--from, translateY(-10px)); } 34%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes s4 { 0%, 40% { opacity: 0; transform: var(--from, translateY(-10px)); } 46%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes s5 { 0%, 52% { opacity: 0; transform: var(--from, translateY(-10px)); } 58%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes s6 { 0%, 64% { opacity: 0; transform: var(--from, translateY(-10px)); } 70%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  .drop { animation: drop .55s cubic-bezier(.2,.9,.3,1.2) both; }
  @keyframes drop { from { opacity: 0; transform: translateY(-40px); } }

  /* ---------- top bar ---------- */
  .bar { position: sticky; top: 0; z-index: 5; background: var(--bar); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  .bar .wrap { display: flex; align-items: center; gap: 20px; height: 52px; }
  .bar .mark { font: 400 24px/1.0 var(--display); letter-spacing: -0.01em; text-decoration: none; }
  .bar nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 500; overflow-x: auto; white-space: nowrap; }
  .bar nav a { text-decoration: none; color: var(--muted); }
  .bar nav a:hover { color: var(--ink); }

  /* ---------- stones ---------- */
  .cairn { display: inline-flex; flex-direction: column-reverse; align-items: center; }
  .stone { display: block; width: 30px; height: 13px; background: var(--c, var(--muted)); border-radius: 58% 42% 52% 48% / 62% 56% 44% 38%; margin-top: -3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
  .cairn > .stone:nth-child(2) { width: 25px; rotate: -4deg; border-radius: 46% 54% 44% 56% / 55% 62% 38% 45%; }
  .cairn > .stone:nth-child(3) { width: 20px; rotate: 5deg; }
  .cairn > .stone:nth-child(4) { width: 15px; rotate: -6deg; }
  /* Natural stone: each team is a different rock, told apart by texture as well as tone. */
  .stone { box-shadow: inset 0 -3px 0 rgba(0,0,0,.17), inset 0 2px 1px rgba(255,255,255,.2); }
  /* Slate: thin, uneven cleavage lines */
  .stone.a { background-image: repeating-linear-gradient(177deg, rgba(255,255,255,.17) 0 1px, transparent 1px 3px, rgba(0,0,0,.09) 3px 4px, transparent 4px 7px); }
  /* Sandstone: fine grain */
  .stone.b { background-image: radial-gradient(rgba(90,60,25,.3) .5px, transparent .8px), radial-gradient(rgba(255,255,255,.42) .5px, transparent .8px), radial-gradient(rgba(90,60,25,.18) .6px, transparent .9px); background-size: 3px 4px, 4px 3px, 7px 5px; background-position: 0 0, 1px 2px, 3px 1px; }
  /* Ironstone: thin, uneven rust bands */
  .stone.c { background-image: repeating-linear-gradient(172deg, rgba(60,20,8,.22) 0 1px, transparent 1px 3px, rgba(60,20,8,.1) 3px 5px, transparent 5px 9px, rgba(255,255,255,.12) 9px 10px, transparent 10px 14px); }
  /* The original carries its Git SHA, like a benchmark stamp */
  .stone[data-sha] { position: relative; }
  .stone[data-sha]::after { content: attr(data-sha); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 9.5px/1 var(--mono); color: var(--sha); letter-spacing: .03em; }
  .cairn.xl .stone[data-sha]::after { font-size: 14px; }
  /* The original: pale granite, salt and pepper */
  .stone.o { background-image: radial-gradient(rgba(40,48,50,.26) .7px, transparent 1px), radial-gradient(rgba(255,255,255,.5) .8px, transparent 1.1px), radial-gradient(rgba(40,48,50,.16) .6px, transparent .9px); background-size: 9px 7px, 7px 11px, 13px 5px; background-position: 1px 1px, 4px 2px, 6px 3px; }

  /* The pinned original is a cut slab, not a river stone: the fixed base everything else sits on */
  .stone.o { border-radius: 4px; height: 9px; width: 36px; margin-top: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.55), 0 1px 0 rgba(0,0,0,.12); }
  .cairn.md > .stone.o { width: 70px; height: 14px; }
  .cairn.xl > .stone.o { width: 168px; height: 28px; box-shadow: inset 0 -7px 0 rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.55), 0 2px 0 rgba(0,0,0,.12); }
  .cairn > .stone.o + .stone { margin-top: -2px; }
  .a { --c: var(--slate); --ci: var(--slate-ink); } .b { --c: var(--sandstone); --ci: var(--sandstone-ink); } .c { --c: var(--ironstone); --ci: var(--ironstone-ink); } .o { --c: var(--base); }
  .cairn.xl .stone { width: 132px; height: 46px; margin-top: -10px; box-shadow: inset 0 -9px 0 rgba(0,0,0,.14); }
  .cairn.xl > .stone:nth-child(2) { width: 108px; }
  .cairn.xl > .stone:nth-child(3) { width: 86px; }
  .cairn.xl > .stone:nth-child(4) { width: 64px; }
  .cairn.xl > .stone.o { width: 150px; }
  .cairn.xl > .stone:nth-child(2) { animation-delay: .25s; }
  .cairn.xl > .stone:nth-child(3) { animation-delay: .45s; }
  .cairn.xl > .stone:nth-child(4) { animation-delay: .65s; }
  .cairn.md .stone { width: 54px; height: 20px; margin-top: -4px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); }
  .cairn.md > .stone:nth-child(2) { width: 45px; }
  .cairn.md > .stone:nth-child(3) { width: 36px; }
  .cairn.md > .stone:nth-child(4) { width: 27px; }
  .cairn.md > .stone.o { width: 62px; }

  /* ---------- hero ---------- */
  .hero { position: relative; overflow: hidden; background: var(--veil); border-bottom: 1px solid var(--line); }
  .hero-inner { position: relative; padding-block: 72px 56px; }
  .hero .eyebrow { font-size: 14px; margin-bottom: 18px; }
  .hero h1 { font: 400 clamp(32px, 4.3vw, 54px)/1.1 var(--display); letter-spacing: 0.005em; margin: 0 0 20px; max-width: 20em; text-wrap: balance; }
  .hero p.lede { font-size: 23px; line-height: 1.4; max-width: 42em; margin: 0 0 28px; text-wrap: balance; }
  .cta { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn { display: inline-block; font: 600 15px/1 var(--body); text-decoration: none; padding: 13px 18px; border-radius: 8px; border: 1px solid var(--ink); }
  .btn.solid { background: var(--ink); color: var(--paper); }
  .btn:hover { border-color: var(--slate); }
  .contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .contrast figure.fig { margin: 0; }
  .contrast .fig text { font-size: 13px; }

  /* ---------- the three points a judge looks for: one form wherever one appears ---------- */
  .point { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--lichen); border-radius: 10px; padding: 18px 22px 20px; }
  .point :is(h2, h3) { font: 400 27px/1.15 var(--display); letter-spacing: 0.005em; margin: 0 0 10px; }
  .point p { margin: 0 0 10px; max-width: 50em; font-size: 16px; }
  .point p:last-child { margin-bottom: 0; }
  .hero .point { margin-top: 16px; }

  /* ---------- the trail: a cairn at each section, joined down the page ---------- */
  main section > .wrap { position: relative; }
  .waymark { position: absolute; left: -46px; top: -8px; }
  .waymark .stone { box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
  .w { --c: var(--waymark); }
  main section > .wrap::before { content: ""; position: absolute; left: -32px; top: 34px; bottom: -74px; width: 2px; background: repeating-linear-gradient(to bottom, var(--spot) 0 7px, transparent 7px 17px); }
  main section:last-of-type > .wrap::before { display: none; }
  .js-trail main section > .wrap::before { display: none; }
  #trail { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; }
  #trail path { stroke: var(--trail); }
  @media (max-width: 1239px) { .waymark, main section > .wrap::before { display: none; } }

  /* ---------- legend ---------- */
  .legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
  .legend .stone { display: inline-block; margin: 0 6px 0 0; vertical-align: middle; width: 22px; height: 10px; }

  /* ---------- sections ---------- */
  section { padding: 72px 0 12px; }
  .eyebrow { font: 500 13px/1 var(--mono); color: var(--muted); margin: 0 0 12px; }
  h2 { font: 400 clamp(34px, 4.2vw, 50px)/1.1 var(--display); letter-spacing: 0.005em; margin: 0 0 18px; }
  .intro { max-width: 44em; color: var(--muted); margin: 0 0 28px; }
  .intro strong { color: var(--ink); font-weight: 600; }

  /* ---------- figures ---------- */
  figure.fig { margin: 22px 0 26px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card); overflow: hidden; }
  figure.fig svg { display: block; width: 100%; height: auto; }
  figure.fig figcaption { padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); background: var(--paper); }
  .fig text { font: 500 12px var(--mono); fill: var(--muted); }
  .fa { fill: var(--slate); } .fb { fill: var(--sandstone); } .fc { fill: var(--ironstone); }
  .la { stroke: var(--slate); } .lb { stroke: var(--sandstone); } .lc { stroke: var(--ironstone); }
  /* The posts of the one gate, and each team's own repo. */
  .fig .gate { fill: var(--ink); } .fig .repo { fill: var(--paper); }

  /* ---------- a terminal, painted as the demo script paints one: one div for each line ---------- */
  .term { --term: #1B2529; --pre: 9ch; --who: #D9BE94; background: var(--term); color: #D7DFDB; font: 400 13px/1.6 var(--mono); padding: 16px 18px 18px; overflow-x: auto; }
  .term > div { white-space: pre-wrap; overflow-wrap: anywhere; }
  /* --pre is the width of a speaker's label and the two characters after it. A result's lines start under its first, and a line that wraps hangs. */
  .term.marlow { --pre: 8ch; --who: #E39C80; }
  .term .eng { --pre: 10ch; --who: #E8C36A; }
  .term .say { padding-left: var(--pre); text-indent: calc(-1 * var(--pre)); }
  .term > .dimm, .term > .beat { padding-left: 2ch; text-indent: -2ch; }
  .term .j { padding-left: calc(var(--pre) + (var(--d) + 1) * 2ch); text-indent: -2ch; color: #AEBAB6; }
  .term .d0 { --d: 0; } .term .d1 { --d: 1; } .term .d2 { --d: 2; } .term .d3 { --d: 3; } .term .d4 { --d: 4; }
  .term .who { color: var(--who); font-weight: 600; }
  .term .cmd, .term .hd { color: #fff; font-weight: 600; }
  .term .flag { white-space: nowrap; }
  .term .key { color: #8FBCDD; } .term .str, .term .add { color: #A9C77B; } .term .lit { color: var(--lichen); }
  .term .dimm { color: #7F8E91; } .term .bad, .term .del { color: #E98AA5; }
  .term .beat { font-weight: 600; }
  .term .gap { height: 12px; }
  .term:focus-visible { outline-color: var(--lichen); outline-offset: -3px; }

  /* ---------- the command: two teams' terminals ---------- */
  .term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .frame { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(30,42,46,.45); }
  .chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--band); font: 500 12px/1 var(--mono); color: var(--muted); }
  .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
  .chrome .url { margin-left: 8px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: 6px 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chrome.team { border-top: 4px solid var(--c); }
  .teammark { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); color: var(--ink); margin-left: 6px; }
  .teammark .stone { width: 22px; height: 10px; margin: 0; }
  /* A frame is no taller than this, and its terminal scrolls. The fade at its foot covers lines only while more wait below it. */
  .term-grid > .frame { display: flex; flex-direction: column; max-height: min(640px, 72vh); }
  .term-grid > .frame > .chrome { flex: none; }
  .term-grid > .frame > .term { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 0; scrollbar-width: thin; scrollbar-color: #50626A transparent; }
  .term-grid > .frame > .term::after { content: ""; display: block; position: sticky; bottom: 0; height: 48px; margin: 0 -18px; background: linear-gradient(to bottom, rgba(27,37,41,0), var(--term) 86%); pointer-events: none; }

  /* ---------- three lenses: each team's file, and what it led to ---------- */
  .lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .lens { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
  .lens h3 { font: 400 24px/1.08 var(--display); margin: 0; }
  .lens .host { font: 500 12px/1 var(--mono); color: var(--muted); }
  .lens pre { margin: 0; font: 400 12px/1.6 var(--mono); background: var(--fog); border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
  /* A lens file's keys, strings and literals, in three hues, none of them a team's color. On a dark ground they are the terminal's own, and on a light one those hues darkened. */
  .lens pre { color: var(--muted); }
  .lens pre .key { color: var(--code-key); } .lens pre .str { color: var(--code-str); } .lens pre .lit { color: var(--code-lit); }
  .lens .result { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; margin-top: auto; padding-top: 6px; }
  .lens .verdict { font: 400 20px/1.08 var(--display); }
  .lens .why { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

  .payoff { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }

  /* ---------- how it works: one block per step, then the three copies it leads to ---------- */
  .steps { display: grid; gap: 16px; margin-bottom: 16px; }
  .step { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .step .stage { background: var(--card); border-left: 1px solid var(--line-soft); margin: 0; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
  .step .art { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 104px; }
  .step .stage figcaption { border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
  .step .eg { display: block; font: 500 12.5px/1 var(--mono); margin-bottom: 8px; }
  .step .text { padding: 22px 24px 22px; }
  .step .num { font: 500 13px/1 var(--mono); color: var(--muted); }
  .step h3 { font: 400 27px/1.15 var(--display); margin: 8px 0 14px; }
  .step dl { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 15.5px; }
  .step dt { font: 500 12.5px/24px var(--mono); color: var(--muted); }
  .step dd { margin: 0; }
  .payoff { padding-top: 40px; padding-bottom: 26px; margin-bottom: 16px; }
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
  .trio figure { margin: 0; text-align: center; }
  .trio figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
  .trio figcaption b { display: block; font: 400 25px/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }
  .trio-note { text-align: center; margin: 26px auto 0; max-width: 40em; font-size: 15px; color: var(--muted); }
  .row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: center; }
  .row > .cairn { justify-self: start; margin-left: 4px; }
  .row .what { font-weight: 600; font-size: 15px; }
  .row .where { font: 400 12px/1.4 var(--mono); color: var(--muted); }
  .tag { display: inline-block; font: 600 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); width: fit-content; }
  .tag.ok { background: var(--ok); border-color: var(--ok-line); color: var(--ok-ink); }
  .diff { font: 400 11.5px/1.6 var(--mono); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; background: var(--paper); }
  .diff div { padding: 0 8px; white-space: pre; }
  .diff .m { background: var(--del); } .diff .p { background: var(--add); }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .org { font: 600 11.5px/1 var(--mono); color: var(--ci, var(--c)); display: block; margin-bottom: 6px; }
  .org::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 5px; }
  .built { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
  .built .mono { font: 500 12.5px/1.5 var(--mono); color: var(--muted); }

  footer.end { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper); padding: 36px 0 56px; font-size: 14.5px; color: var(--muted); }
  footer.end .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  footer.end h4 { font: 400 20px/1.1 var(--display); margin: 0 0 10px; color: var(--ink); }
  footer.end p { margin: 0 0 8px; }
  footer.end p.badge { margin-top: 16px; line-height: 0; }
  footer.end p.badge img { height: 36px; width: auto; display: block; }
  footer.end .photo { margin: 0; }
  footer.end .photo figcaption { margin-top: 10px; font-size: 13.5px; }
  footer.end .legal { margin-top: 28px; }
  footer.end .legal p { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  footer.end .photo img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 0 var(--photo-edge), 0 14px 32px -16px rgba(40,50,52,.45); }

  @media (max-width: 900px) {
    .hero-inner { padding-block: 40px 36px; }
    section { padding-top: 52px; }
    .payoff, .step .text, .point { padding-left: 18px; padding-right: 18px; }
    .step, .contrast, .trio, .term-grid, .lenses, footer.end .cols { grid-template-columns: 1fr; }
    .step .stage { border-left: 0; border-top: 1px solid var(--line-soft); padding: 18px; }
    .step dl { grid-template-columns: 1fr; gap: 0; }
    .step dd { margin-bottom: 12px; }
    .step dd:last-child { margin-bottom: 0; }
    .trio { gap: 36px; }
    .bar nav { gap: 14px; }
  }
  /* The bar stays one row, so a link to a section lands clear of it. On a phone the two links into the page give way to the two that leave it. */
  @media (max-width: 520px) {
    .bar nav a[href^="#"] { display: none; }
    /* On a phone a result's lines start at the edge and a wrapped command hangs by two characters, so a line keeps the width. */
    .term { font-size: 12px; }
    .term, .term.marlow, .term .eng { --pre: 2ch; }
    .term .j { padding-left: calc((var(--d) + 1) * 2ch); }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; }
  }
