:root {
  --ink: #17212b;
  --ink-soft: #435161;
  --paper: #f7f4ed;
  --white: #ffffff;
  --teal: #007f83;
  --teal-dark: #07575b;
  --mint: #dcefe7;
  --amber: #d28b20;
  --berry: #7b3157;
  --clay: #c86f3f;
  --line: rgba(23, 33, 43, 0.14);
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.8rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/nebucage-interface.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 24, 31, 0.88), rgba(14, 24, 31, 0.54) 48%, rgba(14, 24, 31, 0.18)),
    linear-gradient(0deg, rgba(14, 24, 31, 0.7), rgba(14, 24, 31, 0.08) 38%);
}

.hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 6.5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
}

.button-primary {
  background: var(--amber);
  color: #1d1305;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #efaa38;
}

.button-secondary {
  border-color: currentColor;
  color: currentColor;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-band {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.intro-copy {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
}

.metrics-row div {
  min-height: 12rem;
  padding: 1.4rem;
  background: var(--white);
}

.metrics-row strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.metrics-row span {
  color: var(--ink-soft);
  font-weight: 700;
}

.program {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
}

.program-nebucage {
  background: var(--white);
}

.program-oxalytic {
  background: #edf6f2;
}

.program-heading {
  max-width: 980px;
}

.program-heading p:not(.eyebrow) {
  max-width: 790px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  margin-top: 2.4rem;
}

.program-layout.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.program-layout.reverse .feature-visual {
  order: 2;
}

.feature-visual,
.program-panel,
.evidence-grid article,
.team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-visual {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-oxalytic .feature-visual img {
  object-fit: contain;
}

.program-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.program-panel > p {
  color: var(--ink-soft);
}

.proof-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.proof-list article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.proof-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.visual-strip figure {
  height: clamp(240px, 28vw, 440px);
  margin: 0;
  overflow: hidden;
  background: var(--white);
}

.visual-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-grid article {
  padding: 1.4rem;
  box-shadow: none;
}

.evidence-grid p {
  color: var(--ink-soft);
}

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

.pipeline h2 {
  max-width: 860px;
}

.pipeline-table {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.pipeline-row {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.35fr 1.1fr;
  border-top: 1px solid var(--line);
}

.pipeline-row:first-child {
  border-top: 0;
}

.pipeline-row span {
  padding: 1.1rem;
  border-left: 1px solid var(--line);
}

.pipeline-row span:first-child {
  border-left: 0;
  font-weight: 800;
}

.pipeline-head {
  color: var(--white);
  background: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.team-intro {
  align-items: end;
}

.team-intro > p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  box-shadow: none;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
}

.team-card > div {
  padding: 1.35rem;
}

.team-kicker,
.team-role {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-kicker {
  color: var(--teal);
}

.team-role {
  color: var(--berry);
}

.team-card h3 {
  margin-bottom: 0.65rem;
}

.team-card p:last-of-type {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.subpage .site-header {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.bio-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding-top: clamp(8rem, 13vw, 11rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.bio-hero h1 {
  max-width: 760px;
}

.bio-summary {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.bio-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.bio-meta {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.bio-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.bio-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 0;
}

.bio-prose {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.bio-prose h2,
.bio-sidebar h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.bio-sidebar {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-self: start;
}

.bio-sidebar ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--teal-dark);
}

.contact-section h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1rem, calc((100vw - var(--max)) / 2));
  color: var(--ink-soft);
  background: var(--white);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0.2rem;
  }

  .section-grid,
  .program-layout,
  .program-layout.reverse,
  .bio-hero,
  .bio-body,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .program-layout.reverse .feature-visual {
    order: 0;
  }

  .metrics-row,
  .evidence-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-table {
    border-radius: 0;
    border-inline: 0;
  }

  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .pipeline-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pipeline-row span:first-child {
    border-top: 0;
  }

  .pipeline-head {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .metrics-row,
  .evidence-grid,
  .team-grid,
  .visual-strip {
    grid-template-columns: 1fr;
  }

  .metrics-row div {
    min-height: auto;
  }

  .feature-visual {
    min-height: 300px;
  }

  .contact-actions,
  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
