/* Between the supplied 375px and 1440px artboards, preserve the photo/caption pairing. */
@media (min-width: 600px) and (max-width: 1327px) {
  .front-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    background: var(--bc-green);
  }

  .front-hero__background {
    position: relative;
    grid-area: 1 / 1;
    inset: auto;
    height: auto;
    background-color: var(--bc-cream);
    background-image: linear-gradient(rgb(253 249 245 / 50%), rgb(253 249 245 / 50%)), url("../../assets/images/front/hero-background-pc.webp");
    opacity: 1;
  }

  .front-hero__background::after { display: none; }
  .front-hero > .front-artwork { position: relative; grid-area: 1 / 1; inset: auto; }

  .front-hero::after {
    position: relative;
    display: block;
    grid-area: 1 / 1;
    align-self: end;
    inset: auto;
    height: 216px;
    /* Crop the original artwork from the right, retaining enough green beneath the 394px caption. */
    mask: url("../../assets/images/front/wave-hero-pc-mask.svg") right bottom / 1440px 216px no-repeat;
  }

  .front-hero__inner {
    grid-area: 1 / 1;
    grid-template-columns: 24px minmax(0, 1fr) 24px minmax(414px, 40%);
    align-items: center;
    gap: 0;
    /* Leave 120px below the photo so the 216px wave only overlaps its lower edge. */
    padding: 104px 0 120px;
  }

  .front-hero__inner::after { display: none; }
  .front-hero__copy { grid-column: 2; grid-row: 1; width: 100%; min-height: 0; margin: 0; align-self: start; padding-top: 106px; }
  .front-hero__script { top: 54px; left: -40px; width: 270px; height: auto; transform-origin: center; transform: rotate(-4.61deg); }
  .front-hero__title { grid-template-columns: min-content minmax(0, 1fr); column-gap: 12px; width: 100%; margin: 0; letter-spacing: 0.05em; }
  .front-hero__title-lead { font-size: clamp(56px, calc(6.09vw + 1.19px), 82px); line-height: 1.45; letter-spacing: 0.15em; }
  .front-hero__title-inline { width: auto; margin: 18px 0 0; font-size: clamp(42px, calc(5.15vw - 4.35px), 64px); line-height: 1.45; letter-spacing: 0.05em; }
  .front-hero__title-line { margin-right: 0; padding-left: 0; font-size: clamp(34px, calc(4vw - 2px), 52px); line-height: 1.75; letter-spacing: 0.05em; white-space: nowrap; }
  .front-hero__title-line:nth-last-child(2) { margin-top: 1px; }
  .front-hero__visual { --front-hero-slide-gap: 40px; grid-column: 4; grid-row: 1; width: 100%; height: auto; margin: 0; align-self: center; }
  /* 78px control + two 8px gaps keep every slide outside the right-hand control rail. */
  .front-hero__slides { position: relative; inset: auto; width: calc(100% - 94px); }
  .front-hero__track { width: min(492px, 100%); height: auto; aspect-ratio: 492 / 592; }
  .front-hero__slide { padding: 12px; border-radius: 50% 50% 24px 24px / 41.554% 41.554% 24px 24px; }
  .front-hero__photo { border-radius: 50% 50% 16px 16px / 41% 41% 16px 16px; }
  .front-hero__slide-next { top: calc(50% - 39px); right: 8px; left: auto; }

  .front-hero__tail {
    position: relative;
    z-index: 5;
    grid-area: 2 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 394px;
    align-items: end;
    column-gap: 24px;
    /* Two 32px caption lines + 40px bottom space intentionally overlap the wave. */
    margin-top: -104px;
    padding: 0 24px 40px 0;
    background: none;
    pointer-events: none;
  }

  .front-hero__message {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    right: auto;
    bottom: auto;
    width: 394px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 32px;
    letter-spacing: 0.05em;
    text-align: right;
    white-space: nowrap;
    pointer-events: auto;
  }

  .front-hero__message span { display: inline; margin: 0; text-decoration: none; }
  .front-hero__message br { display: initial; }
  .front-hero__message::before,
  .front-hero__message::after { display: block; }

  .front-hero__ticker { position: relative; grid-area: 1 / 1; bottom: auto; width: 100%; max-width: 568px; height: 76px; min-height: 0; margin: 0; pointer-events: auto; }
  .front-hero__ticker > a { grid-template-columns: 52px 70px 1px minmax(0, 1fr); gap: 16px; padding: 0 24px; }
  .front-hero__ticker > div { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 0 24px; }
  .front-hero__ticker i { display: block; }
  .front-hero__ticker-title { grid-column: auto; }
  .front-hero__scroll { display: none; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .front-hero__copy { grid-column: 1; width: calc(100% - 48px); margin-inline: auto; align-self: center; padding-top: 0; }
  .front-hero__script { top: -52px; }
  .front-hero__title-lead { font-size: clamp(44px, 5.6vw, 50px); line-height: 1.45; }
  .front-hero__title-inline { margin-top: 12px; font-size: 32px; line-height: 1.5; }
  .front-hero__title-line { font-size: clamp(28px, 3.6vw, 32px); line-height: 1.7; }
  .front-hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .front-hero__visual { grid-column: 1; grid-row: 2; width: calc(100% - 24px); margin-left: 24px; }
  .front-hero__track { width: clamp(320px, 52vw, 460px); }
  .front-hero__tail { grid-template-columns: minmax(0, 1fr); }
  .front-hero__message { grid-column: 1; }
  .front-hero__ticker { grid-area: 2 / 1; margin-top: 32px; }
}

@media (min-width: 1200px) and (max-width: 1327px) {
  .front-hero__inner { grid-template-columns: 56px minmax(0, 1fr) 24px 40%; }
  .front-hero__script { top: 57px; left: -76px; width: 305px; }
}
