html[data-yamaha-product][data-model-collection] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
  --yamaha-header: 106px;
  --hero-text: #fff;
  --scene-min-width: 144cqw;
  --scene-bike-center: .49;
  --scene-bike-right: .67;
  --scene-center-x: 70.5cqw;
  --scene-center-y: 46cqh;
  display: grid;
  grid-template-columns: minmax(0, 29%) 1fr;
  min-height: calc(100svh - var(--yamaha-header));
  align-items: center;
  align-content: center;
  isolation: isolate;
  height: auto;
  gap: 0;
  padding: 0 var(--banner-pad);
  background: #9fa5ae;
}

html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"]::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 15 23 / .79), rgb(10 15 23 / .61) 26%, transparent 53%);
  content: "";
  pointer-events: none;
}

html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] > .hero-copy {
  z-index: 2;
  max-width: 440px;
  color: var(--hero-text);
  text-shadow: none;
}

html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] :is(h1, h1 span, p, .text-link) {
  color: var(--hero-text);
}

html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] .text-link {
  border-color: currentColor;
}

html[data-yamaha-product] #main .hero .yamaha-banner-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  grid-area: auto;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  z-index: 0;
}

html[data-yamaha-product] #main .yamaha-banner-photo picture,
html[data-yamaha-product] #main .yamaha-banner-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

html[data-yamaha-product] #main .hero .yamaha-banner-photo img {
  object-fit: cover;
  max-height: none;
}

html[data-yamaha-product][data-model-collection="r6"] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
  --hero-text: #101b24;
  --wide-image-cap: 345cqh;
  --wide-bike-y: .55;
  background: #c8d8e5;
}

html[data-yamaha-product][data-model-collection="r6"] #main .hero[data-banner-layout="full-bleed"]::before {
  background: linear-gradient(90deg, rgb(231 240 247 / .89), rgb(231 240 247 / .73) 24%, transparent 48%);
}

html[data-yamaha-product][data-model-collection="r1-r1m"] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
  --scene-min-width: 174cqw;
  --scene-bike-center: .392;
  --scene-bike-right: .536;
  --scene-center-x: 66cqw;
  --scene-center-y: 48cqh;
  --wide-image-cap: 388cqh;
  --wide-bike-y: .49;
}

html[data-yamaha-product][data-model-collection="r3"] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
  --scene-bike-center: .464;
  --scene-bike-right: .66;
  --scene-center-x: 68cqw;
  --scene-center-y: 43cqh;
  --wide-image-cap: 388cqh;
  --wide-bike-y: .60;
}

html[data-yamaha-product][data-model-collection="r9"] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
  --scene-min-width: 142cqw;
  --scene-bike-center: .42;
  --scene-bike-right: .67;
  --scene-center-x: 38cqw;
  --scene-center-y: 43cqh;
  --wide-image-cap: 258cqh;
  --wide-bike-y: .50;
}

html[data-yamaha-product] #main #quote-section .front-title {
  font-size: clamp(32px, 4.3vw, 70px);
  white-space: nowrap;
}

html[data-yamaha-product] #main #quote-section .front-title span {
  display: inline;
}

html[data-yamaha-product][data-model-collection="r1-r1m"] #main #quote-section .front-title {
  font-size: clamp(28px, 3.45vw, 58px);
}

html[data-yamaha-product] #main #quote-section .front-photo img {
  transform: scale(1.30);
}

html[data-yamaha-product][data-model-collection="r6"] #main #quote-section .front-photo img {
  transform: scale(1.36);
}

@media (min-width: 900px) and (aspect-ratio > 4/3) {
  html[data-yamaha-product] #main .hero .yamaha-banner-photo {
    container-type: size;
  }

  html[data-yamaha-product] #main .hero .yamaha-banner-photo img {
    --scene-width: max(var(--scene-min-width), 240cqh);
    --scene-left: calc(var(--scene-center-x) - var(--scene-width) * var(--scene-bike-center));
    --scene-right-limit: calc(97cqw - var(--scene-width) * var(--scene-bike-right));
    position: absolute;
    top: clamp(calc(100cqh - var(--scene-width) * 5 / 12), calc(var(--scene-center-y) - var(--scene-width) * 5 / 24), 0px);
    left: clamp(calc(100cqw - var(--scene-width)), min(var(--scene-right-limit), var(--scene-left)), 0px);
    width: var(--scene-width);
    height: auto;
    max-width: none;
  }

  html[data-yamaha-product][data-model-collection="r9"] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
    grid-template-columns: 1fr minmax(250px, 24%);
  }

  html[data-yamaha-product][data-model-collection="r9"] #main .hero[data-banner-layout="full-bleed"]::before {
    background: linear-gradient(270deg, rgb(10 15 23 / .85), rgb(10 15 23 / .70) 22%, transparent 47%);
  }

  html[data-yamaha-product][data-model-collection="r9"] #main .hero[data-banner-layout="full-bleed"] > .hero-copy {
    grid-column: 2;
    justify-self: end;
  }
}

@media (min-width: 900px) and (min-aspect-ratio: 17/10) {
  html[data-yamaha-product] #main .hero .yamaha-banner-photo img {
    --scene-width: max(100cqw, 240cqh, min(var(--scene-min-width), var(--wide-image-cap)));
    top: clamp(calc(100cqh - var(--scene-width) * 5 / 12), calc(50cqh - var(--scene-width) * 5 / 12 * var(--wide-bike-y)), 0px);
  }
}

@media (max-width: 899px), (max-aspect-ratio: 4/3) {
  html[data-yamaha-product][data-model-collection] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - var(--yamaha-header));
    align-content: start;
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"]::before {
    background: linear-gradient(180deg, rgb(10 15 23 / .78), rgb(10 15 23 / .62) 44%, transparent 62%);
  }

  html[data-yamaha-product][data-model-collection="r6"] #main .hero[data-banner-layout="full-bleed"]::before {
    background: linear-gradient(180deg, rgb(231 240 247 / .43), rgb(231 240 247 / .18) 31%, transparent 52%);
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] > .hero-copy {
    padding: clamp(24px, 5vh, 52px) 0 20px;
  }

  html[data-yamaha-product] #main .hero .yamaha-banner-photo img {
    object-position: center 48%;
  }

  html[data-yamaha-product] #main #quote-section .front-title {
    font-size: clamp(26px, 8.9vw, 50px);
  }

  html[data-yamaha-product][data-model-collection="r1-r1m"] #main #quote-section .front-title {
    font-size: clamp(22px, 7.1vw, 44px);
  }
}

@media (max-width: 899px) {
  html[data-yamaha-product][data-model-collection] #main :is(section.hero, #banner.hero)[data-banner-layout="full-bleed"] {
    --yamaha-header: 78px;
  }
}

@media (max-width: 450px) {
  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] > .hero-copy {
    padding: 24px 0 12px;
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] .hero-copy h1 {
    margin: 12px 0 14px;
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] .hero-copy h1 span {
    margin-top: 8px;
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] .hero-copy > p:not(.hero-brand) {
    margin: 0;
    line-height: 1.45;
  }

  html[data-yamaha-product] #main .hero[data-banner-layout="full-bleed"] .hero-actions {
    margin-top: 13px;
  }
}
