.hero,
.page-hero,
.section.deep,
.section.paper {
  position: relative;
  overflow: hidden;
}

.hero-grid,
.page-hero .wrap,
.section .wrap {
  position: relative;
  z-index: 1;
}

.bg-motion {
  position: absolute;
  inset: 0;
  background-image: url("../assets/art/topo.svg");
  background-size: 168px;
  opacity: 0.22;
  pointer-events: none;
}

.section.paper .bg-motion,
.bg-motion.pale {
  opacity: 0.55;
}

.logo-vale {
  display: block;
  height: 92px;
  width: auto;
  max-width: min(460px, 100%);
  margin: 0 0 0.4rem;
}

.page-hero .logo-vale {
  height: 120px;
  max-width: min(560px, 100%);
  margin-bottom: 0.8rem;
}

.vale-hero .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.vale-hero .logo-vale {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  justify-self: end;
}

.scene {
  margin: 0;
}

.scene img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  animation: floaty 8s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(1, 22, 63, 0.18));
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
  animation: floaty 7s ease-in-out infinite;
}

.dim .card-icon {
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.banner {
  margin: 0 0 1.6rem;
}

.banner img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  animation: ken 22s ease-in-out infinite alternate;
}

.dim .card-icon + .num {
  margin-top: 0.45rem;
}

.page-hero .scene img {
  max-height: 320px;
  object-fit: contain;
}

@keyframes floaty {
  50% { transform: translateY(-8px); }
}

@keyframes ken {
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 1080px) {
  .vale-hero .wrap {
    grid-template-columns: 1fr;
  }

  .vale-hero .logo-vale {
    width: min(100%, 420px);
    justify-self: start;
  }

  .page-hero .scene {
    order: -1;
  }

  .page-hero .scene img,
  .banner img {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene img,
  .card-icon,
  .banner img {
    animation: none;
  }
}
