/* =========================================================
   The Dawn Staley Project — styles.css
   Editorial neutral system with brand-yellow accent
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #4A4A4A;
  --muted-2: #8A8A8A;
  --hairline: #E5E5E5;
  --hairline-strong: #1A1A1A;
  --accent-yellow: #F1E263; /* exact brand yellow from @theblacktechie banner */
  --accent-yellow-soft: rgba(241, 226, 99, 0.55);
  --accent-yellow-hover: #F7EC85;
  --garnet: #6B0F1A;
  --max-w: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif-italic: "Inter", system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11", "cv02";
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter) 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.brand-divider {
  color: var(--muted-2);
  font-weight: 300;
}

.brand-stamp {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  background: linear-gradient(transparent 55%, var(--accent-yellow-soft) 55%);
  padding: 0 4px;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding-bottom: 7px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-link:hover { border-color: var(--ink); }

.nav-link.active {
  font-weight: 600;
  border-color: var(--accent-yellow);
  border-bottom-width: 3px;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 28px) var(--gutter) clamp(14px, 2.2vw, 28px);
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content:focus,
.tab-content:focus-visible { outline: none; }

/* =========================================================
   PAGE HEAD (used on Project, Road, Work, About)
   ========================================================= */
.page-head {
  text-align: center;
  margin-bottom: clamp(14px, 1.8vw, 24px);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 10px;
}

.page-title em { font-style: italic; font-weight: 700; }

.page-subhead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  margin: 0 auto 4px;
  max-width: 900px;
  line-height: 1.4;
}

.page-subhead em { font-style: italic; }

.page-subnote {
  font-size: 13px;
  color: var(--muted-2);
  margin: 2px auto 0;
  max-width: 700px;
}

.text-mono {
  font-feature-settings: "tnum";
  letter-spacing: -0.005em;
}

/* =========================================================
   HOME — HERO
   ========================================================= */
.home-hero {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 0;
}

.display-title {
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 8px 0 12px;
  white-space: nowrap;
}

.garnet { color: var(--garnet); }

.dissertation-subhead {
  font-size: clamp(20px, 2.0vw, 26px);
  color: var(--ink);
  margin: 0 auto 4px;
  font-style: italic;
  font-weight: 500;
}

.dissertation-topic {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--muted);
  margin: 0 auto 16px;
  font-style: italic;
}

.body-lead {
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 980px;
  margin: 0 auto 18px;
  text-wrap: balance;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 16px 30px;
  border-radius: 0;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
  min-height: 52px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-yellow);
  color: var(--ink);
}

.btn-primary:hover { background: var(--accent-yellow-hover); }

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
}

.btn-secondary:hover { background: #FAFAFA; }

/* Figure card */
.figure-card {
  margin: 14px auto 0;
  max-width: 900px;
  padding: 18px 20px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
}

.figure-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.figure-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.forthcoming-stamp {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: linear-gradient(transparent 55%, var(--accent-yellow-soft) 55%);
  padding: 0 5px;
  color: var(--ink);
}

.figure-title {
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 600;
  margin: 4px 0 10px;
  letter-spacing: -0.015em;
}

.figure-chart svg {
  width: 100%;
  height: auto;
  max-height: 280px;
}

.chart-label {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--muted-2);
  letter-spacing: 0.10em;
}

.figure-caption {
  font-size: 13px;
  color: var(--muted-2);
  margin: 6px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   PROJECT TAB
   ========================================================= */
.title-break { display: inline; white-space: pre; }

/* Project title needs to fit "(i.e. project)." on one line on desktop */
#project .page-title {
  font-size: clamp(36px, 4.4vw, 58px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* About title: accommodate credentials cleanly */
#about .page-title {
  font-size: clamp(34px, 4.6vw, 64px);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

#work .page-subhead {
  max-width: 1080px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 16px;
  margin-bottom: 22px;
}

.pillar { text-align: center; }

.pillar-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.pillar-title {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 8px;
  text-wrap: balance;
}

.pillar-title em { font-style: italic; }

.pillar-body {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}

.pillar-body em { font-style: italic; }

/* Foundations diagram */
.foundations {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  text-align: center;
}

.foundations-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.foundations-diagram {
  max-width: 1000px;
  margin: 0 auto;
}

.foundations-diagram svg {
  width: 100%;
  height: auto;
  max-height: 320px;
}

.thread-label text {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--muted);
}

.thread-label .thread-name {
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.015em;
}

.focal-label {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--muted);
}

.focal-name {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.015em;
}

.foundations-caption {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px auto 0;
  max-width: 1280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   ROAD TAB
   ========================================================= */
.timeline-wrap.timeline-horizontal {
  margin: 16px auto 16px;
  max-width: 1400px;
  width: 100%;
}

.timeline-horizontal svg {
  width: 100%;
  height: auto;
  max-height: 380px;
}

#road .page-subhead {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
}

/* Road tab — clean, compact, no flex-stretch white space */
#road .timeline-wrap.timeline-horizontal {
  margin: 12px auto 8px;
}

#road .timeline-wrap.timeline-horizontal svg {
  max-width: 100%;
}

#road .legend {
  margin-top: 6px;
  margin-bottom: 4px;
}

.year-tick line { stroke: var(--ink); stroke-width: 1; }

.year-label text {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  fill: var(--muted-2);
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.event-above text, .event-below text {
  font-family: inherit;
  text-anchor: middle;
}

.event-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  fill: var(--muted);
}

.event-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  fill: var(--ink);
}

.event-detail {
  font-size: 13.5px;
  font-weight: 400;
  fill: var(--muted);
}

.event-thread {
  font-size: 13px;
  fill: var(--muted-2);
}

.event-future-meta { fill: var(--muted-2); }
.event-future-title { fill: var(--muted-2); }
.event-future-detail { fill: var(--muted-2); }

.timeline-vertical { display: none; }

.legend {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-past { background: var(--ink); }
.dot-current { background: var(--ink); box-shadow: 0 0 0 4px var(--accent-yellow); }
.dot-future { background: transparent; border: 1.5px solid var(--ink); }

/* =========================================================
   WORK TAB
   ========================================================= */
.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease;
}

.inline-link:hover { text-decoration-thickness: 2px; }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 14px 16px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

a.work-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.work-card-pending { cursor: default; }

.work-thumb {
  background: #FAFAFA;
  border: 1px solid var(--hairline);
  margin: 0 0 10px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-thumb svg {
  width: 88%;
  height: auto;
  max-height: 150px;
}

.work-thumb-pending {
  border-style: dashed;
  background: #F8F8F8;
}

.in-progress-stamp {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  border: 1px dashed var(--muted-2);
  padding: 8px 16px;
}

.work-meta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 6px;
}

.work-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-stamp {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.work-body {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 8px;
}

.work-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.work-link-muted {
  color: var(--muted-2);
  text-decoration-style: dotted;
}

.work-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* =========================================================
   ABOUT TAB
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.85fr;
  gap: 24px;
  margin-bottom: 12px;
  align-items: start;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-bio { }

.bio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bio-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.bio-handle {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.bio-paragraph {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 9px;
}

.bio-paragraph:last-child { margin-bottom: 0; }

.about-section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.committee-intro {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: -4px 0 14px;
  line-height: 1.5;
  max-width: 520px;
}

.committee-list,
.connect-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.committee-list li {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.committee-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.committee-list .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.committee-list .name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
}

a.name {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  width: fit-content;
}

a.name:hover {
  border-bottom-color: var(--ink);
}

.committee-list .credential {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 1px;
}

.committee-list .credential em {
  font-style: italic;
}

/* Vertical social list */
.about-section-label-spaced {
  margin-top: 18px;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list li {
  margin-bottom: 6px;
}

.social-list li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  letter-spacing: -0.005em;
  display: inline-block;
}

.social-list li a:hover {
  text-decoration-thickness: 2px;
  background: var(--accent-yellow-soft);
}

.connect-list li {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.connect-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.connect-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

a.connect-value, .connect-value a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--ink);
}

a.connect-value:hover, .connect-value a:hover {
  text-decoration-thickness: 2px;
}

.connect-value a { font-weight: 500; }

.connect-note {
  font-size: 12px;
  color: var(--muted-2);
  font-style: italic;
}

.connect-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.connect-social a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--ink);
  font-weight: 500;
}

.connect-social a:hover {
  text-decoration-thickness: 2px;
  background: var(--accent-yellow-soft);
}

/* Citation */
.citation-block {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 4px;
  text-align: center;
}

.citation-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.citation-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 900px;
}

.citation-text em { font-style: italic; }

.citation-url {
  font-feature-settings: "tnum";
  color: var(--ink);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 18px var(--gutter);
  text-align: center;
}

.footer-text {
  font-size: 12.5px;
  color: var(--muted-2);
  margin: 0;
  letter-spacing: -0.005em;
}

.footer-text-mobile { display: none; }

/* =========================================================
   RESPONSIVE — TABLET (≤ 900px)
   ========================================================= */
@media (max-width: 900px) {
  .site-header {
    padding: 16px var(--gutter) 12px;
    gap: 10px;
  }

  .display-title {
    font-size: clamp(34px, 7vw, 52px);
    white-space: nowrap;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pillar-title { min-height: 0; }
  .pillar-body { min-height: 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-bio,
  .about-committee,
  .about-connect {
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 22px;
  }

  .about-connect { border-bottom: 0; }

  #road .timeline-wrap.timeline-horizontal,
  .timeline-horizontal { display: none !important; }
  .timeline-vertical { display: block; }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .work-thumb { height: 150px; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  /* HEADER — centered everything */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px var(--gutter) 8px;
  }

  .brand-row {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-name { font-size: 16px; }
  .brand-stamp { font-size: 11px; }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    font-size: 13.5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* HOME on mobile */
  main {
    padding: 10px var(--gutter) 14px;
  }

  .home-hero { text-align: center; padding-top: 0; }

  .kicker {
    font-size: 9.5px;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    white-space: normal;
    line-height: 1.4;
    text-wrap: balance;
    padding: 0 6px;
  }

  .display-title {
    font-size: 28px;
    letter-spacing: -0.035em;
    margin: 4px 0 10px;
    white-space: nowrap;
  }

  .dissertation-subhead {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .dissertation-topic {
    font-size: 13.5px;
    margin-bottom: 14px;
    line-height: 1.4;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .body-lead {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: none;
  }

  .cta-row {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 22px;
  }

  .btn {
    font-size: 13px;
    padding: 11px 14px;
    min-height: 42px;
    flex: 1 1 auto;
  }

  /* Figure card */
  .figure-card {
    padding: 12px 12px 10px;
    margin-top: 12px;
  }

  .figure-title {
    font-size: 15px;
    line-height: 1.3;
  }

  .figure-caption {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.4;
  }

  /* PAGE HEADS */
  .page-head { margin-bottom: 12px; }

  .page-title {
    font-size: 34px;
    letter-spacing: -0.035em;
  }

  .page-subhead {
    font-size: 13.5px;
    line-height: 1.45;
    max-width: none;
  }

  .page-subnote {
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.4;
  }

  /* PROJECT — break (i.e. project) onto its own line */
  #project .title-break {
    display: block;
    white-space: normal;
    height: 2px;
  }
  #project .page-title {
    font-size: 26px;
    line-height: 1.15;
    white-space: normal;
  }
  #project .page-title em { display: inline; }

  .pillars { padding-top: 14px; gap: 16px; margin-bottom: 18px; }

  .pillar-num { letter-spacing: 0.12em; font-size: 11px; }

  .pillar-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .pillar-body { font-size: 13px; line-height: 1.5; }

  .foundations-diagram svg { max-height: none; }

  .foundations-caption {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.45;
    margin-top: 10px;
  }

  /* WORK on mobile — subhead can wrap */
  #work .page-subhead {
    white-space: normal;
    overflow: visible;
  }

  /* ROAD — vertical only */
  #road .page-head { margin-bottom: 8px; }

  #road .page-subhead {
    font-size: 12.5px;
    max-width: none;
    line-height: 1.45;
  }

  .timeline-vertical {
    list-style: none;
    margin: 4px auto 8px;
    padding: 0;
    position: relative;
    max-width: 320px;
  }

  .timeline-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--hairline);
    transform: translateX(-0.5px);
  }

  .vt-event {
    position: relative;
    text-align: center;
    padding: 6px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .vt-dot {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin: 0 auto 4px;
    position: relative;
    z-index: 1;
    background: var(--bg);
  }

  .vt-past .vt-dot { background: var(--ink); }
  .vt-current .vt-dot {
    background: var(--ink);
    box-shadow: 0 0 0 4px var(--accent-yellow);
  }
  .vt-future .vt-dot {
    background: var(--bg);
    border: 1.5px solid var(--ink);
  }

  .vt-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    color: var(--muted);
    text-transform: uppercase;
  }

  .vt-title {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-top: 0;
    line-height: 1.2;
  }

  .vt-detail {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
  }

  .vt-thread {
    font-size: 11.5px;
    color: var(--muted-2);
    font-style: italic;
  }

  .vt-future .vt-title,
  .vt-future .vt-detail,
  .vt-future .vt-meta {
    color: var(--muted-2);
  }

  .legend {
    gap: 14px;
    margin-top: 6px;
  }

  .legend-item { font-size: 10px; gap: 6px; }
  .dot { width: 10px; height: 10px; }

  /* WORK */
  .work-grid { gap: 14px; }
  .work-thumb { height: 130px; }
  .work-title { font-size: 17px; }
  .work-body { font-size: 13px; }
  .work-cta-row .btn { font-size: 12.5px; padding: 12px 12px; }

  /* ABOUT — fully centered, compact */
  #about .page-head { margin-bottom: 12px; }
  #about .page-title {
    font-size: 24px;
    line-height: 1.18;
    white-space: normal;
    text-wrap: balance;
  }
  #about .page-subhead { font-size: 13px; }

  .about-grid { gap: 18px; }

  .about-bio { text-align: center; }

  .bio-row { justify-content: center; gap: 10px; margin-bottom: 10px; }

  .bio-paragraph {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 8px;
  }

  .about-committee,
  .about-connect {
    text-align: center;
  }

  .committee-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .committee-list li {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .connect-list li {
    align-items: center;
  }

  .committee-list .credential {
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
  }

  a.name { width: auto; }

  .connect-value {
    text-align: center;
    line-height: 1.6;
  }

  .social-list {
    text-align: center;
  }

  .social-list li {
    margin-bottom: 5px;
  }

  .citation-text { font-size: 11.5px; text-align: center; line-height: 1.5; }

  /* FOOTER on mobile */
  .footer-text { display: none; }
  .footer-text-mobile {
    display: block;
    font-size: 10.5px;
    letter-spacing: -0.005em;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer { padding: 12px var(--gutter); }
}

/* =========================================================
   SMALL PHONES (≤ 380px) — extra tightening
   ========================================================= */
@media (max-width: 380px) {
  .display-title { font-size: 25px; }
  #project .page-title { font-size: 24px; }
  #about .page-title { font-size: 24px; }
  .page-title { font-size: 30px; }
  .footer-text-mobile { font-size: 9.5px; }
  .nav-link { font-size: 12.5px; }
  .site-nav { gap: 12px; }
  .kicker { font-size: 8.5px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
