/* Cena completa na abertura; equipe e relógio de frames preservados.
   A classe hero-v18 no HTML mantém o enquadramento compatível com o motor. */
.hero-v19 {
  --hero-title-left: 7.2%;
  --hero-title-top: 31%;
  --hero-title-size: clamp(48px, 4.8vw, 82px);
  --hero-title-leading: 1.03;
  --hero-title-tracking: -.058em;
}
.hero-scroll .hero-v19 .hero-copy,
.hero-scroll .hero-v19 .film-caption {
  top: var(--hero-title-top);
  left: var(--hero-title-left);
  right: auto;
  bottom: auto;
  width: 43%;
  z-index: 3;
}
.hero-scroll .hero-v19 .hero-copy h1,
.hero-scroll .hero-v19 .film-caption h2 {
  margin: 0;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-leading);
  letter-spacing: var(--hero-title-tracking);
  font-weight: 400;
  text-shadow: 0 4px 35px #0b181938;
}
.hero-v19 .film-caption h2 { color: #fbfcf7; }
.hero-v19 .film-caption > span {
  position: absolute;
  left: 0;
  bottom: calc(100% + 23px);
  margin: 0;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .22em;
}
.hero-scroll .hero-v19 .hero-team {
  position: absolute;
  left: 49%;
  right: 2%;
  top: 23%;
  bottom: 12%;
  width: auto;
  height: auto;
  z-index: 2;
  perspective: none;
}
.hero-scroll .hero-v19 .hero-product {
  position: absolute;
  left: var(--hero-title-left);
  right: auto;
  top: calc(var(--hero-title-top) + var(--hero-title-size) * 2.06 + 205px);
  bottom: auto;
  width: 31%;
  height: auto;
  z-index: 3;
  perspective: none;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 9px;
}
.hero-v19 .hero-v18-coverage {
  grid-column: 1 / -1;
  text-align: left;
  margin: 0;
  color: #e5ecdf;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #11261e80;
}
.hero-v19 .hero-v18-frame {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--hero-art-ratio)));
  height: min(100cqh, calc(100cqw / var(--hero-art-ratio)));
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
}
.hero-v19 .hero-team-frame { --hero-art-ratio: 1.490566037735849; }
.hero-scroll .hero-v19.is-film-focused .hero-film { height: 100%; background: transparent; }
.hero-scroll .hero-v19.is-film-focused .hero-film video { object-fit: cover; }
.hero-v19 .hero-v18-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-v19 .hero-team-frame .hero-v18-art {
  -webkit-mask-image: linear-gradient(#000 83%, transparent 100%);
  mask-image: linear-gradient(#000 83%, transparent 100%);
}
.hero-v19 .hero-v18-brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 220px;
  max-width: 100%;
  margin: 0;
  color: #edf2e8;
  text-align: center;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero-v19 .hero-v18-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  gap: 35px;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid #d8e5d78c;
  color: #f4f7ee;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 450;
}
.hero-v19 .hero-v18-catalog svg { width: 16px; height: 16px; transition: transform .25s; }
.hero-v19 .hero-v18-catalog:hover svg { transform: translate(2px, -2px); }
.hero-v19 .hero-v18-catalog:focus-visible { outline: 2px solid #edf4df; outline-offset: 6px; }
.hero-scroll .hero-v19 .hero-team {
  display: grid;
  place-items: center;
  container-type: size;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .85s .12s ease, visibility .85s, transform .85s .12s ease;
}
.hero-scroll .hero-v19:is(.is-scroll-revealed, .is-film-focused) .hero-team {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (min-width: 1600px) {
  .hero-v19 { --hero-title-top: 33%; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-v19 {
    --hero-title-left: 5%;
    --hero-title-top: 33%;
    --hero-title-size: 4.8vw;
  }
  .hero-scroll .hero-v19 .hero-copy,
  .hero-scroll .hero-v19 .film-caption { width: 44%; }
  .hero-v19 .hero-v18-coverage { font-size: 9px; }
}
@media (max-width: 760px) {
  .hero-scroll .hero-v19.is-film-focused .hero-bottom { top: auto; bottom: 28px; }
  .hero-v19 {
    --hero-title-left: 7%;
    --hero-title-top: 142px;
    --hero-title-size: clamp(30px, 9.4vw, 60px);
    --hero-title-leading: 1.06;
    --hero-title-tracking: -.065em;
  }
  .hero-scroll .hero-v19 .hero-copy,
  .hero-scroll .hero-v19 .film-caption { width: 86%; }
  .hero-v19 .film-caption > span { bottom: calc(100% + 18px); font-size: 8px; }
  .hero-scroll .hero-v19 .hero-product {
    left: 7%;
    right: 7%;
    top: auto;
    bottom: 91px;
    width: auto;
    height: auto;
    gap: 7px 18px;
    grid-template-columns: minmax(110px, 1fr) auto;
  }
  .hero-v19 .hero-v18-coverage { font-size: 8px; letter-spacing: .12em; }
  .hero-v19 .hero-v18-brands { width: 100%; font-size: 15px; }
  .hero-v19 .hero-v18-catalog { min-height: 36px; padding: 7px 0; font-size: 11px; gap: 27px; }
  .hero-scroll .hero-v19 .hero-team {
    left: 3%;
    right: 3%;
    top: calc(var(--hero-title-top) + 142px);
    bottom: 106px;
    width: auto;
    height: auto;
  }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero-v19 { --hero-title-top: 128px; }
  .hero-scroll .hero-v19 .hero-copy > p { margin-top: 12px; font-size: 12px; line-height: 1.45; }
  .hero-scroll .hero-v19 .hero-copy .button { margin-top: 14px; min-height: 43px; padding-top: 10px; padding-bottom: 10px; }
  .hero-scroll .hero-v19 .hero-product { top: auto; bottom: 87px; row-gap: 5px; }
  .hero-v19 .hero-v18-brands { font-size: 14px; }
  .hero-v19 .hero-v18-catalog { min-height: 33px; padding-top: 5px; padding-bottom: 5px; }
  .hero-scroll .hero-v19 .hero-team { top: calc(var(--hero-title-top) + 132px); bottom: 96px; }
}
@media (max-width: 760px) and (max-height: 659px) {
  .hero-scroll .hero-v19 { min-height: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .hero-v19 .hero-team { transition: none; transform: none; }
  .hero-v19 .hero-v18-catalog svg { transition: none; }
}

/* A imagem fica entre os quadros existentes e a sombra de leitura. */
.hero-scroll .hero-v19 .hero-film video { object-position: center; }
.hero-v19 .hero-keyvisual {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  transition: opacity .85s ease;
}
.hero-v19 .hero-keyvisual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 90% center;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-v19:is(.is-scroll-revealed, .is-film-focused) .hero-keyvisual { opacity: 0; }
.hero-scroll .hero-v19 .hero-film .hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, #0c171dc4 0%, #0c171d80 28%, #0c171d20 48%, transparent 60%),
    linear-gradient(180deg, #0913194d 0%, transparent 24%, transparent 85%, #09131924 100%);
}
@media (max-width: 760px) {
  .hero-v19 .hero-film::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #233943 0%, #335569 58%, #172832 90%, #101d23 100%);
    opacity: 1;
    transition: opacity .85s ease;
    pointer-events: none;
  }
  .hero-v19:is(.is-scroll-revealed, .is-film-focused) .hero-film::before { opacity: 0; }
  .hero-v19 .hero-keyvisual {
    top: auto;
    bottom: 116px;
    height: calc(100vw * 3072 / 3504);
  }
  .hero-v19 .hero-keyvisual img {
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 87%, transparent 100%);
    mask-image: linear-gradient(transparent, #000 18%, #000 87%, transparent 100%);
  }
  .hero-scroll .hero-v19 .hero-film .hero-shade {
    background: linear-gradient(180deg, #0b171cb3 0%, #0b171c8c 32%, #0b171c1a 50%, transparent 59%);
  }
}
/* No tablet, o palco cabe na tela e a fotografia conserva o crop inteiro. */
@media (min-width: 481px) and (max-width: 760px) {
  .hero-v19 {
    --hero-title-size: clamp(30px, 6.4vw, 40px);
    --hero-tablet-photo-height: min(72vw, 60svh);
  }
  .hero-scroll .hero-v19 { min-height: 660px; }
  .hero-v19 .hero-keyvisual {
    left: 0;
    right: 0;
    width: 100%;
    height: var(--hero-tablet-photo-height);
    aspect-ratio: auto;
    transform: none;
  }
  .hero-v19 .hero-keyvisual img {
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(transparent, #000 4%, #000 92%, transparent);
    mask-image: linear-gradient(transparent, #000 4%, #000 92%, transparent);
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-scroll .hero-v19 .hero-product { width: 42%; gap: 7px 14px; }
  .hero-v19 .hero-v18-catalog { gap: 18px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v19 .hero-keyvisual, .hero-v19 .hero-film::before { transition: none; }
}

/* A linha compacta mantém o catálogo acima da barra inferior em telas baixas. */
@media (min-width: 761px) and (max-height: 760px) {
  .hero-scroll .hero-v19 .hero-product {
    top: calc(var(--hero-title-top) + var(--hero-title-size) * 2.06 + 190px);
    width: min(35%, 400px);
    grid-template-columns: minmax(112px, 1fr) auto;
    gap: 8px;
  }
  .hero-v19 .hero-v18-coverage {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hero-v19 .hero-v18-brands { width: 100%; font-size: 14px; }
  .hero-v19 .hero-v18-catalog { min-height: 34px; padding: 5px 0; font-size: 11px; gap: 16px; }
}
/* Com pouca altura, a mesma linha cabe antes do título sem deslocar o copy. */
@media (min-width: 761px) and (max-height: 700px) {
  .hero-scroll .hero-v19 .hero-product { top: calc(var(--hero-title-top) - 47px); }
  .hero-v19 .hero-v18-catalog { min-height: 30px; }
}
