/* Base + Tokens */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
:root {
  --bg: #8d909a; /* slate-grey with a lavender cast */
  --ink: #eef0f4; /* bright ink for big type */
  --ink-2: #d9dde6; /* paragraph */
  --muted-ink: #c5cad6; /* micro copy */
  --border: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.15);
}

body {
  margin: 0;
  color: var(--ink-2);
  background: radial-gradient(1200px 800px at 70% 15%, rgba(255,255,255,0.05), transparent 60%), var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(130%) blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity 240ms ease, transform 260ms ease;
}
.site-header.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--border);
}
.brand { color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.menu { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 500; opacity: 0.9; }
.menu a:hover { opacity: 1; }
.menu a[aria-current="true"] { color: var(--ink); opacity: 1; text-underline-offset: 4px; text-decoration: underline; }
.cta { justify-self: end; color: var(--bg); background: var(--ink); padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.nav-menu-slot { display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 240ms ease; }
.nav-menu-slot.is-docked { opacity: 1; }

.menu--floating { flex-direction: column; align-items: flex-start; gap: 14px; font-size: clamp(1rem, 1.4vw + 0.7rem, 1.25rem); letter-spacing: 0.16em; text-transform: uppercase; }
.menu--floating a { color: var(--ink); opacity: 0.92; font-weight: 600; }
.menu--floating a:hover { opacity: 1; }
.menu--docked { gap: clamp(18px, 2vw, 32px); }

/* Hero */
.hero { min-height: 100svh; display: grid; place-items: stretch; isolation: isolate; }
.hero-inner { position: relative; width: 100%; height: 100%; max-width: 1280px; margin: 0 auto; padding: 8svh 28px 6svh; }

.hero-word { position: absolute; left: 2vw; right: 2vw; margin: 0; text-transform: uppercase; font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 0.9; color: var(--ink); opacity: 0.9; pointer-events: auto; display: flex; justify-content: center; gap: 0; }
.hero-word--back { top: 2svh; font-size: clamp(4rem, 15vw, 16rem); z-index: 1; opacity: 0.8; mix-blend-mode: soft-light; animation: heroGlideBack 8s linear infinite alternate; }
.hero-word--front { bottom: 10svh; font-size: clamp(4rem, 15vw, 16rem); z-index: 3; opacity: 0.85; animation: heroGlideFront 8s linear infinite alternate; }

@keyframes heroGlideBack {
  0% { transform: translate3d(-48px, 0, 0); }
  100% { transform: translate3d(48px, 0, 0); }
}

@keyframes heroGlideFront {
  0% { transform: translate3d(48px, 0, 0); }
  100% { transform: translate3d(-48px, 0, 0); }
}

.hero-letter { position: relative; display: inline-block; padding: 0 .04em; margin: 0 -.04em; pointer-events: auto; line-height: 1; cursor: default; transition: transform 0.18s ease, text-shadow 0.18s ease; }
.hero-letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  color: inherit;
  opacity: 0;
  font-weight: 900;
  text-shadow:
    0 0 6px rgba(190,220,255,0.95),
    0 0 18px rgba(210,230,255,0.75),
    0 0 36px rgba(170,210,255,0.65);
  filter: brightness(1.3);
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.hero-letter:hover,
.hero-letter:focus-visible {
  transform: scale(1.04);
  text-shadow:
    0 0 6px rgba(190,220,255,0.75),
    0 0 18px rgba(210,230,255,0.65);
}

.hero-letter:hover::after,
.hero-letter:focus-visible::after {
  opacity: 1;
}

.hero-portrait { position: absolute; inset: 12svh 0 10svh 0; display: grid; place-items: end center; z-index: 2; transform: translateX(-18%); pointer-events: none; }
.hero-portrait img { display: block; max-height: min(74svh, 860px); width: auto; height: auto; filter: contrast(1.05) saturate(0.2); image-rendering: -webkit-optimize-contrast; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(120% 110% at 50% 45%, #000 64%, rgba(0,0,0,0) 85%), linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); -webkit-mask-composite: source-in; mask-image: radial-gradient(120% 110% at 50% 45%, #000 64%, rgba(0,0,0,0) 85%), linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); mask-composite: intersect; pointer-events: none; }

.hero-copy { position: absolute; right: 4vw; top: 34svh; max-width: 36ch; z-index: 4; display: flex; flex-direction: column; gap: 16px; }
.hero-copy.is-docked { display: none; }
.hero-copy .menu { text-wrap: balance; }
.hero-copy .menu li { margin: 0; }

.hero-asides { position: absolute; inset: auto 0 6svh 0; display: flex; justify-content: space-between; padding: 0 2.5vw; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted-ink); z-index: 4; }
.aside { text-align: left; line-height: 1.2; opacity: 0.9; }
.aside:last-child { text-align: right; }

/* Sections */
.section { padding: clamp(72px, 16vw, 140px) 28px; display: block; }
.section { scroll-margin-top: clamp(60px, 12vh, 120px); }
.section-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; justify-items: start; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.75rem; color: var(--muted-ink); margin: 0 0 12px; }
.section-heading { margin: 0 0 18px; font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-size: clamp(2rem, 3.2vw + 1rem, 3.6rem); color: var(--ink); line-height: 1.05; }

.about { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: linear-gradient(160deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.14)); padding: clamp(40px, 6vw, 60px) 28px; min-height: auto; }
.about .section-inner { gap: clamp(48px, 6vw, 80px); align-items: center; }
.about-portrait { position: relative; display: grid; place-items: center; isolation: isolate; min-height: clamp(320px, 38vw, 450px); }
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(360px, 100%);
  filter: saturate(0.85) contrast(1.05);
  mix-blend-mode: normal;
  -webkit-mask-image:
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 10%, rgba(0,0,0,1) 28%, rgba(0,0,0,1) 100%),
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.26) 8%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.26) 92%, rgba(0,0,0,0) 100%);
  mask-image:
    linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 10%, rgba(0,0,0,1) 28%, rgba(0,0,0,1) 100%),
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.26) 8%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.26) 92%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.about-portrait::after { content: ""; position: absolute; inset: -25%; background: radial-gradient(120% 140% at 50% 38%, rgba(214,227,255,0.2), transparent 65%); filter: blur(40px); z-index: -1; }
.neural-glow { position: absolute; inset: -45% -40%; background: conic-gradient(from 120deg, rgba(164,215,255,0.02), rgba(164,215,255,0.2), rgba(164,215,255,0.02)); pointer-events: none; mix-blend-mode: screen; animation: spinSlow 22s linear infinite; z-index: -2; }
.orbit { position: absolute; border: 1px dashed rgba(200,225,255,0.35); border-radius: 50%; mix-blend-mode: screen; animation: orbitPulse 9s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(180,210,255,0.2)); }
.orbit--one { width: clamp(300px, 38vw, 400px); height: clamp(380px, 44vw, 480px); animation-duration: 16s; animation-delay: -6s; }
.orbit--two { width: clamp(250px, 32vw, 330px); height: clamp(330px, 38vw, 420px); animation-duration: 11s; animation-delay: -3s; }
.orbit::after { content: ""; position: absolute; top: 8%; left: 50%; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: rgba(238, 240, 244, 0.9); box-shadow: 0 0 18px rgba(204, 225, 255, 0.8), 0 0 40px rgba(204, 225, 255, 0.5); }
.orbit::before { content: ""; position: absolute; bottom: 14%; right: 14%; width: 7px; height: 7px; border-radius: 50%; background: rgba(164, 215, 255, 0.75); box-shadow: 0 0 16px rgba(164, 215, 255, 0.85); }
.about-copy { max-width: 58ch; }
.about-description { margin: 0; font-size: clamp(1.1rem, 1.1vw + 0.9rem, 1.3rem); text-wrap: balance; line-height: 1.7; color: var(--ink-2); }

/* Streaming text animation */
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1s steps(2) infinite;
}

.streaming-cursor.hide {
  display: none;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.research { 
  border-block: 1px solid var(--border); 
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0)); 
  position: relative; 
  overflow: visible; 
}
.research .section-inner { 
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); 
  align-items: start; 
  gap: clamp(32px, 4vw, 56px);
}
.research-copy { 
  max-width: 52ch; 
  position: sticky; 
  top: clamp(80px, 12vh, 140px); 
  align-self: start; 
}
.research-copy p {
  margin: 18px 0 0;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.1rem);
  color: var(--ink-2);
  text-wrap: balance;
}
.research-list { 
  display: grid; 
  gap: 24px; 
  counter-reset: research; 
}
.research-item { 
  position: relative; 
  padding: 28px 32px 28px 48px; 
  border-radius: 18px; 
  border: 1px solid rgba(255,255,255,0.12); 
  background: rgba(8, 10, 18, 0.22); 
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); 
}
.research-item::before { 
  counter-increment: research; 
  content: "0" counter(research); 
  position: absolute; 
  left: 18px; 
  top: 28px; 
  font-size: 0.85rem; 
  letter-spacing: 0.18em; 
  text-transform: uppercase; 
  color: rgba(238, 240, 244, 0.55); 
}
.research-item::after { 
  content: ""; 
  position: absolute; 
  left: 24px; 
  top: 72px; 
  bottom: 24px; 
  width: 1px; 
  background: linear-gradient(180deg, rgba(170, 205, 255, 0.55), rgba(170, 205, 255, 0.05)); 
}
.research-item:last-child::after { 
  display: none; 
}
.research-item-header { 
  display: flex; 
  justify-content: space-between; 
  gap: 18px; 
  align-items: baseline; 
  margin-bottom: 10px; 
}
.research-title { 
  margin: 0; 
  font-family: "Space Grotesk", Inter, system-ui, sans-serif; 
  font-size: clamp(1.35rem, 1.4vw + 1.05rem, 1.9rem); 
  color: var(--ink); 
  letter-spacing: -0.01em; 
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Gradient text effect */
.research-title__text.is-colored {
  color: transparent;
  background-image: linear-gradient(90deg,
    hsl(0 85% 65%), hsl(30 85% 64%), hsl(55 85% 62%), hsl(100 80% 60%),
    hsl(160 80% 60%), hsl(210 85% 65%), hsl(260 80% 70%), hsl(300 85% 68%), hsl(340 85% 66%)
  );
  background-size: 200% 100%;
  animation: gradientFlow 10s ease infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Underline effect */
.research-title::after {
  content: "";
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(164,215,255,0), rgba(164,215,255,0.6), rgba(255,227,181,0.7), rgba(164,215,255,0));
  transition: transform 0.6s ease, opacity 0.35s ease;
  opacity: 0;
}
.research-title.is-complete::after { 
  opacity: 0.85; 
  transform: scaleX(1); 
}

.research-title__text { 
  display: inline-block; 
}

.research-description { 
  margin: 0; 
  color: var(--ink-2); 
  font-size: clamp(0.94rem, 0.78vw + 0.72rem, 1.02rem); 
  line-height: 1.55;
  text-wrap: balance;
}


.papers { position: relative; border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(5, 6, 12, 0.26), rgba(8, 10, 18, 0.12)); overflow: hidden; }
.papers::before { content: ""; position: absolute; inset: -12% 40% 36% -24%; background: radial-gradient(circle at top left, rgba(140, 120, 255, 0.16), transparent 70%); filter: blur(48px); opacity: 0.9; pointer-events: none; mix-blend-mode: screen; }
.papers::after { content: ""; position: absolute; inset: 18% -10% -20% 45%; background: radial-gradient(circle at bottom right, rgba(255, 190, 120, 0.12), transparent 70%); filter: blur(50px); opacity: 0.8; pointer-events: none; mix-blend-mode: screen; }
.papers-inner { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); position: relative; z-index: 1; }
.papers-copy { max-width: 48ch; }
.papers-list { display: grid; gap: clamp(20px, 1.6vw, 28px); position: relative; }
.paper-card {
  --hx: 50%;
  --hy: 50%;
  --glow: 0;
  position: relative;
  padding: clamp(24px, 2vw, 34px);
  border-radius: 22px;
  background: rgba(10, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 16px;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease, opacity 220ms ease;
}
.paper-card::before { content: ""; position: absolute; inset: -120% -120% 30% 30%; background: conic-gradient(from 45deg, var(--accent-a), var(--accent-b), transparent 66%, transparent 100%); opacity: 0.4; transform: rotate(2deg); transition: opacity 220ms ease; pointer-events: none; }
.paper-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  background:
    radial-gradient(240px circle at var(--hx) var(--hy), rgba(255, 255, 255, var(--glow)), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(10, 12, 22, 0.92), rgba(10, 12, 18, 0.72));
  z-index: -1;
  pointer-events: none;
}
.paper-card:hover,
.paper-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.16); }
.paper-card.is-visible:hover,
.paper-card.is-visible:focus-visible { transform: translateY(-6px); }
.paper-card:hover::before,
.paper-card:focus-visible::before { opacity: 0.75; }
.paper-card.is-visible { transform: translateY(0) scale(1); opacity: 1; }
.paper-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 1.2vw, 22px); align-items: start; }
.paper-card-year { font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(223, 226, 240, 0.7); margin-top: 3px; }
.paper-card-meta { display: grid; gap: 6px; }
.paper-card-venue { margin: 0; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(210, 214, 228, 0.72); }
.paper-card-title { margin: 0; font-size: clamp(1.18rem, 0.9vw + 1rem, 1.6rem); font-family: "Space Grotesk", Inter, system-ui, sans-serif; color: var(--ink); letter-spacing: -0.005em; }
.paper-card-summary { margin: 0; color: var(--ink-2); font-size: clamp(0.94rem, 0.78vw + 0.76rem, 1.05rem); line-height: 1.5; }
.paper-card-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.paper-card-tags li { padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(238, 240, 244, 0.08); color: rgba(238, 240, 244, 0.85); }
.paper-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.paper-card-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255, 255, 255, 0.84); color: rgba(15, 18, 28, 0.85); }
.paper-card-link { color: var(--ink); font-weight: 600; text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 4px; }
.paper-card-link::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75; box-shadow: 0 0 14px currentColor; }
.paper-card-link:hover,
.paper-card-link:focus-visible { text-decoration: underline; }

.paper-card[data-accent="perception"] { --accent-a: rgba(120, 190, 255, 0.8); --accent-b: rgba(70, 130, 255, 0.75); }
.paper-card[data-accent="rag"] { --accent-a: rgba(255, 178, 120, 0.78); --accent-b: rgba(255, 128, 92, 0.72); }
.paper-card[data-accent="agency"] { --accent-a: rgba(200, 160, 255, 0.78); --accent-b: rgba(140, 140, 255, 0.75); }

.paper-card:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.24); outline-offset: 3px; }

@media (max-width: 900px) {
  .papers-inner { grid-template-columns: minmax(0, 1fr); }
  .papers-copy { text-align: center; margin-bottom: 28px; }
  .paper-card { padding: 24px; }
  .paper-card-header { grid-template-columns: minmax(0, 1fr); }
  .paper-card-year { order: -1; text-align: left; }
}

@media (max-width: 600px) {
  .paper-card { padding: 22px; }
  .paper-card-tags { gap: 6px 10px; }
  .paper-card-tags li { font-size: 0.72rem; }
  .paper-card-actions { flex-direction: column; align-items: flex-start; }
}

.education { border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0)); position: relative; overflow: hidden; }
.education .section-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
.education-copy { max-width: 52ch; position: sticky; top: clamp(72px, 11vh, 128px); align-self: start; }
.education-list { display: grid; gap: 24px; counter-reset: edu; }
.education-item { position: relative; padding: 28px 32px 28px 48px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.12); background: rgba(8, 10, 18, 0.22); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.education-item::before { counter-increment: edu; content: "0" counter(edu); position: absolute; left: 18px; top: 28px; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(238, 240, 244, 0.55); }
.education-item::after { content: ""; position: absolute; left: 24px; top: 72px; bottom: 24px; width: 1px; background: linear-gradient(180deg, rgba(170, 205, 255, 0.55), rgba(170, 205, 255, 0.05)); }
.education-item:last-child::after { display: none; }
.education-item-header { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 10px; }
.education-degree { margin: 0; font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-size: clamp(1.35rem, 1.4vw + 1.05rem, 1.9rem); color: var(--ink); letter-spacing: -0.01em; }
.education-degree {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Static full-spectrum gradient text (no streaming) */
.education-degree__text.is-colored {
  color: transparent;
  background-image: linear-gradient(90deg,
    hsl(0 85% 65%), hsl(30 85% 64%), hsl(55 85% 62%), hsl(100 80% 60%),
    hsl(160 80% 60%), hsl(210 85% 65%), hsl(260 80% 70%), hsl(300 85% 68%), hsl(340 85% 66%)
  );
  background-size: 200% 100%;
  animation: gradientFlow 10s ease infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Underline reveals when typing completes */
.education-degree::after {
  content: "";
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(164,215,255,0), rgba(164,215,255,0.6), rgba(255,227,181,0.7), rgba(164,215,255,0));
  transition: transform 0.6s ease, opacity 0.35s ease;
  opacity: 0;
}
.education-degree.is-complete::after { opacity: 0.85; transform: scaleX(1); }

/* Minimal typing caret */
.education-degree__text { display: inline-block; }
.education-degree__caret {
  display: inline-block; width: 0.1em; height: 1.1em; margin-left: 0.08em;
  border-radius: 2px; background: rgba(238,240,244,0.85); vertical-align: -0.08em;
  opacity: 0; animation: caretBlink 1s steps(1, end) infinite; animation-play-state: paused;
}
.education-degree.is-typing .education-degree__caret { opacity: 1; animation-play-state: running; }

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .education-degree__caret { animation: none; }
}

.education-period { font-size: 0.85rem; color: rgba(197, 202, 214, 0.8); letter-spacing: 0.18em; text-transform: uppercase; }
.education-meta { margin: 0 0 14px; color: rgba(226, 230, 240, 0.9); font-size: 0.98rem; }
.education-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: clamp(0.94rem, 0.78vw + 0.72rem, 1.02rem); color: var(--ink-2); }
.education-highlights li { position: relative; padding-left: 18px; }
.education-highlights li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 999px; background: rgba(223, 229, 245, 0.85); box-shadow: 0 0 12px rgba(186, 206, 255, 0.6); }

@keyframes spinSlow {
  0% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50% { transform: rotate(180deg) scale(1.04); opacity: 0.95; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.85; }
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.06) rotate(6deg); opacity: 0.9; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Grain overlay (subtle) */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .06; mix-blend-mode: overlay; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 2px), repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 2px); }

/* Motion hooks */
:root { --mx: 0; --my: 0; --scroll: 0; }
.hero-portrait img { transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 12px), 0) scale(1.01); transition: transform 200ms ease-out; }

/* Responsive */
@media (max-width: 900px) {
  .cta { justify-self: end; }
  .hero-copy { position: static; margin: 0 24px; padding-top: 48svh; align-items: flex-start; }
  .menu--floating { flex-direction: column; gap: 12px; letter-spacing: 0.12em; }
  .hero-portrait { inset: 16svh 0 24svh 0; transform: translateX(-10%); }
  .hero-portrait img { max-height: min(66svh, 720px); -webkit-mask-image: radial-gradient(120% 110% at 50% 45%, #000 64%, rgba(0,0,0,0) 85%), linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(120% 110% at 50% 45%, #000 64%, rgba(0,0,0,0) 85%), linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); }
  .section-inner { grid-template-columns: minmax(0, 1fr); }
  .research .section-inner { grid-template-columns: minmax(0, 1fr); }
  .research-copy { position: static; margin-inline: auto; text-align: center; }
  .research-list { margin-top: 32px; }
  .about { padding: clamp(48px, 8vw, 72px) 24px; min-height: 60vh; }
  .about-portrait { max-width: min(280px, 75vw); margin-inline: auto; min-height: clamp(280px, 35vw, 360px); }
  .about-portrait img { max-width: 100%; }
  .orbit--one { width: clamp(280px, 38vw, 360px); height: clamp(360px, 46vw, 460px); }
  .orbit--two { width: clamp(220px, 32vw, 300px); height: clamp(300px, 40vw, 380px); }
  .about-copy { margin-inline: auto; text-align: center; }
  .education .section-inner { grid-template-columns: minmax(0, 1fr); }
  .education-copy { position: static; margin-inline: auto; text-align: center; }
  .education-list { margin-top: 32px; }
  .research-domains { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .nav { grid-template-columns: 1fr auto; }
  .cta { display: none; }
  .nav-menu-slot { justify-content: flex-end; }
  .menu--docked { flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
  .hero-asides { display: none; }
  .section { padding: 64px 24px; }
  .section-heading { font-size: clamp(1.9rem, 6vw + 1rem, 2.8rem); }
  .research-item { padding: 22px 20px 22px 34px; }
  .research-item::before { left: 10px; top: 20px; }
  .research-item::after { left: 16px; top: 62px; }
  .research-item-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .education-item { padding: 22px 20px 22px 34px; }
  .education-item::before { left: 10px; top: 20px; }
  .education-item::after { left: 16px; top: 62px; }
  .education-item-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait img, .hero-word--back, .hero-word--front { transition: none !important; transform: none !important; }
  .orbit, .neural-glow { animation: none !important; }
  .education-degree.is-illuminated { animation: none; filter: none; }
  .research-title__text.is-colored { animation: none; }
}
