.systems-nav a {
  white-space: nowrap;
}

.systems-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #172a37;
}

.systems-hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  grid-auto-rows: 190px;
  gap: 10px;
  padding: 14px;
  transform: scale(1.04);
}

.systems-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: .86;
}

.systems-hero-media img:nth-child(1),
.systems-hero-media img:nth-child(4) {
  grid-row: span 2;
}

.systems-hero-media img:nth-child(3),
.systems-hero-media img:nth-child(5) {
  grid-column: span 2;
}

.systems-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 30, 42, .98), rgba(14, 30, 42, .78) 48%, rgba(14, 30, 42, .3)),
    linear-gradient(180deg, rgba(14, 30, 42, .18), rgba(14, 30, 42, .82));
}

.systems-hero-content {
  position: relative;
  z-index: 2;
  padding: 82px 0 92px;
}

.systems-hero h1 {
  max-width: 890px;
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.systems-summary {
  position: relative;
  z-index: 3;
  margin-top: -36px;
}

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

.systems-summary article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(216, 223, 217, .94);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.systems-summary strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.systems-summary span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 760;
}

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

.index-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 33, 43, .06);
}

.index-grid a:hover,
.index-grid a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(21, 92, 143, .45);
  box-shadow: 0 14px 28px rgba(21, 92, 143, .14);
  outline: none;
}

.index-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.index-grid a:nth-child(4n + 2) span {
  background: var(--teal);
}

.index-grid a:nth-child(4n + 3) span {
  background: var(--green);
}

.index-grid a:nth-child(4n) span {
  background: var(--gold);
}

.index-grid strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.index-grid small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.systems-band {
  background: #e9efeb;
}

.system-detail {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.system-detail:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.system-detail.reverse {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
}

.system-detail.reverse .system-copy {
  order: 2;
}

.system-detail.reverse .visual-stack {
  order: 1;
}

.system-copy h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.system-copy p:not(.chapter-label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.feature-card-grid div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
}

.systems-band .feature-card-grid div {
  background: rgba(255, 255, 255, .94);
}

.feature-card-grid strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.feature-card-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.visual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visual-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  background: #dfe8e5;
  box-shadow: 0 12px 28px rgba(23, 33, 43, .1);
}

.visual-stack .visual-large {
  grid-column: span 2;
  aspect-ratio: 16 / 8.6;
}

.visual-mosaic img {
  filter: saturate(.96) contrast(1.02);
}

.ha-section {
  color: #fff;
  background: #23313d;
}

.ha-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.ha-section .section-head p:not(.kicker) {
  color: rgba(255, 255, 255, .76);
}

.ha-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ha-cards article {
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.ha-cards span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.ha-cards article:nth-child(2) span {
  background: var(--gold);
}

.ha-cards article:nth-child(3) span {
  background: var(--blue);
}

.ha-cards article:nth-child(4) span {
  background: var(--green);
}

.ha-cards h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
}

.ha-cards p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
}

.ha-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ha-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: #172a37;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.final-cta div {
  max-width: 800px;
}

.final-cta h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.18;
}

.final-cta p:not(.kicker) {
  margin: 10px 0 0;
  color: var(--muted);
}

.final-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .systems-summary-grid,
  .index-grid,
  .ha-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-detail,
  .system-detail.reverse,
  .ha-layout {
    grid-template-columns: 1fr;
  }

  .system-detail.reverse .system-copy,
  .system-detail.reverse .visual-stack {
    order: initial;
  }
}

@media (max-width: 740px) {
  .systems-hero {
    min-height: 700px;
  }

  .systems-hero-media {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    grid-auto-rows: 138px;
    opacity: .9;
  }

  .systems-hero-media img:nth-child(3),
  .systems-hero-media img:nth-child(5) {
    grid-column: auto;
  }

  .systems-hero-scrim {
    background:
      linear-gradient(180deg, rgba(14, 30, 42, .98), rgba(14, 30, 42, .82) 58%, rgba(14, 30, 42, .62)),
      linear-gradient(90deg, rgba(14, 30, 42, .86), rgba(14, 30, 42, .5));
  }

  .systems-hero-content {
    padding: 58px 0 72px;
  }

  .systems-hero h1 {
    font-size: 37px;
  }

  .systems-summary {
    margin-top: -28px;
  }

  .systems-summary-grid,
  .index-grid,
  .feature-card-grid,
  .visual-stack,
  .ha-cards,
  .ha-gallery {
    grid-template-columns: 1fr;
  }

  .visual-stack .visual-large {
    grid-column: auto;
  }

  .system-detail {
    padding: 28px 0;
  }

  .system-copy h3,
  .final-cta h2 {
    font-size: 28px;
  }

  .final-cta {
    display: block;
  }

  .final-cta a {
    width: 100%;
    margin-top: 16px;
  }
}
