/* ============================= */
/* MVP INTERMEDIATE PAGES */
/* ============================= */

:root {
  --mvp-accent: #2F6F7E;
  --mvp-accent-2: #A87952;
  --mvp-soft: rgba(234, 242, 245, 0.92);
  --mvp-ink: #123A4A;
}

.mvp-intermediate {
  background:
    radial-gradient(circle at 72% 14%, color-mix(in srgb, var(--mvp-accent) 18%, transparent), transparent 28%),
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--mvp-accent-2) 14%, transparent), transparent 24%),
    #F7F7F2;
}

.mvp-intermediate.security-theme {
  --mvp-accent: #2F6F7E;
  --mvp-accent-2: #A87952;
  --mvp-soft: rgba(234, 242, 245, 0.92);
  --mvp-ink: #123A4A;
}

.mvp-intermediate.health-theme {
  --mvp-accent: #D77A32;
  --mvp-accent-2: #2F6F7E;
  --mvp-soft: rgba(255, 246, 235, 0.92);
  --mvp-ink: #3F2510;
}

.mvp-intermediate.politics-theme {
  --mvp-accent: #7C5CC4;
  --mvp-accent-2: #A87952;
  --mvp-soft: rgba(244, 240, 255, 0.92);
  --mvp-ink: #281B4A;
}

.intermediate-hero {
  display: block;
  position: relative;
  min-height: 100vh;
  padding: 54px 7vw 80px;
  overflow: hidden;
}

.dot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(168, 121, 82, 0.52) 1.3px, transparent 1.7px);
  background-size: 28px 28px;
  background-position: 0 0;
  animation: drift 40s linear infinite;
  opacity: 0.78;
}

.dot-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--mvp-accent) 42%, transparent) 1px, transparent 1.6px);
  background-size: 84px 84px;
  background-position: 12px 12px;
  opacity: 0.45;
}

.intermediate-hero::after {
  content: "";
  position: absolute;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  right: -8vw;
  top: -10vw;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mvp-accent) 15%, transparent);
  filter: blur(18px);
  z-index: 1;
  pointer-events: none;
}

.intermediate-hero .hero-content {
  max-width: 500px;
  position: relative;
  z-index: 12;
}

.intermediate-hero .eyebrow,
.intermediate-hero .micro {
  color: var(--mvp-accent);
}

.intermediate-hero h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--mvp-ink);
}

.intermediate-hero .btn.secondary {
  border-color: color-mix(in srgb, var(--mvp-accent) 36%, #CBBBA8);
}

.intermediate-hero .btn.secondary:hover {
  border-color: var(--mvp-accent);
  color: var(--mvp-ink);
  background: var(--mvp-soft);
}

.intermediate-mark {
  position: absolute;
  z-index: 2;
  right: 10vw;
  top: 54px;
  width: min(430px, 38vw);
  min-width: 260px;
  aspect-ratio: 1.15;
  pointer-events: none;
  opacity: 0.9;
}

.intermediate-gila {
  position: absolute;
  z-index: 22;
  display: block;
  width: min(420px, 32vw);
  height: auto;
  opacity: 0.78;
  pointer-events: none;
  filter: drop-shadow(0 22px 36px rgba(18, 58, 74, 0.14));
}

.gila-security {
  left: 8vw;
  top: 392px;
  width: min(430px, 33vw);
}

.gila-health {
  right: 1vw;
  top: 468px;
  width: min(430px, 32vw);
}

.gila-politics {
  right: 9vw;
  top: 292px;
  width: min(430px, 33vw);
}

.intermediate-mark::before,
.intermediate-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--mvp-accent) 44%, transparent);
  inset: 16%;
  transform: rotate(-18deg);
  animation: slowPulse 5s ease-in-out infinite;
}

.intermediate-mark::after {
  inset: 30% 8% 22% 18%;
  border-color: color-mix(in srgb, var(--mvp-accent-2) 42%, transparent);
  transform: rotate(22deg);
  animation-delay: 1.4s;
}

.mark-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mvp-accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--mvp-accent) 12%, transparent);
}

.mark-node:nth-child(1) { left: 28%; top: 22%; }
.mark-node:nth-child(2) { right: 20%; top: 48%; background: var(--mvp-accent-2); }
.mark-node:nth-child(3) { left: 45%; bottom: 17%; width: 9px; height: 9px; }

.intermediate-solutions {
  position: relative;
  z-index: 14;
  display: flex;
  margin-top: 34px;
}

.intermediate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 390px));
  gap: 16px;
}

.intermediate-module {
  min-height: 292px;
  border-radius: 20px;
  border: 1px solid rgba(216, 206, 192, 0.9);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  text-decoration: none;
  color: #111827;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.intermediate-module:hover {
  transform: translateY(-4px);
  border-color: var(--mvp-accent);
  background: #ffffff;
}

.intermediate-module-header {
  padding: 22px 24px 8px;
}

.intermediate-module-header span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mvp-accent);
}

.intermediate-module-header h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.04;
  color: var(--mvp-ink);
}

.intermediate-module-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 204px;
}

.intermediate-copy {
  padding: 14px 20px 24px;
  font-size: 13px;
  line-height: 1.48;
  color: #5F6673;
}

.intermediate-copy p {
  margin: 0 0 11px;
}

.intermediate-copy ul {
  margin: 0;
  padding-left: 16px;
}

.intermediate-copy li {
  margin-bottom: 6px;
}

.intermediate-visual {
  min-height: 204px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mvp-soft);
  overflow: hidden;
}

.intermediate-visual svg {
  width: 140px;
  height: 164px;
  display: block;
}

.intermediate-visual .pulse-ring {
  fill: none;
  stroke: var(--mvp-accent);
  stroke-width: 1.15;
  opacity: 0.36;
  animation: svgPulse 3.6s ease-in-out infinite;
  transform-origin: 70px 76px;
}

.intermediate-visual .pulse-ring.alt {
  stroke: var(--mvp-accent-2);
  animation-delay: 1s;
}

.intermediate-visual .flow {
  fill: none;
  stroke: var(--mvp-accent);
  stroke-linecap: round;
  stroke-width: 1.4;
  opacity: 0.7;
  animation: flowBlink 3.4s ease-in-out infinite;
}

.intermediate-visual .flow.alt {
  stroke: var(--mvp-accent-2);
  animation-delay: 1.2s;
}

.intermediate-visual .node {
  fill: var(--mvp-accent);
  animation: nodeBeat 2.8s ease-in-out infinite;
}

.intermediate-visual .node.alt {
  fill: var(--mvp-accent-2);
  animation-delay: 0.8s;
}

.layout-anchor .intermediate-solutions {
  justify-content: flex-end;
}

.layout-anchor .intermediate-grid {
  margin-right: 2vw;
}

.layout-rail .hero-content {
  margin-left: 42vw;
  max-width: 510px;
}

.layout-rail .intermediate-mark {
  left: 7vw;
  right: auto;
  top: 90px;
}

.layout-rail .intermediate-solutions {
  justify-content: flex-start;
  margin-top: 42px;
}

.layout-rail .intermediate-grid {
  grid-template-columns: repeat(2, minmax(320px, 430px));
}

.layout-civic .hero-content {
  max-width: 560px;
}

.layout-civic .intermediate-solutions {
  justify-content: center;
  margin-top: 52px;
}

.layout-civic .intermediate-grid {
  transform: translateX(5vw);
}

.launch-overlay.intermediate-open .launch-chrome {
  background: color-mix(in srgb, var(--mvp-ink) 92%, #000);
}

.launch-overlay.intermediate-open .ldot-close {
  background: var(--mvp-accent);
}

.launch-overlay.intermediate-open .launch-loader-label {
  color: var(--mvp-accent);
}

.launch-overlay.intermediate-open .launch-loader-fill {
  background: var(--mvp-accent);
}

.launch-overlay.intermediate-open .launch-loader-track {
  background: color-mix(in srgb, var(--mvp-accent) 16%, transparent);
}

.mvp-intermediate .footer {
  pointer-events: none;
}

.mvp-intermediate .footer-brand {
  pointer-events: auto;
}

.mvp-intermediate .footer-logo {
  height: 18px;
}

.mvp-intermediate .alis {
  color: #123A4A;
  font-size: 1.25em;
}

@keyframes slowPulse {
  0%, 100% { opacity: 0.42; transform: rotate(-18deg) scale(0.96); }
  50% { opacity: 0.78; transform: rotate(-18deg) scale(1.03); }
}

@keyframes svgPulse {
  0%, 100% { opacity: 0.16; transform: scale(0.92); }
  50% { opacity: 0.62; transform: scale(1.05); }
}

@keyframes flowBlink {
  0%, 100% { opacity: 0.22; stroke-dashoffset: 18; }
  50% { opacity: 0.85; stroke-dashoffset: 0; }
}

@keyframes nodeBeat {
  0%, 100% { opacity: 0.46; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1); }
}

@media (max-width: 1024px) {
  .intermediate-mark {
    opacity: 0.45;
    right: -3vw;
  }

  .intermediate-gila {
    opacity: 0.78;
  }

  .gila-security {
    left: 7vw;
    top: 410px;
    width: min(350px, 38vw);
  }

  .gila-health {
    right: 0;
    top: 500px;
    width: min(340px, 36vw);
  }

  .gila-politics {
    right: 4vw;
    top: 352px;
    width: min(350px, 38vw);
  }

  .layout-rail .hero-content {
    margin-left: 0;
  }

  .layout-rail .intermediate-mark {
    left: auto;
    right: -4vw;
    top: 56px;
  }

  .layout-rail .intermediate-grid,
  .intermediate-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .dot-bg {
    background-size: 56px 56px;
    opacity: 0.45;
    animation-duration: 70s;
  }

  .dot-bg::after {
    opacity: 0.18;
    background-size: 132px 132px;
  }

  .intermediate-hero {
    padding: 26px 6vw 60px;
  }

  .intermediate-mark {
    position: relative;
    right: auto;
    top: auto;
    width: 78vw;
    min-width: 0;
    margin: 20px auto 0;
  }

  .intermediate-gila {
    position: relative;
    inset: auto;
    width: min(310px, 78vw);
    margin: 18px auto 0;
  }

  .gila-health,
  .gila-politics,
  .gila-security {
    width: min(310px, 78vw);
  }

  .layout-rail .intermediate-mark {
    left: auto;
    right: auto;
    top: auto;
  }

  .intermediate-grid,
  .layout-rail .intermediate-grid {
    grid-template-columns: 1fr;
  }

  .layout-civic .intermediate-grid {
    transform: none;
  }

  .intermediate-module-body {
    grid-template-columns: 1fr;
  }

  .intermediate-visual {
    min-height: 150px;
  }
}
