/* ==========================================================================
   toluwalase.uk
   Ice white, deep navy ink, teal accent. One stylesheet, no framework.
   ========================================================================== */

:root {
  --bg: #f4f7f9;
  --bg-2: #eaf0f4;
  --surface: #ffffff;
  --ink: #0f1b26;
  --ink-2: #3c4b59;
  --ink-3: #66768a;
  --line: #d9e2e9;
  --line-2: #c3d0da;
  --accent: #0b6e73;
  --accent-2: #0a8a90;
  --accent-soft: #dcefef;
  --on-accent: #ffffff;
  --amber: #a85f19;
  --rose: #a33a4a;
  --indigo: #4453c4;
  --good: #1d7a4f;
  --warn: #a85f19;
  --bad: #b23a3a;

  --shadow-1: 0 1px 2px rgba(15, 27, 38, 0.05), 0 4px 14px rgba(15, 27, 38, 0.05);
  --shadow-2: 0 2px 6px rgba(15, 27, 38, 0.06), 0 18px 44px rgba(15, 27, 38, 0.1);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1117;
    --bg-2: #101921;
    --surface: #131d26;
    --ink: #e6edf2;
    --ink-2: #b2bfca;
    --ink-3: #7f8e9b;
    --line: #1e2b36;
    --line-2: #2a3a47;
    --accent: #4cc3be;
    --accent-2: #74d8d3;
    --accent-soft: #10302f;
    --on-accent: #04201f;
    --amber: #e3a463;
    --rose: #e57c8a;
    --indigo: #8d99f3;
    --good: #5cc98f;
    --warn: #e3a463;
    --bad: #ec7d7d;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.2);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1117;
  --bg-2: #101921;
  --surface: #131d26;
  --ink: #e6edf2;
  --ink-2: #b2bfca;
  --ink-3: #7f8e9b;
  --line: #1e2b36;
  --line-2: #2a3a47;
  --accent: #4cc3be;
  --accent-2: #74d8d3;
  --accent-soft: #10302f;
  --on-accent: #04201f;
  --amber: #e3a463;
  --rose: #e57c8a;
  --indigo: #8d99f3;
  --good: #5cc98f;
  --warn: #e3a463;
  --bad: #ec7d7d;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.2);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
h1, h2, .display { font-family: var(--f-display); font-optical-sizing: auto; }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em.accent, .accent-text { color: var(--accent); font-style: italic; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }
.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(--bg); padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--ink-3); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6;
}
.mono { font-family: var(--f-mono); font-size: 0.86em; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.brand:hover .brand__mark { transform: rotate(-6deg); background: var(--accent); color: var(--on-accent); }
.brand__name { font-size: 1rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-size: 0.95rem; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: var(--bg-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav__tools { display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}
.nav__menu { display: none; }

@media (max-width: 760px) {
  .nav__inner { gap: 12px; }
  .nav__tools { margin-left: auto; }
  .nav__menu { display: grid; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    transform-origin: top; transform: scaleY(0.96); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 12px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { background: none; color: var(--accent); }
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.97rem; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink);
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
a .icon[aria-hidden] + .sr-only { }

/* ---------- status pill ---------- */

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); white-space: nowrap;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status--live .status__dot { background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2.4s infinite; }
.status--dev .status__dot { background: var(--accent); }
.status--exp .status__dot { background: var(--indigo); }
.status--done .status__dot { background: var(--ink-3); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  /* quiet behind the text, full strength as streams reach the panel */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 35%, #000 60%), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 35%, #000 60%), linear-gradient(180deg, #000 80%, transparent);
  mask-composite: intersect;
}
.hero__grid {
  position: relative; display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); align-items: end;
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  font-weight: 350; letter-spacing: -0.035em; line-height: 0.98;
  margin: 18px 0 26px;
}
.hero h1 .surname { display: block; color: var(--ink-3); font-style: italic; font-weight: 300; }
.hero__lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--ink); max-width: 30ch; margin-bottom: 18px; font-family: var(--f-display); font-weight: 350; }
.hero__body { color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }
.hero__aka { color: var(--ink-3); font-size: 0.95rem; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.now-panel { padding: 8px; position: relative; }
.now-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 10px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.now-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background 0.2s;
}
.now-row + .now-row { border-top: 1px solid var(--line); }
.now-row:hover { background: var(--bg); color: var(--ink); }
.now-row:hover + .now-row { border-top-color: transparent; }
.now-row__key {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  color: var(--c, var(--accent));
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500;
}
.now-row__t { font-weight: 600; line-height: 1.25; display: block; }
.now-row__d { color: var(--ink-3); font-size: 0.88rem; line-height: 1.35; display: block; }
.now-row .icon { color: var(--ink-3); transition: transform 0.25s var(--ease), color 0.2s; }
.now-row:hover .icon { transform: translateX(3px); color: var(--accent); }
.now-panel__foot { padding: 10px 14px 8px; font-size: 0.82rem; color: var(--ink-3); border-top: 1px dashed var(--line); margin-top: 4px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__field {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 45%, transparent 62%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 45%, transparent 62%);
  }
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 350; margin-top: 14px; }
.sec-head p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- project tiles ---------- */

.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.proj {
  --c: var(--accent);
  grid-column: span 6; position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); color: var(--ink); }
.proj--wide { grid-column: span 7; }
.proj--narrow { grid-column: span 5; }
.proj__art {
  position: relative; height: 230px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 7%, var(--surface));
  border-bottom: 1px solid var(--line);
}
.proj__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proj__kind { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c); }
.proj h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.02em; }
.proj p { color: var(--ink-2); margin: 0; }
.proj__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.proj__more .icon { transition: transform 0.25s var(--ease); }
.proj:hover .proj__more { color: var(--c); }
.proj:hover .proj__more .icon { transform: translateX(4px); }
.c-whot { --c: var(--amber); }
.c-pab { --c: var(--rose); }
.c-ai { --c: var(--indigo); }
.c-res { --c: var(--accent); }
.c-nhs { --c: var(--accent); }
@media (max-width: 900px) {
  .proj, .proj--wide, .proj--narrow { grid-column: span 12; }
}

/* Tile art. Each is pure HTML/CSS so it themes with the site. */
.art { position: absolute; inset: 0; display: grid; place-items: center; }

/* Whot: a fan of plain rounded rectangles, nudged on hover */
.art-fan { position: relative; width: 220px; height: 150px; }
.art-fan span {
  position: absolute; left: 50%; bottom: 0; width: 78px; height: 112px; margin-left: -39px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1); transform-origin: 50% 140%;
  transition: transform 0.6s var(--ease);
}
.art-fan span::after {
  content: ""; position: absolute; inset: 30% 28%; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 80%, transparent);
}
.art-fan span:nth-child(1) { transform: rotate(-24deg); }
.art-fan span:nth-child(2) { transform: rotate(-8deg); }
.art-fan span:nth-child(2)::after { border-radius: 4px; }
.art-fan span:nth-child(3) { transform: rotate(8deg); }
.art-fan span:nth-child(3)::after { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.art-fan span:nth-child(4) { transform: rotate(24deg); }
.art-fan span:nth-child(4)::after { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); border-radius: 0; }
.proj:hover .art-fan span:nth-child(1) { transform: rotate(-32deg) translateY(-6px); }
.proj:hover .art-fan span:nth-child(2) { transform: rotate(-11deg) translateY(-14px); }
.proj:hover .art-fan span:nth-child(3) { transform: rotate(11deg) translateY(-14px); }
.proj:hover .art-fan span:nth-child(4) { transform: rotate(32deg) translateY(-6px); }

/* Pabiekun: chat bubbles become an article */
.art-pab { width: min(360px, 84%); display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 18px; align-items: center; }
.art-pab__chat { display: grid; gap: 7px; }
.art-pab__chat i {
  display: block; height: 14px; border-radius: 9px 9px 9px 3px;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  transition: transform 0.5s var(--ease);
}
.art-pab__chat i:nth-child(1) { width: 80%; }
.art-pab__chat i:nth-child(2) { width: 55%; }
.art-pab__chat i:nth-child(3) { width: 92%; }
.art-pab__chat i:nth-child(4) { width: 40%; }
.art-pab__arrow { color: var(--ink-3); width: 22px; height: 22px; transition: transform 0.4s var(--ease), color 0.3s; }
.proj:hover .art-pab__arrow { transform: translateX(4px); color: var(--c); }
.art-pab__doc {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 14px 12px;
  box-shadow: var(--shadow-1); display: grid; gap: 6px;
}
.art-pab__doc b { display: block; height: 9px; width: 75%; border-radius: 3px; background: var(--ink); opacity: 0.85; margin-bottom: 4px; }
.art-pab__doc i { display: block; height: 5px; border-radius: 3px; background: var(--line-2); }
.art-pab__doc i:nth-child(3n) { width: 82%; }
.proj:hover .art-pab__chat i { transform: translateX(6px); }

/* Local AI: stacked timing bars */
.art-ai { width: min(360px, 84%); display: grid; gap: 12px; }
.art-ai__row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-3); }
.art-ai__bar { height: 14px; border-radius: 4px; background: var(--line); display: flex; overflow: hidden; }
.art-ai__bar i { display: block; height: 100%; transition: width 0.8s var(--ease); }
.art-ai__bar i:nth-child(1) { background: var(--c); }
.art-ai__bar i:nth-child(2) { background: color-mix(in srgb, var(--c) 45%, var(--surface)); }
.art-ai__bar .w61 { width: 61%; } .art-ai__bar .w35 { width: 35%; }
.art-ai__bar .w20 { width: 20%; } .art-ai__bar .w70 { width: 70%; }
.art-ai__bar .w40 { width: 40%; } .art-ai__bar .w50 { width: 50%; }
.proj:hover .art-ai__bar .w20 { width: 61%; }
.proj:hover .art-ai__bar .w70 { width: 35%; }

/* Research: three clusters of dots */
.art-res { width: min(360px, 84%); height: 150px; position: relative; }
.art-res i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.proj:hover .art-res i { transform: scale(1.35); }

/* NHS work: two lists joined by lines */
.art-rec { width: min(380px, 86%); display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; }
.art-rec__col { display: grid; gap: 8px; }
.art-rec__col i { display: block; height: 18px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line-2); }
.art-rec__col i.miss { border-style: dashed; border-color: var(--warn); }
.art-rec svg { width: 60px; height: 130px; color: var(--c); }

/* ---------- small things list ---------- */

.small-list { margin-top: 22px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.small-item {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: padding 0.3s var(--ease), background 0.2s;
}
.small-item:hover { padding-left: 14px; background: var(--surface); color: var(--ink); }
.small-item .mono { color: var(--ink-3); }
.small-item p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .small-item { grid-template-columns: 1fr auto; } .small-item .mono { grid-column: 1 / -1; } }

/* ---------- day job split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.lead { font-family: var(--f-display); font-weight: 350; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.chips li { font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }

.case-links { display: grid; gap: 14px; }
.case-link {
  display: block; padding: 24px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.case-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-1); color: var(--ink); }
.case-link .mono { color: var(--accent); }
.case-link h3 { margin: 8px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
.case-link p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

/* ---------- now strip ---------- */

.now-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.now-list li { padding: 22px 22px 6px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.now-list li:last-child { border-right: 0; margin-right: 0; }
.now-list b { display: block; font-weight: 600; margin-bottom: 4px; }
.now-list span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) {
  .now-list { grid-template-columns: 1fr 1fr; }
  .now-list li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
}
@media (max-width: 520px) { .now-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact { text-align: left; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 330; letter-spacing: -0.03em; max-width: 16ch; margin: 16px 0 22px; }
.contact p { color: var(--ink-2); max-width: 58ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 26px; }
.email {
  font-family: var(--f-display); font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 350;
  text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s; word-break: break-all;
}
.email:hover { border-color: var(--accent); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-done { border-color: var(--good); color: var(--good); }

/* ---------- page header (inner pages) ---------- */

.page-head { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(32px, 5vw, 56px); position: relative; }
.page-head h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 330; letter-spacing: -0.03em; margin: 16px 0 22px; max-width: 18ch; }
.page-head .lead { color: var(--ink-2); max-width: 40ch; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.crumb { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); text-decoration: none; }
.crumb:hover { color: var(--accent); }

/* ---------- article layout ---------- */

.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .facts { order: -1; } }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 380; margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose .note {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: 1.6em 0; color: var(--ink-2); font-size: 0.97rem;
}

.facts { position: sticky; top: 96px; padding: 22px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 0.95rem; }
.facts .btn { width: 100%; justify-content: center; margin-top: 20px; }
@media (max-width: 960px) { .facts { position: static; } .facts dl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 72px; }
.pager a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); transition: border-color 0.2s; }
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager a:last-child { text-align: right; }
.pager .mono { color: var(--ink-3); display: block; margin-bottom: 4px; }
.pager b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* ---------- demo boxes ---------- */

.demo { margin: 2em 0; padding: clamp(18px, 3vw, 28px); }
.demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.demo__title { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.demo__cap { font-size: 0.85rem; color: var(--ink-3); margin-top: 16px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button {
  border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-size: 0.88rem; color: var(--ink-2); transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }

/* bar chart */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 120px 1fr 96px; gap: 14px; align-items: center; }
.bar__label { font-weight: 600; font-size: 0.95rem; }
.bar__label small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.78rem; }
.bar__track { height: 28px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 0.9s var(--ease); }
.bar:nth-child(2) .bar__fill { background: var(--rose); }
.bar:nth-child(3) .bar__fill { background: var(--indigo); }
.bar__val { font-family: var(--f-mono); font-size: 0.88rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__track { grid-column: 1 / -1; grid-row: 2; }
}

/* pipeline steps */
.pipeline { list-style: none; padding: 0; margin: 1.6em 0; display: grid; gap: 0; counter-reset: step; }
.pipeline li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.pipeline li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent);
  padding-top: 3px;
}
.pipeline b { color: var(--ink); font-weight: 600; }

/* timing stack (local AI) */
.stack { display: flex; height: 46px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.stack i { display: flex; align-items: center; padding: 0 12px; color: var(--bg); font-style: normal; font-size: 0.8rem; font-family: var(--f-mono); white-space: nowrap; overflow: hidden; transition: flex-basis 0.8s var(--ease); }
.stack .s-prompt { background: var(--indigo); }
.stack .s-decode { background: color-mix(in srgb, var(--indigo) 55%, var(--surface)); color: var(--ink); }
.stack .s-other { background: var(--line-2); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 0.85rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.range { display: grid; gap: 10px; margin-top: 4px; }
.range input[type="range"] { width: 100%; accent-color: var(--indigo); }
.range__out { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.range__big { font-family: var(--f-display); font-size: 2.4rem; font-weight: 350; letter-spacing: -0.02em; }
.plot { width: 100%; height: 190px; margin-top: 16px; color: var(--ink-3); }
.plot .axis { stroke: var(--line-2); }
.plot .line { fill: none; stroke: var(--indigo); stroke-width: 2; }
.plot .pt { fill: var(--indigo); }
.plot .cursor { stroke: var(--indigo); stroke-dasharray: 3 4; }
.plot .cursor-dot { fill: var(--surface); stroke: var(--indigo); stroke-width: 2; }
.plot text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-3); }

/* chat -> article (Pabiekun) */
.morph { display: grid; min-height: 300px; }
.morph > * { grid-area: 1 / 1; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.morph [hidden] { display: block !important; opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; }
.chat { display: grid; gap: 8px; align-content: start; max-width: 460px; }
.chat__msg {
  justify-self: start; max-width: 92%; padding: 9px 13px 18px; border-radius: 14px 14px 14px 4px;
  background: var(--bg-2); border: 1px solid var(--line); font-size: 0.93rem; position: relative; color: var(--ink);
}
.chat__msg time { position: absolute; right: 10px; bottom: 3px; font-size: 0.68rem; color: var(--ink-3); font-family: var(--f-mono); }
.chat__msg--fwd::before { content: "Forwarded"; display: block; font-size: 0.72rem; font-style: italic; color: var(--ink-3); margin-bottom: 2px; }
.article-mock { max-width: 560px; }
.article-mock__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.article-mock__tags span { font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 35%, transparent); padding: 2px 8px; border-radius: 999px; }
.article-mock h4 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.article-mock__by { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 14px; }
.article-mock p { color: var(--ink-2); font-size: 0.95rem; }
.article-mock h5 { font-size: 1rem; margin: 14px 0 6px; font-weight: 600; }

/* reconcile demo */
.rec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rec-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.rec-table th { text-align: left; font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rec-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; transition: background 0.4s, color 0.4s; }
.rec-table td.mono { font-size: 0.82rem; }
.rec-table tr.is-diff td.diff { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--ink); }
.rec-table tr.is-miss td { color: var(--ink-3); }
.rec-table tr.is-miss td.diff { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--ink); }
.rec-badge { font-family: var(--f-mono); font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); }
.rec-badge.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.rec-badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.rec-badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.rec-summary { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 0.9rem; color: var(--ink-2); min-height: 1.6em; }
.rec-summary b { font-family: var(--f-mono); color: var(--ink); }

/* stepper (document capture case) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.steps button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px 10px; cursor: pointer;
  text-align: left; font-size: 0.85rem; color: var(--ink-2); transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: grid; gap: 4px;
}
.steps button span { font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-3); }
.steps button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.steps button.is-blocked span { color: var(--warn); }
.step-body { min-height: 120px; }
.step-body h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; font-family: var(--f-body); }
.step-body p { color: var(--ink-2); }
@media (max-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- timeline / CV ---------- */

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 34px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-3);
}
.timeline li.is-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .mono { color: var(--ink-3); display: block; }
.timeline h3 { margin: 4px 0 2px; }
.timeline .org { color: var(--ink-2); display: block; margin-bottom: 8px; }
.timeline p { color: var(--ink-2); font-size: 0.97rem; max-width: 62ch; }

.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }
.mini { padding: 22px; }
.mini .mono { color: var(--ink-3); }
.mini h3 { margin: 6px 0 6px; }
.mini p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

.case { padding: clamp(22px, 4vw, 40px); margin-bottom: 22px; }
.case__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 22px 0 26px; }
.case__grid h4 { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.case__grid p { color: var(--ink-2); font-size: 0.96rem; }
.case h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 360; margin-top: 10px; }
@media (max-width: 800px) { .case__grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */

.places { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.places li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.places .mono { color: var(--ink-3); padding-top: 2px; }
.places b { display: block; font-weight: 600; }
.places span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- notes ---------- */

.note-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.note-list li { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.note-list h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 4px; }
.note-list p { color: var(--ink-2); margin: 0; font-size: 0.96rem; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 0; background: var(--bg); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer__name { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 4px; }
.footer__links { display: grid; gap: 6px; align-content: start; }
.footer__links a { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.footer__links a:hover { color: var(--accent); }
.footer__links .icon { width: 0.8em; height: 0.8em; }
.footer__small { margin-top: 36px; font-size: 0.85rem; }
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__cols > :first-child { grid-column: 1 / -1; } }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.9rem;
  pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); z-index: 80;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */

.lost { min-height: 62vh; display: grid; align-content: center; justify-items: start; padding-top: 80px; padding-bottom: 80px; }
.lost h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 300; letter-spacing: -0.04em; margin: 16px 0 18px; }
.lost code { font-family: var(--f-mono); background: var(--bg-2); padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.split h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 340; margin-top: 14px; letter-spacing: -0.025em; }

/* ---------- flow diagram (one request travelling through a system) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; position: relative; }
.flow li { position: relative; padding: 0 10px; text-align: center; }
.flow li::after {
  content: ""; position: absolute; top: 21px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--line-2); border-radius: 2px;
}
.flow li:last-child::after { display: none; }
.flow__node {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.flow li b { display: block; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.flow li span { display: block; font-size: 0.8rem; color: var(--ink-3); line-height: 1.35; margin-top: 3px; }
.flow li.is-on .flow__node { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: var(--bg); transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
.flow li.is-on::after { background: linear-gradient(90deg, var(--c, var(--accent)), var(--line-2)); }
.flow-out { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); font-size: 0.9rem; color: var(--ink-2); min-height: 3.2em; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .flow li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left; padding: 0; align-items: center; }
  .flow__node { margin: 0; }
  .flow li::after { display: none; }
}

/* screenshot slot: hidden until a real image is added */
.shot { margin: 2em 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.stack i { flex: 0 0 auto; min-width: 0; text-overflow: ellipsis; }
.legend .s-legend-prompt { background: var(--indigo); }
.legend .s-legend-decode { background: color-mix(in srgb, var(--indigo) 55%, var(--surface)); }
.legend .s-legend-other { background: var(--line-2); }
.flow--4 { --n: 4; }
.flow--6 { --n: 6; }

.prose .places { padding-left: 0; }
.prose .btn-row { margin-top: 2em; }
.notes-foot { margin-top: 28px; }

/* reconcile table becomes stacked records on phones */
@media (max-width: 640px) {
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; }
  .rec-table thead { display: none; }
  .rec-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rec-table td { padding: 0; border: 0; white-space: normal; }
  .rec-table td:nth-child(1) { grid-column: 1; font-weight: 500; }
  .rec-table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .rec-table td:nth-child(2), .rec-table td:nth-child(3), .rec-table td:nth-child(5) { grid-column: 1 / -1; font-size: 0.86rem; }
  .rec-table td:nth-child(2)::before { content: "Workbook: "; color: var(--ink-3); }
  .rec-table td:nth-child(3)::before { content: "Estate: "; color: var(--ink-3); }
  .rec-table td:nth-child(3).diff, .rec-table tr td.diff { padding: 2px 6px; border-radius: 5px; justify-self: start; }
  .rec-table td:nth-child(5).muted { display: none; }
  .rec-table td:nth-child(5)::before { content: "→ "; color: var(--accent); }
  .case { padding: 20px 16px; }
  .case .demo { padding: 16px; margin-left: -4px; margin-right: -4px; }
}

/* ---------- page transitions (cross-document view transitions) ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.46s var(--ease) 0.06s both; }
::view-transition-group(site-nav) { animation-duration: 0.3s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
/* project titles glide from their tile into the page heading */
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }
.vt-whot { view-transition-name: t-whot; }
.vt-pab { view-transition-name: t-pab; }
.vt-ai { view-transition-name: t-ai; }
.vt-res { view-transition-name: t-res; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
