/* Hero poster becomes a short slider. The abstract mark stays, the slide changes. */

.hero-art {
  display: grid;
  min-height: 280px;
  padding: 0;
  background: transparent;
  outline: none;
}

.hero-art:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-art::before,
.hero-art::after {
  content: none;
}

.hero-art__viewport {
  position: relative;
  min-height: 280px;
  grid-area: 1 / 1;
}

.hero-art__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(7%, 0, 0) scale(0.98);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0, 0, 1),
    transform 0.65s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 35%, rgba(0, 173, 182, 0.28), transparent 36%),
    linear-gradient(145deg, #1b2523, #111413 70%);
}

.hero-art__slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}

.hero-art.is-back .hero-art__slide {
  transform: translate3d(-7%, 0, 0) scale(0.98);
}

.hero-art.is-back .hero-art__slide.is-active,
.hero-art__slide.is-active {
  transform: none;
}

.hero-art__slide.is-leaving {
  opacity: 0;
  transform: translate3d(-8%, 0, 0) scale(0.98);
  z-index: 2;
}

.hero-art.is-back .hero-art__slide.is-leaving {
  transform: translate3d(8%, 0, 0) scale(0.98);
}

.hero-art__slide--app {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(184, 155, 255, 0.28), transparent 40%),
    linear-gradient(155deg, #142428, #101211 72%);
}

.hero-art__slide--auto {
  background:
    radial-gradient(ellipse at 68% 28%, rgba(126, 246, 255, 0.22), transparent 38%),
    linear-gradient(160deg, #17211f, #121416 74%);
}

.hero-art__slide--care {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(0, 173, 182, 0.32), transparent 42%),
    linear-gradient(150deg, #1a2428, #101614 70%);
}

.hero-art__rings,
.hero-art__glyph {
  position: absolute;
  pointer-events: none;
}

.hero-art__rings {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(119, 230, 230, 0.35);
  border-radius: 50%;
  right: 10%;
  top: 8%;
  box-shadow:
    0 0 0 28px rgba(0, 173, 182, 0.05),
    0 0 0 56px rgba(0, 173, 182, 0.04);
}

.hero-art__glyph {
  width: 148px;
  height: 186px;
  right: 22%;
  top: 18%;
  border: 1px solid rgba(119, 230, 230, 0.55);
  border-radius: 100px 100px 18px 18px;
  transform: rotate(28deg);
  background: linear-gradient(145deg, rgba(0, 173, 182, 0.34), rgba(0, 173, 182, 0.02));
}

.hero-art__slide--app .hero-art__glyph {
  width: 108px;
  height: 188px;
  right: 26%;
  border-radius: 28px;
  transform: none;
  background:
    linear-gradient(180deg, rgba(184, 155, 255, 0.35), rgba(0, 173, 182, 0.08));
}

.hero-art__slide--app .hero-art__glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}

.hero-art__slide--auto .hero-art__rings {
  width: 180px;
  height: 180px;
  right: 18%;
  top: 18%;
}

.hero-art__slide--auto .hero-art__glyph {
  width: 86px;
  height: 86px;
  right: 30%;
  top: 32%;
  border-radius: 50%;
  transform: none;
  background: radial-gradient(circle at 40% 40%, rgba(126, 246, 255, 0.45), rgba(0, 173, 182, 0.05));
}

.hero-art__slide--auto .hero-art__glyph::before,
.hero-art__slide--auto .hero-art__glyph::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(119, 230, 230, 0.7);
  background: rgba(0, 173, 182, 0.25);
}

.hero-art__slide--auto .hero-art__glyph::before {
  left: -36px;
  top: 8px;
}

.hero-art__slide--auto .hero-art__glyph::after {
  right: -34px;
  bottom: 6px;
}

.hero-art__slide--care .hero-art__glyph {
  width: 160px;
  height: 120px;
  right: 20%;
  top: 28%;
  border-radius: 18px;
  transform: none;
  background: linear-gradient(160deg, rgba(0, 173, 182, 0.28), rgba(255, 255, 255, 0.04));
}

.hero-art__slide--care .hero-art__glyph::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 22px;
  height: 8px;
  border-radius: 999px;
  background: rgba(126, 246, 255, 0.55);
  box-shadow: 0 18px 0 rgba(119, 230, 230, 0.28);
}

.hero-art__code,
.hero-art__label {
  z-index: 1;
}

.hero-art__dots {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.hero-art__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.2, 0, 0, 1), background 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.hero-art__dot.is-active {
  width: 22px;
  background: var(--accent);
}

body.theme-light .hero-art__slide,
body.theme-light .hero-art__slide--app,
body.theme-light .hero-art__slide--auto,
body.theme-light .hero-art__slide--care {
  background:
    radial-gradient(ellipse at 72% 30%, rgba(0, 173, 182, 0.2), transparent 40%),
    linear-gradient(145deg, #e7f4f3, #ffffff 72%);
}

body.theme-light .hero-art__dot {
  background: rgba(16, 18, 17, 0.18);
}

body.theme-light .hero-art__dot.is-active {
  background: var(--accent);
}

@media (max-width: 900px) {
  .hero-art,
  .hero-art__viewport {
    min-height: 220px;
  }

  .hero-art__rings {
    width: 180px;
    height: 180px;
  }

  .hero-art__glyph {
    transform: scale(0.86);
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art__slide,
  .hero-art__dot {
    transition: none;
  }
}
