/* Photography Portfolio Website - Howard Wang */

/* CSS Variables */
:root {
  /* Core Colors */
  --primary-color: #ffffff;
  --secondary-color: #050505;
  /* Slightly lighter than pure black for depth */
  --accent-color: #e5e7eb;
  /* Neutral light gray */
  --accent-cyan: #cbd5e1;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);

  /* Engineering Theme */
  --engineering-blue: #e5e7eb;
  --engineering-dark: #0f172a;
  --grid-color: rgba(255, 255, 255, 0.03);

  /* Text Colors */
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0a0a0a;

  /* Overlays & Glass */
  --overlay-light: rgba(255, 255, 255, 0.05);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));

  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-light);
  overflow-x: hidden;
  background-color: var(--secondary-color);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-font-smoothing: antialiased;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--engineering-blue);
  color: white;
  padding: 8px;
  z-index: 10001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  text-align: center;
  color: white;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  animation: loading 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -0.2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.language-toggle.active,
.language-toggle:hover {
  background: white;
  color: black;
}

.language-toggle:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.contact-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000, #333);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.contact-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.contact-fab:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.contact-options {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 1rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.contact-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

.contact-option:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Full Screen Background Sections */
.fullscreen-bg {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-bg-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.section-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.section-overlay-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.section-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: -1;
}

.container-full {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.hero-text-center {
  max-width: 800px;
  margin-bottom: 4rem;
}

.hero-title-large {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.title-line-main {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-subtitle-large {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 3rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subtitle-carousel {
  position: relative;
  height: 2em;
  overflow: hidden;
}

.subtitle-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtitle-item.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta-center {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.primary-large {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.secondary-large {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.secondary-large:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  opacity: 0.7;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Photography Credit Styles */
.hero-photography-credit {
  margin-top: 1rem;
  text-align: center;
}

.photography-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.photography-showcase-note {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-style: italic;
}

/* Content Split Layouts */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 0;
}

.content-split-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 0;
}

.content-left,
.content-right {
  position: relative;
  z-index: 1;
}

/* Section Headers */
.section-header-large {
  margin-bottom: 3rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-large {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title-large.white {
  color: white;
}

.section-subtitle-large {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.8;
  font-weight: 300;
}

.section-subtitle-large.white {
  color: white;
}

/* About Section */
.about-story-large {
  margin-bottom: 3rem;
}

.story-text-large {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: white;
}

.stats-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-image-large {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-frame {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  pointer-events: none;
}

.profile-image-secondary {
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-img-secondary {
  width: 100%;
  height: auto;
  display: block;
}

.education-photos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 760px;
  flex-wrap: wrap;
}

.education-photo {
  flex: 1 1 280px;
  max-width: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .education-photos {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .profile-image-secondary {
    max-width: 240px;
  }
}

/* Portfolio Section */
.portfolio-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.portfolio-item-large {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-image-large {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition);
}

.portfolio-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item-large:hover .portfolio-overlay-hover {
  opacity: 1;
}

.portfolio-item-large:hover .portfolio-image-large {
  transform: scale(1.05);
}

.portfolio-info-center {
  text-align: center;
  color: white;
  padding: 2rem;
}

.portfolio-info-center h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.portfolio-info-center p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.portfolio-link-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid white;
  border-radius: 25px;
  transition: var(--transition);
}

.portfolio-link-large:hover {
  background: white;
  color: black;
}

.portfolio-cta-center {
  text-align: center;
}

/* Research Section - Enhanced */
.research-section {
  align-items: flex-start;
  padding: 8rem 0 6rem;
  scroll-margin-top: 5rem;
}

.research-section .section-overlay-light {
  background: rgba(2, 6, 23, 0.48);
}

.research-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.research-card-large,
.research-card-featured {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Added from original .research-card-large */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  /* Added from original .research-card-large */
}

.research-card-large:hover,
.research-card-featured:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.research-card-large::before,
.research-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.research-card-large:hover::before,
.research-card-featured:hover::before {
  transform: scaleX(1);
}

.research-card-featured {
  border: 2px solid var(--engineering-blue);
  /* Retained from original .research-card-featured */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  /* Retained from original .research-card-featured */
}

.research-card-featured::before {
  height: 4px;
  /* Retained from original .research-card-featured */
  background: linear-gradient(90deg, var(--engineering-blue), var(--engineering-dark));
  /* Retained from original .research-card-featured */
}

.project-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.project-spotlight-reverse .project-media {
  order: 2;
}

.project-spotlight-reverse .research-content-center {
  order: 1;
}

.project-media {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: #f8fafc;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-spotlight-reverse .project-media img {
  object-position: center;
}

.project-spotlight:hover .project-media img {
  transform: scale(1.025);
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), transparent 38%);
  pointer-events: none;
}

.project-media figcaption {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.15rem;
  left: 1.25rem;
  color: white;
  font-size: 0.78rem;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.project-spotlight .research-content-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.project-status {
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.project-spotlight .research-category-tag {
  margin-bottom: 1rem;
}

.project-spotlight .research-content-center h3 {
  max-width: 16ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.project-spotlight .research-collab,
.project-spotlight .research-links-center,
.project-spotlight .research-tech-stack {
  justify-content: flex-start;
}

.project-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.project-metrics div {
  min-width: 0;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.project-metrics strong,
.project-metrics span {
  display: block;
}

.project-metrics strong {
  color: white;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.project-metrics span {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.research-category-tag {
  display: inline-block;
  background: linear-gradient(135deg, #000, #333);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.research-category-tag.featured {
  background: linear-gradient(135deg, var(--engineering-blue), var(--engineering-dark));
  font-weight: 600;
}

.research-content-center h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.research-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(248, 250, 252, 0.78);
}

.research-collab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.research-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.research-links-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.research-link-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(248, 250, 252, 0.6);
  border-radius: 20px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.research-link-large:hover {
  background: var(--text-light);
  color: var(--engineering-dark);
  transform: translateY(-2px);
}

.research-link-large:focus {
  outline: 3px solid var(--engineering-blue);
  outline-offset: 2px;
}

/* Athletics Section */
.achievement-showcase {
  color: white;
}

.achievement-icon-large {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #ffd700;
}

.achievement-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.achievement-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.achievement-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.achievement-stats-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-large {
  text-align: center;
}

.stat-number-large {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #ffd700;
}

.stat-label-large {
  font-size: 1rem;
  opacity: 0.8;
}

.achievement-links-large {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.achievement-link-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid white;
  border-radius: 25px;
  transition: var(--transition);
}

.achievement-link-large:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.achievement-link-large:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.quote-large {
  text-align: center;
  color: white;
}

.quote-large blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.quote-large cite {
  font-size: 1rem;
  opacity: 0.8;
}

/* Blog / Writings Section */
.blog-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  color: var(--text-light);
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.blog-card-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0;
  flex-grow: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: 0.5rem;
  align-self: flex-start;
}

.blog-link:hover {
  background: white;
  color: var(--text-dark);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.blog-link:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.blog-link-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  transition: var(--transition);
}

.blog-link-download:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.blog-link-download:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* PDF viewer modal */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pdf-modal.active {
  opacity: 1;
  visibility: visible;
}

.pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.pdf-modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.pdf-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.pdf-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pdf-modal-close:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contact Section */
.contact-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-method-large {
  text-align: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem 2rem;
  transition: var(--transition);
}

.contact-method-large:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.method-icon-large {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.contact-method-large h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.contact-method-large p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.contact-link-large {
  color: white;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: 1px solid white;
  border-radius: 25px;
  transition: var(--transition);
  display: inline-block;
}

.contact-link-large:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.contact-link-large:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.social-connect-large {
  text-align: center;
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  font-size: 1.5rem;
}

.social-link-large:hover {
  background: white;
  color: black;
  border-color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.social-link-large:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.social-link-large.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

.social-link-large.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.social-link-large.github:hover {
  background: #333;
  color: white;
  border-color: #333;
}

.social-link-large.strava:hover {
  background: #fc4c02;
  color: white;
  border-color: #fc4c02;
}

.social-link-large.unsplash:hover {
  background: #000;
  color: white;
  border-color: #000;
}

/* Footer */
.footer-minimal {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content-center p {
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-5px);
}

.back-to-top:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

/* Education Section */
.education-section {
  min-height: 100vh;
  position: relative;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.education-card-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
}

.education-card-main:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.education-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.school-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--engineering-blue), var(--engineering-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.school-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.degree {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.timeline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.gpa {
  color: var(--engineering-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.education-details {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.coursework-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.coursework-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.coursework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--engineering-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.course-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.skills-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
}

.skills-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--engineering-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Portfolio Section - Compact Design */
.portfolio-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-item-compact {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
}

.portfolio-image-compact {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition);
}

.portfolio-item-compact:hover .portfolio-overlay-hover {
  opacity: 1;
}

.portfolio-item-compact:hover .portfolio-image-compact {
  transform: scale(1.05);
}

.portfolio-link-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid white;
  border-radius: 20px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.portfolio-link-compact:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.portfolio-link-compact:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.portfolio-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: white;
  opacity: 0.9;
}

/* Responsive Design Updates */
@media (max-width: 1024px) {

  .content-split,
  .content-split-reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portfolio-grid-large {
    grid-template-columns: 1fr;
  }

  .portfolio-grid-compact {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-showcase,
  .achievement-stats-large {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .research-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-spotlight {
    grid-template-columns: 1fr;
  }

  .project-spotlight-reverse .project-media,
  .project-spotlight-reverse .research-content-center {
    order: initial;
  }

  .project-media,
  .project-media img {
    min-height: 280px;
  }

  .project-spotlight .research-content-center {
    padding: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transition: var(--transition);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-cta-center {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .stats-showcase,
  .achievement-stats-large {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .achievement-links-large {
    flex-direction: column;
    align-items: center;
  }

  .achievement-link-large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .social-links-large {
    gap: 1rem;
  }

  .container-full {
    padding: 0 1rem;
  }

  .section-bg-full {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .education-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .school-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .research-card-featured,
  .research-card-large,
  .education-card-main {
    padding: 2rem;
  }

  /* Mobile-specific photography credits */
  .hero-photography-credit {
    margin-top: 0.5rem;
  }

  .photography-note {
    font-size: 0.8rem;
  }

  .photography-showcase-note {
    margin-top: 1.5rem;
    padding: 1.5rem;
  }

  .showcase-text {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .image-frame {
    inset: -8px;
  }

  .floating-contact {
    bottom: 1rem;
    right: 1rem;
  }

  .contact-fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }

  .portfolio-item-large,
  .portfolio-item-compact {
    height: 250px;
  }

  .contact-method-large {
    padding: 2rem 1rem;
  }

  .research-card-featured,
  .research-card-large,
  .education-card-main {
    padding: 1.5rem;
  }

  .project-spotlight {
    padding: 0;
  }

  .project-media,
  .project-media img {
    min-height: 220px;
  }

  .project-spotlight .research-content-center {
    padding: 1.5rem;
  }

  .project-metrics {
    gap: 0.5rem;
  }

  .project-metrics div {
    padding: 0.7rem 0.55rem;
  }

  .tech-tag,
  .skill-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .section-bg-full {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {

  .navbar,
  .floating-contact,
  .back-to-top,
  .hero-bg-slider {
    display: none;
  }

  .section-bg-full {
    background: none;
  }

  .section-overlay-dark,
  .section-overlay-light,
  .section-overlay-gradient {
    background: none;
  }

  body {
    color: black;
  }

  .section-title-large.white,
  .section-subtitle-large.white {
    color: black;
  }
}

/* Contact Form */
.contact-form-container {
  max-width: 800px;
  margin: 4rem auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -1.5rem;
  left: 0;
  font-size: 0.8rem;
  color: white;
}

.form-submit {
  grid-column: 1 / -1;
  text-align: center;
}

.submit-btn {
  background: white;
  color: black;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* —— Facet links in About (parallel research / running / art) —— */
.facet-links {
  align-items: stretch;
}

a.facet-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
}

a.facet-link:hover {
  transform: translateY(-4px);
}

a.facet-link .stat-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* —— Athletics mirrors research grid —— */
/* legacy athletics overlay removed — see athletics-photo-overlay below */
.athletics-grid .athletics-rhythm-card {
  grid-column: 1 / -1;
}

.athletics-grid .race-list-metrics strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.year-rhythm {
  margin: 1.25rem 0 0.5rem;
}

.year-rhythm-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  min-height: 160px;
  padding: 0.5rem 0 0;
}

.year-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  height: 160px;
  position: relative;
}

.year-bar::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 42px;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: rgba(30, 30, 30, 0.18);
  transition: height 0.6s ease, background 0.3s ease;
}

.year-bar.is-peak::before {
  background: rgba(30, 30, 30, 0.55);
}

.year-bar.is-ytd::before {
  background: repeating-linear-gradient(
    -45deg,
    rgba(30, 30, 30, 0.35),
    rgba(30, 30, 30, 0.35) 4px,
    rgba(30, 30, 30, 0.18) 4px,
    rgba(30, 30, 30, 0.18) 8px
  );
}

.year-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.75);
  font-variant-numeric: tabular-nums;
}

.year-label {
  font-size: 0.75rem;
  color: rgba(30, 30, 30, 0.55);
  letter-spacing: 0.02em;
}

.year-rhythm-caption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: rgba(30, 30, 30, 0.5);
}

.athletics-links {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .year-rhythm-bars {
    gap: 0.35rem;
    min-height: 130px;
  }

  .year-bar {
    height: 130px;
  }

  .year-val {
    font-size: 0.62rem;
  }

  .athletics-grid .athletics-rhythm-card {
    grid-column: auto;
  }
}

/* —— Athletics photo mosaic (Xiaohongshu) —— */
.athletics-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.athletics-section .athletics-bg.section-bg-full {
  z-index: 0;
  filter: none;
  transform: none;
  background-size: cover;
  background-position: center 40%;
  background-attachment: scroll;
}

.athletics-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Keep the road photo visible — soft vignette, not a white wash */
  background:
    linear-gradient(
      180deg,
      rgba(18, 16, 14, 0.35) 0%,
      rgba(18, 16, 14, 0.22) 35%,
      rgba(18, 16, 14, 0.45) 100%
    ),
    radial-gradient(
      ellipse 80% 65% at 50% 45%,
      rgba(20, 18, 16, 0.15) 0%,
      rgba(20, 18, 16, 0.55) 100%
    );
}

.athletics-content {
  position: relative;
  z-index: 2;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.athletics-header-tight {
  margin-bottom: 1.75rem;
}

.athletics-header-tight .section-title-large,
.athletics-header-tight .section-subtitle-large {
  color: #f7f3ec;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.athletics-header-tight .section-subtitle-large {
  color: rgba(247, 243, 236, 0.82);
}

.run-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, 17vw);
  gap: 0.85rem;
  margin: 0 auto 1.75rem;
  max-width: 1100px;
}

.run-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  grid-column: span 3;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.run-tile-hero {
  grid-column: span 6;
  grid-row: span 2;
}

.run-tile-wide {
  grid-column: span 6;
}

.run-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.run-tile:hover img {
  transform: scale(1.04);
}

.run-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.run-tile-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.run-tile-meta {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 500;
}

.run-facts,
.run-prs {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto 1.1rem;
  text-align: center;
}

.run-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.run-prs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.6rem;
}

.run-fact,
.run-pr {
  padding: 0.95rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 252, 247, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.run-fact strong,
.run-pr strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #f7f3ec;
  font-variant-numeric: tabular-nums;
}

.run-fact span,
.run-pr span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(247, 243, 236, 0.78);
  letter-spacing: 0.02em;
}

.athletics-links {
  margin-bottom: 0.5rem;
}

.athletics-section .research-link-large {
  background: rgba(255, 252, 247, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f7f3ec;
  backdrop-filter: blur(8px);
}

.athletics-section .research-link-large:hover {
  background: rgba(255, 252, 247, 0.24);
  color: #fff;
}

@media (max-width: 900px) {
  .run-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, 28vw);
  }

  .run-tile { grid-column: span 3; }
  .run-tile-hero { grid-column: span 6; grid-row: span 2; }
  .run-tile-wide { grid-column: span 6; }

  .run-facts,
  .run-prs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .run-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 42vw;
  }

  .run-tile,
  .run-tile-hero,
  .run-tile-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .run-tile-hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .run-tile-wide {
    grid-column: span 2;
  }
}
