/* ShowShot site: bespoke scroll effects (driven by js/effects.js, off --sc-p style values)
   1. intro: the paragraph nearest the middle of the viewport reads bright
   2. section headings: a short blur-to-clear entrance
   3. stacked decks: sticky cards; the one beneath settles back as the next climbs over
   4. the scene hero: a frame sequence scrubbed by scroll, copy overlaid */

/* 1 · intro */
.intro { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 3.5rem); }
.intro__in { max-width: 44rem; }
.intro p { font-family: var(--disp); font-weight: 500; font-size: clamp(1.4rem, 2.35vw, 2.05rem); line-height: 1.22; letter-spacing: -.022em; color: var(--fg); opacity: .22; transition: opacity .3s ease; }
.intro p + p { margin-top: 1.25em; }

/* 2 · headings remain plain text, and stay readable once revealed */
.fx-heading { opacity: .05; filter: blur(8px); transform: translate3d(0, 16px, 0); transition: opacity 620ms cubic-bezier(.22,.7,.25,1), filter 620ms cubic-bezier(.22,.7,.25,1), transform 620ms cubic-bezier(.22,.7,.25,1); transition-delay: 0ms !important; }
.fx-heading.is-revealed { opacity: 1; filter: none; transform: none; }

/* 3 · stacked decks */
.stack { position: relative; margin-top: .5rem; }
.deck { position: sticky; top: 6.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); height: min(37rem, calc(100svh - 8rem)); margin-bottom: 2.75rem; border-radius: 1.6rem; overflow: clip; background: var(--ink-1); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(255,255,255,.02), 0 50px 100px -50px rgba(0,0,0,.9); transform-origin: 50% 0; }
.stack.is-near .deck { will-change: transform, filter; }
.deck--flip .deck__copy { order: 2; }
.deck__copy { padding: clamp(1.75rem, 3.5vw, 3.25rem) clamp(1.5rem, 3vw, 2.9rem); display: flex; flex-direction: column; min-width: 0; }
.deck__title { font-family: var(--disp); font-weight: 600; font-size: var(--t-h2s); line-height: 1.1; letter-spacing: -.024em; max-width: 15ch; }
.deck__p { margin-top: 1.3rem; font-size: 1.02rem; line-height: 1.5; color: var(--fg-2); max-width: 42ch; }
.deck__foot { margin-top: auto; padding-top: 1.5rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.deck__media { position: relative; margin: .5rem; border-radius: 1.15rem; overflow: clip; background: var(--ink-3); min-height: 0; }
.deck__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.deck__media.contain img { object-fit: contain; object-position: 50% 50%; padding: 4%; }
.lite .deck { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 0 0 6px rgba(0,0,0,.02), 0 50px 100px -50px rgba(0,0,0,.35); }

/* 4 · the scene hero */
.hero--scene { min-height: 0; height: 260svh; padding: 0; overflow: visible; }
.scene { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--ink-0); }
.scene__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.scene__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,13,13,.78) 0%, rgba(15,13,13,.42) 30%, rgba(15,13,13,0) 55%, rgba(15,13,13,0) 68%, rgba(15,13,13,.7) 84%, rgba(15,13,13,.96) 100%); }
.hero--scene .hero__content { position: absolute; left: 50%; top: 5.25rem; width: min(80rem, 92%); text-align: center; transform: translate(-50%, calc(var(--hp, 0) * -70px)); opacity: calc(1 - var(--hp, 0) * 6); pointer-events: none; }
.hero--scene .hero__content > * { pointer-events: auto; }
.hero--scene .hero__content .hero__cta { justify-content: center; }
.hero--scene .scene__tl { position: absolute; left: 50%; bottom: 1.1rem; width: min(80rem, 92%); transform: translateX(-50%); }
.hero--scene .scene__tl .tl { height: 9.6rem; padding-top: .9rem; }
.hero--scene .scene__tl .tl { opacity: calc(min(1, var(--hp, 0) * 4)); }
.scene__hint { position: absolute; left: 50%; bottom: 7.2rem; transform: translateX(-50%); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); opacity: calc(1 - var(--hp, 0) * 6); pointer-events: none; }

@media (max-width: 900px) {
  .fx-heading { filter: blur(5px); transform: translate3d(0, 9px, 0); transition-duration: 480ms; }
  .fx-heading.is-revealed { filter: none; transform: none; }
  .intro p { opacity: .55; }
  .deck { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); height: auto; margin-bottom: 1.25rem; transform: none !important; filter: none !important; }
  .deck--flip .deck__copy { order: 0; }
  .deck__media { height: 15rem; margin: 0 .5rem .5rem; }
  .deck__foot { padding-top: 1.25rem; }
}
@media (max-width: 600px) {
  /* phones: the copy sits in flow above a letterboxed, slightly zoomed frame instead of a full-bleed crop */
  .hero--scene { height: 145svh; }
  .scene { display: flex; flex-direction: column; height: 92svh; }
  .hero--scene .hero__content { position: relative; left: auto; top: auto; width: 100%; transform: none; opacity: 1; order: 1; padding: 5.2rem 4% 1.2rem; }
  .hero--scene .hero__title { font-size: clamp(1.85rem, 7.8vw, 2.35rem); }
  .hero--scene .hero__sub { margin-top: 1rem; }
  .hero--scene .hero__cta { flex-direction: row; flex-wrap: nowrap; gap: .7rem; width: 100%; margin-top: 1.4rem; }
  .hero--scene .hero__cta .btn { flex: 1; min-width: 0; padding-inline: .75rem; }
  .scene__frame { position: relative; inset: auto; order: 2; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 1.2rem 0 auto; transform: scale(1.16); transform-origin: 50% 45%; flex-shrink: 0; }
  .scene__shade { background: linear-gradient(180deg, rgba(15,13,13,.35) 0%, rgba(15,13,13,0) 35%, rgba(15,13,13,0) 84%, rgba(15,13,13,.92) 100%); }
  .scene__hint, .hero--scene .scene__tl { display: none; }
}
@media (max-width: 900px) and (max-height: 560px) {
  .hero--scene { height: auto; }
  .scene { position: relative; height: auto; display: flex; flex-direction: column; }
  .hero--scene .hero__content { position: relative; left: auto; top: auto; width: 100%; padding: 5rem 4% 1rem; transform: none; opacity: 1; order: 1; }
  .scene__frame { position: relative; inset: auto; order: 2; height: auto; transform: none; margin: 0; }
  .scene__hint, .hero--scene .scene__tl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro p { opacity: 1; }
  .fx-heading { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  [data-sc-in], [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .deck { transform: none !important; filter: none !important; }
  .hero--scene { height: auto; }
  .scene { position: relative; }
  .hero--scene .hero__content { opacity: 1; }
  .scene__hint, .hero--scene .scene__tl { display: none; }
}
