/* Section 05 — STATE-OF-THE-ART INFRASTRUCTURE (scoped) */

.infrastructure-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--scroll-offset, 86px);
  overflow-x: hidden;
}

.infrastructure-section .infrastructure-container {
  width: min(1470px, calc(100% - 64px));
  margin-inline: auto;
  padding: 50px 0 0;
}

/* Hero */
.infrastructure-section .infrastructure-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.95fr);
  gap: 55px;
  align-items: start;
}

.infrastructure-section .infrastructure-heading-area {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
}

.infrastructure-section .infrastructure-number {
  font-family: var(--font-display);
  font-size: 116px;
  font-weight: 300;
  line-height: 0.8;
  color: #d0d0cc;
}

.infrastructure-section .infrastructure-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--red);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.infrastructure-section .infrastructure-eyebrow i {
  width: 42px;
  height: 2px;
  background: var(--red);
  display: block;
  flex-shrink: 0;
}

.infrastructure-section .infrastructure-title {
  margin: 16px 0 0;
  max-width: 560px;
  font-family: var(--font-display);
  font-size: clamp(60px, 5.2vw, 88px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--black);
}

.infrastructure-section .red-dot {
  color: var(--red);
}

.infrastructure-section .infrastructure-description {
  max-width: 535px;
  margin: 30px 0 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #333333;
}

.infrastructure-section .infrastructure-hero-image {
  height: 430px;
  overflow: hidden;
}

.infrastructure-section .infrastructure-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02) saturate(0.88);
  transition: transform 500ms ease;
}

.infrastructure-section .infrastructure-hero-image:hover img {
  transform: scale(1.02);
}

/* Capability columns */
.infrastructure-section .infrastructure-capabilities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
  border-top: 1px solid #d7d7d3;
  border-bottom: 1px solid #d7d7d3;
}

.infrastructure-section .infrastructure-capability {
  min-height: 128px;
  padding: 24px 28px;
}

.infrastructure-section .infrastructure-capability + .infrastructure-capability {
  border-left: 1px solid #d7d7d3;
}

.infrastructure-section .infrastructure-capability-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.infrastructure-section .infrastructure-capability-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.infrastructure-section .infrastructure-capability h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #222222;
}

.infrastructure-section .infrastructure-capability p {
  margin: 10px 0 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #444444;
}

/* Full-bleed image strip */
.infrastructure-section .infrastructure-image-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.infrastructure-section .infrastructure-strip-image {
  height: 195px;
  margin: 0;
  overflow: hidden;
}

.infrastructure-section .infrastructure-strip-image + .infrastructure-strip-image {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.infrastructure-section .infrastructure-strip-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(0.9);
  transition: transform 500ms ease;
}

.infrastructure-section .infrastructure-strip-image:hover img {
  transform: scale(1.03);
}

/* Facility spec plate */
.infrastructure-section .infrastructure-spec {
  margin-top: 48px;
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--red);
}

.infrastructure-section .infrastructure-spec-inner {
  width: min(1470px, calc(100% - 64px));
  margin-inline: auto;
}

.infrastructure-section .infrastructure-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  border: 0;
}

.infrastructure-section .infrastructure-metric {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 26px 20px 26px 0;
}

.infrastructure-section .infrastructure-metric + .infrastructure-metric {
  border-left: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  padding-left: 28px;
}

.infrastructure-section .infrastructure-metric-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.infrastructure-section .infrastructure-metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
}

.infrastructure-section .infrastructure-metric-value span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.infrastructure-section .infrastructure-metric-value b {
  color: var(--red);
  font-weight: 600;
  font-size: 0.55em;
}

.infrastructure-section .infrastructure-metric-label {
  margin-top: 6px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 62%, var(--navy));
}

@media (prefers-reduced-motion: reduce) {
  .infrastructure-section .infrastructure-hero-image img,
  .infrastructure-section .infrastructure-strip-image img {
    transition: none;
  }

  .infrastructure-section .infrastructure-hero-image:hover img,
  .infrastructure-section .infrastructure-strip-image:hover img {
    transform: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .infrastructure-section .infrastructure-container,
  .infrastructure-section .infrastructure-spec-inner {
    width: calc(100% - 48px);
  }

  .infrastructure-section .infrastructure-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .infrastructure-section .infrastructure-hero-image {
    max-width: 100%;
  }

  .infrastructure-section .infrastructure-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .infrastructure-section .infrastructure-capability:nth-child(odd) {
    border-left: 0;
  }

  .infrastructure-section .infrastructure-capability:nth-child(even) {
    border-left: 1px solid #d7d7d3;
  }

  .infrastructure-section .infrastructure-image-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .infrastructure-section .infrastructure-strip-image:nth-child(odd) {
    border-left: 0;
  }

  .infrastructure-section .infrastructure-strip-image:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

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

  .infrastructure-section .infrastructure-metric {
    padding: 22px 16px 22px 0;
  }

  .infrastructure-section .infrastructure-metric:nth-child(odd) {
    border-left: 0;
  }

  .infrastructure-section .infrastructure-metric:nth-child(-n + 2) {
    border-bottom: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  }

  .infrastructure-section .infrastructure-metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .infrastructure-section .infrastructure-container {
    width: calc(100% - 32px);
    padding-top: 32px;
  }

  .infrastructure-section .infrastructure-heading-area {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .infrastructure-section .infrastructure-number {
    font-size: 64px;
  }

  .infrastructure-section .infrastructure-description {
    max-width: none;
  }

  .infrastructure-section .infrastructure-hero-image {
    height: 240px;
  }

  .infrastructure-section .infrastructure-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 0;
  }

  .infrastructure-section .infrastructure-capability {
    border-left: 0 !important;
    border-bottom: 1px solid #d7d7d3;
    min-height: auto;
    padding: 16px;
  }

  .infrastructure-section .infrastructure-capability:nth-child(odd) {
    border-right: 1px solid #d7d7d3;
  }

  .infrastructure-section .infrastructure-capability:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .infrastructure-section .infrastructure-capability:nth-child(4):nth-last-child(2) {
    border-bottom: 1px solid #d7d7d3;
  }

  .infrastructure-section .infrastructure-capability-icon {
    width: 32px;
    height: 32px;
  }

  .infrastructure-section .infrastructure-capability h3 {
    font-size: 15px;
  }

  .infrastructure-section .infrastructure-capability p {
    font-size: 11px;
    line-height: 1.4;
  }

  .infrastructure-section .infrastructure-image-strip {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .infrastructure-section .infrastructure-strip-image {
    height: 120px;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .infrastructure-section .infrastructure-strip-image:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }

  .infrastructure-section .infrastructure-strip-image:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .infrastructure-section .infrastructure-strip-image:nth-child(4):nth-last-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .infrastructure-section .infrastructure-strip-image:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .infrastructure-section .infrastructure-spec-inner {
    width: calc(100% - 32px);
  }

  .infrastructure-section .infrastructure-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .infrastructure-section .infrastructure-metric {
    padding: 18px 12px 18px 0;
  }

  .infrastructure-section .infrastructure-metric + .infrastructure-metric {
    padding-left: 16px;
  }

  .infrastructure-section .infrastructure-metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .infrastructure-section .infrastructure-metric-icon {
    width: 24px;
    height: 24px;
  }

  .infrastructure-section .infrastructure-metric-value {
    font-size: clamp(24px, 6.4vw, 30px);
  }

  .infrastructure-section .infrastructure-metric-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}
