body.intro-page {
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

body.intro-page #aimy-page {
  align-items: center;
  justify-content: center;
}

.intro-shell {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-7);
  width: min(100%, 960px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(var(--s-8), 6vw, var(--s-12)) var(--s-6);
}

.intro-shell h1 {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--text-dim);
}

.intro-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(280px, 60vw, 640px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: clamp(var(--r-lg), 4vw, 42px);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.intro-hero:focus-visible {
  outline: 2px solid rgba(114, 163, 255, 0.92);
  outline-offset: 6px;
}

.intro-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.97);
  transition:
    transform 0.56s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease;
}

.intro-hero-image,
.intro-hero-video {
  grid-area: 1 / 1;
}

.intro-logo.is-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.intro-hero-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.intro-hero.is-playing .intro-hero-video {
  opacity: 1;
}

.intro-hero.is-playing .intro-hero-image {
  opacity: 0;
}

.intro-cta {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: clamp(16px, 3.2vw, 18px);
  background: linear-gradient(135deg, rgba(114, 163, 255, 0.92), rgba(44, 101, 255, 0.92) 42%, rgba(58, 208, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 30px rgba(0, 51, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.intro-cta:hover,
.intro-cta:focus-visible {
  text-decoration: none;
  box-shadow: 0 22px 40px rgba(0, 51, 153, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.intro-cta:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .intro-logo.is-ready {
    transform: none;
  }

  .intro-hero-video {
    transition: none;
  }
}
