/* Pin High Effects — all selectors ph-prefixed */

/* Scroll reveals (hidden state only once JS is running) */
.ph-js .ph-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ph-js .ph-reveal.ph-in { opacity: 1; transform: none; }

/* Film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Ken Burns zoom on the hero video — scoped to the theme's video-background
   container ONLY, and the keyframes PRESERVE its translate(-50%,-50%)
   centering (v1.0.1 bug: a bare scale animation wiped the centering and
   pushed the video off-screen). */
@keyframes ph-kenburns { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.08); } }
.video-background video { animation: ph-kenburns 24s ease-in-out infinite alternate; }

/* Gold marquee */
.ph-marquee { background: #0e0e0e; overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(212,175,55,.35); border-bottom: 1px solid rgba(212,175,55,.35); }
.ph-marquee-track { display: inline-flex; white-space: nowrap; animation: ph-scroll 26s linear infinite; will-change: transform; }
.ph-marquee-track span { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .35em; font-size: 15px; color: #d4af37; padding-right: .5em; }
@keyframes ph-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Injected homepage sections */
.ph-section { max-width: 1200px; margin: 0 auto; padding: 70px 24px 10px; }
.ph-section h2.ph-h { text-align: center; font-size: clamp(26px, 4vw, 40px); letter-spacing: .12em; color: #fff; margin: 0 0 8px; text-transform: uppercase; }
.ph-section p.ph-sub { text-align: center; color: #bdbdbd; margin: 0 0 36px; font-size: 16px; }
.ph-gold { color: #d4af37; }

.ph-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 767px) { .ph-work-grid { grid-template-columns: 1fr; } }
.ph-work-card { position: relative; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; }
.ph-work-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .6s ease; }
.ph-work-card:hover video, .ph-work-card.ph-playing video { transform: scale(1.05); }
.ph-work-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 12px; color: #fff; font-size: 17px; letter-spacing: .06em; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }

.ph-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; text-align: center; padding-bottom: 20px; }
.ph-stat .ph-num { font-size: clamp(38px, 5vw, 56px); font-weight: 700; color: #d4af37; line-height: 1; }
.ph-stat .ph-lab { color: #e8e8e8; letter-spacing: .18em; font-size: 13px; text-transform: uppercase; margin-top: 8px; }

/* Before / after */
.ph-ba { --pos: 50%; position: relative; border-radius: 10px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.ph-ba img { display: block; width: 100%; }
.ph-ba .ph-ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ph-ba .ph-ba-top img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.35) contrast(.85) brightness(1.08); }
.ph-ba .ph-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #d4af37; transform: translateX(-50%); pointer-events: none; }
.ph-ba .ph-ba-knob { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: #0e0e0e; border: 2px solid #d4af37; color: #d4af37; display: flex; align-items: center; justify-content: center; font-size: 15px; pointer-events: none; }
.ph-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ph-ba .ph-tag { position: absolute; top: 14px; font-size: 12px; letter-spacing: .25em; color: #fff; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 4px; pointer-events: none; }
.ph-ba .ph-tag-l { left: 14px; } .ph-ba .ph-tag-r { right: 14px; }

/* Tilt + gold shine */
.ph-tilt { transform-style: preserve-3d; transition: transform .25s ease; position: relative; }
.ph-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,55,.22), transparent 65%); }
.ph-tilt:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ph-marquee-track, .video-background video { animation: none !important; }
  .ph-js .ph-reveal { transition: none !important; }
}
