#auto-escala-preview .hero-carousel {
  --hero-mobile-image-ratio: 3 / 2;
  --hero-title-size: clamp(40px, 4.1vw, 62px);
  position: relative;
  padding: 0;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, .82) 3%, rgba(0, 0, 0, .46) 63%),
    radial-gradient(ellipse at 28% 100%, rgba(0, 152, 249, .14), transparent 64%),
    url("carbono.webp") center bottom / cover no-repeat,
    var(--black);
  color: var(--white);
}

#auto-escala-preview .hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: clamp(560px, 43vw, 740px);
}

#auto-escala-preview .hero-slide[hidden],
#auto-escala-preview .hero-controls[hidden] {
  display: none;
}

#auto-escala-preview .hero-slide-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(44px, 6vw, 92px) clamp(24px, 4vw, 62px) clamp(44px, 6vw, 92px)
    max(var(--gutter), calc((100vw - var(--layout-max)) / 2 + var(--gutter)));
}

#auto-escala-preview .hero-carousel .tag {
  color: var(--blue);
}

#auto-escala-preview .hero-carousel :is(h1, h2) {
  max-width: 21ch;
  margin: 14px 0 20px;
  font-size: var(--hero-title-size);
  line-height: 1.1;
  letter-spacing: -.032em;
  text-wrap: balance;
}

#auto-escala-preview .hero-carousel .hero-title-compact {
  font-size: calc(var(--hero-title-size) * .89);
  max-width: 24ch;
  line-height: 1.15;
}

#auto-escala-preview .hero-carousel p {
  max-width: 48ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .88);
}

#auto-escala-preview .hero-slide-media {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 12% 0 0 12% / 50% 0 0 50%;
  background: #061C2B;
  isolation: isolate;
}

#auto-escala-preview .hero-photo-frame {
  position: absolute;
  inset: 0;
}

#auto-escala-preview .hero-photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 47% center);
}

#auto-escala-preview .hero-photo-frame--management {
  --photo-position: center 42%;
}

#auto-escala-preview .hero-photo-frame--pair img + img {
  inset: auto clamp(14px, 3vw, 48px) clamp(14px, 3vw, 48px) auto;
  width: 32%;
  height: 46%;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
}

#auto-escala-preview .hero-photo-frame--workshop {
  --photo-position: center 32%;
}

#auto-escala-preview .hero-photo-frame--network {
  --photo-position: 68% center;
}

#auto-escala-preview .hero-photo-frame--network img + img {
  width: 38%;
  height: auto;
  aspect-ratio: 3 / 2;
}

#auto-escala-preview .hero-controls {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 45%;
  pointer-events: none;
}

#auto-escala-preview .hero-control {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  background: rgba(0, 0, 0, .68);
  color: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

#auto-escala-preview .hero-control:hover {
  border-color: var(--blue);
  background: #061C2B;
}

#auto-escala-preview .hero-control:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

#auto-escala-preview .hero-control svg {
  width: 18px;
  height: 18px;
}

#auto-escala-preview .hero-control--previous {
  left: 12px;
}

#auto-escala-preview .hero-control--next {
  right: 12px;
}

#auto-escala-preview .hero-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (width > 800px) {
  #auto-escala-preview .hero-controls {
    --hero-desktop-arrow: #FFD84D;
    inset: 0;
  }

  #auto-escala-preview .hero-control {
    width: clamp(44px, 4vw, 56px);
    height: clamp(44px, 4vw, 56px);
    border-color: transparent;
    background: transparent;
    color: var(--hero-desktop-arrow);
  }

  #auto-escala-preview .hero-control--previous {
    left: clamp(0px, (100vw - 1024px) * .025, 20px);
  }

  #auto-escala-preview .hero-control:is(:hover, :focus-visible) {
    border-color: transparent;
    background: #0005;
  }

  #auto-escala-preview .hero-control:focus-visible {
    outline-color: var(--hero-desktop-arrow);
    outline-offset: -2px;
  }

  #auto-escala-preview .hero-control svg {
    width: 42px;
    height: 42px;
    stroke-width: 2.4px;
    filter: drop-shadow(0 1px 3px #000);
  }
}

@media (max-width: 800px) {
  #auto-escala-preview .hero-slide {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    touch-action: pan-y pinch-zoom;
  }

  #auto-escala-preview .hero-slide-copy {
    padding: clamp(30px, 8vw, 56px) var(--gutter) 28px;
  }

  #auto-escala-preview .hero-carousel {
    --hero-title-size: clamp(32px, 6.2vw, 43px);
  }

  #auto-escala-preview .hero-slide-media {
    aspect-ratio: var(--hero-mobile-image-ratio);
    border-radius: 50% 50% 0 0 / 7% 7% 0 0;
  }

  #auto-escala-preview .hero-photo-frame--pair img + img {
    width: 33%;
    border-radius: 8px;
  }

  #auto-escala-preview .hero-controls {
    inset: auto 0 0;
    aspect-ratio: var(--hero-mobile-image-ratio);
  }
}

@media (prefers-reduced-motion: reduce) {
  #auto-escala-preview .hero-control {
    transition: none;
  }
}
