:root {
  color-scheme: dark;
  --bg: #050606;
  --bg-2: #090d0f;
  --panel: #0d1315;
  --panel-2: #11191c;
  --ink: #f4f7f8;
  --muted: #9ba8ad;
  --soft: #c8d2d6;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #eef1f2;
  --accent-soft: #b8c2c6;
  --accent-dim: #6f777b;
  --black: #000;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

main,
section,
article,
div,
figure,
h1,
h2,
h3,
p {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.capability-grid a,
.industry-grid a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 84px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.94), rgba(5, 6, 6, 0.58));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: clamp(210px, 16vw, 286px);
  background: transparent !important;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent !important;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a,
.header-cta,
.button {
  text-decoration: none;
}

.header-cta,
.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-cta,
.button.primary,
.contact-form button {
  border-color: transparent;
  color: var(--black);
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle-btn:focus-visible,
.video-toggle:focus-visible,
.nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
.contact-form button:focus-visible,
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(18px, 5vw, 72px) 38px;
  isolation: isolate;
}

.hero-poster,
.hero-video,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster,
.hero-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.hero-poster {
  transition: opacity 420ms ease;
}

.hero-video {
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-video-ready .hero-video {
  opacity: 1;
}

.hero-video-ready .hero-poster {
  opacity: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.72) 45%, rgba(5, 6, 6, 0.18)),
    linear-gradient(0deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.16) 58%);
}

.hero-grid {
  z-index: 2;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1040px;
  padding-bottom: clamp(42px, 9vh, 86px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1110px;
  margin-bottom: 26px;
  font-size: clamp(3.8rem, 8.8vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6.4vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

p {
  color: var(--muted);
  line-height: 1.62;
  overflow-wrap: break-word;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  color: #dce5e8;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

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

.hero-proof {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.hero-proof div {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(5, 6, 6, 0.48);
}

.hero-proof span,
.industry-grid span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-proof strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-proof p {
  max-width: 280px;
  margin-bottom: 0;
}

.mission,
.capabilities,
.industries,
.systems,
.case-studies,
.team-section,
.process,
.credentials,
.contact {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: end;
  background: var(--bg);
}

.mission .section-kicker {
  grid-column: 1 / -1;
}

.mission h2 {
  margin-bottom: 0;
}

.mission p:last-child {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

.section-heading p:last-child {
  max-width: 660px;
}

.capabilities {
  background: var(--panel);
}

.capability-grid,
.process-steps,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid a,
.process-steps div,
.credential-card {
  min-height: 240px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.capability-grid span,
.process-steps span {
  display: block;
  margin-bottom: 58px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.industries {
  background: var(--bg);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.industry-grid a {
  min-height: 520px;
  display: grid;
  grid-template-rows: 260px 1fr;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.industry-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.12) brightness(0.78);
}

.industry-grid a > div {
  padding: 26px;
}

.capability-grid a:hover,
.industry-grid a:hover {
  background: rgba(255, 255, 255, 0.075);
}

.industry-grid a:hover img {
  filter: saturate(0.95) contrast(1.12) brightness(0.9);
}

.subpage-hero {
  min-height: 74svh;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
}

.subpage-hero .hero-content {
  max-width: 1180px;
  padding-bottom: 0;
}

.subpage-hero h1 {
  max-width: 1040px;
  font-size: clamp(3.05rem, 6.2vw, 6.65rem);
  line-height: 0.94;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
}

.subpage-media {
  padding: 0 clamp(18px, 5vw, 72px) clamp(72px, 10vw, 132px);
  background: var(--bg);
}

.subpage-media img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.08);
}

.detail-section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.subpage-cta {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(5, 6, 6, 0)),
    var(--bg);
}

.subpage-cta h2 {
  max-width: 980px;
}

.subpage-cta p:not(.section-kicker) {
  max-width: 620px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1fr);
  gap: clamp(32px, 7vw, 90px);
}

.detail-section h2 {
  max-width: 680px;
  font-size: clamp(2.15rem, 4.2vw, 4.75rem);
  line-height: 1;
}

.detail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-list li {
  padding: 22px;
  background: var(--bg);
  color: var(--soft);
  line-height: 1.55;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.related-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.systems {
  background: var(--panel);
}

.system-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  min-height: 520px;
  background: var(--bg);
}

.system-feature-large {
  min-height: 680px;
}

.system-feature.reverse {
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
}

.system-feature.reverse img,
.system-feature.reverse .system-media {
  order: 2;
}

.system-feature img,
.system-media {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.system-feature img {
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}

.system-media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

.system-media img,
.system-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.system-video {
  opacity: 0;
  transition: opacity 420ms ease;
}

.system-media.is-video-ready .system-video {
  opacity: 1;
}

.system-media.is-video-ready .system-poster {
  opacity: 0;
}

.system-feature div {
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 58px);
}

.process {
  background: var(--bg);
}

.case-studies,
.case-study-page {
  background: var(--panel);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-study-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  min-height: 520px;
  color: inherit;
  text-decoration: none;
  background: var(--bg);
}

.case-study-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.8);
}

.case-study-card div {
  display: grid;
  align-content: end;
  padding: 28px;
}

.case-study-card span {
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-card:hover {
  background: rgba(255, 255, 255, 0.075);
}

.case-study-card:hover img {
  filter: saturate(0.95) contrast(1.12) brightness(0.9);
}

.case-study-button {
  margin-top: 10px;
}

.team-hero {
  min-height: 64svh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(5, 6, 6, 0)),
    var(--bg);
}

.team-section {
  background: var(--panel);
}

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

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  background: var(--bg);
}

.team-card-lead {
  grid-column: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.team-card > div:last-child {
  display: grid;
  align-content: end;
  padding: clamp(22px, 3vw, 34px);
}

.team-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    var(--black);
}

.team-card-lead .team-photo {
  min-height: 0;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.9);
}

.team-photo span {
  color: rgba(255, 255, 255, 0.2);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: 0;
}

.team-photo:not(.is-missing) span {
  display: none;
}

.team-card h3 {
  font-size: clamp(1.6rem, 2.35vw, 2.65rem);
}

.team-card p:not(.section-kicker) {
  max-width: 520px;
}

.case-hero {
  min-height: 58svh;
}

.case-index {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background: rgba(5, 6, 6, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.case-index a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-inline: 1px solid transparent;
}

.case-index a:hover,
.case-index a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.case-study-page {
  display: grid;
  gap: 1px;
  padding: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.case-study-detail {
  scroll-margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.9fr);
  align-items: start;
  border: 1px solid var(--line);
  background: var(--bg);
}

.case-study-detail.reverse {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 0.95fr);
}

.case-study-detail.reverse > img,
.case-study-detail.reverse > .case-media {
  order: 2;
}

.case-study-detail > img,
.case-media {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.case-study-detail > img {
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.84);
}

.case-media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

.case-media img,
.case-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-media.is-video-ready .system-video {
  opacity: 1;
}

.case-media.is-video-ready .system-poster {
  opacity: 0;
}

.case-copy {
  display: grid;
  align-content: start;
  padding: clamp(24px, 4vw, 46px);
}

.case-copy h2 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.2vw, 3.75rem);
  line-height: 0.96;
}

.case-copy h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  letter-spacing: 0.08em;
}

.case-copy p {
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.56;
}

.case-results {
  display: grid;
  gap: 1px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-results li {
  padding: 13px 16px;
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.035);
}

.credentials {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(5, 6, 6, 0)),
    var(--panel);
}

.credentials .section-heading p:last-child {
  max-width: 620px;
}

.heritage-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 1px;
  margin-bottom: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.heritage-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.84);
}

.heritage-panel div {
  display: grid;
  align-content: end;
  padding: clamp(24px, 5vw, 48px);
  background: var(--bg);
}

.credential-card {
  display: grid;
  align-content: end;
  min-height: 300px;
}

.credential-card img {
  width: 104px;
  height: 104px;
  margin-bottom: 34px;
  object-fit: contain;
  background: var(--white);
}

.credential-card.logo-card img {
  width: min(100%, 260px);
  height: auto;
}

.credential-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.credential-card span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 7vw, 90px);
  background: var(--bg);
}

.final-cta {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(5, 6, 6, 0)),
    var(--panel);
}

.final-cta h2 {
  max-width: 1040px;
}

.final-cta p:not(.section-kicker) {
  max-width: 620px;
}

.contact-copy {
  display: grid;
  align-content: start;
}

address {
  margin-top: 30px;
  color: var(--soft);
  font-style: normal;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 12px;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.34);
}

.contact-form select {
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8d2d6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  background-origin: content-box;
}

.contact-form textarea {
  resize: vertical;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--black);
}

@media (max-width: 1080px) {
  .site-header {
    position: sticky;
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .brand {
    width: clamp(176px, 34vw, 232px);
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
  }

  .header-cta {
    justify-self: end;
  }

  .mission,
  .contact,
  .heritage-panel,
  .system-feature,
  .system-feature.reverse {
    grid-template-columns: 1fr;
  }

  .system-feature.reverse img,
  .system-feature.reverse .system-media {
    order: 0;
  }

  .capability-grid,
  .case-study-grid,
  .team-grid,
  .process-steps,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card-lead {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 12px;
  }

  .brand {
    width: 132px;
  }

  .site-header.nav-ready .nav-toggle-btn {
    display: inline-flex;
    justify-self: end;
  }

  .header-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 10px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .nav {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .nav a {
    min-width: 0;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-ready .nav,
  .site-header.nav-ready .header-cta {
    display: none;
  }

  .site-header .nav-toggle-btn[aria-expanded="true"] ~ .nav {
    display: grid;
  }

  .site-header .nav-toggle-btn[aria-expanded="true"] ~ .header-cta {
    display: inline-flex;
  }

  .nav-toggle-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    align-items: start;
    overflow: visible;
    padding: 84px 28px 20px 16px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.94rem, 8.6vw, 2.16rem);
    line-height: 1.02;
    text-wrap: pretty;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.02rem);
    line-height: 1.04;
    text-wrap: pretty;
  }

  h3 {
    max-width: 100%;
    font-size: clamp(1.22rem, 5.8vw, 1.48rem);
    line-height: 1.05;
    text-wrap: pretty;
  }

  p,
  li {
    max-width: 100%;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 28ch;
    font-size: 1rem;
  }

  .hero-content h1,
  .mission h2,
  .section-heading h2,
  .subpage-hero h1,
  .detail-section h2,
  .subpage-cta h2,
  .case-copy h2 {
    max-width: 11ch;
  }

  .hero-content h1 {
    max-width: 18ch;
  }

  .hero-content p,
  .mission p,
  .section-heading p,
  .subpage-hero p,
  .detail-section p,
  .subpage-cta p,
  .case-copy p,
  .contact-copy p,
  .final-cta p,
  .detail-list li,
  .case-results li {
    max-width: 28ch;
  }

  .hero-content {
    margin-top: 96px;
    padding-bottom: 34px;
  }

  .hero-proof,
  .capability-grid,
  .industry-grid,
  .process-steps,
  .credential-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    border-left: 0;
  }

  .hero-proof div {
    min-height: auto;
  }

  .mission,
  .capabilities,
  .industries,
  .systems,
  .case-studies,
  .team-section,
  .process,
  .credentials,
  .contact,
  .final-cta {
    padding-left: 16px;
    padding-right: 28px;
  }

  .case-index {
    position: static;
    padding-left: 16px;
    padding-right: 28px;
  }

  .case-study-grid,
  .case-study-detail,
  .case-study-detail.reverse {
    grid-template-columns: 1fr;
  }

  .case-study-card {
    min-height: auto;
    grid-template-rows: 220px auto;
  }

  .case-study-grid {
    display: flex;
    flex-direction: column;
  }

  .case-study-card {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .case-study-card img {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .case-study-card div {
    display: block;
    flex: 0 0 auto;
  }

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

  .team-card,
  .team-card-lead {
    grid-column: auto;
    min-height: auto;
  }

  .team-photo,
  .team-card-lead .team-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .case-study-detail.reverse > img,
  .case-study-detail.reverse > .case-media {
    order: 0;
  }

  .case-study-page {
    padding-left: 16px;
    padding-right: 28px;
  }

  .case-study-detail > img,
  .case-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .industry-grid a {
    min-height: auto;
    grid-template-rows: 220px auto;
  }

  .industry-grid {
    display: flex;
    flex-direction: column;
  }

  .industry-grid a {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .industry-grid img {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .industry-grid a > div {
    display: block;
    flex: 0 0 auto;
  }

  .system-feature img,
  .system-media {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .system-stack {
    display: flex;
    flex-direction: column;
  }

  .system-feature,
  .system-feature.reverse {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
  }

  .system-feature img {
    flex: 0 0 auto;
  }

  .system-media {
    flex: 0 0 auto;
  }

  .system-feature div {
    display: block;
    flex: 0 0 auto;
  }

  .heritage-panel img {
    height: 260px;
  }

  .capability-grid a,
  .process-steps div,
  .credential-card {
    min-height: auto;
  }

  .subpage-hero {
    min-height: auto;
    padding: 92px 28px 48px 16px;
  }

  .subpage-hero h1 {
    font-size: clamp(1.78rem, 7.8vw, 2.08rem);
    line-height: 1.05;
  }

  .detail-section h2,
  .subpage-cta h2,
  .case-copy h2 {
    font-size: clamp(1.62rem, 7vw, 1.92rem);
    line-height: 1.06;
  }

  .subpage-hero p:not(.eyebrow),
  .team-section .section-heading p {
    width: 100%;
    max-width: 100%;
  }

  .subpage-hero .hero-content,
  .team-section .section-heading {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .subpage-media,
  .detail-section,
  .subpage-cta {
    padding-left: 16px;
    padding-right: 28px;
  }

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

  .detail-list li,
  .case-results li {
    padding-right: 24px;
  }

  .related-links a {
    max-width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .capability-grid span,
  .process-steps span {
    margin-bottom: 28px;
  }

  footer {
    display: grid;
  }
}

@supports (-webkit-touch-callout: none) {
  .hero {
    position: relative;
    overflow: hidden;
  }

  .hero > .hero-poster,
  .hero > .hero-video,
  .hero > .hero-overlay,
  .hero > .hero-grid {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero > .hero-poster,
  .hero > .hero-video {
    display: block !important;
    object-fit: cover;
  }

  .hero > .hero-content,
  .hero > .hero-proof {
    position: relative;
    z-index: 3;
  }
}

/* Progressive enhancement: navigation stays visible if JavaScript is unavailable. */
[hidden] {
  display: none !important;
}

.system-media .video-toggle,
.case-media .video-toggle,
.system-media .video-fallback,
.case-media .video-fallback {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  text-align: center;
  background: rgba(5, 6, 6, 0.9);
}

.video-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-poster,
  .hero-video,
  .system-video,
  .nav-toggle-btn span { transition: none; }
}
