:root {
  color-scheme: dark;
  font-family:
    Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --background: #0a0a0b;
  --surface: #111113;
  --surface-raised: #171719;
  --text: #f3f3ef;
  --muted: #969690;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #b7f34a;
  --accent-soft: rgba(183, 243, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(183, 243, 74, 0.07), transparent 30rem),
    var(--background);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5rem 5rem;
  content: "";
  opacity: 0.055;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6.5rem;
}

.site-header::before {
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(20px);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.brand-mark {
  justify-self: start;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.page-tabs {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.page-tabs a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.page-tabs a:hover {
  color: var(--text);
}

.page-tabs a[aria-current="page"] {
  background: var(--text);
  color: var(--background);
}

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0;
}

.language-option {
  position: relative;
  min-width: 2.1rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1;
  transition: color 160ms ease;
}

.language-option:hover,
.language-option[aria-pressed="true"] {
  color: var(--text);
}

.language-option[aria-pressed="true"]::after {
  position: absolute;
  bottom: 0.32rem;
  left: 50%;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateX(-50%);
}

.language-divider {
  width: 1px;
  height: 0.8rem;
  background: var(--line);
}

.hero {
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  padding: clamp(3.5rem, 7vh, 5rem) 0 clamp(4.5rem, 8vh, 6.5rem);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-number,
.card-index,
.lab-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 1.6rem 0 0;
  font-size: clamp(3.75rem, 7vw, 6.75rem);
  font-weight: 670;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.name-alias {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.hero-role {
  max-width: 42rem;
  margin: clamp(2.3rem, 5vw, 4rem) 0 0;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.hero-summary {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0a0b;
}

.button-primary:hover {
  background: #ccff70;
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.portrait-card {
  width: min(100%, 13rem);
  margin: 0 0 0 auto;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.86) contrast(1.02);
}

.portrait-card figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-body {
  min-width: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.lead-copy,
.supporting-copy {
  margin: 0;
  text-wrap: pretty;
  word-break: keep-all;
}

.lead-copy {
  max-width: 50rem;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.supporting-copy {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.interest-card {
  min-height: 16rem;
  padding: 1.5rem;
}

.interest-card + .interest-card {
  border-left: 1px solid var(--line);
}

.interest-card h3 {
  margin: 3.75rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 570;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: keep-all;
}

.interest-card > p:last-child {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: keep-all;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.timeline-content h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: keep-all;
}

.timeline-content p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-content .timeline-note {
  color: var(--text);
  font-size: 0.85rem;
}

.lab-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
}

.lab-card h3 {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-weight: 610;
  letter-spacing: -0.06em;
  line-height: 1.08;
  text-wrap: balance;
  word-break: keep-all;
}

.lab-card p:not(.lab-kicker) {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.lab-card .advisor {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.round-link {
  width: 7.25rem;
  height: 7.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.round-link:hover {
  background: var(--accent);
  color: #0a0a0b;
  transform: rotate(-4deg);
}

.site-footer {
  position: relative;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.22fr);
    gap: 3rem;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
  }

  .section-heading h2 {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .page-shell {
    width: min(100% - 2rem, 82rem);
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    min-height: 5.5rem;
  }

  .page-tabs {
    justify-self: center;
  }

  .page-tabs a {
    padding: 0.45rem 0.65rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4.5rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6.5rem);
  }

  .portrait-card {
    width: 9.5rem;
    margin: 0;
  }

  .about-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .supporting-copy {
    max-width: 40rem;
  }

  .interest-card {
    min-height: auto;
    padding: 1.5rem 0 2rem;
  }

  .interest-card + .interest-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .interest-card h3 {
    margin-top: 2.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .lab-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .round-link {
    width: 7rem;
    height: 7rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

@media print {
  :root {
    color-scheme: light;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --text: #111111;
    --muted: #555555;
    --line: rgba(0, 0, 0, 0.18);
    --line-strong: rgba(0, 0, 0, 0.32);
    --accent: #416900;
  }

  body {
    background: #ffffff;
  }

  body::before,
  .site-header::before,
  .site-footer::before,
  .page-tabs,
  .language-switch,
  .round-link,
  .site-footer a {
    display: none;
  }

  .site-header {
    position: static;
    min-height: 4rem;
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 4rem;
  }

  .content-section {
    break-inside: avoid;
    padding: 3rem 0;
  }
}
