/* ==========================================================================
   Dr. Satchin Panda — static homepage
   Source design: "Satchin Panda Homepage - New Full Content Layout"
   ========================================================================== */

@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  --bg1: #FBF9F4;
  --bg2: #F2EEE3;
  --text: #16211F;
  --text-rgb: 22, 33, 31;
  --bg1-rgb: 251, 249, 244;

  --accent: oklch(0.52 0.10 55);
  --accent-warm: oklch(0.58 0.10 55);
  --accent-cool: oklch(0.48 0.09 205);
  --link: oklch(0.50 0.09 205);
  --link-hover: oklch(0.60 0.10 55);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --line: rgba(var(--text-rgb), 0.14);
  --line-strong: rgba(var(--text-rgb), 0.16);
  --maxw: 1300px;
  --gutter: clamp(20px, 4vw, 46px);
  --pad-y: clamp(40px, 5vw, 64px);
}

html[data-theme="dark"] {
  --bg1: #14201F;
  --bg2: #1B2826;
  --text: #F5F2EA;
  --text-rgb: 245, 242, 234;
  --bg1-rgb: 20, 32, 31;

  --accent: oklch(0.74 0.10 60);
  --accent-warm: oklch(0.78 0.10 60);
  --accent-cool: oklch(0.80 0.07 205);
  --link: oklch(0.80 0.07 205);
  --link-hover: oklch(0.82 0.09 60);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg1);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background 200ms ease, color 200ms ease;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: oklch(0.80 0.09 55 / .4); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- Shared ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg2); }
.section > .container { padding-block: var(--pad-y); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.5);
  margin-bottom: 22px;
}
.eyebrow--accent { color: var(--accent); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.h2--sm { font-size: clamp(28px, 4vw, 40px); line-height: 1.16; }
.h2--md { font-size: clamp(30px, 4vw, 42px); line-height: 1.16; }

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(var(--text-rgb), 0.68);
  max-width: 60ch;
  margin: 0 0 44px;
}

.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn--solid { background: var(--text); color: var(--bg1); }
.btn--solid:hover { background: var(--accent-warm); color: var(--bg1); }
.btn--outline { border-color: rgba(var(--text-rgb), 0.3); color: var(--text); }
.btn--outline:hover { border-color: var(--text); background: rgba(var(--text-rgb), 0.04); color: var(--text); }

.link-arrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.35);
  padding-bottom: 4px;
  color: var(--text);
}
.link-arrow:hover { color: var(--accent-warm); border-color: var(--accent-warm); }

.flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #8A5A24;
  background: #F3E6D8;
  padding: 3px 9px;
  border-radius: 3px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg1-rgb), 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 46px);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.brand { display: block; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 7.23px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.55);
  margin-top: 5px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(var(--text-rgb), 0.22);
  border-radius: 2px;
  padding: 11px 10px;
  cursor: pointer;
  align-items: center;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a { color: rgba(var(--text-rgb), 0.72); }
.nav-links a:hover { color: var(--link-hover); }
.nav-cta {
  background: var(--text);
  color: var(--bg1) !important;
  padding: 10px 20px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  margin-left: 6px;
  transition: background 180ms ease;
}
.nav-cta:hover { background: var(--accent-warm); }
.theme-btn {
  background: transparent;
  border: 1px solid rgba(var(--text-rgb), 0.28);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

@media (max-width: 899px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    width: 100%;
    order: 3;
    padding: 18px 0 6px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    white-space: normal;
  }
  .nav-links.is-open { display: flex; }
  .no-js .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
  .theme-btn { width: 44px; height: 44px; font-size: 17px; margin-top: 4px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 88% 4%, oklch(0.86 0.07 70 / .55) 0%, transparent 60%),
    radial-gradient(60% 60% at 4% 96%, oklch(0.88 0.05 205 / .5) 0%, transparent 62%);
  pointer-events: none;
}
html[data-theme="dark"] .hero-bg { opacity: 0.32; }
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 60px) var(--gutter) clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin: 0 0 26px;
  text-wrap: pretty;
}
.hero-title em { font-style: italic; color: var(--accent-cool); }
.hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(var(--text-rgb), 0.7);
  max-width: 38ch;
  margin: 0 0 38px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; margin: 0; }
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 471px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 5px solid #FFFFFF;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  left: 24px;
  bottom: -34px;
  background: var(--bg1);
  border: 1px solid rgba(var(--text-rgb), 0.16);
  padding: 13px 19px;
  max-width: calc(100% - 48px);
}
.hero-card-name { font-family: var(--serif); font-size: 22px; }
.hero-card-name em { font-style: italic; }
.hero-card-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.55);
  margin-top: 6px;
}
@media (max-width: 619px) {
  .hero-figure { padding-bottom: 44px; }
  .hero-card { left: 12px; bottom: -20px; }
}

/* ---------- Authority bar ---------- */
.authority { background: var(--bg2); border-bottom: 1px solid var(--line); }
.authority-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  align-items: stretch;
}
.auth-item { padding: 18px 22px 0; border-top: 1px solid var(--line-strong); }
.auth-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.auth-value { font-family: var(--serif); font-size: 16.5px; line-height: 1.35; }
@media (max-width: 559px) { .auth-item { padding-inline: 0; } }

/* ---------- Big idea + dial ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.idea-body p {
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(var(--text-rgb), 0.7);
  margin: 0 0 20px;
  max-width: 46ch;
  text-wrap: pretty;
}
.idea-body p:last-of-type { margin-bottom: 34px; }
.dial-col { display: flex; flex-direction: column; gap: 34px; align-items: center; min-width: 0; width: 100%; }
.dial { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; }
.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #1B2A33 0deg, #2A3B44 62deg,
    oklch(0.84 0.09 62) 100deg, oklch(0.93 0.05 95) 155deg,
    oklch(0.90 0.045 205) 205deg, oklch(0.82 0.08 55) 288deg,
    #2A3B44 328deg, #1B2A33 360deg);
}
.dial-core {
  position: absolute;
  inset: clamp(40px, 16.3%, 62px);
  border-radius: 50%;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(14px, 6%, 30px);
}
.dial-panel { display: none; }
.dial-panel.is-active { display: block; }
.no-js .dial-panel { display: block; }
.no-js .dial-panel + .dial-panel { margin-top: 10px; }
.dial-clock {
  font-family: var(--mono);
  font-size: clamp(9px, 2.6vw, 10.5px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.dial-name { font-family: var(--serif); font-size: clamp(22px, 7vw, 30px); line-height: 1.1; margin: 12px 0 10px; }
.dial-summary { font-size: clamp(11.5px, 3.2vw, 13.5px); line-height: 1.55; color: rgba(var(--text-rgb), 0.65); }
.dial-mark {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #16211F;
}
.dial-mark--12am { top: 20px; left: 50%; transform: translateX(-50%); color: #F5F2EA; }
.dial-mark--6am { right: 12px; top: 50%; transform: translateY(-50%); }
.dial-mark--12pm { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dial-mark--6pm { left: 14px; top: 50%; transform: translateY(-50%); }

.phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 100%; }
.phase-row {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 16px 18px;
  border: 0;
  border-top: 2px solid var(--line-strong);
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.phase-row.is-active { border-top-color: oklch(0.62 0.10 55); background: rgba(var(--text-rgb), 0.045); }
.phase-clock {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.5);
}
.phase-name { display: block; font-family: var(--serif); font-size: 19px; margin-top: 4px; }
.phase-chain { display: block; font-size: 12.5px; line-height: 1.5; color: rgba(var(--text-rgb), 0.62); margin-top: 6px; }
@media (max-width: 419px) { .phase-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Research programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 899px) { .programs-grid { grid-template-columns: minmax(0, 1fr); } }
.program-list { display: flex; flex-direction: column; }
.program-row {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  opacity: 0.55;
  transition: opacity 180ms ease;
}
.program-row.is-active { opacity: 1; }
.program-row:hover { opacity: 0.85; }
.program-row.is-active:hover { opacity: 1; }
.program-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.program-idx { color: var(--accent); }
.program-count { color: rgba(var(--text-rgb), 0.45); }
.program-name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.program-focus { display: block; font-size: 13.5px; line-height: 1.5; color: rgba(var(--text-rgb), 0.6); margin: 0; }

.program-panels { min-width: 0; }
.program-panel {
  display: none;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 30px);
  min-width: 0;
  overflow: hidden;
}
.program-panel.is-active { display: block; }
.no-js .program-panel { display: block; }
.no-js .program-panel + .program-panel { margin-top: 18px; }
.program-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 22px;
  background: var(--bg2);
}
.program-panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.program-panel-focus { font-size: 15.5px; color: rgba(var(--text-rgb), 0.68); margin: 0 0 24px; line-height: 1.6; }
.paper-list { display: flex; flex-direction: column; gap: 14px; max-height: 340px; overflow-y: auto; padding-right: 6px; }
.paper { padding-top: 14px; border-top: 1px solid rgba(var(--text-rgb), 0.12); }
.paper-title { font-family: var(--serif); font-size: 14.5px; font-weight: 500; line-height: 1.4; margin: 0 0 4px; color: var(--text); }
.paper-meta { font-size: 12.5px; line-height: 1.5; color: rgba(var(--text-rgb), 0.5); margin: 0; }
.pubmed-note { font-size: 13.5px; line-height: 1.6; color: rgba(var(--text-rgb), 0.5); margin: 32px 0 0; }

/* ---------- In his words ---------- */
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.words-body { min-width: 0; }
.words-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 34px; max-width: 26ch; }
.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 16px;
}
.pill {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(var(--text-rgb), 0.2);
  background: transparent;
  color: rgba(var(--text-rgb), 0.65);
  font-weight: 400;
  transition: all 180ms ease;
}
.pill.is-active { border-color: var(--text); background: var(--text); color: var(--bg1); font-weight: 600; }
.chapter { display: none; }
.chapter.is-active { display: block; }
.no-js .chapter { display: block; }
.no-js .chapter + .chapter { margin-top: 24px; }
.chapter-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.chapter-body { font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.75; color: rgba(var(--text-rgb), 0.78); margin: 0; text-wrap: pretty; }
.words-figure { margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.words-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 12%;
  background: var(--bg2);
  border-radius: 6px;
}
@media (max-width: 899px) { .words-figure { justify-self: start; } }

/* ---------- Books ---------- */
.books-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(28px, 4vw, 54px); }
.books-head .h2 em { font-style: italic; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.book-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}
.book-cover { border: 1px solid rgba(var(--text-rgb), 0.12); position: sticky; top: 24px; margin: 0; }
.book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book-publisher {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.book-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 29px); line-height: 1.15; margin: 6px 0 14px; }
.book-blurb { font-size: 15px; line-height: 1.65; color: rgba(var(--text-rgb), 0.68); margin: 0; }

/* ---------- Science conversations ---------- */
.subhead { font-family: var(--serif); font-size: 18px; margin: 0 0 16px; }
.subhead--spaced { margin-top: 40px; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 48px; }
.start-card {
  display: block;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease;
}
.start-card:hover { color: var(--text); border-color: rgba(var(--text-rgb), 0.35); transform: translateY(-2px); }
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg2);
  border-radius: 6px;
  margin-bottom: 12px;
}
.start-name { font-family: var(--serif); font-size: 16px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }
.start-host { font-size: 13px; color: rgba(var(--text-rgb), 0.5); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tab {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid rgba(var(--text-rgb), 0.25);
  color: rgba(var(--text-rgb), 0.7);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.tab.is-active { background: var(--text); border-color: var(--text); color: var(--bg1); }

.video-panel { display: none; }
.video-panel.is-active { display: block; }
.no-js .video-panel { display: block; }
.no-js .video-panel + .video-panel { margin-top: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.video-card {
  display: block;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease;
}
.video-card:hover { color: var(--text); border-color: rgba(var(--text-rgb), 0.35); transform: translateY(-2px); }
.video-card .thumb { border-radius: 0; margin-bottom: 0; }
.video-body { padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.video-label { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; min-width: 0; }
.badge-tedx {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #E63F3F;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.video-card .flag { margin: 0 16px 14px; font-size: 10.5px; }
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; max-width: 480px; }
.short-name { padding: 12px 14px; font-size: 13.5px; font-weight: 500; }

/* ---------- By the numbers ---------- */
.stats { border-bottom: 1px solid var(--line); background: #FFFFFF; }
html[data-theme="dark"] .stats { background: var(--bg2); }
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding-right: clamp(16px, 2.5vw, 28px); border-right: 1px solid rgba(var(--text-rgb), 0.25); }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat strong { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; line-height: 1; }
.stat span { font-size: 14px; color: rgba(var(--text-rgb), 0.75); }
@media (max-width: 619px) { .stat { border-right: 0; padding-right: 0; } }

/* ---------- In the news ---------- */
.outlets-band { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 20px 0; margin-bottom: 40px; }
.outlets-label { font-size: 13px; color: rgba(var(--text-rgb), 0.5); margin: 0 0 12px; }
.outlets-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 899px) { .outlets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 619px) { .outlets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outlet {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  color: rgba(var(--text-rgb), 0.72);
  text-align: center;
  line-height: 1.25;
}
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.news-card {
  display: block;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
  padding: 16px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.news-card:hover { color: var(--text); border-color: rgba(var(--text-rgb), 0.35); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.news-outlet { font-size: 12px; font-weight: 500; color: #55503F; background: #E9E4D8; padding: 3px 10px; border-radius: 3px; }
.news-date { font-size: 13px; color: rgba(var(--text-rgb), 0.5); }
.news-title { font-family: var(--serif); font-size: 15.5px; font-weight: 500; line-height: 1.4; margin: 0; }

/* ---------- Speaking ---------- */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.speaking-lead { font-size: 17px; line-height: 1.68; color: rgba(var(--text-rgb), 0.68); margin: 0 0 34px; max-width: 46ch; }
.topics-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.5);
  margin-bottom: 22px;
}
.topic-list { display: flex; flex-direction: column; }
.topic { border-top: 1px solid var(--line-strong); padding: 18px 0; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); }
.topic:last-child { border-bottom: 1px solid var(--line-strong); }

/* ---------- Publications ---------- */
.pub-year { border-top: 1px solid var(--line-strong); padding: 20px 0; }
.pub-year > summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
}
.pub-year > summary::-webkit-details-marker { display: none; }
.pub-year h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.6vw, 24px); margin: 0; }
.pub-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); white-space: nowrap; }
.pub-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.pub-item {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.68);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.more-wrap { text-align: center; margin-top: 32px; }
.more-btn {
  display: inline-block;
  cursor: pointer;
  padding: 13px 28px;
  border: 1px solid var(--text);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: background 180ms ease, color 180ms ease;
}
.more-btn:hover { background: var(--text); color: var(--bg1); }
.pub-year[hidden] { display: none; }
/* Without scripting there is no "show more" button, so every year is shown. */
.no-js .more-wrap { display: none; }
.no-js .pub-year[hidden] { display: block; }

/* ---------- Connect ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.connect-body p { font-size: 16px; line-height: 1.68; color: rgba(var(--text-rgb), 0.7); margin: 0 0 20px; max-width: 48ch; }
.connect-body p.connect-note { font-size: 15px; line-height: 1.6; color: rgba(var(--text-rgb), 0.62); margin-bottom: 8px; }
.connect-loc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(var(--text-rgb), 0.5); margin-top: 30px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form input, .form textarea {
  background: var(--bg1);
  border: 1px solid rgba(var(--text-rgb), 0.2);
  color: var(--text);
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 4px;
  font-family: inherit;
  width: 100%;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(var(--text-rgb), 0.45); }
.btn-send {
  background: var(--text);
  color: var(--bg1);
  border: none;
  padding: 15px 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 180ms ease;
}
.btn-send:hover { background: var(--accent-warm); }
.form-status { font-size: 13px; color: rgba(var(--text-rgb), 0.6); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 26px; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 62px) var(--gutter) 38px;
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(110px, 1fr));
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(110px, 1fr)); } }
@media (max-width: 619px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { min-width: 0; }
.footer-brand .brand-name { white-space: nowrap; }
.footer-brand .brand-tag { margin-bottom: 22px; }
.footer-blurb { font-size: 14.5px; line-height: 1.65; color: rgba(var(--text-rgb), 0.6); margin: 0; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; line-height: 1.4; align-items: flex-start; text-align: left; }
.footer-col a { color: rgba(var(--text-rgb), 0.75); }
.footer-col a:hover { color: var(--link-hover); }
.footer-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.45);
  margin-bottom: 4px;
}
.copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 44px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.45);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg1); padding: 12px 18px;
}
.skip-link:focus { left: 0; color: var(--bg1); }
