/* Slide 11 (software as infrastructure) visual refinement. Navy background without the green tint, two columns:
   the platform statement on the left, five software modules on the right. Entrance motion runs while
   #infrastructure.infra-run is present (set by infrastructure-visual.js). Opacity and transform only. */

#infrastructure.infra-section {
  display: block;
  background:
    radial-gradient(ellipse at 72% 38%, rgba(54, 92, 128, 0.16), transparent 58%),
    linear-gradient(180deg, #0b1420 0%, #132235 100%);
}

#infrastructure.infra-section::before,
#infrastructure.infra-section::after {
  display: none;
}

#infrastructure > .section-kicker {
  position: absolute;
  left: 5vw;
  top: 110px;
}

#infrastructure .in-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7vw;
  align-items: center;
  width: min(100%, 1280px);
  margin: 0 auto;
}

#infrastructure .in-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 3.9vw, 3.9rem);
  line-height: 1.02;
  color: #f3f5f6;
}

#infrastructure .in-copy h2 em {
  color: #8edbc8;
  font-style: normal;
}

#infrastructure .in-status {
  display: flex;
  gap: 8px;
}

#infrastructure .in-intro {
  max-width: 520px;
  margin: 0;
  color: #b4c3cb;
  font-size: 15px;
  line-height: 1.6;
}

/* Deployment note: visible, secondary, not a warning block. */
#infrastructure .in-note {
  max-width: 520px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(142, 219, 200, 0.14);
}

#infrastructure .in-note-label {
  display: block;
  margin-bottom: 6px;
  color: #8edbc8;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

#infrastructure .in-note p {
  margin: 0;
  color: #8ea5b0;
  font-size: 12px;
  line-height: 1.55;
}

/* Modules: five cards in order, each icon, number, title and one line. */
#infrastructure .in-modules {
  margin: 0;
  padding: 0;
  list-style: none;
}

#infrastructure .in-mod {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  padding: 14px 18px 14px 18px;
  margin-bottom: 8px;
  border: 1px solid rgba(142, 219, 200, 0.14);
  background: rgba(19, 34, 53, 0.42);
}

#infrastructure .in-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: #8edbc8;
}

#infrastructure .in-mod-num {
  grid-column: 2;
  grid-row: 1;
  color: #8edbc8;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

#infrastructure .in-mod h3 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #f3f5f6;
  font-size: 16px;
  line-height: 1.25;
}

#infrastructure .in-mod p {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  color: #b4c3cb;
  font-size: 12.5px;
  line-height: 1.45;
}

/* Entrance motion (gated by infra-run). */
@keyframes in-title {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes in-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes in-mod {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

#infrastructure.infra-run .in-copy h2 {
  animation: in-title 0.55s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

#infrastructure.infra-run .eyebrow,
#infrastructure.infra-run .in-status {
  animation: in-fade 0.5s ease-out 0.05s both;
}

#infrastructure.infra-run .in-intro {
  animation: in-fade 0.5s ease-out 0.3s both;
}

#infrastructure.infra-run .in-mod {
  animation: in-mod 0.4s ease-out both;
}
#infrastructure.infra-run .in-mod:nth-child(1) { animation-delay: 0.2s; }
#infrastructure.infra-run .in-mod:nth-child(2) { animation-delay: 0.32s; }
#infrastructure.infra-run .in-mod:nth-child(3) { animation-delay: 0.44s; }
#infrastructure.infra-run .in-mod:nth-child(4) { animation-delay: 0.56s; }
#infrastructure.infra-run .in-mod:nth-child(5) { animation-delay: 0.68s; }

#infrastructure.infra-run .in-note {
  animation: in-fade 0.5s ease-out 1.2s both;
}

@media (prefers-reduced-motion: reduce) {
  #infrastructure.infra-run,
  #infrastructure.infra-run * {
    animation: none !important;
  }
}

/* Phones: title and intro first, then the five modules as compact rows. */
@media (max-width: 800px) {
  #infrastructure.infra-section {
    padding-top: 118px;
    padding-bottom: 96px;
  }

  #infrastructure .in-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  #infrastructure .in-copy h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin: 10px 0 12px; }
  #infrastructure .in-intro { font-size: 13px; line-height: 1.5; }
  #infrastructure .in-note { margin-top: 16px; padding-top: 10px; }
  #infrastructure .in-note p { font-size: 11px; }

  #infrastructure .in-mod {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #infrastructure .in-icon { width: 22px; height: 22px; }
  #infrastructure .in-mod h3 { font-size: 14px; }
  #infrastructure .in-mod p { font-size: 11.5px; }
}
