:root {
  --ink: #071A2B;
  --blue: #003266;
  --teal: #63B1B1;
  --orange: #D8671E;
  --paper: #F7F9FA;
  --white: #FFFFFF;
  --muted: #64707D;
  --line: #D9E0E5;
  --dark-soft: #A9B4BF;
  --max: 1240px;
  --radius: 26px;
  --shadow: 0 18px 60px rgba(7, 26, 43, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 999;
  background-image:
    radial-gradient(circle at 25% 25%, #000 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 75% 75%, #000 0 0.6px, transparent 0.8px);
  background-size: 10px 10px, 13px 13px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 26, 43, .08);
}

.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: "Source Serif 4", serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .93rem;
}

.site-nav a {
  position: relative;
  color: #273847;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: .82rem;
  transition: .2s ease;
}

.lang-switch:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: .25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 24px; }

/* Hero */
.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--blue);
}

.eyebrow.light {
  color: #A8DFDE;
}

.hero h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(4rem, 7vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 600;
}

.accent-text {
  color: var(--blue);
}

.hero-lead {
  max-width: 680px;
  margin: 34px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  display: grid;
  gap: 5px;
}

.meta-label {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

.hero-visual {
  min-height: 610px;
}

.visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 610px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 28%, rgba(99, 177, 177, .28), transparent 22%),
    linear-gradient(145deg, #0A2238, #061522);
  box-shadow: var(--shadow);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.orbit-one {
  width: 420px;
  height: 420px;
  right: -55px;
  top: 80px;
}

.orbit-two {
  width: 280px;
  height: 280px;
  right: 20px;
  top: 150px;
  border-color: rgba(99,177,177,.45);
}

.visual-monogram {
  position: absolute;
  left: 52px;
  bottom: 50px;
  color: var(--white);
}

.visual-monogram span {
  display: block;
  font-family: "Source Serif 4", serif;
  font-size: 10rem;
  line-height: .75;
  letter-spacing: -.08em;
}

.visual-monogram small {
  display: block;
  margin-top: 36px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #9FB0BE;
  font-size: .7rem;
}

.visual-chip {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  padding: 9px 15px;
  font-size: .82rem;
}

.chip-a { top: 58px; left: 46px; }
.chip-b { top: 138px; right: 32px; }
.chip-c { top: 235px; left: 36px; }

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 17px 0;
  animation: ticker 28s linear infinite;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.ticker-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Generic */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 110px;
}

.section-heading h2,
.section-top h2,
.discipline-card h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.about-copy > p,
.discipline-card > p {
  font-size: 1.08rem;
  color: var(--muted);
}

.about-copy > p:first-child {
  font-size: 1.26rem;
  color: var(--ink);
}

.expertise-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.expertise-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-item .index {
  color: var(--teal);
  font-weight: 800;
}

.expertise-item p {
  margin: 5px 0 0;
  color: var(--muted);
}

.section-top {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.section-intro {
  margin: 0;
  color: var(--muted);
}

.light {
  color: var(--white) !important;
}

.light-soft {
  color: var(--dark-soft) !important;
}

/* Research */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(0,50,102,.2);
}

.project-number {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 800;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.project-tags span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .72rem;
  color: var(--muted);
}

.project-card h3 {
  font-family: "Source Serif 4", serif;
  font-size: 2.25rem;
  margin: 0 0 15px;
}

.project-card p {
  color: var(--muted);
  min-height: 104px;
}

.card-link {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  color: var(--blue);
}

/* Publications */
.publication-list {
  border-top: 1px solid rgba(255,255,255,.17);
}

.publication-row {
  display: grid;
  grid-template-columns: 110px 1fr 45px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.17);
}

.publication-year {
  color: #A8DFDE;
  font-weight: 700;
}

.publication-type {
  color: #9DAAB5;
  text-transform: uppercase;
  font-size: .71rem;
  letter-spacing: .12em;
  font-weight: 800;
}

.publication-main h3 {
  font-size: 1.28rem;
  margin: 5px 0 4px;
  font-weight: 600;
}

.publication-main p {
  margin: 0;
  color: #8E9BA7;
}

.publication-arrow {
  font-size: 1.5rem;
  color: #A8DFDE;
  transition: transform .2s ease;
}

.publication-row:hover .publication-arrow {
  transform: translate(3px, -3px);
}

.pub-footer {
  margin-top: 36px;
}

/* Clinical + Data */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.discipline-card {
  min-height: 610px;
  padding: 46px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--line);
}

.data-card {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.data-card .eyebrow {
  color: #A8DFDE;
}

.data-card > p {
  color: #AAB5BE;
}

.clean-list {
  list-style: none;
  margin: 45px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.clean-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.code-window {
  margin-top: 44px;
  border-radius: 18px;
  overflow: hidden;
  background: #0B1F31;
  border: 1px solid rgba(255,255,255,.13);
}

.code-top {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.code-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.code-window pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  color: #E9F1F6;
  font-size: .9rem;
  line-height: 1.8;
}

.code-comment {
  color: #76C6C4;
}

/* Teaching */
.teaching-layout {
  align-items: start;
}

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

.teaching-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.teaching-item > span {
  color: var(--teal);
  font-weight: 800;
}

.teaching-item h3 {
  margin: 0;
  font-size: 1.24rem;
}

.teaching-item p {
  margin: 7px 0 0;
  color: var(--muted);
}

/* StatLab */
.statlab-strip {
  padding: 58px 0;
  background: #DFF1F0;
  border-top: 1px solid #CAE4E3;
  border-bottom: 1px solid #CAE4E3;
}

.statlab-grid {
  display: grid;
  grid-template-columns: .7fr 1fr auto;
  gap: 45px;
  align-items: center;
}

.statlab-grid h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 2.7rem;
}

.statlab-grid p {
  margin: 0;
}

/* Current */
.current-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.current-item {
  min-height: 190px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.current-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
}

.current-item strong {
  font-family: "Source Serif 4", serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

/* Contact */
.contact-section {
  background: var(--blue);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.contact-title {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.contact-content {
  align-self: end;
}

.contact-content > p {
  max-width: 620px;
  color: #C3D0DB;
  font-size: 1.15rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.contact-links a {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 10px 14px;
  transition: .2s ease;
}

.contact-links a:hover {
  background: var(--white);
  color: var(--blue);
}

.config-note {
  margin-top: 28px !important;
  font-size: .8rem !important;
  color: #91A7BA !important;
}

.config-note code {
  color: #D8E5EF;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  background: #061522;
  color: #91A0AC;
  font-size: .84rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-grid strong {
  color: var(--white);
}

.footer-grid p {
  margin: 4px 0 0;
}

.footer-right {
  text-align: right;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

.placeholder-link[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-frame {
    min-height: 500px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .statlab-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .current-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 86px 0;
  }

  .nav-toggle {
    display: block;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 36px;
    font-size: 1.6rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: .32s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
    top: 21px;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
    top: 21px;
  }

  .lang-switch {
    font-size: .9rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 15vw, 5.8rem);
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-grid,
  .dual-grid {
    grid-template-columns: 1fr;
  }

  .discipline-card {
    min-height: auto;
  }

  .publication-row {
    grid-template-columns: 72px 1fr 28px;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 56px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-frame {
    min-height: 420px;
  }

  .visual-monogram {
    left: 28px;
    bottom: 30px;
  }

  .visual-monogram span {
    font-size: 7rem;
  }

  .orbit-one {
    width: 310px;
    height: 310px;
  }

  .orbit-two {
    width: 210px;
    height: 210px;
  }

  .current-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }

  .contact-title {
    font-size: 4rem;
  }

  .publication-row {
    grid-template-columns: 1fr 24px;
  }

  .publication-year {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
