.hero-sequence-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.hero-sequence-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1;
}

.hero-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-overlay__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay--stat {
  top: 12%;
  left: clamp(0.75rem, 1.76%, 3rem);
  width: clamp(312px, 27.84%, 480px);
}

.hero-overlay--categories {
  top: 46%;
  left: clamp(0.75rem, 1.76%, 3rem);
  width: clamp(222px, 19.92%, 348px);
}

.hero-categories__hotspot {
  position: absolute;
  left: 16%;
  top: 65%;
  width: 68%;
  height: 28%;
  border-radius: 1rem;
  transition: filter 0.2s ease;
}

.hero-categories__hotspot:hover,
.hero-categories__hotspot:focus-visible {
  filter: brightness(0.93);
}

.hero-categories__hotspot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.hero-overlay-group--right {
  position: absolute;
  top: 33%;
  right: clamp(0.75rem, 4.57%, 5rem);
  width: clamp(312px, 27.84%, 480px);
}

.hero-overlay--headline,
.hero-overlay--checklist {
  position: static;
  width: 100%;
}

.hero-overlay--checklist {
  width: 67%;
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  /* On narrow viewports the canvas covers edge-to-edge (portrait crop), leaving no
     side margins for corner blocks, so all four stages stack in one bottom panel
     instead — same Α→Β→Γ→Δ reveal order, read top to bottom. */
  .hero-overlay-stack {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: var(--space-6) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(243, 235, 220, 0) 0%, rgba(243, 235, 220, 0.92) 20%, rgba(243, 235, 220, 0.98) 100%);
  }

  .hero-overlay-stack .hero-overlay,
  .hero-overlay-stack .hero-overlay-group--right {
    position: static;
    max-width: none;
    top: auto;
    right: auto;
  }

  .hero-overlay-stack .hero-overlay {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  .hero-overlay-stack .hero-overlay.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-overlay--stat { width: clamp(150px, 40vw, 190px); }
  .hero-overlay--categories { width: clamp(110px, 30vw, 145px); }
  .hero-overlay-group--right { width: clamp(150px, 40vw, 190px); }
}

.hero-sequence-loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: var(--ink);
  color: var(--white);
  transition: opacity 0.4s ease;
  z-index: 2;
}

.hero-sequence-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-sequence-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: hero-spin 0.8s linear infinite;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}
