/* Color Blocking — antjanus.com redesign 098
   Flat saturated planes per section. No gradients, no shadows, no rounded corners.
   The color of a block is the section's identity; the text color is solved per block. */

:root {
  /* primitives */
  --c-paper: #f6f1e7;
  --c-paper-2: #ebe4d6;
  --c-ink: #141414;
  --c-ink-muted: #4f4a42;
  --c-white: #ffffff;
  --c-cobalt: #1d3fd8;
  --c-vermilion: #c8231b;
  --c-sun: #ffc919;
  --c-jade: #0b7a52;
  --c-bubblegum: #ff6fae;
  --c-slate: #364f6a;

  /* semantic */
  --page: var(--c-paper);
  --page-alt: var(--c-paper-2);
  --text: var(--c-ink);
  --text-muted: var(--c-ink-muted);
  --surface: var(--c-white);
  --line: var(--c-ink);
  --code-bg: var(--c-ink);
  --code-text: #f3eee4;
  --focus: var(--c-cobalt);
  --focus-halo: var(--c-sun);

  --blue: var(--c-cobalt);   --on-blue: #ffffff;
  --red: var(--c-vermilion); --on-red: #ffffff;
  --yellow: var(--c-sun);    --on-yellow: #141414;
  --green: var(--c-jade);    --on-green: #ffffff;
  --pink: var(--c-bubblegum);--on-pink: #141414;
  --slate: var(--c-slate);   --on-slate: #ffffff;
  --ink-block: #141414;      --on-ink: #f6f1e7;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #121212;
    --page-alt: #1b1b1b;
    --text: #f3eee4;
    --text-muted: #b9b2a6;
    --surface: #1f1f1f;
    --line: #f3eee4;
    --code-bg: #050505;
    --focus: #ffc919;
    --focus-halo: #121212;
    --blue: #1c33a8;
    --red: #b11f18;
    --yellow: #e0ad00;
    --green: #0a6645;
    --pink: #e0538f;
    --slate: #22364a;
    --ink-block: #050505;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #121212;
  --page-alt: #1b1b1b;
  --text: #f3eee4;
  --text-muted: #b9b2a6;
  --surface: #1f1f1f;
  --line: #f3eee4;
  --code-bg: #050505;
  --focus: #ffc919;
  --focus-halo: #121212;
  --blue: #1c33a8;
  --red: #b11f18;
  --yellow: #e0ad00;
  --green: #0a6645;
  --pink: #e0538f;
  --slate: #22364a;
  --ink-block: #050505;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.12; letter-spacing: -0.01em; font-stretch: 105%; font-weight: 800; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 0.9em; height: 0.9em; background: currentColor; }
.lede { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 44ch; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- block system ---------- */
.b-blue   { --bg: var(--blue);   --fg: var(--on-blue); }
.b-red    { --bg: var(--red);    --fg: var(--on-red); }
.b-yellow { --bg: var(--yellow); --fg: var(--on-yellow); }
.b-green  { --bg: var(--green);  --fg: var(--on-green); }
.b-pink   { --bg: var(--pink);   --fg: var(--on-pink); }
.b-slate  { --bg: var(--slate);  --fg: var(--on-slate); }
.b-ink    { --bg: var(--ink-block); --fg: var(--on-ink); }
.b-paper  { --bg: var(--page);   --fg: var(--text); }
.b-alt    { --bg: var(--page-alt); --fg: var(--text); }
.block { background: var(--bg); color: var(--fg); padding: clamp(56px, 8vw, 112px) 0; }
.block.tight { padding: clamp(36px, 5vw, 64px) 0; }
.fill { background: var(--bg); color: var(--fg); }

.strip { display: grid; grid-template-columns: repeat(6, 1fr); height: 14px; }
.strip span:nth-child(1) { background: var(--red); }
.strip span:nth-child(2) { background: var(--yellow); }
.strip span:nth-child(3) { background: var(--green); }
.strip span:nth-child(4) { background: var(--blue); }
.strip span:nth-child(5) { background: var(--pink); }
.strip span:nth-child(6) { background: var(--slate); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--page); border-bottom: 4px solid var(--line); }
.head-row { display: flex; align-items: stretch; min-height: 72px; }
.logo {
  display: flex; align-items: center; gap: 12px; padding: 0 20px 0 var(--gutter);
  text-decoration: none; background: var(--ink-block); color: var(--on-ink);
}
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words small { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; opacity: 0.9; }
.logo-words strong { font-stretch: 120%; font-weight: 900; font-size: 1.2rem; letter-spacing: 0.02em; }
.nav { display: flex; flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; }
.nav li { flex: 1; display: flex; }
.nav a {
  flex: 1; display: flex; align-items: flex-end; padding: 10px 14px 12px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 800; font-stretch: 110%; font-size: 1rem; letter-spacing: 0.01em;
  position: relative; transition: padding-bottom 150ms ease;
}
.nav a:hover { padding-bottom: 20px; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--fg);
}
.head-tools { display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter) 0 16px; }
.search { display: flex; }
.search input {
  width: 150px; font: inherit; font-size: 1rem; padding: 8px 10px; min-height: 44px;
  border: 3px solid var(--line); border-right: 0; background: var(--surface); color: var(--text); border-radius: 0;
}
.search input::placeholder { color: var(--text-muted); }
.btn-icon, .search button {
  min-width: 44px; min-height: 44px; border: 3px solid var(--line); background: var(--text); color: var(--page);
  font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
  border-radius: 0;
}
.btn-icon { background: var(--yellow); color: var(--on-yellow); }
.btn-icon svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

@media (max-width: 1080px) {
  .search { display: none; }
}
@media (max-width: 900px) {
  .head-row { min-height: 64px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--page); border-bottom: 4px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .nav a { min-height: 88px; font-size: 1.25rem; }
  .nav .m-search { display: flex; padding: 16px var(--gutter); }
  .nav .m-search input { flex: 1; width: auto; }
  .head-tools { margin-left: auto; }
  .menu-btn { display: inline-flex; background: var(--text); color: var(--page); }
}
.nav .m-search { display: none; }
@media (max-width: 900px) { .nav .m-search { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  font: inherit; font-weight: 800; font-stretch: 110%; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 3px solid var(--fg); border-radius: 0;
  transition: background 150ms ease, color 150ms ease;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.link-quiet { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }

/* ---------- hero / page head ---------- */
.page-hero { padding: clamp(56px, 9vw, 128px) 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin-top: 1rem; }
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(78vh, 760px); }
.hero-split > div { min-width: 0; }
.hero-copy { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); max-width: 11ch; }
.hero-photo { position: relative; overflow: hidden; background: var(--bg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; filter: grayscale(1) contrast(1.1) brightness(1.3); mix-blend-mode: multiply; }
.hero-photo .corner { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 1; background: var(--red); }
.hero-photo .corner2 { position: absolute; left: 0; top: 0; width: 18%; aspect-ratio: 1; background: var(--yellow); }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* stats band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(24px, 3.5vw, 44px) var(--gutter); background: var(--bg); color: var(--fg); }
.stat b { display: block; font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.03em; }
.stat span { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; font-weight: 500; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 16px; }
  .stat b { font-size: 3rem; }
}

/* ---------- section header ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 8px 0 0; font-size: 1.2rem; max-width: 52ch; }
.sec-head .more { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); color: var(--text); text-decoration: none;
}
.card .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg, var(--page-alt)); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.card:hover .img img { transform: scale(1.03); }
.card .band { height: 10px; background: var(--bg); transition: height 150ms ease; }
.card:hover .band { height: 18px; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover, .card:hover h3 a { text-decoration: underline; text-decoration-thickness: 3px; }
.card h3 a:focus-visible { outline: none; box-shadow: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
.meta { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.card .meta { order: -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.chip {
  font-family: var(--font-mono); font-size: 0.8125rem; padding: 3px 8px; background: var(--page-alt); color: var(--text);
  text-decoration: none; display: inline-block;
}
a.chip:hover { background: var(--text); color: var(--page); }
.blockchip { background: var(--bg); color: var(--fg); }

/* poster card: solid color card with no image */
.poster {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 260px;
  padding: 26px; background: var(--bg); color: var(--fg); text-decoration: none; min-width: 0;
}
.poster h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.poster p { margin: 0; font-size: 1.05rem; }
.poster .big { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; font-stretch: 125%; line-height: 0.9; }
.poster h3 a { text-decoration: none; }
.poster h3 a::after { content: ""; position: absolute; inset: 0; }
.poster:hover h3 a { text-decoration: underline; }
.poster .meta { color: inherit; opacity: 1; }
.poster:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.poster a:focus-visible { outline: none; box-shadow: none; }

/* list rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 4px solid currentColor; }
.rows li { border-bottom: 2px solid currentColor; }
.rows a { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 28px; padding: 22px 0; text-decoration: none; align-items: baseline; }
.rows a:hover .rt { text-decoration: underline; text-decoration-thickness: 3px; }
.rows .rd { font-family: var(--font-mono); font-size: 0.9rem; }
.rows .rt { font-weight: 800; font-stretch: 108%; font-size: 1.3rem; line-height: 1.2; }
.rows .rx { grid-column: 2 / 3; font-size: 1.05rem; }
.rows .ra { font-weight: 900; font-size: 1.4rem; }
@media (max-width: 640px) {
  .rows a { grid-template-columns: 1fr auto; }
  .rows .rd { grid-column: 1 / -1; }
  .rows .rx { grid-column: 1 / -1; }
}

/* split two-block row */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > * { padding: clamp(40px, 6vw, 88px) var(--gutter); background: var(--bg); color: var(--fg); min-width: 0; }
.split3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split3 > * { padding: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 44px); background: var(--bg); color: var(--fg); min-width: 0; }
@media (max-width: 900px) { .split, .split3 { grid-template-columns: 1fr; } }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-top: 2px solid currentColor; }
.linklist li:last-child { border-bottom: 2px solid currentColor; }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; font-weight: 800; font-size: 1.15rem; min-height: 44px; }
.linklist a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 3px; }
.linklist small { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; }

/* jump bar */
.jump { position: sticky; top: 76px; z-index: 20; display: flex; flex-wrap: wrap; gap: 0; background: var(--page); border-bottom: 4px solid var(--line); }
.jump a { flex: 1 1 auto; padding: 14px 18px; text-decoration: none; font-weight: 800; background: var(--bg); color: var(--fg); min-height: 44px; text-align: center; }
.jump a:hover { text-decoration: underline; }
@media (max-width: 900px) { .jump { top: 68px; } .jump a { flex-basis: 33%; font-size: 0.95rem; padding: 12px 8px; } }

/* featured project */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.feature > * { min-width: 0; }
.feature .fcopy { padding: clamp(32px, 5vw, 72px); background: var(--bg); color: var(--fg); }
.feature .fimg { background: var(--ink-block); }
.feature .fimg img { width: 100%; height: 100%; object-fit: cover; }
.fstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 3px solid currentColor; }
.fstats div { padding: 14px 0; }
.fstats b { display: block; font-size: 2.6rem; font-weight: 900; font-stretch: 125%; line-height: 1; }
.fstats span { font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .fimg { aspect-ratio: 16/10; } }

/* alternating landscape project rows */
.land { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); color: var(--text); margin-bottom: 22px; }
.land > * { min-width: 0; }
.land:nth-child(even) .limg { order: 2; }
.land .limg { background: var(--bg); padding: clamp(16px, 2.5vw, 32px); display: flex; align-items: center; }
.land .limg img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--ink-block); }
.land .lcopy { padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.land h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0; }
.land p { margin: 0; color: var(--text-muted); }
.minis { display: flex; gap: 28px; flex-wrap: wrap; }
.minis b { display: block; font-size: 1.6rem; font-weight: 900; font-stretch: 120%; }
.minis span { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 800px) { .land { grid-template-columns: 1fr; } .land:nth-child(even) .limg { order: 0; } }

/* ---------- forms ---------- */
.form-row { display: flex; flex-wrap: wrap; gap: 0; max-width: 560px; }
.form-row input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 56px; font: inherit; padding: 12px 16px; border: 3px solid var(--fg); background: var(--surface); color: var(--text); border-radius: 0;
}
.form-row .btn { min-height: 56px; }
.form-note { margin-top: 12px; font-size: 1rem; }
.form-status { margin-top: 12px; font-weight: 800; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink-block); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-block); color: var(--on-ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; padding: 72px 0 56px; }
.foot-grid h2 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-stretch: 100%; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li a { display: inline-block; padding: 5px 0; text-decoration: none; font-weight: 700; }
.foot-grid li a:hover { text-decoration: underline; }
.foot-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 900; font-stretch: 120%; font-size: 1.4rem; }
.foot-logo svg { width: 48px; height: 48px; }
.foot-bottom { border-top: 2px solid #3a3a3a; padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 1rem; }
.site-foot .form-row input[type="email"] { border-color: var(--on-ink); background: #fff; color: #141414; }
.site-foot .btn { --bg: var(--yellow); --fg: var(--on-yellow); background: var(--bg); color: var(--fg); border-color: var(--bg); }
.site-foot .btn:hover { background: transparent; color: var(--yellow); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 60; background: transparent; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--pink) 80% 100%); background-size: 100vw 100%; }
.progress .pct { position: fixed; bottom: 14px; right: 14px; font-family: var(--font-mono); font-size: 0.875rem; background: var(--ink-block); color: var(--on-ink); padding: 3px 8px; }
.art-hero { display: grid; grid-template-columns: 1.1fr 1fr; }
.art-hero > * { min-width: 0; }
.art-hero .ah-copy { padding: clamp(40px, 6vw, 96px) var(--gutter); background: var(--bg); color: var(--fg); }
.art-hero h1 { font-size: clamp(2.4rem, 5.2vw, 5rem); max-width: 14ch; }
.art-hero .ah-img { background: var(--yellow); padding: clamp(20px, 3vw, 40px); display: flex; align-items: center; }
.art-hero .ah-img img { width: 100%; height: auto; aspect-ratio: 1000 / 420; object-fit: contain; background: var(--ink-block); }
.crumb { font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 18px; background: var(--fg); color: var(--bg); padding: 6px 12px; }
.crumb:hover { text-decoration: underline; }
.ah-meta { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; margin-top: 18px; }
@media (max-width: 900px) { .art-hero { grid-template-columns: 1fr; } }

.art-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.toc { position: sticky; top: 100px; align-self: start; background: var(--yellow); color: var(--on-yellow); padding: 22px; }
.toc h2 { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; font-stretch: 100%; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.3; border-top: 2px solid currentColor; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }
.toc a:hover { text-decoration: underline; }
.toc a[aria-current="true"] { background: var(--ink-block); color: var(--on-ink); padding-left: 8px; margin: 0 -8px; }
.toc details summary { display: none; }
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { position: static; }
  .toc details summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 800; min-height: 44px; align-items: center; list-style: none; }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details summary::after { content: "+"; font-size: 1.6rem; }
  .toc details[open] summary::after { content: "–"; }
  .toc .toc-h { display: none; }
}

.prose { max-width: var(--measure); font-size: 1.1875rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 2.2em 0 0.6em; padding-top: 18px; border-top: 8px solid var(--h2c, var(--line)); scroll-margin-top: 100px; }
.prose h2:nth-of-type(6n+1) { --h2c: var(--red); }
.prose h2:nth-of-type(6n+2) { --h2c: var(--yellow); }
.prose h2:nth-of-type(6n+3) { --h2c: var(--green); }
.prose h2:nth-of-type(6n+4) { --h2c: var(--blue); }
.prose h2:nth-of-type(6n+5) { --h2c: var(--pink); }
.prose h2:nth-of-type(6n+6) { --h2c: var(--slate); }
.prose a { font-weight: 700; text-decoration-color: var(--blue); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose code:not(pre code) { font-family: var(--font-mono); font-size: 0.9em; background: var(--page-alt); padding: 1px 6px; }
.callout { padding: 20px 24px; margin: 1.6em 0; background: var(--bg); color: var(--fg); }
.callout p { margin: 0; }
.callout .tag { display: inline-block; font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--fg); color: var(--bg); padding: 2px 8px; margin-bottom: 10px; }
.callout a { text-decoration-color: currentColor; }
.callout code { background: rgba(0,0,0,0.12) !important; color: inherit; }
.codeblock { margin: 1.8em 0; background: var(--code-bg); color: var(--code-text); width: min(100%, 860px); }
.codehead { display: flex; justify-content: space-between; align-items: stretch; }
.codehead .lang { background: var(--blue); color: var(--on-blue); font-family: var(--font-mono); font-size: 0.875rem; padding: 8px 14px; text-transform: uppercase; font-weight: 500; }
.copy { font: inherit; font-family: var(--font-mono); font-size: 0.875rem; background: var(--yellow); color: var(--on-yellow); border: 0; padding: 8px 16px; cursor: pointer; min-height: 40px; border-radius: 0; }
.copy:hover { text-decoration: underline; }
pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.95rem; line-height: 1.6; tab-size: 2; }
pre code { font-family: inherit; }
.tk-k { color: #ff8fc0; } .tk-s { color: #ffd65c; } .tk-c { color: #9c968c; font-style: italic; } .tk-t { color: #7fb2ff; } .tk-f { color: #6fe0b0; }

.story-note { padding: 20px 24px; }
.art-foot { max-width: var(--measure); }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 48px 0 0; }
.tags-row .chip { font-size: 0.9rem; padding: 6px 12px; }

.share { display: flex; flex-wrap: wrap; gap: 12px; }

/* markdown affordance */
.md-link { font-family: var(--font-mono); font-size: 0.9rem; }

/* ---------- patterns ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.three > div { padding: 32px clamp(20px, 3vw, 40px); background: var(--bg); color: var(--fg); }
.three h3 { font-size: 1.8rem; }
@media (max-width: 800px) { .three { grid-template-columns: 1fr; } }
.pfilter { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 28px; }
.pfilter input[type="search"] {
  flex: 1 1 340px; min-height: 56px; font: inherit; padding: 12px 16px; border: 3px solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; min-width: 0;
}
.pills { display: flex; flex-wrap: wrap; gap: 0; }
.pill {
  font: inherit; font-weight: 800; font-size: 1rem; min-height: 48px; padding: 8px 16px; border: 0; cursor: pointer;
  background: var(--bg, var(--page-alt)); color: var(--fg, var(--text)); border-radius: 0; position: relative;
}
.pill[aria-pressed="true"] { box-shadow: inset 0 -8px 0 var(--fg, var(--text)); }
.pill[aria-pressed="true"]::before { content: "● "; }
.pill:hover { text-decoration: underline; }
.pcount { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; font-weight: 800; }
.pcount select { font: inherit; min-height: 44px; padding: 6px 10px; border: 3px solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; }
.pcount button { font: inherit; font-weight: 800; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.pcard .thumb { aspect-ratio: 16 / 10; background: var(--bg); color: var(--fg); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.pcard .thumb .num { font-size: 4.2rem; font-weight: 900; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.03em; position: relative; z-index: 1; }
.pcard .thumb::before { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; aspect-ratio: 1; background: var(--fg); opacity: 0.16; }
.pcard .thumb::after { content: ""; position: absolute; right: 12%; bottom: 14%; width: 22%; aspect-ratio: 1; background: var(--page); }
.pcard .badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; background: var(--ink-block); color: var(--on-ink); padding: 3px 8px; }
.pcard .badge.new { background: var(--red); color: var(--on-red); }
.pcard .good { font-size: 1rem; color: var(--text); }
.empty { padding: 48px; text-align: left; }
.empty[hidden] { display: none; }

/* pattern detail */
.back { font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 24px; }
.back:hover { text-decoration: underline; }
.uses { columns: 2; column-gap: 40px; padding-left: 1.2em; margin: 0; }
.uses li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .uses { columns: 1; } }
.panes { border: 4px solid var(--line); background: var(--surface); }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 4px solid var(--line); }
.pane-tabs { display: flex; flex-wrap: wrap; }
.pane-tabs [role="tab"] {
  font: inherit; font-weight: 800; font-size: 1rem; min-height: 52px; padding: 10px 18px; border: 0; cursor: pointer; border-radius: 0;
  background: var(--page-alt); color: var(--text); border-right: 2px solid var(--line);
}
.pane-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: inset 0 -6px 0 var(--fg); }
.pane-actions { display: flex; }
.pane-actions button { font: inherit; font-weight: 800; font-size: 0.95rem; min-height: 52px; padding: 8px 16px; border: 0; border-left: 2px solid var(--line); cursor: pointer; background: var(--yellow); color: var(--on-yellow); border-radius: 0; }
.pane-actions button[hidden] { display: none; }
.pane { padding: 24px; }
.pane pre { background: var(--code-bg); color: var(--code-text); }
.pane .note { font-size: 1rem; background: var(--page-alt); padding: 14px 16px; margin-bottom: 16px; }
.pane .prompt { max-width: 70ch; }

/* live hairline stat strip demo (fixes the overflow bug from the brief) */
.stage { background: var(--page-alt); padding: clamp(16px, 3vw, 32px); }
.stage .cap { font-size: 1rem; color: var(--text-muted); margin: 0 0 12px; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; grid-template-columns: 1fr; margin-bottom: 28px; }
@container (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stage-inner { container-type: inline-size; }
.hss-tile { background: var(--surface); color: var(--text); padding: 14px 16px; min-width: 0; text-align: left; font: inherit; border: 0; border-radius: 0; }
.hss-tile .l { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; overflow-wrap: anywhere; }
.hss-tile .f { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
.hss-tile .s { font-size: 0.9rem; color: var(--text-muted); display: block; overflow-wrap: anywhere; }
.hss-tile .dim { color: var(--text-muted); }
button.hss-tile { cursor: pointer; }
button.hss-tile[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); }
button.hss-tile[aria-pressed="true"] .l, button.hss-tile[aria-pressed="true"] .s { color: var(--on-yellow); }
.hss-list { list-style: none; padding: 0; margin: 0; background: var(--surface); }
.hss-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 1rem; }
.hss-list li[hidden] { display: none; }
.hss-status { font-weight: 700; font-size: 1rem; margin-top: 12px; }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; }
.about-hero > * { min-width: 0; }
.about-hero .ah-copy { padding: clamp(48px, 7vw, 112px) var(--gutter); background: var(--bg); color: var(--fg); display: flex; flex-direction: column; justify-content: center; }
.about-hero .ah-photo { background: var(--blue); position: relative; min-height: 420px; }
.about-hero .ah-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } .about-hero .ah-photo { min-height: 0; aspect-ratio: 1; } }
.careerbar { display: flex; flex-wrap: wrap; margin: 24px 0 36px; }
.careerbar span { flex: var(--w, 1) 1 120px; padding: 12px 14px; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; line-height: 1.25; }
.careerbar small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; }
details.xp > summary { cursor: pointer; list-style: none; display: inline-flex; }
details.xp > summary::-webkit-details-marker { display: none; }
details.xp[open] .show-lbl { display: none; }
details.xp:not([open]) .hide-lbl { display: none; }
.phase { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; padding: 28px 0; border-top: 3px solid currentColor; }
.phase h3 { margin: 0; }
.phase .when { font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; }
.phase ul { margin: 10px 0 0; padding-left: 1.2em; }
@media (max-width: 700px) { .phase { grid-template-columns: 1fr; } }
.quotes { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.quotes li { counter-increment: q; display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 0; border-top: 2px solid currentColor; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; font-stretch: 108%; line-height: 1.2; }
.quotes li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: 1rem; padding-top: 6px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.skills li { background: var(--fg); color: var(--bg); padding: 4px 10px; font-size: 0.95rem; font-weight: 700; }

/* gallery article */
.prose .prose-figure { margin: 1.6em 0; }
.prose .prose-figure img { display: block; width: 100%; height: auto; border: 3px solid var(--ink, currentColor); }
.prose blockquote.callout { margin-inline: 0; }
.prose .callout p + p { margin-top: .75em; }
.prose code { overflow-wrap: anywhere; }
