/* ============================================================
   Alastair Bate — personal site
   ============================================================ */

:root {
  --bg: #0b0f1a;
  --bg-alt: #0f1524;
  --surface: #151c30;
  --surface-2: #1b2440;
  --text: #e8ecf4;
  --text-muted: #9aa5bd;
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.14);
  --accent-2: #4cc3ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; text-align: center; }

/* ---------- 3D background canvas ---------- */
#bg3d {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .hero, .footer { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.1s linear;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav--scrolled {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--text); letter-spacing: 0.02em;
}
.nav__logo:hover { text-decoration: none; }
.nav__links {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav__links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 400;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
  padding: 8px 18px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent) !important;
}
.nav__cta:hover { background: var(--accent-soft); }
.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: #14100a;
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.25);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(245, 166, 35, 0.4); }
.btn--ghost {
  border: 1px solid var(--border); color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: flex-start; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
  padding: calc(var(--nav-h) + 7vh) 24px 120px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--1 { width: 480px; height: 480px; background: #2a3a7a; top: -10%; left: -10%; }
.orb--2 { width: 420px; height: 420px; background: rgba(245, 166, 35, 0.35); bottom: -15%; right: -8%; animation-delay: -6s; }
.orb--3 { width: 320px; height: 320px; background: rgba(76, 195, 255, 0.28); top: 30%; right: 20%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}
.hero__content { position: relative; z-index: 1; max-width: 860px; }
.hero__eyebrow {
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.8rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #ffffff 30%, #b9c5e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--text-muted);
  font-weight: 300; margin-bottom: 32px;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.badge {
  padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 400;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-muted);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); z-index: 1;
}
.hero__scroll-hint:hover { text-decoration: none; }
.hero__scroll-text { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; }
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--text-muted); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.mouse__wheel {
  width: 3px; height: 8px; background: var(--accent); border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Hero entrance animation */
.reveal-hero {
  opacity: 0; transform: translateY(28px);
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.15s + 0.2s);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: rgba(15, 21, 36, 0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.section__eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.section__lede { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 48px; }
.container--narrow .section__lede { margin-left: auto; margin-right: auto; }

/* ---------- Scroll reveal (3D) ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(48px) rotateX(14deg) scale(0.97);
  transform-origin: center bottom;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 0.1s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0) scale(1); }

/* 3D hover tilt (driven by JS custom properties) */
.tilt {
  transform-style: preserve-3d;
}
.tilt.is-visible {
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(var(--lift, 0px));
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.18s ease-out,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.tilt:not(.reveal) {
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start;
}
.about__text p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.about__text em { color: var(--text); font-style: normal; font-weight: 500; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1), border-color 0.3s;
}
.stat:hover { border-color: rgba(245, 166, 35, 0.4); }
.stat__number {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; color: var(--accent); line-height: 1.1; margin-bottom: 6px;
}
.stat__label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 64px; }
.timeline__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.35;
}
.timeline__item {
  position: relative; width: 50%; padding: 0 48px 64px 0;
}
.timeline__item--right { margin-left: 50%; padding: 0 0 64px 48px; }
.timeline__marker {
  position: absolute; top: 8px; right: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.18);
}
.timeline__item--right .timeline__marker { right: auto; left: -7px; }
.timeline__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline__card:hover {
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.timeline__date {
  display: inline-block; font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px;
}
.timeline__card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px;
}
.timeline__card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(76, 195, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card__icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.93rem; }
.card__tech {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  font-family: var(--font-display); font-size: 0.78rem !important;
  color: var(--accent-2) !important; letter-spacing: 0.03em;
}

/* ---------- Resources ---------- */
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resource {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px; color: var(--text);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.resource:hover {
  text-decoration: none; border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.resource__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.resource h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.resource p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.resource__link { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--accent-2); }

/* ---------- Speaking ---------- */
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.engagement {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.engagement:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.engagement__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.engagement__event {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.engagement__loc { font-size: 0.78rem; color: var(--text-muted); }
.engagement h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.engagement p { color: var(--text-muted); font-size: 0.9rem; }

.topics {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: center;
}
.topics__label {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--text-muted); margin-right: 6px;
}
.topic-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(245, 166, 35, 0.25);
}

.speaking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.speaking__item {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 24px;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.speaking__venue {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 6px;
}
.speaking__item p { color: var(--text-muted); font-size: 0.95rem; }
.quote { margin-top: 80px; text-align: center; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500;
  line-height: 1.4; max-width: 780px; margin: 0 auto; color: var(--text);
  position: relative; padding: 0 24px;
}
.quote blockquote::before {
  content: """; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  font-size: 6rem; color: var(--accent); opacity: 0.35; line-height: 1;
}

/* ---------- Education & Community ---------- */
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.edu {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.edu:hover { border-color: rgba(76, 195, 255, 0.35); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.edu__type {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2); background: rgba(76, 195, 255, 0.12);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.edu h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.edu__detail {
  font-family: var(--font-display); font-size: 0.88rem; color: var(--accent);
  margin-bottom: 12px;
}
.edu p:not(.edu__detail) { color: var(--text-muted); font-size: 0.93rem; }

.honors { margin-top: 48px; text-align: center; }
.honors__label {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.honors__list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.honors__list li {
  padding: 10px 20px; border-radius: 999px; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- World map ---------- */
.map-wrap {
  position: relative; margin-top: 24px;
  background: rgba(21, 28, 48, 0.5);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.map-wrap svg { display: block; width: 100%; height: auto; }

.map-country {
  fill: #1c2542; stroke: #0b0f1a; stroke-width: 0.6;
  transition: fill 0.25s ease, filter 0.25s ease;
  cursor: default;
}
.map-country:hover { fill: #2a3560; }
.map-country--worked {
  fill: rgba(245, 166, 35, 0.42);
  stroke: rgba(245, 166, 35, 0.75); stroke-width: 0.8;
  filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.35));
  cursor: pointer;
}
.map-country--worked:hover {
  fill: rgba(245, 166, 35, 0.85);
  filter: drop-shadow(0 0 9px rgba(245, 166, 35, 0.55));
}
.map-country--lived {
  fill: rgba(76, 195, 255, 0.45);
  stroke: rgba(76, 195, 255, 0.8); stroke-width: 0.9;
  filter: drop-shadow(0 0 6px rgba(76, 195, 255, 0.4));
  cursor: pointer;
}
.map-country--lived:hover {
  fill: rgba(76, 195, 255, 0.85);
  filter: drop-shadow(0 0 10px rgba(76, 195, 255, 0.6));
}

.map-dot {
  fill: var(--accent); stroke: #0b0f1a; stroke-width: 1; cursor: pointer;
}
.map-dot:hover { fill: #ffc85c; }

.map-base { cursor: pointer; }
.map-base-line {
  stroke: var(--accent-2); stroke-width: 1.2; stroke-dasharray: 3 2; opacity: 0.9;
}
.map-base-dot { fill: var(--accent-2); stroke: #0b0f1a; stroke-width: 1.2; }
.map-base-halo {
  fill: none; stroke: var(--accent-2); stroke-width: 1.5; opacity: 0.5;
  transform-origin: center; transform-box: fill-box;
  animation: haloPulse 2.4s ease-out infinite;
}
@keyframes haloPulse {
  0% { transform: scale(0.4); opacity: 0.7; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}
.map-base-label {
  fill: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 600;
  paint-order: stroke; stroke: #0b0f1a; stroke-width: 3px; stroke-linejoin: round;
}
.map-base:hover .map-base-dot { fill: #8fdcff; }
.map-base:hover .map-base-label { fill: #8fdcff; }

.map-tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -100%);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  opacity: 0; transition: opacity 0.15s ease; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.map-tooltip.is-visible { opacity: 1; }
.map-tooltip.is-worked { border-color: rgba(245, 166, 35, 0.5); color: var(--accent); }

.map-legend {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block;
  background: rgba(245, 166, 35, 0.55); border: 1px solid rgba(245, 166, 35, 0.9);
}
.legend-swatch--lived {
  background: rgba(76, 195, 255, 0.5); border-color: rgba(76, 195, 255, 0.9);
}
.legend-pin {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  background: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  .map-base-halo { animation: none; opacity: 0; }
}

/* ---------- Contact ---------- */
.section--contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245, 166, 35, 0.1), transparent),
    var(--bg-alt);
}
.contact__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer__note { opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .engagements { grid-template-columns: 1fr 1fr; }
  .timeline__line { left: 10px; }
  .timeline__item, .timeline__item--right {
    width: 100%; margin-left: 0; padding: 0 0 48px 44px;
  }
  .timeline__marker, .timeline__item--right .timeline__marker { left: 3px; right: auto; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .cards, .resources, .speaking__grid, .engagements, .edu__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }

  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 1002;
  }
  .nav__toggle span {
    width: 24px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s;
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: 0; background: rgba(11, 15, 26, 0.97);
    flex-direction: column; justify-content: center; gap: 32px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; animation: none; transition: none; }
  .orb, .mouse__wheel { animation: none; }
  #bg3d { display: none; }
}
