/* ============================================================
   VRAP shared cinematic hero — used by index.html + personal-shoots.html
   Owns: film grain, paparazzi flash scene, letter-by-letter H1,
   typewriter sub-line, entrance staggers, scroll-reveal base.
   (choose.html keeps its own self-contained gateway CSS.)
   Requires: --hot accent var on the page.
   ============================================================ */

/* ===== HERO ENTRANCE ANIMATION ===== */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    opacity: 0;
    animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* stagger via explicit .d1/.d2/.d3 classes — independent of wrapper structure */
.hero-animate.d1 { animation-delay: 0.15s; }
.hero-animate.d2 { animation-delay: 0.28s; }
.hero-animate.d3 { animation-delay: 0.4s; }

/* ===== TYPING EFFECT ===== */
.hero-typing { display: inline; }
.hero-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--hot, #cc0033);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.7s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== LETTER-BY-LETTER HEADLINE ===== */
.hero-word {
    display: inline-block;
    white-space: nowrap;
}
.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-40deg);
    animation: letterIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes letterIn {
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* ===== FILM GRAIN ===== */
.film-grain {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.06;
    will-change: transform;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grain-drift 0.8s steps(4) infinite;
    mix-blend-mode: overlay;
}
@keyframes grain-drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2px, 3px); }
    50%  { transform: translate(3px, -1px); }
    75%  { transform: translate(-1px, -3px); }
    100% { transform: translate(2px, 1px); }
}

/* ===== PAPARAZZI SCENE ===== */
.paparazzi-scene {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden; pointer-events: none;
    will-change: transform; z-index: 1;
}
.red-carpet {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 40vw solid transparent; border-right: 40vw solid transparent;
    border-bottom: 60vh solid #8b0000;
    opacity: 0.7; filter: blur(0.5px);
}
.carpet-lines {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 37vw solid transparent; border-right: 37vw solid transparent;
    border-bottom: 57vh solid #660000;
    opacity: 0.35;
}
.photographer {
    position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
    width: 280px; height: 420px; z-index: 5;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
    animation: photographer-move 4s ease-in-out infinite;
}
.photographer-body {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 110px; height: 240px; background: #080808;
    border-radius: 10px 10px 0 0;
    clip-path: polygon(20% 0%, 80% 0%, 95% 100%, 5% 100%);
}
.photographer-head {
    position: absolute; bottom: 240px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 65px; background: #080808; border-radius: 50%;
}
.photographer-arm {
    position: absolute; bottom: 170px; left: 50%;
    width: 140px; height: 22px; background: #080808; border-radius: 8px;
    transform: translateX(-30px) rotate(-15deg); transform-origin: right center;
}
.camera-body {
    position: absolute; bottom: 120px; left: 8px;
    width: 60px; height: 42px; background: #111;
    border: 2px solid #222; border-radius: 4px;
}
.camera-lens {
    position: absolute; bottom: 126px; left: 0;
    width: 32px; height: 32px;
    background: radial-gradient(circle, #333 40%, #111 70%, #000 100%);
    border: 2px solid #333; border-radius: 50%;
}
.camera-flash {
    position: absolute; bottom: 160px; left: 30px;
    width: 24px; height: 14px; background: #ddd; border-radius: 3px;
    animation: cam-flash-burst 1.2s ease-in-out infinite;
}
.flash-burst {
    position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,245,235,0.9) 10%, rgba(255,240,220,0.7) 25%, rgba(255,200,150,0.4) 50%, rgba(255,150,100,0.15) 70%, transparent 85%);
    z-index: 6;
    animation: paparazzi-flash 1.2s ease-in-out infinite;
}
.flash-burst-2 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,220,180,0.1) 25%, rgba(255,180,120,0.04) 50%, transparent 70%);
    animation: paparazzi-glow 1.2s ease-in-out infinite; z-index: 3;
}
.flash-ring {
    position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5); z-index: 4;
    animation: flash-ring-expand 1.2s ease-out infinite;
}
.flash-streak { position: absolute; bottom: 15%; left: 50%; transform-origin: center; z-index: 4; }
.flash-streak-h {
    width: 600px; height: 1.5px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 20%, rgba(255,240,220,0.6) 45%, rgba(255,255,255,1) 50%, rgba(255,240,220,0.6) 55%, rgba(255,255,255,0.1) 80%, transparent);
    animation: streak-flash-h 1.2s ease-in-out infinite;
}
.flash-streak-v {
    width: 1.5px; height: 400px; transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04) 20%, rgba(255,240,220,0.3) 45%, rgba(255,255,255,0.6) 50%, rgba(255,240,220,0.3) 55%, rgba(255,255,255,0.04) 80%, transparent);
    animation: streak-flash-v 1.2s ease-in-out infinite;
}
.flash-streak-d1 {
    width: 400px; height: 1px; transform: translateX(-50%) rotate(30deg);
    background: linear-gradient(90deg, transparent, rgba(255,240,220,0.2) 30%, rgba(255,255,255,0.5) 50%, rgba(255,240,220,0.2) 70%, transparent);
    animation: streak-flash-d 3.2s ease-in-out infinite 0.3s;
}
.flash-streak-d2 {
    width: 400px; height: 1px; transform: translateX(-50%) rotate(-35deg);
    background: linear-gradient(90deg, transparent, rgba(255,230,200,0.15) 30%, rgba(255,240,220,0.4) 50%, rgba(255,230,200,0.15) 70%, transparent);
    animation: streak-flash-d 3.5s ease-in-out infinite 0.8s;
}
@keyframes paparazzi-flash {
    0%   { transform: translateX(-50%) scale(0.4); opacity: 0.05; }
    8%   { transform: translateX(-50%) scale(3); opacity: 1; }
    15%  { transform: translateX(-50%) scale(1.5); opacity: 0.4; }
    22%  { transform: translateX(-50%) scale(0.6); opacity: 0.08; }
    30%  { transform: translateX(-50%) scale(2.8); opacity: 1; }
    40%  { transform: translateX(-50%) scale(1.2); opacity: 0.3; }
    100% { transform: translateX(-50%) scale(0.4); opacity: 0.05; }
}
@keyframes paparazzi-glow {
    0%   { transform: translateX(-50%) scale(0.8); opacity: 0.05; }
    8%   { transform: translateX(-50%) scale(1.5); opacity: 0.25; }
    15%  { transform: translateX(-50%) scale(1.1); opacity: 0.1; }
    22%  { transform: translateX(-50%) scale(0.9); opacity: 0.03; }
    30%  { transform: translateX(-50%) scale(1.4); opacity: 0.2; }
    40%  { transform: translateX(-50%) scale(1); opacity: 0.08; }
    100% { transform: translateX(-50%) scale(0.8); opacity: 0.05; }
}
@keyframes flash-ring-expand {
    0%   { width: 60px; height: 60px; opacity: 0.8; border-color: rgba(255,255,255,0.7); }
    100% { width: 600px; height: 600px; opacity: 0; border-color: rgba(255,240,220,0); }
}
@keyframes cam-flash-burst {
    0%, 20%, 100% { background: #666; box-shadow: none; }
    8%  { background: #fff; box-shadow: 0 0 20px 8px rgba(255,255,255,0.9), 0 0 40px 15px rgba(255,240,220,0.6); }
    30% { background: #fff; box-shadow: 0 0 18px 7px rgba(255,255,255,0.85), 0 0 35px 12px rgba(255,240,220,0.5); }
}
@keyframes streak-flash-h {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}
@keyframes streak-flash-v {
    0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleY(0.7); }
    50% { opacity: 0.8; transform: translateX(-50%) scaleY(1.15); }
}
@keyframes streak-flash-d {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.7; }
}
@keyframes photographer-move {
    0%   { transform: translateX(-50%) translateY(0) rotate(0deg); }
    15%  { transform: translateX(calc(-50% + 8px)) translateY(-3px) rotate(1deg); }
    30%  { transform: translateX(calc(-50% - 6px)) translateY(-1px) rotate(-0.5deg); }
    50%  { transform: translateX(calc(-50% + 12px)) translateY(-5px) rotate(1.5deg); }
    65%  { transform: translateX(calc(-50% - 10px)) translateY(-2px) rotate(-1deg); }
    80%  { transform: translateX(calc(-50% + 5px)) translateY(-4px) rotate(0.8deg); }
    100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
}

/* ===== HERO SCENE RESPONSIVE ===== */
@media (max-width: 640px) {
    .photographer { transform: translateX(-50%) scale(0.75); bottom: 2%; }
    .flash-burst { width: 160px !important; height: 160px !important; }
    .flash-burst-2 { width: 420px !important; height: 420px !important; }
    .flash-streak-h { width: 350px !important; }
    .flash-streak-v { height: 300px !important; }
    .red-carpet { border-bottom-width: 45vh !important; border-left-width: 35vw !important; border-right-width: 35vw !important; }
}
@media (max-width: 480px) {
    .photographer { transform: translateX(-50%) scale(0.6); bottom: 2%; }
    .flash-burst { width: 120px !important; height: 120px !important; }
    .flash-burst-2 { width: 320px !important; height: 320px !important; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .photographer { transform: translateX(-50%) scale(0.5); bottom: 2%; }
    .red-carpet { border-bottom-width: 35vh !important; }
}

/* ===== SCROLL REVEAL BASE (index.html extends its own variants) ===== */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-animate, .hero-letter, .film-grain,
    .flash-burst, .flash-burst-2, .flash-ring, .flash-streak, .camera-flash,
    .photographer {
        animation: none !important;
    }
    .hero-animate, .hero-letter, .section-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero-typing-cursor { display: none; }
}
