/* Homepage hero — full-width, two equal columns; left blocks spaced to statue height */

.page-home.page-imm .service-hero {
  --hero-statue-h: min(calc(100vh - var(--imm-header-h, 92px) - 100px), 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "main   visual";
  gap: clamp(20px, 2.5vh, 36px) clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: calc(var(--imm-header-h, 92px) + 12px) clamp(24px, 3.5vw, 56px) 48px !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.page-home.page-imm .service-hero > .site-header {
  grid-area: header;
  z-index: 200 !important;
  align-self: start;
  width: 100%;
  max-width: none !important;
}

.page-home.page-imm .service-hero > .nav-backdrop {
  grid-area: header;
  z-index: 4 !important;
}

.page-home.page-imm .service-hero > .service-hero__content {
  grid-area: main;
  z-index: 3 !important;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: var(--hero-statue-h);
  max-height: var(--hero-statue-h);
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  grid-template-columns: unset !important;
}

.page-home.page-imm .service-hero__main {
  width: 100%;
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

/* Keep natural block size — only redistribute vertical gaps */
.page-home.page-imm .service-hero__main > * {
  flex: 0 0 auto;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-home.page-imm .service-hero__lead {
  --lead-fs: 2.6rem;
  width: 100%;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-size: var(--lead-fs);
  font-weight: 400;
  font-style: normal;
  line-height: 1.22;
  letter-spacing: 0.01em;
  background: linear-gradient(
    145deg,
    #fff6dc 0%,
    #f4d78a 22%,
    #e8b84a 48%,
    #f6e0a8 72%,
    #c9953a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 236, 180, 0.5))
    drop-shadow(0 10px 22px rgba(201, 149, 58, 0.28));
}

.page-home.page-imm .service-hero__title .kinetic-line {
  display: block;
  max-width: 100%;
}

.page-home.page-imm .service-hero__lead-line {
  display: block;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 1101px) {
  .page-home.page-imm .service-hero__lead-line {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}

.page-home.page-imm .service-stats {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}

.page-home.page-imm .service-hero__cta {
  width: 100%;
}

.page-home.page-imm .service-hero > .service-hero__visual {
  grid-area: visual;
  z-index: 1 !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  height: var(--hero-statue-h);
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
  animation: none;
}

.page-home.page-imm .hero-statue-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.page-home.page-imm .hero-statue-video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  box-shadow: none;
  line-height: 0;
  overflow: visible;
}

.page-home.page-imm .hero-statue-video,
.page-home.page-imm .hero-statue-img {
  display: none;
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
}

/* Do not show <video> until a capable mode is chosen — iOS paints it as a dark box */
.page-home.page-imm .hero-statue-video-wrap:not([class*="hero-statue-video-wrap--"]) .hero-statue-video {
  display: none;
}

.page-home.page-imm .hero-statue-video-wrap--video .hero-statue-video {
  display: block;
  position: static;
  opacity: 1;
}

.page-home.page-imm .hero-statue-video-wrap--video-alpha .hero-statue-video {
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.page-home.page-imm .hero-statue-video-wrap--webp .hero-statue-img--anim {
  display: block;
}

.page-home.page-imm .hero-statue-video-wrap--png .hero-statue-img--static {
  display: block;
}

.page-home.page-imm .hero-statue-video-wrap:not([class*="hero-statue-video-wrap--"]) .hero-statue-img {
  display: none;
}

.page-home.page-imm .hero-particles {
  z-index: 2 !important;
  pointer-events: none !important;
}

@media (max-width: 1100px) {
  .page-home.page-imm .service-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "header"
      "visual"
      "main";
    min-height: auto;
    width: 100%;
    max-width: 100% !important;
    padding: calc(var(--imm-header-h, 92px) + 12px) clamp(14px, 4vw, 24px) 36px !important;
    gap: 16px;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .page-home.page-imm .service-hero > .site-header,
  .page-home.page-imm .service-hero > .service-hero__content,
  .page-home.page-imm .service-hero > .service-hero__visual,
  .page-home.page-imm .service-hero__main,
  .page-home.page-imm .service-hero__cta,
  .page-home.page-imm .service-hero__lead,
  .page-home.page-imm .service-stats {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .page-home.page-imm .service-hero > .service-hero__visual {
    justify-self: center;
    align-self: start;
    width: min(280px, 68vw) !important;
    max-width: min(280px, 68vw) !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: unset;
    margin: 8px auto 4px;
    overflow: visible !important;
    background: transparent !important;
  }

  .page-home.page-imm .hero-statue-figure,
  .page-home.page-imm .hero-statue-video-wrap {
    width: 100%;
    height: auto;
    background: transparent !important;
    overflow: visible !important;
  }

  .page-home.page-imm .hero-statue-video,
  .page-home.page-imm .hero-statue-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
  }

  .page-home.page-imm .service-hero > .service-hero__content {
    justify-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .page-home.page-imm .service-hero__main {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 14px;
    overflow: hidden;
  }

  .page-home.page-imm .service-hero__lead {
    --lead-fs: clamp(1.1rem, 4.8vw, 1.45rem);
    width: 100%;
    filter: drop-shadow(0 1px 0 rgba(255, 236, 180, 0.35))
      drop-shadow(0 6px 14px rgba(201, 149, 58, 0.22));
  }

  .page-home.page-imm .service-hero__lead-line {
    white-space: normal !important;
  }

  .page-home.page-imm .service-hero__title,
  .page-home.page-imm .service-hero__title[data-kinetic] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-home.page-imm .service-hero__title .kinetic-line,
  .page-home.page-imm .service-hero__title .kinetic-line--sub {
    display: block !important;
    white-space: normal !important;
    max-width: 100%;
  }

  .page-home.page-imm .service-hero__cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  .page-home.page-imm .service-hero__cta .btn,
  .page-home.page-imm .service-hero__cta .btn--large {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: normal !important;
    padding-inline: 16px;
  }

  .page-home.page-imm .service-stats {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .page-home.page-imm .service-stat {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .page-home.page-imm .service-stat__label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .page-home.page-imm .service-hero {
    padding-inline: 14px !important;
  }

  .page-home.page-imm .service-hero > .service-hero__visual {
    width: min(260px, 72vw) !important;
    max-width: min(260px, 72vw) !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .page-home.page-imm .service-hero__lead {
    --lead-fs: clamp(1.05rem, 4.8vw, 1.35rem);
  }
}
