:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #ecebf3;
  --muted: #8d8ca0;
  --dim: #55546a;
  --a1: #7c5cff;
  --a2: #22d3ee;
  --a3: #f472b6;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--a1); color: #fff; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* ---------- Ambient layers ---------- */

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.13), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Custom cursor: a soft translucent disc that trails a small dot */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; display: none; }
.has-cursor .cursor { display: block; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor body, html.has-cursor *, html.has-cursor *::before, html.has-cursor *::after { cursor: none !important; }
}
.cursor-ring, .cursor-dot { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.18);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), background .35s, border-color .35s, opacity .3s;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: rgba(236, 235, 243, 0.85); box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); transition: opacity .3s; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.35); }
.cursor.is-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-hidden .cursor-ring, .cursor.is-hidden .cursor-dot { opacity: 0; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Dock (collapsible sidebar nav) ---------- */
.dock { position: fixed; top: 20px; left: 20px; z-index: 60; }
.dock-toggle {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; color: var(--text); cursor: pointer;
  background: rgba(12, 12, 18, 0.85); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.dock-toggle:hover { transform: scale(1.06); }
.dock-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dock-ring circle { fill: none; stroke-width: 1.5; }
.dock-ring .track { stroke: var(--card-border); }
.dock-ring .bar { stroke: var(--a2); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }
.dock-ap { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.dock-x { position: absolute; width: 18px; height: 18px; opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.dock-x i { position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; }
.dock-x i:first-child { transform: rotate(45deg); }
.dock-x i:last-child { transform: rotate(-45deg); }
.dock.open .dock-ap { opacity: 0; transform: scale(.6); }
.dock.open .dock-x { opacity: 1; transform: none; }

.dock-panel {
  position: absolute; top: 68px; left: 0; width: 220px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px; border-radius: 22px;
  background: #0c0c12; border: 1px solid var(--card-border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform-origin: 28px -40px; transform: scale(.85) translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility 0s .45s;
}
.dock-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dock.open .dock-panel { transform: none; opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dock-panel a {
  position: relative; display: flex; align-items: baseline; gap: 14px; padding: 10px 14px; border-radius: 12px;
  font-family: var(--display); font-size: 18px; color: var(--muted);
  opacity: 0; transform: translateX(-10px); transition: color .25s, background .25s, opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.dock.open .dock-panel a { opacity: 1; transform: none; transition-delay: calc(var(--n) * 40ms + 60ms), calc(var(--n) * 40ms + 60ms), 0s, 0s; transition-property: opacity, transform, color, background; }
.dock-panel a .mono { font-size: 11px; color: var(--dim); transition: color .25s; }
.dock-panel a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.dock-panel a.active { color: var(--text); }
.dock-panel a.active .mono { color: var(--a2); }
.dock-panel a.active::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px var(--a2); }
.dock-panel .dock-cta { margin-top: 8px; justify-content: center; background: var(--text); color: var(--bg); font-family: var(--body); font-size: 14px; font-weight: 600; border-radius: 999px; }
.dock-panel .dock-cta:hover { background: #fff; color: var(--bg); }

/* past the hero on wide screens: menu stays expanded as plain text in the left margin */
@media (min-width: 1360px) {
  .dock.pinned .dock-ap { opacity: 1; transform: none; }
  .dock.pinned .dock-x { opacity: 0; }
  .dock.pinned .dock-panel {
    top: 76px; width: auto; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; opacity: 1; visibility: visible;
    transition: opacity .3s;
  }
  .dock.pinned .dock-panel a { opacity: 1; transform: none; padding: 7px 0 7px 18px; font-size: 15px; transition-delay: calc(var(--n) * 40ms); transition-property: opacity, transform, color; }
  .dock.pinned .dock-panel a:hover { background: none; }
  .dock.pinned .dock-panel a.active::after { left: 2px; right: auto; }
  .dock.pinned .dock-panel .dock-cta { margin-top: 12px; justify-content: flex-start; background: none; color: var(--a2); font-family: var(--display); font-size: 15px; font-weight: 500; }
  .dock.pinned .dock-panel .dock-cta:hover { color: var(--text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 120px var(--pad) 80px; overflow: hidden;
}
/* fade the particle field itself rather than painting the page color over the hero, which used to hide the cursor glow and leave a hard edge at the hero's bottom */
#field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); }
/* nudge the name block left of the centered column; the portrait offsets by the same amount so it stays put */
.hero-inner { --shift: clamp(16px, 10vw - 100px, 120px); left: calc(-1 * var(--shift)); }
/* cut-out portrait spanning the text block (name through buttons); chest fades out at the button line */
.hero-photo {
  position: absolute; z-index: -1; --fs: clamp(64px, 17vw, 240px); top: -48px; left: calc(var(--fs) * 2.82 + var(--shift)); height: calc(var(--fs) * 3.08); width: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%); mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  opacity: 0; animation: photo-in 1.2s cubic-bezier(.2,.8,.2,1) .35s forwards;
}
/* soft indigo glow behind the portrait (a drop-shadow on the img itself gets clipped by its mask into a visible box) */
.hero::before {
  content: ""; position: absolute; z-index: 1; top: 50%; right: max(0px, calc((100% - var(--max)) / 2 - 80px)); width: 640px; height: 640px; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent); pointer-events: none;
}
@keyframes photo-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero-inner { left: 0; }
  .hero::before { display: none; }
  .hero-photo { position: relative; z-index: auto; left: auto; right: auto; display: block; height: 220px; margin: 0 0 8px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
/* Mercor indigo, steady glow (no blinking) */
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6f72ff; box-shadow: 0 0 10px rgba(111, 114, 255, 0.7); }

.hero-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.88;
  font-size: clamp(64px, 17vw, 240px); margin: 24px 0 28px;
}
@media (max-width: 640px) { .hero-title { font-size: 25vw; } }
.line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.14em; }
.split { display: inline-block; }
.split .ch { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.9,.1,1); transition-delay: calc(var(--i) * 35ms); }
.is-in .split .ch, .split.is-in .ch { transform: none; }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 235, 243, 0.85); }
.gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* extra bottom padding so background-clip:text also paints descenders like the g */
.gradient .ch { background: inherit; -webkit-background-clip: text; background-clip: text; padding-bottom: 0.2em; margin-bottom: -0.2em; }

.hero-sub { font-size: clamp(18px, 2.4vw, 26px); color: var(--muted); font-family: var(--display); }
.scramble { color: var(--text); }
.caret { color: var(--a2); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--card-border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-hint span { width: 1px; height: 48px; background: linear-gradient(var(--a2), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 64px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 88px; padding-right: 88px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track > * { flex: none; }
.wm { display: block; width: auto; height: 30px; filter: brightness(0) invert(1); opacity: .55; transition: opacity .3s, filter .3s; }
.wm-link { display: block; }
/* hover brings back brand color: full-color logos drop the white filter; mono or dark-on-dark ones get a brand-tinted copy masked by the logo */
.wm-link:not(.tint):hover .wm, .wm-link:not(.tint):focus-visible .wm { opacity: 1; filter: none; }
.tint { position: relative; display: block; }
.tint::after {
  content: ""; position: absolute; inset: 0; background: var(--brand); opacity: 0; transition: opacity .3s; pointer-events: none;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
}
.tint:hover::after, .tint:focus-visible::after { opacity: 1; }
/* multi-color marks (Berkeley blue + gold) swap to a pre-colored copy: blue becomes white so it reads on the dark background */
.tint.full::after { background: var(--src) center / 100% 100% no-repeat; -webkit-mask: none; mask: none; }
.tint:hover img, .tint:focus-visible img { opacity: 0 !important; }
.wm-google { height: 34px; }
.wm-nvidia { height: 26px; }
.wm-docker { height: 34px; }
.wm-microsoft { height: 28px; }
.wm-brydge { height: 40px; }
.wm-ycombinator { height: 30px; }
.wm-mercor { height: 24px; }
.wm-bair { height: 42px; }
.wm-berkeley-met { height: 36px; }
.wm-berkeley-eecs, .wm-berkeley-haas { height: 44px; }
@media (max-width: 640px) { .wm { transform: scale(.8); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 160px) var(--pad); }
.section-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 56px; }
.index { color: var(--a2); font-size: 14px; }
.section-title { font-family: var(--display); font-size: clamp(40px, 7vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
/* scroll-driven "color in": main.js sets --p from 0% to 100% as each element crosses the viewport */
.section-title {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background: linear-gradient(var(--text), var(--text)) 0 0 / var(--p, 0%) 100% no-repeat, rgba(236, 235, 243, 0.14);
  -webkit-background-clip: text; background-clip: text; padding-bottom: 0.08em;
}

/* reveal primitives */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal-up.is-in { opacity: 1; transform: none; }
.reveal-words .w { display: inline-block; opacity: 0.12; transition: opacity 0.2s linear; }
.reveal-words .w.lit { opacity: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-points { display: flex; flex-direction: column; gap: 4px; }
.about-points li { font-family: var(--display); font-size: clamp(28px, 3.8vw, 46px); line-height: 1.2; letter-spacing: -0.025em; }
/* lines light up one at a time as the list scrolls through the viewport */
.reveal-lines > * { opacity: 0.12; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.2,.8,.2,1); }
.reveal-lines > .lit { opacity: 1; transform: none; }
.about-body p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--card-border); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; }
.stat { background: var(--bg); padding: 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat-num { align-self: flex-start; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; color: transparent;
  background: linear-gradient(#262532, #262532) 100% 0 / calc(100% - var(--p, 0%)) 100% no-repeat, var(--grad); -webkit-background-clip: text; background-clip: text; }
.stat-label { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Spotlight cards */
.spotlight {
  position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px;
  overflow: hidden; isolation: isolate;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.14), transparent 60%);
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

/* Experience timeline */
.experience { overflow-x: clip; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 28px; }
.timeline-rail { position: absolute; left: 200px; top: 0; bottom: 0; width: 1px; background: var(--card-border); }
.timeline-fill { position: absolute; inset: 0; background: linear-gradient(var(--a1), var(--a2), var(--a3)); transform-origin: top; transform: scaleY(0); }
.job { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.job::before {
  content: ""; position: absolute; left: 200px; top: 34px; width: 11px; height: 11px; border-radius: 50%;
  transform: translateX(-50%) scale(0.6); background: var(--bg); border: 1px solid var(--dim); transition: all 0.5s;
}
.job.is-in::before { background: var(--a2); border-color: var(--a2); box-shadow: 0 0 16px var(--a2); transform: translateX(-50%) scale(1); }
.job-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 26px; font-size: 13px; color: var(--muted); text-align: right; padding-right: 24px; }
.job-meta span:first-child { color: var(--text); }
.job-card { padding: 28px 32px; opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.job.is-in .job-card { opacity: 1; transform: none; }
.card-logo { position: absolute; top: 30px; right: 32px; height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .35; transition: opacity .3s; pointer-events: none; }
.job-card:hover .card-logo { opacity: .7; }
.card-logo-brydge { height: 28px; top: 27px; }
.card-logo-nvidia { height: 18px; top: 33px; }
.card-logo-google { height: 24px; top: 29px; }
.card-logo-mercor { height: 16px; top: 34px; }
.card-logo-bair { height: 34px; top: 24px; }
.card-logo-ycombinator { height: 20px; top: 31px; }
.card-logo-ascend { height: 30px; top: 26px; }
.impact-card .card-logo { top: 32px; right: 36px; }
.impact-card .card-link { top: 50px; right: 36px; }
.card-logo-steam { height: 34px; }
.impact-card .card-logo-ita { height: 52px; top: 26px; }
.impact-card:hover .card-logo { opacity: .7; }
.job-card header { padding-right: 140px; }
/* experience card logos link out and recolor on hover, same as the marquee and education logos */
.card-link { position: absolute; top: 41px; right: 32px; z-index: 2; transform: translateY(-50%); display: block; }
.card-link .card-logo { position: static; display: block; pointer-events: auto; transition: opacity .3s, filter .3s; }
.card-link:not(.tint):hover .card-logo, .card-link:not(.tint):focus-visible .card-logo { filter: none; opacity: 1; }
/* hovering anywhere on a card brings its logo to full color; hovering the logo itself also lifts it */
.job-card:hover .card-link:not(.tint) .card-logo, .impact-card:hover .card-link:not(.tint) .card-logo { filter: none; opacity: 1; }
.job-card:hover .tint::after, .impact-card:hover .tint::after, .edu-card:hover .tint::after { opacity: 1; }
.job-card:hover .tint img, .impact-card:hover .tint img, .edu-card:hover .tint img { opacity: 0 !important; }
.card-link, .edu-logos a, .wm-link { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.card-link:hover { transform: translateY(-50%) scale(1.15); }
.edu-logos a:hover, .wm-link:hover { transform: scale(1.12); }
@media (max-width: 760px) { .card-link { top: 30px; right: 20px; } .card-logo { top: 22px; right: 20px; height: 16px; } .card-logo-brydge { height: 20px; } .job-card header { padding-right: 100px; } }
.job-card h3 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.job-card h3 em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.7em; }
.role { color: var(--a2); font-size: 15px; margin-top: 2px; }
.job-tagline { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 8px; }
.job-tagline::before { content: ""; width: 14px; height: 1px; background: var(--dim); }
.job-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.job-card li { position: relative; padding-left: 20px; color: #b9b8c8; font-size: 15.5px; }
.job-card li::before { content: "→"; position: absolute; left: 0; color: var(--dim); }
.job-card strong { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span, .chips span { font-family: var(--mono); font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--card-border); color: var(--muted); background: rgba(255,255,255,0.02); }
@media (max-width: 760px) {
  .timeline-rail, .job::before { left: 0; }
  .job { grid-template-columns: 1fr; gap: 8px; padding-left: 24px; }
  .job::before { top: 6px; }
  .job-meta { flex-direction: row; justify-content: space-between; text-align: left; padding: 0; }
  .job-card { padding: 22px 20px; }
}

/* Impact */
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.impact-card { padding: 36px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.impact-card h3 { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; font-weight: 600; }
.impact-card p { color: var(--muted); }
.kicker { font-size: 12px; color: var(--a2) !important; }
.big-sub { display: block; margin-top: 6px; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); -webkit-text-stroke: 0; text-transform: uppercase; }
.big-num { margin-top: auto; width: fit-content; font-size: clamp(40px, 5vw, 56px); font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.25);
  background: linear-gradient(var(--text), var(--text)) 0 0 / var(--p, 0%) 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
@media (max-width: 860px) { .impact-grid { grid-template-columns: 1fr; } .impact-card { min-height: 0; padding: 28px 22px; } }

.award-list li { border-top: 1px solid var(--card-border); }
.award-list li:last-child { border-bottom: 1px solid var(--card-border); }
.award-list a { position: relative; display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; padding: 22px 8px; transition: padding 0.35s cubic-bezier(.2,.8,.2,1), color 0.3s; overflow: hidden; }
.award-list a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(124,92,255,0.12), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s cubic-bezier(.2,.8,.2,1); z-index: -1; }
.award-list a:hover { padding-left: 20px; }
.award-list a:hover::before { transform: scaleX(1); }
.award-list .mono { color: var(--a2); font-size: 13px; }
.award-list .arrow { color: var(--dim); transition: transform 0.3s, color 0.3s; }
.award-list a:hover .arrow { color: var(--text); transform: translate(3px, -3px); }
@media (max-width: 640px) { .award-list a { grid-template-columns: 1fr auto; gap: 4px 16px; } .award-list .mono { grid-column: 1 / -1; } }

/* Education */
.edu-card { padding: 40px; }
.edu-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.edu-card h3 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; font-weight: 600; }
.edu-degrees { color: var(--muted); margin-top: 8px; }
.edu-degrees span { color: var(--a3); margin: 0 6px; }
.edu-logos { display: flex; align-items: center; gap: 22px; }
.edu-logos img { display: block; height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .45; transition: opacity .3s; }
.edu-logos .edu-logo-met { height: 34px; }
@media (max-width: 640px) { .edu-logos img { height: 30px; } .edu-logos .edu-logo-met { height: 26px; } }
.edu-year { color: var(--text); font-size: 14px; padding: 8px 14px; border: 1px solid var(--card-border); border-radius: 999px; height: fit-content; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
@media (max-width: 640px) { .edu-card { padding: 26px 20px; } }

/* Contact */
.contact { text-align: center; padding-bottom: 120px; }
.contact-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; font-size: clamp(52px, 11vw, 160px); margin: 12px 0 40px; }
/* mascot sign-off above the contact title */
.mascot-disc {
  position: relative; width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; border: 3px solid transparent;
  background: linear-gradient(rgba(30, 20, 70, 0.9), rgba(10, 8, 24, 0.9)) padding-box, linear-gradient(120deg, var(--a1), var(--a2), var(--a3)) border-box;
  box-shadow: 0 0 70px rgba(124, 92, 255, 0.35);
}
.mascot-disc img { position: absolute; left: 50%; top: 50%; height: 104%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); }
/* scroll-in: the ring spins up from small, then the monkey pops up out of it with a little overshoot */
.mascot-disc.reveal-up { transform: scale(.4) rotate(-120deg); transition: opacity .6s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.mascot-disc.reveal-up.is-in { transform: none; }
.mascot-disc img { opacity: 0; transform: translate(-50%, -10%) scale(.4) rotate(12deg); transition: opacity .4s ease .45s, transform .9s cubic-bezier(.34,1.56,.64,1) .45s; }
.mascot-disc.is-in img { opacity: 1; transform: translate(-50%, -50%); }
.contact-mail {
  display: inline-block; font-family: var(--display); font-size: clamp(18px, 3vw, 30px); padding: 18px 32px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255,255,255,0.03); transition: background 0.3s, border-color 0.3s;
  max-width: 100%; overflow-wrap: anywhere;
}
.contact-mail:hover { background: rgba(124,92,255,0.12); border-color: rgba(124,92,255,0.5); }
.socials { display: flex; justify-content: center; gap: 28px; margin-top: 40px; color: var(--muted); }
.socials a:hover { color: var(--text); }

.footer {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--dim);
  border-top: 1px solid var(--card-border);
}
.footer a:hover { color: var(--text); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-up, .job-card, .split .ch { opacity: 1 !important; transform: none !important; }
  .reveal-words .w, .reveal-lines > * { opacity: 1 !important; transform: none !important; }
  .hero-photo { opacity: 1; }
  .mascot-disc img { opacity: 1 !important; transform: translate(-50%, -50%) !important; }
}
