@font-face { font-family: "Sora"; src: url(../fonts/sora-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url(../fonts/sora-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(../fonts/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(../fonts/plex-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(../fonts/plex-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0f0c;
  --surface: #111915;
  --ink: #e2ebe5;
  --muted: #8ea398;
  --line: #1e2a24;
  --accent: #4fe08d;
  --accent-soft: #12241a;
  --deep: #070b09;
  --on-deep: #e2ebe5;
  --on-deep-2: #7f9489;
  --display: "Sora", "Plex Sans", system-ui, sans-serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.container { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface); color: var(--ink); padding: .5rem .8rem; }

.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero .art { display: block; position: absolute; top: 0; right: 0; width: min(74%, 62rem); height: 100%; object-fit: cover; object-position: left center; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 80%); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; padding-top: max(1rem, env(safe-area-inset-top)); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; gap: .55rem; }
.wordmark::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 14px var(--accent); }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.topbar a.nav { color: var(--muted); text-decoration: none; font-size: .97rem; font-weight: 500; min-height: 48px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.topbar a.nav:hover { color: var(--ink); }
.topbar a.nav[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.hero-body { padding: 4rem 0 4.25rem; max-width: 38rem; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 1rem; }
.hero .intro { font-size: clamp(1.1rem, 1.9vw, 1.25rem); line-height: 1.55; color: var(--muted); margin: 0; max-width: 34rem; }
.hero.home .hero-body { padding: 6.5rem 0 7rem; max-width: 40rem; }
.hero.home h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.hero.home .who { font-weight: 500; color: var(--ink); margin: 1.4rem 0 0; font-size: 1rem; line-height: 1.5; }
.hero.home .who span { color: var(--muted); font-weight: 400; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.35rem; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; }
.btn.primary { background: var(--accent); color: #06130b; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn.ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }

section { padding: 5.5rem 0; }
section + section { padding-top: 0; }
.band { padding: 5.5rem 0; }
.band + section { padding-top: 5.5rem; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 2.25rem; }
h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.prose { max-width: 40rem; }
.lead { font-size: 1.25rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.hero h1 .line { display: block; }
@media (min-width: 52rem) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillars.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .pillars.four { grid-template-columns: repeat(4, 1fr); } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem 1.6rem 1.6rem; }
.pillar .icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.1rem; }
.pillar p { color: var(--muted); margin: 0; }
.pillar.lead-pillar { grid-column: 1 / -1; display: grid; gap: 1rem 2.5rem; align-items: center; background: var(--accent-soft); border-color: transparent; }
@media (min-width: 52rem) { .pillar.lead-pillar { grid-template-columns: 1fr 1.3fr; padding: 2.25rem 2.5rem; } }
.pillar.lead-pillar h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 0; }
.pillar.lead-pillar p { color: var(--ink); font-size: 1.08rem; }

.statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 50rem; margin: 0; }
.statement .hl { color: var(--accent); }

.roles { display: grid; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.roles li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.roles strong { display: block; font-weight: 600; }
.roles span { color: var(--muted); font-size: .95rem; }

.more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 1.5rem; }
.more:hover { text-decoration: underline; }

.contact-band { background: var(--deep); color: var(--on-deep); }
.contact-band .section-title { margin-bottom: .75rem; color: var(--on-deep); }
.contact-band p { color: var(--on-deep-2); max-width: 36rem; }
.contact-band .btn.ghost { background: transparent; color: var(--on-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-deep) 35%, transparent); }
.contact-band .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--on-deep); }
.contact-band .btn.primary { background: #fff; color: var(--deep); }

.career { margin: 0; padding: 0; list-style: none; }
.career li { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: .55rem 0; }
@media (min-width: 46rem) { .career li { grid-template-columns: 16rem 1fr; gap: 1.5rem; align-items: center; } }
.career .label { font-size: .95rem; line-height: 1.35; font-weight: 500; }
.career .label small { display: block; color: var(--muted); font-size: .83rem; font-weight: 400; }
.career .track { position: relative; height: 22px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.career .bar { position: absolute; top: 0; bottom: 0; left: var(--s); width: calc(var(--e) - var(--s)); border-radius: 6px; background: var(--c); }
.career .bar.open { border-radius: 6px 0 0 6px; }
.career .axis .track { background: none; box-shadow: none; height: 1.2rem; }
.career .axis .tick { position: absolute; left: var(--p); transform: translateX(-50%); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.career .axis .tick:first-child { transform: none; }
.career .axis .tick:last-child { transform: translateX(-100%); }
.career .axis > span:first-child { display: none; }
@media (min-width: 46rem) { .career .axis > span:first-child { display: block; } }

.edu { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.edu div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; }
.edu p { margin: 0; color: var(--muted); }

.bio { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.75rem 2rem; max-width: 48rem; }
.bio p:last-child { margin: 0; }

.pubs { list-style: none; margin: 0; padding: 0; max-width: 54rem; }
.pubs li { display: grid; grid-template-columns: 1fr; gap: .25rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 46rem) { .pubs li { grid-template-columns: 6rem 1fr; } }
.pubs .year { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--accent); }
.pubs .t { font-weight: 600; display: block; margin-bottom: .25rem; line-height: 1.4; }
.pubs .meta { color: var(--muted); font-size: .95rem; }
.pubs .links { margin-top: .5rem; font-size: .92rem; font-weight: 600; }
.pubs .links a { margin-right: 1rem; }

.cols { display: grid; gap: 2.5rem 4rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.plain { padding-left: 1.1rem; margin: 0; }
.plain li { margin-bottom: .5rem; }

footer { background: var(--deep); color: var(--on-deep-2); font-size: .9rem; padding: 2rem 0 max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--on-deep) 12%, transparent); }
footer .container { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
footer a { color: var(--on-deep-2); }
footer a:hover { color: var(--on-deep); }
footer p { margin: 0; }
footer .links a { margin-right: 1.25rem; }

@media (max-width: 40rem) {
  .hero .art { width: 100%; opacity: .5; object-position: 75% 35%; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), var(--bg) 80%); }
  .topbar ul { gap: 1.1rem; width: 100%; }
  .hero-body { padding: 2.5rem 0 3rem; }
  .hero.home .hero-body { padding: 3.5rem 0 4rem; }
  section, .band, .band + section { padding: 3.75rem 0; }
  section + section { padding-top: 0; }
  .bio { padding: 1.4rem; }
}
@media print { .hero .art, .topbar ul, .actions, .contact-band { display: none; } }
.container.prose { max-width: none; }
.container.prose > * { max-width: 40rem; }

.hero.home .hero-body { padding: 5rem 0 5.25rem; }
.hero.home h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
.profiles { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.6rem 0 0; font-weight: 600; }
.profiles a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.profiles a:hover { text-decoration: underline; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 52rem) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; padding-top: .1rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }
.hero .art { top: 4.5rem; height: calc(100% - 4.5rem); }
@media (max-width: 40rem) { .hero .art { top: 7rem; height: calc(100% - 7rem); } }
.hero .art { -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%); mask-image: linear-gradient(180deg, transparent, #000 18%); }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
.hero { background: radial-gradient(ellipse 60% 80% at 78% 45%, rgba(79,224,141,.07), transparent 70%), var(--bg); }
canvas.art { pointer-events: none; }
img.art.fallback { opacity: .9; }
.pubs .year, .section-title::after { color: var(--accent); }
.section-title::after { content: "_"; margin-left: .08em; font-weight: 400; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .section-title::after { animation: none; } }
@media (max-width: 40rem) {
  .hero .art { top: auto; bottom: 0; height: 11rem; width: 100%; opacity: 1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .hero::after { background: none; }
  .hero-body { padding-bottom: 11.5rem; }
  .hero.home .hero-body { padding-bottom: 12.5rem; }
  .hero.home .art { height: 13rem; }
}
.wordmark.mark-only::before { display: none; }
.wordmark.mark-only img { display: block; width: 30px; height: 30px; border-radius: 7px; }
@media (max-width: 40rem) {
  .topbar:has(.mark-only) { flex-wrap: nowrap; gap: 1rem; }
  .topbar:has(.mark-only) ul { width: auto; gap: .85rem; }
  .topbar:has(.mark-only) a.nav { font-size: .9rem; }
}
.wordmark { flex-shrink: 0; }
@media (max-width: 22rem) { .topbar:has(.mark-only) ul { gap: .6rem; } .topbar:has(.mark-only) a.nav { font-size: .82rem; } }
