/* components: role binding, hero, cards, shifts, challenges, bib, tables */

/* ---- role accent binding (two-tier: --role text, --role-fill decor) ---- */
.role-perception { --role: var(--moss);  --role-fill: var(--moss-fill);  --role-soft: var(--moss-soft);  --role-line: var(--moss-line); }
.role-reasoning  { --role: var(--ochre); --role-fill: var(--ochre-fill); --role-soft: var(--ochre-soft); --role-line: var(--ochre-line); }
.role-action     { --role: var(--terra); --role-fill: var(--terra-fill); --role-soft: var(--terra-soft); --role-line: var(--terra-line); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 4svh);
  padding-bottom: 6svh;
  overflow: hidden;
}
/* aurora wash — the three role colors, barely there */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aurora);
  pointer-events: none;
}

/* ---- topology backdrop (framework wires, JS-generated SVG) ---- */
.hero__topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* falloff lives in the canvas (hero-net.js vignette): quiet behind the
     masthead, full at the frame — and locally lifted around the cursor */
}
.hero__topo canvas { width: 100%; height: 100%; display: block; }

/* ---- centered masthead ---- */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  margin-bottom: var(--s5);
}
.hero__title-passive { color: var(--ink); }
.hero__title-active { color: var(--accent); }

/* the paper title, set as a mono masthead line under the display heading */
.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
  margin: 0 auto var(--s6);
  max-width: none;
  white-space: nowrap; /* one masthead line on desktop; phones wrap below */
}
@media (max-width: 760px) {
  .hero__subtitle { white-space: normal; letter-spacing: 0.12em; max-width: 30ch; }
}

/* masthead roster: names set in the display face, affiliations as a
   numbered registry line — quiet chrome, everything earns its ink */
.hero__authors {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 1.95;
  max-width: 1080px;
  margin-inline: auto;
  color: var(--ink);
  text-wrap: balance;
}
.hero__authors .author { white-space: nowrap; margin: 0 0.55em; }
.hero__authors a {
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-spark));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px);
  background-size: 0% 1.5px;
  transition: color var(--d-fast) var(--ease), background-size var(--d-base) var(--ease-out);
}
.hero__authors a:hover { color: var(--moss-deep); background-size: 100% 1.5px; }
.hero__authors sup {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: 3px;
}
/* contribution marks (* ‡ †) read a step larger and heavier than the affiliation numerals */
.hero__authors sup b {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--accent);
  margin-left: 1px;
}
/* the ten institutions as an editorial colophon: full-colour crests seated
   into the porcelain, names in the display face, bare index numerals, one
   framed line of record — fully static, no hover surface */
.hero__affils {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 30px;
  margin-top: var(--s5);
  margin-inline: auto;
  padding-block: 16px;
  max-width: 1100px;
  border-block: 1px solid var(--hairline);
}
.hero__affils .affil {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.004em;
  color: var(--ink);
  white-space: nowrap;
}
.affil__logo {
  display: block;
  flex: none;
  mix-blend-mode: multiply; /* seats the mark into the paper; erases white PNG boxes */
}
.affil__num {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-muted);
  align-self: flex-start;
  padding-top: 3px; /* bare superscript numeral, no seal */
  margin-right: -2px;
}
.hero__marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px var(--s5);
  margin-top: var(--s3);
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.hero__marks .mark { white-space: nowrap; }
.hero__marks b { color: var(--accent); font-weight: 600; margin-right: 4px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s6); }
/* Hero buttons follow the tactile-force survey: soft pills, a blue-violet
   primary gradient, and a single light sweep on hover. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(16, 32, 48, 0.04);
  transition: transform var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.btn__icon {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--d-base) var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--moss-line);
  box-shadow: 0 1px 2px rgba(16, 32, 48, 0.05),
              0 14px 30px -16px rgba(16, 32, 48, 0.32);
}
.btn:hover .btn__icon { transform: translateX(2px); }
.btn:active { transform: translateY(0); transition-duration: 90ms; }

.btn--primary {
  overflow: hidden;
  isolation: isolate;
  min-width: 148px;
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(125deg, #2e6bf2 0%, #5c7df5 52%, #a78bfa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
              0 10px 26px -12px rgba(46, 107, 242, 0.5);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -65%;
  width: 42%;
  z-index: 1;
  transform: skewX(-22deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0;
  pointer-events: none;
}
.btn--primary:hover {
  border-color: transparent;
  background: linear-gradient(125deg, #1e54d6 0%, #4e6ff0 52%, #a78bfa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 18px 42px -14px rgba(46, 107, 242, 0.6),
              0 6px 16px -8px rgba(167, 139, 250, 0.45);
}
.btn--primary:hover::after {
  opacity: 1;
  transform: skewX(-22deg) translateX(420%);
  transition: transform 700ms var(--ease-out), opacity 150ms linear;
}
.btn--primary:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 8px 20px -12px rgba(46, 107, 242, 0.5);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.btn--disabled {
  color: var(--ink-faint);
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: default;
}
.btn--disabled:hover {
  transform: none;
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.btn--disabled:hover .btn__icon { transform: none; }
.btn--disabled em { font-style: normal; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn__icon { transition: none; }
  .btn:hover, .btn:active, .btn:hover .btn__icon { transform: none; }
  .btn--primary::after { display: none; }
}

/* the survey's instrument row: each count sits under a gradient tick
   riding the hairline rule, numerals inked with a cornflower undertone */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s5) var(--s7);
  list-style: none;
  padding: calc(var(--s6) - 4px) 0 0;
  margin-top: var(--s7);
  border-top: 1px solid var(--hairline);
}
.stat { position: relative; text-align: center; flex: none; }
@media (min-width: 720px) {
  .hero__stats { gap: var(--s5) 0; }
  .stat { padding-inline: clamp(18px, 2vw, 30px); }
  .stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 64%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-strong) 32%, var(--border-strong) 68%, transparent);
  }
  /* index tick: a short gradient filament seated on the rule above */
  .stat::after {
    content: "";
    position: absolute;
    top: calc(-1 * (var(--s6) - 4px) - 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-spark));
    box-shadow: 0 0 10px rgba(46, 91, 235, 0.28);
  }
}
.stat strong {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .stat strong {
    background: linear-gradient(155deg, var(--ink) 46%, var(--moss-deep) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.stat > span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================ ROLE COLUMNS (editorial, unboxed) ============================ */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
}
.role-card {
  display: block;
  position: relative;
  text-decoration: none;
  padding: var(--s6) var(--s5) var(--s5);
  transition: background var(--d-base) var(--ease);
}
.role-card + .role-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s5);
  bottom: var(--s4);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 24%, var(--border-strong) 76%, transparent);
}
.role-card:hover { background: var(--role-soft); }
.role-card__num {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--role);
}
.role-card__num::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--role-line);
}
.role-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--s4) 0 var(--s3);
  min-height: 2.5em;
}
@media (max-width: 760px) {
  .role-card h3 { min-height: 0; }
}
.role-card__q {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
  max-width: 30ch;
}
.role-card__desc { font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: var(--s5); max-width: 34ch; }
.role-card__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--role);
  border-bottom: 1px solid var(--role-line);
  padding-bottom: 2px;
  transition: border-color var(--d-fast) var(--ease);
}
.role-card__link .arr { display: inline-block; transition: transform var(--d-base) var(--ease-out); }
.role-card:hover .role-card__link { border-bottom-color: var(--role); }
.role-card:hover .role-card__link .arr { transform: translateX(4px); }

/* ============================ ABSTRACT ============================ */
.abstract { columns: 2; column-gap: var(--s7); max-width: 100%; }
.abstract p {
  break-inside: avoid-column;
  margin-bottom: var(--s4);
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
}
.abstract em { font-style: italic; color: var(--ink); }
@media (max-width: 860px) { .abstract { columns: 1; } }

/* ============================ FORMULA ============================ */
.formula {
  margin: var(--s7) 0 var(--s6);
  display: grid;
  gap: var(--s3);
  justify-items: center;
  border-block: 1px solid var(--hairline);
  padding-block: var(--s6);
}
.formula__math {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.01em;
}
/* math italics come from the body family — Space Grotesk has no italic */
.formula__math em { font-style: italic; font-family: var(--font-body); }
.formula__math b { font-weight: 600; }
.formula__math .f-a  { color: var(--moss);  font-weight: 600; }
.formula__math .f-r  { color: var(--ochre); font-weight: 600; }
.formula__math .f-eta{ color: var(--terra); font-weight: 600; }
.formula__legend {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.whatwherehow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.www-card {
  border-left: 2px solid var(--role-fill, var(--role));
  padding: var(--s2) 0 var(--s2) var(--s4);
}
.www-card__sym {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 26px;
  color: var(--role);
}
.www-card h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  margin: var(--s1) 0 var(--s2);
}
.www-card p { font-size: var(--fs-small); color: var(--ink-muted); }

/* ============================ SHIFTS ============================ */
/* five elevated plates: ghost numeral, from → drawn arrow → to,
   a live gradient filament along the top edge */
.shifts {
  list-style: none;
  padding: 0;
  margin-block: var(--s7);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s4);
}
.shift {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: calc(var(--s5) + 4px) var(--s4) var(--s5);
  background: var(--paper-elev);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 4px;
  align-content: start;
  /* keeps [data-reveal]'s opacity/transform choreography, adds hover shadow */
  transition: opacity var(--d-slow) var(--ease) var(--reveal-delay, 0ms),
              transform var(--d-slow) var(--ease) var(--reveal-delay, 0ms),
              box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease);
}
.shift::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-spark) 70%, transparent);
  transform: scaleX(0.26);
  transform-origin: 0 0;
  transition: transform var(--d-slow) var(--ease-out);
}
.shift:hover { box-shadow: var(--shadow-lift); border-color: var(--moss-line); }
.shift:hover::before { transform: scaleX(1); }
.shift__num {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-stroke);
  user-select: none;
  pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .shift__num { color: var(--ghost-fill); }
}
.shift__from {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
}
.shift__track {
  position: relative;
  width: 46px;
  height: 1.5px;
  margin: 9px 0 10px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--moss-line), var(--accent));
  transition: width var(--d-slow) var(--ease-out);
}
.shift__track::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.4px;
  width: 6.5px;
  height: 6.5px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.shift:hover .shift__track { width: 76px; }
.shift__to {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.22;
  text-wrap: balance;
}
.shift p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; margin-top: var(--s3); }


/* ============================ CHALLENGES ============================ */
.challenges {
  list-style: none;
  padding: 0;
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}
.challenge {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--paper-elev);
  box-shadow: var(--shadow-soft);
  padding: calc(var(--s5) + 4px) var(--s5) var(--s5);
  /* keeps [data-reveal]'s opacity/transform choreography, adds hover shadow */
  transition: opacity var(--d-slow) var(--ease) var(--reveal-delay, 0ms),
              transform var(--d-slow) var(--ease) var(--reveal-delay, 0ms),
              box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease);
}
.challenge::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-spark) 70%, transparent);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform var(--d-slow) var(--ease-out);
}
.challenge:hover { box-shadow: var(--shadow-lift); border-color: var(--moss-line); }
.challenge:hover::before { transform: scaleX(1); }
.challenge--wide { grid-column: 1 / -1; }
.challenge__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-stroke);
  user-select: none;
  pointer-events: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .challenge__num { color: var(--ghost-fill); }
}
.challenge h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 var(--s3);
  padding-right: 84px;
}
.challenge p { font-size: var(--fs-small); color: var(--ink-soft); max-width: 75ch; }

/* ============================ BIBTEX ============================ */
.bib-note { margin-bottom: var(--s4); font-size: var(--fs-small); color: var(--ink-muted); }
.bib-note__chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--paper-deep);
  border-radius: var(--r-full);
  padding: 3px 10px;
  margin-right: var(--s2);
}
.bib { position: relative; }
.bib pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--paper-well);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--s5);
  overflow-x: auto;
}
.bib__copy {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 14px;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.bib__copy:hover { border-color: var(--ink); }
.bib__copy.is-copied { background: var(--ink); border-color: var(--ink); color: var(--paper-elev); }

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  padding: 1px 6px;
  background: var(--paper);
}

/* ============================ TABLES (§05) ============================ */
.container-wide {
  max-width: min(1360px, 100%);
  margin-inline: auto;
  padding-inline: clamp(12px, 2.5vw, 40px);
}
.tables__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
  justify-content: center;
}
.tables__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 8px 16px;
  transition: all var(--d-fast) var(--ease);
}
.tables__tab::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-fill, var(--data-fill));
}
.tables__tab:hover { color: var(--ink); border-color: var(--line); }
.tables__tab.is-active { color: var(--paper-elev); background: var(--ink); border-color: var(--ink); }
/* the table renders at full height — the PAGE owns vertical scrolling
   (an inner v-scrollbox + Lenis fought over the wheel and stuttered).
   Horizontal overflow only; when the table fits, --fit lifts the scroll
   container entirely so the header row can stick to the viewport. */
.tables__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.tables__scroll--fit { overflow-x: visible; }
.ctable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.ctable th, .ctable td { padding: 7px 10px; white-space: nowrap; }
.ctable thead th {
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
/* column-header row sticks under the fixed nav while the page scrolls
   (inert in --fit-less overflow mode, which is fine) */
.ctable thead tr:last-child th {
  position: sticky;
  top: var(--nav-h);
  z-index: 3;
}
.ctable thead tr:first-child th { border-bottom: none; padding-bottom: 2px; }
/* group band row (Input / Output / Annotation) — labeled spans with a color key */
.ctable .th-group {
  font-size: 10.5px;
  letter-spacing: var(--track-wider);
  color: var(--ink-muted);
  padding-top: 9px;
}
.ctable .th-group:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--group-key, var(--ink-faint));
}
.ctable .th-group--input      { --group-key: var(--moss-fill); }
.ctable .th-group--output     { --group-key: var(--terra-fill); }
.ctable .th-group--annotation { --group-key: var(--ochre-fill); }
.ctable thead th.is-sortable { cursor: pointer; user-select: none; }
.ctable thead th.is-sortable:hover { color: var(--ink); }
.ctable thead th .dir { color: var(--ink); margin-left: 2px; }
.ctable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-deep) 46%, transparent); }
.ctable tbody tr:hover { background: var(--role-soft, var(--paper-deep)); }
.ctable td:first-child, .ctable th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctable thead th:first-child { z-index: 4; background: var(--paper-deep); }
.ctable tbody tr:nth-child(even) td:first-child { background: var(--paper-deep); }
.ctable .group-row td {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--role, var(--ink-muted));
  background: linear-gradient(90deg, var(--role-soft, var(--paper-deep)), transparent 70%), var(--paper) !important;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 2.5px 0 0 var(--role-fill, var(--data-fill));
  padding-block: 6px;
}
/* modality dots keyed by column group: input cornflower · output coral · annotation celadon */
.dot { display: inline-block; width: 8.5px; height: 8.5px; border-radius: 50%; }
.dot--on  { background: var(--role-fill, var(--role, var(--ink))); }
.dot--in  { background: var(--moss-fill);  box-shadow: 0 0 0 2.5px var(--moss-soft); }
.dot--out { background: var(--terra-fill); box-shadow: 0 0 0 2.5px var(--terra-soft); }
.dot--ann { background: var(--ochre-fill); box-shadow: 0 0 0 2.5px var(--ochre-soft); }
.dot--off { border: 1px solid var(--line); }
.td-c { text-align: center; }
/* supervision chips + open-set badges */
.sup {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
}
.sup--strong    { color: var(--moss);  background: var(--moss-soft); }
.sup--automatic { color: var(--ochre); background: var(--ochre-soft); }
.sup--weak      { color: var(--terra); background: var(--terra-soft); }
.sup--none      { color: var(--ink-muted); border-color: var(--line); }
.tbl-yes {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--moss);
  background: var(--moss-soft);
}
.tbl-no { color: var(--ink-faint); }
.ctable .link-cell a { text-decoration: none; color: inherit; border-bottom: 1px dashed var(--line); }
.ctable .link-cell a:hover { border-bottom-color: var(--role, var(--ink)); }
.tables__legend {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-align: center;
}
.legend-key { color: var(--ink-soft); white-space: nowrap; }
.legend-key::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--key, var(--ink-faint));
}
.legend-key--in  { --key: var(--moss-fill); }
.legend-key--out { --key: var(--terra-fill); }
.legend-key--ann { --key: var(--ochre-fill); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1020px) {
  .hero { min-height: 88svh; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 8svh; }
  .shifts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .roles { grid-template-columns: 1fr; border-top: none; }
  .role-card { padding-inline: 0; border-top: 1px solid var(--line); }
  .role-card + .role-card::before { display: none; }
  .whatwherehow { grid-template-columns: 1fr; gap: var(--s4); }
  .challenges { grid-template-columns: 1fr; }
  .shifts {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s3);
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }
  .shift { min-width: 72vw; scroll-snap-align: start; }
  .hero__stats { gap: var(--s5); }
  .hero__affils { gap: 8px 18px; padding-block: 12px; }
  .hero__affils .affil { font-size: 14.5px; gap: 7px; }
  .affil__logo { height: 18px; width: auto; }
}
