/* ── Tokens: day ────────────────────────────────────────── */
:root {
  --bg: oklch(0.972 0.012 225);
  --surface: #ffffff;
  --ink: oklch(0.3 0.035 240);
  --muted: oklch(0.48 0.035 235);
  --line: oklch(0.9 0.015 225);

  --brand: oklch(0.55 0.155 38);
  --brand-bright: oklch(0.68 0.175 36);
  --brand-soft: oklch(0.95 0.03 40);
  --on-brand: #ffffff;

  --go: oklch(0.52 0.12 160);
  --go-soft: oklch(0.94 0.045 160);
  --sun: oklch(0.88 0.09 85);
  --sun-ink: oklch(0.42 0.09 75);

  --topbar-bg: oklch(0.972 0.012 225 / 0.85);
  --chip-bg: oklch(1 0 0 / 0.85);

  --font-display: "Baloo 2", "Nunito Sans", sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: clamp(3rem, 7vw, 5.5rem);

  --radius: 16px;
  --radius-pill: 999px;
  --shadow-md: 0 10px 30px -12px oklch(0.3 0.035 240 / 0.18);
  --shadow-lg: 0 24px 60px -24px oklch(0.3 0.035 240 / 0.28);

  --z-hud: 10;
  --z-card: 20;
  --z-overlay: 30;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Scene: day drive */
  --sc-sky-top: oklch(0.83 0.07 235);
  --sc-sky-bot: oklch(0.94 0.045 210);
  --sc-hill-far: oklch(0.78 0.07 155);
  --sc-hill: oklch(0.79 0.1 140);
  --sc-grass: oklch(0.73 0.125 132);
  --sc-road: oklch(0.8 0.055 85);
  --sc-dash: oklch(0.97 0.02 90);
  --sc-tree: oklch(0.52 0.1 145);
  --sc-tree-2: oklch(0.6 0.11 140);
  --sc-trunk: oklch(0.45 0.06 55);
  --sc-rock: oklch(0.7 0.015 240);
  --sc-mtn: oklch(0.62 0.02 250);
  --sc-snow: oklch(0.97 0.005 240);
  --sc-water: oklch(0.7 0.09 220);
  --sc-water-hi: oklch(0.82 0.06 215);
  --sc-fence: oklch(0.62 0.07 60);
  --sc-hay: oklch(0.83 0.1 90);
  --sc-hay-2: oklch(0.72 0.1 85);
  --sc-board: oklch(0.98 0.005 90);
  --sc-board-edge: oklch(0.68 0.175 36);
  --sc-board-ink: oklch(0.3 0.035 240);
  --sc-rack: oklch(0.4 0.04 250);
  --sc-rack-2: oklch(0.5 0.04 250);
  --sc-led: oklch(0.8 0.16 155);
  --sc-bldg: oklch(0.7 0.04 240);
  --sc-bldg-roof: oklch(0.5 0.04 245);
  --sc-window: oklch(0.88 0.03 220);
  --sc-hall: oklch(0.75 0.08 70);
  --sc-hall-roof: oklch(0.5 0.09 40);
  --sc-hall-door: oklch(0.42 0.07 50);
  --sc-mailbox: oklch(0.62 0.17 33);
  --sc-flag: oklch(0.8 0.14 85);
  --sc-gold: oklch(0.8 0.13 85);
  --sc-beam: oklch(0.9 0.08 95 / 0);
}

/* ── Tokens: night ──────────────────────────────────────── */
/* Duplicated on purpose: system preference and manual override must both win. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.21 0.03 255);
    --surface: oklch(0.27 0.032 250);
    --ink: oklch(0.93 0.015 235);
    --muted: oklch(0.71 0.025 240);
    --line: oklch(0.35 0.03 250);
    --brand: oklch(0.72 0.15 40);
    --brand-bright: oklch(0.72 0.15 40);
    --brand-soft: oklch(0.34 0.05 40);
    --on-brand: oklch(0.18 0.03 255);
    --go: oklch(0.76 0.12 160);
    --go-soft: oklch(0.33 0.06 160);
    --sun: oklch(0.45 0.08 80);
    --sun-ink: oklch(0.9 0.09 85);
    --topbar-bg: oklch(0.21 0.03 255 / 0.85);
    --chip-bg: oklch(0.27 0.032 250 / 0.9);
    --shadow-md: 0 10px 30px -12px oklch(0 0 0 / 0.5);
    --shadow-lg: 0 24px 60px -24px oklch(0 0 0 / 0.6);

    --sc-sky-top: oklch(0.19 0.05 270);
    --sc-sky-bot: oklch(0.31 0.06 265);
    --sc-hill-far: oklch(0.32 0.05 200);
    --sc-hill: oklch(0.34 0.06 165);
    --sc-grass: oklch(0.38 0.07 150);
    --sc-road: oklch(0.33 0.025 260);
    --sc-dash: oklch(0.65 0.03 250);
    --sc-tree: oklch(0.32 0.06 160);
    --sc-tree-2: oklch(0.38 0.06 155);
    --sc-trunk: oklch(0.32 0.04 55);
    --sc-rock: oklch(0.42 0.015 250);
    --sc-mtn: oklch(0.36 0.03 260);
    --sc-snow: oklch(0.75 0.02 250);
    --sc-water: oklch(0.42 0.07 240);
    --sc-water-hi: oklch(0.55 0.06 235);
    --sc-fence: oklch(0.4 0.05 60);
    --sc-hay: oklch(0.5 0.07 90);
    --sc-hay-2: oklch(0.42 0.07 85);
    --sc-board: oklch(0.88 0.02 90);
    --sc-board-ink: oklch(0.25 0.03 250);
    --sc-rack: oklch(0.3 0.035 255);
    --sc-rack-2: oklch(0.38 0.035 255);
    --sc-led: oklch(0.85 0.19 155);
    --sc-bldg: oklch(0.35 0.03 255);
    --sc-bldg-roof: oklch(0.28 0.03 255);
    --sc-window: oklch(0.85 0.13 90);   /* windows glow at night */
    --sc-hall: oklch(0.45 0.06 70);
    --sc-hall-roof: oklch(0.35 0.06 40);
    --sc-hall-door: oklch(0.3 0.05 50);
    --sc-beam: oklch(0.9 0.1 95 / 0.28);
  }
  :root:not([data-theme="light"]) .day-only { display: none; }
  :root:not([data-theme="light"]) .night-only { display: block; }
}
:root[data-theme="dark"] {
  --bg: oklch(0.21 0.03 255);
  --surface: oklch(0.27 0.032 250);
  --ink: oklch(0.93 0.015 235);
  --muted: oklch(0.71 0.025 240);
  --line: oklch(0.35 0.03 250);
  --brand: oklch(0.72 0.15 40);
  --brand-bright: oklch(0.72 0.15 40);
  --brand-soft: oklch(0.34 0.05 40);
  --on-brand: oklch(0.18 0.03 255);
  --go: oklch(0.76 0.12 160);
  --go-soft: oklch(0.33 0.06 160);
  --sun: oklch(0.45 0.08 80);
  --sun-ink: oklch(0.9 0.09 85);
  --topbar-bg: oklch(0.21 0.03 255 / 0.85);
  --chip-bg: oklch(0.27 0.032 250 / 0.9);
  --shadow-md: 0 10px 30px -12px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 24px 60px -24px oklch(0 0 0 / 0.6);

  --sc-sky-top: oklch(0.19 0.05 270);
  --sc-sky-bot: oklch(0.31 0.06 265);
  --sc-hill-far: oklch(0.32 0.05 200);
  --sc-hill: oklch(0.34 0.06 165);
  --sc-grass: oklch(0.38 0.07 150);
  --sc-road: oklch(0.33 0.025 260);
  --sc-dash: oklch(0.65 0.03 250);
  --sc-tree: oklch(0.32 0.06 160);
  --sc-tree-2: oklch(0.38 0.06 155);
  --sc-trunk: oklch(0.32 0.04 55);
  --sc-rock: oklch(0.42 0.015 250);
  --sc-mtn: oklch(0.36 0.03 260);
  --sc-snow: oklch(0.75 0.02 250);
  --sc-water: oklch(0.42 0.07 240);
  --sc-water-hi: oklch(0.55 0.06 235);
  --sc-fence: oklch(0.4 0.05 60);
  --sc-hay: oklch(0.5 0.07 90);
  --sc-hay-2: oklch(0.42 0.07 85);
  --sc-board: oklch(0.88 0.02 90);
  --sc-board-ink: oklch(0.25 0.03 250);
  --sc-rack: oklch(0.3 0.035 255);
  --sc-rack-2: oklch(0.38 0.035 255);
  --sc-led: oklch(0.85 0.19 155);
  --sc-bldg: oklch(0.35 0.03 255);
  --sc-bldg-roof: oklch(0.28 0.03 255);
  --sc-window: oklch(0.85 0.13 90);
  --sc-hall: oklch(0.45 0.06 70);
  --sc-hall-roof: oklch(0.35 0.06 40);
  --sc-hall-door: oklch(0.3 0.05 50);
  --sc-beam: oklch(0.9 0.1 95 / 0.28);
}
:root[data-theme="dark"] .day-only { display: none; }
:root[data-theme="dark"] .night-only { display: block; }
.night-only { display: none; }

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; }

a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 66rem; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.7rem 1.4rem; min-height: 44px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease-out), background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-big { font-size: 1.15rem; padding: 0.9rem 1.8rem; }

/* ── Currently building ─────────────────────────────────── */
#now { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }
.wip {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  animation: wip-rise 0.6s var(--ease-out) both;
}
/* A light that keeps sweeping the top edge: the work is still running. */
.wip-bar {
  position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: wip-sweep 3.2s linear infinite;
}
@keyframes wip-sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes wip-rise { from { opacity: 0; translate: 0 12px; } }

.wip-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
  margin-bottom: 0.6rem;
}
.wip-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 0.9rem;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
}
.wip-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  animation: pulse 2.4s ease-in-out infinite;
}
.wip-target { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.wip h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; }
.wip-sub { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--muted); }

.wip-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: var(--space-md) 0;
}
.wip-stats li {
  display: flex; align-items: baseline; gap: 0.35rem;
  background: var(--brand-soft); border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  animation: wip-rise 0.5s var(--ease-out) both;
}
.wip-stats li:nth-child(1) { animation-delay: 0.10s; }
.wip-stats li:nth-child(2) { animation-delay: 0.18s; }
.wip-stats li:nth-child(3) { animation-delay: 0.26s; }
.wip-stats li:nth-child(4) { animation-delay: 0.34s; }
.wip-stats strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand); }
.wip-stats span { font-size: 0.85rem; font-weight: 700; color: var(--muted); }

.wip-points { list-style: none; display: grid; gap: 0.7rem; max-width: 74ch; }
.wip-points li { position: relative; padding-left: 1.4rem; color: var(--muted); line-height: 1.6; }
.wip-points li::before {
  content: "▸"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800;
}
.wip-points strong { color: var(--ink); }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: var(--z-overlay);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}
.topbar-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.topbar-name:hover { color: var(--brand); }
.topbar nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.topbar nav a {
  font-weight: 700; font-size: 0.92rem; color: var(--muted);
  text-decoration: none; padding: 0.45rem 0.7rem; border-radius: var(--radius-pill);
}
.topbar nav a:hover { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 680px) {
  .topbar nav a:not(.nav-cta):not(.nav-resume) { display: none; }
}
.nav-resume { border: 2px solid var(--line); }
.nav-resume:hover { border-color: var(--brand); }
.nav-cta { color: var(--on-brand) !important; background: var(--brand); }
.nav-cta:hover { background: var(--ink) !important; color: var(--bg) !important; }
.theme-toggle {
  font-size: 1.15rem; line-height: 1;
  width: 42px; height: 42px;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--surface); cursor: pointer;
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--brand); transform: rotate(15deg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.badge-open {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--go-soft); color: var(--go);
  font-weight: 800; font-size: 0.95rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}
.badge-open .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--go);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}
.hero h1 .accent { color: var(--brand); }

.hero-sub {
  font-size: 1.15rem; color: var(--muted); max-width: 58ch;
  margin-bottom: var(--space-lg);
}
.hero-sub strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
/* Keep Email / Resume / CSCE 313 on one line; trim padding before wrapping. */
.hero-ctas .btn { white-space: nowrap; }
.hero-ctas .btn-big { padding-inline: clamp(1rem, 2.2vw, 1.8rem); }
.hero-links { display: flex; gap: 1.1rem; margin-block: 0 var(--space-md); }
.hero-links a { font-weight: 700; font-size: 0.95rem; }

.hero-car { text-align: center; }
.hero-car svg { width: min(100%, 340px); height: auto; }

/* ── The journey ────────────────────────────────────────── */
.drive-invite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 2px dashed oklch(0.75 0.09 38);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}
.drive-invite p { font-weight: 700; font-size: 1.05rem; }
.drive-invite .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }

.journey-track { position: relative; }
.journey-stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(var(--sc-sky-top), var(--sc-sky-bot));
  transition: background 0.5s ease;
}
.journey-stage svg * { transition: fill 0.5s ease; }

.scene-scale {
  position: absolute; inset: auto 0 0 0; height: 520px;
  transform-origin: bottom left;
}
.layer { position: absolute; left: 0; bottom: 0; height: 520px; will-change: transform; }
.layer svg { display: block; }

.journey-car {
  position: absolute; bottom: 34px; width: 210px;
  will-change: transform;
}
.journey-car svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform 0.25s var(--ease-out); }
.journey-stage.drive-left .journey-car svg { transform: scaleX(-1); }
.wheel { transform-box: fill-box; transform-origin: center; }

/* Sky décor */
.sky-sun {
  position: absolute; top: 9%; right: 12%;
  width: 92px; height: 92px; border-radius: 50%;
  background: oklch(0.92 0.12 90);
  box-shadow: 0 0 70px 24px oklch(0.92 0.12 90 / 0.5);
}
.sky-moon {
  position: absolute; top: 9%; right: 12%;
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, oklch(0.95 0.02 250), oklch(0.8 0.03 250));
  box-shadow: 0 0 50px 14px oklch(0.9 0.03 250 / 0.25);
}
.sky-moon::after {
  content: ""; position: absolute; left: 14%; top: 20%;
  width: 22%; height: 22%; border-radius: 50%;
  background: oklch(0.74 0.03 250);
  box-shadow: 26px 18px 0 -4px oklch(0.74 0.03 250);
}
.sky-cloud {
  position: absolute;
  width: 130px; height: 34px; border-radius: 999px;
  background: oklch(0.99 0.005 220 / 0.9);
  animation: drift 70s linear infinite;
}
.sky-cloud::before {
  content: ""; position: absolute; left: 26px; top: -20px;
  width: 56px; height: 44px; border-radius: 50%;
  background: inherit;
}
.sky-cloud.c2 { top: 22%; animation-duration: 95s; animation-delay: -40s; transform: scale(0.7); }
.sky-cloud.c3 { top: 7%; animation-duration: 120s; animation-delay: -80s; transform: scale(1.2); }
.sky-cloud.c1 { top: 15%; }
@keyframes drift {
  from { left: -160px; }
  to { left: 110%; }
}
.sky-stars {
  position: absolute; inset: 0 0 40% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, #fff, transparent),
    radial-gradient(1px 1px at 34% 12%, #fff, transparent),
    radial-gradient(2px 2px at 56% 34%, #fff, transparent),
    radial-gradient(1px 1px at 72% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 40%, #fff, transparent),
    radial-gradient(1px 1px at 44% 52%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 8% 62%, #fff, transparent),
    radial-gradient(1px 1px at 64% 66%, #fff, transparent);
  background-repeat: repeat;
  background-size: 640px 420px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
.firefly {
  position: absolute; bottom: 120px;
  width: 5px; height: 5px; border-radius: 50%;
  background: oklch(0.9 0.15 105);
  box-shadow: 0 0 10px 3px oklch(0.9 0.15 105 / 0.55);
  animation: firefly 6s ease-in-out infinite alternate;
}
.firefly:nth-child(odd) { animation-duration: 8s; }
@keyframes firefly {
  from { transform: translate(0, 0); opacity: 0.25; }
  50% { opacity: 1; }
  to { transform: translate(46px, -60px); opacity: 0.35; }
}

/* Mini-map */
.journey-map {
  position: absolute; top: max(4.6rem, 6%); left: 50%; transform: translateX(-50%);
  z-index: var(--z-hud);
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.4rem;
  width: min(84%, 34rem);
  background: var(--chip-bg);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-md);
}
.map-line {
  position: absolute; left: 1.4rem; right: 1.4rem; top: 50%;
  border-top: 2px dashed var(--line);
}
.map-dot {
  position: relative; z-index: 1;
  font-size: 0.95rem; line-height: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  filter: grayscale(1) opacity(0.65);
  transition: border-color 0.3s, filter 0.3s, transform 0.3s var(--ease-out);
}
.map-dot.visited { border-color: var(--go); filter: none; }
.map-dot.here { transform: scale(1.25); border-color: var(--brand); }
.map-car {
  position: absolute; top: -1.1rem; z-index: 2;
  font-size: 1.15rem;
  transform: scaleX(-1); /* the emoji faces left by default; flip it to drive right */
  transition: left 0.15s linear, transform 0.25s var(--ease-out);
}
.journey-stage.drive-left .map-car { transform: scaleX(1); }

.hud-exit {
  position: absolute; top: max(4.6rem, 6%); right: 0.9rem; z-index: var(--z-hud);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  background: var(--chip-bg); color: var(--ink);
  border-radius: var(--radius-pill); padding: 0.45rem 0.9rem;
  text-decoration: none;
}
.hud-exit:hover { color: var(--brand); }
@media (max-width: 720px) {
  .hud-exit { top: auto; bottom: 0.9rem; }
}

/* Checkpoint card */
.zone-card {
  position: absolute; z-index: var(--z-card);
  inset-inline: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(94%, 34rem);
  max-height: 56%;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
  opacity: 0; translate: 0 14px;
  transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out);
}
.zone-card.show { opacity: 1; translate: 0 0; }
@media (min-width: 900px) {
  .zone-card { inset-inline: auto 1.25rem; bottom: 1.25rem; transform: none; width: min(42%, 30rem); max-height: 74%; }
}
.zone-card[hidden] { display: none; }
.zone-card-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.zone-card-head .emoji { font-size: 1.6rem; }
.zone-card h3 { font-size: 1.35rem; }
.zone-tagline { color: var(--muted); font-weight: 600; margin-bottom: var(--space-sm); }
.zone-points { list-style: none; display: grid; gap: 0.6rem; margin-bottom: var(--space-md); }
.zone-points li { padding-left: 1.1rem; position: relative; font-size: 0.97rem; }
.zone-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright);
}
.zone-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zone-tags span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  background: var(--brand-soft); color: var(--brand);
  border-radius: var(--radius-pill); padding: 0.2rem 0.7rem;
}
.zone-complete {
  background: var(--go-soft); color: var(--ink);
  border-radius: 12px; padding: 0.8rem 1rem;
  font-size: 0.97rem; margin-top: var(--space-md);
}
.zone-card .btn { width: 100%; justify-content: center; margin-top: var(--space-md); }

/* ── Content sections ───────────────────────────────────── */
section { padding-block: var(--space-xl); }
section + section { border-top: 1px solid var(--line); }
/* #now is the first section, so #drive inherited a rule it never used to match. */
#now + #drive { border-top: 0; }

.section-head { margin-bottom: var(--space-lg); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-head p { color: var(--muted); margin-top: 0.35rem; max-width: 62ch; }

.xp { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.5rem; margin-bottom: var(--space-lg); }
.xp:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .xp { grid-template-columns: 1fr; gap: 0.4rem; } }
.xp-when { font-weight: 800; color: var(--muted); font-size: 0.92rem; padding-top: 0.35rem; }
.xp h3 { font-size: 1.3rem; }
.xp-org { color: var(--muted); font-weight: 600; margin-bottom: 0.7rem; }
.xp ul { list-style: none; display: grid; gap: 0.7rem; }
.xp li { padding-left: 1.2rem; position: relative; }
.xp li::before {
  content: ""; position: absolute; left: 0; top: 0.58em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright);
}
.xp ul ul { margin-top: 0.6rem; gap: 0.5rem; }
.xp ul ul li { font-size: 0.97rem; }
.xp ul ul li::before { width: 6px; height: 6px; background: var(--surface); border: 1.5px solid var(--brand-bright); }

.skill-list { list-style: none; display: grid; gap: 0.9rem; max-width: 62rem; }
.skill-list li { padding-left: 1.5rem; position: relative; }
.skill-list li::before { content: "🔧"; position: absolute; left: 0; top: 0.1em; font-size: 0.85rem; }
.skill-list li:nth-child(2)::before { content: "📏"; }
.skill-list li:nth-child(3)::before { content: "⚡"; }
.skill-list li:nth-child(4)::before { content: "🤝"; }
.skill-list li:nth-child(5)::before { content: "🗃️"; }
.skill-list li:nth-child(6)::before { content: "🧰"; }
.stack-line { margin-top: var(--space-lg); color: var(--muted); font-size: 0.95rem; max-width: 75ch; }
.stack-line strong { color: var(--ink); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.proj {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.proj:hover { border-color: var(--brand-bright); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proj h3 { font-size: 1.15rem; }
.proj .award {
  align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  background: var(--sun); color: var(--sun-ink);
  padding: 0.18rem 0.7rem; border-radius: var(--radius-pill);
}
.proj p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }
.proj p strong { color: var(--ink); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tags span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  color: var(--muted); background: var(--bg);
  border-radius: var(--radius-pill); padding: 0.18rem 0.6rem;
}
.proj.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem; }
.proj.wide p { flex-basis: 100%; }

.pub-list { list-style: none; display: grid; gap: 0.9rem; max-width: 62rem; }
.pub-list li { padding-left: 1.5rem; position: relative; }
.pub-list li::before { content: "📄"; position: absolute; left: 0; top: 0.1em; font-size: 0.85rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.mini-entry { border-top: 1px solid var(--line); padding-block: 0.9rem; }
.mini-entry:first-of-type { border-top: 0; padding-top: 0; }
.mini-entry h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 800; }
.mini-entry .when { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.mini-entry p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.mini-entry p a { font-weight: 700; white-space: nowrap; }

/* Collapsed by default so one long syllabus doesn't bury the rest of the list. */
.outcomes { margin-top: 0.55rem; font-size: 0.95rem; color: var(--muted); }
.outcomes summary {
  cursor: pointer; font-weight: 700; color: var(--brand);
  list-style: none; display: inline-flex; align-items: center; gap: 0.35rem;
}
.outcomes summary::-webkit-details-marker { display: none; }
.outcomes summary::before { content: "▸"; transition: rotate 0.15s var(--ease-out); }
.outcomes[open] summary::before { rotate: 90deg; }
.outcomes ul { margin: 0.5rem 0 0 1.1rem; display: grid; gap: 0.3rem; }
.outcomes ul ul { margin-top: 0.3rem; }
.outcomes li { line-height: 1.5; }

.contact-panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg); text-align: center;
}
.contact-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 0.5rem; }
.contact-panel p { color: var(--muted); max-width: 46ch; margin: 0 auto var(--space-lg); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

footer { padding: var(--space-lg) 0 var(--space-xl); color: var(--muted); font-size: 0.9rem; text-align: center; }

#confetti {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; display: none;
}

/* ── Motion preferences ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-open .dot { animation: none; }
  .proj, .btn { transition: none; }
  .proj:hover { transform: none; }
  .sky-cloud, .sky-stars, .firefly { animation: none; }
  .journey-stage svg * { transition: none; }
  .journey-car svg { transition: none; }
  .map-car { transition: none; }
  .outcomes summary::before { transition: none; }
  .wip, .wip-stats li { animation: none; }
  .wip-bar { animation: none; background-position: 50% 0; }
  .wip-badge .dot { animation: none; }
  .zone-card { transition: opacity 0.15s linear; translate: 0 0; }
}
