/* =============================================
   ShutterPhrase — BASE.CSS
   ============================================= */

/* ═══════════ ROOT VARIABLES ═══════════ */
:root {
    --pad-x: 6%;
    --pad-y: 80px;
    --grid-gap: 24px;
    --cursor-color: rgba(255, 223, 133, 0.9);
}
@media (min-width: 768px) {
    :root { --pad-x: 8%; --pad-y: 100px; --grid-gap: 40px; }
}
@media (min-width: 1024px) {
    :root { --pad-x: 10%; --pad-y: 130px; --grid-gap: 50px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #050505;
    color: #f5f5f5;
    font-family: Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    cursor: none;
}

.ambient-glow {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0%, rgba(245,166,35,0.04) 15%, rgba(255,223,133,0.02) 30%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.05) 0%, rgba(245,166,35,0.03) 12%, rgba(255,223,133,0.015) 25%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.07) 0%, rgba(245,166,35,0.05) 18%, rgba(255,223,133,0.02) 35%, transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, rgba(245,166,35,0.03) 10%, rgba(255,223,133,0.01) 20%, transparent 35%);
    filter: blur(35px);
    mix-blend-mode: screen;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

section { padding: var(--pad-y) var(--pad-x); max-width: 1800px; margin: 0 auto; position: relative; z-index: 10; }

h1, h2 { font-family: "Cormorant Garamond", serif; letter-spacing: .5px; line-height: 1.1; text-shadow: 0 0 40px rgba(255,255,255,0.15); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* ================= APERTURE LOADER ================= */
#sp-intro {
    position: fixed; inset: 0; background: #050505; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1s ease;
}
#sp-intro.hidden { opacity: 0; pointer-events: none; }

#aperture {
    position: relative; width: 320px; height: 320px;
}

#aperture-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
}

/* Outer ring */
.ap-outer-ring {
    fill: #0a0a0a;
    stroke: rgba(245,166,35,0.2);
    stroke-width: 1;
}

/* Each blade — dark metallic with subtle sheen */
.ap-blade {
    fill: url(#bladeGrad);
    stroke: rgba(30,30,30,0.8);
    stroke-width: 0.3;
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress ring */
#ap-progress-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}
#ap-track { fill: none; stroke: rgba(245,166,35,0.08); stroke-width: 2; }
#ap-fill  {
    fill: none; stroke: rgba(245,166,35,0.75); stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 880; stroke-dashoffset: 880;
    transform: rotate(-90deg); transform-origin: center;
    filter: drop-shadow(0 0 5px rgba(245,166,35,0.5));
}

/* Center hole — reveals as blades open */
#ap-hole {
    fill: #050505;
    transition: r 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
#aperture-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    height: 44px; z-index: 20; opacity: 0;
    filter: drop-shadow(0 0 16px rgba(245,166,35,0.6));
    transition: opacity 0.8s ease 0.2s;
    pointer-events: none;
}
#aperture-logo.visible { opacity: 1; }

/* Grain texture overlay on loader */
#sp-intro::after {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ================= CUSTOM VIEWFINDER
