/* SMILE Lab Website — UF Blue + Orange Bold Design System
   Cinematic academic site with brutalist-lite typography
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS Custom Properties)
   ═══════════════════════════════════════════════════ */

:root {
  /* Monochrome palette */
  --white: #ffffff;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* UF Blue — #0021A5 on white = 10.5:1 contrast (exceeds AAA) */
  --uf-blue: #111111;
  --uf-blue-light: #2a2a2a;
  --uf-blue-dark: #0a0a0a;
  --uf-blue-tint: #f0ebe0;
  --uf-blue-bg: #f5f0e8;
  --uf-blue-glow: rgba(17, 17, 17, 0.12);

  /* UF Orange — #FA4616 on white = 3.3:1 (large/decorative text only) */
  --uf-orange: #C9A84C;
  --uf-orange-light: #D4B96A;
  --uf-orange-dark: #A8891F;
  --uf-orange-tint: #FBF0D0;
  --uf-orange-bg: #FFF8E8;
  --uf-orange-glow: rgba(201, 168, 76, 0.20);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--uf-blue), var(--uf-blue-light));
  --gradient-accent: linear-gradient(135deg, var(--uf-blue), var(--uf-orange));
  --gradient-hero: linear-gradient(160deg, var(--uf-blue-dark) 0%, var(--uf-blue) 50%, #0c0a09 100%);
  --gradient-blue-orange: linear-gradient(90deg, var(--uf-blue), var(--uf-orange));

  /* Semantic tokens */
  --bg-primary: var(--white);
  --bg-secondary: var(--stone-50);
  --bg-tertiary: var(--stone-100);
  --text-primary: var(--stone-900);
  --text-body: var(--stone-700);
  --text-muted: var(--stone-500);
  --text-heading: var(--stone-950);
  --border-color: var(--stone-200);
  --border-hover: var(--stone-300);
  --accent: var(--uf-orange);
  --accent-hover: var(--uf-orange-light);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.1), 0 8px 16px -8px rgba(0,0,0,0.06);
  --shadow-blue: 0 4px 20px rgba(17, 17, 17, 0.18);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.5s;
}


/* ═══════════════════════════════════════════════════
   2. BASE & RESET
   ═══════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  color: var(--text-body);
  background: var(--bg-primary);
}

::selection {
  background: var(--uf-blue-tint);
  color: var(--stone-900);
}

/* Focus - ADA compliant */
*:focus-visible {
  outline: 2px solid var(--uf-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--uf-orange);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }


/* ═══════════════════════════════════════════════════
   3. TYPOGRAPHY — Brutalist-Lite
   ═══════════════════════════════════════════════════ */

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, .heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

.text-body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text-body);
  line-height: 1.7;
}

/* Section label - small caps above headings */
.section-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--uf-orange);
  display: block;
  margin-bottom: 0.75rem;
}

/* Gradient accent line under section headings — thicker, blue-to-orange */
.heading-accent::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gradient-blue-orange);
  margin-top: 1rem;
  border-radius: 2px;
}
.heading-accent-center::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gradient-blue-orange);
  margin: 1rem auto 0;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════
   4. HEADER
   ═══════════════════════════════════════════════════ */

/* ── Sticky frosted-glass nav ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-nav-bar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-nav-bar.header-scrolled {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Transparent header for homepage hero overlay */
.header-transparent {
  background-color: var(--uf-blue-dark) !important;
}
.header-transparent #site-header {
  background: transparent;
}
.header-transparent #main-content {
  margin-top: -4rem;
}
/* Dark glass nav over hero */
.header-transparent:not(.header-solid) #site-header header,
.header-transparent:not(.header-solid) header#site-header,
.header-transparent:not(.header-solid) .site-nav-bar {
  background: rgba(10, 10, 10, 0.6) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Nav link colors when header is transparent (over dark hero) */
.header-transparent #site-header [data-nav-link],
.header-transparent #site-header .wordmark,
.header-transparent #site-header .text-stone-400 {
  transition: color 0.4s var(--ease) !important;
}
.header-transparent:not(.header-solid) #site-header [data-nav-link] {
  color: rgba(255, 255, 255, 0.85) !important;
}
.header-transparent:not(.header-solid) #site-header [data-nav-link]:hover,
.header-transparent:not(.header-solid) #site-header [data-nav-link][aria-current="page"] {
  color: var(--uf-orange) !important;
}
.header-transparent:not(.header-solid) #site-header .wordmark {
  color: var(--white) !important;
}
.header-transparent:not(.header-solid) #site-header .wordmark-accent {
  color: var(--uf-orange) !important;
}
.header-transparent:not(.header-solid) #site-header .text-stone-400,
.header-transparent:not(.header-solid) #site-header span[class*="text-stone-400"],
.header-transparent:not(.header-solid) #site-header span.text-\[10px\] {
  color: rgba(255, 255, 255, 0.5) !important;
}
.header-transparent:not(.header-solid) #site-header .text-stone-500,
.header-transparent:not(.header-solid) #site-header button#mobile-menu-toggle {
  color: rgba(255, 255, 255, 0.8) !important;
}
/* CV button override when transparent */
.header-transparent:not(.header-solid) #site-header a[aria-label*="CV"] {
  background: var(--uf-blue) !important;
}

/* Nav links - blue underline hover */
[data-nav-link] {
  position: relative;
  font-family: 'Lora', Georgia, serif;
  transition: color var(--duration) var(--ease) !important;
}
[data-nav-link]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--uf-orange);
  transition: width var(--duration) var(--ease), left var(--duration) var(--ease);
  border-radius: 1px;
}
[data-nav-link]:hover::after,
[data-nav-link][aria-current="page"]::after {
  width: 100%;
  left: 0;
}
[data-nav-link]:hover,
[data-nav-link][aria-current="page"] {
  color: var(--uf-orange) !important;
}
[data-nav-link] {
  border-bottom: none !important;
}

/* Wordmark */
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -0.03em;
}
.wordmark-accent {
  color: var(--uf-orange);
}


/* ═══════════════════════════════════════════════════
   5. HERO SECTION — Cinematic
   ═══════════════════════════════════════════════════ */

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--uf-blue-dark);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: grayscale(40%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(17, 17, 17, 0.6) 50%,
    rgba(12, 10, 9, 0.75) 100%
  );
}

.hero-uf-line {
  width: 60px;
  height: 3px;
  background: var(--uf-orange);
  display: block;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.6;
  max-width: 36rem;
}

.hero-tag {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--uf-orange);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
}

/* Hero CTA buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--uf-orange);
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--uf-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.btn-hero-secondary:hover {
  border-color: var(--uf-orange);
  background: rgba(201, 168, 76, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cinematic hero background with animated glow orbs */
#hero {
  background: var(--gradient-hero);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 25% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow-blue 8s ease-in-out infinite alternate;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 40% at 80% 60%, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-glow-orange 10s ease-in-out infinite alternate;
}

@keyframes hero-glow-blue {
  0% { opacity: 0.6; transform: translate(0, 0); }
  100% { opacity: 1; transform: translate(2%, -3%); }
}
@keyframes hero-glow-orange {
  0% { opacity: 0.4; transform: translate(0, 0); }
  100% { opacity: 0.8; transform: translate(-3%, 2%); }
}

/* Stats card — dark glass */
.hero-stats-glass {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Hero parallax layer */
.parallax-layer {
  will-change: transform;
}


/* ═══════════════════════════════════════════════════
   6. STATS BAR
   ═══════════════════════════════════════════════════ */

.stats-bar {
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: 0 2px 16px rgba(17, 17, 17, 0.04);
  position: relative;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--uf-orange);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .stat-divider { display: none; }
}


/* ═══════════════════════════════════════════════════
   7. SECTION LAYOUTS
   ═══════════════════════════════════════════════════ */

.section-padding {
  padding: 6rem 0;
}
@media (min-width: 768px) {
  .section-padding { padding: 8rem 0; }
}

.section-alt {
  background: linear-gradient(180deg, var(--uf-blue-bg) 0%, var(--stone-50) 100%);
}

.section-dark {
  background: var(--stone-900);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

/* Dark page-header sections - use UF Blue gradient instead of plain stone */
section[class*="bg-stone-900"] {
  background: linear-gradient(135deg, #050505 0%, #111111 60%, #1a1a1a 100%) !important;
  position: relative;
}
section[class*="bg-stone-900"] h1,
section[class*="bg-stone-900"] h2,
section[class*="bg-stone-900"] h3 {
  color: var(--white);
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}


/* ═══════════════════════════════════════════════════
   8. CARDS
   ═══════════════════════════════════════════════════ */

.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(17, 17, 17, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(17, 17, 17, 0.12);
  transform: translateY(-2px);
}

.card-uf-top {
  position: relative;
}
.card-uf-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--gradient-blue-orange);
  border-radius: 0 0 1px 1px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.card-uf-top:hover::before {
  opacity: 1;
}

/* Research highlight cards */
.research-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
  position: relative;
  border-top: 3px solid var(--uf-blue);
}
.research-card:hover {
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
  transform: translateY(-4px);
  border-top-color: var(--uf-orange);
}
.research-card:hover .research-card-icon {
  transform: scale(1.1) rotate(-5deg);
  color: var(--uf-orange);
}
.research-card-icon {
  transition: all var(--duration-slow) var(--ease);
}
.research-card-visual {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--uf-blue-bg) 0%, var(--uf-blue-tint) 100%);
  position: relative;
}
.research-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-blue-orange);
  opacity: 0.3;
  transition: opacity var(--duration) var(--ease);
}
.research-card:hover .research-card-visual::after {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════
   9. NEWS
   ═══════════════════════════════════════════════════ */

.news-item {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  background: var(--white);
}
.news-item:hover {
  border-left-color: var(--uf-blue);
  background: var(--uf-blue-bg);
  transform: translateX(4px);
}

.news-date {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uf-blue);
  white-space: nowrap;
  min-width: 5rem;
  letter-spacing: 0.02em;
}

.news-text {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}
.news-text a {
  color: var(--uf-blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  transition: border-color var(--duration) var(--ease);
}
.news-text a:hover {
  border-bottom-color: var(--uf-blue);
}

/* News expand/collapse animation */
.news-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.news-expandable.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* News year dividers */
.news-year-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.news-year-divider span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--uf-blue);
  white-space: nowrap;
}
.news-year-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--uf-blue-tint), transparent);
}

/* News toggle */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--uf-blue);
  border: 1px solid var(--uf-blue);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.btn-toggle:hover {
  background: var(--uf-orange);
  color: var(--white);
}
.btn-toggle svg {
  transition: transform var(--duration) var(--ease);
}


/* ═══════════════════════════════════════════════════
   10. EDUCATION TIMELINE
   ═══════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--stone-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uf-orange);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--uf-blue-tint);
  transform: translateX(-4px);
}


/* ═══════════════════════════════════════════════════
   11. AFFILIATIONS
   ═══════════════════════════════════════════════════ */

.affiliation-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--duration) var(--ease);
}
.affiliation-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--uf-blue-tint);
}

.affiliation-badge {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--uf-blue-bg);
  color: var(--uf-blue);
  border: 1px solid var(--uf-blue-tint);
}


/* ═══════════════════════════════════════════════════
   12. AWARDS
   ═══════════════════════════════════════════════════ */

.award-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--uf-blue);
  line-height: 1;
  min-width: 5rem;
}

.award-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--stone-100);
}
.award-item:last-child {
  border-bottom: none;
}

.award-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.award-org {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}


/* ═══════════════════════════════════════════════════
   13. PROFESSIONAL SERVICE
   ═══════════════════════════════════════════════════ */

.service-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stone-100);
}
.service-item:last-child {
  border-bottom: none;
}

.service-role {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.service-org {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.service-years {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uf-blue);
  white-space: nowrap;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════
   14. OPEN POSITIONS CTA
   ═══════════════════════════════════════════════════ */

.cta-box {
  background: var(--uf-blue-dark);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uf-orange), var(--uf-orange-light), var(--uf-orange));
}
/* CTA orange glow orb */
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--uf-orange);
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-cta:hover {
  background: var(--uf-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--uf-blue);
  color: var(--uf-blue);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-outline:hover {
  background: var(--uf-orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}


/* ═══════════════════════════════════════════════════
   15. FUNDING / LOGO BAR
   ═══════════════════════════════════════════════════ */

.logo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.logo-bar img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all var(--duration) var(--ease);
}
.logo-bar img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}


/* ═══════════════════════════════════════════════════
   16. FOOTER
   ═══════════════════════════════════════════════════ */

footer {
  background: var(--stone-900) !important;
  color: var(--stone-400);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--uf-blue), var(--uf-orange), var(--uf-blue));
}

footer h3 {
  color: var(--white) !important;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer a {
  color: var(--stone-400);
  transition: color var(--duration) var(--ease) !important;
  text-decoration: none;
}
footer a:hover {
  color: var(--uf-orange) !important;
}

footer a[aria-label] svg {
  transition: all var(--duration) var(--ease);
}
footer a[aria-label]:hover svg {
  transform: translateY(-2px);
  color: var(--uf-orange);
}


/* ═══════════════════════════════════════════════════
   17. MOBILE MENU
   ═══════════════════════════════════════════════════ */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 300px;
  max-width: 85vw;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(201, 168, 76, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
}
.mobile-drawer.active {
  transform: translateX(0);
}
.mobile-drawer a {
  transition: all var(--duration) var(--ease) !important;
  border-radius: var(--radius) !important;
}
.mobile-drawer a:hover {
  background: var(--uf-blue-bg) !important;
  color: var(--uf-orange) !important;
}


/* ═══════════════════════════════════════════════════
   18. BACK TO TOP
   ═══════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 30;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(10, 10, 10, 0.6);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--uf-orange);
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-blue);
}


/* ═══════════════════════════════════════════════════
   19. GSAP ANIMATION CLASSES
   ═══════════════════════════════════════════════════ */

/* Initial hidden states for GSAP to animate from */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-fade-in {
  opacity: 0;
}

.gsap-slide-left {
  opacity: 0;
  transform: translateX(-40px);
}

.gsap-slide-right {
  opacity: 0;
  transform: translateX(40px);
}

.gsap-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* Fallback for no-JS: show everything */
.no-js .gsap-fade-up,
.no-js .gsap-fade-in,
.no-js .gsap-slide-left,
.no-js .gsap-slide-right,
.no-js .gsap-scale-in {
  opacity: 1;
  transform: none;
}

/* Legacy reveal support */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════
   20. LOADING SPINNER
   ═══════════════════════════════════════════════════ */

.spinner {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--stone-200);
  border-top-color: var(--uf-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════
   21. PAGE HEADERS (Subpages)
   ═══════════════════════════════════════════════════ */

.page-header {
  background: linear-gradient(135deg, #050505 0%, #0a0a0a 30%, #111111 70%, #1a1a1a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
}

/* Subtle dot grid */
.page-header-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Soft orange glow top-right */
.page-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Page label */
.page-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--uf-orange);
  margin-bottom: 0.75rem;
}
.page-header-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Page title */
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

/* Subtitle */
.page-header-subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 36rem;
}

/* Accent line */
.page-header-accent {
  width: 40px;
  height: 3px;
  background: var(--uf-orange);
  border-radius: 2px;
  margin-top: 1rem;
}

/* Bottom separator */
.page-header-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue-orange);
  z-index: 3;
}

@media (max-width: 640px) {
  .page-header {
    padding: 5rem 0 2.5rem;
  }
}

/* Legacy subpage header selector */
section[class*="bg-stone-900"][class*="text-white"][class*="py-12"] {
  background: var(--stone-950) !important;
}


/* ═══════════════════════════════════════════════════
   22. PUBLICATIONS
   ═══════════════════════════════════════════════════ */

.badge-journal { background: var(--uf-blue); color: #fff; }
.badge-conference { background: var(--stone-700); color: #fff; }
.badge-preprint { background: var(--stone-500); color: #fff; }
.badge-book { background: var(--stone-800); color: #fff; }
.badge-thesis { background: var(--stone-600); color: #fff; }
.badge-default { background: var(--stone-400); color: #fff; }

[class*="badge-"] {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.abstract-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.abstract-content.expanded {
  max-height: 1000px;
}

/* Publication thumbnail */
.pub-thumb-wrap {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}
.pub-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform var(--duration) var(--ease);
}
.card:hover .pub-thumb {
  transform: scale(1.08);
}

/* Filter bar — glass */
section[class*="sticky"][class*="top-"] {
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(255, 255, 255, 0.6) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12) !important;
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

select, input[type="search"] {
  transition: all var(--duration) var(--ease) !important;
}
select:hover, input[type="search"]:hover {
  border-color: var(--uf-orange) !important;
}

/* Pagination */
.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-weight: 500;
  font-size: 0.875rem;
}
.pagination-btn:hover {
  border-color: var(--uf-blue);
  color: var(--uf-blue);
  box-shadow: 0 0 0 3px var(--uf-blue-glow);
}
.pagination-btn.active {
  background: var(--uf-orange);
  color: #fff;
  border-color: var(--uf-blue);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}


/* ═══════════════════════════════════════════════════
   23. TEAM CARDS — Magazine-Style Mosaic Grid
   ═══════════════════════════════════════════════════ */

/* PI Hero Card — full-width cinematic */
.pi-hero-card {
  background: linear-gradient(135deg, #050505 0%, #111111 60%, #1a1a1a 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.pi-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Member card — large photo mosaic */
.member-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
  border-bottom: 3px solid var(--uf-blue);
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.18);
  border-bottom-color: var(--uf-orange);
}

.member-card-photo-wrap {
  position: relative;
  overflow: hidden;
}
.member-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: all var(--duration-slow) var(--ease);
}
.member-card:hover .member-card-photo {
  filter: brightness(0.75);
  transform: scale(1.03);
}

.member-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(201, 168, 76, 0.12) 40%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.member-card:hover .member-card-overlay {
  opacity: 1;
}

.member-card-info {
  padding: 1rem 1.25rem;
}
.member-card-info h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}
.member-card-info .member-role {
  font-size: 0.8125rem;
  color: var(--uf-blue);
  font-weight: 500;
  margin-top: 0.125rem;
}
.member-card-info .member-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.member-card-info .member-award {
  font-size: 0.7rem;
  color: var(--uf-orange);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Team mosaic grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .member-card-photo {
    aspect-ratio: 1 / 1;
  }
}

/* Legacy team card styles */
.grid img[class*="rounded-full"][class*="w-24"] {
  transition: all var(--duration) var(--ease) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 3px solid transparent;
}
a.group:hover img[class*="rounded-full"][class*="w-24"] {
  border-color: var(--uf-blue);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
  transform: scale(1.05);
}

h3[class*="border-b"] {
  position: relative;
  border-bottom: none !important;
  padding-bottom: 0.75rem !important;
}
h3[class*="border-b"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-blue-orange);
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════
   24. GALLERY
   ═══════════════════════════════════════════════════ */

/* Grid-span masonry: items flow left-to-right (chronological order preserved),
   while js/gallery.js sets each item's row-span from the image plus caption
   height so full images and captions are shown without cropping. */
.gallery-masonry {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 10px;
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-masonry { grid-template-columns: repeat(3, 1fr); } }

.gallery-masonry .gallery-item {
  grid-row-end: span 30; /* fallback span before JS measures images */
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.gallery-masonry .gallery-item img {
  display: block;
  width: 100%;
}
.gallery-masonry .gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}
.gallery-masonry .gallery-item img {
  transition: transform 0.6s var(--ease);
}
.gallery-masonry .gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════════════════════
   25. PROSE / BODY TEXT
   ═══════════════════════════════════════════════════ */

.prose a {
  color: var(--uf-orange) !important;
  text-decoration: none;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════
   26. UTILITY CLASSES
   ═══════════════════════════════════════════════════ */

.uf-blue-text {
  color: var(--uf-blue);
}

.uf-gradient-text {
  background: var(--gradient-blue-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legacy gradient-text remapped to UF */
.gradient-text {
  background: var(--gradient-blue-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uf-gradient-text {
  background: var(--gradient-blue-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.glass-dark {
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 4px 24px rgba(0, 0, 0, 0.2);
}
.glass-subtle {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(17, 17, 17, 0.04);
}

/* Subtle grain texture */
.texture-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* UF separator — gradient line */
.uf-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--uf-blue), var(--uf-orange), var(--uf-blue), transparent);
}

/* UF separator */
.uf-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--uf-blue-tint), transparent);
}


/* ═══════════════════════════════════════════════════
   27. ABOUT SECTION
   ═══════════════════════════════════════════════════ */

.about-positions-box {
  background: var(--uf-orange-bg);
  border: 1px solid var(--uf-orange-tint);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.about-positions-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--uf-orange);
  border-radius: 3px 0 0 3px;
}


/* ═══════════════════════════════════════════════════
   28. AWARDS SECTION PATTERN
   ═══════════════════════════════════════════════════ */

.awards-section {
  position: relative;
}

/* Award card blue-to-orange gradient top border reveal on hover */
.award-card {
  position: relative;
  overflow: hidden;
}
.award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.award-card:hover::before {
  transform: scaleX(1);
}


/* ═══════════════════════════════════════════════════
   29. ABOUT SECTION ENHANCEMENTS
   ═══════════════════════════════════════════════════ */

/* Quote callout — blue-tinted */
.quote-callout {
  border-left: 3px solid var(--uf-blue);
  padding: 1.25rem 1.5rem;
  background: var(--uf-blue-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}
.quote-callout::before {
  content: '\201C';
  font-family: 'Space Grotesk', Georgia, serif;
  font-size: 3rem;
  color: var(--uf-blue);
  opacity: 0.3;
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  line-height: 1;
}

/* Featured In badges polish */
.featured-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stone-600);
  background: var(--stone-50);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--stone-100);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease);
}
.featured-badge:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--uf-blue-tint);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════
   30. FUNDING MARQUEE (CSS-only infinite scroll)
   ═══════════════════════════════════════════════════ */

.logo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-marquee {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.logo-marquee img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all 0.5s var(--ease);
  flex-shrink: 0;
}
.logo-marquee img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover for accessibility */
.logo-marquee-wrapper:hover .logo-marquee {
  animation-play-state: paused;
}


/* ═══════════════════════════════════════════════════
   31. GENERAL VISUAL POLISH
   ═══════════════════════════════════════════════════ */


/* Soft gradient transitions between sections */
.section-transition-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--white), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Button press state micro-interaction */
.btn-hero-primary:active,
.btn-hero-secondary:active,
.btn-cta:active,
.btn-toggle:active {
  transform: translateY(0) scale(0.98);
}

/* Link underline animation */
.prose a {
  background-image: linear-gradient(var(--uf-blue), var(--uf-blue));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s var(--ease), color var(--duration) var(--ease);
  border-bottom: none !important;
}
.prose a:hover {
  background-size: 100% 1px;
}


/* ═══════════════════════════════════════════════════
   32. TEAM PAGE — ALUMNI CARDS & ENHANCEMENTS
   ═══════════════════════════════════════════════════ */

/* Compact alumni card with optional thumbnail */
.alumni-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--uf-blue-tint);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: all var(--duration) var(--ease);
}
.alumni-card:hover {
  border-left-color: var(--uf-orange);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.1);
  transform: translateX(2px);
}

/* Click-to-reveal photo in alumni cards */
.alumni-card details {
  margin-top: 0.5rem;
}
.alumni-card details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--uf-blue);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--uf-blue-tint);
  background: var(--uf-blue-bg);
  transition: all var(--duration) var(--ease);
  user-select: none;
}
.alumni-card details summary::-webkit-details-marker {
  display: none;
}
.alumni-card details summary::marker {
  display: none;
  content: '';
}
.alumni-card details summary:hover {
  background: var(--uf-blue-tint);
}
.alumni-card details summary svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration) var(--ease);
}
.alumni-card details[open] summary svg {
  transform: rotate(180deg);
}
.alumni-card details .alumni-photo-wrap {
  margin-top: 0.75rem;
  overflow: hidden;
  animation: alumni-photo-reveal 0.3s var(--ease);
}
@keyframes alumni-photo-reveal {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 80px; }
}
.alumni-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--uf-blue-tint);
  box-shadow: var(--shadow-sm);
}

/* LinkedIn icon inline with alumni names */
.alumni-linkedin {
  display: inline-flex;
  align-items: center;
  color: var(--stone-400);
  transition: color var(--duration) var(--ease);
  vertical-align: middle;
  margin-left: 0.375rem;
}
.alumni-linkedin:hover {
  color: var(--uf-blue);
}
.alumni-linkedin svg {
  width: 14px;
  height: 14px;
}

/* Job position display for alumni */
.alumni-position {
  font-size: 0.75rem;
  color: var(--uf-blue);
  margin-top: 0.25rem;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════
   33. RESEARCH PAGE (Legacy selectors)
   ═══════════════════════════════════════════════════ */

[class*="bg-primary\\/5"][class*="rounded-2xl"] {
  background: var(--stone-50) !important;
  border: 1px solid var(--border-color);
}


/* ═══════════════════════════════════════════════════
   34. RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .hero-section {
    min-height: 70vh;
  }
  /* On mobile, allow hero to grow beyond 100vh if content is tall */
  #hero {
    min-height: auto;
  }
  .section-padding {
    padding: 3.5rem 0;
  }
  .cta-box {
    padding: 2rem 1.5rem;
  }
}


/* ═══════════════════════════════════════════════════
   WCAG 2.2 AAA – Enhanced Contrast & Visual Presentation
   ═══════════════════════════════════════════════════ */

/* 1.4.6 Enhanced Contrast: boost lighter text for 7:1 on white */
.page-header-subtitle { color: rgba(255,255,255,0.9) !important; }
footer .text-stone-500 { color: #d6d3d1 !important; }
footer .text-stone-400 { color: #d6d3d1 !important; }

/* 1.4.8 Visual Presentation: line spacing, line width, no justify */
main p, main li, main td, main dd { line-height: 1.8; max-width: 80ch; }
main { text-align: left; }

/* 2.4.13 Focus Appearance: Enhanced focus indicators */
*:focus-visible {
  outline: 3px solid #C9A84C !important;
  outline-offset: 3px !important;
  border-radius: 2px;
}
*:focus:not(:focus-visible) { outline: none; }

/* 2.5.8 Target Size: 44px minimum for interactive elements */
a, button, [role="button"], input, select, textarea {
  min-height: 44px;
}
nav a, footer a, .breadcrumb-nav a, p a, li a, td a { min-height: auto; }

/* Breadcrumb styling */
.breadcrumb-nav a { color: #78716c; }
.breadcrumb-nav a:hover { color: #C9A84C; }

/* Abbreviation styling */
abbr[title] { text-decoration: underline dotted; cursor: help; }
