@media (max-width: 760px) {
  .film-frame img { filter: none; }
  body[data-look="vintage"] .film-frame img { filter: saturate(.74) sepia(.1); }
}

@supports (animation-timeline: view()) and (animation-range: cover 0% cover 40%) {
  @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .opening-scene { view-timeline-name: --abertura; }
    .invitation-photo { view-timeline-name: --polaroides; }
    .destination-collage { view-timeline-name: --ilha; }
    .tile-band { view-timeline-name: --azulejos; }
    .guide-seascape { view-timeline-name: --guia; }

    .hero-shore, .hero-type, .hero-stamp, .tide-ticket,
    .invitation-copy h2, .polaroid-pile, .photo-stamp, .weekend-heading h2,
    .event-ticket, .destination-map, .venue-scrap, .tile-pattern,
    .guide-paper, .guide-route, .gift-heading h2 {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: cover 0% cover 40%;
    }

    .hero-shore, .hero-type, .hero-stamp, .tide-ticket {
      animation-timeline: --abertura;
      animation-range: exit 0% exit 100%;
    }
    .hero-shore { animation-name: mar-paralaxe; }
    .hero-type { animation-name: nomes-saem; animation-range-end: exit 70%; }
    .hero-stamp {
      animation-name: carimbo-sai;
      animation-range-end: exit 80%;
    }
    .tide-ticket { animation-name: bilhete-atravessa; animation-range-end: exit 76%; }

    :is(.invitation-copy h2, .weekend-heading h2, .gift-heading h2) {
      animation-name: titulo-chega;
      animation-range-end: cover 34%;
    }
    .polaroid-pile {
      animation-name: polaroides-chegam;
      animation-timeline: --polaroides;
      animation-range-end: cover 31%;
    }
    .photo-stamp {
      animation-name: carimbo-chega;
      animation-timeline: --polaroides;
      animation-range-end: cover 36%;
    }
    .event-ticket {
      --entrada-x: -25%;
      --entrada-giro: -2.5deg;
      animation-name: bilhete-chega;
      animation-range-end: cover 36%;
    }
    .event-ticket:nth-child(even) { --entrada-x: 25%; --entrada-giro: 2.5deg; }
    .destination-map { animation-name: mapa-chega; animation-timeline: --ilha; }
    .venue-scrap {
      animation-name: vila-chega;
      animation-timeline: --ilha;
      animation-range-end: cover 46%;
    }
    .tile-pattern {
      animation-name: azulejos-passam;
      animation-timeline: --azulejos;
      animation-range-end: cover 100%;
    }
    .guide-paper { animation-name: guia-chega; animation-timeline: --guia; }
    .guide-route {
      animation-name: rota-chega;
      animation-timeline: --guia;
      animation-range: cover 5% cover 68%;
    }
  }
}

@keyframes mar-paralaxe {
  from { transform: translate3d(0, 0, 0) scale(1.025); }
  to { transform: translate3d(0, 32%, 0) scale(1.025); }
}
@keyframes nomes-saem { to { transform: translateY(-42px); opacity: .12; } }
@keyframes carimbo-sai { to { transform: translateY(33px) rotate(-6deg); } }
@keyframes bilhete-atravessa {
  from { transform: translateY(34px) rotate(-9deg) scale(.86); opacity: 0; }
  48% { transform: translateY(0) rotate(-4deg); opacity: 1; }
  to { transform: translateY(-6px) rotate(-1.5deg); opacity: 1; }
}
@keyframes titulo-chega { from { transform: translateY(28px); opacity: .55; } }
@keyframes polaroides-chegam {
  from { transform: translateY(42px) rotate(4deg) scale(.95); opacity: .7; }
}
@keyframes carimbo-chega { from { transform: translateY(-12px) rotate(-19deg) scale(.76); } }
@keyframes bilhete-chega {
  from { transform: translate(var(--entrada-x), 18px) rotate(var(--entrada-giro)) scale(.97); }
}
@keyframes mapa-chega { from { transform: translateY(25px) rotate(-6deg); } }
@keyframes vila-chega { from { transform: translateY(42px) rotate(9deg); } }
@keyframes azulejos-passam {
  from { transform: translateX(-95px); }
  to { transform: translateX(65px); }
}
@keyframes guia-chega { from { transform: translateY(31px) rotate(-7deg) scale(.96); } }
@keyframes golfinhos-pulam {
  from { transform: translate(22px, 18px) rotate(9deg); }
  55% { transform: translate(3px, -22px) rotate(-6deg); }
  to { transform: translate(-14px, 9px) rotate(4deg); }
}

@keyframes rota-chega { from { transform: translateY(20px); opacity: .7; } }
