/* =========================================================================
   ALIAS — project website
   Light green palette; the green doubles as a highlighter.
   ========================================================================= */

:root {
  --paper: #edf7ef;
  --paper-2: #e1f0e5;
  --card: #ffffff;
  --ink: #1a1b1e;
  --ink-2: #3a3c42;
  --muted: #5a645d;
  --line: #cde0d2;
  --accent: #1d7a45;
  --warn: #b3261e;
  --hl: rgba(46, 160, 90, .30);
  --hl-solid: #3fae6a;
  --heat: 46 160 90;
  --band: #d3e9d9;
  --on-band: #14301f;
  --p-german: #3b4a8c;
  --f-abbr: #0e7a5a;
  --f-idiom: #b0236e;
  --f-excl: #c0560a;
  --f-ellipsis: #2f55c9;
  --p-explainability: #8a5d00;
  --p-efficiency: #23625f;
  --p-synthetic: #74345a;
  --p-comparison: #56691a;
  --p-cross-domain: #9a4419;
  --shadow: 0 1px 0 rgba(28, 28, 26, .04), 0 18px 40px -24px rgba(28, 28, 26, .45);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 68px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--hl); color: inherit; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  /* max() keeps the gutter clear of phone notches / system bars */
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
/* Paints the band above the sticky header on phones with a top inset (0px elsewhere). */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Highlighter ---------- */
.hl {
  font-style: italic;
  background-image: linear-gradient(100deg, transparent .5%, var(--hl) 2.5%, var(--hl) 97%, transparent 99.5%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 86%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .06em;
  margin-inline: -.06em;
  transition: background-size 1s cubic-bezier(.65, 0, .35, 1) .2s;
}
.js .hl:not(.is-lit) { background-size: 0% 40%; }

/* ---------- Links & buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  transition: background-color .2s;
}
.button:hover { background: var(--accent); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .15s;
}
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.wordmark {
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: .03em; line-height: 1;
}
.wordmark small {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
#site-nav { display: flex; align-items: center; gap: 2px; }
#site-nav a {
  text-decoration: none; font-size: 15px; color: var(--ink-2);
  padding: 8px 13px; border-radius: 999px;
  transition: background-color .15s, color .15s;
}
#site-nav a:hover { background: var(--paper-2); color: var(--ink); }
#site-nav a[aria-current] { color: var(--ink); background: var(--hl); }
#site-nav .nav-contact { border: 1px solid var(--ink); margin-left: 10px; color: var(--ink); }
.nav-contact span { color: var(--accent); }
.menu-button {
  display: none; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
}
@media (max-width: 820px) {
  .menu-button { display: inline-flex; }
  #site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 4px 16px 20px;
    box-shadow: var(--shadow);
  }
  #site-nav.is-open { display: flex; }
  #site-nav a { border-radius: 0; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  #site-nav a[aria-current] { background: none; }
  #site-nav a[aria-current]::after { content: " ·"; color: var(--accent); }
  #site-nav .nav-contact { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 1px solid var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 7vw, 96px);
}
@media (max-width: 940px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.028em;
  margin-top: 22px;
  text-wrap: balance;
}
.hero-lead {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.35; margin-top: 28px; max-width: 30ch;
}
.hero-sub { color: var(--ink-2); margin-top: 16px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-pillars a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.hero-pillars a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.hero-pillars a:hover { border-color: var(--ink); color: var(--ink); }

/* Specimen figure */
/* One sheet with a second sheet peeking out behind it. */
.specimen-stack { position: relative; padding: 0 10px 10px 0; }
.specimen-stack::before {
  content: ""; position: absolute; inset: 10px 0 0 10px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 6px;
  transform: rotate(1.2deg);
}
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.sheet-main { position: relative; padding: 18px 22px 20px; }

/* Aligned comparison: Text A | Text B, one row per line of the messages. */
.align {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 6px;
}
.align > * { min-width: 0; }
.align > :nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.align > :nth-child(even) { padding-left: 16px; }
.align-head {
  display: flex; flex-direction: column; gap: 2px;
  padding-block: 12px 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.align-head b { font-weight: 500; color: var(--ink); }
.align p {
  padding-block: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  line-height: 1.5;
}

/* Colour-coded features: same colour = same feature in both texts. */
.feat {
  color: var(--fc); font-weight: 600;
  background: color-mix(in srgb, var(--fc) 12%, transparent);
  border-radius: 3px; padding: 0 .12em;
  text-decoration: underline 2px color-mix(in srgb, var(--fc) 55%, transparent);
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: default;
  transition: opacity .2s;
}
.feature-key {
  display: grid; gap: 7px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.feature-key li {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 56px 2.6em; align-items: center; gap: 10px;
  cursor: default; transition: opacity .2s;
}
.feature-key b { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--fc); white-space: nowrap; }
.feature-key span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.feature-key i { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--fc) calc(var(--w) * 100%), var(--paper-2) 0); }
.feature-key em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.has-focus [data-f]:not(.is-on) { opacity: .28; }
.feature-bars .bar { background: var(--bc); }

.sheet-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.prediction {
  display: grid; grid-template-columns: auto auto minmax(40px, 1fr) auto;
  align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.prediction strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.meter { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; width: var(--v); height: 100%; background: var(--ink); border-radius: inherit; }
.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
@media (max-width: 480px) {
  .feature-key li { grid-template-columns: 6em minmax(0, 1fr) 40px 2.4em; gap: 8px; }
}

.specimen figcaption {
  margin-top: 16px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.specimen figcaption em { font-family: var(--serif); color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-label span:first-child { color: var(--ink); font-weight: 500; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.04; letter-spacing: -.022em;
}
.section-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 20px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-heading p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 820px) { .section-heading { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 01 Pillars ---------- */
.pillars-section { background: var(--paper-2); border-block: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) and (min-width: 821px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tab {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num arrow" "title title";
  gap: 10px 14px; align-items: baseline; align-content: start;
  text-align: left;
  padding: 18px 18px 20px;
  border-top: 3px solid var(--line);
  border-right: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.tab small { grid-area: num; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--pc); }
.tab-title {
  grid-area: title;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.1;
  color: var(--muted); transition: color .2s;
}
.tab-arrow { grid-area: arrow; color: var(--muted); transition: transform .2s, color .2s; }
.tab:hover .tab-title { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--card); border-top-color: var(--pc); }
.tab[aria-selected="true"] .tab-title { color: var(--ink); }
.tab[aria-selected="true"] .tab-arrow { color: var(--pc); transform: rotate(45deg); }

.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 52px);
  background: var(--card);
  border: 1px solid var(--line); border-top: 0;
}
.panel[hidden] { display: none; }
.panel .eyebrow { color: var(--pc); }
.panel h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -.018em;
  margin-top: 14px;
}
.panel-text > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); }
.focus-list { margin-top: 24px; border-top: 1px solid var(--line); }
.focus-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.focus-list li::before { content: "→"; color: var(--pc); }
@media (max-width: 820px) {
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tab { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num title arrow"; padding: 14px 16px; border-top-width: 1px; border-left: 3px solid transparent; }
  .tab[aria-selected="true"] { border-left-color: var(--pc); border-top-color: var(--line); }
  .panel { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
}

/* Visuals */
.viz {
  align-self: start;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 6px;
}
.viz-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.viz-cap { font-size: 13px; line-height: 1.5; color: var(--muted); }

.bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.bar-label { font-family: var(--serif); font-size: 1.1rem; text-align: right; }
.bar-track { height: 14px; }
.bar {
  display: block; height: 100%; width: calc(var(--w) * 100%);
  background: rgb(var(--heat) / calc(.25 + var(--w) * .7));
  border-radius: 3px;
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .panel:not(.is-shown) .bar { transform: scaleX(0); }
.bar-val { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar.base { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.bars.compact { grid-template-columns: 7.5em minmax(0, 1fr) 3ch; }
.bars.compact .bar-label { font-family: var(--mono); font-size: 12px; text-align: left; color: var(--ink-2); }
.cost-title {
  margin-bottom: -6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cost-note { margin-top: -6px; font-size: 14px; font-weight: 500; color: var(--pc); }
.cost-callout {
  padding: 12px 14px; border-radius: 4px;
  background: color-mix(in srgb, var(--pc) 9%, transparent);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.4;
}
/* Pillar 05: head-to-head table */
.versus-wrap { overflow-x: auto; }
.versus { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.versus th, .versus td { padding: 10px 10px 10px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.versus thead th {
  padding-top: 0; font-weight: 400;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted);
}
.versus thead th b { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.versus tbody th { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.versus td { color: var(--muted); }
.versus td.win { color: var(--ink); font-weight: 600; }
.versus td.win::before, .win-dot {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px;
  border-radius: 50%; background: var(--pc); vertical-align: 1px;
}
/* Pillar 06: shift list */
.shifts { display: grid; }
.shifts li {
  display: grid; grid-template-columns: 1.4em 6em minmax(0, 1fr); align-items: baseline; gap: 4px 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.shifts li::before { grid-column: 1; grid-row: 1 / span 2; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.shifts .drop::before { content: "▼"; color: var(--warn); }
.shifts .robust::before { content: "●"; color: var(--pc); }
.shifts .none::before { content: "="; color: var(--muted); }
.shifts b { grid-column: 2; grid-row: 1; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.shift-n { grid-column: 2; grid-row: 2; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.shift-fx { grid-column: 3; grid-row: 1 / span 2; font-size: 15px; color: var(--ink-2); }
.shifts .drop .shift-fx, .shifts .robust .shift-fx { color: var(--ink); font-weight: 500; }
.bench-facts { display: grid; gap: 10px; }
.bench-facts > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.bench-facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.bench-facts dd { font-size: 14px; color: var(--ink-2); }

.compound { font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.2; overflow-wrap: anywhere; }
.compound small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; }
.seg-label { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }
.segs span {
  font-family: var(--mono); font-size: 14px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card);
}
.segs.good span { background: rgb(var(--heat) / .4); border-color: transparent; color: var(--ink); }
.seg-count { font-family: var(--serif); font-size: 2rem; line-height: 1; }

.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pipeline li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pipeline li + li::before {
  content: "→"; position: absolute; left: -10px; top: -1px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.stage { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-left: 6px; }
.docs { display: flex; flex-wrap: wrap; gap: 4px; min-height: 64px; align-content: flex-start; padding-left: 6px; }
.doc {
  display: inline-block; width: 14px; height: 18px;
  border: 1px solid var(--ink-2); border-radius: 2px; background: var(--card);
  vertical-align: middle;
}
.doc.syn { border-style: dashed; border-color: var(--pc, var(--p-synthetic)); background: rgb(var(--heat) / .18); }
.doc.out { opacity: .22; }
.doc.ok { border: 1px solid var(--pc, var(--p-synthetic)); background: rgb(var(--heat) / .6); }
.stage-n { font-family: var(--serif); font-size: 1.6rem; line-height: 1; padding-left: 6px; }
.viz .legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 02 People ---------- */
.team-group + .team-group { margin-top: 56px; }
.team-subheading {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.team-subheading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
@media (min-width: 1101px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s;
}
.person:hover { border-color: var(--ink-2); }
.person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.portrait { width: 84px; height: 84px; border-radius: 4px; object-fit: cover; background: var(--paper-2); }
.portrait-credit { margin-top: 20px; font-size: 13px; color: var(--muted); }
.monogram {
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 4px;
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 80%, transparent 80%), var(--paper-2);
}
.person-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.person-num { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.person-role {
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.person h4 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.person-title { font-weight: 400; color: var(--muted); font-size: .8em; }
.person-aff { margin-top: 4px; font-size: 14px; color: var(--muted); }
.person-bio { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.person-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 18px; }
.placeholder-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px dashed currentColor; border-radius: 3px;
  padding: 1px 6px;
}

/* ---------- 03 Publications ---------- */
.publications-section { background: var(--paper-2); border-block: 1px solid var(--line); }
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.chip .count { opacity: .6; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Compact list: small year label, then one row per paper (meta column | content). */
.pub-year + .pub-year { margin-top: 36px; }
.pub-year-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  color: var(--ink);
}
.pub-year-label::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.pub {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 8px 28px;
  padding: 18px 0;
}
.pub + .pub { border-top: 1px solid var(--line); }
.pub-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding-top: 3px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.venue { color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 1px 7px; letter-spacing: .02em; }
.pub-status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-efficiency); }
.pub-status::before { content: "✓ "; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pillar-tag { display: inline-flex; align-items: center; gap: 6px; }
.pillar-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.pub-main { min-width: 0; }
.pub h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.3; letter-spacing: -.005em;
  text-wrap: pretty;
}
.pub h4 a {
  text-decoration: none;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat; background-size: 0% 38%; background-position: 0 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .35s ease;
}
.pub h4 a:hover { background-size: 100% 38%; }
.pub h4 a span { color: var(--accent); font-size: .8em; }
.pub-authors { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pub-authors .member {
  color: var(--ink); font-weight: 500;
  background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%);
}
.pub-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin-top: 10px;
  font-family: var(--mono); font-size: 12px;
}
.pub-actions a, .pub-toggle {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.pub-actions a span { color: var(--accent); }
.pub-actions a:hover, .pub-toggle:hover { color: var(--accent); border-color: currentColor; }
.pub-toggle { display: inline-flex; gap: 5px; font: inherit; }
.pub-toggle::after { content: "+"; color: var(--accent); }
.pub-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.pub-toggle[aria-expanded="true"]::after { content: "−"; }
.pub-summary { margin-top: 12px; max-width: 72ch; font-size: 15px; color: var(--ink-2); }
.pub-figure { margin-top: 12px; max-width: 640px; }
.pub-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pub-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) {
  .pub { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pub-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 0; }
}

.cite-body {
  margin-top: 12px; max-width: 760px;
  padding: 10px 12px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
}
.cite-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.cite-toolbar div { display: flex; gap: 8px; }
.cite-toolbar button {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s;
}
.cite-toolbar button:hover { border-color: var(--ink); }
.cite-status { min-height: 18px; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--p-efficiency); }
.cite-body pre {
  margin: 4px 0 0; padding: 12px 14px; overflow-x: auto;
  background: var(--paper); border-radius: 4px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.pub-empty { padding: 24px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }

/* ---------- 04 Contact ---------- */
.contact-section { background: var(--band); color: var(--on-band); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding-block: clamp(64px, 9vw, 112px);
}
@media (max-width: 820px) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }
.contact-section .eyebrow { color: color-mix(in srgb, var(--on-band) 72%, transparent); }
.contact-section h2 { margin-top: 16px; }
.contact-section .hl { --hl: rgba(46, 160, 90, .38); }
.contact-inner > div > p:last-child { margin-top: 18px; max-width: 40ch; color: color-mix(in srgb, var(--on-band) 78%, transparent); }
.contact-links { align-self: end; border-top: 1px solid color-mix(in srgb, var(--on-band) 25%, transparent); }
.contact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-band) 25%, transparent);
}
.contact-who { min-width: 0; }
.contact-links small {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--on-band) 72%, transparent);
}
.contact-links strong { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.75rem); overflow-wrap: anywhere; }
.contact-email {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--on-band) 78%, transparent);
}
.contact-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.contact-copy {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--on-band) 35%, transparent);
  transition: border-color .15s;
}
.contact-copy:hover { border-color: var(--on-band); }
.contact-links .arrow { color: var(--on-band); font-size: 1.4rem; text-decoration: none; transition: transform .2s; }
.contact-links .arrow:hover { transform: translate(3px, -3px); }
.contact-links :focus-visible { outline-color: var(--on-band); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px 32px; }
.footer-main {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-main p { font-family: var(--serif); font-size: 1.15rem; max-width: 36ch; color: var(--ink-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hl:not(.is-lit) { background-size: 100% 40%; }
  .js .panel:not(.is-shown) .bar { transform: none; }
}

/* Pillar 05 table on phones: tighter padding so both column heads stay on one line. */
@media (max-width: 520px) {
  .panel .viz { padding: 16px 14px; }
  .versus { font-size: 13px; }
  .versus th, .versus td { padding-right: 8px; }
  .versus tbody th { width: 5.2em; font-size: 11px; white-space: normal; }
  .versus thead th b { font-size: 1rem; white-space: nowrap; }
  .versus td.win { white-space: nowrap; }
  .versus td.win::before { margin-right: 5px; }
}
