:root {
  --background: #09090b;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --blue: #3b82f6;
  --cyan: #22d3ee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

/* Keeps page content above background effects */
nav,
.hero {
  position: relative;
  z-index: 2;
}

/* Shared content sections */
.section {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.section-heading h2 span {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1.15fr);
  gap: 70px;
  align-items: center;
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-copy .lead {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 30px;
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}

.text-link span { transition: transform 0.25s ease; }
.text-link:hover span { transform: translate(4px, 4px); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card,
.skill-group,
.timeline-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}

.stat-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(96,165,250,0.55);
}

.stat-icon { display: block; margin-bottom: 17px; font-size: 1.25rem; }
.stat-card strong { display: block; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 2.35rem; }
.stat-card > span:last-child { display: block; margin-top: 5px; color: var(--muted); font-size: 0.88rem; }

.skills-section { padding-top: 60px; }

.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.skill-group { min-height: 250px; padding: 28px; border-radius: 20px; }
.skill-group h3 { margin-bottom: 24px; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { padding: 9px 12px; border: 1px solid rgba(147,197,253,0.2); border-radius: 99px; background: rgba(37,99,235,0.1); color: #dbeafe; font-size: 0.83rem; }

.timeline-section { padding-top: 80px; padding-bottom: 150px; }
.timeline { position: relative; max-width: 840px; padding-left: 42px; }
.timeline::before { position: absolute; top: 8px; bottom: 8px; left: 8px; width: 1px; background: linear-gradient(var(--blue), var(--cyan), transparent); content: ""; }
.timeline-item { position: relative; margin-bottom: 18px; padding: 28px 30px; border-radius: 18px; }
.timeline-dot { position: absolute; top: 34px; left: -41px; width: 15px; height: 15px; border: 3px solid var(--background); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,0.75); }
.timeline-label { margin-bottom: 8px; color: #60a5fa; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; }
.timeline-item h3 { margin-bottom: 10px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.timeline-item > p:last-child { color: var(--muted); line-height: 1.65; }

.projects-section { padding-top: 20px; padding-bottom: 150px; }
.projects-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.projects-intro .section-heading { margin-bottom: 42px; }
.projects-note { max-width: 355px; margin-bottom: 48px; color: var(--muted); line-height: 1.7; }
.project-list { display: grid; gap: 20px; }
.project-card { overflow: hidden; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; background: rgba(255,255,255,0.035); transition: border-color .3s ease, transform .3s ease; }
.project-card:hover { border-color: rgba(96,165,250,.48); transform: translateY(-5px); }
.featured-project { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 440px; }
.project-visual { position: relative; display: grid; min-height: 270px; place-items: center; overflow: hidden; }
.project-content { padding: 36px; }
.featured-project .project-content { display: flex; flex-direction: column; justify-content: center; padding: 55px; }
.project-number { margin-bottom: 13px; color: #60a5fa; font-family: "Space Grotesk", sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .15em; }
.project-content h3 { margin-bottom: 14px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.45rem, 3vw, 2.15rem); }
.project-content > p:not(.project-number) { color: var(--muted); line-height: 1.75; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; list-style: none; }
.project-tags li { padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; background: rgba(255,255,255,.04); color: #d4d4d8; font-size: .78rem; }
.project-status { margin-top: 25px; color: #93c5fd; font-size: .85rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.visual-travel { isolation: isolate; background: radial-gradient(circle at 48% 40%, #164e63, #0b1731 47%, #0a0a12 76%); }
.visual-travel::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(147,197,253,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(147,197,253,.1) 1px, transparent 1px); background-size: 34px 34px; content: ""; opacity: .32; }
.visual-orbit { position: absolute; border: 1px solid rgba(125,211,252,.25); border-radius: 50%; }
.orbit-one { width: 310px; height: 310px; }
.orbit-two { width: 470px; height: 200px; transform: rotate(-25deg); }
.map-card { position: relative; z-index: 1; border: 1px solid rgba(186,230,253,.3); border-radius: 15px; background: rgba(15,23,42,.75); box-shadow: 0 20px 50px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.map-card-main { display: flex; flex-direction: column; width: 205px; padding: 22px; }
.map-card-main span { margin-bottom: 16px; color: #67e8f9; font-size: 1.35rem; }
.map-card-main strong { font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }
.map-card-main small { margin-top: 7px; color: #bae6fd; }
.map-card-small { position: absolute; right: 13%; bottom: 18%; padding: 11px 13px; color: #cffafe; font-size: .78rem; }

.visual-fitness { background: radial-gradient(circle at 50% 45%, #1d4ed8, #172554 48%, #0a0a12 78%); }
.phone-shell { position: relative; width: 155px; min-height: 245px; padding: 21px 17px; border: 7px solid #151827; border-radius: 25px; background: linear-gradient(150deg, #eff6ff, #dbeafe); color: #172554; box-shadow: 0 28px 40px rgba(0,0,0,.32); text-align: center; transform: rotate(-7deg); }
.phone-top { width: 55px; height: 7px; margin: -10px auto 24px; border-radius: 99px; background: #cbd5e1; }
.phone-shell p { font-size: .67rem; font-weight: 700; }
.phone-shell strong { display: block; margin-top: 12px; font-size: 1.62rem; }
.phone-shell > span { color: #64748b; font-size: .68rem; }
.progress-ring { display: grid; width: 68px; height: 68px; margin: 18px auto 0; place-items: center; border: 8px solid #22c55e; border-left-color: #bfdbfe; border-radius: 50%; color: #16a34a; font-size: .75rem; font-weight: 700; }

.visual-ai { background: radial-gradient(circle at 50% 10%, #3b0764, #191129 48%, #09090b 80%); }
.terminal-window { width: min(78%, 360px); padding: 18px; border: 1px solid rgba(216,180,254,.28); border-radius: 14px; background: rgba(9,9,11,.72); box-shadow: 0 24px 50px rgba(0,0,0,.3); color: #d8b4fe; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #f472b6; }
.terminal-dots i:nth-child(2) { background: #facc15; }.terminal-dots i:nth-child(3) { background: #4ade80; }
.terminal-window p { font-size: .78rem; }.terminal-window p span { color: #a78bfa; }.terminal-window strong { display: block; margin: 14px 0 22px; color: #f5f3ff; font-size: .9rem; }
.terminal-line { height: 7px; margin-top: 10px; border-radius: 99px; background: rgba(216,180,254,.22); }.terminal-line.short { width: 62%; }

.running-section { padding-top: 0; }
.running-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; overflow: hidden; padding: clamp(32px, 6vw, 70px); border: 1px solid rgba(34,211,238,.2); border-radius: 28px; background: radial-gradient(circle at 80% 10%, rgba(6,182,212,.18), transparent 35%), linear-gradient(135deg, rgba(15,23,42,.9), rgba(9,9,11,.96)); }
.running-copy h2, .contact-card h2 { max-width: 610px; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.1rem, 4.5vw, 3.55rem); line-height: 1.1; }
.running-copy h2 span, .contact-card h2 span { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.running-copy > p:not(.eyebrow) { max-width: 535px; margin-top: 22px; color: var(--muted); line-height: 1.8; }
.run-stats { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 34px; }
.run-stats div { display: grid; gap: 4px; }.run-stats strong { color: #cffafe; font-family: "Space Grotesk", sans-serif; font-size: 1.55rem; }.run-stats span { color: var(--muted); font-size: .78rem; }
.run-route { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 310px; padding: 12px 0 12px 56px; }
.route-line { position: absolute; top: 22px; bottom: 22px; left: 12px; width: 2px; background: linear-gradient(#22d3ee 65%, rgba(255,255,255,.16) 65%); }
.route-stop { position: relative; display: grid; gap: 3px; }.route-stop::before { position: absolute; top: 5px; left: -50px; width: 18px; height: 18px; border: 4px solid #0f172a; border-radius: 50%; content: ""; }.route-stop.reached::before { background: #22d3ee; box-shadow: 0 0 16px rgba(34,211,238,.72); }.route-stop.next::before { border-color: #64748b; background: #0f172a; }.route-stop.highlight::before { width: 23px; height: 23px; top: 2px; left: -53px; background: #facc15; box-shadow: 0 0 24px rgba(250,204,21,.65); }
.route-stop span { color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; font-weight: 700; }.route-stop small { color: var(--muted); }

.research-section { padding-top: 0; }
.research-card { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(167,139,250,.28); border-radius: 24px; background: linear-gradient(120deg, rgba(88,28,135,.16), rgba(255,255,255,.025)); }
.research-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; background: rgba(167,139,250,.14); color: #c4b5fd; font-size: 1.6rem; }.research-card .eyebrow { margin-bottom: 9px; color: #c4b5fd; }.research-card h2 { max-width: 690px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.35rem, 3vw, 2rem); }.research-card p:not(.eyebrow) { max-width: 680px; margin-top: 12px; color: var(--muted); line-height: 1.7; }.research-badge { padding: 9px 12px; border: 1px solid rgba(196,181,253,.25); border-radius: 99px; color: #ddd6fe; font-size: .78rem; white-space: nowrap; }

.contact-section { padding-top: 20px; padding-bottom: 50px; }.contact-card { padding: clamp(36px, 7vw, 80px); border-radius: 28px; background: radial-gradient(circle at 90% 15%, rgba(37,99,235,.36), transparent 30%), #10101b; text-align: center; }.contact-card h2 { margin: 0 auto; }.contact-card > p:not(.eyebrow) { max-width: 555px; margin: 22px auto 0; color: var(--muted); line-height: 1.75; }.contact-button { display: inline-flex; gap: 12px; margin-top: 32px; padding: 15px 23px; border-radius: 99px; background: white; color: #111827; font-weight: 700; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }.contact-button:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(255,255,255,.16); }.social-links { display: flex; justify-content: center; gap: 20px; margin-top: 25px; }.social-links a { color: #93c5fd; font-size: .9rem; text-decoration: none; }.social-links a:hover { color: white; }
.site-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 35px; border-top: 1px solid rgba(255,255,255,.09); color: #71717a; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  z-index: 999;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 40px 80px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.small {
  margin-bottom: 15px;
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 9vw, 5rem);
  line-height: 1.05;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  min-height: 44px;
  margin: 25px 0;
  color: #d4d4d8;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 500;
}

.hero p {
  max-width: 650px;
  margin: auto;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
  width: 100%;
}

.buttons a,
.buttons button {
  width: 175px;
  height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  box-sizing: border-box;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: var(--text) !important;
  gap: 6px;
}

.btn-ghost:hover {
  transform: translateY(-4px);
  background: rgba(34, 211, 238, 0.15) !important;
  border-color: rgba(34, 211, 238, 0.4) !important;
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.14);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: var(--text) !important;
}

.btn-outline:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.08);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background);
  z-index: 5000;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader-logo {
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 90px;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.loader-hide {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulse {
  50% {
    transform: scale(1.1);
  }
}

/* Mouse spotlight — z-index must NOT be negative */
#mouse-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(59, 130, 246, 0.08) 38%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Aurora blobs — z-index must NOT be negative */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.blob1 {
  top: -120px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: #2563eb;
}

.blob2 {
  top: 25%;
  right: -130px;
  width: 480px;
  height: 480px;
  background: #7c3aed;
  animation-delay: -6s;
}

.blob3 {
  bottom: -140px;
  left: 32%;
  width: 440px;
  height: 440px;
  background: #06b6d4;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -60px, 0) scale(1.08);
  }
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.85;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  animation: bounce 1.6s infinite ease-in-out;
}

.scroll-down:hover {
  opacity: 1;
  color: var(--cyan);
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Mobile */
@media (max-width: 700px) {
  nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 14px 18px;
  }

  nav ul {
    gap: 14px;
  }

  nav a {
    font-size: 0.8rem;
  }

  nav li:nth-child(3),
  nav li:nth-child(4) {
    display: none;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .hero p {
    font-size: 1rem;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .buttons a,
  .buttons button {
    width: 100%;
    max-width: 280px;
  }

  #mouse-light {
    display: none;
  }

  .blob {
    filter: blur(95px);
    opacity: 0.42;
  }

  .blob1,
  .blob2,
  .blob3 {
    width: 320px;
    height: 320px;
  }

  .section { width: min(100% - 40px, 1120px); padding: 85px 0; }
  .about-grid, .skill-groups { grid-template-columns: 1fr; gap: 18px; }
  .about-copy .lead { font-size: 1.22rem; }
  .stats-grid { gap: 12px; }
  .stat-card { min-height: 155px; padding: 19px; }
  .stat-card strong { font-size: 1.9rem; }
  .timeline-section { padding-bottom: 105px; }
  .projects-section { padding-top: 10px; padding-bottom: 105px; }
  .projects-intro { display: block; }
  .projects-note { margin-top: -22px; margin-bottom: 35px; }
  .featured-project, .project-grid { grid-template-columns: 1fr; }
  .featured-project .project-content { padding: 30px; }
  .project-content { padding: 28px; }
  .project-visual { min-height: 250px; }
  .running-panel { grid-template-columns: 1fr; gap: 40px; }.run-route { min-height: 280px; }
  .research-card { grid-template-columns: auto 1fr; gap: 20px; }.research-badge { grid-column: 1 / -1; width: fit-content; }
  .contact-section { padding-bottom: 38px; }.site-footer { flex-direction: column; gap: 8px; width: min(100% - 40px, 1120px); }
}
/* Running personal records */
.running-records {
  padding-top: 0;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pr-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pr-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.58);
}

.pr-distance {
  margin-bottom: 12px;
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pr-card strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.06em;
}

.pr-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.featured-pr {
  border-color: rgba(250, 204, 21, 0.35);
  background: radial-gradient(circle at 90% 10%, rgba(250, 204, 21, 0.18), transparent 40%), linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.twenty-miler {
  border-color: rgba(34, 211, 238, 0.38);
  background: radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.17), transparent 40%), linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.pr-note {
  margin-top: 18px;
  color: #71717a;
  font-size: 0.85rem;
}

.research-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 850px) {
  .pr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .pr-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Interactive Upgrades: Palette, Resume, Demos, Running
   ========================================================= */

/* Logo Link */
.logo a {
  color: inherit;
  text-decoration: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.palette-trigger:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

.palette-icon {
  font-size: 0.9rem;
}

.nav-resume-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  color: #a5f3fc;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-resume-pill:hover {
  background: rgba(34, 211, 238, 0.22);
  border-color: #22d3ee;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

/* Hero Status & Buttons */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  color: #a5f3fc;
  margin: 0;
  line-height: 1;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse 2s infinite;
}

.status-pulse.green {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}


/* Project Interactive Elements */
.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 10px;
  border-radius: 12px;
}

.tour-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  border-radius: 8px;
}

.tour-simulator {
  margin-top: 14px;
  background: rgba(9, 9, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.sim-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sim-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.sim-tag.active {
  background: rgba(34, 211, 238, 0.18);
  border-color: #22d3ee;
  color: #fff;
  font-weight: 600;
}

/* Fitness Interactive */
.fitness-selector {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.fit-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  padding: 3px 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.fit-btn:hover {
  color: #fff;
}

.fit-btn.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  font-weight: 600;
}

.fitness-subtext {
  display: block;
  margin-top: 6px;
  color: #71717a;
  font-size: 0.72rem;
}

/* Terminal Interactive Box */
.terminal-interactive-box {
  background: rgba(9, 9, 11, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  font-family: "JetBrains Mono", Consolas, monospace;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.terminal-interactive-box .terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-interactive-box .terminal-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.terminal-interactive-box .terminal-dots i:nth-child(1) { background: #ef4444; }
.terminal-interactive-box .terminal-dots i:nth-child(2) { background: #facc15; }
.terminal-interactive-box .terminal-dots i:nth-child(3) { background: #22c55e; }

.term-title {
  font-size: 0.68rem;
  color: #71717a;
  margin-left: auto;
}

.term-output {
  flex: 1;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.73rem;
  color: #e4e4e7;
  line-height: 1.45;
  padding: 8px 0;
}

.term-line-welcome {
  color: #a1a1aa;
}

.term-quick-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.term-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a5f3fc;
  font-family: inherit;
  font-size: 0.68rem;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-chip:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: #22d3ee;
  color: #fff;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.term-ps1 {
  color: #22d3ee;
  font-weight: 700;
  font-size: 0.8rem;
}

#term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fafafa;
  font-family: inherit;
  font-size: 0.74rem;
  flex: 1;
}

.project-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.project-link-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22d3ee;
  color: #a5f3fc;
  transform: translateY(-2px);
}

/* Running Section: Status, PR Switcher & Consistency */
.training-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.pr-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.pr-toggle-wrap {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pr-mode-btn {
  background: transparent;
  border: none;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pr-mode-btn.active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.pr-consistency-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(250, 204, 21, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.consistency-icon {
  font-size: 1.4rem;
  color: #facc15;
}

.consistency-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Research Drawer */
.research-drawer-container {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.abstract-toggle-btn {
  background: transparent;
  border: none;
  color: #a5f3fc;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.2s ease;
}

.abstract-toggle-btn:hover {
  color: #38bdf8;
}

.abstract-toggle-btn .chevron {
  transition: transform 0.25s ease;
}

.abstract-toggle-btn.open .chevron {
  transform: rotate(180deg);
}

.abstract-panel {
  margin-top: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.abstract-desc {
  font-size: 0.85rem;
  color: #d4d4d8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.abstract-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

/* Command Palette Modal */
.palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 10000;
  padding: 20px;
}

.palette-overlay.open {
  display: grid;
}

.palette-box {
  width: min(600px, 100%);
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(34, 211, 238, 0.1);
  overflow: hidden;
  animation: paletteIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paletteIn {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.palette-search {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.palette-search-icon {
  font-size: 1.1rem;
}

#palette-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  flex: 1;
  font-family: inherit;
}

.palette-esc {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: #71717a;
}

.palette-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: #e4e4e7;
  cursor: pointer;
  transition: 0.15s ease;
  text-decoration: none;
}

.palette-item:hover,
.palette-item.selected {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
  transform: translateX(2px);
}

.palette-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.palette-item-icon {
  font-size: 1.1rem;
}

.palette-item-badge {
  font-size: 0.7rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.palette-footer {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #71717a;
  display: flex;
  gap: 16px;
}

.palette-footer kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a1a1aa;
  font-family: monospace;
}

/* Resume Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.open {
  display: grid;
}

.modal-card {
  width: min(650px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  animation: paletteIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-group h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 4px;
}

.modal-title-group p {
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
}

.modal-action-btn:hover {
  background: #3b82f6;
}

.resume-section {
  margin-bottom: 20px;
}

.resume-section h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 8px;
}

.resume-entry {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.resume-date {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.resume-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-chips span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.78rem;
  color: #e4e4e7;
}

.resume-pr-row {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.8;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #18181b;
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #fff;
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
  .palette-trigger .palette-text {
    display: none;
  }
  .nav-resume-pill {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}


/* =========================================================
   Awwwards Polish: Themes, Audio, 3D Canvas, Splits, Graph
   ========================================================= */

/* Hero Canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Nav Icon Buttons */
.nav-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

/* Card 3D Magnetic Specular Spotlight */
.project-card,
.pr-card,
.stat-card,
.research-card,
.race-sim-card {
  position: relative;
  background-image: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(34, 211, 238, 0.12),
    transparent 65%
  );
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.3s ease;
}

/* Elevation Profile Card */
.elevation-profile-card {
  margin-top: 26px;
  background: rgba(9, 9, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.elevation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.elevation-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #a5f3fc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.elevation-subtitle {
  font-size: 0.75rem;
  color: #71717a;
}

.elevation-svg-wrap {
  width: 100%;
  overflow-x: auto;
}

.elevation-svg {
  width: 100%;
  min-width: 500px;
  height: 110px;
  overflow: visible;
}

.waypoint-node {
  fill: #09090b;
  stroke: #22d3ee;
  stroke-width: 3;
  cursor: pointer;
  transition: all 0.25s ease;
}

.waypoint-node:hover,
.waypoint-node.selected {
  fill: #22d3ee;
  r: 9;
  filter: drop-shadow(0 0 10px #22d3ee);
}

.waypoint-node.highlight {
  stroke: #facc15;
}

.waypoint-node.highlight:hover,
.waypoint-node.highlight.selected {
  fill: #facc15;
  filter: drop-shadow(0 0 10px #facc15);
}

.waypoint-node.target {
  stroke: #a855f7;
  stroke-dasharray: 2 2;
}

.waypoint-tooltip {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #22d3ee;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.waypoint-tooltip strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

/* Race Split & Prediction Simulator */
.race-sim-card {
  margin-top: 32px;
  background: rgba(14, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(15px);
}

.race-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.sim-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.race-sim-header h3 {
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
}

.race-sim-selectors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.race-sim-btn {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.race-sim-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.race-sim-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.race-sim-btn.target.active {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.race-sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.sim-metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sim-metric-item span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.sim-metric-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.sim-metric-item strong .unit {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: normal;
}

.sim-metric-item small {
  font-size: 0.72rem;
  color: #71717a;
}

.race-splits-visualizer {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
}

.split-vis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.split-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  border-radius: 12px;
}

.split-bars-container {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 80px;
  padding-top: 10px;
}

.split-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.split-bar-col:hover .split-bar {
  filter: brightness(1.25);
}

.split-bar {
  width: 100%;
  background: linear-gradient(180deg, #22d3ee, #2563eb);
  border-radius: 4px 4px 0 0;
  transition: height 0.35s ease-out;
}

.split-label {
  font-size: 0.65rem;
  color: #71717a;
  margin-top: 6px;
}

/* Research Graph Simulator */
.graph-simulator-wrap {
  margin-top: 24px;
  background: rgba(9, 9, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
}

.graph-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.graph-sim-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.graph-sim-sub {
  font-size: 0.75rem;
  color: #71717a;
}

.graph-controls {
  display: flex;
  gap: 8px;
}

.graph-action-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.graph-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.graph-action-btn.primary {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.graph-action-btn.primary:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.graph-canvas-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.05) 0%, rgba(9, 9, 12, 0.95) 80%);
}

.diffusion-canvas {
  width: 100%;
  height: 250px;
  display: block;
}

.graph-overlay-stats {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: #a1a1aa;
  backdrop-filter: blur(8px);
}

.graph-overlay-stats strong {
  color: #38bdf8;
}

.graph-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* System Status Bar */
.system-status-bar {
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sys-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  margin-right: 8px;
}

.sys-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-right: 6px;
}

.sys-ping strong {
  color: #4ade80;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

/* Keyboard Shortcuts Modal */
.shortcuts-card {
  max-width: 520px;
}

.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #cbd5e1;
}

.shortcut-row .keys kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #f8fafc;
}

/* Themes */
[data-theme="runner"] {
  --background: #090a07;
  --text: #fefce8;
  --muted: #a3a3a3;
  --blue: #f97316;
  --cyan: #84cc16;
}

[data-theme="runner"] nav {
  border-color: rgba(132, 204, 22, 0.2);
}

[data-theme="runner"] .btn-primary,
[data-theme="runner"] .pr-mode-btn.active,
[data-theme="runner"] .race-sim-btn.active {
  background: #f97316 !important;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4) !important;
}

[data-theme="cyan"] {
  --background: #030712;
  --text: #f0fdfa;
  --muted: #94a3b8;
  --blue: #0284c7;
  --cyan: #38bdf8;
}

[data-theme="cyan"] nav {
  border-color: rgba(56, 189, 248, 0.2);
}

@media (max-width: 900px) {
  .race-sim-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .race-sim-metrics-grid {
    grid-template-columns: 1fr;
  }
  .system-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   Scroll Progress, Back-to-Top, Hero Badges & Journey Cards
   ========================================================= */

/* Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #facc15);
  z-index: 10002;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #22d3ee;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.3);
}

/* Hero Badge Group & Location Pill */
.hero-badge-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto 26px;
}

.hero-status,
.hero-location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  margin: 0 !important;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.hero-status {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
}

.hero-location-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.hero-location-pill .pin-icon {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.hero-status .status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
}

/* Skills Filter & Category Styling */
.skills-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.skills-filter-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-filter-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.skill-filter-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.chips span {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.chips span.dimmed {
  opacity: 0.2;
  filter: grayscale(1);
  transform: scale(0.95);
}

.chips span.highlighted {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.18);
  color: #fff;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* Timeline Journey Details */
.timeline-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.timeline-company-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
}

.timeline-role-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.timeline-tags span {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}


/* =========================================================
   Wave 3: Philosophy, ECG Canvas, Pitch Composer & HUD
   ========================================================= */

/* Tour Tab Controls & Algo Pane */
.tour-tab-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tour-view-tab {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tour-view-tab:hover {
  color: #fff;
}

.tour-view-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-weight: 600;
}

.algo-code {
  background: rgba(0, 0, 0, 0.55);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.68rem;
  color: #38bdf8;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}

.algo-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: #71717a;
}

/* ECG Canvas in Fitness Card */
.ecg-canvas {
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.philosophy-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phil-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.phil-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #38bdf8;
}

.phil-icon {
  font-size: 1.3rem;
}

.philosophy-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.philosophy-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.phil-tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.phil-tag-row span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #38bdf8;
}

/* BibTeX & Math Model in Research */
.drawer-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bibtex-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bibtex-copy-btn:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22d3ee;
  color: #fff;
  transform: translateY(-1px);
}

.math-model-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}

.math-title {
  display: block;
  font-size: 0.72rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.math-code {
  display: block;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: #facc15;
  padding: 4px 0;
}

.math-model-box small {
  font-size: 0.72rem;
  color: #71717a;
  display: block;
  margin-top: 4px;
}

/* Pitch Composer in Contact */
.pitch-composer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  margin: 26px 0;
  text-align: left;
}

.pitch-box-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.pitch-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pitch-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pitch-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.pitch-chip.active {
  background: rgba(34, 211, 238, 0.18);
  border-color: #22d3ee;
  color: #fff;
  font-weight: 600;
}

.pitch-preview {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pitch-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #71717a;
  margin-bottom: 8px;
}

.pitch-copy-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.pitch-copy-btn:hover {
  color: #7dd3fc;
}

.pitch-text-preview {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  font-style: italic;
}

.contact-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* Marathon Mode Race Day HUD */
.marathon-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #15803d, #047857, #0284c7);
  padding: 8px 24px;
  z-index: 10003;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.marathon-hud.active {
  transform: translateY(0);
}

.hud-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.pulse-cadence {
  animation: pulse 0.67s infinite alternate;
}

.hud-close-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 3px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hud-close-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Refinements: Navbar Responsive, SVG Pointer Events & Modals
   ========================================================= */

.elevation-svg circle {
  pointer-events: all;
  cursor: pointer;
  stroke-width: 14px;
  paint-order: stroke fill;
}

/* Split Bar Clickable Hover & Active State */
.split-bar-col {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.split-bar-col:hover {
  transform: translateY(-3px);
}

.split-bar-col:hover .split-bar {
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

/* Mobile Navigation Drawer & Hamburger */
.mobile-menu-btn {
  display: none;
  font-size: 1.1rem;
}

@media (max-width: 840px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(85vw, 320px);
  height: 100vh;
  background: rgba(15, 15, 18, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.mobile-nav-links {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e4e4e7;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-links a span {
  font-family: monospace;
  font-size: 0.75rem;
  color: #22d3ee;
}

.mobile-nav-links a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  transform: translateX(4px);
}

.mobile-drawer-resume-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  color: #09090b;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mobile-drawer-resume-btn:hover {
  opacity: 0.9;
}

/* Marathon Mode Body Adjustment */
body.marathon-mode-active nav {
  top: 54px !important;
  transition: top 0.3s ease;
}

@media (max-width: 1080px) {
  nav {
    width: min(94%, 1200px);
    padding: 12px 20px;
  }
  nav ul {
    gap: 18px;
  }
  #shortcuts-btn {
    display: none;
  }
}

@media (max-width: 840px) {
  nav ul {
    display: none;
  }
  .nav-actions {
    gap: 8px;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .palette-box, .modal-card {
    padding: 22px 18px;
    max-height: 90vh;
  }
  .palette-footer {
    display: none;
  }
  .hud-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-badge-group {
    flex-direction: column;
    gap: 8px;
  }
  .race-sim-card, .elevation-profile-card, .pitch-composer-box {
    padding: 18px 14px;
  }
  .elevation-svg {
    min-width: 600px;
  }
  .elevation-svg-wrap {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
}
