/* Swiss Poster — antjanus.com redesign 037
   Numerals and type are the graphics; compositions run on a 30° diagonal
   (Müller-Brockmann's Musica Viva grid angle). */

:root {
  --paper: #efece4;
  --paper-2: #e3dfd3;
  --ink: #121212;
  --ink-2: #45423c;
  --hair: #c7c1b3;
  --red: #e2401f;          /* large type + fields only */
  --red-ink: #b3301a;      /* red at text sizes, 5.6:1 on paper */
  --panel-red: #c42d14;    /* white text 5.4:1 */
  --blue: #364f6a;         /* brand slate, the second plate */
  --blue-ink: #364f6a;
  --panel-blue: #2a3f54;
  --duo-blue: #86a7cb;
  --duo-red: #ee6a4c;
  --on-panel: #ffffff;
  --code-bg: #141414;
  --code-ink: #ebe7dd;
  --code-dim: #a9a397;
  --code-key: #ff8a6b;
  --code-str: #9ec3e6;
  --focus: #0b57d0;
  --angle: -30deg;
  --tilt: -8deg;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Space Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #111110;
  --paper-2: #1c1b19;
  --ink: #efece4;
  --ink-2: #bcb7ab;
  --hair: #3a3833;
  --red: #ff5433;
  --red-ink: #ff7a5e;
  --blue: #7fa3cb;
  --blue-ink: #9dbbdc;
  --duo-blue: #4d6f94;
  --duo-red: #d2472a;
  --code-bg: #1c1b19;
  --focus: #8ab4ff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111110;
    --paper-2: #1c1b19;
    --ink: #efece4;
    --ink-2: #bcb7ab;
    --hair: #3a3833;
    --red: #ff5433;
    --red-ink: #ff7a5e;
    --blue: #7fa3cb;
    --blue-ink: #9dbbdc;
    --duo-blue: #4d6f94;
    --duo-red: #d2472a;
    --code-bg: #1c1b19;
    --focus: #8ab4ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .label { font-family: var(--f-mono); }
.label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; }
.muted { color: var(--ink-2); }
.red { color: var(--red-ink); }

/* Condensed poster type */
.cond { font-stretch: 62%; font-weight: 900; letter-spacing: -0.03em; }
.numeral {
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--red);
  font-variant-numeric: lining-nums tabular-nums;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ───────── Header ───────── */
.progress { position: fixed; top: 0; left: 0; height: 5px; width: 0; background: var(--red); z-index: 60; }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.brand__big { font-stretch: 62%; font-weight: 900; font-size: 1.625rem; text-transform: uppercase; letter-spacing: -0.01em; }
.nav { display: flex; align-items: stretch; gap: 4px; }
.nav a {
  display: flex; align-items: baseline; gap: 6px;
  padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: 1rem;
  border-bottom: 4px solid transparent; min-height: 44px;
}
.nav a span { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav a[aria-current="page"] span { color: var(--red-ink); }
.nav a.nav__ai { background: var(--ink); color: var(--paper); border-bottom-color: var(--red); }
.nav a.nav__ai span { color: var(--paper); opacity: .8; }
.nav a.nav__ai:hover { background: var(--panel-red); color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 2px solid var(--ink); cursor: pointer;
  font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.theme-dot { width: 14px; height: 14px; background: linear-gradient(135deg, var(--ink) 50%, var(--red) 50%); display: inline-block; }
.menu-btn { display: none; }

@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 3px solid var(--ink);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.5rem; font-stretch: 75%; font-weight: 900; border-bottom: 1px solid var(--hair); padding: 14px 0; }
  .nav a.nav__ai { padding-left: 12px; }
  .theme-label { display: none; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; font-weight: 800; text-decoration: none; font-size: 1.0625rem;
  border: 3px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--panel-red); border-color: var(--panel-red); color: #fff; }
.btn:active { transform: translateY(2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--red); padding-bottom: 2px; }
.link-arrow:hover { color: var(--red-ink); }
.link-quiet { color: var(--ink-2); font-weight: 600; }

/* ───────── Diagonal devices ───────── */
.band-zone { position: relative; overflow: clip; padding: 56px 0; }
.band {
  width: 130%; margin-left: -15%;
  background: var(--red); color: #fff;
  transform: rotate(var(--tilt));
  white-space: nowrap; overflow: hidden;
  font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1; padding: 14px 0;
  letter-spacing: 0.01em;
}
.band--ink { background: var(--ink); color: var(--paper); transform: rotate(calc(var(--tilt) * -0.6)); margin-top: -30px; }
.band span { display: inline-block; padding-right: 1.2em; }
.band span::after { content: "■"; color: currentColor; padding-left: 1.2em; font-size: .6em; vertical-align: middle; }

.slash-rule {
  height: 40px; position: relative; overflow: hidden;
}
.slash-rule::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 10px;
  background: repeating-linear-gradient(-60deg, var(--ink) 0 6px, transparent 6px 16px);
}

/* parallelogram duotone photos */
.duo { position: relative; background: var(--duo-blue); overflow: hidden; margin: 0; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; }
.duo--red { background: var(--duo-red); }
.duo--ink { background: #cfcac0; }
.para { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.para--gentle { clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.duo-link:hover .duo img, .duo-link:focus-visible .duo img { filter: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: no-preference) {
  .duo img { transition: filter .2s; }
}

/* ───────── Poster hero ───────── */
.poster { position: relative; overflow: clip; border-bottom: 3px solid var(--ink); }
.poster__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  position: relative; padding-top: 48px; padding-bottom: 56px;
}
.eyebrow { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.eyebrow b { color: var(--red-ink); font-weight: 700; }
.poster__title {
  font-size: clamp(3rem, 7.4vw, 7.25rem);
  line-height: 0.9; letter-spacing: -0.045em; font-weight: 900; font-stretch: 80%;
  margin: 28px 0 28px;
}
.poster__title em { font-style: normal; color: var(--red-ink); }
.poster__sub { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.45; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

.home-hero .poster__text { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 2; padding-top: 8px; }
.home-hero .hero-photo { grid-column: 7 / 13; grid-row: 1; height: min(78vh, 700px); min-height: 520px; }
.home-hero .hero-numeral {
  position: absolute; right: -2%; bottom: -10%; z-index: 3;
  font-size: clamp(9rem, 26vw, 25rem);
  transform: rotate(var(--angle)); transform-origin: 70% 70%;
  mix-blend-mode: multiply; pointer-events: none;
}
:root[data-theme="dark"] .home-hero .hero-numeral { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-hero .hero-numeral { mix-blend-mode: normal; } }
.hero-caption {
  position: absolute; left: 0; bottom: 0; z-index: 4;
}

@media (max-width: 900px) {
  .poster__grid { grid-template-columns: 1fr; padding-top: 28px; }
  .home-hero .poster__text, .home-hero .hero-photo { grid-column: 1; }
  .home-hero .hero-photo { grid-row: 2; height: 380px; min-height: 0; margin-top: 36px; }
  .home-hero .hero-numeral { font-size: 10rem; right: 2%; bottom: 4%; }
}

/* Giant stat row */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 3px solid var(--ink); }
.stat { padding: 28px 24px 24px 0; position: relative; overflow: hidden; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--hair); }
.stat .numeral { font-size: clamp(5rem, 13vw, 12rem); display: block; }
.stat:nth-child(1) .numeral { color: var(--ink); }
.stat:nth-child(3) .numeral { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.stat .label { display: block; margin-top: 14px; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
  .stat { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .stat .numeral { font-size: 6.5rem; }
  .stat .label { text-align: right; max-width: 10ch; }
}

/* ───────── Section heads ───────── */
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 48px 0; }
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  border-top: 8px solid var(--ink); padding-top: 18px; margin-bottom: 44px; align-items: end;
}
.sec-head__num { grid-column: 1 / 4; font-size: clamp(5rem, 10vw, 9.5rem); }
.sec-head__body { grid-column: 4 / 11; }
.sec-head__body h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-stretch: 85%; font-weight: 900; letter-spacing: -0.035em; }
.sec-head__body p { margin: 12px 0 0; font-size: 1.25rem; color: var(--ink-2); }
.sec-head__link { grid-column: 11 / 13; justify-self: end; align-self: end; white-space: nowrap; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: auto 1fr; gap: 8px 20px; }
  .sec-head__num { grid-column: 1; font-size: 5.5rem; grid-row: 1 / 3; align-self: start; }
  .sec-head__body { grid-column: 2; }
  .sec-head__link { grid-column: 2; justify-self: start; margin-top: 14px; }
}

/* ───────── Index lists (article rows) ───────── */
.index { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.index li { border-bottom: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 11rem; column-gap: 24px;
  padding: 22px 12px; text-decoration: none; align-items: start; position: relative;
}
.row__n { font-stretch: 62%; font-weight: 900; font-size: 3.25rem; line-height: .85; color: var(--red-ink); }
.row__title { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; display: block; }
.row__desc { display: block; margin-top: 8px; color: var(--ink-2); max-width: 70ch; }
.row__meta { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; text-align: right; line-height: 1.6; }
.row:hover, .row:focus-visible { background: var(--panel-red); color: #fff; }
.row:hover .row__n, .row:hover .row__desc, .row:focus-visible .row__n, .row:focus-visible .row__desc { color: #fff; }
.row:focus-visible { outline-offset: -3px; outline-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .row { transition: background .15s, color .15s; }
}
@media (max-width: 700px) {
  .row { grid-template-columns: 3.25rem minmax(0, 1fr); padding: 18px 4px; }
  .row__n { font-size: 2.5rem; }
  .row__meta { grid-column: 2; text-align: left; margin-top: 10px; }
}

.tag { display: inline-block; font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .04em; border: 1.5px solid currentColor; padding: 2px 8px; line-height: 1.5; text-decoration: none; }
a.tag:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-block; font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; padding: 2px 8px; background: var(--ink); color: var(--paper); font-weight: 700; }
.badge--new { background: var(--panel-red); color: #fff; }

/* ───────── Start-here posters ───────── */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.poster-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border: 3px solid var(--ink); background: var(--paper); min-height: 600px; overflow: hidden;
}
.poster-card .duo { height: 260px; }
.poster-card__n {
  position: absolute; top: 150px; right: -10px; z-index: 2; font-size: 12rem;
  transform: rotate(var(--angle));
}
.poster-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.poster-card h3 { font-size: 1.875rem; font-stretch: 85%; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-top: 36px; }
.poster-card p { margin: 0; color: var(--ink-2); }
.poster-card .label { margin-top: auto; }
.poster-card:hover { border-color: var(--red); }
.poster-card:hover h3 { color: var(--red-ink); }
.poster-card:nth-child(2) { transform: translateY(48px); }
.poster-card:nth-child(3) { transform: translateY(96px); }
.posters-zone { padding-bottom: 120px; }
@media (max-width: 1000px) {
  .posters { grid-template-columns: 1fr; }
  .poster-card:nth-child(n) { transform: none; }
  .poster-card { min-height: 0; }
  .posters-zone { padding-bottom: 72px; }
}

/* ───────── Card grids ───────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.cell { padding: 26px 22px 30px 0; border-bottom: 1px solid var(--ink); position: relative; }
.grid-4 .cell + .cell { padding-left: 22px; border-left: 1px solid var(--hair); }
@media (max-width: 1000px) { .grid-4 .cell:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .grid-4 .cell { border-left: 0 !important; padding-left: 0 !important; } }
.cell h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.cell h3 a { text-decoration: none; }
.cell h3 a::after { content: ""; position: absolute; inset: 0; }
.cell h3 a:hover { color: var(--red-ink); }
.cell p { color: var(--ink-2); margin: 0 0 12px; }
.cell__glyph { width: 64px; height: 64px; }

.img-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.img-card .duo { aspect-ratio: 16 / 9; }
.img-card h3 { font-size: 1.5rem; line-height: 1.15; }
.img-card:hover h3 { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 3px; }
.img-card p { margin: 0; color: var(--ink-2); }

/* Fields */
.field-red { background: var(--panel-red); color: #fff; }
.field-ink { background: var(--ink); color: var(--paper); }
.field-blue { background: var(--panel-blue); color: #fff; }
.field-red a, .field-blue a { color: #fff; }
.field-red .btn, .field-blue .btn { background: #fff; color: #121212; border-color: #fff; }
.field-red .btn:hover, .field-blue .btn:hover { background: #121212; color: #fff; border-color: #121212; }
.field-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.field-ink .btn:hover { background: var(--panel-red); color: #fff; border-color: var(--panel-red); }
.field-ink .muted { color: var(--paper); opacity: .82; }

/* Work-with-me slab */
.slab { position: relative; overflow: clip; padding: 64px 0; }
.slab__num { position: absolute; right: -3%; top: -18%; font-size: clamp(14rem, 34vw, 30rem); color: rgba(255,255,255,.14); transform: rotate(var(--angle)); pointer-events: none; }
.slab h2 { font-size: clamp(2.5rem, 5.5vw, 5rem); font-stretch: 80%; font-weight: 900; letter-spacing: -0.04em; max-width: 14ch; }
.slab p { font-size: 1.3125rem; max-width: 44ch; margin: 20px 0 28px; }

/* Link lists */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { border-top: 1px solid var(--hair); }
.list-plain a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; text-decoration: none; font-weight: 700; min-height: 44px; }
.list-plain a:hover { color: var(--red-ink); }
.list-plain a span { font-family: var(--f-mono); font-weight: 400; font-size: 0.875rem; color: var(--ink-2); text-transform: uppercase; }
.field-red .list-plain li, .field-ink .list-plain li { border-color: rgba(255,255,255,.35); }

/* ───────── Footer ───────── */
.site-foot { border-top: 8px solid var(--ink); margin-top: 0; padding-top: 48px; overflow: clip; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; }
.foot-grid h2 { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; margin-bottom: 12px; color: var(--ink-2); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li a { display: inline-block; padding: 6px 0; font-weight: 700; text-decoration: none; min-height: 32px; }
.foot-grid li a:hover { color: var(--red-ink); text-decoration: underline; }
.foot-word {
  font-stretch: 62%; font-weight: 900; font-size: clamp(6rem, 24vw, 22rem); line-height: .78;
  letter-spacing: -0.05em; margin: 48px 0 -0.08em; white-space: nowrap; color: var(--ink);
}
.foot-word span { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 24px; border-top: 3px solid var(--ink); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-row { display: flex; gap: 0; max-width: 520px; }
.input {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink); border-right: 0;
}
.input::placeholder { color: var(--ink-2); opacity: 1; }
.form-row .btn { border-left: 0; }
.form-note { font-size: 1rem; margin-top: 10px; min-height: 1.5em; }
.form-note.is-ok { color: var(--red-ink); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; margin-top: 12px; }
.check input { width: 22px; height: 22px; accent-color: var(--red); margin-top: 2px; flex: none; }
.field-red .input, .field-ink .input, .field-blue .input { background: transparent; color: inherit; border-color: currentColor; }
.field-red .input::placeholder, .field-ink .input::placeholder { color: inherit; opacity: .8; }
.field-red .form-note.is-ok, .field-ink .form-note.is-ok { color: inherit; }

/* ───────── Page-title posters (inner pages) ───────── */
.page-poster { position: relative; overflow: clip; border-bottom: 3px solid var(--ink); }
.page-poster .poster__grid { min-height: 520px; align-items: end; }
.page-poster__text { grid-column: 1 / 8; position: relative; z-index: 2; }
.page-poster__big {
  grid-column: 7 / 13; grid-row: 1; justify-self: end; align-self: center;
  font-size: clamp(12rem, 34vw, 32rem); transform: rotate(var(--angle)); z-index: 1;
  pointer-events: none; margin-right: -2%;
}
.page-poster h1 { font-size: clamp(3.5rem, 10vw, 9.5rem); font-stretch: 70%; font-weight: 900; letter-spacing: -0.05em; line-height: .86; margin: 20px 0 22px; }
.page-poster .lede { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); max-width: 40ch; }
.vertical-word {
  position: absolute; left: calc(var(--gutter) * .25); top: 0; bottom: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .3em; color: var(--red-ink);
}
@media (max-width: 900px) {
  .page-poster .poster__grid { min-height: 0; }
  .page-poster__text { grid-column: 1; grid-row: 2; }
  .page-poster__big { grid-column: 1; grid-row: 1; justify-self: end; font-size: 11rem; margin: -10px -10px -40px 0; }
  .vertical-word { display: none; }
}

.jump { position: sticky; top: 71px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ink); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.jump a { flex: none; font-weight: 700; text-decoration: none; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; }
.jump a span { font-family: var(--f-mono); font-size: .8125rem; color: var(--red-ink); }
.jump a:hover { border-color: var(--ink); }

/* ───────── Projects ───────── */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch; }
.feature__img { grid-column: 1 / 7; min-height: 460px; }
.feature__body { grid-column: 7 / 13; padding: 12px 0 0; }
.feature__body h3 { font-size: clamp(2.25rem, 4vw, 3.75rem); font-stretch: 80%; font-weight: 900; letter-spacing: -0.04em; margin: 14px 0 16px; }
.mega-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); margin: 28px 0; }
.mega-stats div { padding: 12px 12px 0 0; }
.mega-stats div + div { border-left: 1px solid var(--hair); padding-left: 16px; }
.mega-stats .numeral { font-size: clamp(4rem, 7vw, 6.5rem); display: block; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__img, .feature__body { grid-column: 1; }
  .feature__img { min-height: 260px; }
}

.repo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--ink); align-items: center; }
.repo:nth-child(even) .duo { order: 2; }
.repo .duo { aspect-ratio: 16 / 10; }
.repo h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-stretch: 85%; font-weight: 900; letter-spacing: -0.03em; margin: 10px 0 12px; }
.repo h3 a { text-decoration: none; }
.repo h3 a:hover { color: var(--red-ink); }
.repo .inline-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0; }
.repo .inline-stats b { font-stretch: 62%; font-weight: 900; font-size: 2.75rem; line-height: 1; display: block; color: var(--red-ink); }
@media (max-width: 800px) { .repo { grid-template-columns: 1fr; gap: 18px; } .repo:nth-child(even) .duo { order: 0; } }

.stars-table { width: 100%; border-collapse: collapse; }
.stars-table th { text-align: left; font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; font-weight: 400; color: var(--ink-2); padding: 10px 12px 10px 0; border-bottom: 3px solid var(--ink); }
.stars-table td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.stars-table td:first-child { width: 9rem; }
.stars-table .numeral { font-size: 4rem; color: var(--red-ink); }
.stars-table a { font-weight: 800; font-size: 1.3125rem; text-decoration: none; }
.stars-table a:hover { color: var(--red-ink); text-decoration: underline; }
@media (max-width: 700px) {
  .stars-table thead { display: none; }
  .stars-table tr { display: grid; grid-template-columns: 5.5rem 1fr; border-bottom: 1px solid var(--ink); padding: 14px 0; }
  .stars-table td { border: 0; padding: 0 10px 6px 0; }
  .stars-table td:first-child { grid-row: 1 / 4; width: auto; }
  .stars-table .numeral { font-size: 3rem; }
}

.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.sp { position: relative; display: flex; flex-direction: column; gap: 10px; }
.sp .duo { aspect-ratio: 4 / 3; }
.sp .duo--empty { display: flex; align-items: flex-end; padding: 14px; background: var(--ink); color: var(--paper); }
.sp__n { font-family: var(--f-mono); font-size: .875rem; color: var(--red-ink); }
.sp h3 { font-size: 1.375rem; }
.sp h3 a { text-decoration: none; }
.sp h3 a::after { content: ""; position: absolute; inset: 0; }
.sp h3 a:hover { color: var(--red-ink); text-decoration: underline; }
.sp p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.gif-note { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; }
@media (max-width: 1100px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sp-grid { grid-template-columns: 1fr; } }

/* ───────── Writing ───────── */
.year-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: 36px; }
.year-block__year { grid-column: 1 / 4; position: relative; }
.year-block__year .numeral { font-size: clamp(5rem, 9vw, 8.5rem); position: sticky; top: 150px; display: block; }
.year-block .index { grid-column: 4 / 13; }
@media (max-width: 900px) {
  .year-block { grid-template-columns: 1fr; }
  .year-block__year, .year-block .index { grid-column: 1; }
  .year-block__year .numeral { position: static; font-size: 5rem; margin-bottom: 12px; }
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 32px; }
.filter-bar .input { border-right: 3px solid var(--ink); max-width: 460px; }
.chip {
  min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700;
}
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"]::before { content: "■ "; color: var(--red); }
.empty { border: 3px dashed var(--ink); padding: 32px; margin-top: 12px; }
.empty h3 { font-size: 1.75rem; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h3 { font-size: 2rem; font-stretch: 80%; font-weight: 900; margin-bottom: 6px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; }
.tag-cloud a { text-decoration: none; font-weight: 800; line-height: 1; }
.tag-cloud a:hover { color: var(--red-ink); text-decoration: underline; }
.tag-cloud sup { font-family: var(--f-mono); font-size: .8125rem; font-weight: 400; color: var(--red-ink); margin-left: 2px; }

/* ───────── AI / Stories ───────── */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 40px 0; border-bottom: 1px solid currentColor; align-items: center; position: relative; }
.story__n { grid-column: 1 / 4; font-size: clamp(8rem, 16vw, 15rem); transform: rotate(var(--angle)); justify-self: center; }
.story .duo { grid-column: 4 / 8; aspect-ratio: 4 / 3; }
.story__body { grid-column: 8 / 13; }
.story__body h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-stretch: 85%; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 12px; }
.story__body h3 a { text-decoration: none; }
.story__body h3 a:hover { text-decoration: underline; }
.story--soon { opacity: 1; }
.story--soon .story__n { color: transparent; -webkit-text-stroke: 2px currentColor; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 16px; }
  .story__n, .story .duo, .story__body { grid-column: 1; }
  .story__n { font-size: 7rem; justify-self: start; transform: none; }
}
.notice { border-left: 8px solid var(--red); padding: 14px 18px; background: var(--paper-2); }
.field-ink .notice { background: rgba(255,255,255,.07); }

/* ───────── About ───────── */
.about-hero .poster__text { grid-column: 1 / 7; align-self: end; position: relative; z-index: 2; }
.about-hero .hero-photo { grid-column: 6 / 13; grid-row: 1; height: 640px; }
.about-hero .hero-numeral { position: absolute; left: 36%; top: -4%; font-size: clamp(9rem, 22vw, 20rem); transform: rotate(var(--angle)); z-index: 1; pointer-events: none; color: var(--blue); opacity: .9; }
@media (max-width: 900px) {
  .about-hero .poster__text, .about-hero .hero-photo { grid-column: 1; }
  .about-hero .hero-photo { grid-row: 1; height: 360px; }
  .about-hero .poster__text { grid-row: 2; margin-top: 24px; }
  .about-hero .hero-numeral { left: auto; right: 0; top: 200px; font-size: 9rem; }
}
.career { display: flex; border: 3px solid var(--ink); margin: 20px 0 36px; overflow: hidden; }
.career div { padding: 10px 10px; border-right: 1px solid var(--ink); min-width: 0; }
.career div:last-child { border-right: 0; }
.career b { display: block; font-size: 1rem; line-height: 1.2; }
.career span { font-family: var(--f-mono); font-size: .8125rem; }
.career div:first-child { background: var(--panel-red); color: #fff; }
@media (max-width: 900px) { .career { flex-direction: column; } .career div { border-right: 0; border-bottom: 1px solid var(--ink); flex: none !important; } }
.phase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 32px 0; border-top: 1px solid var(--ink); }
.phase__years { grid-column: 1 / 5; }
.phase__years .numeral { font-size: clamp(3.5rem, 6vw, 5.5rem); display: block; }
.phase__body { grid-column: 5 / 13; }
.phase__body h3 { font-size: 2rem; margin-bottom: 10px; }
.phase__body ul { padding-left: 1.1em; margin: 12px 0 0; }
.phase__body li { margin-bottom: 8px; }
@media (max-width: 800px) { .phase { grid-template-columns: 1fr; } .phase__years, .phase__body { grid-column: 1; } }
details.disclose > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose[open] > summary .when-closed, details.disclose:not([open]) > summary .when-open { display: none; }

.proverbs { list-style: none; margin: 0; padding: 0; counter-reset: pv; }
.proverbs li { display: grid; grid-template-columns: 7rem 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.3); counter-increment: pv; }
.proverbs li::before { content: "0" counter(pv); font-stretch: 62%; font-weight: 900; font-size: 5.5rem; line-height: .8; color: var(--red); }
.proverbs q { font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; line-height: 1.1; quotes: "“" "”"; }
@media (max-width: 600px) { .proverbs li { grid-template-columns: 4rem 1fr; gap: 14px; } .proverbs li::before { font-size: 3.5rem; } }

.cap h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.cap ul { list-style: none; padding: 0; margin: 14px 0 0; }
.cap li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.3); font-weight: 600; }

/* ───────── Article ───────── */
.art-hero { position: relative; overflow: clip; border-bottom: 3px solid var(--ink); }
.art-hero .poster__grid { align-items: end; }
.art-hero__text { grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 2; }
.art-hero .duo { grid-column: 8 / 13; grid-row: 1; height: 520px; }
.art-hero__year { position: absolute; left: 44%; top: -3%; font-size: clamp(8rem, 18vw, 17rem); transform: rotate(var(--angle)); z-index: 1; pointer-events: none; }
.art-hero h1 { font-size: clamp(2.75rem, 6.4vw, 6.25rem); font-stretch: 78%; font-weight: 900; letter-spacing: -0.045em; line-height: .92; margin: 22px 0 20px; max-width: 13ch; }
.crumb { font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; }
.crumb a { color: var(--red-ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); margin-top: 28px; }
.facts div { padding: 10px 12px 0 0; }
.facts div + div { border-left: 1px solid var(--hair); padding-left: 12px; }
.facts dt { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 800; }
@media (max-width: 900px) {
  .art-hero__text, .art-hero .duo { grid-column: 1; }
  .art-hero .duo { grid-row: 1; height: 260px; }
  .art-hero__text { grid-row: 2; margin-top: 16px; }
  .art-hero__year { left: auto; right: -2%; top: 140px; font-size: 8rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
}

.art-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 56px; }
.toc { grid-column: 1 / 4; }
.toc__inner { position: sticky; top: 100px; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.toc li a { display: grid; grid-template-columns: 2.5rem 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; min-height: 44px; }
.toc li a span { font-stretch: 62%; font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--ink-2); }
.toc li a:hover span, .toc li a[aria-current="true"] span { color: var(--red-ink); }
.toc li a[aria-current="true"] { font-weight: 800; box-shadow: inset 4px 0 0 var(--red); padding-left: 10px; }
.toc details summary { display: none; }
.prose-col { grid-column: 4 / 11; min-width: 0; }
.aside-col { grid-column: 11 / 13; }
@media (max-width: 1100px) {
  .toc { grid-column: 1 / -1; margin-bottom: 36px; }
  .toc__inner { position: static; }
  .toc details summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; font-family: var(--f-mono); text-transform: uppercase; font-size: .875rem; border: 3px solid var(--ink); padding: 8px 14px; }
  .toc details:not([open]) ol { display: none; }
  .toc .toc__title { display: none; }
  .prose-col { grid-column: 1 / -1; }
  .aside-col { display: none; }
}
@media (min-width: 1101px) { .toc details > ol { display: block; } }

.prose { font-size: 1.1875rem; line-height: 1.65; max-width: 68ch; }
.prose h2 {
  font-size: clamp(2rem, 3.4vw, 3rem); font-stretch: 80%; font-weight: 900; letter-spacing: -0.035em;
  margin: 2.2em 0 .6em; padding-top: 14px; border-top: 6px solid var(--ink); display: flex; gap: 16px; align-items: baseline;
}
.prose h2 .h-n { font-size: 1.1em; color: var(--red-ink); flex: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ol li, .prose ul li { margin-bottom: .35em; padding-left: 4px; }
.prose ol li::marker { font-weight: 800; color: var(--red-ink); }
.prose a { color: var(--blue-ink); font-weight: 600; }
.prose a:hover { color: var(--red-ink); }
.prose code:not(pre code) { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: 1px 6px; }
.prose em { font-style: italic; }

.code { margin: 1.6em 0; background: var(--code-bg); color: var(--code-ink); border-top: 6px solid var(--red); margin-right: min(0px, calc(-1 * (100% - 68ch))); }
@media (min-width: 1101px) { .code { margin-right: -12%; } }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 16px; border-bottom: 1px solid #333; }
.code__lang { font-family: var(--f-mono); font-size: .8125rem; color: var(--code-dim); text-transform: uppercase; letter-spacing: .08em; }
.code__copy { min-height: 36px; min-width: 44px; padding: 4px 14px; background: transparent; border: 2px solid #555; color: var(--code-ink); font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; cursor: pointer; }
.code__copy:hover { border-color: #fff; }
.code pre { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; tab-size: 2; }
.code .c { color: var(--code-dim); font-style: italic; }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }

.callout { margin: 1.6em 0; padding: 18px 20px 18px 22px; position: relative; }
.callout p:last-child { margin-bottom: 0; }
.callout__key { display: inline-block; font-stretch: 62%; font-weight: 900; font-size: 1.625rem; text-transform: uppercase; line-height: 1; margin-bottom: 8px; letter-spacing: 0; }
.callout--why { border-left: 10px solid var(--ink); background: var(--paper-2); }
.callout--why .callout__key { color: var(--ink); }
.callout--q { border: 3px solid var(--red); }
.callout--q .callout__key { color: var(--red-ink); }
.callout--q::before { content: "?"; position: absolute; right: 14px; top: -6px; font-stretch: 62%; font-weight: 900; font-size: 5rem; line-height: 1; color: var(--red); opacity: .9; }
.callout--q p { padding-right: 44px; }
.callout--skill { background: var(--ink); color: var(--paper); }
.callout--skill a { color: var(--paper); }
.callout--skill code { background: rgba(255,255,255,.14) !important; color: var(--paper); }
.callout--note { border-left: 10px solid var(--blue); background: var(--paper-2); }

.share-zone { border-top: 3px solid var(--ink); margin-top: 56px; padding-top: 28px; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.related a { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 28px 0; text-decoration: none; border-bottom: 1px solid var(--ink); }
.related a + a { padding-left: 22px; border-left: 1px solid var(--hair); }
.related .numeral { font-size: 5rem; }
.related h3 { font-size: 1.5rem; line-height: 1.15; }
.related a:hover h3 { color: var(--red-ink); text-decoration: underline; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } .related a + a { padding-left: 0; border-left: 0; } }

/* ───────── Patterns ───────── */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.three-ways div { padding: 18px 22px 22px 0; }
.three-ways div + div { padding-left: 22px; border-left: 1px solid var(--hair); }
.three-ways .numeral { font-size: 5.5rem; display: block; margin-bottom: 10px; }
.three-ways h3 { font-size: 1.625rem; margin-bottom: 8px; }
@media (max-width: 800px) { .three-ways { grid-template-columns: 1fr; } .three-ways div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); } }

.pat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 3px solid var(--ink); }
.pat { background: var(--paper); position: relative; display: flex; flex-direction: column; min-height: 100%; }
.pat[hidden] { display: none; }
.pat__art { height: 190px; position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.pat__art .numeral { position: absolute; font-size: 13rem; left: -6px; bottom: -34px; }
.pat__art::after {
  content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 55%;
  background: var(--pat-c, var(--ink)); transform: skewX(-30deg); transform-origin: top;
}
.pat[data-cat="Data display"] { --pat-c: var(--panel-blue); }
.pat[data-cat="Layout"] { --pat-c: var(--ink); }
.pat[data-cat="Interaction"] { --pat-c: var(--panel-red); }
.pat[data-cat="Forms"] { --pat-c: #8a7d63; }
.pat[data-cat="Color"] { --pat-c: repeating-linear-gradient(90deg, var(--panel-red) 0 25%, var(--panel-blue) 25% 50%, var(--ink) 50% 75%, #8a7d63 75% 100%); }
.pat__cat { position: absolute; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.pat__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pat__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; color: var(--ink-2); }
.pat h2 { font-size: 1.625rem; letter-spacing: -0.025em; line-height: 1.1; }
.pat h2 a { text-decoration: none; }
.pat h2 a::after { content: ""; position: absolute; inset: 0; }
.pat:hover h2 a, .pat h2 a:focus-visible { color: var(--red-ink); text-decoration: underline; }
.pat p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.pat .good { font-size: 1rem; }
.pat .good b { color: var(--ink); }
.pat .tags { margin-top: auto; padding-top: 6px; }
.pat .tag { position: relative; z-index: 1; }
@media (max-width: 1000px) { .pat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pat-grid { grid-template-columns: 1fr; } }
.results-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.results-line select { min-height: 44px; border: 2px solid var(--ink); background: var(--paper); padding: 6px 10px; }

/* pattern detail */
.back { font-weight: 800; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.usecases { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 12px 0 0; }
.usecases li { margin-bottom: 8px; break-inside: avoid; }
@media (max-width: 640px) { .usecases { columns: 1; } }
.panes { border: 3px solid var(--ink); margin-top: 40px; }
.panes__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 3px solid var(--ink); background: var(--paper-2); }
.tabs { display: flex; overflow-x: auto; }
.tabs button { min-height: 52px; padding: 10px 18px; border: 0; border-right: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 800; font-size: 1rem; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 -5px 0 var(--red); }
.tabs button:hover:not([aria-selected="true"]) { background: var(--paper); }
.pane-actions { display: flex; gap: 8px; padding: 4px; align-items: center; }
.pane-actions .btn { min-height: 44px; padding: 6px 14px; font-size: .9375rem; }
.pane { padding: 28px; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; overflow-x: auto; background: var(--code-bg); color: var(--code-ink); padding: 18px; }
.pane .note { font-size: 1rem; margin-bottom: 16px; border-left: 6px solid var(--blue); padding-left: 12px; }
.prompt-text { max-width: 70ch; }
.prompt-text p { margin-bottom: 1em; }
.prompt-text h3 { font-size: 1.375rem; margin: 1.4em 0 .4em; }

/* The pattern itself: hairline stat strip */
.stage { background: var(--paper-2); padding: 28px; }
.stage__cap { font-size: 1rem; color: var(--ink-2); margin: 0 0 12px; }
.hss-strip { display: grid; gap: 1px; background: var(--ink); border: 1px solid var(--ink); grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .hss-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 36rem) and (max-width: 59.99rem) { .hss-strip--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hss-tile { background: var(--paper); padding: 14px 16px; min-width: 0; text-align: left; border: 0; display: flex; flex-direction: column; gap: 2px; }
.hss-label { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); overflow-wrap: anywhere; }
.hss-fig { font-weight: 900; font-stretch: 70%; font-size: 2.25rem; line-height: 1.05; }
.hss-fig--none { color: var(--ink-2); }
.hss-unit { font-size: .9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--paper-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--red) 16%, var(--paper)); box-shadow: inset 0 5px 0 var(--red); }
button.hss-tile:focus-visible { outline-offset: -4px; }
.hss-list { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--ink); background: var(--paper); }
.hss-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.hss-list li[hidden] { display: none; }
.hss-status { font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; }
.hss-live { font-weight: 700; margin-top: 12px; }

/* utility spacing */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.mb-m { margin-bottom: 32px; }
.max-60 { max-width: 60ch; }
.big-p { font-size: 1.3125rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .band__move { animation: drift 40s linear infinite; }
  @keyframes drift { to { transform: translateX(-50%); } }
}

[hidden] { display: none !important; }
.band__move { display: inline-block; }
