@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,500;1,8..60,600&display=swap");

:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-soft: #15181a;
  --surface: rgba(25, 28, 31, 0.78);
  --surface-strong: rgba(32, 36, 39, 0.92);
  --text: #f2eee7;
  --muted: #b2aaa0;
  --subtle: rgba(178, 170, 160, 0.62);
  --line: #2a2e31;
  --line-soft: rgba(242, 238, 231, 0.085);
  --accent: #88aaa2;
  --accent-strong: #c4d3ce;
  --accent-soft: rgba(136, 170, 162, 0.14);
  --warm: #d6c7b5;
  --max: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(136, 170, 162, 0.16), transparent 30rem),
    radial-gradient(circle at 10% 52%, rgba(214, 199, 181, 0.07), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36rem),
    var(--bg);
  font-family: "IBM Plex Sans", Aptos, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  inset: 16px auto auto 16px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(16, 18, 20, 0.68);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(16, 18, 20, 0.84);
}

.nav {
  width: min(calc(100% - 48px), var(--max));
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-wordmark span:last-child {
  color: var(--warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  place-items: center;
  gap: 4px;
}

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 98px 0;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 62px);
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.eyebrow,
.section-label,
.panel-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.05rem, 7vw, 5.45rem);
  font-style: italic;
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 500;
}

.hero-lede {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2.32rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 58ch;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.68;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(242, 238, 231, 0.08), rgba(242, 238, 231, 0.025)),
    var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.clinical-visual {
  display: grid;
  align-content: space-between;
  isolation: isolate;
}

.clinical-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 238, 231, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 238, 231, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
  opacity: 0.65;
  pointer-events: none;
}

.visual-orbit {
  position: absolute;
  inset: 64px 54px auto;
  aspect-ratio: 1;
  border: 1px solid rgba(136, 170, 162, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg) scaleX(1.16);
  z-index: -1;
}

.visual-orbit-two {
  inset: 118px 82px auto;
  border-color: rgba(214, 199, 181, 0.16);
  transform: rotate(28deg) scaleX(0.84);
}

.visual-core {
  position: relative;
  width: min(78%, 340px);
  aspect-ratio: 1;
  margin: 36px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(136, 170, 162, 0.32), transparent 10%),
    radial-gradient(circle, rgba(214, 199, 181, 0.12), transparent 54%);
  border: 1px solid rgba(136, 170, 162, 0.2);
}

.visual-pulse {
  position: absolute;
  inset: 31%;
  border: 1px solid rgba(242, 238, 231, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(136, 170, 162, 0.18);
}

.visual-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(136, 170, 162, 0.12);
}

.visual-node-one {
  top: 18%;
  left: 56%;
}

.visual-node-two {
  top: 58%;
  left: 22%;
  background: var(--warm);
  box-shadow: 0 0 0 8px rgba(214, 199, 181, 0.1);
}

.visual-node-three {
  right: 19%;
  bottom: 20%;
}

.visual-caption {
  position: relative;
  margin-top: 40px;
}

.visual-caption h2 {
  max-width: 12ch;
  margin: 0 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  font-weight: 600;
}

.visual-caption p:last-child {
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.72;
}

.section-narrow {
  max-width: 820px;
}

.text-stack {
  display: grid;
  gap: 26px;
}

.statement {
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.body-large {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.76;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 4.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section-intro {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.work-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-card {
  min-height: auto;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  transition: color 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(136, 170, 162, 0.3);
  background: transparent;
}

.feature-card h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.research-panel {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(136, 170, 162, 0.13), transparent 54%),
    var(--surface);
}

.research-panel p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  line-height: 1.82;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.research-tags span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(136, 170, 162, 0.28);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(136, 170, 162, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-shell {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(136, 170, 162, 0.13), transparent 54%),
    var(--surface);
}

.contact-shell h2 {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  line-height: 1.82;
  font-weight: 400;
  letter-spacing: 0;
}

.contact-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(136, 170, 162, 0.38);
  border-radius: 999px;
  background: rgba(136, 170, 162, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(214, 199, 181, 0.46);
  background: rgba(214, 199, 181, 0.11);
  color: var(--warm);
}

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.text-stack .reveal:nth-child(2),
.work-editorial .reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.text-stack .reveal:nth-child(3),
.work-editorial .reveal:nth-child(3) {
  --reveal-delay: 180ms;
}

.text-stack .reveal:nth-child(4),
.work-editorial .reveal:nth-child(4) {
  --reveal-delay: 270ms;
}

.hero-panel {
  --reveal-delay: 160ms;
}

::selection {
  background: rgba(136, 170, 162, 0.28);
  color: white;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .work-editorial {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 66px;
  }

  .nav,
  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 16px auto;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(12, 12, 13, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  }

  .nav-links.is-open {
    display: grid;
    gap: 6px;
  }

  .nav-links a {
    display: block;
    padding: 14px 12px;
    font-size: 1rem;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 46px);
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.9rem);
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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