:root {
  --ink: #14191f;
  --ink-soft: #3f4b56;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --mist: #edf3f1;
  --line: #d9dfdc;
  --teal: #146b68;
  --teal-deep: #0e4f4d;
  --rust: #a64f2c;
  --amber: #c7902f;
  --blue: #2f5f8f;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(20, 25, 31, 0.14);
  --max-width: 1120px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.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;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--white);
  background: rgba(20, 25, 31, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

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

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

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

.hero-media {
  background-image: url("assets/embodied-control-field.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    rgba(20, 25, 31, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 148px 0 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5.25rem;
  line-height: 0.96;
  font-weight: 850;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.1);
}

.intro-band {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 42px 0;
}

.intro-copy {
  max-width: 900px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.contact-layout h2 {
  max-width: 780px;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  font-weight: 820;
}

.section-heading p:not(.section-kicker) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.research-card {
  min-height: 282px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 25, 31, 0.06);
}

.card-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.research-card:nth-child(2) .card-index {
  background: var(--blue);
}

.research-card:nth-child(3) .card-index {
  background: var(--rust);
}

.research-card:nth-child(4) .card-index {
  color: var(--ink);
  background: var(--amber);
}

.research-card h3,
.system-list h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.research-card p,
.system-list p,
.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
}

.system-band {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.system-list {
  display: grid;
  gap: 14px;
}

.system-list article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--rust);
  font-weight: 800;
}

.contact-band {
  padding: 72px 0;
  color: var(--white);
  background: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  padding: 24px 0;
  color: var(--ink-soft);
  background: var(--paper);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.footer-layout p {
  margin: 0;
}

@media (max-width: 960px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-links {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    padding: 18px 20px 26px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .site-nav a {
    min-height: 48px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    padding: 130px 0 52px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-lede {
    font-size: 1.12rem;
  }

  .intro-grid,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .contact-layout h2 {
    font-size: 2rem;
  }

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

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

  .card-index {
    margin-bottom: 22px;
  }

  .footer-layout {
    display: grid;
  }
}

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

  .hero h1 {
    font-size: 3.25rem;
  }

  .button {
    width: 100%;
  }
}

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