/* ==========================================================================
   MD Nahiduzzaman Dipu — design system
   --------------------------------------------------------------------------
   Idea: an engineer's notebook. Dark-first, near-black ink-blue surfaces,
   warm off-white type and ONE signal colour — the orange of a detection box
   from my thesis. Serif display for voice, grotesque body for reading, mono
   for data and labels. Hairline borders instead of shadows; corners kept
   small (8–14px). No gradients on content, no glass on cards.

   Colour    --bg / --bg-2 (page, tinted band) · --surface / --surface-2 (cards)
             --ink / --ink-2 / --ink-3 (text: primary, secondary, labels)
             --line / --line-2 (hairlines) · --accent (one signal colour)
             --live (status green) · --cool (secondary, used sparingly)
   Type      --serif  Instrument Serif — headings, numbers
             --sans   Geist — body, UI          --mono  Geist Mono — labels, data
             Scale    display clamp(42–84px) · h2 clamp(34–62px) · h3 22–36px
                      body 16–17px · small 14px · label 11–12px mono caps
   Space     --s-1 4 · --s-2 8 · --s-3 12 · --s-4 16 · --s-5 24 · --s-6 32
             --s-7 48 · --s-8 72 · sections clamp(80–136px)
   Radius    --radius-sm 8 · --radius 14 · pills 999
   Motion    --ease (expo-out) · 0.25s hovers · 0.7s reveals · all of it
             switched off under prefers-reduced-motion
   Breakpoints  1100 (nav collapses) · 900 (single column) · 600 (phone)
   ========================================================================== */

:root {
  /* colour — dark (default) */
  --bg: #0b0c0f;
  --bg-2: #0f1115;
  --surface: #14161b;
  --surface-2: #1a1d24;
  --ink: #edebe5;
  --ink-2: #a8a9ae;
  --ink-3: #8b8d95;
  --line: #20232b;
  --line-2: #30343f;
  --accent: #ff6a33;
  --accent-ink: #ff8c61;
  --accent-wash: rgba(255, 106, 51, 0.1);
  --accent-glow: rgba(255, 106, 51, 0.22);
  --cool: #6f9dff;
  --live: #4cc477;
  --on-accent: #140a05;
  --glass: rgba(15, 17, 21, 0.72);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);

  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* layout & motion */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ece9e0;
  --surface: #fbfaf6;
  --surface-2: #f1eee6;
  --ink: #15161a;
  --ink-2: #4a4b52;
  --ink-3: #66686f;
  --line: #dedad0;
  --line-2: #c6c1b3;
  --accent: #d9461a;
  --accent-ink: #b0370f;
  --accent-wash: rgba(217, 70, 26, 0.09);
  --accent-glow: rgba(217, 70, 26, 0.16);
  --cool: #3565d8;
  --live: #2c8a4b;
  --on-accent: #fff;
  --glass: rgba(244, 242, 236, 0.78);
  --shadow: 0 30px 60px -40px rgba(40, 30, 15, 0.35);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
code { font: 400 0.9em var(--mono); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* Cross-page transition: a soft cross-fade where the browser supports it. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* (No whole-page fade: it would delay the first paint of the headline, the page's LCP element.) */

.eyebrow {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.eyebrow__num { color: var(--accent-ink); }

/* the assistant's mark: a four-point spark */
.spark {
  width: 12px; height: 12px; flex-shrink: 0; background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ------------------------------------------------------------------ buttons, chips, pills */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; text-decoration: none;
  font: 500 14.5px/1 var(--sans); white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .icon { flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover .icon[width="16"]:last-child, .btn:hover .icon[width="15"]:last-child { transform: translateX(3px); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn--ghost { border-color: transparent; padding: 0 10px; color: var(--ink-2); }
.btn--ghost:hover { border-color: transparent; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 13.5px; gap: 8px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn__meta { font: 500 10.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 4px; }

.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; line-height: 1; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 5px 8px; border-radius: 999px; color: var(--ink-2);
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 20%, transparent); }
.pill--live { color: var(--ink); }
.pill--kind { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-wash); }

kbd {
  font: 500 10.5px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 4px; color: var(--ink-2); background: var(--surface);
}

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 400 11.5px var(--mono); padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }

/* ------------------------------------------------------------------ masthead */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead__row { display: flex; align-items: center; gap: 20px; height: 68px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.mark__box {
  width: 36px; height: 36px; display: grid; place-items: center;
  font: italic 400 19px/1 var(--serif); position: relative;
}
/* detection-box corners around the monogram */
.mark__box::before {
  content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent);
  clip-path: polygon(0 0, 30% 0, 30% 1.5px, 70% 1.5px, 70% 0, 100% 0, 100% 30%, calc(100% - 1.5px) 30%, calc(100% - 1.5px) 70%, 100% 70%, 100% 100%, 70% 100%, 70% calc(100% - 1.5px), 30% calc(100% - 1.5px), 30% 100%, 0 100%, 0 70%, 1.5px 70%, 1.5px 30%, 0 30%);
  transition: transform .4s var(--ease);
}
.mark:hover .mark__box::before { transform: scale(1.12); }
.mark__text { display: flex; flex-direction: column; line-height: 1.2; }
.mark__text strong { font-weight: 600; font-size: 14px; }
.mark__text span { font: 400 11px var(--mono); color: var(--ink-3); }

.nav { display: flex; gap: 2px; margin-left: auto; position: relative; }
.nav a {
  position: relative; z-index: 1; text-decoration: none;
  font-size: 13.5px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
/* one pill that slides to whichever link is hovered or current */
.nav__ind {
  position: absolute; top: 50%; left: 0; height: 32px; width: 0; margin-top: -16px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s;
}
.nav__ind.is-on { opacity: 1; }

.masthead__tools { display: flex; gap: 8px; align-items: center; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font-size: 13px; transition: border-color .2s, background-color .2s;
}
.tool:hover { border-color: var(--ink-3); }
.tool--icon { width: 36px; justify-content: center; padding: 0; }
.tool--ask { font-weight: 500; padding: 0 12px; }
.tool--text { font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); height: 32px; }
.tool kbd { border: 0; background: transparent; padding: 0 1px; }
.nav-toggle { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.drawer { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 68px; z-index: 39; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.drawer nav { display: grid; padding-top: 8px; padding-bottom: 16px; }
.drawer a { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.drawer a span { font: 400 12px var(--mono); color: var(--accent-ink); padding-top: 5px; width: 22px; }

@media (max-width: 1100px) {
  .nav, .tool--kbd { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead__tools { margin-left: auto; }
}

/* ------------------------------------------------------------------ flash */
.flash-stack { padding-top: 16px; }
.flash { padding: 12px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); font-size: 14px; margin-top: 16px; border-radius: var(--radius-sm); }
.flash--success { border-left-color: var(--live); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 7vw, 92px) 0 0; position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
/* faint measurement grid + two slow drifting lights */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000, transparent);
}

.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono);
  padding: 7px 13px 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); position: relative; }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero__title {
  font: 400 clamp(42px, 6.2vw, 84px)/1 var(--serif);
  letter-spacing: -0.02em; margin: 28px 0 26px;
}
.hero__title em { color: var(--accent); }
/* his name is part of the page's h1, set small above the headline */
.hero__name { display: block; font: 500 13px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.hero__lede { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__roles { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 36px; font: 400 12px var(--mono); color: var(--ink-3); }
.hero__roles span::before { content: "/ "; color: var(--accent); }

/* staggered entrance for the hero only */
/* (the hidden state lives in the keyframes, so content is never invisible if animation doesn't run) */
.js [data-in] { animation: rise-in .9s var(--ease) both; }
/* the headline moves but is never transparent, so it paints immediately */
.js .hero__title[data-in] { animation-name: rise-in-solid; }
@keyframes rise-in-solid { from { transform: translateY(16px); } }
.js [data-in]:nth-child(1) { animation-delay: .05s; }
.js [data-in]:nth-child(2) { animation-delay: .14s; }
.js [data-in]:nth-child(3) { animation-delay: .23s; }
.js [data-in]:nth-child(4) { animation-delay: .32s; }
.js [data-in]:nth-child(5) { animation-delay: .41s; }
.js .viewfinder[data-in] { animation-delay: .3s; }
.js .ledger[data-in] { animation-delay: .5s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* viewfinder */
.viewfinder {
  margin: 0; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 12px; position: relative; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.viewfinder__bar { display: flex; justify-content: space-between; gap: 12px; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--ink-3); padding: 2px 4px 10px; }
.viewfinder__bar span { display: flex; align-items: center; gap: 6px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.viewfinder__stage { position: relative; background: var(--bg); border-radius: 8px; overflow: hidden; aspect-ratio: 520 / 380; border: 1px solid var(--line); }
.viewfinder__stage::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(to bottom, transparent, var(--accent-wash));
  animation: scan 4.5s linear infinite; pointer-events: none;
}
@keyframes scan { to { top: 100%; } }
.scene { position: relative; width: 100%; height: 100%; display: block; }
.scene__lines { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; opacity: .78; }
.scene__lines .faint { opacity: .32; }
.zones path { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 7; opacity: .45; fill: none; }
.zones text { font: 500 9px var(--mono); letter-spacing: .12em; fill: var(--ink-3); text-anchor: middle; opacity: .8; }
.det { opacity: 0; transition: opacity .5s var(--ease); }
.det > rect { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.6; }
.det .tag rect { fill: var(--accent); stroke: none; }
.det text { font: 500 10px var(--mono); fill: var(--on-accent); }
.det.is-seen { opacity: .32; }
.det.is-on { opacity: 1; }
.det.is-on > rect { stroke-width: 2.2; animation: lock .5s var(--ease); }
@keyframes lock { from { stroke-dasharray: 4 6; opacity: .3; } }
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink); opacity: .6; }
.corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.viewfinder__caption { display: flex; gap: 12px; align-items: flex-start; padding: 14px 6px 4px; min-height: 80px; }
.speaker { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.say { display: block; transition: opacity .3s; }
.say--bn { font: 400 19px/1.35 var(--sans); }
.say--en { font: italic 400 16px/1.4 var(--serif); color: var(--ink-3); margin-top: 3px; }
.say.is-fading { opacity: 0; }
.viewfinder__note { font: 400 10.5px/1.6 var(--mono); color: var(--ink-3); padding: 9px 6px 0; border-top: 1px dashed var(--line-2); margin-top: 10px; }
.viewfinder__note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.viewfinder__note a:hover { text-decoration: underline; }

.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.ledger > div { padding: 16px 16px 18px 0; border-right: 1px solid var(--line); }
.ledger > div + div { padding-left: 16px; }
.ledger > div:last-child { border-right: 0; }
.ledger dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ledger dd { margin: 6px 0 0; font-size: 15px; }
.ledger dd a { color: var(--accent-ink); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ proof strip */
.pillars { padding: clamp(40px, 6vw, 72px) 0 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillar {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.pillar__num { font: 500 12px var(--mono); color: var(--accent-ink); }
.pillar__title { font: 400 30px/1.1 var(--serif); }
.pillar p { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.pillar__more { font: 500 12px var(--mono); color: var(--ink-3); margin-top: 8px; transition: color .2s; }
.pillar:hover .pillar__more { color: var(--accent-ink); }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 900px; }
.section-head__title { font: 400 clamp(34px, 4.8vw, 62px)/1.04 var(--serif); letter-spacing: -0.015em; margin-top: 18px; }
.section-head__title em { color: var(--accent); }
.section-head__lede { color: var(--ink-2); font-size: 17px; max-width: 640px; margin-top: 18px; }
.more-head { margin: clamp(48px, 6vw, 72px) 0 20px; }

/* about */
.about { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img, .portrait__mono { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); }
.portrait__mono { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.portrait__mono::before { content: ""; position: absolute; inset: 18%; border: 2px solid var(--accent); }
.portrait__mono::after {
  content: "person"; position: absolute; top: calc(18% - 20px); left: 18%;
  background: var(--accent); color: var(--on-accent); font: 500 10.5px/20px var(--mono); padding: 0 6px;
}
.portrait__mono span { font: italic 400 110px/1 var(--serif); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 10px; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 12px; }
.about__body > p { color: var(--ink-2); font-size: 17px; max-width: 660px; }
.about__body > p + p { margin-top: 18px; }
.about__body > .about__lead { font: 400 clamp(24px, 2.4vw, 30px)/1.3 var(--serif); color: var(--ink); }
.about__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.plain-list, .lang-list { list-style: none; padding: 0; margin: 16px 0 0; }
.plain-list li { font-size: 14.5px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.plain-list strong { color: var(--ink); font-weight: 500; }
.lang-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.lang-list .muted { font-size: 13px; text-align: right; }

/* ------------------------------------------------------------------ expertise */
.lens { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.lens__label { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .3s; }
.cap:hover { border-color: var(--line-2); }
.cap__num { font: 500 11.5px var(--mono); color: var(--accent-ink); }
.cap h3 { font: 400 25px/1.1 var(--serif); margin: 8px 0 8px; }
.cap header p { font-size: 13.5px; color: var(--ink-2); }
.skills { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.skills li { display: contents; }
.skill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; font-size: 13.5px; line-height: 1.1;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; text-align: left;
  transition: border-color .25s, background-color .25s, opacity .35s, color .25s, transform .3s var(--ease);
}
.skill:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.skill[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-wash); }
.skill--study { border-style: dashed; color: var(--ink-2); }
.skill__n { font: 500 10px/16px var(--mono); font-style: normal; min-width: 16px; height: 16px; text-align: center; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); padding: 0 4px; }
.skill__why { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); padding: 2px 2px 6px; animation: rise .3s var(--ease); }
.skill__why[hidden] { display: none; }
.skill__why a { color: var(--accent-ink); text-underline-offset: 3px; }
/* lens on: skills the chosen project uses light up, the rest step back */
.caps.is-lensed .skill { opacity: .28; }
.caps.is-lensed .skill.is-lit { opacity: 1; border-color: var(--accent); background: var(--accent-wash); }
.legend { display: flex; gap: 10px 26px; flex-wrap: wrap; font: 400 12px var(--mono); color: var(--ink-3); margin-top: 26px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend__study { width: 22px; height: 14px; border: 1px dashed var(--line-2); border-radius: 4px; }

/* ------------------------------------------------------------------ project cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.card > * { position: relative; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__year { font: 400 11.5px var(--mono); color: var(--ink-3); text-align: right; }
.card__title { font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link … */
.card__foot, .card__links { position: relative; z-index: 1; }            /* … except its own footer links */
.card:hover .card__title { color: var(--accent); }
.card__tag { color: var(--ink-2); font-size: 15px; }
.card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card__metrics > div { padding: 14px 10px 14px 0; }
.card__metrics > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.card__metrics dt { font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); min-height: 2.6em; }
.card__metrics dd { margin: 4px 0 2px; font: 400 27px/1 var(--serif); font-variant-numeric: tabular-nums; }
.card__metrics span { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; display: block; }
.card__nometric { font-size: 13px; color: var(--ink-3); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 11.5px var(--mono); color: var(--ink-2); }
.flow li:not(:last-child)::after { content: "→"; color: var(--accent); margin: 0 7px; }
.card .tags { margin-top: auto; padding-top: 4px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.card__cta { font-weight: 500; font-size: 14px; text-decoration: none; }
.card__cta span { display: inline-block; transition: transform .3s var(--ease); }
.card:hover .card__cta span { transform: translateX(4px); }
.card__links { display: flex; gap: 14px; font: 400 12px var(--mono); }
.card__links a { color: var(--ink-2); text-decoration: none; }
.card__links a:hover { color: var(--accent-ink); }

/* compact index for the rest */
.index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.index__row { border-bottom: 1px solid var(--line); }
.index__link { display: grid; grid-template-columns: 44px 1fr auto 32px; gap: 20px; align-items: center; padding: 22px 0; text-decoration: none; position: relative; }
.index__link::before { content: ""; position: absolute; inset: 0 -14px; background: var(--surface); border-radius: var(--radius-sm); opacity: 0; transition: opacity .3s; z-index: -1; }
.index__link:hover::before { opacity: 1; }
.index__num { font: 500 12px var(--mono); color: var(--ink-3); align-self: start; padding-top: 8px; }
.index__main { display: grid; gap: 5px; }
.index__title { font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); transition: color .2s; }
.index__link:hover .index__title { color: var(--accent); }
.index__tag { color: var(--ink-2); font-size: 14.5px; }
.index__stack { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 2px; }
.index__stack i { font-style: normal; }
.index__meta { display: grid; justify-items: end; gap: 6px; font: 400 12px var(--mono); color: var(--ink-3); text-align: right; }
.index__arrow { font-size: 20px; transition: transform .3s var(--ease); justify-self: end; }
.index__link:hover .index__arrow { transform: translateX(6px); color: var(--accent); }
.is-placeholder .index__link { opacity: .6; }
.is-placeholder .index__title::after { content: " — replace me"; font: 400 12px var(--mono); color: var(--accent-ink); }

/* ------------------------------------------------------------------ research: the "paper" */
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); }
.paper__head { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font: 500 11.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.paper__title { font: 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); margin-top: 28px; max-width: 900px; }
.paper__cite { font: 400 12.5px/1.6 var(--mono); color: var(--ink-3); margin-top: 14px; max-width: 820px; }
.paper__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 40px; align-items: start; }
.paper__abstract { font: 400 clamp(19px, 1.7vw, 22px)/1.45 var(--serif); margin-top: 14px; }
.paper__dl { margin: 28px 0 0; display: grid; gap: 22px; }
.paper__dl div { border-left: 2px solid var(--accent); padding-left: 16px; }
.paper__dl dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.paper__dl dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.pipeline { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pipeline li { position: relative; padding: 18px 26px 18px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; align-content: start; }
.pipeline li::after { content: "→"; position: absolute; right: 10px; top: 16px; color: var(--accent); }
.pipeline li:last-child::after { content: ""; }
.pipeline span { font: 500 11px var(--mono); color: var(--accent-ink); }
.pipeline strong { font-weight: 500; font-size: 15.5px; }
.pipeline em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.paper__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.paper__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* results chart — bars grow in when scrolled into view; values are always printed */
.chart { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.chart__cap { display: grid; gap: 4px; margin-bottom: 16px; }
.chart__cap strong { font: 500 13px var(--mono); letter-spacing: .04em; }
.chart__cap span { font-size: 12.5px; color: var(--ink-3); }
.chart__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.chart__row { display: grid; grid-template-columns: 118px 1fr 46px 62px; gap: 10px; align-items: center; font: 400 12px var(--mono); }
.chart__label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart__track { height: 10px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.chart__bar { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.chart.is-in .chart__bar, .no-js .chart__bar { transform: none; }
.chart__row:nth-child(2) .chart__bar { transition-delay: .06s; } .chart__row:nth-child(3) .chart__bar { transition-delay: .12s; }
.chart__row:nth-child(4) .chart__bar { transition-delay: .18s; } .chart__row:nth-child(5) .chart__bar { transition-delay: .24s; }
.chart__row:nth-child(6) .chart__bar { transition-delay: .3s; } .chart__row:nth-child(7) .chart__bar { transition-delay: .36s; }
.chart__row:nth-child(8) .chart__bar { transition-delay: .42s; } .chart__row:nth-child(9) .chart__bar { transition-delay: .48s; }
.chart__val { text-align: right; font-variant-numeric: tabular-nums; }
.chart__n { color: var(--ink-3); font-size: 11px; text-align: right; white-space: nowrap; }
/* too few samples to trust: hatched, never solid */
.chart__row.is-thin .chart__bar, .chart__key { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, transparent 3px 6px); }
.chart__row.is-thin .chart__val { color: var(--ink-3); }
.chart__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.chart__key { display: inline-block; width: 22px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: baseline; }

.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.learn__item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.learn__tag { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.learn__item h4 { font: 400 23px/1.15 var(--serif); margin: 8px 0 8px; }
.learn__item p { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 155px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline__item { display: grid; grid-template-columns: 130px 11px 1fr; column-gap: 20px; padding: 0 0 38px; align-items: start; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__period { font: 500 12px var(--mono); color: var(--ink-3); text-align: right; padding-top: 2px; }
.timeline__node { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-3); margin-top: 5px; position: relative; z-index: 1; }
.is-now .timeline__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.timeline__tag { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.timeline h3, .timeline h4 { font: 400 25px/1.15 var(--serif); margin: 6px 0 8px; }
.timeline p { font-size: 15px; color: var(--ink-2); max-width: 600px; }

/* ------------------------------------------------------------------ credentials & profiles */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.cred-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line-2); }
.cred-list li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cred-list__when { font: 400 12px var(--mono); color: var(--ink-3); padding-top: 6px; }
.cred-list h4 { font: 400 22px/1.2 var(--serif); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cred-list__where { font-size: 14px; color: var(--ink); margin: 4px 0 8px !important; font-weight: 500; }
.cred-list p { font-size: 14px; color: var(--ink-2); }
.cred-list__links { display: flex; gap: 16px; margin-top: 10px !important; font: 400 12.5px var(--mono); }
.cred-list__links a { color: var(--accent-ink); }
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.profile { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .4s var(--ease); }
.profile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.profile > * { position: relative; }
.profile__name { font: 400 26px/1.1 var(--serif); }
.profile:hover .profile__name { color: var(--accent); }
.profile__handle { font: 400 12px var(--mono); color: var(--accent-ink); }
.profile__desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ------------------------------------------------------------------ assistant band */
.askband { padding-bottom: 0; }
.askband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); max-width: calc(var(--shell) - 2 * var(--gutter)); position: relative; overflow: hidden; }
.askband__grid > * { position: relative; }
.askband__title { font: 400 clamp(32px, 4vw, 52px)/1.05 var(--serif); margin: 16px 0 16px; }
.askband__title em { color: var(--accent); }
.askband__lede { color: var(--ink-2); max-width: 520px; }
.askband__mode, .ask__mode { display: inline-flex; align-items: center; gap: 8px; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 20px; }
.askband__mode i, .ask__mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.askband__mode.is-live i, .ask__mode.is-live i { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.askband__qs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.askq { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; font-size: 14.5px; transition: border-color .25s, transform .3s var(--ease), background-color .25s; }
.askq span:last-child { color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
.askq:hover { border-color: var(--accent); transform: translateX(4px); }
.askq:hover span:last-child { color: var(--accent); transform: translateX(3px); }

/* ------------------------------------------------------------------ contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact__title { font: 400 clamp(44px, 6.2vw, 86px)/1 var(--serif); letter-spacing: -0.02em; margin: 20px 0 22px; }
.contact__title em { color: var(--accent); }
.contact__lede { color: var(--ink-2); max-width: 460px; }
.channels { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line-2); }
.channels li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.channels li > span:first-child { font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.channel { background: none; border: 0; padding: 0; text-align: left; font-size: 15px; text-decoration: none; display: flex; gap: 10px; align-items: center; word-break: break-all; }
a.channel:hover, button.channel:hover { color: var(--accent); }
.channel i { font: normal 400 10.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 4px; word-break: normal; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); padding: 11px 13px; border-radius: 10px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--accent); }
.field__err { font-size: 12.5px; color: var(--accent-ink); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--ink-2); }
.form__status.is-ok { color: var(--live); }
.form__status.is-err { color: var(--accent-ink); }

/* ------------------------------------------------------------------ case study */
.case { padding: clamp(28px, 4vw, 48px) 0 clamp(80px, 10vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 12.5px var(--mono); color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.case__head { margin: 40px 0 0; max-width: 980px; }
.case__title { font: 400 clamp(44px, 7vw, 96px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 18px 0 14px; }
.case__full { font: 400 clamp(17px, 1.6vw, 20px)/1.4 var(--serif); font-style: italic; color: var(--ink-2); max-width: 760px; margin-bottom: 12px; }
.case__tagline { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 760px; }
.ledger--case { margin-top: 44px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 28px 0 0; }
.stat { padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat dt { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.stat dd { margin: 8px 0 4px; font: 400 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-3); }

.case__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); margin-top: 64px; }
.case__aside { position: sticky; top: 100px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: 14px 0 0; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.case__story { counter-reset: sec; max-width: 800px; min-width: 0; }
.case__story > section { counter-increment: sec; padding-top: 28px; margin-top: 44px; border-top: 1px solid var(--line); }
.case__story > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.case__story h2 { font: 400 30px/1.1 var(--serif); display: flex; gap: 14px; align-items: baseline; margin-bottom: 16px; }
.case__story h2 span { font-size: 0; }
.case__story h2 span::before { content: counter(sec, decimal-leading-zero); font: 500 12px var(--mono); color: var(--accent-ink); }
.case__story section > p { color: var(--ink-2); font-size: 17px; }
.case__story section > p + p { margin-top: 14px; }
.case__story .case__lead { font: 400 clamp(21px, 2.1vw, 27px)/1.38 var(--serif); color: var(--ink); }
.arch { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.arch li { display: grid; grid-template-columns: 34px minmax(120px, 190px) 1fr; gap: 14px; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.arch li:last-child { border-bottom: 0; }
.arch li:not(:last-child)::after { content: "↓"; position: absolute; left: 22px; bottom: -11px; font-size: 12px; color: var(--accent); background: var(--surface); padding: 0 2px; z-index: 1; line-height: 20px; }
.arch__n { font: 500 11px var(--mono); color: var(--accent-ink); }
.arch strong { font-weight: 500; font-size: 15.5px; }
.arch em { font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.tags--stack li { font-size: 13px; padding: 7px 11px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1.5px solid var(--accent); }
.points--limits li::before { border-radius: 50%; border-color: var(--ink-3); }
.case__story .chart { margin-top: 24px; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font: 400 13px var(--mono); font-variant-numeric: tabular-nums; min-width: 560px; }
.table caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.table th, .table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.table th:first-child { text-align: left; }
.table thead th { font-weight: 500; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); }
.table tbody th { font-weight: 400; color: var(--ink); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tr.is-thin > * { color: var(--ink-3); }
.empty { padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 8px; }
.empty p { font-size: 15px; color: var(--ink-2); }
.empty strong { color: var(--ink); font-weight: 500; }
.empty a { color: var(--accent-ink); }
.case__cover { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px !important; }
.case__ask { margin-top: 56px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.case__ask p { color: var(--ink-2); font-size: 15px; }
.next { display: grid; gap: 10px; margin-top: 96px; padding: 36px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); text-decoration: none; }
.next__title { font: 400 clamp(30px, 4.4vw, 56px)/1.05 var(--serif); transition: color .2s; }
.next__title span { display: inline-block; transition: transform .4s var(--ease); }
.next:hover .next__title { color: var(--accent); }
.next:hover .next__title span { transform: translateX(10px); }

/* photo gallery */
.case__tagline a { color: var(--accent-ink); text-underline-offset: 3px; }
.gallery { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.portrait figcaption a { color: var(--accent-ink); text-decoration: none; }

/* 404 */
.lost { padding: clamp(80px, 14vw, 180px) 0; }
.lost__title { font: 400 clamp(56px, 10vw, 140px)/0.95 var(--serif); margin: 22px 0; }
.lost__title em { color: var(--accent); }
.lost__lede { color: var(--ink-2); max-width: 480px; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(64px, 9vw, 110px) 0 28px; }
.footer__line { font: 400 clamp(28px, 4vw, 52px)/1.1 var(--serif); margin-top: 14px; max-width: 980px; }
.footer__line a { display: inline-block; max-width: 100%; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.footer__links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent); }
.footer__note { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 340px; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; font: 400 11.5px var(--mono); color: var(--ink-3); }

/* ------------------------------------------------------------------ assistant panel */
.ask-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), border-color .2s, opacity .25s;
}
.ask-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.ask-fab .spark { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.72) rotate(45deg); opacity: .6; } }
body.ask-open .ask-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }

.ask {
  position: fixed; right: 20px; bottom: 20px; z-index: 46;
  width: min(430px, calc(100vw - 32px)); height: min(660px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); overflow: hidden;
  animation: panel-in .4s var(--ease);
  transform-origin: 100% 100%;
}
.ask[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ask__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.ask__head h2 { font: 400 24px/1.1 var(--serif); }
.ask__mode { margin-top: 6px; font-size: 10.5px; }
.ask__tools { display: flex; gap: 6px; align-items: center; }
.ask__log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.ask__log:focus-visible { outline-offset: -3px; }
.msg { max-width: 94%; animation: rise .35s var(--ease); }
.msg__body { font-size: 14.5px; line-height: 1.58; padding: 11px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; }
.msg--bot .msg__body { background: var(--bg); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg--me { align-self: flex-end; }
.msg--me .msg__body { background: var(--ink); color: var(--bg); border-top-right-radius: 4px; }
.msg--error .msg__body { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.msg__body p + p, .msg__body p + ul, .msg__body ul + p { margin-top: 9px; }
.msg__body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.msg__body a { color: var(--accent-ink); text-underline-offset: 3px; }
.msg__body strong { font-weight: 600; color: var(--ink); }
.msg__notice { font-size: 12px; color: var(--ink-3); margin-top: 6px; padding-left: 4px; }
.msg__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.msg__meta-label { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.msg__meta a, .msg__meta button { font: 400 11.5px var(--mono); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); padding: 5px 9px; border-radius: 999px; text-decoration: none; transition: border-color .2s, color .2s; }
.msg__meta a:hover, .msg__meta button:hover { border-color: var(--accent); color: var(--accent-ink); }
.msg__badge { font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; padding-left: 4px; display: block; }
/* typing indicator */
.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ask__chips { display: flex; gap: 6px; padding: 6px 16px 12px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.ask__chips::-webkit-scrollbar { display: none; }
.ask__chips:empty { display: none; }
.ask__chips .chip { font-size: 12.5px; padding: 8px 12px; white-space: nowrap; flex-shrink: 0; animation: rise .35s var(--ease); }
.ask__chips .chip:hover { border-color: var(--accent); }
.ask__form { display: flex; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--line); }
.ask__form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; height: 40px; background: var(--bg); color: var(--ink); font: 400 14.5px var(--sans); transition: border-color .2s, box-shadow .2s; }
.ask__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.ask__foot { font-size: 11px; color: var(--ink-3); text-align: center; padding: 0 12px 10px; }

/* ------------------------------------------------------------------ command palette */
.palette { width: min(580px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); margin-top: 14vh; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.palette[open] { animation: panel-in .3s var(--ease); }
.palette::backdrop { background: rgba(5, 6, 8, .55); backdrop-filter: blur(4px); }
.palette__input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 20px; font: 400 16px var(--sans); color: var(--ink); }
.palette__input:focus { outline: none; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow-y: auto; }
.palette__list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.palette__list li span { font: 500 11px var(--mono); color: var(--ink-3); width: 20px; }
.palette__list li.is-active { background: var(--surface-2); }
.palette__list li.is-active span { color: var(--accent-ink); }
.palette__list li[hidden] { display: none; }
.palette__hint { display: flex; gap: 6px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart__bar { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid, .about, .paper__grid, .creds, .contact__grid, .case__body, .askband__grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 300px; }
  .case__aside { display: none; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger > div:nth-child(2) { border-right: 0; }
  .ledger > div:nth-child(3) { padding-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars__grid, .learn, .profiles { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .index__link { grid-template-columns: 32px 1fr 24px; gap: 14px; }
  .index__meta { grid-column: 2; grid-row: 2; justify-items: start; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
  .index__arrow { grid-column: 3; grid-row: 1; }
  .timeline::before { left: 5px; }
  .timeline__item { grid-template-columns: 11px 1fr; column-gap: 18px; }
  .timeline__period { grid-column: 2; text-align: left; padding: 0 0 4px; }
  .timeline__node { grid-column: 1; grid-row: 1 / span 2; }
  .timeline__body { grid-column: 2; }
}
@media (max-width: 600px) {
  .about__cols { grid-template-columns: 1fr; gap: 28px; }
  .cred-list li, .channels li { grid-template-columns: 1fr; gap: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .mark__text span { display: none; }
  .mark__text strong { font-size: 13px; }
  .tool--ask { display: none; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .card { padding: 20px; }
  .card__metrics dd { font-size: 23px; }
  .chart { padding: 14px; }
  .chart__row { grid-template-columns: 96px 1fr 42px; }
  .chart__n { display: none; }
  .arch li { grid-template-columns: 28px 1fr; }
  .arch em { grid-column: 2; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .ask-fab { right: 14px; bottom: 14px; }
  .ask { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .lens__label { flex-basis: 100%; }
}

/* ==========================================================================
   Components added in the November 2026 redesign
   ========================================================================== */

/* icons (inline SVG sprite, templates/partials/icons.html) */
.icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* masthead: a real Contact button next to the nav */
.masthead__cta { height: 36px; padding: 0 16px; font-size: 13.5px; }
.masthead__cta.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* hero: profile links */
.hero__social { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__social a {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 38px; padding: 0 14px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--ink-2);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.hero__social a:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }

/* about: quick facts instead of a photo */
.facts { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts__mono { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.facts__mono::before { content: ""; position: absolute; inset: 22% 32%; border: 1.5px solid var(--accent); }
.facts__mono::after {
  content: "developer · 0.98"; position: absolute; top: calc(22% - 18px); left: 32%;
  background: var(--accent); color: var(--on-accent); font: 500 10px/18px var(--mono); padding: 0 6px;
}
.facts__mono span { font: italic 400 64px/1 var(--serif); }
.facts dl { margin: 0; padding: var(--s-2) var(--s-5) var(--s-4); }
.facts dl > div { padding: var(--s-3) 0; border-bottom: 1px dashed var(--line-2); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: var(--s-2); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.facts dt .icon { color: var(--accent-ink); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; }

/* skills: group icon */
.cap__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--accent-ink); background: var(--bg); }

/* projects: alternating feature rows with a real screenshot */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) .feature__media { order: 2; }
.shot {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface); padding: 26px 0 0;
}
/* a plain window bar: three dots, no fake URL */
.shot::before {
  content: ""; position: absolute; top: 10px; left: 12px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2); box-shadow: 12px 0 0 var(--line-2), 24px 0 0 var(--line-2);
}
.shot img { width: 100%; height: auto; border-top: 1px solid var(--line); transition: transform .8s var(--ease); }
a.shot:hover img { transform: scale(1.015); }
.feature__media .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.shot--empty { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--ink-3); font: 400 12px var(--mono); border-style: dashed; }
.feature__meta { display: flex; align-items: center; gap: var(--s-3); font: 400 12px var(--mono); color: var(--ink-3); }
.feature__title { font: 400 clamp(32px, 3.4vw, 46px)/1.02 var(--serif); margin: var(--s-3) 0 var(--s-2); letter-spacing: -0.01em; }
.feature__title a { text-decoration: none; transition: color .2s; }
.feature__title a:hover { color: var(--accent); }
.feature__tag { font-size: 16.5px; color: var(--ink); }
.feature__problem { font-size: 14.5px; color: var(--ink-2); margin-top: var(--s-3); }
.feature__problem strong { color: var(--ink); font-weight: 500; }
.feature__role { display: grid; gap: 2px; margin: var(--s-4) 0; padding-left: var(--s-3); border-left: 2px solid var(--accent); font-size: 14px; color: var(--ink-2); }
.feature__role span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.feature__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.feature__status { font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: var(--s-3); }
.feature .tags { margin-top: var(--s-2); }

/* check-mark lists */
.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-2); font-size: 14.5px; color: var(--ink-2); }
.ticks .icon { color: var(--accent); margin-top: 3px; }
.ticks--lg li { font-size: 16px; }
.case__story .ticks { margin-top: var(--s-5); }

/* experience: the internship */
.job {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.job__when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font: 400 13px var(--mono); color: var(--ink-2); }
.job__when .pill { margin-top: var(--s-3); }
.job__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-ink); margin-bottom: var(--s-3); }
.job__title { font: 400 clamp(28px, 3vw, 38px)/1.08 var(--serif); }
.job__company { font-weight: 500; margin-top: 4px; }
.job__summary { color: var(--ink-2); margin-top: var(--s-3); max-width: 680px; }
.job .tags { margin-top: var(--s-5); }

/* opportunities */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role { display: flex; flex-direction: column; gap: var(--s-2); padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .4s var(--ease); }
.role:hover { border-color: var(--line-2); transform: translateY(-3px); }
.role__icon { color: var(--accent-ink); }
.role h3 { font: 400 24px/1.12 var(--serif); margin-top: var(--s-2); }
.role p { font-size: 14px; color: var(--ink-2); flex: 1; }
.role__proof { display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px var(--mono); color: var(--ink-3); text-decoration: none; margin-top: var(--s-2); }
.role__proof:hover { color: var(--accent-ink); }
.hire { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: center; margin-top: var(--s-5); padding: var(--s-5); border: 1px solid var(--line-2); border-radius: var(--radius); }
.hire__facts { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-5); margin: 0; }
.hire__facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.hire__facts dd { margin: 4px 0 0; font-size: 15px; }
.hire__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* contact: channels with icons, copy button, richer form */
.channels li > span:first-child { display: inline-flex; align-items: center; gap: var(--s-2); }
.channel-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; min-width: 0; }
.channel .icon { color: var(--ink-3); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  font: 400 11px var(--mono); color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.copy:hover { border-color: var(--accent); color: var(--accent-ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--surface); color: var(--ink); }
.req { color: var(--accent-ink); }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.field__hint { font: 400 11.5px var(--mono); color: var(--ink-3); }
.form__note { font-size: 13px; color: var(--ink-3); }
.form__note a { color: var(--ink-2); }
.form[aria-busy="true"] { opacity: .85; }
.cf-turnstile { min-height: 65px; }

/* case study: screenshot gallery */
.gallery-shots { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
.shot-fig { margin: 0; }
.shot-fig figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: var(--s-3); }
.case__story section > p a { color: var(--accent-ink); text-underline-offset: 3px; }
.case__ask + .case__ask { margin-top: var(--s-4); }

/* footer icons */
.footer__links a { display: inline-flex; align-items: center; gap: var(--s-2); }

/* the old /photos/ gallery link in the about figure is gone; keep anchors tidy */
.section-head .eyebrow .icon { color: var(--accent-ink); }
.creds .eyebrow .icon { color: var(--accent-ink); }

@media (max-width: 1100px) {
  .roles { grid-template-columns: 1fr 1fr; }
  .masthead__cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .feature, .job, .hire { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .facts { position: static; }
}
@media (max-width: 600px) {
  .masthead__cta { display: none; }
  .form__row, .roles, .hire__facts { grid-template-columns: 1fr; }
  .hero__social span { display: none; }
  .hero__social a { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .feature__actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts dl { padding: var(--s-2) var(--s-4) var(--s-3); }
  .job { gap: var(--s-4); }
  .hire__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 900px) {
  .job__when { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .job__icon { margin: 0 6px 0 0; width: 40px; height: 40px; }
  .job__when .pill { margin-top: 0; }
}
