/* ==========================================================================
   sezersagir.com — design system
   Newsreader (display) · IBM Plex Sans (text) · IBM Plex Mono (labels, code)
   ========================================================================== */

/* Fonts — latin subset only. To self-host (recommended for GDPR), run
   tools/self-host-fonts.sh: it downloads these files into assets/fonts/
   and rewrites the URLs below. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9qfjOCX1hbuyalUrK49dLac06G1ZGsZBt4ByzBDXXD9JVF438weI_wC-ZF.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/newsreader/v26/cY9kfjOCX1hbuyalUrK439vogqC9yFZCYg7oRYaIP4obnf7fTXglsMwoT9ZHFjQ.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXEKVElMYYaJe8bpLHnCwDKhdTEG46kmUZQCX598fQbM4jw8V78x9OWIhqbQ5g6voI.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/ibmplexmono/v20/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f5f7;
  --paper-2: #e9edf1;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #2f3b4e;
  --muted: #56616f;
  --rule: #d8dee6;
  --rule-2: #c3cbd6;
  --mark: #ffe27a;
  --mark-soft: #fff3c2;
  --night: #0e1a2b;
  --night-2: #1a283c;
  --night-rule: #2c3a4f;
  --night-muted: #a7b1bf;
  --accent: #b42318;
  --accent-soft: #fbece9;
  --accent-rule: #ecc3bd;
  --good: #11643f;
  --good-soft: #e8f2ec;
  --good-rule: #b9d8c6;
  --code-bg: #eef1f5;

  --serif: "Newsreader", "Iowan Old Style", "Charter", "Sitka Text", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 400; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
strong { color: var(--ink); font-weight: 600; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .9em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mark); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: .75rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow .num { color: var(--ink); }
.eyebrow .num::after {
  content: ""; display: inline-block; width: 1.75rem; height: 1px;
  background: var(--rule-2); vertical-align: middle; margin-left: .75rem;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--ink); background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 94%, transparent 94%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* span annotation: highlighter mark, as in an annotation tool */
mark.flag { background: var(--mark); color: inherit; padding: 0 .14em; border-radius: 2px; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
.lede {
  font-size: clamp(1.075rem, 1rem + .35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40rem;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: .9rem; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: #1f3048; --btn-bd: #1f3048; }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-2); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem .95rem; font-size: .925rem; }
.btn .icon { width: 1rem; height: 1rem; flex: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--rule-2); padding-bottom: .1rem;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: .6rem; }
.link-arrow .icon { width: .95rem; height: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 247, .9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .6rem;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
.brand-role { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; font-size: .935rem; color: var(--ink-2);
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav-list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); box-shadow: inset 0 -3px 0 var(--mark); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-resume {
  font-size: .935rem; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-resume span { font-family: var(--mono); font-size: .68rem; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 3px; padding: .05rem .3rem; }
.nav-resume:hover { text-decoration: underline; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -.5rem;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .brand-role { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 18px 30px -24px rgba(14, 26, 43, .35);
  }
  .js .nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav-list a[aria-current="true"] { border-bottom-color: var(--rule); box-shadow: none; font-weight: 600; }
  .nav-actions { padding-top: 1.25rem; justify-content: space-between; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-2); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: end; }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
}

/* reveal */
@keyframes rise { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-entering { animation: rise .7s var(--ease) both; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.75rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
}
.hero-copy { max-width: 46rem; }
.hero-portrait { justify-self: end; width: 100%; }
@media (max-width: 899px) { .hero-portrait { justify-self: start; } }
.hero-id { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.6rem; }
.hero-id .who { font-size: .95rem; color: var(--ink); font-weight: 500; }
.hero-id .who span { color: var(--muted); font-weight: 400; }
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--good);
  background: var(--good-soft); border: 1px solid var(--good-rule);
  border-radius: 999px; padding: .2rem .7rem .2rem .6rem; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(17, 100, 63, .15); }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem); max-width: 15ch; }
.hero .lede { margin-top: 1.5rem; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 2.1rem; }
.hero-cta .resume-link { margin-left: .35rem; font-size: .95rem; color: var(--ink-2); }

.ic { width: .95rem; height: .95rem; flex: none; }
.ic-ok { color: var(--good); }
.ic-no { color: var(--accent); }

/* metrics band */
.metrics {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric { padding: 1.35rem 1.5rem 0 0; }
.metric + .metric { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.metric-value { font-family: var(--serif); font-size: clamp(2.3rem, 1.7rem + 1.8vw, 3.1rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.metric-label { margin-top: .55rem; font-weight: 600; color: var(--ink); font-size: .975rem; line-height: 1.35; }
.metric-context { margin-top: .3rem; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.metrics-note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 899px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric, .metric + .metric { padding: 1.25rem 1rem 1.25rem 0; border-left: 0; }
  .metric:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .metric-context { font-size: .82rem; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .about-aside { padding-top: 4.5rem; }
  .about-aside .facts { grid-template-columns: 1fr; }
}
.portrait { position: relative; max-width: 360px; }
@media (max-width: 899px) { .portrait { max-width: 240px; } }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: #8a8a8a; filter: grayscale(.15) contrast(1.02); }
.portrait figcaption { margin-top: .8rem; font-size: .8rem; color: var(--muted); font-family: var(--mono); letter-spacing: .03em; }
.about-body { display: grid; gap: 1.25rem; }
.about-body .h2 { max-width: 20ch; margin-top: .25rem; }
.about-body p { max-width: 38rem; }
.facts {
  margin-top: .75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.facts div { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); font-size: .975rem; margin-top: .15rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- What I catch ---------- */
.catch-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.catch {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--paper);
  transition: background-color .25s var(--ease);
}
.catch:hover { background: var(--surface); }
.catch-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.catch h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
.catch p { font-size: .96rem; color: var(--ink-2); }
.catch .miss { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--rule-2); font-size: .86rem; color: var(--muted); }
.catch .miss b { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: .15rem; }
@media (max-width: 1023px) { .catch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .catch-grid { grid-template-columns: 1fr; } .catch { padding: 1.35rem 1.15rem; } }

/* ---------- Method ---------- */
.method-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 1024px) {
  .method-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .method-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.method-aside .section-head { margin-bottom: 2rem; }
.principle {
  border-left: 2px solid var(--ink); padding: .25rem 0 .25rem 1.25rem;
  max-width: 30rem;
}
.principle blockquote p { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
.principle figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.principle figcaption a { color: var(--ink-2); }
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.step {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.step-n { font-family: var(--mono); font-size: .8rem; color: var(--ink); padding-top: .3rem; }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.step p { margin-top: .4rem; color: var(--ink-2); font-size: .98rem; max-width: 36rem; }
.step .out { margin-top: .6rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Case studies ---------- */
.nda-note {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .9rem; color: var(--ink-2);
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  padding: .8rem 1rem; background: var(--surface); max-width: 46rem;
}
.nda-note .ic { margin-top: .2rem; color: var(--muted); }
.cases { display: grid; gap: clamp(3rem, 6vw, 5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.case {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-header { padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.15rem, 3vw, 2.25rem) 0; display: grid; gap: .7rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.case-meta .id { color: var(--ink); }
.case-meta .pill { border: 1px solid var(--rule-2); border-radius: 999px; padding: .1rem .55rem; }
.case h3 { font-family: var(--serif); font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.15; letter-spacing: -.015em; max-width: 40ch; text-wrap: balance; }
.case-body { padding: clamp(1rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.prompt {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  padding: .9rem 1.1rem;
}
.prompt-label, .resp-label, .analysis h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.prompt p:not(.prompt-label) { margin-top: .35rem; color: var(--ink); font-size: 1rem; line-height: 1.55; }
.responses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 859px) { .responses { grid-template-columns: 1fr; } }
.resp {
  border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; min-width: 0;
}
.resp-head {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--rule);
}
.verdict-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500; border-radius: 999px; padding: .15rem .6rem .15rem .45rem; white-space: nowrap;
}
.resp--bad { border-color: var(--accent-rule); }
.resp--bad .resp-head { background: var(--accent-soft); border-bottom-color: var(--accent-rule); }
.resp--bad .verdict-badge { color: var(--accent); background: var(--surface); border: 1px solid var(--accent-rule); }
.resp--good { border-color: var(--good-rule); box-shadow: inset 0 3px 0 var(--good); }
.resp--good .resp-head { background: var(--good-soft); border-bottom-color: var(--good-rule); }
.resp--good .verdict-badge { color: var(--good); background: var(--surface); border: 1px solid var(--good-rule); }
.resp-content { padding: clamp(.8rem, 2.5vw, 1rem); display: grid; gap: .9rem; align-content: start; flex: 1; }
.resp-quote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.resp-quote mark:not(.flag) { background: var(--mark); color: inherit; padding: 0 .12em; border-radius: 2px; }
.resp-quote .ok { text-decoration: underline var(--good); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.claim { font-size: .9rem; color: var(--ink-2); }
.claim code { background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; padding: .05rem .35rem; font-size: .85em; }
.checks { display: grid; gap: .45rem; font-size: .92rem; color: var(--ink-2); padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .55rem; align-items: start; line-height: 1.45; }
.checks .ic { margin-top: .22rem; }
.checks code { background: var(--code-bg); border-radius: 3px; padding: 0 .25rem; }

pre.code {
  margin: 0; background: var(--code-bg); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .9rem 1rem; overflow-x: auto; font-size: .86rem; line-height: 1.6; color: var(--ink);
  tab-size: 4;
}
pre.code code { font-size: inherit; }
.tok-k { color: #7a3e9d; }
.tok-f { color: #1f5fa8; }
.tok-s { color: #11643f; }
.tok-n { color: #9a5b00; }
.tok-c { color: #6b7078; }
.tok-flag { background: var(--mark); border-radius: 2px; box-shadow: 0 0 0 2px var(--mark); }

.analysis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); margin-top: .25rem;
}
.analysis > div { padding: 1.25rem 1.25rem 0 0; }
.analysis > div + div { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.analysis h4 { display: flex; align-items: center; gap: .45rem; }
.analysis h4 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-2); }
.analysis > div:nth-child(2) h4 .dot { background: var(--ink); }
.analysis > div:nth-child(3) h4 .dot { background: #d9a800; }
.analysis p { margin-top: .55rem; font-size: .95rem; color: var(--ink-2); }
.analysis p + p { margin-top: .5rem; }
.analysis .pattern { font-size: .9rem; }
@media (max-width: 899px) {
  .analysis { grid-template-columns: 1fr; }
  .analysis > div, .analysis > div + div { padding: 1.1rem 0; border-left: 0; }
  .analysis > div + div { border-top: 1px solid var(--rule); }
}
.more-patterns {
  display: grid; gap: 1rem; align-items: center;
  border: 1px dashed var(--rule-2); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem;
}
@media (min-width: 760px) { .more-patterns { grid-template-columns: minmax(0, 1fr) auto; } }
.more-patterns p { color: var(--ink-2); max-width: 44rem; }

/* ---------- Experience ---------- */
.roles { border-top: 1px solid var(--ink); }
.role {
  display: grid; gap: .75rem 3rem; padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) { .role { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.role-meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); display: grid; gap: .2rem; align-content: start; }
.role-meta .dates { color: var(--ink); }
.role h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.015em; }
.role-org { margin-top: .35rem; color: var(--ink-2); }
.role-summary { margin-top: 1rem; color: var(--ink); max-width: 44rem; }
.scope {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.scope li {
  font-size: .86rem; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .8rem;
}
.scope strong { font-family: var(--mono); font-weight: 400; color: var(--ink); }
.role-points { margin-top: 1.5rem; padding: 0; list-style: none; display: grid; gap: .7rem; max-width: 48rem; }
.role-points li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--rule); }
.role-points li:first-child { border-top: 0; padding-top: 0; }
.role-points .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; line-height: 1.45; }
.role-points .impact { color: var(--ink); font-weight: 600; }
@media (max-width: 599px) {
  .role-points li { grid-template-columns: 1fr; gap: .15rem; }
}
.role-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); max-width: 44rem; }

/* partners & platforms */
.partners {
  display: grid; gap: 1.25rem 3rem; padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) { .partners { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.partners-meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); align-content: start; }
.partners-meta .dates { color: var(--ink); }
.partners-body { display: grid; gap: 1.5rem; align-content: start; }
.partners-body > p { color: var(--ink-2); max-width: 44rem; }
.partners-ticker { display: grid; gap: .5rem; }
.partners-ticker-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.rotator { position: relative; height: 2.9rem; overflow: hidden; }
.rotator span {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.1; letter-spacing: -.015em; color: var(--ink);
  white-space: nowrap; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .rotator span { animation: rotate-in 21s var(--ease) infinite both; }
  .rotator span:nth-child(1) { animation-delay: 0s; }
  .rotator span:nth-child(2) { animation-delay: 3s; }
  .rotator span:nth-child(3) { animation-delay: 6s; }
  .rotator span:nth-child(4) { animation-delay: 9s; }
  .rotator span:nth-child(5) { animation-delay: 12s; }
  .rotator span:nth-child(6) { animation-delay: 15s; }
  .rotator span:nth-child(7) { animation-delay: 18s; }
}
@keyframes rotate-in {
  /* Each name holds one 1/7 slot; the fades overlap so one arrives as the
     previous leaves — no frame with an empty ticker. */
  0%     { opacity: 0; transform: translateY(.35em); }
  2.9%   { opacity: 1; transform: none; }
  14.28% { opacity: 1; transform: none; }
  17.1%  { opacity: 0; transform: translateY(-.35em); }
  100%   { opacity: 0; transform: translateY(-.35em); }
}
/* Reduced motion / print: show the full list as static mono wordmarks. */
@media (prefers-reduced-motion: reduce) {
  .rotator { height: auto; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
  .rotator span {
    position: static; inset: auto; opacity: 1; animation: none;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ink-2);
    border: 1px solid var(--rule); border-radius: 4px;
    padding: .12rem .45rem; background: var(--paper);
  }
}

/* ---------- Projects ---------- */
.feature {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 1024px) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.feature-main { padding: clamp(1.4rem, 3.5vw, 2.75rem); display: grid; gap: 1.1rem; align-content: start; }
.feature-main h3 { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.feature-main > p { max-width: 40rem; }

.feat-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.feat-list li { padding: .75rem 0; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.feat-list li b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: .1rem; }
@media (max-width: 599px) { .feat-list { grid-template-columns: 1fr; } }
.feature-nda { font-size: .85rem; color: var(--muted); max-width: 40rem; }
.feature-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: .12rem .45rem; background: var(--paper); }

.feature-visual {
  background: var(--night); color: #e6eaf0;
  padding: clamp(1.4rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; align-content: center;
}
.kv-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); display: flex; justify-content: space-between; gap: 1rem; }
.cmos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.cmos span {
  display: grid; place-items: center; gap: .1rem; padding: .55rem 0 .45rem;
  border: 1px solid var(--night-rule); border-radius: 5px; font-family: var(--mono); font-size: .95rem; color: #f3f5f7;
}
.cmos span small { font-size: .62rem; color: var(--night-muted); }
.cmos span.sel { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.cmos span.sel small { color: #56616f; }
.cmos-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--night-muted); margin-top: .35rem; }
.keymap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--night-rule); }
.keymap li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--night-rule); font-size: .86rem; color: #d5dbe3; }
.keys { display: inline-flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
kbd {
  font-family: var(--mono); font-size: .72rem; line-height: 1; color: #f3f5f7;
  border: 1px solid #43536a; border-bottom-width: 2px; border-radius: 4px;
  padding: .28rem .42rem; background: var(--night-2); white-space: nowrap;
}
.kv-caption { font-size: .75rem; color: var(--night-muted); }

.projects-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
@media (max-width: 859px) { .projects-secondary { grid-template-columns: 1fr; } }
.project {
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.project:hover { border-color: var(--rule-2); background: var(--surface); }
.project-top { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.project p { font-size: .96rem; }
.project .relevance { font-size: .85rem; color: var(--muted); }
.project .tags { margin-top: auto; padding-top: .4rem; }
.project .link-arrow { align-self: flex-start; margin-top: .3rem; }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cap { padding: 1.5rem 1.5rem 0 0; }
.cap + .cap { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.cap h3 { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cap ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.cap li { color: var(--ink); font-size: .98rem; line-height: 1.4; }
.cap li span { color: var(--muted); }
.cap .sub { margin-top: 1.25rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cap .sub + ul { margin-top: .6rem; }
.cap .sub + ul li { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 1023px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap, .cap + .cap { padding: 1.5rem 1.25rem 1.5rem 0; border-left: 0; }
  .cap:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .cap:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 559px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap + .cap, .cap:nth-child(even) { padding: 1.35rem 0; border-left: 0; }
  .cap + .cap { border-top: 1px solid var(--rule); }
}

/* ---------- Writing ---------- */
.article-card {
  display: grid; gap: 1.5rem; text-decoration: none; color: inherit;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}
@media (min-width: 900px) { .article-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; } }
.article-card h3 { font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; transition: color .2s var(--ease); text-wrap: balance; }
.article-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--mark); text-underline-offset: .12em; }
.article-card .meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .04em; margin-bottom: .9rem; }
.article-card ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: .45rem; }
.article-card ol li { counter-increment: p; display: grid; grid-template-columns: 1.75rem minmax(0,1fr); font-size: .95rem; color: var(--ink-2); }
.article-card ol li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: .2rem; }
.article-card .read { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--rule-2); }
.article-card:hover .read { border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: #d5dbe3; }
.section + .contact { border-top: 0; }
.contact :focus-visible { outline-color: #f3f5f7; }
.contact .eyebrow { color: var(--night-muted); }
.contact .eyebrow .num { color: #f3f5f7; }
.contact .eyebrow .num::after { background: var(--night-rule); }
.contact h2 { color: #f3f5f7; max-width: 16ch; }
.contact .lede { color: #d5dbe3; }
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.contact-intro { display: grid; gap: 1.5rem; align-content: start; }
.engage { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; max-width: 34rem; }
.engage li { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--night-rule); color: #f3f5f7; font-size: .98rem; }
.engage .ic { color: var(--mark); }
@media (max-width: 479px) { .engage { grid-template-columns: 1fr; } }
.direct { display: grid; gap: .6rem; margin-top: .5rem; }
.direct-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact .btn { --btn-bg: #f3f5f7; --btn-fg: var(--ink); --btn-bd: #f3f5f7; }
.contact .btn:hover { --btn-bg: #ffffff; --btn-bd: #ffffff; }
.contact .btn--ghost { --btn-bg: transparent; --btn-fg: #f3f5f7; --btn-bd: #43536a; }
.contact .btn--ghost:hover { --btn-bg: var(--night-2); --btn-bd: var(--night-muted); --btn-fg: #fff; }
.contact .note { font-size: .88rem; color: var(--night-muted); max-width: 34rem; }

.form-card { background: var(--paper); color: var(--ink-2); border-radius: var(--radius-lg); padding: clamp(1.35rem, 3vw, 2rem); }
.form-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.form-card > p { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.form { margin-top: 1.25rem; display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 559px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .65rem .8rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e1a2b' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); }
.field .err { font-size: .82rem; color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.form-foot .privacy { font-size: .8rem; color: var(--muted); max-width: 22rem; }
.contact .form-card .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.contact .form-card .btn:hover { --btn-bg: #1f3048; --btn-bd: #1f3048; }
.contact .form-card :focus-visible { outline-color: var(--ink); }
.form-status { font-size: .92rem; border-radius: var(--radius); }
.form-status:not(:empty) { padding: .7rem .9rem; }
.form-status.is-ok { background: var(--good-soft); color: var(--good); border: 1px solid var(--good-rule); }
.form-status.is-error { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-rule); }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-rule); font-size: .88rem; }
.footer-inner { display: grid; gap: 1.25rem; padding-block: 2rem 2.5rem; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #e6eaf0; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #f3f5f7; }
.footer-legal { display: grid; gap: .25rem; }
.footer-legal .name { color: #e6eaf0; }

/* ---------- Article (blog) ---------- */
.post-hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.measure { max-width: 43rem; margin-inline: auto; }
.measure-wide { max-width: 58rem; margin-inline: auto; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--ink-2); }
.post-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); line-height: 1.05; margin-top: 1rem; text-wrap: balance; }
.post-meta { margin-top: 1.25rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .03em; }
.post-standfirst { margin-top: 1.75rem; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.prose { font-size: 1.0925rem; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em;
  margin-top: 3.5rem;
}
.prose h2 .pnum { display: block; margin-bottom: .5rem; font-family: var(--mono); font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.prose h2 .ill { display: inline-block; vertical-align: .45em; margin-left: .35rem; font-family: var(--mono); font-size: .62rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 999px; padding: .05rem .5rem; }
.prose em { font-style: italic; }
.prose code { background: var(--code-bg); border: 1px solid var(--rule); border-radius: 4px; padding: .05rem .3rem; font-size: .85em; }
.prose a { color: var(--ink); }
.pattern-box {
  border-left: 3px solid var(--mark); background: var(--surface);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1rem; line-height: 1.6;
}
.pattern-box b { display: block; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .25rem; }
.prose .responses { margin-top: 1.5rem; }
.prose .responses + p { margin-top: 1.5rem; }
.principles { list-style: none; padding: 0; counter-reset: pr; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 2.25rem minmax(0,1fr); padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: .3rem; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.post-cta { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-cta, .form-card, .skip-link { display: none !important; }
  body { background: #fff; }
  .contact, .site-footer { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .rotator { height: auto !important; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
  .rotator span { position: static !important; opacity: 1 !important; animation: none !important; font-family: var(--mono); font-size: .72rem; }
}


/* ==========================================================================
   v2 — consolidated refinement layer (Sep 2026)
   Replaces the earlier stacked "visual passes" (gradient text, stats bento,
   coloured icon badges, pill eyebrows, accent-bordered cards, ticker).
   Navy = primary (CTA, links, rules). Highlighter yellow = the one signature
   accent. Red/green only carry meaning (fail / pass, status).
   ========================================================================== */
:root {
  --rule: #dce2ea;
  --rule-2: #c3ccd8;
  --tint: #eceff3;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --section-y: clamp(5rem, 11vw, 8.5rem);
  --shadow-1: 0 1px 2px rgba(14, 26, 43, .04);
  --shadow-2: 0 1px 2px rgba(14, 26, 43, .05), 0 14px 32px -18px rgba(14, 26, 43, .22);
  --t-h1: clamp(2.5rem, 1.45rem + 4.3vw, 4.5rem);
  --t-h2: clamp(2rem, 1.45rem + 2.1vw, 3rem);
  --t-h3: clamp(1.35rem, 1.2rem + .55vw, 1.625rem);
}
body { line-height: 1.65; }
.section--tint { background: var(--tint); }
.h2 { font-size: var(--t-h2); line-height: 1.08; }
.lede { max-width: 36rem; }
.section-head { gap: 1rem; }

/* quiet section labels (kept for sub-pages) */
.eyebrow {
  display: block; width: auto; padding: 0; border: 0; background: none;
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--muted);
}
.eyebrow::before { content: none; }
.contact .eyebrow { color: var(--night-muted); }

/* header */
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.brand-role { font-family: var(--sans); font-size: .85rem; letter-spacing: 0; text-transform: none; }
.nav-list { gap: 1.9rem; }
.nav-list a { color: var(--ink-2); }
.nav-list a[aria-current="true"] { box-shadow: none; border-bottom-color: var(--ink); color: var(--ink); }
@media (max-width: 1180px) { .brand-role { display: none; } }
@media (max-width: 1023px) {
  .nav-actions { gap: .75rem; }
  .nav-actions .btn { flex: 1; min-height: 48px; }
}

/* buttons & links */
.btn { transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.btn:hover { box-shadow: 0 8px 18px -10px rgba(14, 26, 43, .5); }
.btn--ghost { background: var(--surface); --btn-bg: var(--surface); }
.btn--ghost:hover { box-shadow: none; }
.contact .btn--ghost { background: transparent; }
.text-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .25em; transition: text-decoration-color .18s var(--ease); }
.text-link:hover { text-decoration-color: var(--ink); }
.link-arrow:hover { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--mark); }

/* ---------- Hero ---------- */
.hero2 { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem); }
.hero2-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 960px) { .hero2-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 5rem; } }
.hero2-role { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero2-role li + li::before { content: "/"; color: var(--rule-2); margin: 0 .75rem; font-weight: 400; }
.hero2 h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.028em; max-width: 15ch; }
.hero2 .lede { margin-top: 1.6rem; max-width: 35rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
.hero2-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hero2-cta .btn { min-height: 52px; padding-inline: 1.5rem; }
.hero2-foot { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; font-size: .9rem; color: var(--muted); }
.hero2-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: #8a8a8a; box-shadow: var(--shadow-2); }
.hero2-portrait figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.hero2-portrait figcaption b { display: block; color: var(--ink); font-weight: 600; }
.hero2-avatar { display: none; align-items: center; gap: .9rem; margin-bottom: 1.75rem; }
.hero2-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hero2-avatar p { font-size: .95rem; line-height: 1.35; color: var(--muted); }
.hero2-avatar b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 959px) {
  .hero2-portrait { display: none; }
  .hero2-avatar { display: flex; }
  .hero2-role { margin-bottom: 1.1rem; }
  .hero2-cta .btn { flex: 1 1 100%; }
  .hero2-cta .text-link { padding: .5rem 0; }
}
@media (min-width: 560px) and (max-width: 959px) { .hero2-cta .btn { flex: 0 1 auto; } }

/* proof band (reuses .metrics) */
.metrics { margin-top: clamp(3.5rem, 7vw, 5rem); }
.metric-label { font-size: .95rem; }
.platforms { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .9rem; color: var(--muted); }
.platforms b { color: var(--ink); font-weight: 600; margin-right: .15rem; }

/* ---------- Projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 859px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  position: relative; display: flex; flex-direction: column; gap: 1.2rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow-1);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.work-card:hover { border-color: var(--rule-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.work-card--feature { grid-column: 1 / -1; display: grid; padding: 0; overflow: hidden; gap: 0; }
.work-card--feature:hover { transform: none; }
@media (min-width: 1024px) { .work-card--feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.work-body { padding: clamp(1.4rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .875rem; color: var(--muted); }
.work-meta b { color: var(--ink); font-weight: 600; }
.work-card h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.015em; }
.work-card--feature h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.work-sum { color: var(--ink-2); max-width: 40rem; }
.work-facts { margin: 0; border-top: 1px solid var(--rule); }
.work-facts > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.work-facts dt { font-size: .875rem; font-weight: 600; color: var(--ink); padding-top: .05rem; }
.work-facts dd { font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 519px) { .work-facts > div { grid-template-columns: 1fr; gap: .15rem; } }
.work-links { margin-top: auto; padding-top: .25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.work-card--row { grid-column: 1 / -1; }
@media (min-width: 860px) { .work-card--row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3rem; } .work-card--row .work-links { margin-top: 0; } }
.feature-visual .cmos span { border-radius: 6px; }
.section-foot { margin-top: 2rem; display: flex; justify-content: flex-end; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.svc { padding: 1.75rem 2rem 0 0; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.svc + .svc { padding-left: 2rem; border-left: 1px solid var(--rule); }
.svc h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.015em; }
.svc > p { color: var(--ink-2); }
.svc ul { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .5rem; }
.svc li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .6rem; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.svc li .ic { margin-top: .22rem; color: var(--ink); }
.svc-proof { margin-top: auto; padding-top: .9rem; font-size: .875rem; color: var(--muted); }
.svc-proof a { color: var(--ink-2); }
@media (max-width: 959px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 1.75rem 0; border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--rule); }
}
.svc-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1.5rem 2.5rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1);
}
@media (min-width: 900px) { .svc-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; } }
.svc-foot h4 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.svc-foot p { font-size: .925rem; line-height: 1.55; color: var(--ink-2); }
.svc-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); max-width: 46rem; }

/* ---------- Method (base .steps) ---------- */
.step { grid-template-columns: 2.75rem minmax(0, 1fr); }
.step-n { color: var(--muted); }

/* ---------- About ---------- */
.about2 { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1024px) { .about2 { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.about2-copy { display: grid; gap: 1.25rem; align-content: start; }
.about2-copy .h2 { max-width: 18ch; }
.about2-copy > p { max-width: 38rem; }
.subhead { margin: 2.5rem 0 .25rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline > li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.tl-date { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.timeline h3 { font-family: var(--sans); font-size: 1.075rem; font-weight: 600; line-height: 1.35; }
.timeline .org { margin-top: .1rem; font-size: .95rem; color: var(--muted); }
.timeline .pts { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .95rem; color: var(--ink-2); }
.timeline .pts li::marker { color: var(--rule-2); }
.timeline .pts b { color: var(--ink); font-weight: 600; }
.timeline .note { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 599px) { .timeline > li { grid-template-columns: 1fr; gap: .35rem; } }
.toolset { margin: 0; border-top: 1px solid var(--ink); }
.toolset > div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.toolset dt { font-size: .875rem; font-weight: 600; color: var(--ink); }
.toolset dd { margin-top: .2rem; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 1024px) { .about2-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* ---------- Writing ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 3rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.post-list h3 { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.post-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: .14em; }
.post-list p { margin-top: .5rem; font-size: .95rem; color: var(--ink-2); max-width: 42rem; }
.post-list .meta { font-size: .875rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 699px) { .post-list a { grid-template-columns: 1fr; } .post-list .meta { order: -1; } }

/* ---------- Contact ---------- */
.contact h2 { max-width: 18ch; }
.engage li { gap: .65rem; }
.form-card { border: 1px solid var(--rule); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .6); }
.form-card .btn { min-height: 48px; }


/* ---------- v2.1 details ---------- */
.metric-value { font-variant-numeric: tabular-nums; }
:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px var(--mark); }
.nav-list a { position: relative; border-bottom: 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
@media (max-width: 1023px) { .nav-list a::after { content: none; } .nav-list a { border-bottom: 1px solid var(--rule); } }
.link-arrow .icon, .btn .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.hero2-latest { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .2rem .6rem; font-size: .9rem; color: var(--ink-2); padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 36rem; }
.hero2-latest span { color: var(--muted); }
.hero2-latest a { color: var(--ink); text-decoration-color: var(--rule-2); }
.hero2-latest a:hover { text-decoration-color: var(--ink); box-shadow: inset 0 -.35em 0 var(--mark-soft); }

.chips { list-style: none; margin: -.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; line-height: 1; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .65rem; }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.chips--quiet { margin-top: .9rem; }
.chips--quiet .chip { background: transparent; }

.work-card::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 2px; background: var(--ink); border-radius: 0 0 2px 2px; transform: scaleX(0); transition: transform .3s var(--ease); }
.work-card:hover::before { transform: scaleX(1); }
.work-card--feature::before { display: none; }

.flow { list-style: none; margin: 0; padding: .9rem; counter-reset: fl; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.flow li { counter-increment: fl; position: relative; font-size: .8rem; line-height: 1.35; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: .55rem .6rem .6rem; }
.flow li::before { content: counter(fl); display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.flow li + li::after { content: ""; position: absolute; left: calc(-.5rem - 1px); top: 50%; width: .5rem; height: 1px; background: var(--rule-2); }
@media (max-width: 1179px) and (min-width: 860px), (max-width: 459px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3)::after { content: none; }
}

.step .out { font-family: var(--sans); font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.patterns { margin-top: 2.5rem; max-width: 30rem; }
.patterns .subhead { margin: 0 0 .75rem; }
.patterns ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.patterns li { padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); }
.patterns mark.flag { color: var(--ink); font-weight: 500; }

.svc h3 { padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.feature-visual .cmos span.sel { box-shadow: 0 0 0 3px rgba(255, 226, 122, .25); }

.footer2 { display: grid; gap: 2rem 3rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
@media (min-width: 900px) { .footer2 { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); } }
@media (min-width: 560px) and (max-width: 899px) { .footer2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer2 p, .footer2 li { font-size: .9rem; line-height: 1.6; }
.footer2-name { font-family: var(--serif); font-size: 1.5rem !important; color: #f3f5f7; margin-bottom: .35rem; }
.footer2-id a { color: #f3f5f7; }
.footer2-h { color: #f3f5f7; font-weight: 600; margin-bottom: .6rem; }
.footer2-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer2 a { color: #e6eaf0; text-decoration: none; }
.footer2 a:hover { text-decoration: underline; text-decoration-color: var(--mark); }
.footer2-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--night-rule); font-size: .82rem; }
.footer2-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.footer2-legal a { color: #e6eaf0; text-decoration: none; }
.footer2-legal a:hover { text-decoration: underline; }


/* ---------- v2.2 motion ---------- */
.method-aside { position: static !important; }
.bot-scene { margin: 0 0 2.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1rem 1rem .9rem; box-shadow: var(--shadow-1); }
.bot-scene svg { width: 100%; height: auto; }
.bot-scene figcaption { margin-top: .5rem; padding: .6rem .25rem 0; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.bot-scene * { transform-box: fill-box; }
.bot-line, .bot-hl { transform-origin: left center; }
.bot-eye { transform-origin: center; }
.bot-arm { transform-origin: 0% 100%; }
.bot-pen { opacity: 0; }
.mini-bot { width: 30px; height: 30px; color: var(--ink); flex: none; overflow: visible; }
.mini-bot * { transform-box: fill-box; }
.mini-wave { transform-origin: 0% 100%; }
.form-title { display: flex; align-items: center; gap: .6rem; }

@media (prefers-reduced-motion: no-preference) {
  /* hero: one orchestrated entrance */
  .hero2-avatar, .hero2-role, .hero2 h1, .hero2 .lede, .hero2-cta, .hero2-foot, .hero2-latest { animation: heroIn .7s var(--ease) both; }
  .hero2-role { animation-delay: .05s; }
  .hero2 h1 { animation-delay: .12s; }
  .hero2 .lede { animation-delay: .22s; }
  .hero2-cta { animation-delay: .32s; }
  .hero2-foot { animation-delay: .4s; }
  .hero2-latest { animation-delay: .46s; }
  .hero2-portrait img { animation: portraitIn 1s var(--ease) .15s both; }
  .metric { animation: heroIn .6s var(--ease) both; }
  .metric:nth-child(1) { animation-delay: .5s; } .metric:nth-child(2) { animation-delay: .58s; }
  .metric:nth-child(3) { animation-delay: .66s; } .metric:nth-child(4) { animation-delay: .74s; }

  /* robot scene: 9s loop, only runs while visible */
  .bot-scene .bot, .bot-scene .bot-eye, .bot-scene .bot-antenna, .bot-scene .bot-arm, .bot-scene .bot-spark,
  .bot-scene .bot-line, .bot-scene .bot-hl, .bot-scene .bot-pen, .bot-scene .bot-tag { animation-play-state: paused; }
  .bot-scene.is-live * { animation-play-state: running !important; }
  .bot-scene .bot { animation: botBob 2.4s ease-in-out infinite alternate; }
  .bot-scene .bot-eye { animation: blink 4.5s infinite; }
  .bot-scene .bot-antenna { animation: glow 1.6s ease-in-out infinite alternate; }
  .bot-scene .bot-arm { animation: type .45s ease-in-out infinite alternate; }
  .bot-scene .bot-spark { animation: spark 1s linear infinite; }
  .bot-scene .bot-spark--2 { animation-delay: .5s; }
  .bot-scene .bot-line { animation: lineIn 9s var(--ease) infinite; }
  .bot-scene .bot-line:nth-of-type(4) { animation-delay: .3s; }
  .bot-scene .bot-line:nth-of-type(5) { animation-delay: .6s; }
  .bot-scene .bot-line:nth-of-type(6) { animation-delay: .9s; }
  .bot-scene .bot-line:nth-of-type(7) { animation-delay: 1.2s; }
  .bot-scene .bot-hl { animation: hlIn 9s var(--ease) infinite; }
  .bot-scene .bot-pen { animation: penMove 9s var(--ease) infinite; }
  .bot-scene .bot-tag { animation: tagIn 9s var(--ease) infinite; }

  .mini-bot .mini-wave { animation: wave 2.8s ease-in-out infinite; animation-play-state: paused; }
  .mini-bot .bot-eye { animation: blink 5s infinite; animation-play-state: paused; }
  .mini-bot.is-live .mini-wave, .mini-bot.is-live .bot-eye { animation-play-state: running; }

  /* project flow: the active step travels along the pipeline */
  .flow li { animation: flowStep 6s ease-in-out infinite; animation-play-state: paused; }
  .flow.is-live li { animation-play-state: running; }
  .flow li:nth-child(2) { animation-delay: 1.5s; }
  .flow li:nth-child(3) { animation-delay: 3s; }
  .flow li:nth-child(4) { animation-delay: 4.5s; }

  /* TTS panel key taps */
  .cmos span { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
  .cmos span.tap { animation: tap .35s var(--ease); }
  .keymap li.flash { animation: flash 1.2s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .bot-pen { display: none; } }

@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes botBob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes type { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes spark { from { transform: translateX(0); opacity: 1; } to { transform: translateX(30px); opacity: 0; } }
@keyframes lineIn { 0% { transform: scaleX(0); opacity: 1; } 7% { transform: scaleX(1); } 84% { transform: scaleX(1); opacity: 1; } 94% { opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes hlIn { 0%, 32% { transform: scaleX(0); opacity: .9; } 46% { transform: scaleX(1); } 84% { transform: scaleX(1); opacity: .9; } 94%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes penMove { 0%, 30% { opacity: 0; transform: translateX(0); } 33% { opacity: 1; transform: translateX(0); } 46% { opacity: 1; transform: translateX(206px); } 52%, 100% { opacity: 0; transform: translateX(206px); } }
@keyframes tagIn { 0%, 48% { opacity: 0; transform: translateY(6px); } 55% { opacity: 1; transform: none; } 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-25deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-20deg); } }
@keyframes flowStep { 0%, 30%, 100% { border-color: var(--rule); box-shadow: none; } 6%, 22% { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--mark); } }
@keyframes tap { 50% { transform: scale(.92); } }
@keyframes flash { 0% { background: rgba(255, 226, 122, .18); } 100% { background: transparent; } }
.keymap li { transition: background-color .3s; margin-inline: -.4rem; padding-inline: .4rem; border-radius: 4px; }


/* ---------- v2.3 hero correction: "IA" gets crossed out and corrected to "AI" ---------- */
.fix { display: inline-grid; }
.fix > span { grid-area: 1 / 1; justify-self: start; }
.fix-wrong { position: relative; display: none; color: var(--muted); }
.fix-right { position: relative; z-index: 0; }
.fix-right::after { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .08em; height: .3em; background: var(--mark); border-radius: 2px; }
.fix-x { position: absolute; left: -.06em; top: .12em; width: calc(100% + .12em); height: .82em; overflow: visible; }
.fix-x path { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (prefers-reduced-motion: no-preference) {
  .fix-wrong { display: inline; color: var(--ink); animation: fixWrong .4s var(--ease) 2s forwards; }
  .fix-x path { animation: fixDraw .28s var(--ease) 1.15s forwards; }
  .fix-x path + path { animation-delay: 1.45s; }
  .fix-right { animation: fixRight .5s var(--ease) 2.15s both; }
  .fix-right::after { transform-origin: left center; animation: fixMark .45s var(--ease) 2.6s both; }
}
@keyframes fixDraw { to { stroke-dashoffset: 0; } }
@keyframes fixWrong { 0% { opacity: 1; color: var(--muted); } 100% { opacity: 0; transform: translateY(.3em); color: var(--muted); } }
@keyframes fixRight { from { opacity: 0; transform: translateY(-.35em); } to { opacity: 1; transform: none; } }
@keyframes fixMark { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* ---------- v2.4 rotating platform names ---------- */
.plat-list { display: contents; }
.platforms.is-rotating { align-items: center; }
.platforms.is-rotating .plat-list { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plat-rot { display: inline-grid; overflow: hidden; height: 1.7em; line-height: 1.7em; min-width: 8.5em; }
.plat-word { grid-area: 1 / 1; white-space: nowrap; color: var(--ink); font-weight: 500; }
.plat-word.in { animation: platIn .5s var(--ease) both; }
.plat-word.out { animation: platOut .5s var(--ease) both; }
.plat-dots { display: inline-flex; gap: 5px; align-items: center; }
.plat-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rule-2); transition: background-color .3s var(--ease), width .3s var(--ease); }
.plat-dots i.on { width: 14px; border-radius: 3px; background: var(--ink); }
@keyframes platIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes platOut { from { transform: none; opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }


/* ---------- v2.5 larger platform rotator ---------- */
.platforms { font-size: 1rem; }
.platforms.is-rotating { margin-top: 1.75rem; gap: .5rem 1.1rem; }
.platforms.is-rotating b { font-size: 1.05rem; }
.plat-rot { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); height: 1.25em; line-height: 1.25em; min-width: 6.5em; letter-spacing: -.015em; }
.plat-word { font-weight: 400; }
.plat-dots { gap: 6px; }
.plat-dots i { width: 7px; height: 7px; }
.plat-dots i.on { width: 22px; border-radius: 4px; }
@media (max-width: 559px) { .plat-rot { min-width: 0; flex-basis: 100%; } }


/* ---------- v2.6 centered platform rotator ---------- */
.plat-rot { min-width: 0; justify-items: center; }
.plat-sizer { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.plat-word { justify-self: center; text-align: center; }
@media (max-width: 559px) { .plat-rot { flex-basis: auto; } }

/* The struck-out "IA" is drawn from an attribute so crawlers and text extracts read the headline as "AI Evaluation". */
.fix-wrong::before { content: attr(data-text); }
