/* Isometric Illustration — antjanus.com redesign 054
   Every card is an extruded block drawn in true isometric (faces at 30deg / 60deg). */

:root {
  /* primitives */
  --slate-top: #9db4cf; --slate-side: #2a3f54; --slate-mid: #364f6a;
  --tomato-top: #f7b3a3; --tomato-side: #b3412e; --tomato-mid: #e0634c;
  --mint-top: #a8e6cb; --mint-side: #1f7a58; --mint-mid: #3cae84;
  --butter-top: #fbe5a0; --butter-side: #a87c10; --butter-mid: #e9b93a;
  --violet-top: #cfc2f6; --violet-side: #553ea0; --violet-mid: #7a62cf;

  /* semantic */
  --ground: #edf1f7;
  --grid-line: #d3dbe7;
  --face: #ffffff;
  --face-2: #f6f8fb;
  --line: #1b2433;
  --ink: #141c29;
  --body: #2c3749;
  --muted: #4f5b6e;
  --link: #2c5282;
  --brand: #364f6a;
  --focus: #e0634c;
  --code-bg: #182130;
  --code-ink: #e4eaf3;
  --shadow: rgba(27, 36, 51, 0.16);
  --band: #1b2433;
  --band-ink: #eef2f8;
  --band-muted: #b8c4d6;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --d: 22px; /* block depth */
  --radius: 0px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --slate-top: #6f8fb5; --slate-side: #1a2838; --slate-mid: #4a6d8c;
    --tomato-top: #f29a86; --tomato-side: #7e2a1d; --tomato-mid: #d65a44;
    --mint-top: #6fd0a8; --mint-side: #11513a; --mint-mid: #2f9670;
    --butter-top: #f4d27a; --butter-side: #6f520a; --butter-mid: #caa032;
    --violet-top: #ac9bf0; --violet-side: #33236e; --violet-mid: #6a54c0;
    --ground: #0e141e; --grid-line: #1c2738; --face: #182231; --face-2: #1e2a3b;
    --line: #04070c; --ink: #f1f5fb; --body: #cdd6e3; --muted: #a4b1c4;
    --link: #93b9e8; --brand: #6f92bd; --focus: #f29a86; --code-bg: #0a0f17; --code-ink: #e4eaf3;
    --shadow: rgba(0, 0, 0, 0.45); --band: #070b12; --band-ink: #eef2f8; --band-muted: #aebbd0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --slate-top: #6f8fb5; --slate-side: #1a2838; --slate-mid: #4a6d8c;
  --tomato-top: #f29a86; --tomato-side: #7e2a1d; --tomato-mid: #d65a44;
  --mint-top: #6fd0a8; --mint-side: #11513a; --mint-mid: #2f9670;
  --butter-top: #f4d27a; --butter-side: #6f520a; --butter-mid: #caa032;
  --violet-top: #ac9bf0; --violet-side: #33236e; --violet-mid: #6a54c0;
  --ground: #0e141e; --grid-line: #1c2738; --face: #182231; --face-2: #1e2a3b;
  --line: #04070c; --ink: #f1f5fb; --body: #cdd6e3; --muted: #a4b1c4;
  --link: #93b9e8; --brand: #6f92bd; --focus: #f29a86; --code-bg: #0a0f17; --code-ink: #e4eaf3;
  --shadow: rgba(0, 0, 0, 0.45); --band: #070b12; --band-ink: #eef2f8; --band-muted: #aebbd0;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--ground);
  background-image:
    linear-gradient(30deg, transparent 49.2%, var(--grid-line) 49.2%, var(--grid-line) 50.8%, transparent 50.8%),
    linear-gradient(150deg, transparent 49.2%, var(--grid-line) 49.2%, var(--grid-line) 50.8%, transparent 50.8%);
  background-size: 69.28px 40px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--body); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- the block (iso extrusion) ---------- */
.block {
  --top: var(--slate-top); --side: var(--slate-side);
  position: relative;
  background: var(--face);
  border: 2px solid var(--line);
  margin: calc(var(--d) * .5) calc(var(--d) * .866 + 2px) 0 0;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease;
  box-shadow: 0 0 0 transparent;
}
.block::before, .block::after { content: ""; position: absolute; border: 2px solid var(--line); pointer-events: none; }
.block::before { /* top face */
  left: -2px; right: -2px; bottom: calc(100% + 2px); height: calc(var(--d) * .5 + 2px);
  background: var(--top); border-bottom: 0; transform-origin: bottom left; transform: skewX(-60deg);
}
.block::after { /* right face */
  left: calc(100% + 2px); top: -2px; bottom: -2px; width: calc(var(--d) * .866 + 2px);
  background: var(--side); border-left: 0; transform-origin: top left; transform: skewY(-30deg);
}
.block.lift:hover, .block.lift:focus-within { transform: translate(0, -6px); box-shadow: -2px 14px 0 -2px var(--shadow); }
.tint-slate { --top: var(--slate-top); --side: var(--slate-side); --accent: var(--slate-mid); }
.tint-tomato { --top: var(--tomato-top); --side: var(--tomato-side); --accent: var(--tomato-mid); }
.tint-mint { --top: var(--mint-top); --side: var(--mint-side); --accent: var(--mint-mid); }
.tint-butter { --top: var(--butter-top); --side: var(--butter-side); --accent: var(--butter-mid); }
.tint-violet { --top: var(--violet-top); --side: var(--violet-side); --accent: var(--violet-mid); }
.block.deep { --d: 34px; }
.block.shallow { --d: 12px; }
.block.dark { background: var(--band); color: var(--band-ink); }
.block.dark h2, .block.dark h3 { color: var(--band-ink); }
.block.dark p, .block.dark li { color: var(--band-muted); }
.block.dark a:not(.btn) { color: #ffd38a; }
.block.dark .btn.warm { color: #1b2433; }

/* stretched link inside a block */
.cover { color: inherit; text-decoration: none; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cover:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.block:has(.cover:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.cover:focus-visible { outline: none; }

/* ---------- buttons (keycaps) ---------- */
.btn {
  --top: var(--slate-top); --side: var(--slate-side);
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem;
  font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--brand); border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--line); }
:root[data-theme="dark"] .btn { color: #0e141e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0e141e; } }
.btn.alt { background: var(--face); color: var(--ink); }
.btn.warm { background: var(--butter-top); color: #1b2433; }
.btn.small { min-height: 44px; padding: .5rem .9rem; font-size: 1rem; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tomato-mid); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.link-quiet { font-weight: 600; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 44px; height: 52px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word small { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-word b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; align-items: center; }
.nav a {
  display: block; padding: .5rem .85rem; min-height: 44px; line-height: 1.6; font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none; border: 2px solid transparent;
}
.nav a:hover { border-color: var(--line); background: var(--face); box-shadow: 3px 3px 0 var(--line); }
.nav a[aria-current="page"] { background: var(--butter-top); color: #1b2433; border-color: var(--line); box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.nav a.nav-ai { background: var(--violet-top); color: #1b2433; border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.nav a.nav-ai[aria-current="page"] { box-shadow: 1px 1px 0 var(--line); }
.header-tools { display: flex; gap: .5rem; align-items: center; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  background: var(--face); color: var(--ink); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line);
}
.icon-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 2px solid var(--line); margin: 0; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.25rem; gap: .4rem; }
  .nav a { font-size: 1.1rem; }
  .header-tools { margin-left: auto; }
  .brand-word small { display: none; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding-top: 1rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.sec-head .t { display: flex; gap: 1rem; align-items: center; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .25rem 0 0; color: var(--muted); }
.cube-ico { width: 56px; height: 60px; flex-shrink: 0; }
.plate { /* band of darker ground for rhythm */
  background: color-mix(in srgb, var(--face) 55%, transparent);
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
}

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--butter-top) 62%); padding: 0 .08em; }
:root[data-theme="dark"] .hero h1 .hl { background: linear-gradient(transparent 62%, var(--violet-side) 62%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background: linear-gradient(transparent 62%, var(--violet-side) 62%); } }
.hero .sub { font-size: 1.3rem; color: var(--body); max-width: 34ch; margin: 1.25rem 0 1.75rem; }
.cta-row { display: flex; gap: 1.25rem 1.5rem; flex-wrap: wrap; align-items: center; }
.scene { width: 100%; height: auto; overflow: visible; }
.scene-slot { position: relative; }
.scene-slot .art { display: none; }
.scene-slot.has-art .art { display: block; }
.scene-slot.has-art svg.scene { display: none; }
.caption { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* stat towers */
.towers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0 0; max-width: 520px; }
.tower { display: flex; flex-direction: column; align-items: flex-start; }
.tower svg { width: 70px; height: auto; }
.tower b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; margin-top: .4rem; }
.tower span { font-size: .95rem; color: var(--muted); font-weight: 600; }

/* ---------- grids of cards ---------- */
.grid { display: grid; gap: calc(2rem + var(--d)) calc(1.5rem + var(--d)); }
.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: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--line); background: var(--face-2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic.iso-fallback { display: grid; place-items: center; background: color-mix(in srgb, var(--top) 40%, var(--face)); }
.card .pic.iso-fallback svg { width: 38%; height: auto; }
.card .body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--body); font-size: 1.05rem; }
.meta { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); display: flex; gap: .4rem .9rem; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500;
  padding: .15rem .55rem; border: 1.5px solid var(--line); background: var(--face-2); color: var(--ink); text-decoration: none;
}
a.chip:hover { background: var(--butter-top); color: #1b2433; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; position: relative; z-index: 2; }
.badge { font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .5rem; border: 1.5px solid var(--line); background: var(--top); color: #1b2433; }
.card.wide { flex-direction: row; }
.card.wide .pic { aspect-ratio: auto; width: 44%; flex-shrink: 0; border-bottom: 0; border-right: 2px solid var(--line); min-height: 240px; }
@media (max-width: 760px) { .card.wide { flex-direction: column; } .card.wide .pic { width: 100%; aspect-ratio: 16/9; min-height: 0; border-right: 0; border-bottom: 2px solid var(--line); } }

/* list rows (tile lines) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.row h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.row p { margin: 0; font-size: 1.02rem; }
.row .date { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); white-space: nowrap; }
.row .mini { width: 40px; height: 44px; }
@media (max-width: 640px) { .row { grid-template-columns: auto minmax(0, 1fr); } .row .date { grid-column: 2; } }

/* feature split */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature .pic { border-right: 2px solid var(--line); min-height: 320px; background: var(--face-2); overflow: hidden; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: clamp(1.4rem, 3vw, 2.4rem); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .pic { border-right: 0; border-bottom: 2px solid var(--line); min-height: 220px; } }

/* stat strip (hairline) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); margin: 1.25rem 0; }
.stats > div { background: var(--face-2); padding: .8rem 1rem; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--font-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* page header (inner pages) */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
@media (max-width: 880px) { .page-head .hero-grid { grid-template-columns: 1fr; } .page-head .scene-slot { max-width: 460px; } }

/* jump bar */
.jump { position: sticky; top: 78px; z-index: 30; padding: .75rem 0; background: color-mix(in srgb, var(--ground) 92%, transparent); border-bottom: 2px solid var(--line); }
.jump .wrap { display: flex; gap: .5rem; overflow-x: auto; align-items: center; scrollbar-width: thin; }
.jump .label { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); white-space: nowrap; margin-right: .25rem; }
.jump a { white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .9rem; font-weight: 700; font-size: 1rem;
  color: var(--ink); background: var(--face); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); text-decoration: none; cursor: pointer; font-family: var(--font-body);
}
.pill:hover { background: var(--face-2); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--butter-top); color: #1b2433; box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.pill .n { font-family: var(--font-mono); font-weight: 500; font-size: .875rem; }

/* callouts */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; }
.strip p { margin: 0; font-size: 1.15rem; color: var(--ink); font-weight: 600; }

/* footer */
.site-footer { margin-top: 3rem; background: var(--band); color: var(--band-muted); border-top: 2px solid var(--line); }
.skyline { display: block; width: 100%; height: clamp(96px, 11vw, 150px); margin-top: -1px; background: var(--ground); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--band-ink); margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: var(--band-muted); }
.foot-brand { display: flex; gap: .75rem; align-items: center; color: var(--band-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: .75rem; }
.foot-brand svg { width: 40px; height: 44px; }
.foot-bottom { border-top: 1px solid #2c3a50; padding: 1.25rem 0 2rem; font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.news { display: flex; gap: .5rem; flex-wrap: wrap; }
.news input, .field {
  flex: 1 1 180px; min-height: 48px; padding: .6rem .8rem; font: inherit; font-size: 1rem;
  background: var(--face); color: var(--ink); border: 2px solid var(--line);
}
.site-footer .news input { background: #0e141e; color: #eef2f8; border-color: #3a4a62; }
.site-footer .news input::placeholder { color: #93a1b6; }
.form-note { font-size: .95rem; margin-top: .5rem; min-height: 1.5em; }
@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; left: 0; top: 0; height: 6px; width: 100%; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(135deg, var(--tomato-mid) 0 10px, var(--butter-mid) 10px 20px); border-right: 2px solid var(--line); }
.progress-pct { position: fixed; right: 12px; bottom: 12px; z-index: 60; font-family: var(--font-mono); font-size: .8125rem; background: var(--face); border: 1.5px solid var(--line); padding: 0 .4rem; color: var(--ink); }
.art-hero { padding: 2rem 0 1rem; }
.art-hero .crumbs { font-family: var(--font-mono); font-size: .9rem; margin-bottom: 1rem; }
.art-hero .crumbs a { color: var(--ink); }
.art-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.art-hero .desc { font-size: 1.3rem; max-width: 50ch; }
.art-cover { margin-top: 1.5rem; }
.art-cover .pic { aspect-ratio: 21 / 8; overflow: hidden; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 2.5rem; padding-top: 2rem; }
.art-layout > div { max-width: 720px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h2 { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: floor; }
.toc li { counter-increment: floor; }
.toc a { display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; padding: .45rem .5rem; color: var(--body); text-decoration: none; font-size: 1rem; line-height: 1.35; border: 2px solid transparent; }
.toc a::before { content: counter(floor, decimal-leading-zero); font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); padding-top: .15rem; }
.toc a:hover { color: var(--ink); background: var(--face); }
.toc a.active { background: var(--face); border-color: var(--line); color: var(--ink); font-weight: 700; box-shadow: 3px 3px 0 var(--tomato-mid); }
.toc-mobile { display: none; margin: 1rem 0; }
.toc-mobile summary { cursor: pointer; font-weight: 700; padding: .8rem 1rem; min-height: 48px; color: var(--ink); }
.toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.4rem; }
.toc-mobile a { color: var(--ink); }
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4em 0 .6em; scroll-margin-top: 100px; display: flex; align-items: center; gap: .7rem; }
.prose h2 .hn { font-family: var(--font-mono); font-size: .9rem; font-weight: 600; color: #1b2433; background: var(--butter-top); border: 2px solid var(--line); padding: .05rem .4rem; box-shadow: 2px 2px 0 var(--line); flex-shrink: 0; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose code { font-size: .9em; background: var(--face); border: 1.5px solid var(--grid-line); padding: .05em .3em; }
.prose a { font-weight: 600; }
.codeblock { margin: 1.75em calc(var(--d) * -.2) 1.75em 0; --top: #3a4a62; --side: #0b1119; background: var(--code-bg); }
.codeblock .bar { display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem .4rem 1rem; border-bottom: 2px solid var(--line); background: #232f42; }
.codeblock .lang { font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; color: #fbe5a0; letter-spacing: .08em; }
.codeblock .copy { font: 600 .9rem var(--font-mono); min-height: 36px; padding: .2rem .7rem; background: #eef2f8; color: #141c29; border: 2px solid var(--line); cursor: pointer; }
.codeblock pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; color: var(--code-ink); font-size: .92rem; line-height: 1.65; tab-size: 2; }
.codeblock pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.tk-k { color: #c9b3ff; } .tk-s { color: #a8e6cb; } .tk-c { color: #93a1b6; font-style: italic; } .tk-f { color: #fbe5a0; } .tk-t { color: #9fd0ff; }
.callout { position: relative; padding: 1rem 1.2rem 1rem 4.2rem; border: 2px solid var(--line); background: var(--face); box-shadow: 5px 5px 0 var(--accent, var(--slate-mid)); }
.callout svg { position: absolute; left: .9rem; top: .9rem; width: 38px; height: 42px; }
.callout strong:first-child { color: var(--ink); }
.callout.why { --accent: var(--mint-mid); }
.callout.ask { --accent: var(--violet-mid); background: color-mix(in srgb, var(--violet-top) 22%, var(--face)); }
.callout.note { --accent: var(--butter-mid); }
.callout.skill { --accent: var(--tomato-mid); background: color-mix(in srgb, var(--tomato-top) 20%, var(--face)); }
.art-aside { align-self: start; position: sticky; top: 100px; display: grid; gap: 1.5rem; }
.art-aside .block { padding: 1rem 1.1rem; }
.art-aside h2 { font-size: 1.05rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.art-end { max-width: 1000px; margin: 3.5rem auto 0; }
@media (max-width: 1180px) { .art-layout { grid-template-columns: 220px minmax(0, 1fr); } .art-aside { grid-column: 2; position: static; margin-top: 2rem; } }
@media (max-width: 900px) { .art-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .toc-mobile { display: block; } .art-aside { grid-column: 1; } .codeblock { margin-right: calc(var(--d) * .866 + 2px); } }

/* ---------- timeline stairs (about) ---------- */
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(1rem + var(--d)); align-items: end; }
.stairs .block { padding: 1.2rem; }
.stairs .s2 { margin-bottom: 3rem; } .stairs .s3 { margin-bottom: 6rem; } .stairs .s4 { margin-bottom: 9rem; }
.stairs .period { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); }
.stairs ul { padding-left: 1.1em; margin: .6rem 0 0; font-size: 1rem; }
@media (max-width: 1000px) { .stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stairs .s2, .stairs .s3, .stairs .s4 { margin-bottom: 0; } }
@media (max-width: 620px) { .stairs { grid-template-columns: minmax(0, 1fr); } }
.careerbar { display: flex; border: 2px solid var(--line); margin: 1.5rem 0 3rem; overflow-x: auto; }
.careerbar div { flex: var(--w) 0 auto; min-width: 110px; padding: .6rem .7rem; border-right: 2px solid var(--line); background: var(--c); color: #1b2433; }
.careerbar div:last-child { border-right: 0; }
.careerbar b { display: block; font-size: 1rem; }
.careerbar span { font-family: var(--font-mono); font-size: .8125rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 600; color: var(--band-ink); line-height: 1.3; }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-mono); font-size: 1rem; color: #fbe5a0; }
.skill-list { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-list li { font-size: .95rem; padding: .2rem .6rem; border: 1.5px solid var(--line); background: var(--face-2); color: var(--ink); }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.three-ways > div { padding: 1.3rem 1.4rem; border-right: 2px solid var(--line); }
.three-ways > div:last-child { border-right: 0; }
.three-ways h3 { display: flex; align-items: center; gap: .6rem; }
.three-ways svg { width: 34px; height: 38px; }
@media (max-width: 760px) { .three-ways { grid-template-columns: 1fr; } .three-ways > div { border-right: 0; border-bottom: 2px solid var(--line); } }
.toolbar { display: grid; gap: 1rem; margin: 2rem 0 1rem; }
.search { display: flex; }
.search input { flex: 1; min-height: 56px; font-size: 1.1rem; padding: .7rem 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.filter-row .pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.sort { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.sort select { min-height: 44px; font: inherit; font-size: 1rem; padding: .3rem .6rem; background: var(--face); color: var(--ink); border: 2px solid var(--line); }
.count { font-family: var(--font-mono); font-size: .95rem; color: var(--muted); display: flex; gap: 1rem; align-items: center; }
.count button { background: none; border: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.pcard .tile { display: grid; place-items: center; height: 150px; border-bottom: 2px solid var(--line); background: color-mix(in srgb, var(--top) 30%, var(--face-2)); position: relative; }
.pcard .tile svg { width: 150px; height: 130px; }
.pcard .num { position: absolute; left: .7rem; top: .6rem; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.pcard .good { font-size: .98rem; color: var(--muted); }
.pcard .good b { color: var(--ink); }
.empty { text-align: center; padding: 3rem 1rem; }
.empty[hidden] { display: none; }
.pcard[hidden] { display: none; }

.panes { margin-top: 2rem; }
.pane-bar { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem; border-bottom: 2px solid var(--line); background: var(--face-2); }
.pane-bar [role="tablist"] { display: flex; gap: .5rem; flex-wrap: wrap; }
.pane-bar .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pane { padding: 1.25rem; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 1rem 1.1rem; overflow-x: auto; font-size: .92rem; line-height: 1.6; border: 2px solid var(--line); }
.pane .note { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.prompt-text { max-width: 70ch; font-size: 1.05rem; }
.stage { background: var(--ground); border: 2px dashed var(--grid-line); padding: 1.5rem; }
.stage .cap { font-size: 1rem; color: var(--muted); margin: 0 0 .75rem; }
.hss-strip { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 30rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--face); padding: .85rem 1rem; text-align: left; font: inherit; color: inherit; border: 0; min-width: 0; }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--face-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--butter-top) 55%, var(--face)); box-shadow: inset 0 -5px 0 var(--butter-mid); }
.hss-label { display: block; font-family: var(--font-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hss-fig { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.hss-fig.none { color: var(--muted); }
.hss-sub { display: block; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.dl-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); background: var(--face); }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--grid-line); }
.dl-list li:last-child { border-bottom: 0; }
.dl-list li[hidden] { display: none; }
.status { font-size: 1rem; color: var(--ink); margin-top: .75rem; font-weight: 600; }
.use-cases { columns: 2; column-gap: 2rem; padding-left: 1.1em; }
@media (max-width: 640px) { .use-cases { columns: 1; } }

@media (max-width: 560px) {
  :root { --d: 14px; }
  .block.deep { --d: 20px; }
  h1 { font-size: 2.35rem; }
  .hero .sub, .lede { font-size: 1.15rem; }
  .towers { gap: .75rem; }
  .tower b { font-size: 1.6rem; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bob { animation: bob 4s ease-in-out infinite; }
.bob2 { animation: bob 5s ease-in-out infinite .8s; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.1s steps(1) infinite; }

/* ---------- SVG iso faces ---------- */
.iso polygon { stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; }
.t-slate { fill: var(--slate-top); } .l-slate { fill: var(--slate-mid); } .r-slate { fill: var(--slate-side); }
.t-tomato { fill: var(--tomato-top); } .l-tomato { fill: var(--tomato-mid); } .r-tomato { fill: var(--tomato-side); }
.t-mint { fill: var(--mint-top); } .l-mint { fill: var(--mint-mid); } .r-mint { fill: var(--mint-side); }
.t-butter { fill: var(--butter-top); } .l-butter { fill: var(--butter-mid); } .r-butter { fill: var(--butter-side); }
.t-violet { fill: var(--violet-top); } .l-violet { fill: var(--violet-mid); } .r-violet { fill: var(--violet-side); }
.t-face { fill: var(--face); } .l-face { fill: var(--face-2); } .r-face { fill: color-mix(in srgb, var(--face-2) 70%, var(--line)); }
.iso .floor-line { stroke: color-mix(in srgb, var(--slate-top) 70%, #fff); stroke-width: 1; opacity: .55; }
.iso .frame { fill: var(--face); stroke: var(--line); stroke-width: 2; }
.iso .frame-line { fill: none; stroke: var(--line); stroke-width: 3; }
.iso .poster { fill: var(--band); stroke: var(--line); stroke-width: 2; }
.iso .poster-a { fill: var(--tomato-top); } .iso .poster-b { fill: var(--mint-top); } .iso .poster-c { fill: var(--butter-top); } .iso .poster-d { fill: var(--violet-top); }
.iso .screen { fill: #182130; stroke: var(--line); stroke-width: 2; }
.iso .eye { fill: #182130; }
.iso .leaves ellipse { fill: var(--mint-mid); stroke: var(--line); stroke-width: 1.6; }
.iso .win { fill: #fbe5a0; opacity: .85; stroke: none; }
:root[data-theme="light"] .iso .win { fill: #ffffff; opacity: .7; }
.iso .wire { stroke: var(--line); stroke-width: 3; }
.iso .page { fill: #fffdf6; stroke: var(--line); stroke-width: 1.5; }
.iso .pline { fill: #9db4cf; }
.iso .led0 { fill: #a8e6cb; } .iso .led1 { fill: #fbe5a0; } .iso .led2 { fill: #9fd0ff; }
.iso .bubble { fill: var(--face); stroke: var(--line); stroke-width: 2; }
.iso .bubble-text { font: 700 17px var(--font-mono); fill: var(--ink); }
.iso .layer-label { font: 700 13px var(--font-mono); fill: #fff; stroke: #141c29; stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.iso .logo-letter { font: 800 17px var(--font-display); fill: #fff; }
.skyline .win { display: none; }

.hero-grid.split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
@media (max-width: 880px) {
  .hero-grid.split { grid-template-columns: minmax(0, 1fr); }
  .hero-grid.split > svg, .hero-grid.split > .block { max-width: 340px; }
}

.prose-fig { margin-left: 0; margin-right: 0; padding: 0; }
.prose-fig .pic img { display: block; width: 100%; height: auto; }
.prose code { overflow-wrap: anywhere; }
.prose blockquote.callout { margin-left: 0; margin-right: 0; }
.prose blockquote.callout p + p { margin-top: .8em; }
.prose > * + p { margin-top: 1.25em; }
