/* Super 8 Trends — shared cinematic effects v2.
   1. .s8-hero-in   whole-block hero copy entrance on load
   2. .s8-rv        reveal-on-scroll fly-ins (up/left/right/zoom + stagger)
   3. .s8-lum       "luminous" text for ON-PHOTO copy — no glass, no pill:
                    deep cinematic shadow + photo-hue glow + a soft light
                    gradient clipped to the glyphs, so it pops off any photo
   4. .s8-panning   added while a horizontal track auto-pans with page scroll
   5. button depth  offset-shadow 3D-lite + larger type on every button
   Everything honours prefers-reduced-motion (see bottom). */

:root { --s8-glow: 232, 201, 160; } /* overridden per site to the photo hue */

/* 1. hero entrance ------------------------------------------------------- */
@keyframes s8-hero-in {
  from { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.s8-hero-in { animation: s8-hero-in 1s cubic-bezier(.22,.8,.28,1) .12s both; }

/* 2. reveal on scroll ---------------------------------------------------- */
.s8-rv { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.22,.8,.28,1), transform .85s cubic-bezier(.22,.8,.28,1); will-change: opacity, transform; }
.s8-rv[data-rv="left"]  { transform: translateX(-44px); }
.s8-rv[data-rv="right"] { transform: translateX(44px); }
.s8-rv[data-rv="zoom"]  { transform: scale(.9) translateY(14px); }
.s8-rv.in { opacity: 1; transform: none; }

/* 3. luminous — text that pops off photos --------------------------------- */
@keyframes s8-lum-breathe {
  0%, 100% { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.75), 0 10px 32px rgba(0,0,0,.6),
             0 0 16px rgba(var(--s8-glow), .38), 0 0 44px rgba(var(--s8-glow), .2); }
  50%      { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.75), 0 10px 32px rgba(0,0,0,.6),
             0 0 26px rgba(var(--s8-glow), .6), 0 0 70px rgba(var(--s8-glow), .42); }
}
.s8-lum {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 8px rgba(0,0,0,.75), 0 10px 32px rgba(0,0,0,.6),
               0 0 16px rgba(var(--s8-glow), .38), 0 0 44px rgba(var(--s8-glow), .2);
  animation: s8-lum-breathe 7s ease-in-out infinite;
}
/* engines with background-clip get the light-falls-from-above glyph gradient
   plus a filter glow (filter follows the glyph shape, not the box) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @keyframes s8-lum-breathe-filter {
    0%, 100% { filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)) drop-shadow(0 2px 7px rgba(0,0,0,.7)) drop-shadow(0 8px 24px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(var(--s8-glow), .42)); }
    50%      { filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)) drop-shadow(0 2px 7px rgba(0,0,0,.7)) drop-shadow(0 8px 24px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(var(--s8-glow), .7)) drop-shadow(0 0 64px rgba(var(--s8-glow), .38)); }
  }
  .s8-lum {
    background: linear-gradient(180deg, #FFFFFF 38%, #FFF2D8 76%, rgba(255,235,198,.94) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: s8-lum-breathe-filter 7s ease-in-out infinite;
  }
}

/* 4. horizontal tracks become IN-PAGE GRIDS -------------------------------
   The scroll-linked auto-pan was removed (felt jittery); card tracks now sit
   in the page as responsive grids — 1 column on phones, up to 4 on desktop. */
.exp-track, .gal-track, .gb-track, .strip-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  overflow-x: visible;
  scroll-snap-type: none;
  align-items: stretch;
  width: min(1240px, 100%);
  margin-inline: auto;
}
.exp-track > *, .gal-track > *, .gb-track > *, .strip-track > * { flex: none; width: auto; }

/* 5. button depth — offset 3D-lite, bigger type, press feedback ----------- */
.btn, .z-btn, .m-btn, .s-btn, .w-book, .wq-btn, .sc-btn {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.16),
    0 3px 0 rgba(0,0,0,.3),
    0 14px 28px -12px rgba(0,0,0,.55);
}
.btn:active, .z-btn:active, .m-btn:active, .s-btn:active, .w-book:active, .wq-btn:active, .sc-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 1px 0 rgba(0,0,0,.3),
    0 6px 14px -8px rgba(0,0,0,.5);
}
/* ghost/line variants keep depth but lighter */
.btn-ghost, .btn-line, .z-btn-ghost, .m-btn-ghost, .s-btn-ghost {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 2px 0 rgba(0,0,0,.18),
    0 10px 22px -12px rgba(0,0,0,.5);
}

/* mobile: text over photos gets bigger — always readable ------------------ */
@media (max-width: 640px) {
  .hero-sub, .vh-sub, .w-sub, .z-sub, .s-sub, .m-sub, .sc-sub { font-size: 1.05rem; line-height: 1.6; }
  .hero-eyebrow, .vh-kicker, .w-kicker, .z-kicker, .s-kicker, .m-kicker, .sc-kicker { font-size: .82rem; letter-spacing: .2em; }
}

/* reduced motion: everything lands immediately, nothing breathes --------- */
@media (prefers-reduced-motion: reduce) {
  .s8-hero-in, .s8-lum { animation: none; }
  .s8-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}
