/* Switch homepage polish — 2026-08-30.
 * Additive overrides: existing Bricks markup, copy and CMS queries stay intact.
 * Body scope deliberately outranks the inline Code-element styles.
 */
body.page-id-176 .switch-home-intro .switch-hero__person {
  height: 96%;
}
body.page-id-176 .switch-home-intro .switch-hero__circle {
  width: 87%;
  top: 47%;
}
body.page-id-176 .switch-home-intro .switch-hero__card--one {
  width: min(162px, 35%);
  top: 62%;
  right: 4px;
}
body.page-id-176 .switch-home-intro .switch-hero__card--two {
  width: min(205px, 42%);
  left: 4px;
  bottom: 7%;
}

/* One steady cycle with irregular phase spacing, rather than three
 * synchronized explosions. Existing path wobble remains independent.
 */
body.page-id-176 .switch-home-intro .switch-energy-pulse {
  animation: switch-home-ripple 5.8s linear infinite both;
}
body.page-id-176 .switch-home-intro .switch-energy-pulse--one {
  --ripple-opacity: .70;
  animation-delay: -.35s;
}
body.page-id-176 .switch-home-intro .switch-energy-pulse--two {
  --ripple-opacity: .60;
  animation-delay: -2.05s;
}
body.page-id-176 .switch-home-intro .switch-energy-pulse--three {
  --ripple-opacity: .44;
  animation-delay: -4.20s;
}
@keyframes switch-home-ripple {
  0% { opacity: 0; transform: scale(.91); }
  9% {
    opacity: var(--ripple-opacity);
    transform: scale(1.03);
    animation-timing-function: cubic-bezier(.18, .45, .4, 1);
  }
  56% { opacity: 0; transform: scale(1.92); }
  100% { opacity: 0; transform: scale(1.92); }
}

/* Let content determine card height, including future CMS/copy changes. */
body.page-id-176 .switch-locations__card {
  height: auto;
  grid-template-rows: 250px auto;
}
body.page-id-176 .switch-locations__meta {
  flex-wrap: wrap;
  gap: 8px 12px;
}
body.page-id-176 .switch-locations__badges {
  flex-grow: 0;
}

@media (max-width: 1200px) and (min-width: 901px) {
  body.page-id-176 .switch-home-intro .switch-hero__card {
    padding: 14px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card strong {
    font-size: 14px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .9fr);
    gap: clamp(32px, 4vw, 48px);
  }
}

/* Start the existing stacked layouts sooner, avoiding squeezed tablet columns. */
@media (max-width: 900px) {
  body.page-id-176 .switch-home-intro__mobile-menu nav {
    max-width: calc(100vw - 72px);
  }
  body.page-id-176 .switch-home-intro .switch-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 64px 80px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__title {
    font-size: clamp(58px, 8.5vw, 76px);
  }
  body.page-id-176 .switch-home-intro .switch-hero__visual {
    width: min(100%, 560px);
    min-height: 540px;
    margin-inline: auto;
  }
  body.page-id-176 .switch-home-intro .switch-hero__circle {
    top: 50%;
  }
  body.page-id-176 .switch-support__header,
  body.page-id-176 .switch-audience__header,
  body.page-id-176 .switch-locations__header,
  body.page-id-176 .switch-stories__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body.page-id-176 .switch-support__intro,
  body.page-id-176 .switch-audience__intro,
  body.page-id-176 .switch-locations__intro,
  body.page-id-176 .switch-stories__intro {
    max-width: 560px;
    margin: 0;
  }
  body.page-id-176 .switch-audience__grid,
  body.page-id-176 .switch-locations__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-id-176 .switch-audience__card {
    min-height: 270px;
  }
  body.page-id-176 .switch-movement__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "video" "socials";
    gap: 36px;
  }
  body.page-id-176 .switch-stories__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  body.page-id-176 .switch-stories__card--featured {
    grid-row: auto;
    grid-template-rows: 300px auto;
  }
  body.page-id-176 .switch-meet .switch-meet__panel {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px;
  }
  body.page-id-176 .switch-meet .switch-meet__visual {
    width: min(100%, 320px);
    justify-self: center;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  body.page-id-176 .switch-locations__card {
    grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto;
    min-height: 250px;
  }
  body.page-id-176 .switch-locations__content {
    align-self: center;
    padding: 26px;
  }
}

@media (max-width: 600px) {
  body.page-id-176 .switch-home-intro .switch-hero__visual {
    min-height: 0;
    aspect-ratio: .88;
  }
  body.page-id-176 .switch-home-intro .switch-hero__person {
    height: 92%;
    bottom: -10px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__circle {
    width: 92%;
    top: 47%;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card {
    padding: 12px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card--one {
    width: 38%;
    top: 63%;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card--two {
    width: 44%;
    bottom: 6%;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card strong {
    font-size: 13px;
  }
  body.page-id-176 .switch-locations__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 220px auto;
  }
}

@media (max-width: 477px) {
  body.page-id-176 .switch-home-intro .switch-hero__inner {
    padding-block: 48px 64px;
    gap: 40px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__title {
    font-size: clamp(40px, 12.4vw, 58px);
  }
  body.page-id-176 .switch-home-intro .switch-hero__card span {
    font-size: 9px;
    letter-spacing: .09em;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card--one {
    padding-inline: 10px;
  }
  body.page-id-176 .switch-home-intro .switch-hero__card--one strong {
    font-size: clamp(11.5px, 3.35vw, 13px);
  }
  body.page-id-176 .switch-audience__inner,
  body.page-id-176 .switch-movement__inner,
  body.page-id-176 .switch-locations__inner,
  body.page-id-176 .switch-stories__inner {
    padding-block: 64px;
  }
  body.page-id-176 .switch-meet .switch-meet__panel {
    padding: 32px 24px;
  }
  body.page-id-176 .switch-meet .switch-meet__title {
    font-size: clamp(36px, 10.5vw, 46px);
  }
  body.page-id-176 .switch-meet .switch-meet__visual {
    width: min(100%, 240px);
  }
}

@media (max-width: 359px) {
  body.page-id-176 .switch-support__card-copy {
    padding-right: 0;
  }
  body.page-id-176 .switch-support__card-title {
    font-size: 22px;
    overflow-wrap: anywhere;
  }
}

/* Never re-enable animation for visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  body.page-id-176 .switch-home-intro .switch-energy-pulse {
    animation: none;
  }
}
