.home-banner {
  --banner-height: clamp(31rem, 72svh, 44rem);
  --banner-bar-height: 3.75rem;
  position: relative;
  display: grid;
  background: #11252e;
  color: #fff;
}

.home-banner [hidden] { display: none; }
.home-banner-slides { grid-row: 1; min-width: 0; touch-action: pan-y pinch-zoom; }
.home-banner-slide { min-height: var(--banner-height); display: grid; }
.home-banner-content {
  width: min(100% - 9rem, 1280px);
  display: grid;
  align-items: center;
  padding-block: 3rem;
}
.home-banner-copy { min-width: 0; }
.home-banner-copy h1, .home-banner-copy h2 {
  font-size: clamp(2.55rem, 5.15vw, 4.7rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.home-banner-copy p {
  max-width: 33rem;
  margin: 1.15rem 0 1.5rem;
  color: #e3eaed;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
}
.home-banner-copy .text-link { color: #fff; }
.home-banner :focus-visible { outline-color: var(--accent); }
.home-banner .button-primary:focus-visible { outline-offset: 5px; }

.home-banner-intro { position: relative; isolation: isolate; }
.home-banner-intro .home-banner-copy { max-width: 43rem; }
.home-banner-background, .home-banner-intro::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-banner-background { z-index: -2; object-fit: cover; object-position: 65% 52%; }
.home-banner-intro::after {
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, rgb(11 26 34 / .97) 0%, rgb(11 26 34 / .84) 37%, rgb(11 26 34 / .3) 75%, rgb(11 26 34 / .12) 100%);
}

.home-banner-brand { background: linear-gradient(116deg, #142830, #233b45); }
.home-banner-brand .home-banner-content {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(1.65rem, 3vw, 3rem);
}
.home-banner-product {
  --product-height: clamp(18rem, 56svh, 35rem);
  --product-padding: clamp(.55rem, 1.2vw, .95rem);
  display: grid;
  place-items: center;
  min-width: 0;
  height: var(--product-height);
  margin: 0;
  padding: var(--product-padding);
  border-radius: 4px;
  background: radial-gradient(ellipse at 48% 42%, #fff 35%, #e2e9eb 100%);
}
.home-banner-product-frame {
  --product-ratio: 1.2;
  position: relative;
  width: min(100%, calc((var(--product-height) - 2 * var(--product-padding)) * var(--product-ratio)));
  aspect-ratio: var(--product-ratio);
  overflow: hidden;
}
.home-banner-product img {
  position: absolute;
  inset-inline-start: var(--image-left, 0%);
  inset-block-start: var(--image-top, 0%);
  width: var(--image-width, 100%);
  height: var(--image-height, 100%);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-banner-controls:not([hidden]) {
  grid-row: 2;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 .75rem;
  min-height: var(--banner-bar-height);
}
.home-banner-controls button {
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.home-banner-rotation {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-height: 44px;
  padding-inline: .65rem;
  font-weight: 700;
}
.home-banner-controls .home-banner-rotation:hover { background: rgb(255 255 255 / .12); }
.home-banner-pages { grid-column: 2; grid-row: 1; display: flex; justify-content: center; }
.home-banner-page { width: 32px; height: 44px; display: grid; place-items: center; padding: 0; }
.home-banner-page::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid #becdd2;
  border-radius: 50%;
  background: #becdd2;
}
.home-banner-page[aria-current='true']::before { width: 12px; height: 12px; border-color: var(--accent); background: var(--accent); }
.home-banner-controls .home-banner-step {
  position: absolute;
  top: calc((100% - var(--banner-bar-height)) / 2);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / .55);
  border-radius: 50%;
  background: rgb(13 29 37 / .86);
}
.home-banner-prev { inset-inline-start: .875rem; }
.home-banner-next { inset-inline-end: .875rem; }
.home-banner-step::before {
  content: '';
  width: .6rem;
  height: .6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.home-banner-prev::before { transform: translateX(2px) rotate(225deg); }
.home-banner-controls .home-banner-step:hover { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.home-banner-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  .home-banner-slide { animation: home-banner-reveal .38s ease-out; }
  @keyframes home-banner-reveal { from { opacity: .72; } to { opacity: 1; } }
}

@media (max-width: 690px) {
  .home-banner { --banner-height: clamp(28rem, 68svh, 34rem); }
  .home-banner-content { width: calc(100% - 36px); padding-block: 1.5rem; }
  .home-banner-intro .home-banner-content { align-items: end; }
  .home-banner-background { object-position: 60% 40%; }
  .home-banner-intro::after { background: linear-gradient(0deg, rgb(11 26 34 / .97) 0%, rgb(11 26 34 / .8) 51%, rgb(11 26 34 / .13) 100%); }
  .home-banner-copy h1, .home-banner-copy h2 { font-size: clamp(2.1rem, 7.9vw, 3.5rem); }
  .home-banner-copy p { margin-block: .75rem 1.1rem; }
  .home-banner-brand .home-banner-content { grid-template-columns: 1fr; gap: 1rem; align-content: center; }
  .home-banner-product { --product-height: clamp(12rem, 34svh, 17rem); grid-row: 1; }
  .home-banner-controls:not([hidden]) { grid-template-columns: 46px 1fr 46px; padding-block: 0 .6rem; }
  .home-banner-pages { grid-column: 1 / -1; }
  .home-banner-page { width: min(9vw, 34px); height: 34px; }
  .home-banner-rotation { grid-column: 2; grid-row: 2; justify-self: center; }
  .home-banner-controls .home-banner-step { position: static; transform: none; grid-row: 2; }
  .home-banner-prev { grid-column: 1; }
  .home-banner-next { grid-column: 3; }
}
