/* ============================================================
   Jared's Showcase — BIO page
   Loaded only by index.html, on top of css/style.css.
   Everything is scoped to body.bio-page so no other page is affected.
   ============================================================ */

body.bio-page {
  --header-h: 64px;
  --hero-bg-0: #101728;
  --hero-bg-1: #17203a;
  --hero-bg-2: #1d2745;
  --hero-text: #f4f7ff;
  --hero-muted: rgba(226, 234, 255, 0.74);
  --glow-blue: #4f8cff;
  --glow-violet: #8b5cf6;
  --glow-teal: #22d3ee;
  --ease-out: cubic-bezier(0.16, 0.84, 0.28, 1);
}

/* Hide the native scrollbar gutter jump on the dark hero */
body.bio-page {
  background: var(--bg);
}

/* ---------- Header: transparent over the hero, solid once scrolled ---------- */

.bio-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.bio-page .site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(10, 16, 40, 0.06);
}

.bio-page .site-header:not(.scrolled) .brand {
  color: var(--hero-text);
}

.bio-page .site-header:not(.scrolled) .brand span {
  color: #7aa7ff;
}

.bio-page .site-header:not(.scrolled) .nav-toggle svg {
  stroke: var(--hero-text);
}

.bio-page .site-header:not(.scrolled) .nav-links a {
  color: var(--hero-muted);
}

.bio-page .site-header:not(.scrolled) .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.bio-page .site-header:not(.scrolled) .nav-links a.active {
  color: #fff;
  background: rgba(79, 140, 255, 0.22);
}

/* Mobile dropdown sits on a light panel — keep its links readable in both states */
@media (max-width: 768px) {
  .bio-page .site-header .nav-links.open a {
    color: var(--muted);
  }

  .bio-page .site-header .nav-links.open a:hover {
    color: var(--text);
    background: var(--accent-soft);
  }

  .bio-page .site-header .nav-links.open a.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
}

/* ---------- Reading progress bar ---------- */

.bio-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--glow-blue), var(--glow-violet), var(--glow-teal));
  z-index: 120;
  will-change: transform;
}

/* ---------- Buttons (hero variants) ---------- */

.btn-glow {
  position: relative;
  background: linear-gradient(120deg, #3b76f6, #7c5cff);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(79, 140, 255, 0.85);
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-out);
}

.btn-glow:hover {
  color: #fff;
  box-shadow: 0 14px 38px -10px rgba(124, 92, 255, 0.9);
}

.btn-glow:hover::after {
  transform: translateX(120%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--hero-text);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-magnetic {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}

/* ---------- HERO ---------- */

.bio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3.5rem) 0 5.5rem;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(100% 80% at 6% 100%, rgba(34, 211, 238, 0.12), transparent 62%),
    linear-gradient(170deg, var(--hero-bg-0), var(--hero-bg-1) 45%, var(--hero-bg-2));
  color: var(--hero-text);
}

/* Aurora blobs. Each blob carries its own blur (not the container) and is blended
   with plain alpha — a filtered + blended container clips into visible hard edges. */
.aurora {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.72;
  will-change: transform;
  filter: blur(80px);
}

.aurora .b1 {
  width: 46vw;
  height: 46vw;
  left: 4%;
  top: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(79, 140, 255, 0.8), transparent 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.aurora .b2 {
  width: 40vw;
  height: 40vw;
  right: 2%;
  top: 2%;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.72), transparent 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}

.aurora .b3 {
  width: 34vw;
  height: 34vw;
  left: 32%;
  bottom: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.55), transparent 62%);
  animation: drift3 24s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate3d(9%, 12%, 0) scale(1.16); }
}

@keyframes drift2 {
  to { transform: translate3d(-11%, 9%, 0) scale(1.1); }
}

@keyframes drift3 {
  to { transform: translate3d(6%, -13%, 0) scale(1.22); }
}

/* Faint grid + vignette to keep the aurora from looking muddy */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(115% 85% at 50% 30%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 30%, #000 35%, transparent 78%);
  opacity: 0.55;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 10%, transparent 40%, rgba(10, 16, 32, 0.55) 100%);
}

/* A single soft shaft of light falling from the top-right, tilted to echo the
   diagonal of the hero background gradients. */
.hero-beam {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -30%;
  right: 6%;
  width: 42vw;
  height: 155%;
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.16), rgba(139, 92, 246, 0.08) 45%, transparent 78%);
  transform: rotate(14deg);
  transform-origin: top right;
  filter: blur(42px);
  mask-image: linear-gradient(180deg, #000 8%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 8%, transparent 82%);
  animation: beamDrift 18s ease-in-out infinite alternate;
}

@keyframes beamDrift {
  from { transform: rotate(14deg) translate3d(0, 0, 0); opacity: 0.85; }
  to { transform: rotate(10deg) translate3d(-3%, 3%, 0); opacity: 1; }
}

/* Warm pool of light behind the headline column so the copy never fights the
   grid for contrast. */
.hero-spotlight {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -14%;
  top: 8%;
  width: 78vw;
  height: 88%;
  background: radial-gradient(48% 52% at 34% 45%, rgba(96, 165, 250, 0.17), rgba(79, 140, 255, 0.06) 52%, transparent 76%);
  filter: blur(30px);
}

.bio-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(6px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.75);
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.55); opacity: 0.9; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

.hero-name {
  font-size: clamp(2.9rem, 7.4vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #ffffff 35%, rgba(198, 214, 255, 0.82));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name .grad {
  background: linear-gradient(100deg, #7aa7ff, #a78bfa 45%, #4dd8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: shimmer 9s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-role {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(233, 240, 255, 0.9);
  margin-bottom: 1.1rem;
  min-height: 1.35em;
}

.hero-role .typed {
  background: linear-gradient(100deg, #86b4ff, #b79cff 55%, #4dd8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role .caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: #8ab4ff;
  border-radius: 2px;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--hero-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
}

/* Hero stat row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.hero-stat .num {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, #ffffff, #9dbdff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat .lbl {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.55);
  margin-top: 0.3rem;
}

/* ---------- Orbital figure (3D) ----------
   The figure is a real 3D scene: `perspective` on the container, `preserve-3d`
   all the way down, and each ring is a flat disc tilted on its own axes. Rings
   spin around their own normal, so the three of them trace three different
   great circles — a gyroscope rather than a flat dial.

   Badges billboard back to the camera: each one applies the exact inverse of
   its ring's tilt + spin, so labels stay readable at every angle while still
   scaling and sorting by depth through the perspective. */

.orbit-figure {
  --figure: clamp(320px, 46vw, 560px);

  /* Ring radii, kept at figure level so the decorative sweep/ticks can share
     them and the responsive block only has to override one place. Five rings
     need even spacing: a tilted disc loses vertical extent, so rings that look
     well separated in 2D would overlap once they lean. */
  --r1: calc(var(--figure) * 0.48);
  --r2: calc(var(--figure) * 0.39);
  --r3: calc(var(--figure) * 0.3);
  --r4: calc(var(--figure) * 0.21);
  --r5: calc(var(--figure) * 0.12);

  /* Per-ring tilt. X leans the disc toward/away from the viewer; Y swings it
     around the vertical axis. Every ring gets its own pair, so the five orbits
     trace five genuinely different great circles instead of concentric
     ellipses. Keep the tilts shallow (under ~40deg): a steeply tilted disc
     loses most of its vertical extent and its badges collide with the ring
     inside it. */
  --tilt-1: 16deg;
  --tilt-2: -22deg;
  --tilt-3: 34deg;
  --tilt-4: -30deg;
  --tilt-5: 24deg;
  --swing-1: -12deg;
  --swing-2: 26deg;
  --swing-3: -28deg;
  --swing-4: 38deg;
  --swing-5: -44deg;

  /* Pointer-driven scene tilt, written by js/bio.js. */
  --scene-tilt-x: 0deg;
  --scene-tilt-y: 0deg;

  position: relative;
  width: var(--figure);
  height: var(--figure);
  margin: 0 auto;
  justify-self: center;
  /* A tighter perspective than a "real" camera: it exaggerates the near/far
     size difference so the depth reads at a glance instead of looking flat. */
  perspective: calc(var(--figure) * 1.7);
  perspective-origin: 50% 50%;
}

/* The 3D stage. Perspective lives on the figure above; this element carries the
   pointer-driven tilt so the whole gyroscope leans as one rigid body. */
.orbit-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--scene-tilt-x)) rotateY(var(--scene-tilt-y));
  will-change: transform;
}

.orbit-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.26), rgba(139, 92, 246, 0.12) 45%, transparent 70%);
  filter: blur(26px);
  animation: breathe 6.5s ease-in-out infinite;
}

/* A rotating comet arc that traces the outer orbit, giving the figure a sense
   of motion even when the badges themselves are between frames. It rides the
   same tilted plane as ring 1 so the trail reads as part of the 3D scene. */
.orbit-sweep {
  --tx: var(--tilt-1);
  --ty: var(--swing-1);
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--r1) * 2);
  height: calc(var(--r1) * 2);
  margin-left: calc(var(--r1) * -1);
  margin-top: calc(var(--r1) * -1);
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0turn, transparent 0.72turn, rgba(147, 197, 253, 0.55) 0.9turn, rgba(255, 255, 255, 0.9) 0.965turn, transparent 1turn);
  mask-image: radial-gradient(circle closest-side, transparent 0 93%, #000 94% 100%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 93%, #000 94% 100%, transparent 100%);
  filter: blur(1px);
  transform-style: preserve-3d;
  animation: ringSpin 34s linear infinite;
}

/* Faint radial tick marks on the second orbit, like a dial. */
.orbit-ticks {
  --tx: var(--tilt-2);
  --ty: var(--swing-2);
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--r2) * 2);
  height: calc(var(--r2) * 2);
  margin-left: calc(var(--r2) * -1);
  margin-top: calc(var(--r2) * -1);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.5) 0deg 0.6deg, transparent 0.6deg 6deg);
  mask-image: radial-gradient(circle closest-side, transparent 0 92%, #000 92.4% 100%);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 92%, #000 92.4% 100%);
  transform-style: preserve-3d;
  animation: ringSpin 26s linear infinite reverse;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin-left: calc(var(--r) * -1);
  margin-top: calc(var(--r) * -1);
  border-radius: 50%;
  /* A thin rim plus a whisper of fill: enough to read the tilted plane, not
     enough to compete with the badges for attention. */
  background: radial-gradient(circle closest-side,
    rgba(79, 140, 255, 0.07) 0%,
    rgba(79, 140, 255, 0.02) 72%,
    rgba(147, 197, 253, 0.2) 100%);
  border: 2px solid rgba(147, 197, 253, 0.62);
  box-shadow: 0 0 14px -2px rgba(79, 140, 255, 0.7);
  transform-style: preserve-3d;
  animation: ringSpin var(--spin, 30s) linear infinite var(--dir, normal);
}

.orbit-ring.r1 {
  border-style: dashed;
  border-color: rgba(147, 197, 253, 0.7);
}

.orbit-ring.r2 {
  background: radial-gradient(circle closest-side,
    rgba(139, 92, 246, 0.07) 0%,
    rgba(139, 92, 246, 0.02) 72%,
    rgba(167, 139, 250, 0.2) 100%);
  border-color: rgba(167, 139, 250, 0.62);
  box-shadow: 0 0 14px -2px rgba(139, 92, 246, 0.7);
}

.orbit-ring.r3 {
  background: radial-gradient(circle closest-side,
    rgba(34, 211, 238, 0.06) 0%,
    rgba(34, 211, 238, 0.02) 72%,
    rgba(34, 211, 238, 0.18) 100%);
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 14px -2px rgba(34, 211, 238, 0.65);
}

.orbit-ring.r4 {
  background: radial-gradient(circle closest-side,
    rgba(52, 211, 153, 0.06) 0%,
    rgba(52, 211, 153, 0.02) 72%,
    rgba(52, 211, 153, 0.18) 100%);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 14px -2px rgba(52, 211, 153, 0.6);
}

.orbit-ring.r5 {
  background: radial-gradient(circle closest-side,
    rgba(251, 191, 36, 0.05) 0%,
    rgba(251, 191, 36, 0.02) 72%,
    rgba(251, 191, 36, 0.16) 100%);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 14px -2px rgba(251, 191, 36, 0.55);
}

/* Radius, tilt and spin live on the ring, never on the badge: custom properties
   only inherit downward, so a badge could never supply --r to its own parent.
   The negative copies feed the badge billboard, which has to undo the exact
   tilt the ring applied. */
.orbit-ring.r1 {
  --r: var(--r1);
  --tx: var(--tilt-1);
  --ty: var(--swing-1);
  --spin: 46s;
  --dir: normal;
  --static-spin: 0deg;
}

.orbit-ring.r2 {
  --r: var(--r2);
  --tx: var(--tilt-2);
  --ty: var(--swing-2);
  --spin: 38s;
  --dir: reverse;
  --static-spin: 24deg;
}

.orbit-ring.r3 {
  --r: var(--r3);
  --tx: var(--tilt-3);
  --ty: var(--swing-3);
  --spin: 31s;
  --dir: normal;
  --static-spin: -18deg;
}

.orbit-ring.r4 {
  --r: var(--r4);
  --tx: var(--tilt-4);
  --ty: var(--swing-4);
  --spin: 25s;
  --dir: reverse;
  --static-spin: 40deg;
}

.orbit-ring.r5 {
  --r: var(--r5);
  --tx: var(--tilt-5);
  --ty: var(--swing-5);
  --spin: 19s;
  --dir: normal;
  --static-spin: -32deg;
}

/* Every ring shares this: tilt onto its own plane, then spin around the plane's
   normal. Because each ring has a different tilt, the three of them sweep three
   different great circles. */
@keyframes ringSpin {
  from { transform: rotateX(var(--tx)) rotateY(var(--ty)) rotateZ(0deg); }
  to   { transform: rotateX(var(--tx)) rotateY(var(--ty)) rotateZ(360deg); }
}
.orbit-slot {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  transform-style: preserve-3d;
}

/* Sits on the rim of the disc (top edge = radius from centre) and undoes the
   slot's angular offset so the badge starts from a screen-aligned frame. */
.orbit-upright {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  transform-style: preserve-3d;
}

.orbit-badge {
  display: grid;
  place-items: center;
  padding: 0.24em 0.54em;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #eaf1ff;
  background: rgba(28, 38, 62, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.65);
  /* Billboard: apply the exact inverse of the ring's tilt + spin so the label
     always faces the camera, while still scaling and sorting by depth. */
  animation: badgeBillboard var(--spin, 30s) linear infinite var(--dir, normal);
}

@keyframes badgeBillboard {
  from {
    transform: rotateZ(0deg)
               rotateY(calc(-1 * var(--ty)))
               rotateX(calc(-1 * var(--tx)));
  }
  to {
    transform: rotateZ(-360deg)
               rotateY(calc(-1 * var(--ty)))
               rotateX(calc(-1 * var(--tx)));
  }
}

/* Flat 2D spin, still used by the core's conic-gradient halo. */
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-core {
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), rgba(22, 30, 52, 0.92) 62%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 70px -30px rgba(79, 140, 255, 0.9);
  /* The core sits at the centre of the gyroscope, so it stays screen-facing. */
  transform: translateZ(0);
}

.orbit-core::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #4f8cff, #8b5cf6, #22d3ee, #4f8cff);
  z-index: -1;
  filter: blur(4px);
  animation: orbitSpin 7s linear infinite;
  opacity: 0.9;
}

.orbit-initials {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff, #a9c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.orbit-caption {
  position: absolute;
  bottom: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.45);
  white-space: nowrap;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 226, 255, 0.5);
  text-decoration: none;
}

.hero-scroll-cue .rail {
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
  overflow: hidden;
  position: relative;
}

.hero-scroll-cue .rail::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(#8ab4ff, transparent);
  animation: railRun 2.1s ease-in-out infinite;
}

@keyframes railRun {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

.hero-scroll-cue:hover {
  color: #fff;
}

/* Hero entrance cascade (progressively enhanced: only when JS is on) */
.js .hero-copy > * {
  opacity: 0;
  animation: riseIn 0.95s var(--ease-out) both;
}

.js .hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.34s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.46s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.58s; }
.js .hero-copy > *:nth-child(6) { animation-delay: 0.7s; }
.js .hero-copy > *:nth-child(7) { animation-delay: 0.82s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ---------- Scroll reveal (shared) ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.from-left { transform: translate3d(-28px, 0, 0); }
.js .reveal.from-right { transform: translate3d(28px, 0, 0); }

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Section scaffolding ---------- */

.bio-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.bio-section.tight {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 46rem;
}

.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.section-head .kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--glow-blue), var(--glow-violet));
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-head .section-intro + .section-intro {
  margin-top: 1rem;
}

/* ---------- About: prose + live code card ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose p strong {
  color: var(--text);
}

.prose-highlight {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--glow-blue), var(--glow-violet)) 1;
  padding-left: 1rem;
  color: var(--text) !important;
  font-size: 1.06rem;
  font-weight: 500;
}

.fact-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.fact-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55rem;
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--glow-blue), var(--glow-violet));
}

.fact-list li strong {
  color: var(--text);
}

/* Impact panel */
.impact-panel {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid #dce5f7;
  border-radius: 20px;
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(139, 92, 246, 0.09), transparent 65%),
    linear-gradient(145deg, #fff, #f5f8ff);
  box-shadow: 0 28px 70px -42px rgba(33, 52, 105, 0.5);
}

.js .impact-panel.from-right {
  transform: translate3d(0, 28px, 0);
}

.js .impact-panel.from-right.in-view {
  transform: none;
}

.impact-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--glow-blue), var(--glow-violet), var(--glow-teal));
}

.impact-kicker {
  margin-bottom: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.impact-panel h3 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.035em;
}

.impact-list {
  margin: 0;
}

.impact-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.32rem;
  padding: 1rem 0;
  border-top: 1px solid #dfe7f5;
}

.impact-item dt {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.impact-item dd {
  margin: 0;
  color: #17264b;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.impact-item dd span[aria-hidden="true"] {
  padding: 0 0.18em;
  color: var(--accent);
}

.impact-note {
  margin: 0.65rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid #dfe7f5;
  color: #425171;
  font-size: 0.93rem;
  line-height: 1.75;
}

.bio-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- The Workbench ---------- */

.workbench-section {
  position: relative;
  isolation: isolate;
  max-width: none;
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem));
  overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(70% 75% at 85% 42%, rgba(79, 140, 255, 0.15), transparent 72%),
    radial-gradient(55% 70% at 8% 90%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(180deg, #1d2745 0%, #161f36 18%, #131b2e 100%);
}

.workbench-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 177, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 177, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.workbench-heading {
  max-width: var(--max-width);
}

.workbench-heading .kicker {
  color: #8ab4ff;
}

.workbench-heading h2 {
  color: #f5f7ff;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.workbench-heading p {
  color: var(--hero-muted);
}

.workbench {
  display: grid;
  gap: 2rem;
}

html:not(.js) .workbench-index {
  display: none;
}

.workbench-overline {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1rem;
  color: rgba(199, 214, 248, 0.52);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workbench-selectors {
  display: grid;
  gap: 0.35rem;
}

.workbench-selector {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.1rem 0.65rem;
  width: 100%;
  padding: 1rem 0.8rem;
  border: 0;
  border-radius: 10px;
  color: rgba(220, 229, 250, 0.64);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.workbench-selector::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #6f9cff, #a78bfa, transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-out);
}

.workbench-selector:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.workbench-selector.is-active,
.workbench-selector[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.1), transparent);
}

.workbench-selector.is-active::after {
  transform: scaleX(1);
}

.workbench-selector:focus-visible,
.workbench-more:focus-visible,
.workbench-shot:focus-visible,
.workbench-project-link:focus-visible {
  outline: 2px solid #9cbcff;
  outline-offset: 4px;
}

.workbench-number {
  grid-row: 1 / span 2;
  padding-top: 0.3rem;
  color: rgba(138, 180, 255, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
}

.workbench-name {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.workbench-selector-label {
  color: rgba(199, 214, 248, 0.48);
  font-size: 0.75rem;
  line-height: 1.5;
}

.workbench-selector.is-active .workbench-selector-label {
  color: rgba(199, 214, 248, 0.76);
}

.workbench-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 0.8rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 229, 250, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.workbench-more:hover {
  color: #fff;
}

.workbench-more-icon {
  color: #8ab4ff;
  font-size: 1.2rem;
  transition: transform 0.35s var(--ease-out);
}

.workbench-more[aria-expanded="true"] .workbench-more-icon {
  transform: rotate(45deg);
}

.workbench-secondary {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease-out), opacity 0.3s ease;
}

.workbench-secondary > .workbench-selectors {
  overflow: hidden;
}

.workbench-selectors-secondary .workbench-name {
  font-size: 1rem;
}

.js .workbench-section.is-enhanced .workbench-secondary {
  grid-template-rows: 0fr;
  opacity: 0;
}

.js .workbench-section.is-enhanced .workbench-secondary.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.workbench-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.workbench-panel {
  min-width: 0;
}

.workbench-shot {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(174, 198, 255, 0.26);
  border-radius: 12px;
  color: inherit;
  background: #1a2338;
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.workbench-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: #1c263c;
}

.workbench-windowbar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 0.7rem;
  color: rgba(207, 220, 250, 0.55);
  background: linear-gradient(180deg, #232e4a, #1c263c);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.09em;
}

.workbench-windowbar i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6d64;
}

.workbench-windowbar i:nth-child(2) { background: #f4bf4f; }
.workbench-windowbar i:nth-child(3) { background: #58c45b; }

.workbench-windowbar > span {
  margin-left: auto;
}

.workbench-static-caption h3 {
  margin: 0.8rem 0 0.25rem;
}

.workbench-static-caption p,
.workbench-caption {
  color: var(--hero-muted);
}

.workbench-caption {
  display: none;
}

.js .workbench-section.is-enhanced .workbench {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.js .workbench-section.is-enhanced .workbench-index {
  position: relative;
  z-index: 20;
}

.js .workbench-section.is-enhanced .workbench-display {
  min-width: 0;
}

.js .workbench-section.is-enhanced .workbench-stage {
  position: relative;
  display: block;
  aspect-ratio: 1.23 / 1;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.js .workbench-section.is-enhanced .workbench-stage::before {
  content: "";
  position: absolute;
  inset: 12% 2% 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79, 140, 255, 0.22), transparent 68%);
  filter: blur(35px);
  pointer-events: none;
}

.js .workbench-section.is-enhanced .workbench-panel {
  --panel-x: 0px;
  --panel-y: 0px;
  --panel-z: -180px;
  --panel-rotate: 0deg;
  --panel-scale: 0.84;
  position: absolute;
  inset: 8% 0 auto;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(calc(var(--panel-x) + var(--parallax-x, 0px)), calc(var(--panel-y) + var(--parallax-y, 0px)), var(--panel-z)) rotateY(var(--panel-rotate)) scale(var(--panel-scale));
  transform-origin: 50% 50%;
  transition: transform 0.8s var(--ease-out), opacity 0.5s ease, filter 0.6s ease, visibility 0s linear 0.8s;
  filter: saturate(0.65) brightness(0.65);
}

.js .workbench-section.is-enhanced .workbench-panel.is-active {
  --panel-x: 0px;
  --panel-y: 0px;
  --panel-z: 0px;
  --panel-rotate: 0deg;
  --panel-scale: 1;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: none;
  transition-delay: 0s;
}

.js .workbench-section.is-enhanced .workbench-panel:not(.is-active):not(.is-before):not(.is-after):not(.is-distant) {
  display: none;
}

.js .workbench-section.is-enhanced .workbench-panel.is-before {
  --panel-x: -9%;
  --panel-y: -7%;
  --panel-z: -170px;
  --panel-rotate: 8deg;
  --panel-scale: 0.86;
  z-index: 4;
  opacity: 0.42;
  visibility: visible;
  transition-delay: 0s;
}

.js .workbench-section.is-enhanced .workbench-panel.is-after {
  --panel-x: 9%;
  --panel-y: 11%;
  --panel-z: -210px;
  --panel-rotate: -8deg;
  --panel-scale: 0.82;
  z-index: 3;
  opacity: 0.34;
  visibility: visible;
  transition-delay: 0s;
}

.js .workbench-section.is-enhanced .workbench-panel.is-distant {
  --panel-x: 3%;
  --panel-y: 17%;
  --panel-z: -360px;
  --panel-scale: 0.75;
  z-index: 2;
  opacity: 0.12;
  visibility: visible;
  transition-delay: 0s;
}

.js .workbench-section.is-enhanced .workbench-shot {
  box-shadow: 0 45px 90px -25px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(120, 157, 255, 0.1);
}

.js .workbench-section.is-enhanced .workbench-shot img {
  aspect-ratio: 16 / 10.7;
}

.js .workbench-section.is-enhanced .workbench-static-caption {
  display: none;
}

.js .workbench-section.is-enhanced .workbench-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
  min-height: 7.5rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workbench-caption.is-changing .workbench-caption-label,
.workbench-caption.is-changing .workbench-caption-description {
  animation: workbenchCaption 0.45s var(--ease-out);
}

@keyframes workbenchCaption {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.workbench-caption-label {
  margin: 0 0 0.4rem;
  color: #f3f6ff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.workbench-caption-description {
  max-width: 58ch;
  margin: 0;
  color: rgba(208, 220, 248, 0.62);
  font-size: 0.86rem;
  line-height: 1.65;
}

.workbench-project-link {
  padding-top: 0.15rem;
  color: #a9c4ff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.workbench-project-link:hover {
  color: #fff;
}

/* ---------- Spotlight cards ---------- */

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 140, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spot-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glow-blue), var(--glow-violet), var(--glow-teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}

.spot-card:hover {
  transform: translateY(-5px);
  border-color: #cfdcfb;
  box-shadow: var(--shadow-hover);
}

.spot-card:hover::before {
  opacity: 1;
}

.spot-card:hover::after {
  transform: scaleX(1);
}

.spot-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(140deg, var(--accent-soft), #eef2ff);
  border: 1px solid #dbe6ff;
  color: var(--accent-dark);
}

.spot-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spot-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  text-align: left;
}

.spot-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: left;
}

.spot-card p a {
  color: var(--accent-dark);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.spot-card p a:hover {
  color: var(--accent);
}

.spot-card p a:focus-visible,
.timeline a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.spot-card .widths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  justify-content: flex-start;
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  list-style: none;
  padding-left: 2.2rem;
  display: grid;
  gap: 1.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  /* Centred on the li dots: 2.2rem padding − 1.14rem offset + half a 0.72rem dot. */
  left: 1.36rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--glow-blue), var(--glow-violet) 55%, transparent);
  opacity: 0.55;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.14rem;
  top: 0.24rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14);
}

.timeline .when {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.timeline h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.22rem 0 0.3rem;
  text-align: left;
  letter-spacing: -0.01em;
}

.timeline p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  text-align: left;
  max-width: 68ch;
}

/* ---------- Closing CTA ---------- */

.bio-cta {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 3.2rem 2rem;
  text-align: center;
  color: var(--hero-text);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(79, 140, 255, 0.38), transparent 58%),
    radial-gradient(80% 120% at 92% 100%, rgba(139, 92, 246, 0.38), transparent 60%),
    linear-gradient(160deg, #16203a, #202b4d);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -50px rgba(12, 20, 50, 0.75);
}

.bio-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 90% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 90% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}

.bio-cta h2 {
  position: relative;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.bio-cta p {
  position: relative;
  color: var(--hero-muted);
  max-width: 44rem;
  margin: 0 auto 1.9rem;
  font-size: 1.03rem;
}

.bio-cta .hero-actions {
  position: relative;
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .bio-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .orbit-figure {
    order: -1;
      --figure: clamp(300px, 84vw, 420px);
  }

    /* At this size the rings sit close enough that full-size badges on
       adjacent rings collide, so shrink them and push the radii further apart. */
    .orbit-figure {
      --r1: calc(var(--figure) * 0.49);
      --r2: calc(var(--figure) * 0.4);
      --r3: calc(var(--figure) * 0.31);
      --r4: calc(var(--figure) * 0.22);
      --r5: calc(var(--figure) * 0.13);
    }

    .orbit-badge {
      font-size: 0.58rem;
      padding: 0.2em 0.44em;
    }

    /* 24 badges in a ~330px figure is too dense to read on a phone. The two
       innermost orbits keep their rings as structure but drop their labels, so
       the remaining 19 stay legible. */
    .orbit-ring.r4 .orbit-badge,
    .orbit-ring.r5 .orbit-badge {
      display: none;
    }

  .hero-lead {
    max-width: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .impact-panel {
    position: static;
  }

  .js .workbench-section.is-enhanced .workbench {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .js .workbench-section.is-enhanced .workbench-index {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 1.5rem;
  }

  .workbench-overline {
    grid-column: 1 / -1;
  }

  .js .workbench-section.is-enhanced .workbench-index > .workbench-selectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-more {
    align-self: start;
    width: auto;
    margin-top: 0;
    border-top: 0;
    gap: 1rem;
  }

  .workbench-secondary {
    grid-column: 1 / -1;
  }

  .workbench-selectors-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .js .workbench-section.is-enhanced .workbench-stage {
    aspect-ratio: 1.55 / 1;
  }

  .js .workbench-section.is-enhanced .workbench-panel {
    inset: 4% 3% auto;
  }

  /* Edge-aligned cards would be pushed past the viewport by the horizontal
     reveal offset, so keep the reveal vertical-only on narrow screens. */
  .js .reveal.from-left,
  .js .reveal.from-right {
    transform: translate3d(0, 28px, 0);
  }
}

@media (max-width: 768px) {
  .bio-hero {
    padding-top: calc(var(--header-h) + 2.25rem);
    padding-bottom: 4.5rem;
    min-height: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.5rem;
  }

  .bio-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-scroll-cue {
    display: none;
  }

  .bio-cta {
    padding: 2.4rem 1.25rem;
  }

  .workbench-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .workbench-heading h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .js .workbench-section.is-enhanced .workbench-index {
    display: block;
  }

  .js .workbench-section.is-enhanced .workbench-index > .workbench-selectors,
  .workbench-selectors-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-selector {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: 0.1rem 0.35rem;
    min-height: 52px;
    padding: 0.8rem 0.45rem;
  }

  .workbench-name,
  .workbench-selectors-secondary .workbench-name {
    font-size: 0.98rem;
  }

  .workbench-selector-label {
    font-size: 0.68rem;
  }

  .workbench-more {
    width: 100%;
    min-height: 48px;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .js .workbench-section.is-enhanced .workbench-stage {
    aspect-ratio: 1.7 / 1;
  }

  .js .workbench-section.is-enhanced .workbench-panel {
    inset: 2% 0 auto;
  }

  .js .workbench-section.is-enhanced .workbench-panel.is-before {
    --panel-x: -3%;
    --panel-y: -4%;
    --panel-z: -100px;
    --panel-rotate: 3deg;
  }

  .js .workbench-section.is-enhanced .workbench-panel.is-after {
    --panel-x: 3%;
    --panel-y: 5%;
    --panel-z: -120px;
    --panel-rotate: -3deg;
  }

  .js .workbench-section.is-enhanced .workbench-panel.is-distant {
    display: none;
  }

  .js .workbench-section.is-enhanced .workbench-caption {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-height: 11rem;
  }

  .workbench-project-link {
    padding: 0.5rem 0;
  }

  .impact-item dd {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }
}

@media (max-width: 420px) {
  .workbench-selector-label {
    display: none;
  }

  .workbench-number {
    grid-row: auto;
  }

  .workbench-windowbar {
    height: 23px;
    font-size: 0.43rem;
  }

  .js .workbench-section.is-enhanced .workbench-stage {
    aspect-ratio: 1.4 / 1;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .bio-page .aurora span,
  .bio-page .orbit-glow,
  .bio-page .orbit-ring,
  .bio-page .orbit-badge,
  .bio-page .orbit-sweep,
  .bio-page .orbit-ticks,
  .bio-page .orbit-core::before,
  .bio-page .hero-name .grad,
  .bio-page .pulse-dot::after,
  .bio-page .hero-role .caret,
  .bio-page .hero-scroll-cue .rail::after,
  .bio-page .workbench-caption-label,
  .bio-page .workbench-caption-description,
  .bio-page .btn-glow::after {
    animation: none !important;
  }

  /* Without the spin animation the rings would sit flat and the badges would
     lose their billboard correction, so pin the whole scene to a readable
     three-quarter view instead. The static spin offsets keep the badges from
     stacking on top of each other at rotation 0. */
  .bio-page .orbit-ring,
  .bio-page .orbit-sweep,
  .bio-page .orbit-ticks {
    transform: rotateX(var(--tx)) rotateY(var(--ty)) rotateZ(var(--static-spin, 0deg));
  }

  .bio-page .orbit-badge {
    transform: rotateZ(calc(-1 * var(--static-spin, 0deg)))
               rotateY(calc(-1 * var(--ty)))
               rotateX(calc(-1 * var(--tx)));
  }

  .bio-page .orbit-figure {
    --scene-tilt-x: 0deg;
    --scene-tilt-y: 0deg;
  }

  .js .hero-copy > *,
    .js .reveal {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
      clip-path: none !important;
      transition: none !important;
      animation: none !important;
    }

  .js .workbench-section.is-enhanced .workbench-panel {
    --parallax-x: 0px !important;
    --parallax-y: 0px !important;
    transition: none !important;
  }

  .js .workbench-section.is-enhanced .workbench-panel.is-active {
    transform: none !important;
  }

  .js .workbench-section.is-enhanced .workbench-panel.is-before,
  .js .workbench-section.is-enhanced .workbench-panel.is-after,
  .js .workbench-section.is-enhanced .workbench-panel.is-distant {
    display: none;
  }

  .workbench-more-icon,
  .workbench-secondary {
    transition: none !important;
  }
}