@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@200;300;400;500;600;700&family=Noto+Sans+Georgian:wght@200;300;400;500;600;700&family=Noto+Serif+Georgian:wght@200;300;400;500;600;700&family=Noto+Sans+Armenian:wght@200;300;400;500;600;700&family=Noto+Serif+Armenian:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-color: #0C0C0D;
    --text-color: #F7F6F3;
    --accent-color: #C08A58; /* Warm Copper */
    --accent-rgb: 192, 138, 88;
    --hud-color: rgba(247, 246, 243, 0.4);
    --border-color: rgba(247, 246, 243, 0.06);
}

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

html {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Noto Sans Georgian', 'Noto Sans Armenian', sans-serif;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: none; /* Hide default cursor to use custom reticle */
}

/* --- Viewfinder Grid (HUD Rule of Thirds) --- */
.viewfinder-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(247, 246, 243, 0.02);
}

.grid-line-v.v1 { left: 27%; }
.grid-line-v.v2 { left: 73%; }

.grid-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(247, 246, 243, 0.02);
}

.grid-line-h.h1 { top: 33.333%; }
.grid-line-h.h2 { top: 66.666%; }

/* HUD Corner Marks */
.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(247, 246, 243, 0.15);
    border-style: solid;
}

.hud-corner.top-left { top: 40px; left: 40px; border-width: 1.5px 0 0 1.5px; }
.hud-corner.top-right { top: 40px; right: 40px; border-width: 1.5px 1.5px 0 0; }
.hud-corner.bottom-left { bottom: 40px; left: 40px; border-width: 0 0 1.5px 1.5px; }
.hud-corner.bottom-right { bottom: 40px; right: 40px; border-width: 0 1.5px 1.5px 0; }

.light-leaks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leak {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.16;
    mix-blend-mode: screen;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.leak-1 {
    width: 1000px;
    height: 800px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.8) 0%, rgba(94, 100, 80, 0.35) 60%, transparent 100%);
    top: -300px;
    left: -300px;
}

.leak-2 {
    width: 1100px;
    height: 900px;
    background: radial-gradient(circle, rgba(92, 29, 36, 0.6) 0%, rgba(var(--accent-rgb), 0.3) 50%, transparent 100%);
    bottom: -400px;
    right: -300px;
}

/* --- Viewfinder Text Overlays (HUD) --- */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--hud-color);
    z-index: 12;
}

.hud-top {
    position: absolute;
    top: 55px;
    left: 55px;
    right: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-bottom {
    position: absolute;
    bottom: 55px;
    left: 55px;
    right: 55px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* REC Dot Pulse */
.rec-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F7F6F3;
}

.rec-dot {
    width: 8px;
    height: 8px;
    background-color: #E53E52;
    border-radius: 50%;
    animation: pulseRec 1.5s infinite;
}

@keyframes pulseRec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

.timecode {
    font-size: 13px;
    color: #F7F6F3;
    font-weight: 500;
}

.right-hud-top {
    display: flex;
    align-items: center;
    gap: 30px;
    pointer-events: auto;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    color: rgba(247, 246, 243, 0.4);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: none;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: var(--accent-color);
    border: 1px solid rgba(192, 138, 88, 0.3);
    background-color: rgba(192, 138, 88, 0.05);
}

.lang-btn:hover {
    color: var(--text-color);
}

.battery-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.battery-icon {
    width: 22px;
    height: 12px;
    border: 1px solid var(--hud-color);
    padding: 1px;
    border-radius: 1px;
    position: relative;
}

.battery-icon::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 4px;
    background-color: var(--hud-color);
}

.battery-fill {
    width: 100%;
    height: 100%;
    background-color: #F7F6F3;
}

/* Audio Level Meters */
.audio-levels {
    display: flex;
    align-items: center;
}

.audio-bar {
    display: flex;
    gap: 2px;
}

.bar-segment {
    width: 12px;
    height: 6px;
    background-color: rgba(247,246,243,0.1);
    transition: background-color 0.1s ease;
}

.bar-segment.active-green { background-color: #00693E; }
.bar-segment.active-yellow { background-color: #C08A58; }

.cam-settings span, .format-indicator span {
    display: block;
    margin-bottom: 4px;
}

.cam-settings span:last-child, .format-indicator span:last-child {
    margin-bottom: 0;
}

.format-indicator {
    text-align: right;
}

/* --- Main Central Content --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 80px;
    z-index: 5;
    max-width: 880px;
    margin: 0 auto;
    /* Soft dark backing gradient to shield text from moving leaks and patterns */
    background: radial-gradient(circle, rgba(12, 12, 13, 0.88) 35%, rgba(12, 12, 13, 0) 75%);
    border-radius: 50%;
}

.logo-box {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 520px;
    height: 180px;
}

.intro-aperture {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transform-origin: center center;
    animation: apertureIntro 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.blades-group {
    transform-origin: 100px 100px;
    animation: bladesSpin 20s linear infinite;
}

@keyframes apertureIntro {
    0% {
        transform: translate(-50%, -50%) scale(0.4) rotate(-180deg);
        opacity: 0;
        filter: blur(12px);
    }
    30% {
        opacity: 0.8;
        filter: blur(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3) rotate(45deg);
        opacity: 0.12;
        filter: blur(1.5px);
    }
}

@keyframes bladesSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-logo {
    width: 480px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.tagline-small {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInSlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- Language specific typography overrides --- */
body.lang-ge {
    font-family: 'Inter', 'Noto Sans Georgian', sans-serif;
}
body.lang-ge .tagline-small {
    font-family: 'Noto Serif Georgian', serif;
    text-transform: none;
    letter-spacing: 0.08em;
    font-size: 14px;
}

body.lang-am {
    font-family: 'Inter', 'Noto Sans Armenian', sans-serif;
}
body.lang-am .tagline-small {
    font-family: 'Noto Serif Armenian', serif;
    text-transform: none;
    letter-spacing: 0.08em;
    font-size: 14px;
}

.description {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(247, 246, 243, 0.7);
    max-width: 720px;
    margin-bottom: 40px;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.action-box {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* Button CTA with Copper Glow */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-cta:hover {
    background-color: rgba(var(--accent-rgb), 0.05);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
    border-color: #F7F6F3;
    transform: scale(1.02);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta svg {
    transition: transform 0.4s ease;
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Coordinates Footer --- */
.coordinates-footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(247, 246, 243, 0.3);
    z-index: 10;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.dot-separator {
    margin: 0 15px;
    color: var(--accent-color);
}

/* --- Custom Focus Point Cursor --- */
.custom-cursor {
    width: 40px;
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
    transition: width 0.3s ease, height 0.3s ease;
    will-change: transform;
}

.cursor-center {
    width: 4px;
    height: 4px;
    background-color: #E53E52; /* Camera Red Focus Point */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(192, 138, 88, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
    transition: transform 0.1s ease;
}

/* Focus Reticle expand on hover */
body.hovering-link .custom-cursor {
    width: 60px;
    height: 60px;
}

body.hovering-link .cursor-ring {
    border-color: #F7F6F3;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes clickPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.cursor-click-pulse {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid #E53E52;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    animation: clickPulse 0.4s ease-out forwards;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        cursor: auto; /* Fallback for touch devices */
    }
    
    .custom-cursor {
        display: none;
    }
    
    .hud-overlay {
        font-size: 9px;
    }
    
    .hud-corner {
        width: 8px;
        height: 8px;
    }

    .hud-corner.top-left {
        top: 20px !important;
        left: 20px !important;
    }

    .hud-corner.top-right {
        top: 20px !important;
        right: 20px !important;
    }

    .hud-corner.bottom-left {
        bottom: 20px !important;
        left: 20px !important;
    }

    .hud-corner.bottom-right {
        bottom: 20px !important;
        right: 20px !important;
    }

    .hud-top {
        top: 25px;
        left: 25px;
        right: 25px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .right-hud-top {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .timecode {
        font-size: 11px;
    }

    .lang-switcher {
        gap: 8px;
        margin: 2px 0;
    }

    .battery-status {
        font-size: 8px;
        gap: 6px;
    }

    /* Hide RAW 10-BIT and separator on small screens to prevent overlap */
    .battery-status span:nth-of-type(3),
    .battery-status .dot-separator {
        display: none !important;
    }

    .hud-bottom {
        bottom: 25px;
        left: 25px;
        right: 25px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .cam-settings {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 6px 12px;
        font-size: 9px;
    }

    .format-indicator {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        font-size: 9px;
    }

    .main-content {
        padding: 0 30px;
    }
    
    .logo-box {
        width: 290px;
        height: 100px;
        margin-bottom: 15px;
    }

    .intro-aperture {
        width: 150px;
        height: 150px;
    }

    .main-logo {
        width: 240px;
    }
    
    .tagline-small {
        font-size: 9px;
        letter-spacing: 0.18em;
        margin-bottom: 12px;
    }
    
    .description {
        font-size: 12px;
        line-height: 1.55;
    }
    
    .coordinates-footer {
        display: none !important;
    }
    
    .audio-levels {
        display: none; /* Hide audio meters on mobile */
    }
}

/* --- Tablet Responsiveness --- */
@media (max-width: 1024px) {
    .hud-top, .hud-bottom {
        left: 35px;
        right: 35px;
    }
    
    .right-hud-top {
        gap: 15px;
    }

    /* Hide RAW metadata to optimize spacing on tablets */
    .battery-status span:nth-of-type(3),
    .battery-status .dot-separator {
        display: none !important;
    }

    .logo-box {
        width: 380px;
        height: 130px;
        margin-bottom: 20px;
    }
    .intro-aperture {
        width: 200px;
        height: 200px;
    }
    .main-logo {
        width: 340px;
    }
    .tagline-small {
        font-size: 10px;
        letter-spacing: 0.20em;
        margin-bottom: 15px;
    }
    .description {
        font-size: 13.5px;
        max-width: 580px;
    }
    .btn-cta {
        padding: 12px 28px;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        cursor: default !important;
    }
    .viewfinder-grid, .light-leaks, .hud-overlay, .custom-cursor, .action-box, .rec-border, .film-grain, .sensor-resync-overlay {
        display: none !important;
    }
    .main-content {
        max-width: 100%;
        padding: 0;
        margin: 120px auto;
    }
    .main-logo {
        filter: invert(1) !important; /* Invert white logo for white paper print */
        width: 380px;
        max-width: 100%;
    }
    .tagline-small {
        color: #C08A58 !important;
        font-size: 13px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .description {
        color: #2b2b2b !important;
        font-size: 15px;
        line-height: 1.6;
        max-width: 600px;
    }
    .coordinates-footer {
        position: absolute;
        bottom: 40px;
        width: 100%;
        text-align: center;
        color: #555555 !important;
        font-size: 10px;
    }
    .dot-separator {
        color: #C08A58 !important;
    }
}

/* ==========================================================================
   INTERACTIVE HUD ELEMENTS & SIMULATIONS (VERSION 2 EXPERIMENTAL)
   ========================================================================== */

.hud-interactive {
    cursor: none;
    pointer-events: auto;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
}

.hud-interactive:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
    transform: scale(1.05);
}

/* Active Recording Outline Border */
.rec-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0px solid #E53E52;
    pointer-events: none;
    z-index: 99;
    box-sizing: border-box;
    transition: border-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

body.recording .rec-border {
    border-width: 4px;
    box-shadow: inset 0 0 30px rgba(229, 62, 82, 0.15);
}

/* Dynamic Film Grain Overlay */
.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}

/* Active Recording Mode Styles */
body.recording #recText {
    color: #E53E52 !important;
    font-weight: 700;
}

body.recording #timecode {
    color: #E53E52 !important;
}

body.recording .rec-dot {
    background-color: #E53E52 !important;
    animation: pulseRecFast 0.6s infinite alternate ease-in-out;
}

@keyframes pulseRecFast {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.15); }
}

/* Transitions for Leaks Filters (for WB and ISO modifications) */
.leak {
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SENSOR CROP ZOOM & GLITCH FX (VERSION 3 EXPERIMENTAL)
   ========================================================================== */

/* Main content zoom transition */
.main-content {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Crop zooms on different resolution modes */
body.crop-8k .main-content {
    transform: scale(0.92); /* Wide angle full-frame sensor */
}

body.crop-4k .main-content {
    transform: scale(1.0); /* Standard 4K DCI scale */
}

body.crop-2k .main-content {
    transform: scale(1.08); /* Windowed crop zoom */
}

body.crop-hd .main-content {
    transform: scale(1.18); /* Extreme sensor crop zoom */
}

/* Background light leaks optical wrapper styling */
.leak-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Leaks Optical Shift & Scale on Sensor Crops */
body.crop-8k .leak-wrapper-1 { transform: scale(0.9) translate(40px, 30px); }
body.crop-8k .leak-wrapper-2 { transform: scale(0.9) translate(-40px, -30px); }

body.crop-4k .leak-wrapper-1 { transform: scale(1) translate(0, 0); }
body.crop-4k .leak-wrapper-2 { transform: scale(1) translate(0, 0); }

body.crop-2k .leak-wrapper-1 { transform: scale(1.18) translate(-80px, -60px); }
body.crop-2k .leak-wrapper-2 { transform: scale(1.18) translate(80px, 60px); }

body.crop-hd .leak-wrapper-1 { transform: scale(1.38) translate(-160px, -120px); }
body.crop-hd .leak-wrapper-2 { transform: scale(1.38) translate(160px, 120px); }

/* Sensor Resync Glitch Overlay Styles (V3) */
.sensor-resync-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    z-index: 99999; /* Always on top */
    opacity: 0;
    mix-blend-mode: difference;
    transition: opacity 0.1s ease;
}

body.sensor-resync .sensor-resync-overlay {
    opacity: 1;
    animation: staticGlitch 0.28s steps(4) forwards;
}

body.sensor-resync {
    animation: sensorGlitch 0.28s ease-out forwards;
}

@keyframes sensorGlitch {
    0% { filter: brightness(2.0) contrast(1.5) hue-rotate(60deg); }
    33% { filter: brightness(0.2) contrast(2) grayscale(1); }
    66% { filter: brightness(1.6) contrast(1.2) hue-rotate(-60deg); }
    100% { filter: none; }
}

@keyframes staticGlitch {
    0% { background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.35'/%3E%3C/svg%3E"); }
    33% { background: rgba(46,204,113,0.08) url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.35'/%3E%3C/svg%3E"); transform: scaleY(1.05) translate(4px, 0); }
    66% { background: rgba(229,62,82,0.08) url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.35'/%3E%3C/svg%3E"); transform: scaleY(0.95) translate(-4px, 0); }
    100% { background: transparent; }
}

/* ==========================================================================
   APERTURE BLADES, FOCUS PEAKING & ZEBRA FX (VERSION 3 EXPERIMENTAL)
   ========================================================================== */

/* Aperture Blade smooth movements */
.blades-group use {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: 100px 100px;
}

/* F/1.4 (Fully Open) */
body.aperture-f1-4 .blades-group use:nth-child(1) { transform: rotate(0deg) scale(1.1) translate(0px, -15px); }
body.aperture-f1-4 .blades-group use:nth-child(2) { transform: rotate(60deg) scale(1.1) translate(0px, -15px); }
body.aperture-f1-4 .blades-group use:nth-child(3) { transform: rotate(120deg) scale(1.1) translate(0px, -15px); }
body.aperture-f1-4 .blades-group use:nth-child(4) { transform: rotate(180deg) scale(1.1) translate(0px, -15px); }
body.aperture-f1-4 .blades-group use:nth-child(5) { transform: rotate(240deg) scale(1.1) translate(0px, -15px); }
body.aperture-f1-4 .blades-group use:nth-child(6) { transform: rotate(300deg) scale(1.1) translate(0px, -15px); }

/* F/2.8 (Standard Default) */
body.aperture-f2-8 .blades-group use:nth-child(1) { transform: rotate(0deg) scale(1.0) translate(0px, 0px); }
body.aperture-f2-8 .blades-group use:nth-child(2) { transform: rotate(60deg) scale(1.0) translate(0px, 0px); }
body.aperture-f2-8 .blades-group use:nth-child(3) { transform: rotate(120deg) scale(1.0) translate(0px, 0px); }
body.aperture-f2-8 .blades-group use:nth-child(4) { transform: rotate(180deg) scale(1.0) translate(0px, 0px); }
body.aperture-f2-8 .blades-group use:nth-child(5) { transform: rotate(240deg) scale(1.0) translate(0px, 0px); }
body.aperture-f2-8 .blades-group use:nth-child(6) { transform: rotate(300deg) scale(1.0) translate(0px, 0px); }

/* F/5.6 (Closed slightly) */
body.aperture-f5-6 .blades-group use:nth-child(1) { transform: rotate(12deg) scale(0.9) translate(0px, 8px); }
body.aperture-f5-6 .blades-group use:nth-child(2) { transform: rotate(72deg) scale(0.9) translate(0px, 8px); }
body.aperture-f5-6 .blades-group use:nth-child(3) { transform: rotate(132deg) scale(0.9) translate(0px, 8px); }
body.aperture-f5-6 .blades-group use:nth-child(4) { transform: rotate(192deg) scale(0.9) translate(0px, 8px); }
body.aperture-f5-6 .blades-group use:nth-child(5) { transform: rotate(252deg) scale(0.9) translate(0px, 8px); }
body.aperture-f5-6 .blades-group use:nth-child(6) { transform: rotate(312deg) scale(0.9) translate(0px, 8px); }

/* F/8.0 (Closed heavily) */
body.aperture-f8-0 .blades-group use:nth-child(1) { transform: rotate(25deg) scale(0.8) translate(0px, 16px); }
body.aperture-f8-0 .blades-group use:nth-child(2) { transform: rotate(85deg) scale(0.8) translate(0px, 16px); }
body.aperture-f8-0 .blades-group use:nth-child(3) { transform: rotate(145deg) scale(0.8) translate(0px, 16px); }
body.aperture-f8-0 .blades-group use:nth-child(4) { transform: rotate(205deg) scale(0.8) translate(0px, 16px); }
body.aperture-f8-0 .blades-group use:nth-child(5) { transform: rotate(265deg) scale(0.8) translate(0px, 16px); }
body.aperture-f8-0 .blades-group use:nth-child(6) { transform: rotate(325deg) scale(0.8) translate(0px, 16px); }

/* Focus Peaking Simulation (Designer Monochrome + Electric Cyan edges) */
body.peak-active .light-leaks {
    filter: grayscale(1) brightness(0.5) contrast(1.3) !important;
}

body.peak-active .main-logo,
body.peak-active .btn-cta,
body.peak-active .hud-corner,
body.peak-active .grid-line-v,
body.peak-active .grid-line-h {
    color: #00f3ff !important;
    border-color: #00f3ff !important;
    filter: drop-shadow(0 0 2px rgba(0, 243, 255, 0.8)) !important;
}

body.peak-active .intro-aperture circle,
body.peak-active .intro-aperture use {
    stroke: #00f3ff !important;
    filter: drop-shadow(0 0 2.5px rgba(0, 243, 255, 0.9)) !important;
}

/* Zebra Overexposure Dots Overlay (Premium Sensor Pixel Matrix) */
.leak-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant, fine copper grid dots (1px dot, 8px gap) matching the studio's color theme */
    background-image: radial-gradient(rgba(192, 138, 88, 0.45) 1px, transparent 1px);
    background-size: 8px 8px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    
    /* Radial mask: clips the pattern ONLY to the hot overexposed core of the light leaks,
       completely excluding the central text area from any noise */
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 12%, transparent 40%);
    mask-image: radial-gradient(circle at 50% 50%, black 12%, transparent 40%);
}

body.zebra-active .leak-wrapper::after {
    opacity: 0.8;
    animation: zebraPulse 3s ease-in-out infinite alternate;
}

@keyframes zebraPulse {
    0% { opacity: 0.35; }
    100% { opacity: 0.85; }
}

