/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--accent, #2D6A4F);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --card: #ffffff;
  --accent: #2D6A4F;
  --accent-soft: rgba(45, 106, 79, 0.18);
  --text: #000000;
  --muted: #333333;
  --border: #e5e7eb;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-pill: 0px;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: inherit;
}

/* FOCUS STYLES (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* SCREEN-READER ONLY (visually hidden, accessible to AT) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 40px;
  flex: 1;
  width: 100%;
}
/* princeton-shell is visually hidden via .sr-only class in HTML */

/* NAVBAR */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(16px, calc((100vw - 1120px) / 2 + 16px));
  margin-bottom: 0;
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
  backdrop-filter: blur(18px);
  transition: padding 0.35s ease;
}
/* Large nav state before scrolling */
.main-nav.nav-large {
  padding-top: 20px;
  padding-bottom: 20px;
}
.main-nav.nav-large .nav-brand-princeton {
  height: 68px;
}
.main-nav.nav-large .nav-brand-sep {
  height: 68px;
}
.main-nav.nav-large .nav-brand-mark {
  width: 68px;
  height: 68px;
}
.main-nav.nav-large .nav-link--primary {
  font-size: 2.6rem;
}
.main-nav.nav-large .nav-link {
  padding: 32px 12px;
  margin: -32px 0;
}
.main-nav.nav-large .nav-link--cta {
  padding: 8px 18px;
  margin: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-brand-princeton {
  height: 38px;
  object-fit: contain;
  transition: height 0.35s ease;
}
.nav-brand-sep {
  width: 2px;
  height: 38px;
  background: #000000;
  flex-shrink: 0;
  transition: height 0.35s ease;
}
.nav-brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-right: -8px;
  transition: width 0.35s ease, height 0.35s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  flex-wrap: nowrap;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.nav-item {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: #000000;
  padding: 22px 12px;
  margin: -22px 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  clip-path: inset(0 0 0 0);
}
.nav-link::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  right: 0;
  background: #B85C00;
  transform: translateY(-110%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
}
.nav-link:hover::before,
.nav-link:focus-visible::before {
  transform: translateY(0);
}
/* Custom focus indicator via ::before slide; fallback outline for reduced-motion */
.nav-link:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
/* Reset button defaults when used as nav-link */
button.nav-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  font-size: inherit;
}
/* JS-toggled open state for dropdown */
.nav-item--open > .nav-dropdown {
  display: block;
}
.nav-link--primary {
  font-weight: 700;
  color: #B85C00;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  transition: font-size 0.35s ease, color 0.2s ease;
}
.nav-link--cta {
  background: #B85C00;
  border-radius: 0;
  padding: 8px 18px;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(184, 92, 0, 0.3);
  white-space: nowrap;
}
.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}
.nav-link--cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
/* Disable orange rectangle on brand and CTA */
.nav-link--primary::before,
.nav-link--cta::before {
  display: none;
}
.nav-link--primary:hover,
.nav-link--primary:focus-visible {
  color: var(--accent);
}
.nav-link--cta:hover {
  color: #ffffff;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(30, 50, 40, 0.1);
  padding: 6px 0;
  min-width: 200px;
  display: none;
  list-style: none;
}
.nav-dropdown li {
  margin: 0;
}
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(45, 106, 79, 0.12);
  color: var(--text);
}
.nav-dropdown a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

/* HAMBURGER BUTTON (hidden on wide screens) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 61;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animate to X when open */
.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* "More" dropdown never used — hamburger replaces it */
.nav-item--more {
  display: none;
}

/* MOBILE NAV: hamburger menu for narrow screens */
@media (max-width: 1100px) {
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 8px 0;
    z-index: 60;
  }
  .nav-links--open {
    display: flex;
  }
  /* Show all items in mobile menu, hide the "More" dropdown */
  .nav-item--collapsible {
    display: flex;
  }
  .nav-item--more {
    display: none;
  }
  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    padding: 12px 24px;
    margin: 0;
    width: 100%;
    clip-path: none;
  }
  /* Disable the orange slide-in on mobile nav links */
  .nav-link::before {
    display: none;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--accent);
    background: rgba(45, 106, 79, 0.06);
  }
  .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  /* Dropdowns inline in mobile — always visible below parent */
  .nav-dropdown {
    display: block;
    position: static;
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown a {
    padding-left: 40px;
    font-size: 0.88rem;
  }
  /* Hide the dropdown arrow indicators in mobile */
  .nav-arrow {
    display: none;
  }
  .main-nav {
    padding: 10px 16px;
  }
}

/* HERO & SECTIONS */
.hero {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid #E77500;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 106, 79, 0.25);
  border-color: #2D6A4F;
  border-left-color: #2D6A4F;
}
.hero-orbit {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 0, rgba(5, 150, 105, 0.12) 0, transparent 55%),
    radial-gradient(circle at 85% 0, rgba(20, 184, 166, 0.08) 0, transparent 55%);
  mix-blend-mode: multiply;
}
.hero-photo-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-photo {
  width: 100%;
  display: block;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
}
.hero-photo-wrapper[data-hero-mode="video"] .hero-photo--image { display: none; }
.hero-photo-wrapper[data-hero-mode="image"] .hero-photo--video { display: none; }
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-title span {
  background: linear-gradient(90deg, #2D6A4F, #357A5A, #9E4A00, #2D6A4F, #357A5A, #9E4A00);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #2D6A4F;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease;
}
.hero-title span:hover {
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.btn {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 0.86rem;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2D6A4F, #357A5A);
  border-color: rgba(16, 185, 129, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 50, 40, 0.12);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}
.meta-pill {
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.meta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 50, 40, 0.08);
}
.meta-pill strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
}
.hero-sidecard {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(30, 50, 40, 0.06);
  font-size: 0.8rem;
}
.hero-sidecard h2 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-sidecard ul {
  list-style: none;
  margin-top: 6px;
  margin-bottom: 10px;
}
.hero-sidecard li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.hero-sidecard li:last-child {
  border-bottom: none;
}
.hero-sidecard span.label {
  color: var(--muted);
}
.hero-sidecard span.value {
  font-weight: 500;
}
.hero-sidecard-footer {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
section {
  margin-top: 48px;
}
section h2, section h1 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
section p.lead {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-4-desktop {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .grid-4-desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid #E77500;
  padding: 14px 14px 12px;
  font-size: 0.86rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.10);
  border-color: #2D6A4F;
}
.card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.card p {
  color: var(--muted);
  font-size: 0.83rem;
}
.card .tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 150, 105, 0.25);
  background: rgba(5, 150, 105, 0.06);
  font-size: 0.7rem;
  color: var(--accent);
}
/* Spacing for standalone cards (not inside grids) */
section > .card {
  margin-top: 14px;
}
.card > .card-actions:first-child {
  margin-top: 0;
}
.card h2 a {
  text-decoration: none;
  color: inherit;
}
.card h2 a:hover {
  color: var(--accent);
}
.card-actions {
  margin-top: 10px;
  font-size: 0.8rem;
}
.card-actions a {
  text-decoration: underline;
  color: var(--accent);
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}
.list {
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
}
.list li {
  margin-bottom: 8px;
}
.list strong {
  display: block;
  margin-bottom: 2px;
}
.list span {
  color: var(--muted);
}
.figure-grid {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.figure-grid .figure-card {
  flex: 1 1 0;
  min-width: 250px;
}
.figure-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 0.78rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.figure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.10);
}
.figure-card img {
  width: 100%;
  display: block;
  border-radius: 0;
  margin-bottom: 6px;
}
.figure-caption {
  color: var(--muted);
}
.diagram-wrapper {
  margin-top: 14px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: 14px;
  align-items: center;
}
@media (max-width: 880px) {
  .diagram-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}
.diagram-wrapper img {
  width: 100%;
  border-radius: 0;
  display: block;
}
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 28px 0;
  margin-top: auto;
  width: 100%;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 42px;
  object-fit: contain;
}
.footer-brand-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cccccc;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
}
.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #ffffff;
}
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* SECTION HEADING ACCENT */
section h2::after, section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, #2D6A4F, #357A5A);
}
.hero-title::after {
  display: none;
}

/* SCROLL-REVEAL ANIMATIONS (gated on .js so content is visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-children.visible > *:nth-child(1) { transition-delay: 0s; }
.js .reveal-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.js .reveal-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.js .reveal-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.js .reveal-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.js .reveal-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

/* HERO LOAD ANIMATION */
.hero {
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* BUTTON SHINE ON HOVER */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::after {
  left: 120%;
}

/* ACCENT CARD */
.card-accent {
  border-left: 4px solid #E77500;
  padding: 24px 28px;
}
.card-accent-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9E4A00;
  margin-bottom: 6px;
}
.card-accent h2,
.card-accent h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text);
}
.card-accent:hover .orfeus-initial {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: none;
}
.card-accent:hover .card-accent-label {
  color: var(--accent);
}
.card-accent p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}
.orfeus-initial {
  color: var(--accent);
  font-weight: 700;
}

/* PEOPLE PAGE SUBSECTION LABELS */
#pis > h2,
#advisers > h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
#pis > h2::after,
#advisers > h2::after {
  display: none;
}

/* PEOPLE GRID */
.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-hero-link {
  display: block;
  text-decoration: none;
}

.blog-hero-title {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-hero-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}

.blog-hero-link:hover .blog-hero-title {
  color: var(--accent);
}

.article-figure {
  margin: 18px 0 24px;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-page {
  max-width: 920px;
}

.article-page h1,
.article-page h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  margin-top: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.article-page h1 {
  margin-top: 0;
}
.article-byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: -2px;
  margin-bottom: 18px;
}
.article-page h1::after,
.article-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, #2D6A4F, #357A5A);
}
.article-page h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 6px;
}

.article-page p {
  margin-bottom: 1em;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.article-page ol,
.article-page ul {
  margin-bottom: 1em;
  margin-left: 20px;
  font-size: 0.9rem;
}

/* Card body text separated from metadata */
.card-body {
  margin-top: 10px;
}

.visualization-frame-wrap {
  margin-top: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

.visualization-frame {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: 0;
  background: #ffffff;
}

/* HOMEPAGE REFRESH */
body.home-page {
  background:
    radial-gradient(circle at top left, rgba(231, 117, 0, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 106, 79, 0.10), transparent 32%),
    linear-gradient(180deg, #f7f5f0 0%, #ffffff 22%, #fcfcfa 100%);
}
body.home-page section {
  scroll-margin-top: 110px;
}
body.home-page .hero-home {
  padding: 28px;
  border-left: 0;
  border-color: rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 243, 0.92)),
    var(--card);
}
body.home-page .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}
body.home-page .hero-media-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
body.home-page .hero-title {
  max-width: none;
}
body.home-page .hero-tagline--large {
  font-size: 1rem;
  max-width: 58ch;
  margin-bottom: 12px;
}
body.home-page .hero-meta--featured {
  margin-top: 12px;
}
body.home-page .hero-approach-card {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #2D6A4F;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 240, 0.98));
  box-shadow: 0 8px 24px rgba(30, 50, 40, 0.06);
}
body.home-page .hero-approach-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
body.home-page .hero-approach-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9E4A00;
  font-weight: 700;
}
body.home-page .hero-approach-card h2 {
  font-size: 1rem;
  margin-bottom: 0;
}
body.home-page .hero-approach-copy {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
}
body.home-page .hero-approach-diagram {
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}
body.home-page .hero-approach-diagram img {
  display: block;
  width: 100%;
  height: auto;
}
body.home-page .hero-approach-subsection {
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.home-page .hero-approach-subsection strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
body.home-page .hero-approach-subsection p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
body.home-page .hero-approach-subsection p:last-child {
  margin-bottom: 0;
}
body.home-page .hero-sidecard--home {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 245, 240, 0.96));
  border-color: rgba(0, 0, 0, 0.08);
}
body.home-page .hero-sidecard--home h2 {
  font-size: 1.08rem;
}
body.home-page .hero-objectives {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.home-page .hero-objectives li {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
body.home-page .hero-objectives li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
body.home-page .hero-sidecard-footer {
  padding-top: 12px;
  font-size: 0.9rem;
  line-height: 1.72;
}
body.home-page .intro-band .card-accent,
body.home-page .cta-panel {
  position: relative;
  overflow: hidden;
}
body.home-page .intro-band .card-accent::before,
body.home-page .cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(231, 117, 0, 0.12), transparent 45%),
    radial-gradient(circle at top right, rgba(45, 106, 79, 0.12), transparent 35%);
  pointer-events: none;
}
body.home-page .intro-band .card-accent > *,
body.home-page .cta-panel > * {
  position: relative;
  z-index: 1;
}
body.home-page .spotlight-section {
  text-align: center;
}
body.home-page .figure-card--spotlight {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 240, 0.96));
}
body.home-page .figure-card--spotlight:hover {
  transform: none;
  box-shadow: none;
}
body.home-page .feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: center;
}
body.home-page .feature-split-copy,
body.home-page .feature-split-media {
  min-width: 0;
}
body.home-page .cta-panel {
  padding: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 245, 240, 0.98));
  box-shadow: var(--shadow-soft);
}
@media (max-width: 980px) {
  body.home-page .hero-grid,
  body.home-page .feature-split {
    grid-template-columns: minmax(0, 1fr);
  }
  body.home-page .hero-title {
    max-width: none;
  }
}
@media (max-width: 700px) {
  body.home-page .hero-home {
    padding: 18px;
  }
  body.home-page .hero-photo {
    height: 240px;
  }
  body.home-page .cta-panel {
    padding: 20px;
  }
}
.pi-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid #E77500;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.pi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.10);
  border-left-color: var(--accent);
}
.pi-photo {
  width: 160px;
  min-width: 160px;
  height: auto;
  border-radius: 0;
  display: block;
}
.pi-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.pi-title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.pi-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.pi-bio p {
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .pi-card {
    flex-direction: column;
  }
  .pi-photo {
    width: 160px;
    min-width: 160px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-children > *, .hero {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .nav-hamburger-line {
    transition: none;
  }
}

/* GIF pause/play button — meets 44×44 touch target (WCAG 2.5.8) */
#gif-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* Nested sections use tighter spacing */
section > section {
  margin-top: 24px;
}

/* Poster preview image */
.poster-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Figure-grid horizontal scroll keyboard hint */
.figure-grid:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Pi-card and figure-card focus-within */
.pi-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.10);
  border-left-color: var(--accent);
}
.figure-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.10);
}
