/* Photo/video scroll layer — shared by the real-photo demo sites (Legion Web Works). */
.photo-stage { position: absolute; inset: 0; overflow: hidden; background: #050505; }
.photo-stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.photo-stage .layer.on, .photo-stage .layer.base { opacity: 1; }
.photo-stage .layer.base.dim { opacity: 0; }
.photo-stage img, .photo-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(calc(1.06 + var(--lp, 0) * .16)) translate3d(0, calc(var(--lp, 0) * -2.5%), 0); transform-origin: 50% 45%; will-change: transform; }
.photo-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 32%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.82) 100%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
.photo-stage .grain { position: absolute; inset: -50%; opacity: .06; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* Full-bleed parallax band */
.pband { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.pband > picture, .pband > video, .pband > img { position: absolute; inset: -12% 0; z-index: -2; }
.pband > picture img, .pband > video, .pband > img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); will-change: transform; }
.pband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.25) 45%, rgba(0,0,0,.85)); }
.pband .pband-copy { padding: 0 clamp(20px, 5vw, 64px) clamp(40px, 8vh, 90px); max-width: 760px; }
/* Video sample card */
.vcard { position: relative; overflow: hidden; background: #000; }
.vcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .vtag { position: absolute; left: 14px; top: 14px; font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 7px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.vcard .vtag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; margin-right: 8px; vertical-align: 0; animation: vblink 1.6s infinite; }
@keyframes vblink { 50% { opacity: .25; } }
/* Photo tiles (menu, galleries) */
.ph { position: relative; overflow: hidden; background: #111; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ph:hover img { transform: scale(1.05); }
.reveal .ph img { transform: scale(1.12); } .reveal.in .ph img { transform: scale(1); } .reveal.in .ph:hover img { transform: scale(1.05); }
.photo-credit { font-size: 11px; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .photo-stage img, .photo-stage video, .pband img, .pband video { transform: none !important; } .photo-stage .layer { transition: none; } }
.pjs .photo-stage .layer.base:not(.on) { opacity: 0; }
