/* Stable viewport units avoid changing the timeline as mobile browser bars move. */
.hero-scroll { position: relative; height: 100vh; height: 100svh; background: #3d2b1f; }
.hero-scroll.is-animated { height: 400vh; height: 400svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #3d2b1f url('../images/bolo1.jpeg') center / cover; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-canvas { opacity: 0; }
.hero-scroll.has-frame .hero-canvas { opacity: 1; }
.hero-sticky::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(35,23,15,.64), rgba(35,23,15,.22) 38%, transparent 70%); }
.hero-content { position: relative; z-index: 2; max-width: 1280px; height: 100%; margin: auto; padding: 112px 32px 76px; display: flex; align-items: center; color: #fdf9f3; }
.hero-copy p { color: #fff7ec; font-size: 1rem; text-shadow: 0 1px 10px #3d2b1f; }
.hero-copy a { background: #fdf9f3; color: #3d2b1f; }
.hero-copy a:hover { background: #e8c078; }
.hero-copy a:focus-visible { outline: 3px solid #e8c078; outline-offset: 5px; }
.hero-scroll-cue { display: none; position: absolute; z-index: 2; bottom: 26px; left: max(32px, calc((100% - 1216px)/2)); color: #fff7ec; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.is-animated .hero-scroll-cue { display: block; }
#preferencias, #categorias, #contato { scroll-margin-top: 80px; }
@media (max-width: 800px) and (orientation: portrait) {
  .hero-content { align-items: flex-start; padding: 104px 24px 52px; }
  .hero-copy > * + * { margin-top: 16px; }
  .hero-copy p { font-size: .875rem; max-width: 350px; }
  .hero-copy a { padding: 14px 22px; font-size: .8rem; }
  .hero-sticky::after { background: linear-gradient(180deg, rgba(35,23,15,.65), rgba(35,23,15,.35) 34%, transparent 56%); }
  .hero-scroll-cue { left: 24px; bottom: 20px; }
  /* The source is a very tight landscape close-up. Preserve its full width on
     portrait screens, over a matching cover background, instead of clipping
     both the flowers and the cake edges. Canvas uses the same composition. */
  .hero-sticky { background-image: url('../images/hero-frames-mobile/frame-0001.webp'), url('../images/bolo1.jpeg'); }
  .hero-sticky::before { content: ''; position: absolute; inset: -30px; background: inherit; filter: blur(30px) brightness(.68); }
  .hero-poster { object-fit: contain; object-position: center 78%; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .hero-content { padding: 90px 24px 28px; }
  .hero-copy > * + * { margin-top: 10px; }
  .hero-copy p { font-size: .8rem; }
  .hero-copy a { padding: 10px 20px; }
  .hero-scroll-cue { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll.is-animated { height: 100vh; height: 100svh; }
  .hero-scroll-cue { display: none !important; }
  .hero-copy a { transition: none; }
}
