:root {
  --bg: #f7f7f4;
  --fg: #141414;
  --muted: #5f6468;
  --line: #d8d8d2;
  --paper: #fff;
  --red: #c4002f;
  --ink: #0d0d0d;
  --blue: #2f5d7c;
  --green: #4f6f52;
  --gold: #a87423;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #0067c5;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 8px 44px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.institution {
  display: flex;
  align-items: center;
  width: 112px;
  min-height: 54px;
  padding: 9px 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border-bottom: 2px solid transparent;
  color: #333;
  font-size: 14px;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--red);
  color: var(--ink);
}

main [id] {
  scroll-margin-top: 94px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  gap: 38px;
  align-items: center;
  padding: 62px 44px 42px;
  background: #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  max-width: 720px;
  padding: 38px 0 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(45px, 5.2vw, 76px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.22;
}

.intro {
  max-width: 660px;
  margin-bottom: 30px;
  color: #333;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-left: 10px solid var(--red);
  background: #111;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
}

.status-band div {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.status-band strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.status-band span {
  display: block;
  max-width: 260px;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.4;
}

.section {
  padding: 76px 44px;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: 50px;
  background: var(--paper);
}

.section-copy {
  max-width: 840px;
  color: #2f3337;
  font-size: 18px;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1160px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 850px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}

.pipeline div {
  position: relative;
  min-height: 118px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
}

.pipeline div::after {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 28px;
  height: 2px;
  background: var(--red);
  content: "";
}

.work-grid,
.four-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.work-grid {
  margin-bottom: 22px;
}

.work-grid article,
.four-grid article,
.team-grid article,
.two-grid article,
.application-list article {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.work-grid article {
  min-height: 320px;
  padding: 22px;
  border-top: 4px solid var(--red);
}

.work-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.work-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.work-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.work-grid span,
.application-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.work-grid small,
.application-list small,
.team-grid small {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.work-grid p,
.application-list p,
.four-grid p,
.team-grid p,
.two-grid p,
.two-grid li,
.contact p {
  color: #3f4549;
  font-size: 15px;
  line-height: 1.55;
}

.application-list {
  display: grid;
  gap: 10px;
}

.application-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(130px, 0.22fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
}

.application-list article span,
.application-list article small {
  margin-bottom: 0;
}

.operations {
  background: #ededeb;
}

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.two-grid article,
.four-grid article,
.team-grid article {
  padding: 24px;
}

.two-grid ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.status-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 8px;
  border: 1px solid #e4a2b2;
  border-radius: 999px;
  color: #9d0025;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-tag.inverse {
  border-color: #777;
  color: #fff;
}

.advisory {
  background: #151515;
  color: #fff;
}

.advisory h2 {
  color: #fff;
}

.contact {
  justify-content: space-between;
  padding: 72px 44px;
  background: var(--red);
  color: #fff;
}

.contact > div {
  max-width: 820px;
}

.contact .eyebrow,
.contact p {
  color: #fff;
}

.contact h2 {
  max-width: 820px;
  margin-bottom: 20px;
}

.contact .button {
  border-color: #fff;
  background: #fff;
  color: #8d001f;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 44px;
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #ddd;
  font-size: 13px;
}

.site-footer nav a {
  color: #fff;
}

.legal-page,
.error-page {
  min-height: calc(100vh - 160px);
  padding: 80px max(18px, calc((100vw - 860px) / 2));
  background: #fff;
}

.legal-page h1,
.error-page h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 72px);
}

.legal-page h2 {
  margin: 42px 0 14px;
  font-size: 28px;
}

.legal-page p,
.error-page p {
  max-width: 760px;
  color: #3f4549;
  font-size: 18px;
  line-height: 1.7;
}

.legal-page a:not(.button),
.error-page a:not(.button) {
  color: #8d001f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

  .status-band,
  .work-grid,
  .four-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 74px;
  }

  .brand {
    flex: 1;
  }

  .menu-ready .menu-toggle {
    display: inline-flex;
  }

  .menu-ready #primary-navigation:not([hidden]) {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .menu-ready #primary-navigation a {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 8px 18px;
  }

  .brand {
    min-width: 0;
  }

  .institution {
    width: 94px;
    min-height: 50px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-ready #primary-navigation:not([hidden]) {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero,
  .section,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero-copy {
    padding: 12px 0 20px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .intro {
    font-size: 18px;
  }

  .status-band,
  .work-grid,
  .four-grid,
  .team-grid,
  .two-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .status-band div,
  .pipeline div,
  .work-grid article {
    min-height: auto;
  }

  .application-list article {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .legal-page,
  .error-page {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

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