/* Yasmin Macadar — início: what the home adds to the shared format in eco.css —
   four photos that change with the scroll, and an opening over the photos. */

/* ---------- Fundo: as quatro fotos ---------- */

.bg__img--c {
  right: 0; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%);
}
/* Third and fourth photos: take over the right and left sides near the end of the page */
.bg__img--d {
  left: 0; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24%);
  mask-image: linear-gradient(to left, transparent 0, #000 24%);
}
.bg__img--c, .bg__img--d { opacity: 0; transition: opacity 900ms var(--ease-soft); }
.bg.is-end .bg__img--c, .bg.is-end .bg__img--d { opacity: 1; }

/* ---------- Apresentação ---------- */

.intro {
  min-height: 88svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding-bottom: clamp(24px, 4vw, 40px);
  text-align: center;
}
.intro__kicker { font-size: var(--step-lead); line-height: 1.3; }
.intro__name {
  margin-top: 8px;
  font-size: clamp(1.75rem, 7.4vw, 3.75rem); line-height: 1.05; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intro__lead { margin-top: 16px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.38; }

/* ---------- Phone: one photo at a time. The floor photo opens, because its face would hide behind the cards later ---------- */

@media (max-width: 760px) {
  .bg__img--b {
    object-position: 45% 34%; opacity: 0; transition: opacity 900ms var(--ease-soft);
    -webkit-mask-image: none; mask-image: none;
  }
  .bg.is-mid .bg__img--b { opacity: 1; }
  .bg__img--c { object-position: 80% 0; opacity: 1; -webkit-mask-image: none; mask-image: none; }
  .bg.is-scrolled .bg__img--c, .bg.is-end .bg__img--c { opacity: 0; }
  .bg__img--d { object-position: 40% 30%; -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg__img--b, .bg__img--c, .bg__img--d { transition: none; }
}
