:root {
  --ink: #102d33;
  --muted: #65777a;
  --teal: #087f73;
  --teal-dark: #075c54;
  --coral: #ee7354;
  --gold: #c29b52;
  --line: rgba(16, 43, 50, 0.14);
  --paper: #f7f3e9;
  --paper-deep: #eee8da;
  --surface: rgba(255, 255, 255, 0.64);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(16, 45, 51, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 45, 51, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 90% 6%, rgba(238, 115, 84, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 58%, rgba(8, 127, 115, 0.09), transparent 32rem),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(22, 122, 112, 0.5);
  outline-offset: 5px;
}
button { font: inherit; }
::selection { background: rgba(237, 119, 87, 0.22); }

.skip {
  position: fixed;
  z-index: 50;
  top: -70px;
  left: 18px;
  padding: 12px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 14px; }

.shell {
  width: min(1240px, calc(100% - 56px));
  margin: auto;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 233, 0.82);
  backdrop-filter: blur(18px);
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.02em;
  transition: color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.mark:hover { color: white; transform: translateY(-2px) rotate(-3deg); box-shadow: 0 10px 24px rgba(16, 45, 51, 0.18); }
.mark span { color: var(--coral); }

nav { display: flex; gap: 10px; font-size: 13px; font-weight: 650; }
nav a { padding: 10px 15px; border: 1px solid transparent; border-radius: 999px; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
nav a:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.72); }

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(52px, 8vw, 118px);
  padding: 62px 0 112px;
}

.profile {
  position: sticky;
  top: 118px;
  align-self: start;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 43, 50, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.profile::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  content: "";
}

.eyebrow, .section-label {
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 2px 0 22px; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(237, 119, 87, 0.12); content: ""; }

h1 { margin: 0 0 24px; font-size: 54px; font-weight: 640; letter-spacing: -0.06em; line-height: 0.96; }
h1 .alias { color: var(--teal); font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.role { margin: 0; font-size: 15px; line-height: 1.6; }
.institution { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.availability { margin: 20px 0 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(22, 122, 112, 0.07); color: var(--teal-dark); font-size: 12px; font-weight: 640; }
.profile-rule { width: 42px; height: 1px; margin: 26px 0; background: var(--line); }
.socials { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.socials a { display: flex; max-width: 170px; justify-content: space-between; }
.socials span { color: var(--coral); }
.focus { margin-top: 38px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.focus p { margin: 7px 0 0; }

#main { min-width: 0; }
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
  overflow: hidden;
  padding: clamp(38px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34)),
    var(--paper-deep);
  box-shadow: 0 28px 90px rgba(16, 45, 51, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.intro::after {
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(8, 127, 115, 0.07);
  border-radius: 50%;
  content: "";
}
h2 { margin: 0 0 24px; font-size: 32px; font-weight: 560; letter-spacing: -0.04em; line-height: 1.15; }
.intro p { position: relative; z-index: 1; max-width: 720px; margin: 18px 0 0; color: #44575c; font-size: 17px; line-height: 1.85; }
.intro-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px !important; color: var(--teal-dark) !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; font-weight: 720; letter-spacing: 0.12em; line-height: 1.4 !important; text-transform: uppercase; }
.intro-kicker::before { width: 24px; height: 1px; background: var(--coral); content: ""; }
.intro-copy { position: relative; z-index: 2; }
.intro-history { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.intro-history p { margin-top: 11px; line-height: 1.75; }
.research-map { position: relative; z-index: 2; width: 210px; height: 280px; align-self: center; justify-self: end; }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(8, 127, 115, 0.24); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.orbit-outer { width: 190px; height: 190px; }
.orbit-inner { width: 112px; height: 112px; border-color: rgba(238, 115, 84, 0.3); transform: translate(-50%, -50%) rotate(22deg); }
.map-core { position: absolute; top: 50%; left: 50%; display: grid; width: 66px; height: 66px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-size: 22px; letter-spacing: -0.04em; transform: translate(-50%, -50%); box-shadow: 0 18px 40px rgba(16, 45, 51, 0.2); }
.map-node { position: absolute; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--coral); box-shadow: 0 5px 14px rgba(16, 45, 51, 0.18); }
.node-one { top: 38px; right: 24px; }
.node-two { right: 2px; bottom: 78px; background: var(--teal); }
.node-three { bottom: 31px; left: 32px; background: var(--gold); }
.map-label { position: absolute; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.label-one { top: 18px; right: 5px; }
.label-two { right: 3px; bottom: 58px; }
.label-three { bottom: 12px; left: 15px; }
.text-link { color: var(--teal-dark); text-decoration: underline; text-decoration-color: rgba(22, 122, 112, 0.34); text-underline-offset: 4px; }

.section { padding-top: 66px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-header h2 { display: flex; align-items: center; gap: 13px; margin: 0; font-size: 25px; }
.section[data-index] .section-header h2::before { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 720; letter-spacing: 0.08em; }
#research-heading::before { content: "01"; }
#patents-heading::before { content: "02"; }
.section-header > a { color: var(--muted); font-size: 12px; font-weight: 620; }

.paper {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  margin-top: 12px;
  padding: 25px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.paper:hover { transform: translateY(-3px); border-color: var(--line); background: rgba(255, 255, 255, 0.62); box-shadow: 0 18px 46px rgba(16, 45, 51, 0.07); }
.venue { padding-top: 3px; color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 720; line-height: 1.5; text-transform: uppercase; }
.venue span { display: block; color: var(--muted); font-weight: 400; }
.paper h3 { margin: 0 0 9px; font-size: 18px; font-weight: 630; letter-spacing: -0.022em; line-height: 1.42; }
.paper h3 a { background-image: linear-gradient(var(--coral), var(--coral)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px; transition: background-size 180ms ease; }
.paper h3 a:hover { color: var(--ink); background-size: 100% 2px; }
.authors, .paper-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.68; }
.authors strong { color: var(--ink); font-weight: 620; }
.paper-note { margin-top: 8px; color: var(--teal-dark); font-weight: 620; }
.archive { margin-top: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: 20px 4px; color: var(--teal-dark); cursor: pointer; font-size: 13px; font-weight: 650; }
.archive[open] summary { border-bottom: 1px solid var(--line); }

.patent { position: relative; margin-top: 12px; padding: 22px 24px 22px 30px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.42); box-shadow: inset 3px 0 0 rgba(194, 155, 82, 0.65); }
.patent h3 { margin: 0 0 8px; font-size: 16px; font-weight: 620; line-height: 1.5; }
.patent p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 22px; }

.privacy-page { width: min(760px, calc(100% - 40px)); margin: 70px auto; }
.privacy-page p, .privacy-page li { color: #44575c; font-size: 16px; line-height: 1.85; }
.privacy-page h1 { margin: 36px 0 28px; font-size: 45px; line-height: 1.08; }
.privacy-page h2 { margin-top: 38px; font-size: 23px; }
.privacy-page a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 920px) {
  .shell { width: min(100% - 40px, 1240px); }
  .layout { grid-template-columns: 235px minmax(0, 1fr); gap: 36px; }
  .profile { padding: 24px; }
  h1 { font-size: 46px; }
  .intro { grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; }
  .research-map { width: 150px; transform: scale(0.8); transform-origin: center right; }
}

@media (max-width: 700px) {
  :root { scroll-padding-top: 88px; }
  .shell { width: min(100% - 28px, 1240px); }
  .topbar { height: 72px; }
  nav { gap: 0; }
  nav a { padding-inline: 10px; }
  .layout { display: block; padding: 36px 0 70px; }
  .profile { position: static; margin-bottom: 26px; }
  h1 { font-size: 49px; line-height: 1.04; }
  h1 br { display: none; }
  h1 .alias { margin: 0 5px; }
  .availability { display: inline-block; }
  .profile-rule, .focus { display: none; }
  .socials { flex-direction: row; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
  .socials a { gap: 8px; }
  .intro { padding: 32px 24px; border-radius: 22px; }
  .intro p { font-size: 15px; }
  .intro { display: block; }
  .research-map { display: none; }
  .section { padding-top: 50px; }
  .paper { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; margin-inline: -10px; padding: 21px 10px; }
  .paper h3 { font-size: 16px; }
  .section-header { flex-wrap: wrap; gap: 10px; }
  .section-header h2 { font-size: 23px; }
  footer { flex-direction: column; gap: 14px; }
  .footer-links { flex-wrap: wrap; }
  .privacy-page h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
