:root {
  --bg: #0b0b0e;
  --bg-elev: #131318;
  --bg-card: #15151b;
  --border: #26262e;
  --text: #f3f3f5;
  --text-dim: #a0a0ab;
  --red: #e10600;
  --red-soft: rgba(225, 6, 0, 0.14);
  --purple: #b36bff; /* fastest sector */
  --green: #2bd96b;  /* personal best */
  --yellow: #ffd21f; /* slower */
  /* tyre compounds */
  --soft: #ff2a2a;
  --medium: #ffd21f;
  --hard: #f1f1f1;
  --inter: #2bd96b;
  --wet: #2e8bff;
  --radius: 6px;
  --maxw: 1140px;
  --font: "Titillium Web", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --slant: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.intro-active { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Carbon fibre texture */
.carbon {
  background-color: #111116;
  background-image:
    radial-gradient(#000 15%, transparent 16%),
    radial-gradient(#000 15%, transparent 16%),
    radial-gradient(rgba(255, 255, 255, 0.05) 15%, transparent 20%),
    radial-gradient(rgba(255, 255, 255, 0.05) 15%, transparent 20%);
  background-position: 0 0, 6px 6px, 0 1px, 6px 7px;
  background-size: 12px 12px;
}

/* Chequered strip */
.checker-strip {
  height: 16px;
  background: repeating-conic-gradient(#f3f3f5 0 25%, #0b0b0e 0 50%) 0 0 / 16px 16px;
  opacity: 0.9;
}

/* ============ Start lights intro ============ */
.lights-intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  background: #050507;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.lights-intro.done { opacity: 0; visibility: hidden; }
.gantry { display: flex; gap: clamp(8px, 2.5vw, 20px); }
.pod {
  display: flex; flex-direction: column; gap: 10px;
  background: #1a1a1f; border: 2px solid #2a2a31; border-radius: 10px;
  padding: 10px;
}
.bulb {
  width: clamp(34px, 9vw, 58px); height: clamp(34px, 9vw, 58px);
  border-radius: 50%;
  background: #2a0605;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.6);
  transition: background 0.08s, box-shadow 0.08s;
}
.pod.on .bulb {
  background: radial-gradient(circle at 40% 35%, #ff6b5e, var(--red) 55%, #8a0400);
  box-shadow: 0 0 22px 4px rgba(225, 6, 0, 0.75), inset 0 -4px 8px rgba(0, 0, 0, 0.3);
}
.lights-text {
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  opacity: 0; transform: scale(0.92); transition: opacity 0.25s, transform 0.25s;
  text-align: center; padding: 0 16px;
}
.lights-text.show { opacity: 1; transform: none; }
.lights-skip { position: absolute; bottom: 28px; font-family: var(--mono); font-size: 0.75rem; color: #55555f; }

/* ============ Lap progress bar ============ */
.lap-bar {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 3px; width: 0; background: var(--red);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.8);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px 12px 22px;
  font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--red); color: #fff;
  clip-path: var(--slant);
  transition: transform 0.2s, background 0.2s, filter 0.2s;
}
.btn:hover { transform: translateX(4px); filter: brightness(1.12); }
.btn-ghost {
  background: transparent; color: var(--text);
  clip-path: none; padding: 10px 22px; border: 2px solid var(--text-dim); transform: skewX(-12deg);
}
.btn-ghost:hover { transform: skewX(-12deg) translateX(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-small { padding: 8px 24px 8px 16px; font-size: 0.8rem; }
.btn-large { padding: 16px 44px 16px 30px; font-size: 1.05rem; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.logo { display: flex; align-items: stretch; font-weight: 900; font-style: italic; line-height: 1; }
.logo-num {
  background: var(--red); color: #fff; padding: 7px 14px 7px 10px; font-size: 1.1rem;
  clip-path: var(--slant);
}
.logo-code { padding: 7px 10px; font-size: 1.1rem; letter-spacing: 0.08em; }
.lap-counter {
  font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.1em;
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px;
  margin-right: auto;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  position: relative;
  color: var(--text-dim); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text);
  transition: transform 0.3s, top 0.3s;
}
.nav-toggle span:first-child { top: 11px; }
.nav-toggle span:last-child { top: 19px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 15px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 15px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 90px;
  background:
    linear-gradient(115deg, transparent 58%, var(--red-soft) 58%, var(--red-soft) 64%, transparent 64%),
    radial-gradient(900px circle at 80% 20%, rgba(225, 6, 0, 0.12), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
  padding-bottom: 70px; position: relative; z-index: 1; flex-shrink: 0;
}
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7); animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }

.hero-name { margin: 14px 0 6px; line-height: 0.92; text-transform: uppercase; }
.hero-name .first { display: block; font-weight: 400; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.04em; }
.hero-name .last {
  display: block; font-weight: 900; font-style: italic;
  font-size: clamp(3.4rem, 11vw, 7rem); letter-spacing: -0.01em;
}
.hero-role {
  display: inline-block; margin: 10px 0 18px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem;
  padding: 4px 26px 4px 12px; background: var(--red); clip-path: var(--slant);
}
.hero-title { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 700; color: var(--text-dim); }
.typed { color: var(--text); }
.cursor { color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { max-width: 560px; margin: 18px 0 32px; color: var(--text-dim); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-socials { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-socials a, .footer-socials a {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.hero-socials a:hover, .footer-socials a:hover { color: var(--red); }

/* Driver card */
.driver-card {
  position: relative;
  border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.driver-card-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.driver-num {
  font-size: clamp(4.5rem, 10vw, 6.5rem); font-weight: 900; font-style: italic; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 2px var(--red);
}
.driver-code { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.1em; }
.driver-stats { display: grid; gap: 0; }
.driver-stats div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}
.driver-stats dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; padding-top: 2px; }
.driver-stats dd { font-weight: 600; text-align: right; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 8px var(--green); }

/* Speed lines */
.speed-lines { position: absolute; inset: 0; pointer-events: none; }
.speed-lines span {
  position: absolute; right: -40%; height: 2px; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
  animation: speed 2.6s linear infinite;
}
.speed-lines span:nth-child(1) { top: 18%; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 34%; animation-delay: 1.1s; width: 20%; }
.speed-lines span:nth-child(3) { top: 52%; animation-delay: 0.5s; background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.6)); }
.speed-lines span:nth-child(4) { top: 66%; animation-delay: 1.8s; width: 40%; }
.speed-lines span:nth-child(5) { top: 80%; animation-delay: 0.9s; width: 18%; }
.speed-lines span:nth-child(6) { top: 90%; animation-delay: 2.2s; background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.5)); }
@keyframes speed { from { transform: translateX(0); } to { transform: translateX(-420%); } }

/* ============ Sections ============ */
.section { padding: 110px 24px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.kicker span {
  background: var(--red); color: #fff; padding: 3px 18px 3px 8px; clip-path: var(--slant); font-weight: 700;
}
.kicker-center { justify-content: center; }
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: 44px;
  display: flex; align-items: center; gap: 18px;
}
.section-title::after {
  content: ""; flex: 1; max-width: 260px; height: 10px;
  background: repeating-linear-gradient(115deg, var(--red) 0 10px, transparent 10px 18px);
  opacity: 0.8;
}

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.08rem; }
.stats { display: grid; gap: 12px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px 16px 22px;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.stat-sector {
  display: inline-block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #0b0b0e; background: var(--c); padding: 2px 8px; border-radius: 3px;
}
.stat-value {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 2.4rem; font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: -0.01em;
}
.stat-delta {
  font-family: var(--mono); font-style: normal; font-size: 0.95rem; font-weight: 700;
  color: var(--green); background: rgba(43, 217, 107, 0.12); padding: 1px 8px; border-radius: 3px;
}
.stat-label { color: var(--text-dim); font-size: 0.92rem; }

/* ============ Research ============ */
.research-card {
  position: relative;
  border: 1px solid var(--border); border-left: 6px solid var(--purple); border-radius: var(--radius);
  padding: 36px;
}
.pole-badge {
  position: absolute; top: -14px; right: 24px;
  font-family: var(--mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em;
  background: var(--purple); color: #140623; padding: 5px 12px; border-radius: 4px;
}
.research-venue { font-family: var(--mono); font-size: 0.78rem; color: var(--purple); margin-bottom: 10px; letter-spacing: 0.04em; }
.research-card h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.3; margin-bottom: 22px; font-weight: 700; }
.research-points { margin-bottom: 26px; }
.research-points li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--text-dim); }
.research-points li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 4px; background: var(--red);
  transform: skewX(-25deg);
}
.research-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--mono); font-size: 0.85rem; color: var(--text); transition: color 0.2s;
}
.research-link:hover { color: var(--red); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 0.76rem;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--chip, var(--border));
}

/* ============ Projects ============ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 24px 30px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.project::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--livery);
  transition: width 0.3s;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--livery);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.project:hover::before { width: 10px; }
.project.featured { grid-column: 1 / -1; }
/* A last card left alone on its row stretches full width */
.projects-grid > .project:last-child:nth-child(3n + 2) { grid-column: 1 / -1; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.grid-pos {
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: var(--livery);
}
.grid-pos small { font-size: 0.7rem; color: var(--text-dim); margin-left: 8px; letter-spacing: 0.1em; }
.project-links { display: flex; gap: 14px; }
.project-links a { color: var(--text-dim); transition: color 0.2s; display: flex; }
.project-links a:hover { color: var(--text); }
.project h3 { font-size: 1.4rem; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.15; }
.project-sub { font-size: 0.88rem; color: var(--livery); font-weight: 600; margin: 2px 0 12px; }
.project-desc { color: var(--text-dim); flex: 1; margin-bottom: 18px; }
.project .tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); }
.project .tags span::before { content: "/"; color: var(--livery); margin-right: 4px; }

/* ============ Timeline ============ */
.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--text-dim) 0 10px, transparent 10px 20px);
  opacity: 0.4;
}
.timeline > li { position: relative; padding: 0 0 36px 68px; }
.timeline > li:last-child { padding-bottom: 0; }
.stint {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 5px solid var(--tyre);
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem;
}
.stint-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px;
}
.timeline h3 { font-size: 1.2rem; font-weight: 700; }
.timeline .company { color: var(--red); }
.timeline .period { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); margin: 4px 0 12px; letter-spacing: 0.04em; }
.timeline .period-gap { height: 12px; }
.stint-points li { position: relative; padding: 0 0 6px 20px; color: var(--text-dim); }
.stint-points li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 3px; background: var(--red); transform: skewX(-25deg);
}

/* ============ Skills (tyre compounds) ============ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tyre {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, #2a2a30 0 34%, #0d0d10 35% 52%, var(--chip) 53% 62%, #0d0d10 63%);
  box-shadow: 0 0 0 2px #0d0d10;
}
.skill-head h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.skill-head small { display: block; font-family: var(--mono); font-size: 0.66rem; color: var(--chip); letter-spacing: 0.12em; text-transform: uppercase; }

/* ============ Education & achievements ============ */
.edu-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.edu-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px;
}
.edu-item:first-child { border-left: 5px solid var(--red); }
.edu-item h3 { font-size: 1.08rem; font-weight: 700; }
.edu-school { color: var(--red); font-size: 0.95rem; font-weight: 600; }
.edu-detail { color: var(--text-dim); font-size: 0.88rem; margin-top: 8px; }
.achievements { display: grid; gap: 10px; }
.achievement {
  display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.95rem; font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}
.achievement:hover { border-color: var(--red); transform: translateX(4px); }
.pos {
  font-family: var(--mono); font-weight: 700; text-align: center;
  font-size: 1.15rem; padding: 6px 8px; border-radius: 4px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
}
.pos.podium { background: var(--red); color: #fff; }
.pos.points { background: rgba(225, 6, 0, 0.18); color: #ff6b63; }
.pos.word { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 9px 8px; }

/* ============ Contact ============ */
.contact { text-align: center; max-width: 700px; }
.radio { display: flex; justify-content: center; align-items: center; gap: 5px; height: 44px; margin: 18px 0 8px; }
.radio span { width: 5px; height: 30%; background: var(--red); border-radius: 3px; animation: wave 1.1s ease-in-out infinite; }
.radio span:nth-child(2n) { animation-delay: 0.15s; }
.radio span:nth-child(3n) { animation-delay: 0.3s; }
.radio span:nth-child(4n) { animation-delay: 0.45s; }
@keyframes wave { 50% { height: 100%; } }
.contact-title {
  font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: 1; margin: 8px 0 18px;
}
.contact-text { color: var(--text-dim); margin-bottom: 36px; font-size: 1.08rem; }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-actions button { font-family: inherit; cursor: pointer; }
.btn-ghost.btn-large { padding: 14px 30px; }
.contact-email { margin-top: 22px; font-size: 0.95rem; color: var(--text-dim); letter-spacing: 0.04em; }
.copy-status { min-height: 1.4em; margin-top: 8px; font-size: 0.8rem; color: var(--green); }

/* ============ Footer ============ */
.footer { margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.footer p { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); }
.footer-socials { display: flex; gap: 18px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .live-dot, .radio span { animation: none; }
  .radio span { height: 60%; }
  .speed-lines { display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .driver-card { max-width: 460px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 60; }
  .lap-counter { margin-right: 0; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(75vw, 300px);
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg-elev); border-left: 3px solid var(--red);
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { font-size: 1.05rem; }
  .about-grid, .edu-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 16px; }
  .section { padding: 80px 16px; }
  .hero-grid { padding-bottom: 56px; }
  .projects-grid { grid-template-columns: 1fr; }
  .research-card { padding: 28px 22px; }
  .section-title::after { display: none; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 110px; }
  .timeline > li { padding-left: 58px; }
  .stint { width: 38px; height: 38px; border-width: 4px; font-size: 0.7rem; }
  .timeline::before { left: 18px; }
}

@media (max-width: 480px) {
  .lap-counter { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
