/* ============================================================
   enhance.css — Modern interaction & polish layer
   jeriatrics.com · loads after main/components/pages
   ============================================================ */

/* ── Cross-document page transitions (progressive enhancement) ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.22s ease both;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.3s ease both;
}
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* ── Text selection ── */
::selection {
  background: rgba(201, 168, 76, 0.4);
  color: #fff;
}
.section-warm ::selection,
.section-philosophy ::selection {
  background: rgba(155, 29, 32, 0.25);
  color: var(--color-text-warm);
}

/* ── Film-grain texture (adds tactile depth to dark sections) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10001;
  background: linear-gradient(to right, var(--color-accent), var(--color-gold));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Nav refinement: gradient hairline when scrolled ── */
.nav.scrolled::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(201, 168, 76, 0.45) 30%,
    rgba(155, 29, 32, 0.45) 70%,
    transparent);
  pointer-events: none;
}

/* ============================================================
   HERO — Ken Burns, shimmer, refined scroll cue
   ============================================================ */

/* Slow cinematic zoom on the hero backdrop (scale on the wrapper so
   the JS parallax translateY on the img doesn't conflict) */
.hero-bg {
  animation: kenburns 26s var(--ease-smooth) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

/* Gold shimmer sweep across the name — one elegant pass, then rest.
   Guarded: without background-clip support the name stays solid. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-name {
    background: linear-gradient(
      110deg,
      var(--color-text-primary) 0%,
      var(--color-text-primary) 38%,
      #ecd99b 50%,
      var(--color-text-primary) 62%,
      var(--color-text-primary) 100%
    );
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroReveal 0.8s var(--ease-smooth) forwards,
               nameShimmer 2.6s var(--ease-smooth) 1.1s 1;
    animation-delay: var(--reveal-delay, 0ms), 1.1s;
  }
}

@keyframes nameShimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* Replace the ⌄ chevron with a minimal scrolling line cue */
.hero-scroll-indicator {
  animation: none;
  width: 1px;
  height: 56px;
  overflow: hidden;
}

.hero-chevron {
  font-size: 0;
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  animation: scrollCue 2.4s var(--ease-smooth) infinite;
}

@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* Hero tagline words glow gently on hover */
.hero-tagline > span:not(.hero-dot) {
  transition: color 0.35s ease, text-shadow 0.35s ease;
  cursor: default;
}

.hero-tagline > span:not(.hero-dot):hover {
  color: #ecd99b;
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.55);
}

/* ============================================================
   PHILOSOPHY QUOTES — word-by-word blur reveal + ornament
   ============================================================ */

.philosophy-inner {
  position: relative;
}

.philosophy-inner::before {
  content: '\201C';
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: rgba(155, 29, 32, 0.09);
  pointer-events: none;
  user-select: none;
}

.quote-word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-smooth),
              filter 0.55s var(--ease-smooth),
              transform 0.55s var(--ease-smooth);
  transition-delay: var(--word-delay, 0ms);
}

.quote-ready .quote-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ============================================================
   SPOTLIGHT GLOW — cursor-tracked radial highlight (dark cards)
   ============================================================ */

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 168, 76, 0.12),
    rgba(155, 29, 32, 0.06) 40%,
    transparent 65%
  );
  pointer-events: none;
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   TILT + SHINE — light cards get subtle 3D response
   ============================================================ */

.tilt-card {
  transform-style: preserve-3d;
}

.tilt-card.tilting {
  transition: box-shadow 0.4s var(--ease-smooth);
}

.tilt-card .shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.55),
    transparent 55%
  );
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.tilt-card:hover .shine {
  opacity: 1;
}

.degree-badge,
.discipline-card,
.program-home-card,
.step-card,
.card--warm {
  position: relative;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: rgba(13, 27, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth),
              transform 0.35s var(--ease-smooth),
              background-color 0.25s ease,
              color 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-bg-primary);
}

/* ============================================================
   CAREER TIMELINE (about.html)
   ============================================================ */

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(30, 48, 72, 0.9);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-accent));
  transition: height 0.15s linear;
}

.timeline-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 3.25rem;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-right: 0;
  padding-left: 3.25rem;
  transform: translateX(28px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  top: 0.35rem;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 3px solid var(--color-gold);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -7px;
}

.timeline-item--current .timeline-dot {
  border-color: var(--color-accent-light);
}

.timeline-item--current .timeline-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid var(--color-accent-light);
  animation: dotPulse 2.2s ease-out infinite;
}

@keyframes dotPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.65rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-year {
  text-align: left;
}

.timeline-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 1.65rem;
  text-align: right;
  transition: transform 0.35s var(--ease-smooth),
              box-shadow 0.35s var(--ease-smooth),
              border-color 0.35s ease;
}

.timeline-item:nth-child(even) .timeline-card {
  text-align: left;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 99px;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .timeline-line {
    left: 8px;
    transform: none;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    align-self: auto;
    padding-left: 2.5rem;
    padding-right: 0;
    transform: translateX(20px);
  }
  .timeline-item .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 2px;
    right: auto;
  }
  .timeline-year,
  .timeline-card,
  .timeline-item .timeline-year,
  .timeline-item .timeline-card {
    text-align: left;
  }
}

/* ============================================================
   LIVE FILTERS (publications & presentations)
   ============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: -0.75rem auto 2.5rem;
  max-width: 900px;
}

.filter-search {
  flex: 1 1 240px;
  max-width: 340px;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border-radius: 99px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-pill {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.05rem;
  min-height: 36px;
  border-radius: 99px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.15s ease;
}

.filter-pill:active {
  transform: scale(0.96);
}

.filter-count {
  width: 100%;
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* Dark variant (presentations) */
.filter-bar--dark .filter-search {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.filter-bar--dark .filter-search::placeholder { color: var(--color-text-muted); }
.filter-bar--dark .filter-search:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.filter-bar--dark .filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.filter-bar--dark .filter-pill:hover { color: var(--color-text-primary); border-color: var(--color-text-muted); }
.filter-bar--dark .filter-pill.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg-deep);
}
.filter-bar--dark .filter-count { color: var(--color-text-muted); }

/* Warm variant (publications) */
.filter-bar--warm .filter-search {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--color-text-warm);
}
.filter-bar--warm .filter-search::placeholder { color: var(--color-text-warm-muted); }
.filter-bar--warm .filter-search:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(155, 29, 32, 0.12);
}
.filter-bar--warm .filter-pill {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--color-text-warm-2);
}
.filter-bar--warm .filter-pill:hover { color: var(--color-text-warm); border-color: rgba(0, 0, 0, 0.3); }
.filter-bar--warm .filter-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.filter-bar--warm .filter-count { color: var(--color-text-warm-muted); }

/* Filtering states */
.filterable-list {
  transition: opacity 0.22s ease;
}

.filterable-list.filtering {
  opacity: 0.35;
}

.filtered-out {
  display: none !important;
}

.filter-empty {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  padding: 2.5rem 0 1rem;
}
.section-warm .filter-empty { color: var(--color-text-warm-2); }
.section-deep .filter-empty { color: var(--color-text-muted); }

/* Topic chips appended to publication cards */
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pub-tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-warm-muted);
  background: rgba(155, 29, 32, 0.06);
  border: 1px solid rgba(155, 29, 32, 0.14);
  border-radius: 99px;
  padding: 0.16rem 0.6rem;
}

/* ============================================================
   MICRO-POLISH across existing components
   ============================================================ */

/* Buttons: sheen sweep on hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-smooth);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

/* Section links: animated arrow */
.section-link,
.phc-link {
  position: relative;
}

/* Images: subtle saturation lift on section hover */
.med-training-banner-img,
.lss-banner-img,
.inner-hero-img {
  filter: saturate(0.92);
  transition: filter 1s ease;
}

.med-training-section:hover .med-training-banner-img,
.lss-section:hover .lss-banner-img {
  filter: saturate(1.05);
}

/* Degree abbr: gold underline grows on card hover */
.degree-abbr::after,
.phc-acronym::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 0.5rem auto 0;
  background: var(--color-gold);
  transition: width 0.4s var(--ease-smooth);
}

.phc-acronym::after {
  margin-left: 0;
}

.degree-badge:hover .degree-abbr::after,
.program-home-card:hover .phc-acronym::after {
  width: 42px;
}

/* Stat numbers: gold flourish under each stat */
.stat-item {
  position: relative;
  padding-bottom: 0.4rem;
}

/* Footer refinement */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.4), transparent);
}

/* Video frames: lift on hover */
.program-split iframe {
  transition: transform 0.5s var(--ease-smooth);
}

.program-split > div > div:hover iframe {
  transform: scale(1.015);
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
  .hero-bg,
  .hero-name,
  .hero-chevron,
  .cert-ticker,
  .timeline-item--current .timeline-dot::after,
  .btn::after {
    animation: none !important;
  }
  .hero-name {
    opacity: 1;
    transform: none;
  }
  .quote-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .tilt-card,
  .glow-card::before {
    transition: none !important;
  }
  .fade-in,
  .stagger-item,
  .timeline-item,
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   REFACTORED CLASSES — moved out of inline style="" attributes
   ============================================================ */

.u-mt-2-5 { margin-top: 2.5rem; }
.u-mb-4   { margin-bottom: 4rem; }
.u-mb-0   { margin-bottom: 0; }
.u-mr-2   { margin-right: 2rem; }

.section-subtitle--warm { color: var(--color-text-warm-2); }

/* Stacked card lists */
.teaser-stack { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.focus-stack  { display: flex; flex-direction: column; gap: 1.75rem; }

/* Research teaser card innards (index) */
.rtc-number { font-size: 1.5rem; }
.rtc-title  { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.2rem; }
.rtc-desc   { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-secondary); }
.rtc-arrow  { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-gold); }

/* Program home cards (index) */
.phc-roomy { padding: 2.25rem 2rem; }
.phc-label { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-text-warm-2); margin-bottom: 0.75rem; }

/* Research focus cards (programs) */
.rfc-title { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--color-text-warm); line-height: 1.2; margin-bottom: 0.35rem; }
.rfc-sub   { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); letter-spacing: 0.04em; margin-bottom: 1rem; }
.rfc-body  { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-warm-2); line-height: 1.8; margin-bottom: 1.25rem; }
.rfc-note  { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.1); }

/* Program split sections (programs) */
.ps-eyebrow { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.5rem; }
.ps-title   { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; color: var(--color-text-warm); line-height: 1.2; margin-bottom: 0.35rem; }
.ps-sub     { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-warm-2); letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.ps-body    { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-warm-2); line-height: 1.75; margin-bottom: 1.25rem; }
.ps-body--flush { margin-bottom: 0; }
.ps-note    { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }

/* Responsive video frame */
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.18); }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.split-rule { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin-bottom: 4.5rem; }

/* ============================================================
   VIDEO FACADES — YouTube loads only when played
   ============================================================ */

.video-facade { background: #000; }

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

.video-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-smooth);
}

.video-play:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(155, 29, 32, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-spring), background-color 0.3s ease;
}

.video-play-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.video-play:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-accent-light);
}

.video-play:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: -3px;
}

/* ============================================================
   NOTE LINES — CTA + footer audience cues
   ============================================================ */

.cta-note {
  margin-top: 2.25rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cta-note a,
.footer-note a {
  color: var(--color-gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cta-note a:hover,
.footer-note a:hover {
  color: #ecd99b;
  border-color: #ecd99b;
}

.footer-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ============================================================
   COUNCIL REVIEW FIXES — layering, contrast, nav, ticker
   ============================================================ */

/* Mobile drawer must sit above nav, progress bar, and back-to-top */
.nav-drawer {
  z-index: 10005;
}

body:has(.nav-drawer.open) .back-to-top {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Nav crams at 1024–1219px with five labels + two pills:
   keep the hamburger until there is real room */
@media (min-width: 1024px) and (max-width: 1219px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}

.nav-links a { white-space: nowrap; }

/* Legibility scrim behind the transparent nav over hero images */
.nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(6, 14, 24, 0.55), transparent);
}

/* Focus ring: gold fails on cream — use accent there */
.section-warm :focus-visible,
.section-philosophy :focus-visible {
  outline-color: var(--color-accent);
}

/* Contrast: section links and stat numerals on dark backgrounds */
.section-link:not(.section-link--dark) {
  color: var(--color-gold);
}

.stat-number,
.stat-plus {
  color: var(--color-gold);
}

/* DOI pill: meet 24px minimum touch target */
.pub-doi {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Certification ticker: keyboard-operable pause control */
.cert-ticker-wrap.paused .cert-ticker {
  animation-play-state: paused;
}

.ticker-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text-warm-2);
  font-size: 0.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ticker-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* VA disclaimer line */
.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}
