/* Main visual box beside the hero message (base rules from v15). */
.hero-visual.hero-illustration {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 500px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--paper);
}
.hero-visual.hero-illustration:after { content: none; }
.hero-visual.hero-illustration > img,
.hero-visual.hero-illustration > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  box-shadow: none;
  filter: none;
}
@media (min-width: 1600px) {
  .hero-visual.hero-illustration { height: 530px; }
}
@media (max-width: 980px) {
  .hero-visual.hero-illustration {
    width: min(100%, 600px);
    height: 460px;
    margin-inline: auto;
  }
}
@media (max-width: 680px) {
  .hero-visual.hero-illustration {
    width: 100%;
    height: 310px;
  }
}
@media (max-width: 380px) {
  .hero-visual.hero-illustration { height: 290px; }
}

/* v17: looping smile video (poster = first frame) replaces the illustration. */
.hero-visual.hero-photo {
  border-radius: 32px;
  background: #fbe6d4;
}
.hero-visual.hero-photo > video {
  object-fit: cover;
  object-position: 68% 22%;
}
@media (max-width: 680px) {
  .hero-visual.hero-photo { border-radius: 24px; height: 380px; }
  .hero-visual.hero-photo > video { object-position: 70% 18%; }
}
/* Hide the iOS play overlay shown while autoplay is deferred; the poster stays visible. */
.hero-visual.hero-photo > video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-visual.hero-photo > video::-webkit-media-controls { display: none !important; }
