/* Hero on a phone (Daniel, 9 Nov.): the first screen is the film. The picture stays clear at
   the top, the text sits at the bottom on a soft shade, and the sector card comes after the
   film instead of covering it. */
@media (max-width: 809px) {
  .mivora-hero .hero-stage {
    padding-top: 0;
    background-color: #111315;
  }
  /* The film fills exactly the first screen. */
  .mivora-hero .hero-stage[data-video-state] {
    background-size: 100% 100svh;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .mivora-hero .hero-stage > .hero-background,
  .mivora-hero .hero-stage > .hero-overlay {
    inset: 0 0 auto;
    height: 100svh;
  }
  /* No grey veil: a shade under the menu and under the text only. */
  .mivora-hero .hero-stage > .hero-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(12, 16, 20, 0.5) 0%,
      rgba(12, 16, 20, 0.08) 22%,
      rgba(12, 16, 20, 0.12) 42%,
      rgba(12, 16, 20, 0.72) 72%,
      #111315 100%
    );
  }
  .mivora-hero .hero-grid {
    align-content: start;
  }
  .mivora-hero .hero-copy {
    box-sizing: border-box;
    min-height: 100svh;
    justify-content: flex-end;
    padding: 120px 0 28px;
  }
  .mivora-hero .hero-copy h1 {
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
  }
  /* The sector card takes the page colour and carries the two concave corners that join it to
     the page below: it sits flush on the bottom edge of the dark stage, with no dark band under
     it (visible in the light theme). */
  .mivora-hero .hero-card {
    margin-block: 8px 0;
  }
  /* Daniel, 19 nov. : sur la vidéo aussi, l'action principale garde le bouton Rylio (bleu, libellé jaune). */
  .mivora-hero .hero-copy .hero-hook-context {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
  }
}

/* iPhone check (Daniel, 18 Nov.): the sector card sat as a 340 px box, off the text's axis,
   framed by a hairline. On a phone it is now the sheet of the page rising over the film: full
   width, rounded top, its content on the same 12 px axis as the hero text. */
@media (max-width: 809px) {
  .mivora-hero .hero-card.hero-sector-carousel {
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin-inline: -12px;
    padding: 28px 12px 32px;
    border-radius: 20px 20px 0 0;
    box-shadow: none;
  }
  .mivora-hero .hero-card.hero-sector-carousel::before,
  .mivora-hero .hero-card.hero-sector-carousel::after {
    display: none;
  }
}
