/* ---------- Platform page ---------- */
.page-head {
  position: relative;
  z-index: 3;
  background: transparent;
}
.page-head .nav-wrap { padding: 20px 0 20px; }
.page-head .utility { padding-left: 0; padding-right: 0; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 65%);
  color: var(--cream);
  padding: 76px 48px 92px;
}
.page-hero-inner { max-width: 1320px; margin: 0 auto; }
.page-eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  max-width: 20ch;
}
.page-hero p {
  font-size: 18px; line-height: 1.65;
  color: rgba(250,250,250,0.88);
  max-width: 62ch;
  margin-bottom: 34px;
}

/* ---------- Module rows ---------- */
.modules { background: var(--cream); padding: 88px 48px 96px; }
.mod-wrap {
  max-width: 1320px; margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E3E7F0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(10,17,48,0.4);
}

.mod-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #E9EDF5;
}
.mod-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 46px 46px;
}
.mod-row:last-child { border-bottom: 0; }
/* every other row flips: interface left, context right */
.mod-row:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.mod-row:nth-child(even) .mod-copy { order: 2; }
.mod-row:nth-child(even) .mod-shot { order: 1; }

.mod-name {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.mod-for {
  display: block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #2C7C55;
  margin-bottom: 16px;
}
.mod-desc {
  font-size: 17px; line-height: 1.65;
  color: #4A5578;
  max-width: 52ch;
  margin-bottom: 22px;
}
.mod-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  color: var(--navy-800);
  text-decoration: none;
  border-top: 2px solid rgba(89,205,144,0.9);
  padding-top: 16px;
  margin-top: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}
.mod-link:hover { color: #2C7C55; border-color: #2C7C55; }
.mod-link svg { transition: transform 180ms ease; }
.mod-link:hover svg { transform: translateX(3px); }

.mod-shot {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  min-height: 340px;
}
.mod-shot::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(20,34,93,0.34), rgba(20,34,93,0.34));
}
/* the rule that splits copy from interface */
.mod-row:nth-child(odd) .mod-shot { border-left: 1px solid #E9EDF5; }
.mod-row:nth-child(even) .mod-shot { border-right: 1px solid #E9EDF5; }
.mod-shot video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.7) contrast(1.04);
}

@media (prefers-reduced-motion: reduce) { .mod-link, .mod-link svg { transition: none; } }

@media (max-width: 900px) {
  .page-hero { padding: 56px 20px 68px; }
  .modules { padding: 64px 20px 72px; }
  .mod-row,
  .mod-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mod-copy { padding: 28px 22px; }
  .mod-shot { min-height: 240px; border: 0 !important; }
  .mod-row:nth-child(even) .mod-copy { order: 0; }
  .mod-row:nth-child(even) .mod-shot { order: 0; }
}

/* the UI is the hero backdrop: starts at the top, copy sits over it */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 0 48px 0;
  display: flex;
  flex-direction: column;
}
.hero-ui { position: absolute; inset: 0; z-index: 0; margin: 0; width: 100%; }
.hero-ui img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 100% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 62%, rgba(0,0,0,0) 100%);
  /* graded toward brand navy first, same as the homepage footage, so the
     interface's own colours don't fight the wash sitting on top of it */
  filter: brightness(0.88) saturate(0.42) contrast(1.02);
}
/* navy wash keeps the copy legible over the light interface */
.hero-ui::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(10,17,48,0.92) 0%,
      rgba(10,17,48,0.86) 30%,
      rgba(10,17,48,0.66) 56%,
      rgba(10,17,48,0.40) 78%,
      rgba(10,17,48,0.34) 100%),
    linear-gradient(to top, rgba(10,17,48,0.72) 0%, transparent 32%),
    linear-gradient(to bottom, rgba(10,17,48,0.74) 0%, transparent 24%),
    linear-gradient(rgba(20,34,93,0.14), rgba(20,34,93,0.14));
}
.page-hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 0 90px;
}
.modules { padding-top: 84px; }

@media (max-width: 900px) {
  .page-hero { padding: 0 20px; }
  .hero-ui::after {
    background: linear-gradient(to bottom, rgba(10,17,48,0.92) 0%, rgba(10,17,48,0.86) 100%);
  }
  .modules { padding-top: 60px; }
}
