/* ============================================
   STRIKE FORCE TACTICAL — Common Styles
   ============================================ */

/* --- Material Symbols Defaults --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.fill-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Film Grain Overlay (Global) --- */
.film-grain {
    position: relative;
}
.film-grain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Fixed full-screen grain (used as a separate layer) */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Scanlines --- */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
}

/* Full-screen scanlines layer */
.scanlines-fixed {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    background: linear-gradient(
        rgba(18,16,16,0) 50%,
        rgba(0,0,0,0.1) 50%
    ),
    linear-gradient(
        90deg,
        rgba(255,0,0,0.03),
        rgba(0,255,0,0.01),
        rgba(0,0,100,0.03)
    );
    background-size: 100% 2px, 3px 100%;
}

/* --- Grid Pattern Background --- */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
}

/* --- Glassmorphism Panel --- */
.glass-panel {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Tactical Card Hover --- */
.tactical-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.tactical-card:hover {
    border-color: #fe6b00;
    background-color: #1c1b1b;
}
.tactical-card:hover .card-accent {
    background-color: #fe6b00;
}

/* --- Card Glitch (Micro-interaction) --- */
.card-glitch:hover {
    transform: translateX(2px);
    transition: transform 0.1s ease-in-out;
}

/* --- Button Glitch / Sweep Animation --- */
.btn-glitch {
    position: relative;
    overflow: hidden;
}
.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.3s ease-in-out;
}
.btn-glitch:hover::before {
    left: 100%;
}

/* Glitch Hover Skew (for specific buttons) */
.glitch-hover:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}
@keyframes glitch-skew {
    0%   { transform: skew(0deg); }
    20%  { transform: skew(-5deg); }
    40%  { transform: skew(5deg); }
    60%  { transform: skew(-2deg); }
    80%  { transform: skew(2deg); }
    100% { transform: skew(0deg); }
}

/* --- Selection Styling --- */
::selection {
    background-color: #fe6b00;
    color: #000;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    max-height: 400px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8c7b8;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #c3cc8c;
    background-color: rgba(195, 204, 140, 0.05);
    border-left-color: #c3cc8c;
}
.mobile-nav-link.active {
    color: #fe6b00;
    border-left-color: #fe6b00;
    background-color: rgba(254, 107, 0, 0.05);
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 280px;
    gap: 16px;
    grid-auto-flow: dense;
}
.gallery-item-tall {
    grid-row: span 2;
}
.gallery-item-wide {
    grid-column: span 2;
}
.gallery-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}
.gallery-card:hover {
    border-color: #fe6b00;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card:hover .gallery-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay-content {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-overlay-content {
    transform: translateY(0);
}
.gallery-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #131313;
    background-color: #fe6b00;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.gallery-title {
    font-family: 'Epilogue', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e5e2e1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.gallery-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #919283;
    margin-top: 4px;
}
.gallery-zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-caption {
    text-align: center;
    font-family: 'Epilogue', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e5e2e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.lightbox-close:hover {
    background: #fe6b00;
    border-color: #fe6b00;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.lightbox-nav:hover {
    background: rgba(254, 107, 0, 0.3);
    border-color: #fe6b00;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================
   RESPONSIVE — MOBILE-FIRST ADJUSTMENTS
   ============================================ */

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    /* Typography scaling */
    .text-h1, [class*="text-h1"] {
        font-size: 2.2rem !important;
        line-height: 1.15 !important;
    }
    .text-h2, [class*="text-h2"] {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    .text-h3, [class*="text-h3"] {
        font-size: 1.25rem !important;
    }

    /* Gallery grid — single column on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 12px;
    }
    .gallery-item-tall {
        grid-row: span 1;
    }
    .gallery-item-wide {
        grid-column: span 1;
    }
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
        padding: 16px;
    }
    .gallery-overlay-content {
        transform: translateY(0);
    }
    .gallery-zoom-icon {
        display: none;
    }

    /* Lightbox mobile */
    .lightbox-content img {
        max-width: 95vw;
        max-height: 70vh;
    }
    .lightbox-nav {
        width: 40px;
        height: 52px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

/* Medium devices (tablets, 768px — 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .gallery-item-wide {
        grid-column: span 2;
    }
}

/* ============================================
   CRT BOOT SEQUENCE
   ============================================ */
#boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, filter 0.8s ease;
}
#boot-overlay.boot-fadeout {
    opacity: 0;
    filter: brightness(3) contrast(0.5);
    pointer-events: none;
}
.boot-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        rgba(18,16,16,0) 50%,
        rgba(0,0,0,0.25) 50%
    );
    background-size: 100% 3px;
    z-index: 1;
}
.boot-terminal {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.4);
}
.boot-line {
    opacity: 0;
    animation: bootLineIn 0.1s ease forwards;
    white-space: pre;
}
.boot-line.boot-success {
    color: #33ff33;
}
.boot-line.boot-warning {
    color: #fe6b00;
    text-shadow: 0 0 8px rgba(254, 107, 0, 0.5);
}
.boot-cursor {
    animation: bootBlink 0.5s step-end infinite;
    color: #33ff33;
}
@keyframes bootLineIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes bootBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* CRT flicker on boot */
#boot-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(51, 255, 51, 0.015);
    pointer-events: none;
    animation: crtFlicker 0.15s infinite;
    z-index: 3;
}
@keyframes crtFlicker {
    0%   { opacity: 0.27; }
    10%  { opacity: 0.25; }
    30%  { opacity: 0.30; }
    50%  { opacity: 0.24; }
    70%  { opacity: 0.28; }
    100% { opacity: 0.26; }
}

/* ============================================
   GLITCH PAGE TRANSITION — ENHANCED
   ============================================ */
#glitch-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

/* --- EXIT: clicking a link --- */
#glitch-transition.gt-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Noise layer — static TV grain */
.gt-noise {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}
#glitch-transition.gt-active .gt-noise {
    animation: noiseBurst 0.5s steps(5) forwards;
}
#glitch-transition.gt-ambient .gt-noise {
    animation: noiseBurstAmbient 0.2s steps(3) forwards;
}

/* RGB channel layers — chromatic aberration */
.gt-rgb {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
}
.gt-rgb-r { background: rgba(255, 0, 50, 0.15); }
.gt-rgb-g { background: rgba(0, 255, 70, 0.10); }
.gt-rgb-b { background: rgba(0, 80, 255, 0.13); }

#glitch-transition.gt-active .gt-rgb-r {
    animation: rgbShiftR 0.48s steps(3) forwards;
}
#glitch-transition.gt-active .gt-rgb-g {
    animation: rgbShiftG 0.48s steps(4) forwards;
}
#glitch-transition.gt-active .gt-rgb-b {
    animation: rgbShiftB 0.48s steps(3) forwards;
}
#glitch-transition.gt-ambient .gt-rgb-r {
    animation: rgbFlickAmbient 0.15s steps(2) forwards;
}
#glitch-transition.gt-ambient .gt-rgb-b {
    animation: rgbFlickAmbient 0.18s steps(2) forwards;
}

/* Horizontal distortion bars */
.gt-bars {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        linear-gradient(transparent 2px, rgba(19,19,19,0.95) 2px, rgba(19,19,19,0.95) 4px, transparent 4px),
        linear-gradient(transparent 30%, rgba(19,19,19,0.9) 30%, rgba(19,19,19,0.9) 32%, transparent 32%),
        linear-gradient(transparent 55%, rgba(19,19,19,0.85) 55%, rgba(19,19,19,0.85) 58%, transparent 58%),
        linear-gradient(transparent 78%, rgba(19,19,19,0.9) 78%, rgba(19,19,19,0.9) 80%, transparent 80%);
    background-size: 100% 100%;
}
#glitch-transition.gt-active .gt-bars {
    animation: barsIn 0.48s ease-out forwards;
}

/* Horizontal slice displacement */
.gt-slices {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 2;
}
#glitch-transition.gt-active .gt-slices {
    animation: slicesIn 0.48s ease-out forwards;
}
#glitch-transition.gt-ambient .gt-slices {
    opacity: 1;
    animation: slicesAmbient 0.2s ease-out forwards;
}

/* VHS tracking line — horizontal band that rolls */
.gt-tracking {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.04) 20%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 80%,
        transparent
    );
    opacity: 0;
    z-index: 3;
    filter: blur(1px);
}
#glitch-transition.gt-active .gt-tracking {
    animation: trackingRoll 0.48s ease-in-out forwards;
}
#glitch-transition.gt-ambient .gt-tracking {
    animation: trackingRollAmbient 0.2s ease-in-out forwards;
}

/* Orange sweep line */
.gt-sweep {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fe6b00;
    box-shadow: 0 0 15px 4px rgba(254,107,0,0.6), 0 0 40px 8px rgba(254,107,0,0.2), 0 0 80px 16px rgba(254,107,0,0.05);
    opacity: 0;
    z-index: 4;
}
#glitch-transition.gt-active .gt-sweep {
    animation: sweepDown 0.38s 0.03s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* White flash */
.gt-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    z-index: 5;
}
#glitch-transition.gt-active .gt-flash {
    animation: whiteFlash 0.48s ease-out forwards;
}

/* Glitch text — data corruption overlay */
.gt-glitch-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Epilogue', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fe6b00;
    text-shadow:
        0 0 20px rgba(254, 107, 0, 0.8),
        0 0 60px rgba(254, 107, 0, 0.3),
        3px 0 rgba(255, 0, 50, 0.5),
        -3px 0 rgba(0, 80, 255, 0.5);
    opacity: 0;
    z-index: 6;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.6);
    padding: 16px 40px;
    border: 1px solid rgba(254, 107, 0, 0.3);
}
#glitch-transition.gt-active .gt-glitch-text {
    animation: glitchTextIn 0.48s ease-out forwards;
}
#glitch-transition.gt-ambient .gt-glitch-text {
    animation: glitchTextAmbient 0.2s ease-out forwards;
}

/* Overall darken on exit */
#glitch-transition.gt-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    animation: darkenFill 0.48s ease-in forwards;
}

/* --- ENTRY: arriving on a page --- */
#glitch-transition.gt-entry {
    opacity: 1;
    visibility: visible;
}
#glitch-transition.gt-entry::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    animation: darkenOut 0.45s ease-out forwards;
}
#glitch-transition.gt-entry .gt-sweep {
    animation: sweepDown 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
#glitch-transition.gt-entry .gt-rgb-r {
    animation: rgbFlickEntry 0.25s steps(2) forwards;
}
#glitch-transition.gt-entry .gt-rgb-g {
    animation: rgbFlickEntry 0.25s 0.05s steps(2) forwards;
}
#glitch-transition.gt-entry .gt-tracking {
    animation: trackingRollEntry 0.35s ease-in-out forwards;
}
#glitch-transition.gt-entry .gt-noise {
    animation: noiseBurstEntry 0.35s steps(4) forwards;
}

/* --- AMBIENT: micro-glitch on idle --- */
#glitch-transition.gt-ambient {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

/* --- KEYFRAMES — EXIT --- */
@keyframes rgbShiftR {
    0%   { opacity: 0; transform: translate(0, 0); }
    10%  { opacity: 0.3; transform: translate(3px, -1px); }
    20%  { opacity: 1; transform: translate(15px, -4px); }
    30%  { opacity: 0.4; transform: translate(-5px, 2px); }
    40%  { opacity: 0.9; transform: translate(10px, -2px); }
    50%  { opacity: 0.3; transform: translate(-12px, 3px); }
    60%  { opacity: 1; transform: translate(6px, -1px); }
    70%  { opacity: 0.5; transform: translate(-8px, 2px); }
    80%  { opacity: 0.8; transform: translate(3px, -1px); }
    90%  { opacity: 0.4; transform: translate(-2px, 1px); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes rgbShiftG {
    0%   { opacity: 0; transform: translate(0, 0); }
    10%  { opacity: 0.4; transform: translate(-4px, 1px); }
    15%  { opacity: 0.8; transform: translate(-12px, 3px); }
    25%  { opacity: 0.3; transform: translate(8px, -2px); }
    35%  { opacity: 1; transform: translate(7px, -4px); }
    45%  { opacity: 0.5; transform: translate(-6px, 1px); }
    55%  { opacity: 0.7; transform: translate(-4px, 2px); }
    65%  { opacity: 1; transform: translate(9px, -3px); }
    75%  { opacity: 0.4; transform: translate(-3px, 1px); }
    85%  { opacity: 0.8; transform: translate(5px, -1px); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes rgbShiftB {
    0%   { opacity: 0; transform: translate(0, 0); }
    15%  { opacity: 0.6; transform: translate(5px, 2px); }
    25%  { opacity: 1; transform: translate(9px, 4px); }
    35%  { opacity: 0.4; transform: translate(-7px, -3px); }
    50%  { opacity: 0.9; transform: translate(-14px, -3px); }
    65%  { opacity: 0.5; transform: translate(8px, 2px); }
    75%  { opacity: 0.7; transform: translate(4px, 1px); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes barsIn {
    0%   { opacity: 0; transform: scaleY(0.3) translateX(-30px); }
    15%  { opacity: 0.5; transform: scaleY(1) translateX(15px) skewX(-2deg); }
    25%  { opacity: 0.8; transform: scaleY(1) translateX(-8px) skewX(1deg); }
    40%  { opacity: 0.9; transform: scaleY(1) translateX(5px) skewX(-0.5deg); }
    60%  { opacity: 1; transform: scaleY(1) translateX(-2px); }
    80%  { opacity: 1; transform: scaleY(1) translateX(1px); }
    100% { opacity: 1; transform: scaleY(1) translateX(0); }
}
@keyframes slicesIn {
    0%   { opacity: 0; }
    15%  { opacity: 0.12; }
    30%  { opacity: 0.06; }
    45%  { opacity: 0.1; }
    60%  { opacity: 0.03; }
    80%  { opacity: 0.07; }
    100% { opacity: 0; }
}
@keyframes trackingRoll {
    0%   { opacity: 0; top: -80px; }
    8%   { opacity: 0.7; }
    15%  { opacity: 0.4; top: 30%; }
    30%  { opacity: 0.6; top: 55%; }
    50%  { opacity: 0.3; top: 75%; }
    70%  { opacity: 0.1; top: 100%; }
    100% { opacity: 0; top: 120%; }
}
@keyframes trackingRollAmbient {
    0%   { opacity: 0; top: -60px; }
    20%  { opacity: 0.5; }
    50%  { opacity: 0.3; top: 50%; }
    100% { opacity: 0; top: 110%; }
}
@keyframes noiseBurst {
    0%   { opacity: 0; }
    10%  { opacity: 0.15; }
    20%  { opacity: 0.05; }
    35%  { opacity: 0.12; }
    50%  { opacity: 0.02; }
    65%  { opacity: 0.08; }
    80%  { opacity: 0.03; }
    100% { opacity: 0; }
}
@keyframes noiseBurstAmbient {
    0%   { opacity: 0; }
    20%  { opacity: 0.1; }
    50%  { opacity: 0.04; }
    100% { opacity: 0; }
}
@keyframes noiseBurstEntry {
    0%   { opacity: 0.12; }
    30%  { opacity: 0.06; }
    60%  { opacity: 0.03; }
    100% { opacity: 0; }
}
@keyframes sweepDown {
    0%   { top: -6px; opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}
@keyframes whiteFlash {
    0%   { opacity: 0; }
    5%   { opacity: 0.35; }
    10%  { opacity: 0; }
    18%  { opacity: 0.12; }
    22%  { opacity: 0; }
    35%  { opacity: 0.05; }
    42%  { opacity: 0; }
    55%  { opacity: 0.02; }
    100% { opacity: 0; }
}
@keyframes glitchTextIn {
    0%   { opacity: 0; transform: translate(-50%, -50%) scaleX(0.8); filter: blur(4px); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scaleX(1.05); filter: blur(0); }
    25%  { opacity: 0.8; transform: translate(-48%, -50%) scaleX(0.98); }
    35%  { opacity: 1; transform: translate(-52%, -50%) scaleX(1.02); }
    50%  { opacity: 0.7; transform: translate(-50%, -50%) scaleX(1); }
    65%  { opacity: 0.4; }
    80%  { opacity: 0.2; }
    100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1); }
}
@keyframes glitchTextAmbient {
    0%   { opacity: 0; transform: translate(-50%, -50%) scaleX(0.9); }
    30%  { opacity: 1; transform: translate(-50%, -50%) scaleX(1.03); }
    70%  { opacity: 0.5; transform: translate(-50%, -50%) scaleX(0.98); }
    100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1); }
}
@keyframes darkenFill {
    0%   { opacity: 0; }
    40%  { opacity: 0.2; }
    70%  { opacity: 0.7; }
    100% { opacity: 1; }
}
@keyframes darkenOut {
    0%   { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes rgbFlickEntry {
    0%   { opacity: 0.7; transform: translate(10px, 0); }
    30%  { opacity: 0.4; transform: translate(-6px, 0); }
    60%  { opacity: 0.2; transform: translate(3px, 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes rgbFlickAmbient {
    0%   { opacity: 0.5; transform: translate(6px, 0); }
    50%  { opacity: 0.2; transform: translate(-3px, 0); }
    100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes trackingRollEntry {
    0%   { opacity: 0.5; top: -40px; }
    30%  { opacity: 0.4; top: 40%; }
    60%  { opacity: 0.2; top: 80%; }
    100% { opacity: 0; top: 110%; }
}

/* Ambient micro-glitch — body content displacement */
body.gt-ambient-shake {
    animation: ambientShake 0.15s ease-out;
}
@keyframes ambientShake {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-2px, 1px); }
    40%  { transform: translate(3px, -1px); }
    60%  { transform: translate(-1px, 2px); }
    80%  { transform: translate(2px, -1px); }
    100% { transform: translate(0, 0); }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cd-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 8px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.cd-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fe6b00, transparent);
    opacity: 0.6;
}
.cd-digit {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #e5e2e1;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(254, 107, 0, 0.2);
    transition: color 0.2s ease;
}
.cd-digit.cd-tick {
    animation: cdPulse 0.3s ease-out;
}
.cd-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #919283;
    margin-top: 8px;
}
@keyframes cdPulse {
    0%   { color: #fe6b00; text-shadow: 0 0 30px rgba(254, 107, 0, 0.6); }
    100% { color: #e5e2e1; text-shadow: 0 0 20px rgba(254, 107, 0, 0.2); }
}

/* Separator colons between blocks */
.cd-separator {
    display: none; /* Hidden — we use grid gap instead */
}

@media (max-width: 767px) {
    .countdown-grid {
        gap: 8px;
    }
    .cd-digit {
        font-size: 2rem;
    }
    .cd-block {
        padding: 14px 4px;
    }
    .cd-label {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================
   FILTER BUTTONS (Gallery)
   ============================================ */
.gallery-filter {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #919283;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.gallery-filter:hover {
    color: #e5e2e1;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}
.gallery-filter.active {
    color: #131313;
    background: #fe6b00;
    border-color: #fe6b00;
}
