/* =========================================================
   Tyree Sloan — Engineering Portfolio
   Design system: warm ivory / near-black ink / electric-blue accent,
   with deep navy kept as a deliberately selective dark surface
   (footer, homepage credibility band, interactive demo panels).
   Typography: Source Serif 4 (display) + IBM Plex Sans (body) +
   IBM Plex Mono (labels/data)
   ========================================================= */

:root {
  /* ---- Light editorial palette (primary) ---- */
  --ivory-50: #FAF7F1;
  --ivory-100: #F1EBDD;
  --paper-line: rgba(21, 20, 15, 0.10);
  --paper-line-strong: rgba(21, 20, 15, 0.18);

  --ink-900: #15140F;
  --ink-700: #3D3A33;
  --ink-500: #6B6659;
  --ink-300: #A39C8C;

  /* ---- Dark tokens — kept for selective dark surfaces only:
     footer, homepage credibility band, and the UNMASK/WHISPER
     interactive demo panels (scenario card, risk meter, spectrum
     slider, pipeline steps). Do not use these for general page
     backgrounds. ---- */
  --navy-950: #070c15;
  --navy-900: #0c1424;
  --navy-800: #101a2e;
  --navy-700: #16223a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-100: #f1f4f9;
  --text-300: #c3cdde;
  --text-500: #8b98af;
  --text-600: #6b7891;

  /* Legacy accent set — used only inside dark embedded panels */
  --cyan-400: #4fd8ef;
  --cyan-300: #8fe8f5;
  --blue-500: #3e7cb1;
  --blue-700: #274a6b;
  --ok-400: #4ade80;
  --warn-400: #fbbf24;

  /* ---- Primary accent — electric blue, for light-background surfaces
     (also used on dark backgrounds where noted) ---- */
  --accent-600: #2151F5;
  --accent-500: #3B6BFF;
  --accent-100: #E7EDFF;

  /* Status colors tuned for light backgrounds (status badges) */
  --ok-600: #15803D;
  --ok-bg: #DCFCE7;
  --warn-600: #B45309;
  --warn-bg: #FEF3C7;

  /* ---- Type ---- */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Layout ---- */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--ink-900);
  color: var(--ivory-50);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--ivory-100); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }

/* Selective dark surface — footer, homepage credibility band */
.section-dark { background: var(--navy-950); color: var(--text-300); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-100); }
.section-dark p { color: var(--text-300); }
.section-dark .eyebrow { color: var(--accent-500); }
.section-dark .eyebrow::before { background: var(--accent-500); }
.section-dark .btn-ghost { color: var(--text-100); border-color: var(--line-strong); }
.section-dark .btn-ghost:hover { border-color: var(--accent-500); color: var(--accent-500); }

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 17px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-600);
}

h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink-900); font-weight: 600; }
h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-900); font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; color: var(--ink-900); font-weight: 600; }
h4 { font-size: 15px; color: var(--ink-900); font-weight: 600; }
p { color: var(--ink-700); }
.lede { font-size: 19px; color: var(--ink-700); max-width: 640px; }

/* ---------- Spec strip (signature element) ----------
   Monospace key:value metadata rows, echoing a technical
   datasheet / README header. Used atop project cards and
   case studies. */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-500);
  padding: 14px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  margin: 20px 0;
}
.spec-strip .spec-item { display: inline-flex; gap: 8px; align-items: baseline; }
.spec-strip .spec-key { color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.08em; }
.spec-strip .spec-val { color: var(--accent-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: 0 10px 24px rgba(33, 81, 245, 0.16); }
.btn-primary:hover { background: var(--accent-500); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--paper-line-strong); }
.btn-ghost:hover { border-color: var(--accent-600); color: var(--accent-600); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 14px; }
.cta-row-links a { color: var(--ink-500); }
.cta-row-links a:hover { color: var(--accent-600); }

/* ---------- Homepage final CTA (centered closing statement) ---------- */
.cta-final { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final .lede { margin: 14px auto 0; }
.cta-final .cta-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory-100);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .brand-dot { color: var(--accent-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
}
.nav-links a {
  position: relative;
  color: var(--ink-500);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent-600);
  transition: width 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink-900); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 18px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Footer (selective dark surface) ---------- */
.site-footer {
  padding: 48px 0;
  background: var(--navy-950);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 28px;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .brand-dot { color: var(--accent-500); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; }
.footer-links a { color: var(--text-500); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent-500); }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-600); width: 100%; margin-top: 8px; }

/* ---------- Hero (simple text-intro pages) ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 0%, var(--accent-100), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .role-line {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-600);
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.hero .statement { font-size: 19px; color: var(--ink-700); margin-top: 22px; max-width: 640px; }

/* ---------- Homepage hero (full-width editorial artwork) ----------
   The artwork is a standalone image directly under the nav, sized to the
   page's .container measure — deliberately not part of a column layout,
   so it can never compress/crop/distort ty-sloan-hero.png. */
.home-hero { padding: 0; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Cards (editorial rule-topped blocks) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--ink-900);
  border-radius: 0;
  padding: 22px 0 0;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--accent-600); }
.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-600);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-500); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent-600);
  border: 1px solid rgba(33, 81, 245, 0.18);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-implemented { background: var(--ok-bg); color: var(--ok-600); border: 1px solid rgba(21, 128, 61, 0.25); }
.status-conceptual { background: var(--warn-bg); color: var(--warn-600); border: 1px solid rgba(180, 83, 9, 0.25); }

/* Project cards (Selected Work / Projects index) */
.project-card {
  background: var(--ivory-100);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--accent-600); transform: translateY(-3px); }
.project-card .project-role { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }
.project-card .project-question { font-family: var(--font-display); font-size: 19px; color: var(--ink-900); margin: 2px 0 4px; }
.project-card p { font-size: 15px; color: var(--ink-700); }
.project-card .card-link { color: var(--accent-600); font-weight: 600; font-size: 14.5px; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.project-card .card-link .arrow { transition: transform 0.15s ease; }
.project-card:hover .card-link .arrow { transform: translateX(3px); }

/* ---------- Homepage credibility band (selective dark surface) ---------- */
.narrative {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-300);
  max-width: 700px;
  margin: 0 0 52px;
  padding-left: 22px;
  border-left: 2px solid var(--accent-500);
}
.credibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 8px; }
.credibility-item h4 { color: var(--text-100); margin-bottom: 6px; }
.credibility-item p { color: var(--text-500); font-size: 14px; }
.credibility-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  background: var(--ivory-50);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 20px;
}
.credibility-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* ---------- Case study layout ---------- */
.case-hero {
  padding: 64px 0 40px;
  background: var(--ivory-100);
  border-bottom: 1px solid var(--paper-line);
}
.case-hero .back-link { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; }
.case-hero .back-link:hover { color: var(--accent-600); }

.case-section { padding: 56px 0; border-bottom: 1px solid var(--paper-line); }
.case-section:last-of-type { border-bottom: none; }
.case-section h2 { margin-bottom: 18px; }
.case-section h3 { margin: 26px 0 10px; }
.case-section p { margin-bottom: 14px; max-width: 760px; }
.case-section ul { margin: 0 0 14px; }
.case-section li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  max-width: 720px;
  font-size: 15.5px;
  color: var(--ink-700);
}
.case-section li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent-600);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 20px;
}
.capability-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--paper-line-strong);
  border-radius: 0;
  padding: 18px 0 0;
}
.capability-card h4 { margin-bottom: 8px; }
.capability-card p { font-size: 14px; color: var(--ink-500); margin-bottom: 12px; }

/* ---------- Interactive dark panels (UNMASK / WHISPER demos) ----------
   Deliberately unchanged from the original dark-navy system — these are
   the "selective dark contrast" the redesign brief allows, and main.js
   depends on these exact classes/IDs. Do not recolor for the light
   system. */
.pipeline-list { display: grid; gap: 12px; margin-top: 20px; }
.pipeline-step {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pipeline-step summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  font-weight: 600;
  color: var(--text-100);
  user-select: none;
}
.pipeline-step summary::-webkit-details-marker { display: none; }
.pipeline-step .step-num { font-family: var(--font-mono); color: var(--cyan-400); font-size: 12px; letter-spacing: 0.08em; }
.pipeline-step .step-q { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-600); font-weight: 400; }
.pipeline-step .step-icon { color: var(--text-600); transition: transform 0.2s ease; }
.pipeline-step[open] .step-icon { transform: rotate(45deg); }
.pipeline-step .step-body { padding: 0 20px 18px 124px; font-size: 14.5px; color: var(--text-500); }
.pipeline-step .step-body strong { color: var(--text-100); }

.scenario-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 560px;
}
.scenario-card .subtitle { color: var(--text-600); font-size: 13px; margin-bottom: 18px; }
.scenario-card h3,
.scenario-card h4 { color: var(--text-100); }
.q-list { display: grid; gap: 10px; margin-bottom: 18px; }
.q-item {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.q-item:hover { border-color: rgba(79, 216, 239, 0.3); }
.q-item .q-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.q-item .q-turn { font-family: var(--font-mono); font-size: 10.5px; color: var(--cyan-400); text-transform: uppercase; letter-spacing: 0.1em; }
.q-item .q-text { font-weight: 600; color: var(--text-100); font-size: 14.5px; flex: 1; }
.q-item .q-hint { font-size: 11px; color: var(--text-600); flex-shrink: 0; }
.q-item.revealed .q-hint { opacity: 0; }
.q-reveal { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.25s ease; }
.q-item.revealed .q-reveal { max-height: 140px; opacity: 1; margin-top: 10px; }
.q-answer { font-size: 13.5px; color: var(--text-300); font-style: italic; margin-bottom: 8px; }
.risk-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.risk-low { background: rgba(74, 222, 128, 0.12); color: var(--ok-400); }
.risk-mod { background: rgba(251, 191, 36, 0.12); color: var(--warn-400); }
.risk-high { background: rgba(220, 38, 38, 0.14); color: #f87171; }

.risk-meter { margin-bottom: 18px; }
.risk-meter-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-600); margin-bottom: 8px; }
.risk-track { height: 6px; background: var(--navy-700); border-radius: 999px; overflow: hidden; }
.risk-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan-400), var(--warn-400), #dc2626); transition: width 0.5s ease; }

.scenario-conclusion {
  border-left: 2px solid var(--cyan-400);
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--text-300);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.scenario-conclusion.visible { max-height: 200px; opacity: 1; }

.spectrum-panel {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 20px;
}
.spectrum-slider-row {
  margin-bottom: 26px;
  padding: 18px 20px;
  background: var(--navy-800);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.spectrum-slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.spl-blue { color: var(--cyan-400); }
.spl-dual { color: var(--warn-400); }
.spl-red { color: #f87171; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, #4fd8ef 0%, #fbbf24 50%, #dc2626 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 3px solid var(--text-100);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 3px solid var(--text-100);
  cursor: pointer;
}
.spectrum-zone-label {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.spectrum-row-item {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 14px;
  align-items: center;
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.25s ease;
}
.spectrum-row-item { color: var(--text-300); }
.spectrum-row-item.highlighted { background: rgba(79, 216, 239, 0.07); transform: translateX(4px); }
.spectrum-row-item.dimmed { opacity: 0.35; }
.spectrum-row-item .bar { height: 12px; border-radius: 999px; overflow: hidden; background: var(--navy-700); display: flex; }
.spectrum-row-item .blue-part { background: linear-gradient(90deg, #4fd8ef, #3e7cb1); }
.spectrum-row-item .red-part { background: linear-gradient(90deg, #fbbf24, #dc2626); }
.zone-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.zone { border-radius: var(--radius-md); padding: 18px; transition: opacity 0.4s ease, transform 0.3s ease; border: 1px solid var(--line); }
.zone.active-zone { transform: scale(1.02); border-color: rgba(79, 216, 239, 0.3); }
.zone.inactive-zone { opacity: 0.4; }
.zone h4 { color: var(--text-100); margin-bottom: 6px; }
.zone p { font-size: 13px; color: var(--text-500); margin: 0; }

/* ---------- Research archive entries ---------- */
.research-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--paper-line);
  align-items: start;
}
.research-entry:first-of-type { border-top: none; padding-top: 0; }
.research-entry-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-line-strong);
  box-shadow: 0 18px 36px rgba(21, 20, 15, 0.10);
}
.research-entry-body h3 { margin-bottom: 8px; }
.research-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  margin: 14px 0;
}
.research-meta strong { color: var(--ink-700); font-weight: 500; }
.research-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; font-size: 14px; }
.research-links a { color: var(--accent-600); font-weight: 600; }
.release-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-300); margin-top: 12px; max-width: 640px; }

/* ---------- Resume ---------- */
.resume-panel {
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-md);
  padding: 34px;
  background: var(--ivory-100);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.resume-panel .file-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-500); margin-top: 10px; }

.pub-entry {
  border: none;
  border-top: 1px solid var(--paper-line);
  border-radius: 0;
  padding: 22px 0;
  background: transparent;
}
.pub-entry:first-of-type { border-top: none; padding-top: 0; }
.pub-entry h3 { margin-bottom: 8px; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-500); margin-bottom: 14px; }
.pub-meta strong { color: var(--ink-700); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.contact-card {
  border: none;
  border-top: 1px solid var(--paper-line-strong);
  border-radius: 0;
  padding: 18px 0 0;
  background: transparent;
}
.contact-card .label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); margin-bottom: 10px; }
.contact-card a.value { color: var(--ink-900); font-size: 16px; font-weight: 600; }
.contact-card a.value:hover { color: var(--accent-600); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; align-items: start; }
.focus-list { display: grid; gap: 22px; }
.focus-item { border: none; border-top: 1px solid var(--paper-line-strong); border-radius: 0; padding: 16px 0 0; background: transparent; }
.focus-item h4 { margin-bottom: 6px; }
.focus-item p { font-size: 13.5px; color: var(--ink-500); margin: 0; }

/* ---------- Experience page: contextual federal-portrait feature ---------- */
.experience-feature {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}
.experience-feature figure { margin: 0; }
.experience-feature img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-line-strong);
}
.experience-feature figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-mono); color: var(--accent-600); font-size: 15px; margin-bottom: 16px; letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .experience-feature { grid-template-columns: 1fr; }
  .research-entry { grid-template-columns: 1fr; gap: 20px; }
  .research-entry-media { max-width: 220px; }

  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory-50);
    border-bottom: 1px solid var(--paper-line-strong);
    padding: 12px 24px 20px;
  }
  .site-header.open .nav-links a { padding: 10px 0; width: 100%; }

  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .zone-panels { grid-template-columns: 1fr; }
  .spectrum-row-item { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .pipeline-step summary { grid-template-columns: 1fr; }
  .pipeline-step .step-body { padding: 0 20px 18px; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .resume-panel { flex-direction: column; align-items: stretch; text-align: left; }
  .footer-links { gap: 14px; }
}
