:root {
  --bg: #09111f;
  --bg-2: #151a3d;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #b8c0e0;
  --line: rgba(255, 255, 255, 0.18);
  --primary: #62a8ff;
  --accent: #ffc857;
  --accent-2: #a56bff;
  --shadow: rgba(3, 8, 25, 0.4);
  --hero-parallax: 0px;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
  background: linear-gradient(180deg, var(--bg), #07101a 45%, #070f16);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 0% -20%, rgba(98, 168, 255, 0.24), transparent 72%),
    radial-gradient(900px 600px at 100% 0%, rgba(165, 107, 255, 0.22), transparent 70%),
    radial-gradient(960px 520px at 52% 34%, rgba(98, 168, 255, 0.11), transparent 75%),
    radial-gradient(920px 520px at 18% 66%, rgba(165, 107, 255, 0.1), transparent 74%),
    radial-gradient(980px 580px at 82% 88%, rgba(255, 200, 87, 0.08), transparent 76%);
  animation: globalBackdropDrift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.09) 0 1.4px, transparent 1.4px),
    radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.07) 0 1.2px, transparent 1.2px);
  background-size: 220px 220px, 260px 260px;
  animation: globalBackdropDrift 42s linear infinite;
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  background: #ffffff;
  color: #0a1020;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
}

/* Sticky top strip — seamless with page (no solid header block) */
.site-top {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
}

.site-top .top-bar {
  padding: 18px 0;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(9, 17, 31, 0.94) 0%,
    rgba(9, 17, 31, 0.72) 55%,
    rgba(9, 17, 31, 0.35) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.top-bar-left {
  margin: 0;
  justify-self: start;
}

.top-bar-brand,
.top-bar-brand:visited {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.top-bar-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  justify-self: center;
  text-align: center;
  max-width: 100%;
}

.top-bar-center a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.top-bar-center a:hover {
  color: var(--text);
}

.top-bar-right {
  margin: 0;
  justify-self: end;
  text-align: right;
  line-height: 1.4;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(98, 168, 255, 0.7);
}

.hero-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 0 0 36px;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.07) 0 1.6px, transparent 1.6px);
  background-size: 140px 140px, 180px 180px;
  opacity: 0.22;
  animation: sceneDrift 18s linear infinite;
}

/* Autonomous aurora — does not track cursor */
.hero-aurora {
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.48;
  filter: blur(8px);
  background:
    radial-gradient(38% 32% at 22% 28%, rgba(98, 168, 255, 0.28), transparent 72%),
    radial-gradient(34% 30% at 78% 32%, rgba(165, 107, 255, 0.22), transparent 74%),
    radial-gradient(28% 26% at 55% 72%, rgba(255, 200, 87, 0.18), transparent 74%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}

.scene-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.scene-glow-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -100px;
  background: rgba(98, 168, 255, 0.42);
  animation: floatGlowA 12s ease-in-out infinite;
}

.scene-glow-b {
  width: 480px;
  height: 480px;
  right: -150px;
  bottom: -180px;
  background: rgba(255, 200, 87, 0.3);
  animation: floatGlowB 14s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 40px;
}

.hero-copy {
  max-width: 60ch;
  transform: translateY(calc(var(--hero-parallax) * -0.3));
  will-change: transform;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 700;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(40px, 7.5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 18px;
  color: #d8ddf5;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.15;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
.btn:visited {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  color: #0d1530;
  background: linear-gradient(130deg, #a5dcff, #67a5ff);
  font-weight: 700;
}

.btn-secondary,
.btn-secondary:visited {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.headshot-card {
  justify-self: end;
  width: min(520px, 100%);
  position: relative;
  border-radius: 24px;
  overflow: visible;
  border: 1px solid var(--line);
  background: rgba(10, 15, 30, 0.72);
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.55),
    0 20px 48px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 72px rgba(98, 168, 255, 0.22),
    0 0 120px rgba(165, 107, 255, 0.12);
  transform: translateY(calc(var(--hero-parallax) * 0.22));
  will-change: transform;
}

.headshot-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 45% 18%, rgba(98, 168, 255, 0.55), transparent 62%),
    radial-gradient(ellipse 50% 40% at 72% 88%, rgba(165, 107, 255, 0.35), transparent 58%),
    radial-gradient(ellipse 40% 35% at 18% 75%, rgba(255, 200, 87, 0.2), transparent 55%);
  filter: blur(32px);
  opacity: 0.85;
}

.headshot-photo {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
}

.headshot-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  color: #d4dbf7;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 260ms ease, transform 260ms ease;
}

body.is-scrolled .scroll-hint {
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
}

.section {
  padding: 70px 0;
}

.section-alt {
  background: transparent;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-kicker {
  margin: 0 0 26px;
  color: var(--muted);
}

#highlights {
  position: relative;
  margin-top: -8px;
  padding-top: 86px;
}

#highlights::before {
  content: none;
}

#highlights .container {
  position: relative;
  z-index: 1;
}

.highlights-marquee-section {
  position: relative;
  overflow: hidden;
  padding-top: 74px;
  padding-bottom: 74px;
}

.highlights-marquee-header {
  margin-bottom: 20px;
}

.highlights-marquee-header h2 {
  margin-bottom: 10px;
}

.highlights-marquee-band {
  display: flex;
  gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.highlights-marquee-band + .highlights-marquee-band {
  margin-top: 14px;
}

.highlights-marquee-band-alt {
  opacity: 0.9;
}

.highlights-marquee-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  min-width: max-content;
}

.highlights-marquee-track-left {
  animation: highlightMarqueeLeft 38s linear infinite;
}

.highlights-marquee-track-right {
  animation: highlightMarqueeRight 42s linear infinite;
}

.highlight-chip {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: clamp(220px, 26vw, 360px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(10, 16, 30, 0.46);
  box-shadow: 0 10px 30px rgba(2, 8, 22, 0.24);
}

.highlight-chip-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}

.highlight-chip-text {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.35;
  color: #edf2ff;
  font-weight: 600;
}

.pill,
.pill:visited {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

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

.highlights-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.3fr 1fr;
  grid-template-areas:
    "main accent"
    "main stat"
    "impact stat";
}

.highlight-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.highlight-panel h3 {
  margin: 6px 0 8px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.highlight-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--accent);
}

.highlight-main {
  grid-area: main;
  background:
    radial-gradient(500px circle at 0% 0%, rgba(98, 168, 255, 0.18), transparent 68%),
    rgba(255, 255, 255, 0.06);
}

.highlight-accent {
  grid-area: accent;
  background:
    radial-gradient(380px circle at 100% 0%, rgba(165, 107, 255, 0.18), transparent 65%),
    rgba(255, 255, 255, 0.05);
}

.highlight-stat {
  grid-area: stat;
  background:
    radial-gradient(300px circle at 100% 100%, rgba(255, 200, 87, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.05);
}

.highlight-impact {
  grid-area: impact;
  background:
    radial-gradient(300px circle at 0% 100%, rgba(98, 168, 255, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.05);
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

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

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

#timeline {
  position: relative;
  overflow: hidden;
  padding-bottom: 34px;
}

#timeline::before {
  content: none;
}

#timeline .container {
  position: relative;
  z-index: 1;
  width: min(1320px, 100% - 32px);
}

.timeline-graphic {
  position: relative;
  min-height: 175vh;
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.timeline-graphic::before {
  content: "";
  position: absolute;
  left: calc(50% - 2px);
  top: 0;
  bottom: 0;
  width: 4px;
  background:
    linear-gradient(180deg, rgba(98, 168, 255, 0.65), rgba(255, 200, 87, 0.75), rgba(165, 107, 255, 0.7));
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 850ms ease;
}

.timeline-graphic.is-active::before {
  transform: scaleY(1);
}

.timeline-item {
  position: relative;
  width: calc(50% - 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 50px 22px 22px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--enter-x, 0), 44px, 0) scale(0.97);
  transition: border-color 320ms ease, box-shadow 360ms ease, background 320ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.16, 1), opacity 500ms ease,
    filter 520ms ease;
  transition-delay: calc(var(--item-order, 0) * 70ms);
}

.timeline-left {
  margin-right: auto;
  --enter-x: -72px;
}

.timeline-right {
  margin-left: auto;
  --enter-x: 72px;
}

.timeline-year-bubble {
  align-self: center;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 13, 25, 0.92);
  color: #edf2ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: scale(0.85) translateY(12px);
  transition: transform 480ms ease, opacity 480ms ease;
}

.timeline-year-bubble.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.timeline-dot {
  position: absolute;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
  box-shadow: 0 0 0 5px rgba(98, 168, 255, 0.2);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.timeline-left .timeline-dot {
  right: -56px;
}

.timeline-right .timeline-dot {
  left: -56px;
}

.timeline-item.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.timeline-item.is-active .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 9px rgba(98, 168, 255, 0.24);
  animation: pulseDot 1.8s ease-out infinite;
}

.timeline-item.type-leadership {
  border-color: rgba(98, 168, 255, 0.44);
  background:
    radial-gradient(360px circle at 0% 0%, rgba(98, 168, 255, 0.2), transparent 72%),
    rgba(255, 255, 255, 0.05);
}

.timeline-item.type-business {
  border-color: rgba(165, 107, 255, 0.44);
  background:
    radial-gradient(360px circle at 100% 0%, rgba(165, 107, 255, 0.2), transparent 72%),
    rgba(255, 255, 255, 0.05);
}

.timeline-item.type-trades {
  border-color: rgba(255, 200, 87, 0.45);
  background:
    radial-gradient(300px circle at 50% 100%, rgba(255, 200, 87, 0.2), transparent 72%),
    rgba(255, 255, 255, 0.05);
}

.timeline-item.type-leadership .timeline-dot {
  background: radial-gradient(circle at 30% 30%, #fff, #66bbff);
  box-shadow: 0 0 0 5px rgba(98, 168, 255, 0.23);
}

.timeline-item.type-business .timeline-dot {
  background: radial-gradient(circle at 30% 30%, #fff, #a56bff);
  box-shadow: 0 0 0 5px rgba(165, 107, 255, 0.24);
}

.timeline-item.type-trades .timeline-dot {
  background: radial-gradient(circle at 30% 30%, #fff, #ffc857);
  box-shadow: 0 0 0 5px rgba(255, 200, 87, 0.24);
}

.timeline-type-tile {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px 7px;
  border-radius: 0 17px 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8faff;
}

.timeline-item.type-leadership .timeline-type-tile {
  background: rgba(98, 168, 255, 0.34);
}

.timeline-item.type-business .timeline-type-tile {
  background: rgba(165, 107, 255, 0.34);
}

.timeline-item.type-trades .timeline-type-tile {
  background: rgba(255, 200, 87, 0.34);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.timeline-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.1vw, 31px);
  line-height: 1.1;
}

.timeline-role-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 0.72em;
  line-height: 1;
  filter: grayscale(1) saturate(0) contrast(1.1);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.timeline-sub {
  margin-top: 8px;
  color: #d7def9;
  font-size: 16px;
}

.timeline-body {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.timeline-date {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #e5ebff;
}

#projects {
  position: relative;
}

#projects::before {
  content: none;
}

#projects .container {
  position: relative;
  z-index: 1;
}

.projects-stack {
  margin-top: 8px;
  display: grid;
  gap: 20px;
}

.project-entry {
  position: relative;
  padding-top: 0;
}

.project-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 16%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 14, 28, 0.8);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
  cursor: pointer;
}

.project-banner.project-visual-left {
  grid-template-columns: minmax(120px, 16%) minmax(0, 1fr);
}

.project-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(98, 168, 255, 0.45), rgba(255, 200, 87, 0.55), rgba(165, 107, 255, 0.45));
  box-shadow: 0 0 14px rgba(98, 168, 255, 0.4);
}

.project-meta-pill {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(17, 22, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(240px circle at 50% 50%, rgba(98, 168, 255, 0.28), transparent 72%),
    rgba(255, 255, 255, 0.04);
}

.project-banner.project-visual-left .project-visual {
  grid-column: 1;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  min-width: 0;
}

.project-banner.project-visual-left .project-content {
  grid-column: 2;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  animation: projectRingPulse 2.8s ease-in-out infinite;
}

.project-visual::before {
  width: 64px;
  height: 64px;
}

.project-visual::after {
  width: 112px;
  height: 112px;
  animation-delay: 220ms;
}

.project-glyph {
  display: inline-flex;
  width: 52px;
  height: 52px;
  color: #ffffff;
  transition: transform 300ms ease, opacity 260ms ease;
  animation: projectGlyphIdle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.project-entry:nth-child(1) .project-glyph {
  animation-delay: 0s;
}

.project-entry:nth-child(2) .project-glyph {
  animation-delay: 0.55s;
}

.project-entry:nth-child(3) .project-glyph {
  animation-delay: 1.05s;
}

.project-entry:nth-child(4) .project-glyph {
  animation-delay: 1.5s;
}

.project-glyph-svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.project-toggle {
  width: 100%;
  text-align: left;
  padding: 48px 24px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 220ms ease;
  min-width: 0;
}

.project-toggle-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.project-title-wrap {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.project-role {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.project-title {
  margin: 0;
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(152, 195, 255, 0.24);
  overflow-wrap: anywhere;
}

.project-arrow {
  font-size: 18px;
  transform: translateY(6px);
  transition: transform 260ms ease;
  color: #d2ddff;
  flex: 0 0 auto;
}

.project-toggle[aria-expanded="true"] .project-arrow {
  transform: translateY(6px) rotate(180deg);
}

.project-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.project-banner:not(.is-open):hover {
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow:
    0 10px 40px -10px rgba(255, 215, 0, 0.4),
    0 22px 40px rgba(2, 6, 20, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.project-banner:hover .project-glyph {
  animation: projectGlyphHover 1.68s ease-in-out infinite;
}

.project-toggle:hover {
  background: rgba(255, 255, 255, 0.015);
}

.project-toggle:active {
  transform: scale(0.996);
}

.project-banner.is-open {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 34px rgba(8, 16, 34, 0.42), 0 0 0 1px rgba(151, 200, 255, 0.2);
}

.project-banner.is-open .project-glyph {
  animation: projectGlyphHover 1.68s ease-in-out infinite;
}

.project-summary {
  margin: 10px 0 0;
  display: block;
  color: #d7e0fb;
  font-size: 16px;
  max-width: none;
  line-height: 1.62;
  padding: 0;
  border-radius: 0;
  background: none;
  border-left: 0;
}

.project-details {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0 24px 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 420ms cubic-bezier(0.22, 0.8, 0.2, 1), opacity 280ms ease,
    transform 280ms ease, padding 340ms ease;
  cursor: pointer;
}

.project-details::before {
  content: "";
  display: block;
  height: 14px;
  width: calc(100% + 48px);
  margin: 0 0 8px -24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 260ms ease;
}

.project-details p {
  margin: 8px 0 0;
  color: #d5defa;
  line-height: 1.72;
  font-size: 17px;
  max-width: 118ch;
}

.project-banner.is-open .project-details {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 24px 22px;
}

.project-banner.is-open .project-details::before {
  opacity: 0.5;
}

.project-visual-b {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(240px circle at 50% 50%, rgba(165, 107, 255, 0.3), transparent 72%),
    rgba(255, 255, 255, 0.04);
}

.project-visual-c {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(240px circle at 50% 50%, rgba(255, 200, 87, 0.28), transparent 72%),
    rgba(255, 255, 255, 0.04);
}

.project-visual-d {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(240px circle at 50% 50%, rgba(98, 168, 255, 0.28), transparent 72%),
    rgba(255, 255, 255, 0.04);
}

.summary-section {
  position: relative;
  padding-top: 42px;
  padding-bottom: 46px;
}

.summary-section::before {
  content: none;
}

.summary-section .container {
  position: relative;
  z-index: 1;
}

.summary-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  max-width: 920px;
  margin: 0 auto;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(98, 168, 255, 0.18), transparent 68%),
    radial-gradient(640px circle at 100% 100%, rgba(165, 107, 255, 0.17), transparent 66%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 42px rgba(2, 6, 20, 0.34);
}

.summary-panel h2 {
  margin-bottom: 16px;
}

.summary-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  font-weight: 700;
}

.summary-text {
  margin: 0;
  max-width: 66ch;
  color: #d8e0fb;
  font-size: clamp(18px, 2.05vw, 24px);
  line-height: 1.6;
}

.contact-email-card,
.contact-email-card:visited {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  padding: clamp(20px, 2.8vw, 30px) clamp(22px, 4vw, 42px);
  border-radius: 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #ecf2ff;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.015em;
  font-weight: 700;
  text-align: center;
  background:
    radial-gradient(320px circle at 0% 0%, rgba(98, 168, 255, 0.18), transparent 70%),
    radial-gradient(320px circle at 100% 100%, rgba(255, 200, 87, 0.16), transparent 72%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 34px rgba(2, 6, 20, 0.35);
  transition: transform 220ms ease, border-color 220ms ease;
}

.contact-email-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}

#contact {
  position: relative;
  padding-top: 46px;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

#contact h2 {
  text-align: center;
  margin-bottom: 18px;
}

.link,
.link:visited {
  color: #c6ddff;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
}

.footer-copy {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatGlowA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -12px, 0);
  }
}

@keyframes floatGlowB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-20px, 16px, 0);
  }
}

@keyframes sceneDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(98, 168, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(98, 168, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(98, 168, 255, 0);
  }
}

@keyframes projectGlyphIdle {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0) scale(1);
  }
  50% {
    transform: rotate(-5deg) translateY(-2px) scale(1.02);
  }
}

@keyframes projectGlyphHover {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0) scale(1.02);
  }
  50% {
    transform: rotate(-2deg) translateY(-6px) scale(1.08);
  }
}

@keyframes projectRingPulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(1%, -3%, 0) scale(1);
  }
}

@keyframes highlightMarqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - 14px), 0, 0);
  }
}

@keyframes highlightMarqueeRight {
  0% {
    transform: translate3d(calc(-100% - 14px), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes globalBackdropDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2.2%, 1.8%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(1.8%, -1.4%, 0) scale(1.01);
  }
}

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

  .highlights-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "accent"
      "stat"
      "impact";
  }

  .highlights-marquee-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .highlight-chip {
    min-width: clamp(200px, 56vw, 320px);
    padding: 13px 14px;
  }

  .headshot-card {
    justify-self: stretch;
  }

  #timeline .container {
    width: min(1120px, 100% - 24px);
  }

  .timeline-graphic {
    min-height: 0;
    gap: 26px;
    padding-left: 36px;
  }

  .timeline-graphic::before {
    left: 14px;
  }

  .timeline-left,
  .timeline-right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot {
    left: -33px;
    right: auto;
    width: 18px;
    height: 18px;
  }

  .timeline-left,
  .timeline-right {
    --enter-x: 0px;
  }

  .timeline-year-bubble {
    align-self: flex-start;
    margin-left: -22px;
    min-width: 50px;
    font-size: 11px;
  }

  .timeline-type-tile {
    font-size: 10px;
    padding: 7px 10px 6px;
  }

  .project-banner,
  .project-banner:nth-child(even),
  .project-banner.project-visual-left {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .project-visual,
  .project-banner:nth-child(even) .project-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 120px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .project-content {
    grid-column: 1;
    grid-row: 2;
  }

  .project-banner.project-visual-left .project-content {
    grid-column: 1;
    grid-row: 2;
  }

  .project-banner.project-visual-left .project-visual {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
  }

  .project-entry {
    padding-top: 0;
  }

  .project-meta-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 3;
    font-size: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
  }

  .project-toggle {
    padding: 16px 16px 16px;
  }

  .project-details {
    grid-row: 3;
    padding: 0 16px 0;
  }

  .project-banner.is-open .project-details {
    padding: 0 16px 18px;
  }

  .project-details::before {
    width: calc(100% + 32px);
    margin: 0 0 8px -16px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1120px, 100% - 24px);
  }

  .top-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .top-bar-left,
  .top-bar-right {
    justify-self: center;
    text-align: center;
  }

  .top-bar-center {
    justify-self: center;
  }

  .section {
    padding: 54px 0;
  }

  .highlights-marquee-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .highlights-marquee-band {
    gap: 12px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }

  .highlights-marquee-track {
    gap: 12px;
  }

  .highlight-chip {
    min-width: clamp(188px, 72vw, 280px);
    padding: 12px 13px;
  }

  .highlight-chip-text {
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .project-meta-pill {
    top: 8px;
    left: 8px;
    font-size: 11px;
  }

  .project-toggle {
    padding: 18px 14px 14px;
  }

  .project-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .project-summary {
    font-size: 15px;
    line-height: 1.56;
  }

  .project-visual {
    min-height: 110px;
  }

  .project-details {
    padding: 0 14px 0;
  }

  .project-banner.is-open .project-details {
    padding: 0 14px 16px;
  }

  .project-details::before {
    width: calc(100% + 28px);
    margin: 0 0 8px -14px;
  }

  #highlights {
    padding-top: 70px;
  }

  .contact-email-card,
  .contact-email-card:visited {
    width: 100%;
    font-size: clamp(20px, 7vw, 30px);
  }

  .summary-section {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  #contact {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene-glow-a,
  .scene-glow-b,
  body::before,
  body::after,
  .hero-scene::before,
  .hero-aurora,
  .highlights-marquee-track-left,
  .highlights-marquee-track-right {
    animation: none;
  }

  .hero-copy {
    transform: none;
  }

  .timeline-item.is-active .timeline-dot {
    animation: none;
  }

  .project-glyph,
  .project-visual::before,
  .project-visual::after {
    animation: none;
  }

  .timeline-item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .headshot-card {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

