:root {
  color-scheme: dark;
  --bg: #0b1024;
  --text: #f2f5fc;
  --muted: #bdc9dc;
  --mint: #79f1bb;
  --edge: #92cfcf69;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg); }
body {
  margin: 0;
  isolation: isolate;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(ellipse at -12% 42%, #392066, transparent 65%),
    radial-gradient(ellipse at 113% 16%, #07555b, transparent 66%),
    radial-gradient(ellipse at 105% 108%, #0b4049, transparent 65%), var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
.glass {
  background: linear-gradient(145deg,#a4d9f124,#8a79cc0c 46%,#25baa918);
  border: 1px solid var(--edge);
  box-shadow: inset 1px 1px #dcfaf233, inset -1px -1px #a58aec36, 0 0 13px #5ad6c524, 0 12px 32px #04081735;
}
.skip { position: fixed; top: .4rem; left: .4rem; padding: .5rem 1rem; z-index: 5; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.profile, main { width: min(calc(100% - 2rem), 43rem); margin-inline: auto; }
.profile { margin-top: 1rem; padding: 1.25rem; border-radius: 30px; text-align: center; }
.profile-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.profile-header > span { font-size: .875rem; }
.wordmark { font-weight: 750; font-size: clamp(1.25rem, 4.4vw, 1.75rem); letter-spacing: -.055em; line-height: 1.1; }
.wordmark span, h1 span, h2 span { color: var(--mint); }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #10222b; margin: 1.45rem auto 1rem; border-radius: 24px; max-width: 18rem; }
.profile-school, .muted { color: var(--muted); }
.profile-school { max-width: 27ch; margin-inline: auto; font-size: .9rem; line-height: 1.45; text-wrap: balance; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 1rem 0; }
.socials a, .rail a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.socials a { display: inline-flex; gap: .55rem; padding-inline: .75rem; width: auto; border-radius: 999px; border: 1px solid var(--edge); font-size: .875rem; }
.socials a:hover, .rail a:is(:hover,[aria-current]), footer a:hover { color: var(--mint); }
.icon { display: inline-block; width: 1rem; height: .75rem; position: relative; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.mail::before { content: ""; position: absolute; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); top: -1px; left: 3px; }
.instagram { width: 1rem; height: 1rem; border-radius: 4px; }
.instagram::before, .instagram::after { content: ""; position: absolute; border-radius: 50%; }
.instagram::before { width: .34rem; height: .34rem; border: 1px solid; inset: 0; margin: auto; }
.instagram::after { width: 2px; height: 2px; background: currentColor; top: 2px; right: 2px; }
.button {
  display: flex; justify-content: center; align-items: center; gap: .65rem; min-height: 49px;
  border: 1px solid #8debc2a6; border-radius: 999px; background: linear-gradient(105deg,#284b57,#176652);
  box-shadow: inset 0 1px #c5f8e25c, 0 0 15px #61e7b528; font-size: .875rem; font-weight: 650; text-transform: uppercase;
}
.button:hover { background: var(--mint); color: var(--bg); }
.rail {
  display: flex; justify-content: center; gap: .04rem; width: max-content; max-width: calc(100% - 1rem); margin: 1rem auto 0;
  position: sticky; top: .5rem; z-index: 2; padding: .16rem .45rem; border-radius: 999px;
  background: #111d30ea; backdrop-filter: blur(16px);
}
.rail a { position: relative; color: var(--muted); font-size: 1.45rem; line-height: 1; }
.rail small { position: absolute; opacity: 0; pointer-events: none; }
section { padding-block: clamp(2.5rem, 7vw, 5.2rem); }
.label { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--edge); border-radius: 99px; padding: .35rem .8rem; margin-bottom: 1.75rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .085em; }
.label > span { color: var(--mint); }
h1, h2 { line-height: 1.08; font-weight: 350; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 9vw, 5rem); max-width: 14ch; }
h2 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
h3 { font-size: 1.3rem; font-weight: 520; line-height: 1.25; }
.lede { color: var(--muted); max-width: 53ch; margin-top: 1.4rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.75rem, 8vw, 4.75rem); margin-top: 2rem; }
.facts strong { display: block; color: var(--mint); font-size: clamp(1.9rem, 6.5vw, 3.75rem); font-weight: 350; letter-spacing: -.05em; line-height: 1.1; }
.facts span { display: block; color: var(--muted); text-transform: uppercase; font-size: .8125rem; margin-top: .55rem; letter-spacing: .06em; }
.about-grid { display: grid; gap: 1.5rem; align-items: start; }
.about-grid img { width: 100%; max-width: 21rem; height: auto; border-radius: 20px; border: 1px solid var(--edge); }
.timeline { border-inline-start: 1px solid var(--edge); padding-inline-start: 1.5rem; position: relative; margin-top: 2rem; }
.timeline::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: var(--mint); position: absolute; top: .5rem; left: -.33rem; box-shadow: 0 0 12px #79f1bb88; }
.timeline h3 { margin-block: .55rem; }
.interest-list, .contact-links { display: grid; gap: .85rem; margin-top: 1.6rem; }
.interest-list article, .contact-links a { padding: 1.35rem; border-radius: 19px; }
.interest-list p { margin-top: .5rem; color: var(--muted); }
.contact-links a { overflow-wrap: anywhere; }
.contact-links a:hover { border-color: var(--mint); }
.contact-links a { display: flex; align-items: center; gap: .7rem; }
footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; color: var(--muted); font-size: .875rem; }
footer a { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 48rem) {
  .about-grid { grid-template-columns: 1fr .7fr; margin-top: 1.4rem; }
  .about-grid .lede { margin-top: 0; }
  .contact-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) and (min-height: 38rem) {
  html { scroll-padding-top: 1.5rem; }
  .profile { position: fixed; left: max(1.35rem, calc((100vw - 95rem) / 2)); top: 50%; transform: translateY(-50%); width: clamp(15rem, 24vw, 26rem); padding: clamp(1.15rem, 2.3vw, 2rem); margin: 0; }
  .portrait { width: auto; max-width: 100%; max-height: clamp(13rem, 43vh, 23rem); margin-block: 1rem .85rem; }
  .profile { max-height: calc(100dvh - 2rem); overflow-y: auto; }
  main { width: auto; max-width: 50rem; margin-inline: max(29vw, calc((100vw - 95rem) / 2 + 29rem)) 6rem; }
  .intro { padding-top: clamp(4rem, 10vh, 7rem); min-height: 90vh; }
  h1 { font-size: clamp(3.25rem, 5.2vw, 5rem); }
  .rail { position: fixed; flex-direction: column; top: 50%; transform: translateY(-50%); right: max(1.4rem, calc((100vw - 95rem) / 2)); padding: .5rem .2rem; margin: 0; }
  .rail a:is(:hover,:focus-visible) small { opacity: 1; right: 110%; background: #26384c; color: var(--text); font-size: .8rem; padding: .55rem .65rem; border-radius: .3rem; white-space: nowrap; }
}
.intro { position: relative; isolation: isolate; }
.hero-role { margin-top: 1.15rem; font-size: clamp(1.08rem, 2.5vw, 1.5rem); font-weight: 550; }
.enterprise { display: grid; gap: .9rem; margin-top: 1.5rem; }
.enterprise article { padding: clamp(1.25rem, 3vw, 1.8rem); border-radius: 20px; }
.enterprise h3 { color: var(--mint); }
.enterprise article p { color: var(--muted); margin-top: .6rem; }
@media (min-width: 40rem) { .enterprise { grid-template-columns: 1fr 1fr; } }
.statement { margin: 1.7rem 0 0; padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: 22px; }
.statement p:first-child { color: var(--mint); font-size: clamp(1.22rem, 3.1vw, 1.65rem); line-height: 1.45; }
.statement p + p { color: var(--muted); margin-top: 1rem; }
/* Section icons and decorative neural illustration */
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.label .section-icon { width: 1rem; height: 1rem; color: var(--mint); }
.rail a[aria-current] { background: #83f6d71a; box-shadow: inset 0 0 0 1px #83f6d74d; }
.neural-backdrop {
  position: fixed; z-index: -1; inset: 0; pointer-events: none; overflow: hidden;
}
.neural-backdrop > :is(svg, canvas) {
  position: absolute; width: clamp(23rem, 80vw, 44rem); height: auto; top: 17%; right: -15%;
  color: #83f6d7; opacity: .31;
}
.anatomy-grid { stroke: currentColor; stroke-width: .65; opacity: .26; }
.neural-anatomy { stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; opacity: .78; }
.neural-wiring { color: #b8a7fe; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 3 4; }
.neural-wiring circle { fill: #0b1024; stroke-dasharray: none; }
.neural-backdrop > canvas { aspect-ratio: 600 / 620; opacity: .74; }
@media (min-width: 64rem) {
  .neural-backdrop > :is(svg, canvas) { width: clamp(35rem, 53vw, 58rem); right: 3%; top: 7%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .neural-backdrop > canvas { display: none; }
}
