/* ============================================================
   Marc Molina Van den Bosch — personal site (dashboard layout)
   Palette: signal emerging from noise.
   Semantics: teal = research, blue = built/shipped, gold = award
   Type: Space Grotesk (display/body) + Space Mono (data) — self-hosted, OFL.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-700.woff2') format('woff2');
}

:root {
  --bg:        #0a0b0d;
  --bg-elev:   #101216;
  --bg-elev-2: #14171c;
  --line:      #1e2228;
  --line-soft: #171a1f;
  --text:      #eceff2;
  --muted:     #979da5;
  --muted-dim: #6d737b;
  --accent:    #5eead4;
  --accent-2:  #7cc4fa;
  --gold:      #e6c078;
  --accent-dim: rgba(94, 234, 212, 0.10);
  --accent-line: rgba(94, 234, 212, 0.28);

  --mono: 'Space Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --maxw: 1080px;        /* article pages */
  --maxw-board: 1240px;  /* dashboard */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: #262b33 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Film grain overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  17% { transform: translate(-3%, -2%); }
  33% { transform: translate(2%, -4%); }
  50% { transform: translate(-2%, 3%); }
  67% { transform: translate(3%, 1%); }
  83% { transform: translate(-1%, -3%); }
}

/* ---- Ambient glow ---- */
body::before {
  content: '';
  position: fixed;
  top: -30vh; left: 50%;
  width: 90vw; height: 70vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(94,234,212,0.055), transparent 62%);
  filter: blur(30px);
}

a { color: inherit; }

::selection { background: var(--accent); color: #06231f; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22272e; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e3640; }

/* ============================================================
   Layout containers
   ============================================================ */
.wrap {                       /* article pages */
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.board-wrap {                 /* dashboard */
  width: 100%;
  max-width: var(--maxw-board);
  margin: 0 auto;
  padding: 0 24px 26px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 13, 0.86);
}
.nav__inner {
  max-width: var(--maxw-board);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color .25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cv {
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 6px;
  color: var(--text) !important;
}
.nav__cv:hover {
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.nav__cv::after { display: none !important; }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cv) { display: none; }
}

/* ============================================================
   Hero band — compact
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Faint sampling grid behind the point cloud */
.hero::before {
  content: '';
  position: absolute;
  inset: 70px 0 0 0;
  background-image: radial-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 45% 45%, black, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 80% at 45% 45%, black, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

/* The name renders as real text until the canvas proves it can take over. */
.hero__title {
  font-size: clamp(32px, 6.6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp .8s var(--ease) .4s forwards;
}

.hero__canvas-wrap {
  position: relative;
  width: 100%;
  display: none;            /* revealed by JS once the cloud is built */
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 24px);
}
.hero.canvas-on .hero__canvas-wrap { display: flex; }
#nameCanvas {
  display: block;
  flex: 1;
  min-width: 0;
  width: auto;
  height: auto;
  cursor: crosshair;
  background: radial-gradient(58% 72% at 50% 46%, rgba(94, 234, 212, 0.05), transparent 72%);
}
.hero.canvas-on .hero__title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  animation: none;
}

.hero__id {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  flex-wrap: wrap;
}
.hero__role {
  font-size: 16.5px;
  color: var(--text);
  font-weight: 400;
  margin: 0;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.5s forwards;
}
.hero__role strong { font-weight: 600; }
.hero__affil {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.65s forwards;
}
.hero__affil a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.hero__affil a:hover { color: var(--accent); border-color: var(--accent-line); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- The epsilon control — vertical dial, left of the name ----
   Drag DOWN to raise epsilon and resolve the name. t=0 (noise) at the top,
   t=1 (crisp) at the bottom, so the fill grows downward as signal returns. */
.eps {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0;
  touch-action: none;       /* let us own vertical drag, not the page scroll */
  outline: none;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 2s forwards;
}
.eps__val {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
}
.eps__track {
  position: relative;
  flex: 1;
  width: 3px;
  min-height: 70px;         /* stay draggable even when the name is short */
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.eps__fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--pct, 50%);
  background: var(--accent);
  border-radius: 3px;
}
.eps__thumb {
  position: absolute;
  left: 50%;
  top: var(--pct, 50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(94, 234, 212, 0.5);
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: box-shadow .2s var(--ease);
}
.eps.dragging .eps__thumb,
.eps__thumb:active { cursor: grabbing; box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(94, 234, 212, 0.75); }
.eps:focus-visible .eps__thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 20px rgba(94, 234, 212, 0.7); }

/* The rotated readout would eat the whole column when the name is short. */
@media (max-width: 900px) {
  .eps__val { display: none; }
}

/* ============================================================
   Board grid
   ============================================================ */
.board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack > .panel { flex: 1; }

@media (max-width: 1080px) {
  .span-3, .span-4, .span-5, .span-7 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .span-3, .span-4, .span-5, .span-7 { grid-column: span 12; }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-elev), rgba(16, 18, 22, 0.35));
  padding: 20px 22px;
  min-width: 0;
}
.panel__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel__label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.panel__label--build { color: var(--accent-2); }
.panel__label--build::before { background: var(--accent-2); }

.panel__text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.panel__text strong { color: var(--text); font-weight: 500; }
.panel__text a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.panel__text a:hover { background: var(--accent-dim); }

/* ============================================================
   Facts
   ============================================================ */
.facts { border-top: 1px solid var(--line); margin-top: 14px; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11.5px;
}
.fact__k { color: var(--muted-dim); letter-spacing: .04em; }
.fact__v { color: var(--text); text-align: right; }
.fact__v a { color: var(--accent); text-decoration: none; }
.fact__v a:hover { text-decoration: underline; }

/* ============================================================
   Research cards — stacked compact
   ============================================================ */
.cards--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px 11px;
  background: rgba(20, 23, 28, 0.5);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(94,234,212,0.07), transparent 45%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  padding: 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.card__tag--build {
  color: var(--accent-2);
  border-color: rgba(124, 196, 250, 0.3);
  background: rgba(124, 196, 250, 0.08);
}
.card__title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.card__desc {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 12px;
  flex: 1;
  line-height: 1.55;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-dim);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.card__arrow {
  color: var(--accent);
  transition: transform .3s var(--ease);
  display: inline-block;
}
.card:hover .card__arrow { transform: translateX(4px); }

/* ============================================================
   Publications — scrollable panel
   ============================================================ */
.pubscroll {
  overflow-y: auto;
  max-height: 480px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #262b33 transparent;
}
.pubscroll::-webkit-scrollbar { width: 7px; }
.pubscroll::-webkit-scrollbar-track { background: transparent; }
.pubscroll::-webkit-scrollbar-thumb { background: #22272e; border-radius: 5px; }
.pubscroll::-webkit-scrollbar-thumb:hover { background: #2e3640; }

.pubs { border-top: 1px solid var(--line); }
.pub {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
  position: relative;
}
.pub:hover { background: rgba(255,255,255,0.014); padding-left: 12px; }
.pub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.pub:hover::before { transform: scaleY(1); }
.pub__year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dim);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.pub__title {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 3px;
  font-weight: 450;
  line-height: 1.45;
}
.pub__note { font-size: 11.5px; color: var(--muted-dim); margin: 0; }
.pub__pdf { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.pub__pdf:hover { background: var(--accent-dim); }
.pub__venue {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
  align-self: start;
  margin-top: 1px;
}
.pub__venue--hot {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.pub__venue--award {
  color: var(--gold);
  border-color: rgba(230, 192, 120, 0.35);
  background: rgba(230, 192, 120, 0.08);
}
@media (max-width: 500px) {
  .pub { grid-template-columns: 1fr auto; }
  .pub__year { display: none; }
}

/* ============================================================
   Experience timeline — compact
   ============================================================ */
.tl { position: relative; padding-left: 22px; }
.tl::before {
  content: '';
  position: absolute;
  left: 3px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), var(--line) 55%, transparent);
}
.tl__item { position: relative; padding-bottom: 22px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute;
  left: -22px; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted-dim);
}
.tl__item--now .tl__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.tl__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.tl__role { font-size: 14px; font-weight: 600; margin: 0; }
.tl__date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-dim);
  white-space: nowrap;
}
.tl__org { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin: 3px 0 6px; }
.tl__desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 0; }

/* ============================================================
   Contact + Kosmico panels
   ============================================================ */
.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: all .28s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn:hover { border-color: var(--accent-line); background: var(--accent-dim); transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: #06231f;
  border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent);
  box-shadow: 0 8px 26px rgba(94,234,212,0.26);
}
.btn--block { width: 100%; justify-content: center; }

.contact-note {
  color: var(--muted-dim);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.panel--kosmico {
  background:
    radial-gradient(420px circle at 85% 0%, rgba(124, 196, 250, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-elev), rgba(16, 18, 22, 0.3));
}
.kosmico__lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.kosmico__mark {
  width: 44px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(39, 119, 225, 0.35));
}
.kosmico__title { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.kosmico__desc { color: var(--muted); margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; }
.kosmico__cta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--accent-2);
  border-radius: 7px;
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: inline-block;
}
.kosmico__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 196, 250, 0.28);
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dim);
}
.foot__inner {
  max-width: var(--maxw-board);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Article pages (research deep-dives)
   ============================================================ */
.article { padding-top: 130px; padding-bottom: 90px; max-width: 760px; }
.article__back {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.article__back:hover { color: var(--accent); gap: 12px; }
.article__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.032em;
  margin: 0 0 18px;
}
.article__lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 26px;
}
.article__meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-dim);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
}
.article__meta b { color: var(--text); font-weight: 500; }
.article__meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  font-weight: 600;
}
.article__meta a:hover { background: var(--accent-dim); }

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 46px 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.prose h3 { font-size: 16.5px; font-weight: 600; margin: 32px 0 10px; color: var(--text); }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 16.5px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.prose a:hover { background: var(--accent-dim); }
.prose ul { color: var(--muted); padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 9px; font-size: 16px; }
.prose li::marker { color: var(--accent); }
.prose code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent);
}

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--bg-elev);
  padding: 20px 24px;
  margin: 30px 0;
}
.callout__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 15.5px; }

.article__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  flex-wrap: wrap;
}
.article__nav a { color: var(--muted); text-decoration: none; transition: color .25s var(--ease); }
.article__nav a:hover { color: var(--accent); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__role, .hero__affil, .eps, .hero__title { opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  body::after { animation: none; }
}
