/*
 * Centered hero hierarchy for the two service-led entry pages.
 *
 * This layer deliberately changes only the opening composition. Existing
 * media, controls, lower sections, spacing systems, and mobile layouts remain
 * owned by their original page styles.
 */

@media (min-width: 781px) {
  .site-shell--agencies .agency-campaign-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start;
    gap: clamp(42px, 5vw, 72px) !important;
    min-height: auto !important;
    padding-top: clamp(124px, 15vh, 168px) !important;
    padding-bottom: clamp(72px, 8vw, 112px) !important;
    background:
      radial-gradient(circle at 50% 57%, rgba(5, 5, 5, 0.04), transparent 38%),
      #fff !important;
  }

  .site-shell--agencies .agency-campaign-hero::before {
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.98) 34%,
      rgba(255, 255, 255, 0.7) 58%,
      rgba(255, 255, 255, 0) 82%
    ) !important;
  }

  .site-shell--agencies .agency-campaign-hero__copy {
    width: min(100%, 760px);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    transform: none !important;
  }

  .site-shell--agencies .agency-campaign-hero__kicker,
  .site-shell--agencies .agency-campaign-hero h1,
  .site-shell--agencies .agency-campaign-hero__summary {
    margin-right: auto;
    margin-left: auto;
  }

  .site-shell--agencies .agency-campaign-hero__note,
  .site-shell--agencies .agency-campaign-hero__actions {
    justify-content: center;
  }

  .site-shell--agencies .agency-campaign-wall {
    width: min(100%, 1180px);
    margin: 0 auto;
  }

  /* Agency landing hero: one wide proof film with the concise positioning and
     actions over it. Service-detail pages retain the reusable template. */
  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: clamp(20px, 2vw, 28px) !important;
    padding-top: 52px !important;
  }

  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall {
    grid-row: 1;
    order: 1;
    width: 100vw;
    max-width: none;
    height: clamp(480px, 57vh, 640px);
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__primary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0 !important;
    transform: none;
  }

  .site-shell--agencies.agency-depth-v1:not(.site-shell--service-detail)
    .agency-campaign-wall:hover
    .agency-campaign-wall__primary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    box-shadow: 0 18px 52px rgba(5, 5, 5, 0.1);
    transform: none !important;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__support {
    display: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.02) 32%, rgba(0, 0, 0, 0.76) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, transparent 52%);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__copy {
    grid-row: 2;
    order: 2;
    align-self: start;
    width: min(680px, calc(100% - 64px));
    margin: 0 auto;
    color: #050505;
    text-shadow: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero h1,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__summary,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__note {
    color: #050505;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__summary {
    color: rgba(5, 5, 5, 0.68);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__note {
    color: rgba(5, 5, 5, 0.5);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__button--primary {
    border-color: #050505;
    background: #050505;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__button--secondary {
    border-color: rgba(5, 5, 5, 0.34);
    background: #fff;
    color: rgba(5, 5, 5, 0.78);
    -webkit-text-fill-color: rgba(5, 5, 5, 0.78);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__button:hover,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__button:focus-visible {
    transform: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__caption,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__discipline-rail {
    display: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__play,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__sound {
    top: auto !important;
    bottom: 22px;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__sound {
    right: calc(22px + var(--mp-media-transparent-control-size, 43px) + 10px);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__play {
    position: absolute !important;
    right: 22px;
    z-index: 6;
  }

  .site-shell--artists .artists-hero {
    min-height: clamp(720px, 88svh, 860px);
  }

  .site-shell--artists .artists-hero__collage {
    top: 54px;
    right: 50%;
    width: 112vw;
    height: calc(100% - 54px);
    transform:
      translateX(50%)
      perspective(1400px)
      translate3d(
        0,
        var(--artists-collage-scroll-y),
        var(--artists-collage-scroll-z)
      )
      rotateX(calc(6deg + var(--artists-collage-scroll-pitch)))
      rotateY(var(--artists-collage-scroll-yaw))
      rotateZ(-2deg)
      scale(1.08);
    transform-origin: 50% 40%;
  }

  .site-shell--artists .artists-hero__collage-track {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .site-shell--artists .artists-hero__veil {
    background:
      radial-gradient(
        ellipse at 50% 47%,
        rgba(3, 3, 3, 0.88) 0%,
        rgba(3, 3, 3, 0.76) 32%,
        rgba(3, 3, 3, 0.34) 68%,
        rgba(3, 3, 3, 0.72) 100%
      ),
      linear-gradient(180deg, rgba(3, 3, 3, 0.38) 0%, transparent 42%, #050505 100%);
  }

  .site-shell--artists .artists-hero__veil::after {
    background: linear-gradient(180deg, transparent 55%, #050505 100%);
  }

  .site-shell--artists .artists-hero__inner {
    position: absolute;
    top: 72% !important;
    left: 50%;
    z-index: 2;
    width: min(760px, calc(100% - 2 * var(--mp-layout-gutter, 64px)));
    margin: 0 auto;
    padding: 0;
    text-align: center;
    transform: translate(-50%, -50%) !important;
  }

  .site-shell--artists .artists-hero__eyebrow {
    justify-content: center;
  }

  .site-shell--artists .artists-hero h1,
  .site-shell--artists .artists-hero__intro {
    margin-right: auto;
    margin-left: auto;
  }

  .site-shell--artists .artists-hero__note {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .site-shell--artists .artists-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__caption {
    display: none;
  }
}

/*
 * Stable hero type scale.
 * Keep the title and positioning line optically consistent while a desktop
 * window is resized; switch sizes only when the composition changes to
 * tablet or phone.
 * Rem units retain browser zoom and user font-size accessibility.
 */
@media (min-width: 1081px) {
  .site-shell--agencies .agency-campaign-hero h1 {
    font-size: 6rem;
  }

  .site-shell--agencies .agency-campaign-hero__summary {
    font-size: 1.35rem !important;
  }
}

@media (min-width: 781px) and (max-width: 1080px) {
  .site-shell--agencies .agency-campaign-hero h1 {
    font-size: 4.5rem;
  }

  .site-shell--agencies .agency-campaign-hero__summary {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 780px) {
  .site-shell--agencies .agency-campaign-hero h1 {
    font-size: 4.2rem;
  }

  .site-shell--agencies .agency-campaign-hero__summary {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 780px) {
  /* Keep the proven mobile hierarchy, but reduce the Agency opening to the
     same single featured film as desktop so the CTA arrives immediately. */
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__support {
    display: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-hero {
    padding-top: 62px !important;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-hero__copy {
    margin-top: 10px;
  }

  .site-shell--agencies:not(.site-shell--service-detail) .agency-campaign-wall {
    position: relative;
    left: 0;
    width: 100vw;
    height: clamp(245px, 64vw, 300px);
    margin-left: 0;
    transform: none;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__primary {
    border-radius: 0 !important;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__play,
  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__sound {
    top: auto !important;
    bottom: 12px;
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__sound {
    right: calc(20px + var(--mp-media-transparent-control-size, 43px) + 8px);
  }

  .site-shell--agencies:not(.site-shell--service-detail)
    .agency-campaign-wall__play {
    position: absolute !important;
    right: 20px;
    z-index: 6;
  }
}
