:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #edf1f7;
  --ink: #0d1420;
  --muted: #667184;
  --line: #dce2eb;
  --accent: #315ee8;
  --accent-2: #8b5cf6;
  --accent-soft: #e8efff;
  --lime: #b9f36b;
  --dark: #101827;
  --shadow: 0 22px 60px rgba(22, 34, 55, .10);
  --shell: 1180px;
}
:root[data-theme="dark"] {
  --bg: #090e16; --surface: #111925; --surface-2: #182230; --ink: #f1f5fb; --muted: #98a6b8;
  --line: #263244; --accent: #8eabff; --accent-2: #b498ff; --accent-soft: #1a2b50; --dark: #f1f5fb;
  --shadow: 0 22px 60px rgba(0,0,0,.30);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 44px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 999; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.nav-wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.brand-name { font-size: 14px; }
.site-nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; font-weight: 620; }
.site-nav a:hover { color: var(--ink); }
.theme-toggle, .nav-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; }
.theme-toggle { width: 35px; height: 35px; }
.nav-toggle { display: none; padding: 7px 12px; }

.hero-shell { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-shell::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; right: -280px; top: -360px; background: radial-gradient(circle at 35% 50%, rgba(49,94,232,.21), rgba(139,92,246,.11) 42%, transparent 70%); pointer-events: none; }
.hero { min-height: 670px; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); gap: 76px; align-items: center; padding-block: 80px 86px; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 760; color: var(--muted); }
.hero-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 20%, transparent); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(72px, 10.7vw, 130px); line-height: .78; letter-spacing: -.085em; font-weight: 840; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: normal; }
.hero-lead { max-width: 770px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.5; letter-spacing: -.022em; }
.hero-lead strong { color: var(--ink); font-weight: 680; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 12px 26px rgba(49,94,232,.12); }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-panel { position: relative; min-height: 492px; border-radius: 34px; overflow: hidden; padding: 28px; background: linear-gradient(155deg, #18243a 0%, #111827 57%, #1f2c44 100%); color: #f7f9fc; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 16%, rgba(143,108,255,.42), transparent 34%), radial-gradient(circle at 20% 70%, rgba(48,119,255,.33), transparent 36%); }
.hero-orbit { position: relative; height: 295px; display: grid; place-items: center; }
.hero-initials { position: relative; z-index: 2; width: 124px; height: 124px; border-radius: 34px; display: grid; place-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.19); backdrop-filter: blur(14px); font-size: 43px; font-weight: 820; letter-spacing: -.07em; }
.orbital-ring { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.ring-a { width: 260px; height: 180px; transform: rotate(-24deg); }
.ring-b { width: 185px; height: 270px; transform: rotate(33deg); }
.hero-panel-grid { position: relative; z-index: 2; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-panel-grid > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.panel-label { color: rgba(255,255,255,.50); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 700; padding-top: 2px; }
.hero-panel-grid strong, .hero-panel-grid a { font-weight: 640; }

.section { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 38px; padding-block: 100px; border-bottom: 1px solid var(--line); }
.section-rail { display: flex; flex-direction: column; align-items: center; gap: 13px; min-height: 100%; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .14em; writing-mode: vertical-rl; }
.section-rail div { width: 1px; flex: 1; min-height: 55px; background: var(--line); }
.section-body { min-width: 0; }
.kicker { margin: 0 0 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-size: 11px; font-weight: 800; }
h2 { margin: 0; font-size: clamp(43px, 6vw, 70px); line-height: .96; letter-spacing: -.06em; font-weight: 790; }
h2 span { color: var(--muted); font-weight: 560; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: start; }
.about-copy { padding-top: 35px; color: var(--muted); font-size: 18px; }
.about-copy p { margin: 0 0 19px; }
.education-row { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.education-row > div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.education-row span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 780; }
.education-row strong { color: var(--ink); font-size: 13px; line-height: 1.45; }
.section-title-row { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: end; margin-bottom: 38px; }
.section-intro { margin: 0; color: var(--muted); font-size: 15px; }
.research-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.research-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; position: relative; transition: transform .25s ease; }
.research-card:hover { transform: translateY(-4px); }
.research-card-a { background: var(--dark); color: var(--bg); }
:root[data-theme="dark"] .research-card-a { background: #f0f4fb; color: #101827; }
.research-card-b { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.research-card-c { background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 12%, var(--surface)), var(--surface)); }
.research-number { align-self: flex-end; font-size: 12px; opacity: .55; }
.card-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 780; opacity: .64; }
.research-card h3 { margin: 0 0 12px; max-width: 280px; font-size: 27px; line-height: 1.08; letter-spacing: -.04em; }
.research-card p:last-child { margin: 0; max-width: 310px; font-size: 13px; opacity: .68; }

.publication-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; }
.publication-intro { max-width: 690px; margin-top: 18px; }
.scholar-link { margin-bottom: 4px; color: var(--accent); font-size: 13px; font-weight: 720; white-space: nowrap; }
.scholar-link span { margin-left: 8px; }
.pub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 44px 0 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 13px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 720; }
.filter:hover, .filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.author-legend { margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.publication-list { display: grid; gap: 11px; }
.publication { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 21px; background: color-mix(in srgb, var(--surface) 90%, transparent); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.publication:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 34px rgba(22,34,55,.07); }
.publication.featured { background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface)); }
.publication.is-hidden { display: none; }
.pub-thumb { position: relative; display: block; aspect-ratio: 420/250; border-radius: 15px; overflow: hidden; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
.pub-thumb::after { content: "↗"; position: absolute; right: 8px; top: 8px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: rgba(15,23,42,.78); color: white; font-size: 10px; opacity: 0; transform: translateY(3px); transition: .2s ease; }
.publication:hover .pub-thumb::after { opacity: 1; transform: translateY(0); }
.pub-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.publication:hover .pub-thumb img { transform: scale(1.018); }
.pub-content { min-width: 0; padding-right: 7px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.tag { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 8.5px; }
.pub-content h3 { margin: 0; max-width: 820px; font-size: clamp(17px, 2vw, 22px); line-height: 1.24; letter-spacing: -.026em; font-weight: 720; }
.pub-content h3 a { background-image: linear-gradient(var(--accent),var(--accent)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .22s ease; }
.pub-content h3 a:hover { color: var(--accent); background-size: 100% 1px; }
.authors { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.52; }
.authors strong { color: var(--ink); font-weight: 760; }
.authors sup { font-size: .65em; color: var(--accent); padding-left: 1px; }
.pub-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.contact-section { padding-bottom: 118px; }
.contact-card { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 70px); border-radius: 30px; background: linear-gradient(135deg,#111827,#182b49 62%,#263b68); color: white; }
.contact-card::after { content: "JG"; position: absolute; right: -20px; bottom: -78px; font-size: 250px; line-height: 1; font-weight: 900; letter-spacing: -.1em; color: rgba(255,255,255,.035); }
.contact-card .kicker { color: #a9bfff; }
.contact-card h2 span { color: rgba(255,255,255,.46); }
.contact-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 80px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.contact-email { font-size: clamp(20px, 3.5vw, 36px); letter-spacing: -.035em; font-weight: 720; }
.contact-email span { font-size: .65em; margin-left: 10px; opacity: .6; }
.contact-links { display: flex; gap: 18px; font-size: 11px; color: rgba(255,255,255,.62); }
.site-footer { padding: 28px 0; color: var(--muted); font-size: 10px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-row p { margin: 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 42px; }
  .hero-panel { max-width: 620px; width: 100%; min-height: 410px; }
  .hero-orbit { height: 225px; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-copy { padding-top: 0; }
  .section-title-row { grid-template-columns: 1fr; gap: 24px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 240px; }
  .publication-heading { grid-template-columns: 1fr; }
  .scholar-link { justify-self: start; }
  .pub-toolbar { align-items: flex-start; flex-direction: column; }
  .publication { grid-template-columns: 190px 1fr; }
}
@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 60px; right: 14px; min-width: 210px; padding: 14px; flex-direction: column; align-items: stretch; gap: 3px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 10px; }
  .theme-toggle { margin-top: 6px; }
  .hero { padding-block: 61px 58px; }
  .hero h1 { font-size: clamp(67px, 23vw, 100px); }
  .hero-panel { min-height: 360px; padding: 21px; border-radius: 24px; }
  .hero-panel-grid > div { grid-template-columns: 70px 1fr; }
  .section { grid-template-columns: 1fr; gap: 0; padding-block: 68px; }
  .section-rail { display: none; }
  h2 { font-size: clamp(40px, 14vw, 58px); }
  .education-row { grid-template-columns: 1fr; }
  .publication { grid-template-columns: 1fr; gap: 14px; padding: 12px; border-radius: 18px; }
  .pub-thumb { width: 100%; }
  .pub-content { padding: 0 5px 7px; }
  .pub-content h3 { font-size: 18px; }
  .authors { font-size: 11px; }
  .author-legend { white-space: normal; }
  .contact-bottom { flex-direction: column; align-items: flex-start; margin-top: 58px; }
  .contact-links { flex-direction: column; gap: 6px; }
  .footer-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
