/* Oversized Navigation — antjanus.com redesign 078
   The navigation is the hero: every destination is a word set at poster size. */

:root {
  --ground: #f3f0e9;
  --surface: #fbfaf6;
  --ink: #121417;
  --ink-2: #33373e;
  --muted: #595f69;
  --line: #d6d0c3;
  --line-strong: #121417;
  --accent: #a8360b;
  --accent-hot: #ff5a1f;
  --menu-bg: #364f6a;
  --menu-ink: #f4efe4;
  --menu-dim: #c9d3de;
  --menu-accent: #ffb48c;
  --code-bg: #15191e;
  --code-ink: #e7e3da;
  --code-muted: #9aa3ad;
  --chip-bg: #e8e3d8;
  --callout-why: #e6ecf2;
  --callout-q: #f7e6dc;
  --shadow: 0 1px 0 rgba(18, 20, 23, .08);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --giant: clamp(3.5rem, 13vw, 13rem);
  --huge: clamp(3rem, 9vw, 8.5rem);
  --big: clamp(2.25rem, 5.4vw, 4.75rem);
  --row: clamp(1.6rem, 3vw, 2.6rem);
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --max: 1440px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #0e1115;
  --surface: #161a20;
  --ink: #f1ede4;
  --ink-2: #d3cec3;
  --muted: #9ca2ab;
  --line: #2b3139;
  --line-strong: #f1ede4;
  --accent: #ff7d4a;
  --accent-hot: #ff6a33;
  --menu-bg: #1a2a3b;
  --menu-ink: #f4efe4;
  --menu-dim: #a9b8c8;
  --menu-accent: #ffb48c;
  --code-bg: #0a0c0f;
  --chip-bg: #232931;
  --callout-why: #182430;
  --callout-q: #2a1b14;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e1115;
    --surface: #161a20;
    --ink: #f1ede4;
    --ink-2: #d3cec3;
    --muted: #9ca2ab;
    --line: #2b3139;
    --line-strong: #f1ede4;
    --accent: #ff7d4a;
    --accent-hot: #ff6a33;
    --menu-bg: #1a2a3b;
    --menu-dim: #a9b8c8;
    --code-bg: #0a0c0f;
    --chip-bg: #232931;
    --callout-why: #182430;
    --callout-q: #2a1b14;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, li a, .prose a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
p a:hover, .prose a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--accent-hot); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
::selection { background: var(--accent-hot); color: #111; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--ground); padding: .75rem 1rem; font-family: var(--mono);
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .875rem; letter-spacing: .02em; }
.eyebrow {
  font-family: var(--mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 1rem;
}
.display {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ───────── Top bar ───────── */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: var(--max); margin: 0 auto; padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-word { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.brand-word small { display: block; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .8125rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: .2rem; }
.here {
  margin-left: auto; font-family: var(--mono); font-size: .875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.here b { color: var(--ink); font-weight: 500; }
.icon-btn, .menu-btn {
  min-height: 44px; min-width: 44px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 1rem/1 var(--body); transition: background .15s, color .15s;
}
.icon-btn:hover, .menu-btn:hover { background: var(--ink); color: var(--ground); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { padding: 0 1.1rem 0 1.25rem; font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.125rem; letter-spacing: .03em; background: var(--ink); color: var(--ground); }
.menu-btn:hover { background: var(--accent-hot); color: #111; border-color: var(--accent-hot); }
.menu-btn .lines { display: grid; gap: 5px; width: 22px; }
.menu-btn .lines i { display: block; height: 2px; background: currentColor; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (max-width: 640px) {
  .here { display: none; }
  .brand-word small { display: none; }
  .bar-actions { margin-left: auto; }
}
.bar-actions { display: flex; gap: .5rem; align-items: center; }

/* Reading progress (article) */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent-hot); z-index: 60; }

/* ───────── Full-screen menu ───────── */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--menu-bg); color: var(--menu-ink);
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
.menu-top { display: flex; align-items: center; gap: 1rem; padding: .6rem var(--gutter); max-width: var(--max); width: 100%; margin: 0 auto; }
.menu-top .brand { color: var(--menu-ink); }
.menu-top .brand-word small { color: var(--menu-dim); }
.menu-close {
  margin-left: auto; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--menu-ink);
  background: var(--menu-ink); color: var(--menu-bg); cursor: pointer;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.125rem;
}
.menu-close:hover { background: var(--menu-accent); border-color: var(--menu-accent); }
.menu-list { list-style: none; margin: 0 auto; padding: 1rem var(--gutter) 2rem; max-width: var(--max); width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu-list li { border-top: 1px solid color-mix(in srgb, var(--menu-ink) 22%, transparent); position: relative; }
.menu-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--menu-ink) 22%, transparent); }
.menu-link {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--menu-ink); padding: .15em 0;
}
.menu-link .num { font-family: var(--mono); font-size: .9375rem; color: var(--menu-dim); align-self: start; padding-top: 1.1em; }
.menu-link .word { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(3rem, 11.5vh, 9.5rem); line-height: .9; transition: transform .2s ease, color .15s; }
.menu-link .note { font-family: var(--mono); font-size: .9375rem; color: var(--menu-dim); text-align: right; max-width: 18rem; }
.menu-link:hover .word, .menu-link:focus-visible .word { color: var(--menu-accent); transform: translateX(.12em); }
.menu-link:focus-visible { outline-color: var(--menu-accent); }
.menu-link[aria-current="page"] .word { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.menu-link[aria-current="page"] .note::before { content: "● You are here · "; color: var(--menu-accent); }
.menu-list:hover .menu-link:not(:hover) .word { color: color-mix(in srgb, var(--menu-ink) 62%, var(--menu-bg)); }
.menu-peek {
  position: absolute; right: 22%; top: 50%; width: min(24vw, 320px); aspect-ratio: 4/3; object-fit: cover;
  transform: translateY(-50%) rotate(-3deg) scale(.9); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.menu-list li:hover .menu-peek, .menu-list li:focus-within .menu-peek { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.menu-foot {
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 1.25rem var(--gutter) 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--menu-ink) 22%, transparent);
}
.menu-foot a { color: var(--menu-ink); font-family: var(--mono); font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.menu-foot a:hover { color: var(--menu-accent); }
.menu-foot .links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.search { display: flex; gap: 0; min-width: min(100%, 22rem); }
.search input {
  flex: 1; min-height: 48px; padding: 0 1rem; font: 1rem var(--body); border: 1px solid var(--menu-ink); border-right: 0;
  background: transparent; color: var(--menu-ink); border-radius: 999px 0 0 999px;
}
.search input::placeholder { color: var(--menu-dim); }
.search button { min-height: 48px; padding: 0 1.2rem; border: 1px solid var(--menu-ink); background: var(--menu-ink); color: var(--menu-bg); border-radius: 0 999px 999px 0; font: 700 1rem var(--body); cursor: pointer; }
@media (max-width: 760px) {
  .menu-link { grid-template-columns: 2.25rem 1fr; }
  .menu-link .note { grid-column: 2; text-align: left; margin: -.2rem 0 .6rem; font-size: .875rem; }
  .menu-link .word { font-size: clamp(2.9rem, 15vw, 5rem); }
  .menu-peek { display: none; }
}
@media (hover: none) { .menu-peek { display: none; } }

/* ───────── Page head: the page name at poster size ───────── */
.page-head { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 2px solid var(--line-strong); }
.page-head .display { font-size: var(--giant); color: var(--ink); }
.page-head .lede { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 44rem; margin: 1.5rem 0 0; color: var(--ink-2); }
.page-head-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: end; }
@media (min-width: 1000px) { .page-head-grid.has-art { grid-template-columns: 1fr 360px; } }
.page-art { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; background: var(--chip-bg); }

/* ───────── Giant index rows: the site's one repeated device ───────── */
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.index > li { border-top: 1px solid var(--line-strong); position: relative; }
.index-link {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 20rem) 3rem; align-items: center; gap: 1.25rem;
  text-decoration: none; color: var(--ink); padding: clamp(.4rem, 1vw, .9rem) 0; position: relative; isolation: isolate;
}
.index-link::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .22s ease;
}
.index-link:hover::before, .index-link:focus-visible::before { transform: scaleY(1); }
.index-link:hover, .index-link:focus-visible { color: var(--ground); }
.index-link:hover .index-note, .index-link:focus-visible .index-note, .index-link:hover .index-num, .index-link:focus-visible .index-num { color: var(--ground); }
.index-num { font-family: var(--mono); font-size: .9375rem; color: var(--muted); align-self: start; padding-top: 1.2em; }
.index-word { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--giant); line-height: .84; overflow-wrap: anywhere; }
.index-note { font-size: 1.0625rem; line-height: 1.45; color: var(--ink-2); }
.index-note b { display: block; font-family: var(--mono); font-weight: 500; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.index-arrow { font-family: var(--display); font-size: 2.5rem; font-weight: 300; justify-self: end; transition: transform .2s; }
.index-link:hover .index-arrow, .index-link:focus-visible .index-arrow { transform: translateX(.3rem) rotate(-45deg); color: var(--accent-hot); }
.index-inline-photo { display: inline-block; width: .9em; height: .7em; border-radius: 999px; object-fit: cover; vertical-align: .02em; margin-left: .12em; filter: grayscale(.2); }
.index-peek {
  position: absolute; right: 26rem; top: 50%; width: 260px; aspect-ratio: 4/3; object-fit: cover; z-index: 3; pointer-events: none;
  opacity: 0; transform: translateY(-50%) rotate(3deg) scale(.92); transition: opacity .2s, transform .25s; border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.index > li:hover .index-peek, .index > li:focus-within .index-peek { opacity: 1; transform: translateY(-50%) rotate(3deg) scale(1); }
@media (max-width: 1100px) { .index-peek { display: none; } }
@media (max-width: 760px) {
  .index-link { grid-template-columns: 2.25rem minmax(0, 1fr) 2rem; gap: .5rem .75rem; }
  .index-note { grid-column: 2 / 4; grid-row: 2; font-size: 1rem; padding-bottom: .5rem; }
  .index-arrow { grid-column: 3; grid-row: 1; font-size: 1.75rem; }
  .index-word { font-size: clamp(3rem, 16.5vw, 5rem); }
}

/* Mid-size rows: articles, projects, patterns */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows > li { border-top: 1px solid var(--line); position: relative; }
.row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 11rem; gap: 1.5rem; align-items: start; padding: 1.5rem 0;
  text-decoration: none; color: inherit;
}
.row-meta { font-family: var(--mono); font-size: .875rem; color: var(--muted); padding-top: .55rem; text-transform: uppercase; letter-spacing: .04em; }
.row-title { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: var(--row); line-height: 1.02; color: var(--ink); text-transform: uppercase; }
.row-title span { background-image: linear-gradient(var(--accent-hot), var(--accent-hot)); background-size: 0 .12em; background-repeat: no-repeat; background-position: 0 92%; transition: background-size .25s ease; }
.row:hover .row-title span, .row:focus-visible .row-title span { background-size: 100% .12em; }
.row-desc { margin: .6rem 0 0; color: var(--ink-2); max-width: 46rem; }
.row-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; background: var(--chip-bg); }
.row-thumb.ph { display: grid; place-items: center; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: 2rem; color: var(--muted); text-transform: uppercase; border: 1px solid var(--line); overflow: hidden; padding: 0 .5rem; text-align: center; }
.row.no-thumb { grid-template-columns: 7.5rem minmax(0, 1fr); }
@media (max-width: 760px) {
  .row, .row.no-thumb { grid-template-columns: 1fr; gap: .5rem; padding: 1.25rem 0; }
  .row-meta { padding-top: 0; order: -1; }
  .row-thumb { max-width: 100%; order: -2; }
  .row-title { font-size: 1.75rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.chip { font-family: var(--mono); font-size: .8125rem; padding: .3rem .6rem; background: var(--chip-bg); color: var(--ink-2); border-radius: 999px; text-decoration: none; }
a.chip:hover { background: var(--ink); color: var(--ground); }
.badge { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 999px; color: var(--accent); white-space: nowrap; }
.badge.solid { background: var(--accent); color: var(--ground); border-color: var(--accent); }

/* ───────── Sections ───────── */
.section { padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.sec-head h2 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--big); line-height: .9; }
.sec-head p { margin: .5rem 0 0; color: var(--muted); max-width: 40rem; }
.more { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--accent-hot); padding-bottom: .1rem; min-height: 44px; display: inline-flex; align-items: end; }
.more:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.125rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #111; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.link-quiet { color: var(--muted); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }

/* ───────── Home ───────── */
.home-intro { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); align-items: end; }
.home-intro h1 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: 1.02; max-width: 22ch; letter-spacing: -.01em; }
.home-intro p { margin: 0; max-width: 36rem; font-size: 1.1875rem; }
.home-intro .cta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.25rem; }
@media (min-width: 1000px) { .home-intro { grid-template-columns: 1.1fr 1fr; } }
.hint { font-family: var(--mono); font-size: .875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin: 0; }
.stat { background: var(--ground); padding: 1.25rem 1.5rem 1.5rem; }
.stat dt { font-family: var(--mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat dd { margin: .25rem 0 0; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: var(--huge); line-height: .85; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stat { display: flex; justify-content: space-between; align-items: end; } }

.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.shelf a { text-decoration: none; color: inherit; display: block; }
.shelf img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; margin-bottom: 1rem; transition: filter .2s; }
.shelf a:hover img { filter: saturate(1.3) contrast(1.05); }
.shelf .num { font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: 4rem; line-height: .8; color: var(--accent-hot); }
.shelf h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.75rem; line-height: 1.05; text-transform: uppercase; margin: .5rem 0; }
.shelf a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent-hot); text-decoration-thickness: 3px; }
.shelf p { margin: 0; }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.tile { background: var(--ground); padding: 1.5rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .5rem; min-height: 15rem; transition: background .15s, color .15s; }
.tile:hover, .tile:focus-visible { background: var(--ink); color: var(--ground); }
.tile:hover h3, .tile:focus-visible h3, .tile:hover .tile-type, .tile:focus-visible .tile-type { color: var(--ground); }
.tile .tile-type { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tile h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.tile p { margin: 0; }
.tile .tile-tech { margin-top: auto; font-family: var(--mono); font-size: .8125rem; opacity: .85; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

.band { background: var(--menu-bg); color: var(--menu-ink); padding: clamp(3rem, 7vw, 6rem) 0; }
.band h2 { color: var(--menu-ink); font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--huge); line-height: .86; max-width: 14ch; }
.band p { font-size: 1.25rem; max-width: 36rem; color: var(--menu-ink); }
.band .btn-primary { background: var(--menu-ink); color: var(--menu-bg); border-color: var(--menu-ink); }
.band .btn-primary:hover { background: var(--menu-accent); border-color: var(--menu-accent); color: #111; }
.band .btn-ghost { color: var(--menu-ink); border-color: var(--menu-ink); }
.band .btn-ghost:hover { background: var(--menu-ink); color: var(--menu-bg); }
.band a:not(.btn) { color: var(--menu-ink); }
.band-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 1000px) { .band-grid { grid-template-columns: 1.3fr 1fr; } }
.band .mini { list-style: none; padding: 0; margin: 0; border-top: 1px solid color-mix(in srgb, var(--menu-ink) 30%, transparent); }
.band .mini li { border-bottom: 1px solid color-mix(in srgb, var(--menu-ink) 30%, transparent); }
.band .mini a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; text-decoration: none; font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; }
.band .mini a span { font-family: var(--mono); font-weight: 400; font-stretch: 100%; text-transform: none; font-size: .9375rem; color: var(--menu-dim); align-self: center; }
.band .mini a:hover { color: var(--menu-accent); }

/* ───────── Footer: the giant nav, again ───────── */
.foot { border-top: 2px solid var(--line-strong); padding: clamp(2rem, 5vw, 4rem) 0 2rem; margin-top: clamp(2rem, 5vw, 4rem); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 2.4vw, 2.5rem); }
.foot-nav a { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.75rem, 8vw, 7.5rem); line-height: .95; text-decoration: none; color: var(--ink); transition: color .15s; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--accent); }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.foot-grid h3 { font-family: var(--mono); font-weight: 500; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--ink); }
.foot-grid li a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid p { margin: 0; }
.news { display: flex; gap: 0; margin-top: .75rem; }
.news input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: 1rem var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-right: 0; border-radius: 999px 0 0 999px; }
.news button { min-height: 48px; padding: 0 1.1rem; font: 700 1rem var(--body); background: var(--ink); color: var(--ground); border: 2px solid var(--ink); border-radius: 0 999px 999px 0; cursor: pointer; }
.news button:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #111; }
.news-status { font-size: 1rem; margin-top: .5rem; min-height: 1.6em; color: var(--ink); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ───────── Projects ───────── */
.jump { position: sticky; top: 61px; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); }
.jump ol { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; gap: 0 1.75rem; overflow-x: auto; scrollbar-width: thin; }
.jump a { display: inline-flex; gap: .4rem; align-items: baseline; white-space: nowrap; min-height: 52px; align-items: center; font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.375rem; text-decoration: none; color: var(--ink); }
.jump a sup { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--muted); }
.jump a:hover { color: var(--accent); }
.feature { display: grid; grid-template-columns: 1fr; gap: 2rem; border: 2px solid var(--line-strong); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); }
@media (min-width: 1000px) { .feature { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.feature h3 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--big); line-height: .9; }
.feature img { width: 100%; border-radius: 3px; aspect-ratio: 16/10; object-fit: cover; }
.feature .stats { margin: 1.5rem 0; }
.feature .stat { background: var(--surface); padding: 1rem; }
.feature .stat dd { font-size: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 640px) { .feature .stats { grid-template-columns: repeat(3,1fr); } .feature .stat { display: block; } }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards3 > * { background: var(--ground); padding: 1.5rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .5rem; }
.cards3 > a:hover { background: var(--surface); }
.cards3 h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.625rem; line-height: 1; }
.cards3 p { margin: 0; }
.cards3 .meta { margin-top: auto; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ───────── About ───────── */
.about-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .about-hero { grid-template-columns: 1.4fr 1fr; } }
.about-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; max-height: 560px; }
.prose-block { max-width: 44rem; font-size: 1.1875rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.timeline .period { font-family: var(--mono); font-size: .9375rem; color: var(--muted); }
.timeline ul { margin: .75rem 0 0; padding-left: 1.1rem; }
@media (max-width: 700px) { .timeline > li { grid-template-columns: 1fr; gap: .5rem; } }
.career { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.career li { font-family: var(--mono); font-size: .875rem; border: 1px solid var(--line-strong); padding: .35rem .7rem; border-radius: 999px; }
details.work > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.work > summary::-webkit-details-marker { display: none; }
details.work[open] .show { display: none; }
details.work:not([open]) .hide { display: none; }
.proverbs { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.proverbs li { counter-increment: p; font-family: var(--display); font-stretch: 72%; font-weight: 700; font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.75rem); line-height: 1.08; padding: 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--menu-ink) 30%, transparent); color: var(--menu-ink); display: grid; grid-template-columns: 3rem 1fr; }
.proverbs li::before { content: "0" counter(p); font-family: var(--mono); font-style: normal; font-weight: 400; font-size: .9375rem; color: var(--menu-dim); padding-top: .6em; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.caps > div { background: var(--ground); padding: 1.5rem; }
.caps h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; }
.caps p { margin: .5rem 0 0; }
@media (max-width: 800px) { .caps { grid-template-columns: 1fr; } }
.beyond { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .beyond { grid-template-columns: 1fr 1.2fr; } }
.beyond img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.beyond dl { margin: 0; }
.beyond dt { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; color: var(--ink); margin-top: 1.25rem; }
.beyond dd { margin: .25rem 0 0; }

/* ───────── Article ───────── */
.art-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: end; color: #f4efe4; overflow: hidden; background: #111; }
.art-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: grayscale(.4); }
.art-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,15,.95) 10%, rgba(10,12,15,.35) 60%, rgba(10,12,15,.15)); }
.art-hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 4rem); width: 100%; }
.art-hero h1 { color: #f4efe4; font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(3.25rem, 9.5vw, 9.5rem); line-height: .86; max-width: 16ch; }
.art-hero .crumb { color: #f4efe4; font-family: var(--mono); font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 2px solid var(--accent-hot); min-height: 44px; display: inline-flex; align-items: center; }
.art-hero .desc { font-size: 1.375rem; max-width: 40rem; margin: 1.25rem 0 0; color: #e8e2d6; }
.art-hero .meta { font-family: var(--mono); font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em; color: #d9d2c4; margin-top: 1rem; display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.art-hero .meta a { color: #f4efe4; }
.art-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: clamp(2rem, 4vw, 3.5rem); }
.art-layout > * { min-width: 0; }
@media (max-width: 1179px) { .toc h2 { display: none; } .toc details[open] summary { margin-bottom: .75rem; } }
@media (min-width: 1180px) { .art-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; } }
.toc { font-size: 1rem; }
.toc-inner { position: sticky; top: 90px; }
.toc h2 { font-family: var(--mono); font-weight: 500; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 1px solid var(--line-strong); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 2rem 1fr; padding: .6rem 0; text-decoration: none; color: var(--ink-2); font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; font-size: 1.125rem; line-height: 1.15; }
.toc a::before { content: "0" counter(t); font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .8125rem; color: var(--muted); padding-top: .15rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); }
.toc a.is-active::before { color: var(--accent); }
.toc details summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-family: var(--mono); font-size: .9375rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line-strong); padding: 0 1rem; border-radius: 999px; }
@media (min-width: 1180px) { .toc details summary { display: none; } }
.prose { max-width: 42rem; font-size: 1.1875rem; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.5rem, 5vw, 4rem); line-height: .9; margin-top: 4rem; scroll-margin-top: 90px; display: flex; gap: .75rem; align-items: baseline; }
.prose h2 .n { font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .9375rem; color: var(--accent); }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--chip-bg); padding: .08em .35em; border-radius: 4px; }
.prose blockquote { margin: 1.75rem 0 0; padding: 1rem 1.25rem; border-left: 6px solid var(--ink); background: var(--surface); }
.prose blockquote p { margin: 0; }
.prose blockquote.why { background: var(--callout-why); border-left-color: var(--menu-bg); }
.prose blockquote.q { background: var(--callout-q); border-left-color: var(--accent-hot); }
.prose blockquote .tag { display: block; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.code { margin: 1.75rem 0 0; background: var(--code-bg); color: var(--code-ink); border-radius: 4px; overflow: hidden; }
@media (min-width: 1180px) { .code { margin-right: -8rem; } }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .25rem .5rem .25rem 1rem; border-bottom: 1px solid #2a3038; font-family: var(--mono); font-size: .8125rem; color: var(--code-muted); text-transform: uppercase; letter-spacing: .08em; }
.copy { min-height: 40px; padding: 0 .9rem; background: transparent; color: var(--code-ink); border: 1px solid #3a424c; border-radius: 999px; font: .8125rem var(--mono); cursor: pointer; }
.copy:hover { background: var(--code-ink); color: var(--code-bg); }
.code pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--mono); font-size: .9375rem; line-height: 1.6; tab-size: 2; }
.code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.tk-k { color: #ff9e64; } .tk-s { color: #a8d88a; } .tk-c { color: #8b949e; font-style: italic; } .tk-t { color: #7dcfff; }
.art-end { max-width: 42rem; }
.share { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.news-card { background: var(--menu-bg); color: var(--menu-ink); padding: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
.news-card h2 { color: var(--menu-ink); font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: .9; }
.news-card p { color: var(--menu-ink); }
.news-card .news input { border-color: var(--menu-ink); background: transparent; color: var(--menu-ink); }
.news-card .news input::placeholder { color: var(--menu-dim); }
.news-card .news button { background: var(--menu-ink); color: var(--menu-bg); border-color: var(--menu-ink); }
.news-card .news-status { color: var(--menu-ink); }
.series-strip { font-family: var(--mono); font-size: .9375rem; }

/* ───────── Patterns ───────── */
.three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin-top: 2rem; }
.three > div { background: var(--surface); padding: 1.5rem; }
.three h3 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: .9; }
.three p { margin: .5rem 0 0; }
@media (max-width: 800px) { .three { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.filter { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(2.25rem, 5.5vw, 5rem); line-height: 1; min-height: 44px; transition: color .15s; }
.filter sup { font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .875rem; vertical-align: super; margin-left: .15rem; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-hot); text-decoration-thickness: .08em; text-underline-offset: .08em; }
.pat-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid var(--line-strong); }
.pat-search { flex: 1 1 28rem; min-height: 56px; padding: 0 1.25rem; font: 1.125rem var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; }
.pat-search::placeholder { color: var(--muted); }
.pat-count { font-family: var(--mono); font-size: .9375rem; color: var(--ink); display: flex; gap: 1rem; align-items: center; }
.pat-count button { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.sort { font: 1rem var(--body); min-height: 44px; padding: 0 .75rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; }
.pat-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; text-decoration: none; color: inherit; align-items: start; }
.pat-row .row-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.pat-row .pat-cat { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.pat-row p { margin: 0; }
.pat-row .good { margin-top: .5rem; font-size: 1rem; color: var(--muted); }
.pat-row:hover .row-title span, .pat-row:focus-visible .row-title span { background-size: 100% .12em; }
@media (max-width: 800px) { .pat-row { grid-template-columns: 2.5rem minmax(0,1fr); } .pat-row > div:last-child { grid-column: 2; } }
.empty { padding: 3rem 0; border-top: 1px solid var(--line); }
.empty h3 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--big); }

.back { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.back:hover { color: var(--accent); }
.usecases { columns: 2 16rem; margin: .75rem 0 0; padding-left: 1.2rem; }
.panes { border: 2px solid var(--line-strong); margin-top: 2rem; background: var(--surface); }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-bottom: 2px solid var(--line-strong); }
.pane-tabs { display: flex; flex-wrap: wrap; }
.pane-tab { background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; padding: 0 1.1rem; min-height: 56px; font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; color: var(--muted); }
.pane-tab[aria-selected="true"] { color: var(--ground); background: var(--ink); }
.pane-tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.pane-actions { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; }
.pane-btn { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 .9375rem var(--body); cursor: pointer; }
.pane-btn:hover { background: var(--ink); color: var(--ground); }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 1.1rem 1.25rem; border-radius: 4px; overflow-x: auto; font: .9375rem/1.6 var(--mono); }
.pane-note { margin: 0 0 1rem; font-size: 1rem; color: var(--ink-2); }
.prompt-text { max-width: 44rem; font-size: 1.125rem; }
.prompt-text p { margin: 0 0 1rem; }

/* Live preview of the hairline stat strip */
.stage { --p-ground: #eef0f3; --p-surface: #ffffff; --p-border: #d2d8e0; --p-ink: #161b22; --p-dim: #56606e; --p-accent: #364f6a; --p-ok: #1c6e52; --p-warn: #7e610f; --p-bad: #a03227;
  background: var(--p-ground); color: var(--p-ink); padding: clamp(1rem, 3vw, 2rem); border-radius: 10px; font-size: 1rem; }
:root[data-theme="dark"] .stage { --p-ground: #10141a; --p-surface: #191f27; --p-border: #2c3743; --p-ink: #e6ecf3; --p-dim: #97a4b4; --p-accent: #6f92bd; --p-ok: #4fbe93; --p-warn: #ddb44a; --p-bad: #ee8579; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage { --p-ground: #10141a; --p-surface: #191f27; --p-border: #2c3743; --p-ink: #e6ecf3; --p-dim: #97a4b4; --p-accent: #6f92bd; --p-ok: #4fbe93; --p-warn: #ddb44a; --p-bad: #ee8579; } }
.stage .cap { color: var(--p-dim); margin: 0 0 .75rem; }
.hss-strip { display: grid; gap: 1px; background: var(--p-border); border: 1px solid var(--p-border); border-radius: 10px; overflow: hidden; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@container (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, 1fr); } }
.stage { container-type: inline-size; }
@container (min-width: 42rem) { .hss-strip.four { grid-template-columns: repeat(4, 1fr); } .hss-strip.five { grid-template-columns: repeat(5, 1fr); } }
@container (min-width: 21rem) and (max-width: 42rem) { .hss-strip.five > :last-child { grid-column: 1 / -1; } }
.hss-tile { background: var(--p-surface); padding: .9rem 1rem; min-width: 0; text-align: left; border: 0; font: inherit; color: inherit; }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: color-mix(in srgb, var(--p-accent) 7%, var(--p-surface)); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--p-accent) 14%, var(--p-surface)); box-shadow: inset 0 -3px 0 var(--p-accent); }
.hss-label { display: block; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--p-dim); }
.hss-fig { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hss-fig.none { color: var(--p-dim); font-weight: 400; }
.hss-sub { display: block; font-size: .875rem; color: var(--p-dim); overflow-wrap: anywhere; }
.hss-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--p-border); border-radius: 10px; overflow: hidden; }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: var(--p-surface); border-top: 1px solid var(--p-border); }
.hss-list li:first-child { border-top: 0; }
.hss-list .st { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; white-space: nowrap; }
.st-done { color: var(--p-ok); } .st-down { color: var(--p-accent); } .st-queued { color: var(--p-warn); } .st-failed { color: var(--p-bad); }
.hss-status { margin: .75rem 0 0; color: var(--p-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.feature > *, .split > *, .band-grid > * { min-width: 0; }
.stat dt { overflow-wrap: anywhere; }
@media (max-width: 640px) { .feature .stat { padding: .75rem; } .feature .stat dt { font-size: .8125rem; letter-spacing: 0; } }

/* gallery article */
.prose figure { margin: 1.75rem 0 0; }
.prose figure img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); }
.prose blockquote p + p { margin-top: .75rem; }
.prose .live-pattern .btn { white-space: normal; }
.prose code { overflow-wrap: anywhere; }
