
@font-face { font-family: 'Newsreader-fallback'; size-adjust: 95%; ascent-override: 90%; src: local('Georgia'); }
@font-face { font-family: 'Inter-fallback'; size-adjust: 102%; ascent-override: 95%; src: local('Arial'); }

:root {
  --bg: #030711;
  --bg-deep: #02040a;
  --panel: rgba(8, 18, 35, .72);
  --panel-strong: rgba(6, 13, 27, .91);
  --text: #eef6ff;
  --muted: #aab7ca;
  --faint: #8a9ab5;
  --line: rgba(130, 190, 255, .22);
  --cyan: #65dcff;
  --blue: #5596ff;
  --pink: #ff5fd2;
  --violet: #9b77ff;
  --green: #77ffd2;
  --shadow: 0 30px 90px rgba(0,0,0,.42);
  --radius: 24px;
  --max: 1180px;
}

html[data-theme="light"] {
  --bg: #f7fbff;
  --bg-deep: #e2ecfb;
  --panel: rgba(255,255,255,.72);
  --panel-strong: rgba(255,255,255,.92);
  --text: #061225;
  --muted: #3c4d65;
  --faint: #66758b;
  --line: rgba(20, 76, 140, .17);
  color-scheme: light;
}
/* Accent color override */
html[data-accent="pink"] { --cyan: #ff5fd2; --blue: #ff5fd2; }
html[data-accent="green"] { --cyan: #77ffd2; --blue: #77ffd2; }
html[data-accent="amber"] { --cyan: #ffd980; --blue: #ffd980; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
body {
  margin: 0;
  font-family: 'Inter', 'Inter-fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 8%, rgba(75, 139, 255, .2), transparent 34%),
    radial-gradient(circle at 15% 10%, rgba(255, 85, 210, .13), transparent 29%),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 55%, var(--bg));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
  pointer-events: none;
  z-index: -4;
}

#bioCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: .8;
}

.ambient-layer { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.orb { position: absolute; border-radius: 999px; filter: blur(34px); opacity: .26; animation: floatOrb 14s ease-in-out infinite alternate; will-change: transform; }
.orb-a { width: 340px; height: 340px; background: var(--blue); top: 7%; right: 15%; }
.orb-b { width: 300px; height: 300px; background: var(--pink); bottom: 9%; left: 5%; animation-delay: -5s; }
.orb-c { width: 220px; height: 220px; background: var(--green); top: 42%; left: 54%; animation-delay: -9s; }

@keyframes floatOrb { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.72; }
img, video { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
  z-index: 1000;
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Keyboard focus rings — shown only for keyboard/AT users, on theme */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--cyan));
  z-index: 1001;
  box-shadow: 0 0 18px rgba(80,180,255,.8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  width: min(100% - 32px, 1260px);
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  transform: translateZ(0);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -14px;
  border: 1px solid rgba(130,190,255,.12);
  background: linear-gradient(90deg, rgba(4,10,22,.64), rgba(4,10,22,.34));
  border-radius: 24px;
  z-index: -1;
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.brand-mark {
  font-family: 'Newsreader', 'Newsreader-fallback', Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.08em;
  padding: 0.05em 0.12em;
  margin: -0.05em -0.12em;
  background: linear-gradient(135deg, #ff70d8 0%, #6ae5ff 56%, #b9a5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(111,208,255,.18);
}
.brand strong { display:block; letter-spacing:.03em; font-size:.86rem; }
.brand small { display:block; color:var(--muted); font-size:.72rem; margin-top:.1rem; }

.site-nav { display:flex; justify-content:center; gap:.35rem; flex-wrap: wrap; }
.nav-link {
  position: relative;
  padding: .72rem .8rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: .92rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(95, 162, 255, .09);
}
.nav-link.active::after {
  content:"";
  position:absolute;
  left: 24%;
  right: 24%;
  bottom: .25rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--blue),var(--pink));
  box-shadow: 0 0 16px rgba(91,170,255,.9);
}
.header-actions { display:flex; align-items:center; gap:.5rem; }
.cv-mini, .menu-toggle {
  border: 1px solid rgba(150,200,255,.18);
  background: rgba(8,18,35,.66);
  color: var(--text);
  border-radius: 999px;
  padding: .7rem .95rem;
  font: inherit;
  cursor: pointer;
}
.cv-mini { font-size:.86rem; }

.menu-toggle { display:none; }

.section, .hero, .page-hero {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: .9fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) 0 2rem;
  position: relative;
}

.hero-copy { z-index: 2; }
.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
}
h1, h2, h3 {
  color: var(--text);
  line-height: 1.05;
  margin: 0;
}
.hero h1 {
  font-family: 'Newsreader', 'Newsreader-fallback', Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.06em;
}
.gradient-text {
  background: linear-gradient(96deg, #ff6edd 0%, #a782ff 45%, #69dfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.12em;
  margin: 0 -0.12em;
}
.hero-lede {
  max-width: 580px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}
.cta-row { display:flex; flex-wrap:wrap; gap: .9rem; margin-top: 2rem; }
.button {
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  gap:.75rem;
  border-radius: 14px;
  padding: .96rem 1.22rem;
  border:1px solid rgba(160,205,255,.18);
  background: rgba(13,28,54,.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(115,210,255,.55); box-shadow: 0 18px 40px rgba(38,128,255,.16); }
.button.primary {
  border:0;
  background: linear-gradient(135deg, #59c6ff, #7662ff 45%, #ff62c5);
  color: white;
  box-shadow: 0 18px 60px rgba(133,105,255,.28);
}
.button.ghost { background: rgba(0,0,0,.22); }

.hero-stage {
  position: relative;
  min-height: 620px;
  display:grid;
  place-items:center;
  perspective: 1000px;
}

.hero-cell-wrap {
  position: relative;
  width: min(610px, 90vw);
  aspect-ratio: 1;
  display:grid;
  place-items:center;
  animation: heroDrift 7s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-cell-wrap::before,
.hero-cell-wrap::after {
  content:"";
  position:absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(105, 210, 255, .18);
  box-shadow: 0 0 60px rgba(69,145,255,.16), inset 0 0 80px rgba(115,75,255,.08);
  animation: orbitSpin 18s linear infinite;
}
.hero-cell-wrap::after {
  inset: -4%;
  border-style: dashed;
  animation-duration: 31s;
  animation-direction: reverse;
}
.hero-cell {
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: hue-rotate(12deg) saturate(1.35) contrast(1.13) drop-shadow(0 0 38px rgba(75,165,255,.65));
  mix-blend-mode: screen;
  transform: translateZ(40px);
  animation: cellPulse 4s ease-in-out infinite;
}
.cell-halo {
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,132,216,.55), transparent 22%),
    radial-gradient(circle at 65% 54%, rgba(85,180,255,.32), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(14,22,54,.0), rgba(24,88,255,.18) 45%, transparent 64%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: cellHalo 5s ease-in-out infinite alternate;
}
.float-cell {
  position:absolute;
  border-radius:50%;
  object-fit: cover;
  opacity:.72;
  filter: saturate(1.25) drop-shadow(0 0 20px rgba(80,160,255,.35));
  animation: floatCell 8s ease-in-out infinite alternate;
  will-change: transform;
}
.float-cell.red { width: 116px; right: 4%; top: 48%; border-radius: 50%; transform: rotate(-12deg); }
.float-cell.yellow { width: 95px; left: 9%; bottom: 23%; }
.float-cell.blue { width: 112px; right: 8%; top: 6%; animation-delay: -4s; }
@keyframes heroDrift { to { transform: translate3d(8px,-16px,0) rotateX(2deg) rotateY(-3deg); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes cellPulse { 0%,100% { transform: translateZ(42px) scale(1); } 50% { transform: translateZ(58px) scale(1.035); } }
@keyframes cellHalo { to { transform: scale(1.08) rotate(8deg); opacity:.75; } }
@keyframes floatCell { to { transform: translate3d(18px,-24px,0) rotate(7deg); } }

.hotspot {
  position: absolute;
  z-index: 5;
  display:flex;
  align-items:center;
  gap:.8rem;
  min-width: 185px;
  padding: .82rem .9rem;
  border: 1px solid rgba(160,210,255,.28);
  background: rgba(7,17,34,.78);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  color: var(--text);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
  cursor: pointer;
  animation: hotspotPulse 3.5s ease-in-out infinite;
}
.hotspot strong { display:block; font-size:.88rem; }
.hotspot small { display:block; color:var(--muted); font-size:.75rem; }
.hotspot i { margin-left:auto; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; border:1px solid rgba(255,255,255,.2); font-style:normal; }
.hotspot:hover, .hotspot.active { border-color: rgba(255,105,213,.62); transform: translateY(-2px); }
.hotspot.one { top: 14%; left: 8%; }
.hotspot.two { top: 37%; right: 0; }
.hotspot.three { bottom: 21%; left: 14%; }
@keyframes hotspotPulse { 50% { box-shadow: 0 0 32px rgba(111,190,255,.16); } }

.proof-ribbon {
  width:min(100% - 32px, var(--max));
  margin: -1rem auto 3rem;
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid rgba(160,210,255,.2);
  background: linear-gradient(120deg, rgba(7,17,34,.82), rgba(11,20,38,.6));
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  content-visibility: auto; contain-intrinsic-size: 400px;
}
.proof-item {
  padding: 1.2rem 1.1rem;
  min-height: 100px;
  border-right: 1px solid rgba(160,210,255,.12);
  display: flex;
  align-items:center;
  gap:.8rem;
}
.proof-item:last-child { border-right:0; }
.proof-item .icon { color: var(--cyan); font-size: 1.35rem; }
.proof-item strong { display:block; font-size: clamp(1.15rem, 2vw, 1.6rem);   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; font-weight:500; }
.proof-item span { color:var(--muted); display:block; font-size:.82rem; line-height:1.35; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; position:relative; content-visibility: auto; contain-intrinsic-size: 400px; }
.section.compact { padding-top: 2rem; }
.section-head {
  display:flex;
  justify-content: space-between;
  align-items:end;
  gap: 2rem;
  margin-bottom: 1.7rem;
}
.section-head h2, .page-hero h1 {
  font-family: 'Newsreader', 'Newsreader-fallback', Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight:500;
  letter-spacing:-.045em;
}
.section-head p { max-width: 680px; margin: .5rem 0 0; }

.card-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.two-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; }
.page-grid { display:grid; grid-template-columns: .78fr 1.22fr; gap: 1.2rem; }
.card, .glass-card, .feature-panel, .publication-card, .timeline-card {
  border: 1px solid rgba(150,205,255,.17);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 35%),
    rgba(7,17,34,.68);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  overflow: hidden;
}
.card { padding: 1.25rem; position:relative; }
.card:hover, .publication-card:hover { border-color: rgba(103,210,255,.44); box-shadow: 0 24px 70px rgba(60,120,255,.16); }

.research-card {
  display:grid;
  grid-template-columns: 140px 1fr auto;
  align-items:center;
  gap:1rem;
  min-height: 180px;
}
.research-card img {
  width: 140px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}
.research-card h3 {   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; font-size: 1.3rem; }
.arrow-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border:1px solid rgba(130,210,255,.36);
  display:grid;
  place-items:center;
  color:var(--cyan);
  flex: 0 0 auto;
}

.timeline-strip {
  padding: 1.2rem .9rem 1.5rem;
  position:relative;
}
.timeline-line {
  position:absolute;
  top: 58px;
  left: 9%;
  right: 9%;
  height:2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 16px rgba(98,180,255,.7);
}
.timeline-line::after {
  content:"";
  position:absolute;
  inset:-6px auto -6px 0;
  width: 70px;
  background: radial-gradient(circle, white, transparent 60%);
  animation: trace 4s linear infinite;
}
@keyframes trace { to { transform: translateX(min(86vw, 900px)); } }
.timeline-items { display:grid; grid-template-columns: repeat(5,1fr); gap:.8rem; position:relative; z-index:1; }
.timeline-node { text-align:center; padding:.4rem; }
.timeline-icon {
  width:70px; height:70px; margin:0 auto .8rem; border-radius:50%;
  border:1px solid rgba(150,210,255,.28);
  display:grid; place-items:center;
  background: rgba(13,28,54,.8);
  color: var(--cyan);
  font-size: 1.7rem;
  box-shadow: 0 0 22px rgba(80,170,255,.2);
}
.timeline-node h3 { font-size:1rem;   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; }
.timeline-node span { display:block; color:var(--muted); font-size:.78rem; margin-top:.25rem; }

.feature-grid {
  display:grid;
  grid-template-columns: 1fr .95fr .92fr;
  gap: 1.1rem;
  align-items: stretch;
}
.feature-panel { padding:1.4rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.feature-panel h2, .feature-panel h3 {   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; font-weight:500; }
.check-list { list-style:none; padding:0; margin:1.4rem 0; display:grid; gap:.8rem; }
.check-list li { color: var(--muted); display:flex; gap:.7rem; align-items:center; }
.check-list li::before { content:"✓"; color:var(--cyan); width:24px; height:24px; border:1px solid rgba(130,210,255,.35); border-radius:50%; display:grid; place-items:center; font-size:.78rem; }

.media-panel {
  position:relative;
  min-height: 340px;
  padding:0;
}
.media-panel video, .media-panel img {
  width:100%;
  height:100%;
  min-height: 340px;
  object-fit: cover;
}
.media-panel::after {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 40% 30%, transparent, rgba(3,7,17,.28) 45%, rgba(3,7,17,.68));
  pointer-events:none;
}
.publication-mini { display:grid; grid-template-columns: 84px 1fr; gap:.9rem; padding:.9rem 0; border-bottom:1px solid rgba(160,210,255,.12); }
.publication-mini img { width:84px; aspect-ratio:1; object-fit:cover; border-radius:12px; }
.publication-mini h4 { margin:.1rem 0 .2rem;   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; }
.publication-mini p { margin:0; font-size:.9rem; }

.gateway-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:1rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.publishing-platforms { grid-template-columns: repeat(3,1fr); }
.gateway { min-height: 220px; padding:1.3rem; display:flex; flex-direction:column; justify-content:space-between; }
.gateway small { color:var(--cyan); text-transform:uppercase; letter-spacing:.16em; font-weight:700; }
.gateway h3 {   font-family: 'Newsreader', 'Newsreader-fallback', Georgia, serif; font-size:1.45rem; margin:.7rem 0; }
.gateway p { margin:0; }

.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:2rem;
  align-items:end;
}
.page-hero p { font-size:1.08rem; max-width:780px; }
.page-kicker { color:var(--cyan); letter-spacing:.22em; text-transform:uppercase; font-weight:800; font-size:.78rem; }

.stat-row { display:grid; grid-template-columns: repeat(4,1fr); gap:1rem; margin: 1.5rem 0; }
.stat-card { padding:1.1rem; border:1px solid rgba(150,205,255,.17); border-radius:20px; background:rgba(7,17,34,.55); }
.stat-card strong { font-size:2rem; font-family:Georgia,serif; display:block; color:var(--text); }
.stat-card span { color:var(--muted); font-size:.9rem; }

.dossier-tabs { display:flex; gap:.6rem; flex-wrap:wrap; margin:1rem 0 1.4rem; }
.dossier-tabs button, .filter-button {
  border:1px solid rgba(150,205,255,.18);
  background:rgba(7,17,34,.6);
  color:var(--muted);
  padding:.75rem 1rem;
  border-radius:999px;
  cursor:pointer;
  font:inherit;
}
.dossier-tabs button.active, .filter-button.active { color:var(--text); border-color:rgba(105,220,255,.5); background:rgba(70,145,255,.18); }

.dossier-panel { display:none; }
.dossier-panel.active { display:block; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.pub-search-wrap { margin: 0 0 1.2rem; }
.pub-search-wrap input { max-width: 540px; }
.pub-empty { color: var(--muted); padding: 1rem 0; }
.publications-list { display:grid; gap:1rem; }
.publication-card { padding:1.25rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.pub-meta { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.8rem; }
.badge { display:inline-flex; border:1px solid rgba(130,210,255,.22); background:rgba(82,150,255,.1); color:var(--cyan); border-radius:999px; padding:.32rem .65rem; font-size:.78rem; }
.pub-title { font-family:Georgia,serif; font-size:1.35rem; line-height:1.25; }
.pub-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.pub-actions a, .pub-actions button { border:1px solid rgba(150,205,255,.18); background:rgba(0,0,0,.18); color:var(--text); padding:.6rem .8rem; border-radius:12px; cursor:pointer; font:inherit; font-size:.88rem; }

.experience-timeline { display:grid; gap:1rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.timeline-card { display:grid; grid-template-columns: 180px 1fr; gap:1.1rem; padding:1.2rem; }
.timeline-card .year { color:var(--cyan); font-weight:800; letter-spacing:.06em; }
.timeline-card ul { color:var(--muted); line-height:1.65; margin:.8rem 0 0; }

.book-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:1.2rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.book-card { display:grid; grid-template-columns: 170px 1fr; gap:1rem; padding:1.1rem; }
.book-card img { border-radius:14px; aspect-ratio:2/3; object-fit:cover; width:100%; height:auto; align-self:start; }
.table-wrap { overflow:auto; border-radius:18px; border:1px solid rgba(150,205,255,.14); }
table { width:100%; border-collapse:collapse; min-width:650px; background:rgba(7,17,34,.48); }
th, td { padding:1rem; border-bottom:1px solid rgba(150,205,255,.12); text-align:left; }
th { color:var(--cyan); text-transform:uppercase; letter-spacing:.1em; font-size:.76rem; }

.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:1.2rem; content-visibility: auto; contain-intrinsic-size: 400px; }
.contact-form { display:grid; gap:.9rem; }
.form-honeypot { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.form-status { margin:0; padding:.75rem .9rem; border:1px solid rgba(119,255,210,.28); border-radius:12px; background:rgba(44,155,120,.12); color:var(--green); }
.form-status.error { border-color:rgba(255,95,148,.32); background:rgba(170,35,83,.12); color:#ff9cbd; }
label { display:grid; gap:.35rem; color:var(--muted); }
input, textarea, select {
  width:100%;
  border:1px solid rgba(150,205,255,.22);
  background:rgba(3,7,17,.55);
  color:var(--text);
  border-radius:14px;
  padding:.9rem 1rem;
  font:inherit;
}
textarea { min-height:160px; resize:vertical; }

.cookie-banner {
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%) translateY(140%);
  width:min(92vw,760px);
  background:rgba(4,10,22,.9);
  border:1px solid rgba(150,205,255,.25);
  backdrop-filter:blur(18px);
  border-radius:20px;
  padding:1rem;
  z-index:1000;
  display:flex;
  align-items:center;
  gap:.8rem;
  box-shadow:var(--shadow);
  transition:transform .35s ease;
}
.cookie-banner.show { transform:translateX(-50%) translateY(0); }
.cookie-banner p { margin:0; flex:1; font-size:.9rem; }
.cookie-banner button { border:1px solid rgba(150,205,255,.22); background:rgba(89,198,255,.12); color:var(--text); padding:.65rem .8rem; border-radius:12px; cursor:pointer; }

.site-footer {
  width:min(100% - 32px, 1260px);
  margin:4rem auto 0;
  padding:2rem 0;
  border-top:1px solid rgba(150,205,255,.14);
}
.footer-grid { display:grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap:2rem; }
.footer-grid a { display:block; color:var(--muted); margin:.55rem 0; }
.footer-grid a:hover { color:var(--cyan); }
.footer-grid h3 { font-size:.86rem; text-transform:uppercase; letter-spacing:.15em; color:var(--cyan); }
.footer-bottom { border-top:1px solid rgba(150,205,255,.12); margin-top:1.6rem; padding-top:1rem; display:flex; justify-content:space-between; color:var(--faint); font-size:.9rem; }
.back-to-top { background:none; border:0; color:var(--cyan); cursor:pointer; font:inherit; }
.affiliations { font-size:.85rem; color:var(--faint); }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="down"] { transform: translateY(-12px); }
[data-reveal="down"].revealed { transform: translateY(0); }

.cv-section { scroll-margin-top: 120px; }
.publication-card { position:relative; }
.publication-card::after {
  content: attr(data-journal);
  position:absolute; top:1rem; right:1rem;
  font-size:.68rem; color:var(--faint);
  background:rgba(3,7,17,.6); padding:.2rem .5rem;
  border-radius:6px; opacity:0; transition:opacity .2s;
}
.publication-card:hover::after { opacity:1; }

/* ── View transition ──────────────────────────────── */
@view-transition { navigation: auto; }

/* ── Sticky ToC ───────────────────────────────────── */
.toc-sticky { position:sticky; top:120px; z-index:10; }
.toc-list { list-style:none; padding:0; margin:0; display:grid; gap:.3rem; }
.toc-list a { color:var(--muted); font-size:.85rem; padding:.25rem .5rem; border-radius:6px; display:block; }
.toc-list a:hover, .toc-list a.active { color:var(--cyan); background:rgba(101,220,255,.08); }

/* ── FAB ──────────────────────────────────────────── */
.fab { position:fixed; bottom:28px; right:28px; z-index:900; width:52px; height:52px; border-radius:50%; border:1px solid rgba(160,210,255,.25); background:rgba(6,13,27,.9); backdrop-filter:blur(12px); color:var(--text); display:grid; place-items:center; cursor:pointer; font-size:1.4rem; box-shadow:0 8px 30px rgba(0,0,0,.35); transition:transform .2s,box-shadow .2s; cursor:pointer; }
.fab:hover { transform:translateY(-3px); box-shadow:0 12px 40px rgba(0,0,0,.4); }
.fab-menu { position:fixed; bottom:92px; right:28px; z-index:899; display:none; gap:.5rem; }
.fab-menu.open { display:grid; }
.fab-menu a { width:44px; height:44px; border-radius:50%; border:1px solid rgba(160,210,255,.2); background:rgba(6,13,27,.85); backdrop-filter:blur(8px); color:var(--muted); display:grid; place-items:center; text-decoration:none; font-size:.82rem; transition:transform .2s; }
.fab-menu a:hover { transform:scale(1.1); color:var(--cyan); }

/* ── High contrast ────────────────────────────────── */
@media (prefers-contrast: more) {
  :root { --faint: #b0c0d8; --muted: #d0dff0; --line: rgba(130,190,255,.45); }
  .card, .publication-card, .feature-panel { border-width: 2px; }
  .badge { border-width: 2px; }
}

/* ── Reduced data ─────────────────────────────────── */
@media (prefers-reduced-data: reduce) {
  video { display: none !important; }
  .hero-cell { filter: none !important; }
  #bioCanvas { display: none !important; }
  .ambient-layer { display: none !important; }
  body { background: var(--bg-deep); }
}

/* ── Micro: nav hover glow ────────────────────────── */
.nav-link:hover { text-shadow: 0 0 12px rgba(101,220,255,.3); }
.popular-link { display:block; color:var(--cyan); }

/* ── Micro: ripple ────────────────────────────────── */
.ripple { position:absolute; border-radius:50%; background:rgba(255,255,255,.25); transform:scale(0); animation:rippleAnim .5s ease-out forwards; pointer-events:none; }
@keyframes rippleAnim { to { transform:scale(4); opacity:0; } }

/* ── Micro: typewriter ────────────────────────────── */
[data-typewriter] { display:inline-block; overflow:hidden; white-space:nowrap; border-right:2px solid var(--cyan); animation:typewriter 1.5s steps(30) forwards, blink-caret .8s step-end infinite; width:0; }
@keyframes typewriter { to { width:100%; } }
@keyframes blink-caret { 50% { border-color:transparent; } }

/* ── Micro: staggered reveal ──────────────────────── */
[data-reveal-stagger] > * { opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s ease; transition-delay:calc(var(--i,0) * .08s); }
[data-reveal-stagger].revealed > * { opacity:1; transform:none; }

/* ── Micro: skeleton loading ──────────────────────── */
.skeleton { background:linear-gradient(90deg, rgba(130,190,255,.08) 25%, rgba(130,190,255,.18) 50%, rgba(130,190,255,.08) 75%); background-size:200% 100%; animation:shimmer 1.5s ease infinite; border-radius:8px; }
@keyframes shimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content:space-between; }
  .site-nav {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display:none;
    flex-direction:column;
    background:rgba(4,10,22,.94);
    border:1px solid rgba(150,205,255,.18);
    border-radius:22px;
    padding:.8rem;
  }
  .site-nav.open { display:flex; }
  .menu-toggle { display:inline-flex; }
  .cv-mini { display:none; }
  .hero, .page-hero, .page-grid, .contact-grid { grid-template-columns:1fr; }
  .hero-stage { min-height: 520px; }
  .proof-ribbon { grid-template-columns: repeat(2,1fr); }
  .proof-item:nth-child(2n) { border-right:0; }
  .card-grid, .feature-grid, .gateway-grid, .book-grid, .two-grid { grid-template-columns: 1fr; }
  .timeline-items { grid-template-columns:1fr; }
  .timeline-line { display:none; }
  .timeline-card { grid-template-columns:1fr; }
  .research-card { grid-template-columns: 105px 1fr; }
  .research-card .arrow-pill { grid-column: 2; }
  .research-card img { width:105px; height:95px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body:not(.home-page) .site-header { grid-template-columns:auto auto; justify-content:space-between; }
  body:not(.home-page) .site-nav {
    position:fixed;
    top:82px;
    left:16px;
    right:16px;
    display:none;
    flex-direction:column;
    background:rgba(4,10,22,.96);
    border:1px solid rgba(150,205,255,.18);
    border-radius:22px;
    padding:.8rem;
    box-shadow:var(--shadow);
  }
  body:not(.home-page) .site-nav.open { display:flex; }
  body:not(.home-page) .menu-toggle { display:inline-flex; }
  body:not(.home-page) .cv-mini { display:none; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-stage { min-height:430px; }
  .hotspot { transform: scale(.82); transform-origin:center; }
  .hotspot.one { left:0; top: 8%; }
  .hotspot.two { right:-12%; }
  .hotspot.three { left:0; bottom:12%; }
  .stat-row { grid-template-columns:1fr 1fr; }
  .proof-ribbon { grid-template-columns:1fr; }
  .proof-item { border-right:0; border-bottom:1px solid rgba(160,210,255,.12); }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; gap:.8rem; }
  .cookie-banner { flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.001ms !important; }
  /* Hide the heavy particle canvas; keep videos so their poster frames still
     render (the script removes autoplay and pauses them for reduced motion). */
  #bioCanvas { display:none !important; }
}

/* Clean printing — matters most for the CV page (Ctrl+P / Save as PDF) */
@media print {
  #bioCanvas, .ambient-layer, .page-progress, .cookie-banner, .menu-toggle,
  .back-to-top, .scroll-cue, .signal-floor, .media-panel,
  video, .cta-row, .home-footer, .hero-stage { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body::before { display: none !important; }
  .site-header, .site-header::before { position: static; background: none !important; border: 0 !important; box-shadow: none !important; }
  .site-nav { display: none !important; }
  .card, .glass-card, .feature-panel, .publication-card, .timeline-card, .stat-card {
    background: #fff !important; border: 1px solid #ccc !important;
    box-shadow: none !important; backdrop-filter: none !important; break-inside: avoid;
  }
  h1, h2, h3, h4, p, strong, small, span, li, a, td, th, .pub-title, .badge, .brand-mark {
    color: #000 !important; text-shadow: none !important; -webkit-text-fill-color: #000 !important;
  }
  .badge { border-color: #999 !important; }
  a { text-decoration: underline; }
}

/* --- 200 Optimizations --- */
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
.card, .feature-panel, .publication-card { position: relative; overflow: visible; }
.card::before, .feature-panel::before, .publication-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--violet));
  z-index: -1; opacity: 0; transition: opacity .3s ease;
}
.card:hover::before, .feature-panel:hover::before, .publication-card:hover::before { opacity: 1; }
.button { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .45s ease;
}
.button:hover::after { transform: translateX(100%); }
.proof-ribbon .stat { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 100ms); }
.proof-ribbon .stat.revealed { opacity: 1; transform: none; }
[data-typewriter]::after { content: "|"; animation: blink-caret .7s step-end infinite; }
[data-typewriter].typed::after { display: none; }
.site-header { transition: background .3s ease; }
.site-header.scrolled { background: rgba(3,7,17,.92); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(101,220,255,.25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(101,220,255,.45); }
html { scrollbar-color: rgba(101,220,255,.25) var(--bg-deep); scrollbar-width: thin; }
.gradient-text { background-size: 200% auto; transition: background-position .6s ease; }
.gradient-text:hover { background-position: right center; }
kbd { display: inline-block; padding: .15em .45em; font-family: inherit; font-size: .82em; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.gallery-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.2rem; background: linear-gradient(transparent 40%, rgba(3,7,17,.85)); opacity: 0; transition: opacity .3s ease; }
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--text); font-size: .9rem; font-weight: 500; }
.nav-link.active { animation: navGlow 2.5s ease-in-out infinite alternate; }
@keyframes navGlow { from { text-shadow: 0 0 0 transparent; } to { text-shadow: 0 0 12px rgba(101,220,255,.4); } }
.feature-grid:hover .card:not(:hover), .gateway-grid:hover .gateway:not(:hover) { filter: blur(1px); opacity: .85; transition: filter .3s ease, opacity .3s ease; }
[data-count] { display: inline-block; transition: transform .15s ease; }
.hero h1, .home-hero h1 { text-shadow: 0 0 40px rgba(101,220,255,.15), 0 0 80px rgba(155,119,255,.08); }
.card, .publication-card, .timeline-card, .gateway { contain: content; }
.pub-search-wrap { position: relative; }
.pub-search-wrap::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; pointer-events: none; }
@keyframes progressShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.page-progress { background-size: 200% 100%; animation: progressShift 8s linear infinite alternate; }
.timeline-node { position: relative; }
.timeline-node::before { content: attr(data-era); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: .3rem .7rem; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 8px; font-size: .75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.timeline-node:hover::before { opacity: 1; }
.publication-card img { transition: filter .3s ease, transform .3s ease; }
.publication-card img:hover { filter: saturate(1.2) contrast(1.05); transform: scale(1.03); }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; animation: scrollBounce 2s ease-in-out infinite; z-index: 5; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.scroll-hint svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
