:root {
  --ink: #0b1020;
  --ink-2: #121a31;
  --paper: #f7f8fb;
  --white: #ffffff;
  --text: #172036;
  --muted: #63708a;
  --line: #dfe4ed;
  --violet: #7157ff;
  --violet-2: #9a85ff;
  --blue: #5cc8ff;
  --gold: #f2c86c;
  --mint: #65e6c4;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(11, 16, 32, 0.12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(113,87,255,.24); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: #fff; color: #111; padding: 10px 14px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 24px;
  pointer-events: none;
}
.nav-shell {
  max-width: var(--max); margin: 0 auto; min-height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(9,14,28,.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  pointer-events: auto;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled .nav-shell { background: rgba(9,14,28,.9); border-color: rgba(255,255,255,.09); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), #7bdfff); color: #fff; font-size: 12px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.brand-name { font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,.76); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: transform .2s ease, opacity .2s ease; }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(113,87,255,.33), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(92,200,255,.18), transparent 28%),
    linear-gradient(145deg, #070b16 0%, #0e1630 52%, #11172c 100%);
  color: #fff;
}
#data-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-noise { position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.hero-inner {
  position: relative; z-index: 3; width: min(var(--max), calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: clamp(40px, 8vw, 110px);
  padding: 140px 0 100px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #aebcf4; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, var(--violet-2), var(--blue)); }
.hero h1 { margin: 20px 0 20px; font: 650 clamp(64px, 9vw, 132px)/.82 "Source Serif 4", Georgia, serif; letter-spacing: -.055em; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, #fff 10%, #bcaeff 47%, #70d8ff 92%); background-clip: text; -webkit-background-clip: text; }
.hero-lede { max-width: 730px; margin: 0; color: rgba(255,255,255,.74); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #0b1020; background: linear-gradient(135deg, #fff, #c7edff); box-shadow: 0 10px 26px rgba(92,200,255,.18); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.btn-dark { background: var(--ink); color: #fff; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-links a { color: rgba(255,255,255,.66); text-decoration: none; font-size: 13px; font-weight: 600; }
.hero-links a:hover { color: #fff; }

.hero-portrait-wrap { position: relative; justify-self: end; width: min(390px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-portrait { width: 76%; aspect-ratio: 1; object-fit: cover; border-radius: 42% 58% 52% 48% / 43% 42% 58% 57%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 38px 90px rgba(0,0,0,.36); position: relative; z-index: 2; animation: portraitMorph 12s ease-in-out infinite alternate; }
.portrait-orbit { position: absolute; inset: 5%; border-radius: 50%; border: 1px solid rgba(147,132,255,.34); animation: orbit 18s linear infinite; }
.portrait-orbit::before, .portrait-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--blue); box-shadow: 0 0 22px rgba(92,200,255,.8); }
.portrait-orbit::before { width: 9px; height: 9px; top: 9%; left: 18%; }
.portrait-orbit::after { width: 6px; height: 6px; bottom: 12%; right: 13%; background: var(--violet-2); }
.hero-status { position: absolute; z-index: 3; bottom: 5%; left: 2%; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 14px; background: rgba(9,14,28,.72); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(12px); color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(101,230,196,.12); }
.math-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mf { position: absolute; color: rgba(255,255,255,.13); font: 500 clamp(14px, 1.8vw, 24px) "Source Serif 4", Georgia, serif; animation: float 10s ease-in-out infinite alternate; }
.mf-1 { left: 8%; top: 24%; }
.mf-2 { left: 56%; top: 18%; animation-delay: -3s; }
.mf-3 { left: 87%; top: 57%; animation-delay: -5s; }
.mf-4 { left: 43%; top: 74%; animation-delay: -1s; }
.mf-5 { left: 72%; top: 80%; animation-delay: -7s; }
.mf-6 { left: 18%; top: 67%; animation-delay: -4s; }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 26px; width: 28px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 8px; background: #fff; transform: translateX(-50%); animation: scrollDot 1.7s ease-in-out infinite; }

.section { position: relative; padding: clamp(86px, 10vw, 150px) 24px; }
.section-shell { width: min(var(--max), 100%); margin: 0 auto; }
.section-light { background: var(--paper); }
.section-ink { background: var(--ink); color: #fff; }
.section-mist { background: #eef1f6; }
.section-dossier { background: linear-gradient(135deg, #17142e 0%, #0a1024 50%, #0c1730 100%); color: #fff; overflow: hidden; }
.section-dossier::after { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(113,87,255,.28), transparent 70%); pointer-events: none; }
.section-kicker { display: block; margin-bottom: 16px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-ink .section-kicker, .section-dossier .section-kicker { color: #aa9cff; }
.section-heading { max-width: 620px; }
.section-heading h2, .dossier-copy h2 { margin: 0; font: 650 clamp(40px, 5.4vw, 74px)/1.02 "Source Serif 4", Georgia, serif; letter-spacing: -.035em; }
.section-heading-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: clamp(28px, 7vw, 90px); align-items: end; max-width: none; margin-bottom: 58px; }
.section-heading-wide > p { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.section-ink .section-heading-wide > p { color: rgba(255,255,255,.6); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.about-copy { max-width: 720px; }
.about-copy p { color: #546179; }
.about-copy .lead { margin-top: 0; color: var(--text); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; font-family: "Source Serif 4", Georgia, serif; }
.about-links { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; }
.text-link, .card-link { display: inline-flex; gap: 7px; align-items: center; color: var(--violet); font-weight: 700; text-decoration: none; }
.text-link span, .card-link span { transition: transform .2s ease; }
.text-link:hover span, .card-link:hover span { transform: translate(2px,-2px); }

.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.research-card { position: relative; min-height: 310px; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.research-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(113,87,255,.22), transparent 70%); }
.research-card:hover { transform: translateY(-4px); border-color: rgba(160,145,255,.38); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); }
.research-card-feature { grid-column: span 2; min-height: 340px; background: linear-gradient(135deg, rgba(113,87,255,.18), rgba(92,200,255,.07)); }
.research-index { color: rgba(255,255,255,.24); font: 600 13px/1 "Inter"; letter-spacing: .08em; }
.tag { display: inline-block; margin-bottom: 14px; color: #c1b7ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tag-gold { color: #8b650e; background: rgba(242,200,108,.2); padding: 7px 10px; border-radius: 999px; }
.research-card h3 { max-width: 780px; margin: 0 0 12px; font: 600 clamp(24px, 3vw, 38px)/1.14 "Source Serif 4", Georgia, serif; }
.research-card p { max-width: 760px; margin: 0; color: rgba(255,255,255,.58); }
.research-card .card-link { position: relative; z-index: 2; margin-top: 20px; color: #9cdbff; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 38px rgba(11,16,32,.055); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-image { height: 230px; background: #e9edf5; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .45s ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-image-gradient { display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, rgba(101,230,196,.7), transparent 25%), linear-gradient(135deg, #0c3a35, #112442 50%, #315b47); }
.project-symbol { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; color: #fff; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); font-weight: 800; font-size: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.project-body { padding: 25px 26px 28px; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-meta span + span::before { content: "·"; margin-right: 8px; }
.project-body h3 { margin: 0 0 12px; font: 600 27px/1.2 "Source Serif 4", Georgia, serif; }
.project-body p { margin: 0; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project-links a { text-decoration: none; color: #4f3ccb; background: #f1efff; border: 1px solid #e3dfff; padding: 8px 11px; border-radius: 10px; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.project-links a:hover { transform: translateY(-1px); background: #e9e5ff; }

.teaching-feature { display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; }
.teaching-feature-copy { padding: clamp(30px, 5vw, 64px); }
.teaching-feature-copy h3 { margin: 18px 0 14px; font: 650 clamp(34px, 4.4vw, 58px)/1.05 "Source Serif 4", Georgia, serif; }
.teaching-feature-copy p { color: var(--muted); margin-bottom: 26px; }
.teaching-feature-preview { background: #151c31; min-height: 360px; }
.teaching-feature-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.teaching-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.teaching-panel { padding: 28px; background: rgba(255,255,255,.8); border: 1px solid #dfe4ec; border-radius: var(--radius-lg); }
.teaching-panel-wide { grid-column: span 2; }
.panel-label { color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.teaching-panel h3 { margin: 10px 0 18px; font: 600 29px/1.2 "Source Serif 4", Georgia, serif; }
.teaching-panel p { color: var(--muted); }
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e4e8ef; }
.timeline-list li:last-child { border-bottom: 0; }
.timeline-list strong { font-size: 13px; }
.timeline-list span { color: var(--muted); font-size: 12px; text-align: right; }
.certificate-row { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.certificate-row a { color: #4f3ccb; text-decoration: none; font-size: 13px; font-weight: 700; }
.teaching-panel-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
blockquote { margin: 0; padding: 24px 28px; background: #f3f0ff; color: #392b73; border-radius: 18px; font: 550 20px/1.55 "Source Serif 4", Georgia, serif; }
blockquote cite { display: block; margin-top: 14px; color: #7769aa; font: 600 11px/1.4 "Inter"; text-transform: uppercase; letter-spacing: .08em; }

.dossier-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 7vw, 90px); align-items: center; }
.dossier-copy p { color: rgba(255,255,255,.62); }
.dossier-copy h2 { margin-bottom: 24px; }
.dossier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px 0 18px; }
.light-link { color: #b9b0ff; }
.dossier-note { font-size: 12px; }
.pdf-frame-wrap { border: 1px solid rgba(255,255,255,.15); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.pdf-frame-bar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.pdf-frame-bar span { display: flex; align-items: center; gap: 8px; }
.pdf-frame-bar a { color: #fff; text-decoration: none; font-size: 18px; }
.pdf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pdf-frame { display: block; width: 100%; height: min(76vh, 860px); min-height: 560px; border: 0; background: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.service-year { color: var(--violet); font-weight: 800; font-size: 12px; }
.service-card h3 { margin: 10px 0 12px; font: 600 25px/1.2 "Source Serif 4", Georgia, serif; }
.service-card p { color: var(--muted); margin: 0; }
.service-card .card-link { margin-top: 14px; font-size: 12px; }
.awards { margin-top: 62px; padding-top: 30px; border-top: 1px solid var(--line); }
.awards h3 { font: 600 31px/1.2 "Source Serif 4", Georgia, serif; }
.award-list > div { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.award-list span { color: var(--violet); font-size: 12px; font-weight: 800; }
.award-list p { margin: 0; color: #4c5970; }

.site-footer { background: #070b16; color: #fff; padding: 54px 24px; }
.footer-shell { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 26px 50px; align-items: start; }
.footer-shell strong { font: 600 24px/1.2 "Source Serif 4", Georgia, serif; }
.footer-shell p { color: rgba(255,255,255,.52); margin: 5px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .09s; }

@keyframes portraitMorph { 0% { border-radius: 42% 58% 52% 48% / 43% 42% 58% 57%; } 100% { border-radius: 55% 45% 42% 58% / 50% 58% 42% 50%; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { from { transform: translate3d(0,0,0) rotate(-2deg); } to { transform: translate3d(14px,-14px,0) rotate(2deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,16px); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-portrait-wrap { width: min(340px, 72vw); justify-self: start; }
  .section-heading-wide, .about-grid, .dossier-layout { grid-template-columns: 1fr; }
  .section-heading-wide { gap: 20px; }
  .research-card-feature { grid-column: auto; }
  .research-grid, .project-grid, .teaching-columns, .service-grid { grid-template-columns: 1fr; }
  .teaching-panel-wide { grid-column: auto; }
  .teaching-feature { grid-template-columns: 1fr; }
  .teaching-feature-preview { min-height: 300px; }
  .pdf-frame { height: 70vh; }
}

@media (max-width: 760px) {
  .site-header { padding: 10px 12px; }
  .brand-name { display: none; }
  .nav-toggle { display: block; cursor: pointer; }
  .nav-links {
    position: absolute; top: 66px; left: 12px; right: 12px; display: grid; gap: 4px;
    padding: 10px; border-radius: 16px; background: rgba(8,13,27,.96); border: 1px solid rgba(255,255,255,.1);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-inner { width: min(100% - 30px, var(--max)); padding: 130px 0 92px; gap: 34px; }
  .hero h1 { font-size: clamp(58px, 20vw, 92px); }
  .hero-portrait-wrap { width: min(290px, 78vw); }
  .hero-status { left: 0; bottom: 0; }
  .section { padding: 82px 16px; }
  .section-heading h2, .dossier-copy h2 { font-size: clamp(38px, 12vw, 58px); }
  .research-card, .project-body, .teaching-panel, .service-card { padding: 22px; }
  .project-image { height: 190px; }
  .teaching-feature-copy { padding: 26px 22px 30px; }
  .teaching-panel-split { grid-template-columns: 1fr; }
  .timeline-list li { flex-direction: column; gap: 4px; }
  .timeline-list span { text-align: left; }
  .pdf-frame { min-height: 520px; height: 68vh; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .math-floaters .mf:nth-child(n+4) { display: none; }
}

@media (max-width: 480px) {
  .scroll-cue { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-links { gap: 10px 16px; }
  .pdf-frame-wrap { border-radius: 16px; }
  .pdf-frame { min-height: 480px; }
  .award-list > div { grid-template-columns: 64px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #data-field { display: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ===== October 2026 refinement: single-column portfolio, teaching evidence, advanced hero ===== */
.page-top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.brand-mark {
  overflow: hidden;
  padding: 0;
  background: #10172a;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(113,87,255,.38), transparent 29%),
    radial-gradient(circle at 15% 80%, rgba(92,200,255,.20), transparent 29%),
    radial-gradient(circle at 54% 52%, rgba(34,76,158,.13), transparent 34%),
    linear-gradient(145deg, #070b16 0%, #0e1630 52%, #11172c 100%);
}
#data-field { opacity: .92; }
.mf { color: rgba(255,255,255,.18); font-size: clamp(13px, 1.5vw, 21px); }
.mf-1 { left: 55%; top: 15%; }
.mf-2 { left: 72%; top: 73%; }
.mf-3 { left: 45%; top: 66%; }
.mf-4 { left: 12%; top: 27%; }
.mf-5 { left: 18%; top: 72%; }
.mf-6 { left: 84%; top: 40%; }

/* Main content appears one major item per row. */
.research-grid,
.project-grid,
.teaching-stack,
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.research-card,
.research-card-feature {
  grid-column: auto;
  min-height: 0;
  padding: 24px 26px;
}
.research-card h3 { font-size: clamp(23px, 2.6vw, 34px); }
.research-card p { max-width: 900px; }

.project-grid-single { grid-template-columns: 1fr; }
.project-card-compact {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 0;
}
.project-card-compact .project-image {
  height: 100%;
  min-height: 156px;
}
.project-card-compact .project-body { padding: 20px 24px; }
.project-card-compact .project-body h3 { font-size: 23px; margin-bottom: 8px; }
.project-card-compact .project-body p { font-size: 14px; line-height: 1.55; }
.project-card-compact .project-links { margin-top: 14px; }
.project-card-compact:hover { transform: translateY(-2px); }

.teaching-stack { margin-top: 22px; }
.teaching-panel { padding: 30px; }
.teaching-panel h3 { margin-bottom: 16px; }
.timeline-list li { align-items: baseline; }
.timeline-list strong { font-size: 13.5px; }

.panel-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.panel-heading-row h3 { margin-bottom: 0; }
.scroll-hint {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #5d49d6;
  background: #f0edff;
  border: 1px solid #ddd6ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: scrollHintPulse 2.1s ease-in-out infinite;
}
.feedback-scroll {
  position: relative;
  max-height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 12px 18px 0;
  scrollbar-width: auto;
  scrollbar-color: #826cff #e7e3f4;
}
.feedback-scroll::-webkit-scrollbar { width: 12px; }
.feedback-scroll::-webkit-scrollbar-track { background: #e7e3f4; border-radius: 999px; }
.feedback-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(#9c8cff, #6952e3);
  border: 3px solid #e7e3f4;
  border-radius: 999px;
}
.feedback-scroll::after {
  content: "↓";
  position: sticky;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  left: calc(100% - 30px);
  bottom: 2px;
  margin: -34px 4px 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #6c55e8;
  box-shadow: 0 8px 18px rgba(72,55,165,.25);
  font-weight: 900;
  pointer-events: none;
}
.feedback-card {
  margin: 0 0 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f2ff, #fbfaff);
  border: 1px solid #e5defe;
  color: #382b6d;
  font: 550 17px/1.55 "Source Serif 4", Georgia, serif;
}
.feedback-card cite {
  display: block;
  margin-top: 10px;
  color: #7668a5;
  font: 700 10px/1.45 "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.feedback-note {
  background: #f7f8fb;
  color: #4f5d74;
  border-color: #e1e5ed;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.credentials-panel h3 { margin-bottom: 20px; }
.credential-list { display: grid; gap: 10px; }
.credential-list a {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.credential-list a:hover {
  transform: translateY(-1px);
  border-color: #cec5ff;
  box-shadow: 0 10px 26px rgba(75,57,153,.08);
}
.credential-list span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.credential-list strong { font-size: 13px; }
.credential-list em { color: #6d58dc; font-size: 11px; font-style: normal; font-weight: 800; }

.enrichment-links { margin-top: 18px; }

.service-grid-single { grid-template-columns: 1fr; }
.service-card { position: relative; }
.service-card-rich { overflow: visible; }
.service-links { margin-top: 14px; }
.hover-photo-link { position: relative; display: inline-block; }
.hover-photo-preview {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 14px);
  width: min(360px, 70vw);
  padding: 8px;
  border-radius: 16px;
  background: #0d1325;
  color: #fff;
  box-shadow: 0 20px 60px rgba(5,10,24,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease .55s, transform .18s ease .55s, visibility 0s linear .73s;
  pointer-events: none;
}
.hover-photo-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 11px;
  background: #171f35;
}
.hover-photo-preview span {
  display: block;
  padding: 8px 5px 3px;
  font-size: 11px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}
.hover-photo-link:hover .hover-photo-preview,
.hover-photo-link:focus-within .hover-photo-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: .6s, .6s, .6s;
}

.footer-shell > div:first-child p { display: none; }

@keyframes scrollHintPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 760px) {
  .brand-name { display: inline; font-size: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .math-floaters .mf:nth-child(n+5) { display: none; }
  .mf-1 { left: 48%; top: 16%; }
  .mf-2 { left: 58%; top: 78%; }
  .mf-3 { left: 44%; top: 63%; }
  .mf-4 { left: 8%; top: 28%; }
  .project-card-compact {
    grid-template-columns: 1fr;
  }
  .project-card-compact .project-image {
    min-height: 180px;
    max-height: 230px;
  }
  .panel-heading-row {
    flex-direction: column;
    gap: 8px;
  }
  .scroll-hint { align-self: flex-start; }
  .feedback-scroll { max-height: 390px; padding-right: 8px; }
  .feedback-card { font-size: 16px; padding: 16px; }
  .credential-list a {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
  }
  .credential-list a span { grid-column: 1 / -1; }
  .timeline-list li { align-items: flex-start; }
  .hover-photo-preview { display: none; }
}

@media (max-width: 480px) {
  .brand-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-lede { font-size: 16px; }
  .feedback-scroll { max-height: 420px; }
}

.gums-preview-card {
  display: grid;
  gap: 7px;
  min-height: 170px;
  align-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(92,200,255,.2), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(113,87,255,.32), transparent 36%),
    linear-gradient(145deg, #0c1328, #161d39);
}
.gums-preview-card .gums-preview-mark {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  padding: 0;
  background: linear-gradient(135deg, #725bff, #66d5ff);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 16px 32px rgba(0,0,0,.22);
}
.gums-preview-card > span:not(.gums-preview-mark) {
  padding: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.gums-preview-card small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 700;
}

/* ===== October 2026 refinement II: compact single-row research/projects + bounded feedback ===== */
/* Brand bird should visually fill the entire square mark. */
.brand-mark {
  background: #10172a;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1.08);
}

/* Hero copy is intentionally reduced to the name only. */
.hero-copy { align-self: center; }
.hero-copy h1 { margin-bottom: 0; }

/* About has no oversized title; the copy becomes the focus. */
.about-grid-simple {
  grid-template-columns: 1fr;
  gap: 22px;
}
.about-grid-simple .section-heading { max-width: none; }
.about-grid-simple .section-kicker { margin-bottom: 0; }
.about-grid-simple .about-copy { max-width: 900px; }

/* Research and teaching introductions use readable prose rather than display headlines. */
.section-heading-intro {
  display: block;
  max-width: 980px;
  margin-bottom: 34px;
}
.section-heading-intro > div { max-width: 980px; }
.section-intro-copy {
  margin: 0;
  max-width: 960px;
  color: var(--muted);
  font: 500 clamp(20px, 2.25vw, 30px)/1.5 "Source Serif 4", Georgia, serif;
  letter-spacing: -.012em;
}
.section-ink .section-intro-copy { color: rgba(255,255,255,.74); }

/* Research: R1–R4 are always one compact row each. */
.research-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.research-card,
.research-card-feature,
.research-card-row {
  grid-column: auto !important;
  min-height: 0 !important;
  padding: 20px 24px !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0,1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  justify-content: initial !important;
}
.research-index {
  padding-top: 7px;
  font-size: 12px;
}
.research-card h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.25vw, 30px) !important;
}
.research-card .tag { margin-bottom: 9px; }
.research-card p { font-size: 14px; line-height: 1.55; }
.research-card .card-link { margin-top: 12px; font-size: 12px; }

/* Projects: one smaller horizontal row per project. */
.project-grid,
.project-grid-single {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.project-card-row,
.project-card-compact {
  display: grid !important;
  grid-template-columns: 148px minmax(0,1fr) !important;
  min-height: 0 !important;
}
.project-card-row .project-image,
.project-card-compact .project-image {
  height: 100% !important;
  min-height: 122px !important;
  max-height: 150px !important;
}
.project-card-row .project-body,
.project-card-compact .project-body { padding: 15px 18px !important; }
.project-card-row .project-body h3,
.project-card-compact .project-body h3 {
  margin: 3px 0 5px !important;
  font-size: 19px !important;
}
.project-card-row .project-body p,
.project-card-compact .project-body p {
  margin: 0;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.project-card-row .project-meta,
.project-card-compact .project-meta { font-size: 10px; }
.project-card-row .project-links,
.project-card-compact .project-links { margin-top: 9px !important; }
.project-card-row .project-links a,
.project-card-compact .project-links a { font-size: 11px; }

/* Feedback windows show roughly one-to-two cards, then clearly scroll. */
.feedback-scroll,
.feedback-scroll-window {
  height: 292px !important;
  max-height: 292px !important;
  overflow-y: scroll !important;
  padding-right: 14px !important;
  scrollbar-gutter: stable;
}
.feedback-scroll-window .feedback-card {
  margin-bottom: 10px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.48;
}
.feedback-scroll-window .feedback-card:last-child { margin-bottom: 28px; }

/* Certificates and badges: organized responsive cards rather than a text run-on. */
.credentials-panel { overflow: hidden; }
.credential-list {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px !important;
}
.credential-list a {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start !important;
  gap: 8px !important;
  min-width: 0;
  min-height: 145px;
  padding: 16px !important;
}
.credential-list a span {
  display: inline-flex;
  grid-column: auto !important;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: #5f4ad7;
}
.credential-list a strong {
  font-size: 13px !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.credential-list a em { margin-top: auto; }

@media (max-width: 1000px) {
  .credential-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .research-card,
  .research-card-feature,
  .research-card-row {
    grid-template-columns: 34px minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 18px !important;
  }
  .project-card-row,
  .project-card-compact { grid-template-columns: 1fr !important; }
  .project-card-row .project-image,
  .project-card-compact .project-image {
    min-height: 150px !important;
    max-height: 185px !important;
  }
  .feedback-scroll,
  .feedback-scroll-window {
    height: 270px !important;
    max-height: 270px !important;
  }
  .credential-list { grid-template-columns: 1fr; }
  .credential-list a { min-height: 112px; }
}
