/* Variables for Pinkish Win98 Theme and Blue Filter */
:root {
    --win-bg: #dfc8cb;      /* Pinkish grey base */
    --win-light: #ffffff;   /* Highlight */
    --win-dark: #8c7377;    /* Shadow */
    --win-darker: #000000;  /* Deep shadow */
    

}

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

body {
    font-family: 'Courier New', Courier, monospace; /* Default font for the rest */
    background-color: #ffffff;
    color: #000000;
    height: 100vh;
    width: 100vw;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

/* Massive Header Styling */
header {
    flex-shrink: 0; 
    text-align: center;
    padding: 1.5vh 0 1vh 0; 
    width: 100%;
}

h1 {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 16vw; 
    line-height: 0.8;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
}

h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Titles other than h1 */
}

/* Grid Layout */
.grid-wrapper {
    flex-grow: 1; 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 2fr 1fr; 
    gap: 1vw; 
    padding: 0 1vw 1vw 1vw;
}

.grid-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

.big-item { grid-column: span 2; }
.small-item { grid-column: span 1; }

.grid-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.grid-item:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.grid-item h2 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.big-item h2 { font-size: 6vh; }
.small-item h2 { font-size: 3vh; }

.grid-item:hover h2 {
    transform: scale(1.05);
}

/* --- Placeholder Images --- */
#block-faceless { background-image: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80'); }
#block-anticells { background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80'); }
#block-about { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80'); }
#block-antiiii { background-image: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80'); }
#block-contact { background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80'); }
#block-blog { background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80'); }

/* ========================================= */
/* WINDOWS 98 TASKBAR (PINKISH GREY THEME)   */
/* ========================================= */
#taskbar {
    flex-shrink: 0;
    height: 40px;
    background-color: var(--win-bg);
    border-top: 2px solid var(--win-light);
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    color: #000;
}

#taskbar-divider {
    width: 2px;
    height: 30px;
    background-color: var(--win-light);
    border-right: 1px solid var(--win-dark);
    margin: 0 4px;
}

.win98-btn {
    background-color: var(--win-bg);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-dark);
    border-right: 2px solid var(--win-dark);
    padding: 4px 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 30px;
    box-shadow: inset -1px -1px 0px var(--win-darker);
}

.win98-btn:active, .win98-btn.active {
    border-top: 2px solid var(--win-dark);
    border-left: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-light);
    border-right: 2px solid var(--win-light);
    box-shadow: inset 1px 1px 0px var(--win-darker);
    padding: 5px 11px 3px 13px; /* Shifts text slightly to look pressed */
    background: repeating-linear-gradient(
        45deg,
        var(--win-bg),
        var(--win-bg) 2px,
        #d1b8bc 2px, /* Slightly darker pattern for active state */
        #d1b8bc 4px
    );
}

#taskbar-items {
    flex-grow: 1;
    display: flex;
    gap: 4px;
    overflow: hidden;
}

.task-item {
    font-weight: bold;
    min-width: 100px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win98-inset {
    border-top: 2px solid var(--win-dark);
    border-left: 2px solid var(--win-dark);
    border-bottom: 2px solid var(--win-light);
    border-right: 2px solid var(--win-light);
    padding: 4px 10px;
    display: flex;
    align-items: center;
    height: 30px;
}

#taskbar-datetime {
    font-size: 12px;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1.5fr 1fr 1fr; 
    }
    .big-item { grid-column: span 1; }
    .small-item { grid-column: span 1; }
    h1 { font-size: 20vw; }
    .big-item h2 { font-size: 4vh; }
    .task-item { max-width: 80px; font-size: 11px; } /* Shrink taskbar items on small screens */
}
/* ========================================= */
/* PRODUCT MODAL (PDP) OVERLAY               */
/* ========================================= */
#product-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 40px); /* Leaves taskbar visible */
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vw;
}

#product-modal.hidden {
    display: none;
}

/* Win98 Window Styling */
.win98-window {
    width: 100%;
    height: 100%;
    background-color: var(--win-bg);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-darker);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.win98-titlebar {
    /* Updated to a Blue and Pink gradient */
    background: linear-gradient(90deg, #000080 0%, #ff66b2 100%); 
    color: white;
    font-weight: bold;
    padding: 3px 4px 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-shrink: 0;
}
#sticky-media {
    transition: opacity 0.3s ease-in-out;
}
.win98-close-btn {
    background: var(--win-bg);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-darker);
    font-weight: bold;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: black;
}

.win98-close-btn:active {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-light);
    border-right: 2px solid var(--win-light);
}

/* Modal Content Area */
.modal-scroll-area {
    background: #ffffff; /* Editorial white background */
    flex-grow: 1;
    overflow-y: auto;
    padding: 2vw 4vw;
    border: inset 2px var(--win-dark);
}

.modal-top-nav {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3vh;
}

#modal-close-text {
    cursor: pointer;
}

#modal-source-link {
    color: black;
    text-decoration: underline;
}

/* Editorial Split Layout */
.modal-layout {
    display: flex;
    gap: 4vw;
}

.modal-media-side {
    flex: 1;
    position: sticky;
    top: 0;
    height: 70vh; /* Keeps it in view while scrolling right side */
    display: flex;
    align-items: stretch;
}

.modal-media-side img,
.modal-media-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #000;
    display: block;
    flex: 1;
}

.modal-text-side {
    flex: 1;
    padding-bottom: 10vh;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2vh;
}

.tag-inspire {
    background: #e6dcf5; /* Light purple from your reference */
    padding: 4px 8px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

/* The Blue Buttons Required */
.blue-btn {
    background-color: #00a2e8; /* Win98 Paint blue */
    color: white;
    font-weight: bold;
    border-top: 2px solid #5ce6ff;
    border-left: 2px solid #5ce6ff;
    border-bottom: 2px solid #005c8a;
    border-right: 2px solid #005c8a;
    box-shadow: none;
}
.blue-btn:active {
    background-color: #00a2e8;
    border-top: 2px solid #005c8a;
    border-left: 2px solid #005c8a;
    border-bottom: 2px solid #5ce6ff;
    border-right: 2px solid #5ce6ff;
    background: #0088c4;
}

.product-big-title {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 6vw;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 4vh;
}

/* Dynamic Sections */
.product-section {
    margin-bottom: 5vh;
}

.product-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mobile-inline-img {
    display: none; /* Hidden on desktop */
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }
    
    .modal-media-side {
        display: none; /* Hide sticky left image */
    }

    .mobile-inline-img {
        display: block; /* Show images directly under section titles */
        width: 100%;
        height: auto;
        margin-bottom: 15px;
        border: 1px solid #000;
    }

    .product-big-title {
        font-size: 12vw;
    }
}
/* ========================================= */
/* MODAL OVERLAY BASE                        */
/* ========================================= */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 40px); /* Leaves taskbar visible */
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vw;
}

.modal-overlay.hidden {
    display: none;
}

/* Win98 Window Styling */
.win98-window {
    width: 100%;
    height: 100%;
    background-color: var(--win-bg);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-darker);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.win98-titlebar {
    background: linear-gradient(90deg, #000080 0%, #ff66b2 100%); 
    color: white;
    font-weight: bold;
    padding: 3px 4px 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.win98-close-btn {
    background: var(--win-bg);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-bottom: 2px solid var(--win-darker);
    border-right: 2px solid var(--win-darker);
    font-weight: bold;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: black;
}

.win98-close-btn:active {
    border-top: 2px solid var(--win-darker);
    border-left: 2px solid var(--win-darker);
    border-bottom: 2px solid var(--win-light);
    border-right: 2px solid var(--win-light);
}

.modal-scroll-area {
    background: #ffffff; 
    flex-grow: 1;
    overflow-y: auto;
    padding: 2vw 4vw;
    border: inset 2px var(--win-dark);
}

/* The Blue Buttons */
.blue-btn {
    background-color: #00a2e8;
    color: white;
    font-weight: bold;
    border-top: 2px solid #5ce6ff;
    border-left: 2px solid #5ce6ff;
    border-bottom: 2px solid #005c8a;
    border-right: 2px solid #005c8a;
    box-shadow: none;
}
.blue-btn:active {
    background-color: #0088c4;
    border-top: 2px solid #005c8a;
    border-left: 2px solid #005c8a;
    border-bottom: 2px solid #5ce6ff;
    border-right: 2px solid #5ce6ff;
}

/* ========================================= */
/* 1. PDP / ABOUT LAYOUT (Editorial Split)   */
/* ========================================= */
.modal-layout { display: flex; gap: 4vw; }
.modal-media-side { flex: 1; position: sticky; top: 0; height: 70vh; display: flex; align-items: stretch; }
.modal-media-side img,
.modal-media-side video { width: 100%; height: 100%; object-fit: cover; border: 1px solid #000; display: block; flex: 1; }
.modal-text-side { flex: 1; padding-bottom: 10vh; }
.modal-actions { display: flex; gap: 15px; margin-bottom: 2vh; }
.product-big-title { font-family: Impact, 'Arial Black', sans-serif; font-size: 6vw; line-height: 0.9; letter-spacing: -2px; margin-bottom: 4vh; }
.product-section { margin-bottom: 5vh; }
.product-section h3 { font-size: 24px; margin-bottom: 15px; font-weight: bold; }
.product-section p { font-size: 16px; line-height: 1.6; margin-bottom: 15px; }
.mobile-inline-img, .mobile-inline-iframe { display: none; }

/* ========================================= */
/* 2. CLUB LAYOUT (Retro Split)              */
/* ========================================= */
.club-container { padding: 0; }
.club-layout { display: flex; height: 100%; min-height: 70vh; font-family: 'Courier New', Courier, monospace; }
.club-text { flex: 1; padding: 4vw; border-right: 2px solid var(--win-darker); overflow-y: auto; background: #fafafa;}
.club-text p { font-size: 16px; margin-bottom: 20px; line-height: 1.4; font-weight: bold; }
.club-menu { margin-top: 30px; }
.club-menu-item { border-top: 2px solid var(--win-darker); border-bottom: 2px solid var(--win-darker); padding: 12px 0; font-weight: bold; margin-bottom: -2px;}
.club-image { flex: 1.2; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle, #ffeb99 0%, #ff8c00 100%); }
.club-image img { width: 80%; object-fit: cover; border-radius: 10px; border: 4px solid #fff; box-shadow: 0 0 15px rgba(0,0,0,0.5);}

/* ========================================= */
/* 3. CONTACT LAYOUT (Grid)                  */
/* ========================================= */
.contact-container { padding: 4vw; display: flex; align-items: center; justify-content: center;}
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); /* Two elements per row */
    gap: 20px; /* Adjust spacing between rows and columns */
    justify-content: center;
    width: 100%;
    height: 60vh; }
.contact-card { font-size: 3vw; text-decoration: none; }

/* ========================================= */
/* 4. NEWSROOM LAYOUT (Blog)                 */
/* ========================================= */
.news-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; font-family: 'Courier New', monospace; font-size: 14px;}
.news-nav span { padding: 4px 10px; cursor: pointer; }
.news-nav span.active { background: #000; color: #fff; font-weight: bold; }
.news-nav span:not(.active) { background: #eee; border: 1px dotted #000; }

.newsroom-header-wrap { border-top: 4px solid #000; border-bottom: 4px solid #000; padding: 10px 0; margin-bottom: 30px; text-align: center; }
.newsroom-title { font-family: 'Times New Roman', serif; font-size: 10vw; line-height: 1; letter-spacing: -2px; margin: 0; }
.newsroom-header-wrap p { font-family: 'Courier New', monospace; font-size: 12px; text-transform: uppercase; margin-top: 5px; font-weight: bold; }

.news-item { display: flex; gap: 2vw; margin-bottom: 30px; cursor: pointer; border-bottom: 1px solid #ccc; padding-bottom: 20px; transition: transform 0.2s;}
.news-item:hover { transform: translateX(10px); }
.news-item img { width: 250px; height: 160px; object-fit: cover; border: 3px solid #000; border-radius: 4px; box-shadow: 2px 2px 0px #000;} 
.news-item-info { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.news-item-title { font-family: 'Times New Roman', serif; font-size: 28px; font-weight: bold; line-height: 1.1; }
.news-item-date { font-family: 'Courier New', monospace; font-size: 14px; font-weight: bold; }

/* Article View Inside Newsroom */
#article-main-img { width: 100%; height: 40vh; object-fit: cover; border: 2px solid #000; margin-bottom: 30px; }
.article-text-body { font-size: 18px; line-height: 1.6; max-width: 800px; margin: 0 auto; font-family: 'Times New Roman', serif;}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-layout, .club-layout, .news-item { flex-direction: column; }
    .modal-media-side { display: none; }
    .mobile-inline-img { display: block; width: 100%; height: auto; margin-bottom: 15px; border: 1px solid #000; }
    .mobile-inline-iframe { display: block; margin-bottom: 15px; }
    .club-text { border-right: none; border-bottom: 2px solid var(--win-darker); }
    .contact-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); height: auto; }
    .contact-card { font-size: 6vw; padding: 20px 0;}
    .news-item img { width: 100%; height: auto; }
}
/* ========================================= */
/* 2. CLUB & CONTACT CONTENT                 */
/* ========================================= */
.club-text-content p { 
    font-size: 16px; 
    margin-bottom: 20px; 
    line-height: 1.6; 
    font-family: 'Courier New', Courier, monospace; 
    font-weight: bold; 
}
.club-menu { margin-top: 30px; }
.club-menu-item { 
    border-top: 2px solid var(--win-darker); 
    border-bottom: 2px solid var(--win-darker); 
    padding: 12px 0; 
    font-weight: bold; 
    margin-bottom: -2px; 
    font-family: 'Courier New', Courier, monospace;
}

/* Contact Specific Grid (Club Menu Aesthetic) */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    
    /* Removed vertical gap so borders touch nicely on mobile, kept horizontal gap */
    row-gap: 0px;      
    column-gap: 20px;  
    
    width: 100%; 
    margin-top: 15px;
    height: auto; 
}

.contact-card { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px;       
    padding: 12px 0;        
    text-decoration: none; 
    text-align: center; 
    
    /* Club Menu Styling */
    color: #000000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border-top: 2px solid var(--win-darker); 
    border-bottom: 2px solid var(--win-darker); 
    margin-bottom: -2px; /* Prevents double-thick borders if they stack on mobile */
    transition: background 0.1s, color 0.1s;
}

/* Add a sleek retro hover state */
.contact-card:hover {
    background: #000000;
    color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* TERMINAL                                  */
/* ========================================= */
#terminal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: calc(100vh - 40px);
    background: rgba(0,0,0,0.6);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
}
#terminal-overlay.hidden { display: none; }

.terminal-win {
    width: 620px;
    max-width: 95vw;
    height: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

#terminal-body {
    flex: 1;
    background: #000;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    color: #00ff41;
    line-height: 1.5;
    word-break: break-word;
}
#terminal-output::-webkit-scrollbar { width: 6px; }
#terminal-output::-webkit-scrollbar-thumb { background: #003300; }

.term-line        { color: #00ff41; }
.term-header      { color: #00ffff; font-weight: bold; }
.term-dim         { color: #006620; }
.term-cmd         { color: #ffff00; }
.term-ok          { color: #00ff41; }
.term-err         { color: #ff3333; }

#terminal-input-row {
    display: flex;
    align-items: center;
    color: #00ff41;
    margin-top: 6px;
    border-top: 1px solid #003300;
    padding-top: 6px;
    flex-shrink: 0;
}
#terminal-prompt { white-space: nowrap; color: #00ffaa; }
#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    caret-color: #00ff41;
}

/* ========================================= */
/* SCREENSAVER                               */
/* ========================================= */
#screensaver {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;
    cursor: none;
}
#screensaver.active {
    display: block;
}
#screensaver-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================= */
/* TILE CANVAS ANIMATIONS                    */
/* ========================================= */

/* Animated tiles: strip the background image entirely */
.grid-item.has-animation {
    background-image: none !important;
    background-color: #000;
}

/* The canvas fills the tile behind the h2 */
.tile-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;          /* same layer as the dark ::before overlay */
    pointer-events: none;
    display: block;
}

/* For animated tiles, lift the dark overlay so the canvas shows through */
.grid-item.has-animation::before {
    background: rgba(0, 0, 0, 0.15); /* was 0.4 — now nearly transparent */
}
.grid-item.has-animation:hover::before {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================= */
/* SECTION ANIMATIONS                        */
/* ========================================= */
@keyframes _fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes _slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes _glitchIn {
    0%   { opacity: 0; transform: skewX(-10deg) scaleX(1.05); }
    30%  { opacity: 1; transform: skewX(4deg); }
    60%  { transform: skewX(-2deg); }
    100% { opacity: 1; transform: skewX(0) scaleX(1); }
}
@keyframes _pulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(255,102,178,0.4); }
    50%       { box-shadow: 0 0 18px rgba(255,102,178,0.9); }
}

.anim-fade-in  { animation: _fadeInUp 0.65s ease forwards; }
.anim-slide-up { animation: _slideUp  0.7s cubic-bezier(.25,.46,.45,.94) forwards; }
.anim-glitch   { animation: _glitchIn 0.5s ease forwards; }
.anim-pulse    { animation: _pulseGlow 2.2s ease-in-out infinite; }

/* Vimeo / iframe embed inside modal sections (responsive 16:9) */
.mobile-inline-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 10px 0;
}
.mobile-inline-iframe iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Video inside modal sections */
.section-video {
    width: 100%;
    height: auto;
    border: 1px solid #000;
}

/* ── LOADER / BOOT SCREEN ───────────────────────────────────────────────── */

/* Hide the real site while loader is active */
body.is-loading > *:not(#loader) {
    visibility: hidden;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 5rem);
    box-sizing: border-box;
    overflow: hidden;
    transition: opacity 0.7s ease;
}
#loader.loader-out { opacity: 0; pointer-events: none; }

/* CRT scanline overlay */
#loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 77, 184, 0.03) 2px,
        rgba(255, 77, 184, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
}

#loader-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#loader-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(12px, 1.5vw, 15px);
    color: #ff4db8;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Line variants */
#loader-output .ll-h {
    color: #ffaadd;
    font-weight: bold;
    letter-spacing: .05em;
}
#loader-output .ll-dim  { color: #803060; }
#loader-output .ll-cmd  { color: #ff1493; font-weight: bold; }
#loader-output .ll-prog { color: #ff80cc; }
#loader-output .ll-ok   { color: #ffddee; }
#loader-output .ll-file { color: #803060; font-size: .92em; min-height: 1.8em; }
#loader-output .ll-ready {
    display: inline-block;
    margin-top: .4em;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: .25em;
    text-shadow: 0 0 10px #ff4db8, 0 0 30px #ff1493;
}

/* Blinking cursor */
#loader-cursor {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background: #ff4db8;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: loader-blink .75s step-end infinite;
    box-shadow: 0 0 8px #ff4db8;
}
@keyframes loader-blink {
    50% { opacity: 0; }
}