/* ==========================================================
   Zubcevic Lab — v2
   Palette: USF Green (#006747), USF Gold (#CFC493),
            Evergreen (#005432), Sand (#EDEBD1), Panthea forest
   ========================================================== */

:root {
  --usf-green: #006747;
  --usf-green-dark: #005432;
  --usf-gold: #cfc493;
  --usf-gold-deep: #b39e5e;
  --panthea-green: #1f3a2b;
  --sand: #edebd1;
  --paper: #f7f5e8;
  --paper-2: #ffffff;
  --ink: #1a2a22;
  --ink-2: #4a584f;
  --rule: rgba(0, 103, 71, 0.18);
  --rule-strong: rgba(0, 103, 71, 0.32);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: var(--usf-green); text-decoration: none; }
a:hover { color: var(--usf-green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

em { font-style: italic; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 235, 209, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #fff;
  box-shadow: 0 0 0 1px var(--rule);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 19px;
  color: var(--usf-green-dark);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  margin-top: 3px;
}
.nav { display: flex; gap: 22px; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.nav a {
  font-size: 14px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em;
}
.nav a:hover { color: var(--usf-green); text-decoration: none; }
@media (max-width: 980px) {
  .nav { gap: 16px; font-size: 13px; }
  .nav a { font-size: 13px; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; align-items: center; }
  .brand { flex: 0 1 auto; min-width: 0; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .brand-tag { font-size: 9.5px; letter-spacing: 0.06em; line-height: 1.25; white-space: normal; max-width: 180px; }
  .affil-marks { order: 2; margin-left: auto; align-self: center; }
  .nav { order: 3; flex-basis: 100%; justify-content: center; gap: 12px 14px; font-size: 12px; flex-wrap: wrap; white-space: normal; margin-top: 2px; }
  .nav a { font-size: 12px; }
}

/* ============ Hero ============ */
.hero {
  max-width: 920px; margin: 0 auto;
  padding: 96px 28px 24px;
  text-align: center;
}
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--usf-gold-deep);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--usf-green-dark);
  margin: 0 0 24px;
}
.lede {
  font-size: 19px;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 14px;
}
.lede-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 560px;
}

/* ============ Section heads ============ */
.section-head {
  max-width: 880px; margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--usf-green-dark);
  margin: 8px 0 12px;
}
.section-lede {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 auto;
  max-width: 640px;
}

/* ============ Figure section (interactive) ============ */
.figure-section {
  padding: 24px 28px 80px;
}
.stage-frame {
  max-width: 720px;
  margin: 0 auto;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 864 / 1821;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 24px 60px -30px rgba(0, 60, 40, 0.25);
  /* Allow popovers to extend outside */
  overflow: visible;
}
.vagus-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 16px;
}

/* Overlays — full-stage, only shown when their step is active */
.overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}
.stage[data-active="1"] .overlay-gut,
.stage[data-active="2"] .overlay-vagus,
.stage[data-active="3"] .overlay-brain,
.stage[data-active="4"] .overlay-heart,
.stage[data-active="4"] .overlay-vagus-down {
  opacity: 1;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.15); opacity: 0.5; }
}
.glow-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: glowPulse 2.6s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1.4); }
}
.spark {
  transform-origin: center;
  transform-box: fill-box;
  animation: sparkle 1.6s ease-in-out infinite;
}
.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.25s; }
.s3 { animation-delay: 0.5s; }
.s4 { animation-delay: 0.75s; }
.s5 { animation-delay: 1s; }

@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 0.4; }
}
.heart-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: heartPulse 1.4s cubic-bezier(.4,0,.2,1) infinite;
}

.vagus-trace {
  stroke-dasharray: 2 3;
  opacity: 0.55;
  animation: traceShift 6s linear infinite;
}
@keyframes traceShift {
  to { stroke-dashoffset: -50; }
}

/* ----- Hotspots (numbered, ALWAYS pulsing softly to invite click) ----- */
.hotspot {
  position: absolute;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border: none; padding: 0; margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}
.hotspot .num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--usf-green);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 60, 40, 0.35);
  transition: transform 250ms cubic-bezier(.4,0,.2,1), background 250ms;
  z-index: 2;
}
.hotspot .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--usf-gold);
  opacity: 0;
  transform: scale(1);
  z-index: 1;
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}
.hotspot:hover .num,
.hotspot:focus-visible .num {
  transform: scale(1.15);
  background: var(--usf-green-dark);
  outline: none;
}

/* Active hotspot — turn gold */
.stage[data-active="1"] .hotspot[data-step="1"] .num,
.stage[data-active="2"] .hotspot[data-step="2"] .num,
.stage[data-active="3"] .hotspot[data-step="3"] .num,
.stage[data-active="4"] .hotspot[data-step="4"] .num {
  background: var(--usf-gold-deep);
  color: var(--usf-green-dark);
}

/* ----- Popovers ----- */
.popover {
  position: absolute;
  width: 320px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 50px -20px rgba(0, 60, 40, 0.4), 0 0 0 1px rgba(0,0,0,0.02);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(6px);
  transition: opacity 250ms, transform 250ms, visibility 250ms;
  z-index: 20;
  pointer-events: none;
}
.popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Wider popover when it contains a zoom illustration */
.popover.popover-zoom {
  width: 480px;
  max-width: 92vw;
  padding: 18px 18px 16px;
}

/* Zoom-in entrance animation */
.popover.popover-zoom.is-open {
  animation: popover-zoom-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes popover-zoom-in {
  from { transform: scale(0.55) translateY(20px); opacity: 0; filter: blur(2px); }
  to   { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

/* Zoom illustration figure */
.zoom-fig {
  margin: 4px 0 10px;
}
.zoom-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbf9ee 0%, #edebd1 100%);
  border: 1px solid rgba(0, 103, 71, 0.12);
}
.zoom-cap {
  font-size: 12.5px;
  color: var(--ink-2, #5a6a64);
  line-height: 1.55;
  margin: 8px 2px 4px;
  font-style: italic;
}

/* Pulsing particles inside the zoom SVG */
.z-pop {
  animation: z-pop 2.2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.z-pop.delay-1 { animation-delay: 0.4s; }
.z-pop.delay-2 { animation-delay: 0.8s; }
.z-pop.delay-3 { animation-delay: 1.2s; }
@keyframes z-pop {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Position popovers next to their dots */
.popover[data-step="1"] {
  left: calc(50% + 30px); top: 70%;
  transform-origin: top left;
}
.popover[data-step="2"] {
  left: calc(46% + 30px); top: 44%;
  transform-origin: top left;
}
.popover[data-step="3"] {
  right: calc(54% + 30px); top: 10%;
  transform-origin: top right;
}
.popover[data-step="4"] {
  left: calc(58% + 30px); top: 18%;
  transform-origin: top left;
}

/* Pointing arrows */
.popover::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.popover.popover-right::before {
  left: -8px; top: 24px;
  transform: rotate(45deg);
}
.popover.popover-left::before {
  right: -8px; top: 24px;
  transform: rotate(-135deg);
}

.popover-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent; border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 200ms, color 200ms;
}
.popover-close:hover {
  background: var(--sand);
  color: var(--usf-green-dark);
}

.step-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--usf-green-dark);
  background: rgba(0, 103, 71, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.popover h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--usf-green-dark);
  margin: 0 0 12px;
}
.popover p {
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.55;
}
.popover em {
  font-style: italic;
  color: var(--ink-2);
}
.popover strong {
  color: var(--usf-green-dark);
  font-weight: 600;
}
.cue {
  font-size: 13px !important;
  color: var(--ink-2) !important;
  margin: 14px 0 0 !important;
}
.dot-inline {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  background: var(--usf-green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700; font-size: 11px;
  margin: 0 2px;
  vertical-align: -4px;
}
.restart {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--usf-green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 200ms;
}
.restart:hover { background: var(--usf-green-dark); }

/* On small screens, popovers center under the stage */
@media (max-width: 760px) {
  .popover, .popover[data-step] {
    position: fixed;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 20px;
    transform: translateX(-50%) scale(0.95);
    width: calc(100vw - 32px);
    max-width: 420px;
  }
  .popover.is-open { transform: translateX(-50%) scale(1); }
  .popover::before { display: none; }
}

/* ----- Stepper under figure ----- */
.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  margin: 56px auto 0;
  max-width: 920px;
  flex-wrap: wrap;
}
.step-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 200ms;
}
.step-btn span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--paper-2);
  color: var(--usf-green);
  border-radius: 50%;
  font-weight: 700; font-size: 12px;
  border: 1px solid var(--rule);
}
.step-btn:hover {
  border-color: var(--usf-green);
  color: var(--usf-green-dark);
}
.step-btn.is-active {
  background: var(--usf-green);
  border-color: var(--usf-green);
  color: #fff;
}
.step-btn.is-active span {
  background: var(--usf-gold);
  color: var(--usf-green-dark);
  border-color: var(--usf-gold);
}
.step-line {
  width: 24px; height: 1px;
  background: var(--rule);
}
@media (max-width: 700px) {
  .step-line { display: none; }
}

.fig-credit {
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
  margin: 28px auto 0;
  letter-spacing: 0.02em;
}

/* ============ Research (era chapters) ============ */
.research {
  background: var(--paper);
  padding: 80px 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.era-list {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 56px;
}
.era {
  display: block;
}
.era-papers .paper-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--usf-green-dark);
  background: var(--sand);
  border-radius: 999px;
  vertical-align: 2px;
}
.era-when {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--usf-gold-deep);
  font-weight: 700;
  margin: 0 0 8px;
}
.era-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--usf-green-dark);
  margin: 0 0 14px;
}
.era-body > p {
  font-size: 16.5px;
  color: var(--ink);
  margin: 0 0 18px;
}
.era-body strong { color: var(--usf-green-dark); font-weight: 600; }
.era-papers {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 2px solid var(--usf-gold);
  padding-left: 16px;
}
.era-papers li {
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--ink-2);
  line-height: 1.5;
}
.era-papers a {
  font-weight: 500;
  color: var(--usf-green);
}
.era-papers em {
  font-style: italic;
}
.research-foot {
  text-align: center;
  margin: 56px auto 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ============ Funding & awards ============ */
.funding {
  padding: 80px 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.fund-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .fund-grid { grid-template-columns: 1fr; gap: 32px; }
}
.fund-col { min-width: 0; }
.fund-h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--usf-green-dark);
  margin: 36px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.fund-h:first-of-type { margin-top: 0; }
.fund-list {
  list-style: none; margin: 0; padding: 0;
}
.fund-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.fund-list li:last-child { border-bottom: none; }
.fund-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.4;
}
.fund-meta {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.fund-link {
  margin: 0;
  font-size: 13px;
}
.fund-link a { font-weight: 500; }

.awards {
  list-style: none; margin: 0; padding: 0;
}
.awards li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.awards li:last-child { border-bottom: none; }
.award-year {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--usf-gold-deep);
  font-size: 16px;
}
.award-org {
  color: var(--ink-2);
  font-size: 13px;
}
.service {
  list-style: none; margin: 0; padding: 0;
}
.service li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.service li:last-child { border-bottom: none; }
.service strong { color: var(--usf-green-dark); font-weight: 600; }

/* ============ Team ============ */
.team {
  background: var(--paper);
  padding: 80px 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.member-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.member {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: transform 250ms, box-shadow 250ms;
}
.member:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -24px rgba(0, 60, 40, 0.25);
}
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--sand), var(--usf-gold) 80%);
  display: grid; place-items: center;
  color: var(--usf-green-dark);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--rule);
}
.avatar-photo { padding: 0; background: var(--sand); }
.avatar-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.member h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--usf-green-dark);
}
.member .role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--usf-gold-deep);
  margin: 0 0 10px;
  font-weight: 600;
}
.member .bio {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  text-align: left;
}
.member.member-pi .bio { text-align: left; }
.member.placeholder .avatar {
  background: var(--sand);
  color: var(--ink-2);
}
.member.placeholder h3,
.member.placeholder .role,
.member.placeholder .bio {
  color: var(--ink-2);
  opacity: 0.55;
}
.member-links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--usf-green);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: all 200ms;
}
.member-links a:hover {
  background: var(--usf-green);
  color: #fff;
  border-color: var(--usf-green);
  text-decoration: none;
}

/* ============ Disclosure ============ */
.disclosure {
  background: var(--panthea-green);
  color: #e8e8d8;
  padding: 56px 28px;
}
.disclosure-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.disclosure-text { flex: 1 1 320px; }
.disclosure h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--usf-gold);
  margin: 0 0 12px;
}
.disclosure p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 540px;
  color: #e8e8d8;
}
.disclosure strong {
  color: #ffffff;
}
.panthea-link {
  display: block;
  flex-shrink: 0;
  transition: opacity 200ms;
}
.panthea-link:hover { opacity: 0.8; }
.panthea-link img {
  height: 18px;
  width: auto;
  display: block;
}

/* ============ Footer ============ */
.footer {
  text-align: center;
  padding: 40px 28px;
  color: var(--ink-2);
  font-size: 13px;
  background: var(--sand);
}
.footer p { margin: 0; }
.footer-contact { margin-top: 8px !important; }

/* ============ USF affiliations in topbar ============ */
.affil-marks {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
  order: 3;
}
.affil-link {
  display: inline-flex; align-items: center;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 120ms ease, transform 120ms ease;
}
.affil-link:hover { opacity: 1; transform: translateY(-1px); }
.usf-bull {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.usf-health-mark {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .affil-marks { gap: 10px; margin-left: auto; }
  .usf-health-mark { height: 22px; }
}
@media (max-width: 480px) {
  .usf-bull { height: 22px; }
  .usf-health-mark { height: 18px; }
  .affil-marks { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav { gap: 10px 12px; font-size: 11.5px; }
  .nav a { font-size: 11.5px; }
}

/* ============ Initials avatar (fallback when no headshot) ============ */
.avatar-initials {
  background: linear-gradient(135deg, var(--usf-green), var(--usf-green-dark));
  color: var(--usf-gold);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.04em;
}

/* ============ Gated hint (dot 4 redirected to dot 3) ============ */
.hotspot.is-gated-hint .num {
  animation: gateNudge 0.45s ease 0s 3 alternate;
}
.hotspot.is-gated-hint .ring {
  border-color: var(--usf-gold-deep);
  opacity: 1;
  animation: gateRing 0.7s ease 0s 2;
}
@keyframes gateNudge {
  from { transform: scale(1); }
  to   { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(179, 158, 94, 0.25); }
}
@keyframes gateRing {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0;   }
}

/* ============ Tools we built section ============ */
.tools {
  background: var(--paper-2);
  padding: 96px 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tool-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(0, 60, 40, 0.32);
  border-color: var(--usf-green);
  text-decoration: none;
}
.tool-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
}
.tool-icon svg { width: 100%; height: 100%; display: block; }
.seqeasy-icon {
  background: linear-gradient(135deg, var(--usf-green), var(--usf-green-dark));
  color: var(--usf-gold);
  display: flex; align-items: center; justify-content: center;
}
.seqeasy-icon svg { width: 60%; height: 60%; }
.tool-body { flex: 1; min-width: 0; }
.tool-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--usf-green-dark);
}
.tool-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--usf-gold-deep);
  font-weight: 600;
  margin: 0 0 10px;
}
.tool-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 12px;
  line-height: 1.55;
}
.tool-cta {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--usf-green);
  letter-spacing: 0.01em;
}
.tool-card:hover .tool-cta { color: var(--usf-green-dark); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .glow-pulse, .spark, .heart-pulse, .vagus-trace,
  .hotspot .ring {
    animation: none !important;
  }
  .pulse animateMotion { display: none; }
}

/* ============================== */
/* POPULAR PRESS & PODCASTS       */
/* ============================== */
.press {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 28px;
  border-top: 1px solid var(--rule);
}
.press-grid {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.press-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.press-card:hover {
  transform: translateY(-3px);
  border-color: var(--usf-green);
  background: #ffffff;
  box-shadow: 0 12px 28px -16px rgba(0,67,30,0.25);
}
.press-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 11px 4px 9px;
  background: var(--usf-green-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.press-kind svg { color: var(--usf-gold); }
.press-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  margin: 4px 0 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.press-meta {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
}
.press-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--usf-green);
  letter-spacing: 0.01em;
}

/* "Where we're heading" — unnumbered cards with breathing room */
.future-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1rem;
}
.future-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(207, 196, 147, 0.45);
}
.future-item:first-child {
  border-top: none;
  padding-top: 0;
}
.future-item > p {
  margin: 0 0 0.6rem 0;
}
.future-papers {
  margin: 0.4rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.92em;
  color: var(--text-muted, #5a6a4f);
}
.future-papers li { margin-bottom: 0.3rem; }
