:root {
  --bg: #f7f6f1;
  --paper: #ffffff;
  --ink: #141615;
  --muted: #66706b;
  --line: #d9ddd6;
  --teal: #0f6f66;
  --copper: #b9652d;
  --blue: #315f86;
  --shadow: 0 18px 50px rgba(20, 22, 21, 0.09);
  --header-height: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(217, 221, 214, 0.8);
  background: #ffffff;
  padding: 12px 32px;
  backdrop-filter: blur(16px);
}

.brand {
  position: absolute;
  top: 12px;
  left: 32px;
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 126px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}

.nav-link {
  border: 1px solid transparent;
  padding: 11px 17px;
  color: var(--muted);
  font-size: 1.29rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  padding: 104px clamp(20px, 6vw, 80px);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: clamp(64px, 12vh, 120px);
  background: #101514;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 15, 14, 0.86), rgba(12, 15, 14, 0.42) 45%, rgba(12, 15, 14, 0.1)),
    linear-gradient(0deg, rgba(12, 15, 14, 0.72), rgba(12, 15, 14, 0.02) 45%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2bd79;
}

.section-title {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 15vw, 9.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font-weight: 750;
  text-decoration: none;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.intro-strip > div {
  min-height: 132px;
  border-right: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 56px);
}

.intro-strip > div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 850;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

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

.intro-section .section-copy {
  max-width: 860px;
}

.section-copy p,
.section-heading p,
.contact-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
}

.media-panel {
  width: min(100%, 42em);
  background: var(--paper);
  box-shadow: var(--shadow);
}

#about {
  grid-template-columns: minmax(0, 0.75fr) minmax(384px, 1.2fr);
}

#about .media-panel {
  width: min(100%, 50.4em);
}

.about-vision-image {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.media-panel video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #161a19;
  object-fit: cover;
}

.caption {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.outcomes-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(49, 95, 134, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f8f3 0%, var(--paper) 100%);
}

.outcomes-section .section-heading {
  grid-template-columns: 1fr;
  margin-bottom: 44px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.outcome-card {
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 28px;
  box-shadow: var(--shadow);
}

.outcome-pavilion {
  order: 1;
}

.outcome-camls {
  order: 2;
}

.outcome-arms {
  order: 3;
}

.outcome-autonomy {
  order: 4;
}

.outcome-digital-twin {
  order: 5;
}

.outcome-demonstrations {
  order: 6;
}

.outcome-card h3 {
  margin: 18px 0 0;
}

.outcome-details {
  width: fit-content;
}

.outcome-details summary {
  cursor: pointer;
  list-style: none;
}

.outcome-details summary::-webkit-details-marker {
  display: none;
}

.outcome-details summary:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(15, 111, 102, 0.35);
  outline-offset: 4px;
}

.outcome-details p {
  margin: 0;
  padding-top: 18px;
  color: var(--muted);
}

.outcome-icon {
  display: inline-flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 111, 102, 0.2);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 111, 102, 0.1), rgba(185, 101, 45, 0.1));
  color: var(--teal);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.outcome-details summary:hover .outcome-icon,
.outcome-details[open] .outcome-icon {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.outcome-icon svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-packages-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

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

.work-package-item {
  border: 1px solid var(--line);
  background: #fbfbf8;
}

.work-package-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 22px 56px 22px 24px;
  font-size: 1.05rem;
  font-weight: 750;
}

.work-package-item summary::-webkit-details-marker {
  display: none;
}

.work-package-item summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--teal);
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
}

.work-package-item[open] summary::after {
  content: "-";
}

.work-package-item p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 24px 22px;
  color: var(--muted);
}

.work-package-item[open] p {
  padding-top: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.result-card {
  min-height: 280px;
  background: var(--paper);
  padding: 28px;
}

.result-index {
  display: block;
  margin-bottom: 64px;
  color: var(--blue);
  font-weight: 850;
}

.result-card p,
.news-item p {
  margin: 0;
  color: var(--muted);
}

.news-section {
  background:
    linear-gradient(90deg, rgba(15, 111, 102, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 102, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
}

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

.news-item {
  display: grid;
  grid-template-columns: 180px minmax(200px, 0.55fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.news-item time {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.news-item h3 a {
  text-decoration-color: rgba(15, 111, 102, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.news-item h3 a:hover {
  color: var(--teal);
}

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

.contact-actions {
  display: flex;
  align-items: flex-start;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 5vw, 64px);
}

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

.teams-section .section-heading {
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

.team-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  padding: clamp(24px, 4vw, 40px);
}

.team-preview p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.team-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
}

.team-logos img {
  width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.team-logos img:first-child {
  max-height: 152px;
}

.team-logos img:nth-child(2) {
  max-height: 69px;
}

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

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

.team-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
}

.team-card > a {
  display: block;
}

.team-photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  background:
    linear-gradient(135deg, rgba(15, 111, 102, 0.08), rgba(49, 95, 134, 0.08)),
    var(--bg);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}

.team-card h3,
.team-role-card h3 {
  margin-top: 18px;
}

.team-card p,
.team-role-card p {
  margin: 0;
  color: var(--muted);
}

.team-card .placeholder-label,
.team-role-card .placeholder-label {
  margin-top: 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.team-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-role-card {
  min-height: 220px;
  border: 1px solid var(--line);
  background: #fbfbf8;
  padding: 24px;
}

.team-role-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.team-role-slot {
  border: 1px dashed var(--line);
  padding: 14px 16px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 6vw, 80px) 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.eic-logo {
  display: block;
  width: min(520px, 100%);
  margin-top: 28px;
  margin-left: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-header {
    min-height: var(--header-height);
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand {
    left: 18px;
  }

  .brand img {
    height: 96px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 0;
    background: transparent;
    padding: 0;
  }

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

  .nav-link {
    padding: 11px 14px;
    font-size: 1.29rem;
  }

  .intro-strip,
  .split-section,
  .section-heading,
  .result-grid,
  .outcomes-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  #about {
    grid-template-columns: 1fr;
  }

  .intro-strip > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip > div:last-child {
    border-bottom: 0;
  }

  .contact-actions {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    padding-left: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .team-grid,
  .team-role-grid,
  .team-preview {
    grid-template-columns: 1fr;
  }

  .team-logos {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 104px;
  }

  .brand img {
    height: 84px;
  }

  .site-nav {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 18px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 94px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .team-logos {
    grid-template-columns: 1fr;
  }

  .team-logos img {
    max-height: 74px;
  }

  .team-logos img:first-child {
    max-height: 130px;
  }

  .team-logos img:nth-child(2) {
    max-height: 59px;
  }

  .eic-logo {
    margin-right: auto;
  }
}
