/* Bento Grid — antjanus.com redesign 005
   One board per page: every piece of content is a rounded tile on a shared grid.
   Radius 24 / gap 14 (gap between half and full radius), inner radius = 24 - padding floor 10. */

:root {
  --ground: #e9ebef;
  --tile: #ffffff;
  --tile-2: #f4f5f8;
  --tile-line: #dfe3e8;
  --ink: #0e131a;
  --body: #2a333f;
  --muted: #535d6b;
  --line: #d3d8df;
  --brand: #364f6a;
  --brand-ink: #ffffff;
  --brand-soft: #dde6f0;
  --link: #2c5a8c;
  --gold: #8a5a06;
  --ai: #e8e5fb;
  --ai-ink: #332a8a;
  --garden: #e0eee5;
  --garden-ink: #1b5033;
  --tools: #f4ead3;
  --tools-ink: #684708;
  --inverse: #10161e;
  --inverse-ink: #eef2f6;
  --inverse-muted: #a8b3c1;
  --code-bg: #0f1620;
  --code-ink: #dbe4ee;
  --shadow: 0 1px 2px rgb(16 22 30 / 6%), 0 12px 28px -18px rgb(16 22 30 / 30%);
  --shadow-lift: 0 2px 4px rgb(16 22 30 / 8%), 0 22px 40px -20px rgb(16 22 30 / 40%);
  --focus: #1f6fd1;

  --radius: 24px;
  --radius-inner: 12px;
  --gap: 14px;
  --pad: clamp(20px, 2.1vw, 30px);
  --row: 150px;
  --max: 1320px;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #050607; --tile: #14171c; --tile-2: #1b1f26; --tile-line: #242a33;
    --ink: #f3f6f9; --body: #cdd5df; --muted: #9ca7b5; --line: #2c333d;
    --brand: #2f4a67; --brand-ink: #ffffff; --brand-soft: #1b2735; --link: #8fb6e2; --gold: #e0b35a;
    --ai: #1c1a34; --ai-ink: #c9c2ff; --garden: #11241a; --garden-ink: #9fdcb7; --tools: #2a2112; --tools-ink: #eec97d;
    --inverse: #e9edf2; --inverse-ink: #10161e; --inverse-muted: #4a5563;
    --code-bg: #0b0f15; --code-ink: #dbe4ee;
    --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 12px 28px -18px rgb(0 0 0 / 80%);
    --shadow-lift: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 22px 40px -18px rgb(0 0 0 / 90%);
    --focus: #7fb4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #050607; --tile: #14171c; --tile-2: #1b1f26; --tile-line: #242a33;
  --ink: #f3f6f9; --body: #cdd5df; --muted: #9ca7b5; --line: #2c333d;
  --brand: #2f4a67; --brand-ink: #ffffff; --brand-soft: #1b2735; --link: #8fb6e2; --gold: #e0b35a;
  --ai: #1c1a34; --ai-ink: #c9c2ff; --garden: #11241a; --garden-ink: #9fdcb7; --tools: #2a2112; --tools-ink: #eec97d;
  --inverse: #e9edf2; --inverse-ink: #10161e; --inverse-muted: #4a5563;
  --code-bg: #0b0f15; --code-ink: #dbe4ee;
  --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 12px 28px -18px rgb(0 0 0 / 80%);
  --shadow-lift: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 22px 40px -18px rgb(0 0 0 / 90%);
  --focus: #7fb4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--tile); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 32px); }
main { padding-bottom: 40px; }
section { margin-top: var(--gap); }

/* ---------- Nav: a strip of small tiles ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.nav-row { display: flex; gap: 8px; align-items: stretch; }
.nav-tile {
  background: var(--tile); border: 1px solid var(--tile-line); border-radius: 16px;
  box-shadow: var(--shadow); display: flex; align-items: center;
}
.brand-mark { gap: 10px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 38px; height: 38px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words small { font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brand-words strong { font: 700 19px/1.15 var(--font-display); letter-spacing: -0.02em; }
.nav-links { list-style: none; margin: 0; padding: 4px; gap: 2px; flex: 1; }
.nav-links a {
  display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 11px;
  font-weight: 500; font-size: 16px; color: var(--body); text-decoration: none;
}
.nav-links a:hover { background: var(--tile-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--tile); }
.nav-links a.ai-pill { background: var(--ai); color: var(--ai-ink); font-weight: 600; }
.nav-links a.ai-pill[aria-current="page"] { background: var(--ai-ink); color: var(--ai); }
.nav-search { padding: 4px 4px 4px 14px; gap: 6px; }
.nav-search input {
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; width: 150px; min-height: 40px;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus-visible { outline: none; }
.nav-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-search button, .icon-btn {
  min-width: 44px; min-height: 44px; border-radius: 12px; border: 0; background: var(--tile-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font: 600 15px var(--font-body);
}
.nav-search button { padding: 0 12px; min-height: 40px; }
.icon-btn { background: var(--tile); border: 1px solid var(--tile-line); border-radius: 16px; box-shadow: var(--shadow); width: 52px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover, .nav-search button:hover { background: var(--brand-soft); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1000px) {
  .nav-links, .nav-search { display: none; }
  .nav-row .spacer { flex: 1; }
  .menu-btn { display: grid; }
  .mobile-menu[data-open="true"] {
    display: block; margin-top: 8px; background: var(--tile); border: 1px solid var(--tile-line);
    border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lift);
  }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mobile-menu a { display: flex; min-height: 48px; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--tile-2); color: var(--ink); text-decoration: none; font-weight: 500; }
  .mobile-menu a[aria-current="page"] { background: var(--ink); color: var(--tile); }
  .mobile-menu form { display: flex; gap: 6px; margin-top: 8px; }
  .mobile-menu input { flex: 1; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--tile-2); color: var(--ink); padding: 0 14px; font: inherit; font-size: 16px; }
  .mobile-menu button { min-height: 48px; border-radius: 12px; border: 0; background: var(--ink); color: var(--tile); padding: 0 16px; font: 600 16px var(--font-body); }
}
@media (min-width: 1001px) { .nav-row .spacer { display: none; } }

/* ---------- The board ---------- */
.bento {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(var(--row), auto);
}
.c1 { grid-column: span 1; } .c2 { grid-column: span 2; } .c3 { grid-column: span 3; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.r2 { grid-row: span 2; } .r3 { grid-row: span 3; }
.rauto { grid-auto-rows: auto; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .c1, .c2 { grid-column: span 2; }
  .c3, .c4, .c5, .c6 { grid-column: span 4; }
  .t-c2 { grid-column: span 2; }
  .t-c4 { grid-column: span 4; }
  .t-r1 { grid-row: auto; }
  .r3 { grid-row: span 2; }
}
@media (max-width: 680px) {
  :root { --gap: 12px; --radius: 22px; --row: 120px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c2, .c3, .c4, .c5, .c6, .t-c2, .t-c4 { grid-column: span 2; }
  .c1, .m-c1 { grid-column: span 1; }
  .r2, .r3 { grid-row: auto; }
}

/* ---------- Tiles ---------- */
.tile {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--radius);
  padding: var(--pad); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.tile.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile:has(.stretch:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.tile .above { position: relative; z-index: 3; }
.tile .push { margin-top: auto; }

.tile--2 { background: var(--tile-2); }
.tile--brand { background: var(--brand); border-color: transparent; color: #dfe8f2; }
.tile--brand h1, .tile--brand h2, .tile--brand h3 { color: #fff; }
.tile--brand .eyebrow { color: #c4d4e6; }
.tile--brand a { color: #fff; }
.tile--inverse { background: var(--inverse); border-color: transparent; color: var(--inverse-muted); }
.tile--inverse h2, .tile--inverse h3, .tile--inverse strong { color: var(--inverse-ink); }
.tile--inverse .eyebrow { color: var(--inverse-muted); }
.tile--inverse p { color: var(--inverse-ink); opacity: .86; }
.tile--ai { background: var(--ai); border-color: transparent; }
.tile--ai, .tile--ai h2, .tile--ai h3, .tile--ai .eyebrow { color: var(--ai-ink); }
.tile--garden { background: var(--garden); border-color: transparent; }
.tile--garden, .tile--garden h2, .tile--garden h3, .tile--garden .eyebrow { color: var(--garden-ink); }
.tile--tools { background: var(--tools); border-color: transparent; }
.tile--tools, .tile--tools h2, .tile--tools h3, .tile--tools .eyebrow { color: var(--tools-ink); }
.tile--ai p, .tile--garden p, .tile--tools p { color: var(--ink); opacity: .82; }

/* photo tile: image fills, text sits on a measured scrim */
.tile--photo { padding: 0; border-color: transparent; background: #1a2230; color: #fff; justify-content: flex-end; }
.tile--photo > img, .tile--photo > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--photo .ph { background: radial-gradient(circle at 30% 20%, #4a6d8c, #1a2230 70%); }
.tile--photo .cap {
  position: relative; z-index: 1; padding: var(--pad);
  background: linear-gradient(to top, rgb(6 10 16 / 88%) 0%, rgb(6 10 16 / 70%) 55%, rgb(6 10 16 / 0%) 100%);
  display: flex; flex-direction: column; gap: 8px; padding-top: 64px;
}
.tile--photo h2, .tile--photo h3 { color: #fff; }
.tile--photo .eyebrow { color: #d5dde7; }
.tile--photo p { color: #e7edf3; }
.tile.link:hover > img { transform: scale(1.03); }
.tile > img { transition: transform 400ms ease; }

/* media tile: image on top, text under */
.media { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tile-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.term { background: #0c1117; }
.media.term img { object-fit: contain; }

.eyebrow {
  font: 500 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.foot-tag { font: 500 13px/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.display { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -0.04em; font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.15; }
.h3.big { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--body); max-width: 60ch; }
.desc { color: var(--body); }
.meta { font: 500 13px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.tile--photo .meta { color: #d5dde7; }

.stat { justify-content: space-between; }
.stat .fig { font: 800 clamp(2.8rem, 4.8vw, 4.4rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile--brand .fig, .tile--inverse .fig { color: inherit; }
.tile--brand.stat .fig { color: #fff; }
.tile--inverse.stat .fig { color: var(--inverse-ink); }
.stat .lbl { font-weight: 500; color: var(--muted); }
.tile--brand .lbl { color: #d6e2ee; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip {
  font: 500 13px/1 var(--font-mono); padding: 7px 10px; border-radius: 999px;
  background: var(--tile-2); color: var(--body); border: 1px solid var(--tile-line); text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.tile--2 .chip { background: var(--tile); }
.tile--ai .chip, .tile--garden .chip, .tile--tools .chip { background: rgb(255 255 255 / 45%); border-color: transparent; color: inherit; }
:root[data-theme="dark"] .tile--ai .chip, :root[data-theme="dark"] .tile--garden .chip, :root[data-theme="dark"] .tile--tools .chip { background: rgb(0 0 0 / 30%); }
.tile--photo .chip, .tile--brand .chip, .tile--inverse .chip { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 18%); color: inherit; }
.tile--inverse .chip { background: transparent; border-color: color-mix(in srgb, var(--inverse-ink) 25%, transparent); color: var(--inverse-ink); }
.badge { font: 700 13px/1 var(--font-mono); padding: 6px 9px; border-radius: 8px; letter-spacing: .06em; text-transform: uppercase; }
.badge.new { background: var(--gold); color: var(--tile); }
.badge.upd { background: var(--brand-soft); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 14px; font: 600 16px var(--font-body); text-decoration: none; border: 0; cursor: pointer;
  background: var(--ink); color: var(--tile); transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.light { background: #fff; color: #10161e; }
.tile--inverse .btn { background: var(--inverse-ink); color: var(--inverse); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tertiary { font-weight: 500; color: var(--muted); text-decoration: none; padding: 12px 4px; }
.tertiary:hover { color: var(--ink); text-decoration: underline; }
.arrow-corner {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; background: var(--tile-2); color: var(--ink); transition: transform 180ms ease;
}
.arrow-corner svg { width: 18px; height: 18px; }
.tile.link:hover .arrow-corner { transform: rotate(-45deg); }
.tile--photo .arrow-corner, .tile--brand .arrow-corner { background: rgb(255 255 255 / 18%); color: #fff; }
.tile--ai .arrow-corner, .tile--garden .arrow-corner, .tile--tools .arrow-corner { background: rgb(255 255 255 / 50%); color: inherit; }
:root[data-theme="dark"] .tile--ai .arrow-corner, :root[data-theme="dark"] .tile--garden .arrow-corner, :root[data-theme="dark"] .tile--tools .arrow-corner { background: rgb(0 0 0 / 30%); }

/* Rows inside a tile (lists of posts) */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows li { border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.rows li:first-child { border-top: 0; }
.rows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; text-decoration: none; color: inherit; }
.rows a:hover .rt { text-decoration: underline; text-underline-offset: 3px; }
.rows .rt { font-weight: 600; color: var(--ink); line-height: 1.35; }
.tile--ai .rows .rt { color: var(--ai-ink); } .tile--garden .rows .rt { color: var(--garden-ink); } .tile--tools .rows .rt { color: var(--tools-ink); }
.tile--inverse .rows .rt { color: var(--inverse-ink); }
.rows .rd { font: 500 13px/1.5 var(--font-mono); color: var(--muted); white-space: nowrap; padding-top: 3px; }
.tile--ai .rd, .tile--garden .rd, .tile--tools .rd { color: inherit; opacity: .8; }
.rows .rx { grid-column: 1 / -1; color: var(--body); font-size: 16px; }

.sec-label { justify-content: flex-end; background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.sec-label .h2 { max-width: 14ch; }
.count { font: 500 13px var(--font-mono); color: var(--muted); }

/* Tiny glyph tiles, e.g. social */
.glyph-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.glyph-links a {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 14px; border-radius: var(--radius-inner); background: var(--tile-2); color: var(--ink);
  text-decoration: none; font-weight: 600; min-height: 96px;
}
.glyph-links a:hover { background: var(--brand-soft); }
.glyph-links svg { width: 22px; height: 22px; }

/* forms */
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input[type="email"], .field input[type="search"], .input {
  flex: 1 1 200px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--tile); color: var(--ink); font: inherit; font-size: 16px;
}
.tile--brand .field input { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 30%); color: #fff; }
.tile--brand .field input::placeholder { color: #c9d6e4; }
.form-note { font-size: 15px; color: var(--muted); }
.tile--brand .form-note { color: #d2dfec; }
.form-status { font-weight: 600; min-height: 1.4em; }

/* ---------- Home board (areas) ---------- */
.home-board {
  grid-template-areas:
    "hero hero hero hero photo photo"
    "hero hero hero hero photo photo"
    "s1 s2 s3 loc photo photo"
    "feat feat feat ai ai ai"
    "feat feat feat ai ai ai"
    "f2 f2 f2 f3 f3 f3"
    "garden garden pat pat story story"
    "garden garden pat pat story story"
    "bp gl proj proj work work"
    "conn conn news news news news";
}
.a-hero { grid-area: hero; } .a-photo { grid-area: photo; } .a-s1 { grid-area: s1; } .a-s2 { grid-area: s2; } .a-s3 { grid-area: s3; }
.a-loc { grid-area: loc; } .a-feat { grid-area: feat; } .a-ai { grid-area: ai; } .a-f2 { grid-area: f2; } .a-f3 { grid-area: f3; }
.a-garden { grid-area: garden; } .a-pat { grid-area: pat; } .a-story { grid-area: story; } .a-bp { grid-area: bp; } .a-gl { grid-area: gl; }
.a-proj { grid-area: proj; } .a-work { grid-area: work; } .a-conn { grid-area: conn; } .a-news { grid-area: news; }
@media (max-width: 1100px) {
  .home-board {
    grid-template-areas:
      "hero hero hero hero" "photo photo s1 s2" "photo photo s3 loc"
      "feat feat feat feat" "ai ai ai ai" "ai ai ai ai" "f2 f2 f3 f3"
      "garden garden pat pat" "garden garden story story" "bp gl proj proj" "work work work work" "conn conn news news";
  }
}
@media (max-width: 680px) {
  .home-board { grid-template-areas: none; }
  .home-board > * { grid-area: auto; grid-column: span 2; }
  .home-board > .a-s1, .home-board > .a-s2, .home-board > .a-s3, .home-board > .a-loc, .home-board > .a-bp, .home-board > .a-gl { grid-column: span 1; }
  .home-board > .a-photo { min-height: 420px; }
}
.hero-tile { justify-content: space-between; gap: 28px; }
.hero-tile .display { max-width: 13ch; }

/* ---------- About board (areas) ---------- */
.about-board {
  grid-template-areas:
    "port port intro intro intro intro"
    "port port intro intro intro intro"
    "port port sum sum sum y"
    "loc st1 sum sum sum st2"
    "prin prin prin prin cls cls";
}
.b-port { grid-area: port; } .b-intro { grid-area: intro; } .b-sum { grid-area: sum; } .b-y { grid-area: y; } .b-loc { grid-area: loc; }
.b-st1 { grid-area: st1; } .b-st2 { grid-area: st2; } .b-prin { grid-area: prin; } .b-cls { grid-area: cls; }
@media (max-width: 1100px) {
  .about-board {
    grid-template-areas: "intro intro intro intro" "port port sum sum" "port port sum sum" "y st1 st2 loc" "prin prin prin prin" "cls cls cls cls";
  }
}
@media (max-width: 680px) {
  .about-board { grid-template-areas: none; }
  .about-board > * { grid-area: auto; grid-column: span 2; }
  .about-board > .b-y, .about-board > .b-st1, .about-board > .b-st2, .about-board > .b-loc { grid-column: span 1; }
  .about-board > .b-port { min-height: 440px; }
}

.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 2.4rem 1fr; gap: 8px; font: 500 clamp(1.1rem, 1.5vw, 1.3rem)/1.35 var(--font-display); color: var(--inverse-ink); font-style: italic; }
.principles li::before { content: "0" counter(p); font: 500 13px/2 var(--font-mono); color: var(--inverse-muted); font-style: normal; }
.skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.career-bar { display: flex; gap: 4px; border-radius: 14px; overflow: hidden; }
.career-bar span {
  flex: var(--w) 1 0; min-width: 0; padding: 12px 10px; background: var(--tile-2); font: 500 13px/1.3 var(--font-mono); color: var(--ink);
  border-top: 4px solid color-mix(in srgb, var(--brand) calc(var(--o) * 1%), var(--line));
}
.career-bar span b { display: block; font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .career-bar { flex-direction: column; } .career-bar span { flex: none; display: flex; justify-content: space-between; gap: 12px; } }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roles li { font-size: 16px; }
.roles strong { color: var(--ink); }
details.history summary { cursor: pointer; list-style: none; }
details.history summary::-webkit-details-marker { display: none; }
details.history[open] .when-closed { display: none; }
details.history:not([open]) .when-open { display: none; }

/* ---------- Page heads ---------- */
.page-head .display { max-width: 16ch; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand); z-index: 60; }
:root[data-theme="dark"] .progress { background: #7fa6d0; }
.article-head { grid-auto-rows: minmax(120px, auto); }
.article-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: start; }
.toc-tile { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; }
.toc-tile ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-tile a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: 16px; line-height: 1.35; }
.toc-tile a:hover { background: var(--tile-2); }
.toc-tile a[aria-current="true"] { background: var(--ink); color: var(--tile); }
.toc-meter { height: 6px; border-radius: 99px; background: var(--tile-2); overflow: hidden; }
.toc-meter i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; }
.side-stack { display: grid; gap: var(--gap); position: sticky; top: 96px; }
.side-stack .toc-tile { position: static; max-height: none; }
@media (max-width: 1000px) {
  .article-shell { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .side-stack .side-extra { display: none; }
}
details.toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 1001px) { details.toc-mobile > summary { display: none; } }

.prose-tile { padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 72px); }
.prose { font-size: 18px; line-height: 1.72; color: var(--body); max-width: 70ch; margin: 0 auto; width: 100%; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 2.2em; padding-top: .4em; letter-spacing: -0.03em; scroll-margin-top: 100px; }
.prose h2 .n { display: inline-block; font: 500 14px var(--font-mono); color: var(--muted); letter-spacing: .05em; vertical-align: middle; margin-right: 10px; padding: 5px 8px; border-radius: 8px; background: var(--tile-2); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose code { font: 500 .86em var(--font-mono); background: var(--tile-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose .callout {
  border-radius: 18px; padding: 18px 22px 18px 20px; margin-left: 0; margin-right: 0; font-size: 17px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
}
.callout .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--font-mono); grid-row: span 2; }
.callout .k { font: 600 13px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.callout p { margin: 0; }
.callout.why { background: var(--garden); color: var(--ink); }
.callout.why .ico { background: var(--garden-ink); color: var(--garden); }
.callout.why .k { color: var(--garden-ink); }
.callout.ask { background: var(--ai); color: var(--ink); }
.callout.ask .ico { background: var(--ai-ink); color: var(--ai); }
.callout.ask .k { color: var(--ai-ink); }
.callout.note { background: var(--tile-2); }
.callout.note .ico { background: var(--ink); color: var(--tile); }
.callout.skill { background: var(--brand); color: #e6eef6; }
.callout.skill .ico { background: #fff; color: var(--brand); }
.callout.skill .k { color: #cfdcea; }
.callout.skill a, .callout.skill code { color: #fff; }
.callout.skill code { background: rgb(255 255 255 / 16%); }

.code {
  background: var(--code-bg); color: var(--code-ink); border-radius: 18px; overflow: hidden;
  margin-left: clamp(-40px, -3vw, 0px); margin-right: clamp(-40px, -3vw, 0px); border: 1px solid #1f2a37;
}
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid #1f2a37; }
.code-bar span { font: 500 13px var(--font-mono); color: #9fb0c2; letter-spacing: .08em; text-transform: uppercase; }
.copy-btn { min-height: 36px; min-width: 64px; border-radius: 10px; border: 1px solid #2a3847; background: #16202c; color: #dbe4ee; font: 600 14px var(--font-body); cursor: pointer; padding: 0 12px; }
.copy-btn:hover { background: #1f2d3d; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 14.5px/1.65 var(--font-mono); tab-size: 2; }
.code .k { color: #c7a4ff; } .code .s { color: #9fdc9a; } .code .c { color: #8b9aab; font-style: italic; } .code .f { color: #7cc4ff; } .code .t { color: #f2c66d; }

/* ---------- Patterns ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--tile); color: var(--ink); font: 500 15px var(--font-body); cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--tile); border-color: var(--ink); }
.pattern-card { gap: 10px; }
.thumb { height: 150px; border-radius: 14px; background: var(--tile-2); margin-bottom: 6px; position: relative; overflow: hidden; display: grid; place-items: center; }
.thumb i { display: block; }
.th-data { display: flex !important; align-items: flex-end; gap: 7px; height: 90px; }
.th-data i { width: 16px; background: var(--brand); border-radius: 5px 5px 2px 2px; opacity: .85; }
.th-data i:nth-child(2n) { background: #7c9dc0; }
.th-layout { display: grid !important; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; width: 66%; height: 96px; }
.th-layout i { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; }
.th-layout i:first-child { grid-row: span 2; background: var(--brand); border-color: var(--brand); }
.th-interaction { display: flex !important; gap: 8px; align-items: center; }
.th-interaction i { width: 88px; height: 40px; border-radius: 12px; background: var(--tile); border: 1.5px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.th-interaction i:first-child { background: var(--ink); border-color: var(--ink); box-shadow: 0 2px 0 var(--muted); transform: translateY(3px); }
.th-forms { display: grid !important; gap: 8px; width: 66%; }
.th-forms i { height: 22px; border-radius: 8px; background: var(--tile); border: 1.5px solid var(--line); }
.th-forms i:last-child { width: 45%; background: var(--gold); border-color: var(--gold); }
.th-color { display: flex !important; gap: 0; width: 70%; height: 70px; border-radius: 12px; overflow: hidden; }
.th-color i { flex: 1; }
.pattern-card[data-cat="Data display"] .thumb { background: color-mix(in srgb, var(--ai) 70%, var(--tile-2)); }
.pattern-card[data-cat="Forms"] .thumb { background: color-mix(in srgb, var(--tools) 70%, var(--tile-2)); }
.pattern-card[data-cat="Layout"] .thumb { background: color-mix(in srgb, var(--garden) 70%, var(--tile-2)); }
.good-for { font-size: 15px; color: var(--muted); }
.good-for b { color: var(--ink); font-weight: 600; }
.empty-state { text-align: center; align-items: center; justify-content: center; padding: 48px 24px; }
[hidden] { display: none !important; }

.panes-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--tile-line); padding-bottom: 12px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--tile-2); padding: 4px; border-radius: 14px; }
.tabs [role="tab"] { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--body); font: 500 15px var(--font-body); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--tile); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.pane-code { background: var(--code-bg); color: var(--code-ink); border-radius: 16px; margin: 0; padding: 18px 20px; overflow: auto; max-height: 560px; font: 400 14.5px/1.65 var(--font-mono); }
.prompt-text { font-size: 17px; max-width: 70ch; display: grid; gap: 1em; }
.prompt-text code { font: 500 .88em var(--font-mono); background: var(--tile-2); padding: 1px 6px; border-radius: 6px; }

/* the hairline stat strip itself, live */
.stage { background: var(--ground); border-radius: 16px; padding: clamp(16px, 3vw, 32px); display: grid; gap: 16px; }
.hss-cap { font-size: 16px; color: var(--muted); }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 21rem) { .hss-strip.five > :first-child { grid-column: 1 / -1; } }
@media (min-width: 42rem) { .hss-strip.five { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .hss-strip.five { grid-template-columns: repeat(5, 1fr); } .hss-strip.five > :first-child { grid-column: auto; } }
.hss-tile { background: var(--tile); padding: 14px 16px; display: grid; gap: 4px; text-align: left; border: 0; font: inherit; color: inherit; min-width: 0; }
.hss-tile .l { font: 500 13px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hss-tile .v { font: 700 1.6rem/1.1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.hss-tile .v.none { color: var(--muted); }
.hss-tile .s { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--tile-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 16%, var(--tile)); box-shadow: inset 0 -3px 0 var(--brand); }
:root[data-theme="dark"] button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, #6f92bd 22%, var(--tile)); box-shadow: inset 0 -3px 0 #6f92bd; }
.hss-list { list-style: none; margin: 0; padding: 0; background: var(--tile); border-radius: 12px; border: 1px solid var(--line); }
.hss-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 16px; }
.hss-list li:first-child { border-top: 0; }
.hss-list .st { font: 500 13px var(--font-mono); color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.hss-status { font-size: 15px; color: var(--muted); }

/* ---------- Footer board ---------- */
.site-foot { margin-top: 28px; padding-bottom: 28px; }
.foot-board { grid-auto-rows: auto; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-list a { color: var(--body); text-decoration: none; display: inline-flex; min-height: 34px; align-items: center; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 4px 0; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .tile.link:hover { transform: none; }
}
.prose pre code { background: none; padding: 0; color: inherit; font: inherit; border-radius: 0; }
.tile > .input { flex: none; width: 100%; }
.tile--photo h1 { color: #fff; }
@media (max-width: 680px) { .code { margin-left: 0; margin-right: 0; } .prose-tile { padding: 22px 16px; } }

/* UI pattern library article */
.prose .prose-fig { margin: 28px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line, rgba(0,0,0,.1)); }
.prose .prose-fig img { width: 100%; height: auto; display: block; }
.prose .callout-body { display: grid; gap: 10px; }
.prose .live-pattern a.btn { white-space: normal; text-decoration: none; }
.prose p code { overflow-wrap: anywhere; }
.prose .callout.skill strong { color: #fff; }
