/* Transparent wrappers preserve the existing desktop and tablet layout. */
.page-home .c-home-hero-text,
.page-home .c-home-hero-heading,
.page-home .c-home-hero-followup,
.page-home .c-home-hero-details {
  display: contents;
}

@media screen and (max-width: 48rem) {
  .page-home .c-hero--background {
    /* Only the homepage overlays its mobile hero copy on the artwork. */
    isolation: isolate;
    color: #f5f3ee !important;
    background: #17202b !important;
  }
  .page-home .c-hero--background::before,
  .page-home .c-hero--background::after {
    content: none;
    display: none !important;
  }
  .page-home .c-hero--background .c-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
  }
  .page-home .c-hero--background .c-hero__copy {
    display: contents;
  }
  .page-home .c-home-hero-heading {
    position: relative;
    z-index: 2;
    grid-area: 1 / 1;
    display: block;
    box-sizing: border-box;
    min-height: 980px;
    padding: 0;
    text-align: center;
  }
  .page-home .c-home-hero-heading::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(7 17 31 / .68) 0%, rgb(7 17 31 / .48) 42%, rgb(7 17 31 / .16) 72%, rgb(7 17 31 / .12) 100%);
  }
  .page-home .c-home-hero-text .c-home-hero-logo { display: none; }
  /* Keep the copy above the translucent image overlay. */
  .page-home .c-home-hero-text {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: flow-root;
    box-sizing: border-box;
    padding: 2rem 1.25rem 24px;
  }
  .page-home .c-home-hero-text::before {
    content: none;
  }
  .page-home .c-hero .c-home-hero-heading .c-eyebrow {
    display: block;
    max-width: 26rem;
    margin: 0 auto 1rem;
    color: #f2b200 !important;
    font-size: clamp(0.767rem, 3.127vw, 0.95875rem);
    text-shadow: 0 1px 5px rgb(0 0 0 / .6);
  }
  .page-home .c-hero .c-home-hero-heading h1 {
    width: 100%;
    max-width: 38rem;
    margin: 0 auto;
    color: #f5f3ee !important;
    font-size: clamp(1.568rem, 7.952vw, 3.584rem);
    line-height: 1.12;
    text-shadow: 0 2px 8px rgb(0 0 0 / .55);
  }
  .page-home .c-home-hero-title__line {
    display: block;
  }
  .page-home .c-home-hero-title__line:first-child {
    text-transform: uppercase;
  }
  .page-home .c-hero .c-home-hero-heading h1 .c-hero-highlight--blue {
    color: #27689e !important;
  }
  .page-home .c-hero .c-home-hero-heading h1 .c-home-hero-comma {
    color: #f5f3ee !important;
  }
  .page-home .c-hero .c-home-hero-heading h1 .c-hero-highlight--yellow {
    color: #f2b200 !important;
  }
  .page-home .c-hero--background .c-hero__inner > .c-media-frame {
    position: relative;
    z-index: 0;
    grid-area: 1 / 1;
    align-self: stretch;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
  }
  .page-home .c-hero--background .c-media-frame img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    transform: none;
  }
  .page-home .c-home-hero-followup {
    position: relative;
    z-index: 2;
    grid-area: 2 / 1;
    display: flow-root;
    box-sizing: border-box;
    padding: 2rem 1.25rem 0;
    color: var(--dm-ink);
    background: #f5f3ee;
    text-align: center;
  }
  .page-home .c-hero .c-home-hero-followup .c-home-hero-intro {
    max-width: 38rem;
    margin: 0 auto 1.5rem;
    color: var(--dm-ink) !important;
  }
  .page-home .c-home-hero-followup .c-hero__actions {
    justify-content: center;
    margin-top: 0;
  }
  .page-home .c-home-hero-details {
    position: relative;
    z-index: 2;
    grid-area: 3 / 1;
    display: flow-root;
    padding: 2rem 1.25rem;
    color: var(--dm-ink);
    background: #f5f3ee;
  }
  .page-home .c-hero .c-home-hero-details p {
    color: var(--dm-ink) !important;
  }
  .page-home .c-home-hero-details .c-hero__actions {
    justify-content: center;
  }
}
