:root {
    --light: #fff;
    --dark: #000;
}

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

body {
    font-family: "Manrope", sans-serif;
    background-color: var(--light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.99);
    pointer-events: none;
}

.overlay-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/global/global-images/5.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(15px);
    opacity: .35;
    z-index: 1;
    pointer-events: none;
}

video {
    object-fit: cover;
    height: 100vh;
    width: 100vw;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fluid Typography Updates */
h1 {
    text-transform: uppercase;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    letter-spacing: clamp(-0.15rem, -0.5vw, -0.5rem);
}

/* FIX: Force hero headings to stay strictly on a single line */
.header-row h1 {
    white-space: nowrap !important;
    display: block;
    width: 100%;
}

p {
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 500;
    line-height: 1.4;
}

a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--light);
    font-family: "Agdasima", sans-serif;
    font-size: clamp(4rem, 12vw, 7.5rem);
    font-weight: 600;
    line-height: 0.9;
    display: block;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-color: var(--dark);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: clip-path;
    overflow: hidden;
    z-index: 2;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: var(--light);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.preloader-images {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(14rem, 40vw, 25rem);
    height: clamp(14rem, 40vw, 25rem);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    will-change: clip-path;
    overflow: hidden;
}

.preloader-images .img {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    will-change: clip-path;
    overflow: hidden;
}

.preloader-images .img img {
    position: relative;
    transform: scale(2);
    will-change: transform;
}

.preloader-copy {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    color: var(--light);
}

.preloader-header {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(60svh);
    transform-origin: top;
    will-change: transform;
    z-index: 2;
}

.hero {
    position: absolute;
    width: 100%;
    height: 100svh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.divider {
    position: relative;
    width: 100%;
    height: 1.5px;
    transform: scaleX(0);
    background-color: rgba(0, 0, 0, 0.2);
    will-change: transform;
}






/* Hide entirely on desktop */
.mobile-info-box {
    display: none;
}

/* Mobile Implementation */
@media (max-width: 768px) {

    /* 1. Main Container - Ultra Minimal */
    .mobile-info-box {
        display: flex;
        flex-direction: column;

        position: absolute;
        top: 45%;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: translateY(-50%);

        width: 85%;
        padding: 1.25rem;

        /* Softer, more transparent glassmorphism */
        background: rgba(0, 0, 0, 0.02);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        z-index: 1;

        opacity: 0;
        pointer-events: none;
    }

    /* 2. Header & Animation */
    .info-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: "Manrope", sans-serif;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #000;
        margin-bottom: 1rem;
        opacity: 0.6;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
        background-color: #860404;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(134, 4, 4, 0.4);
        }

        70% {
            box-shadow: 0 0 0 6px rgba(134, 4, 4, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(134, 4, 4, 0);
        }
    }

    /* 3. Slider Area & Typography */
    .info-slides {
        position: relative;
        min-height: 120px;
    }

    .info-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(12px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .info-slide.active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .info-badge {
        font-family: "Manrope", sans-serif;
        font-size: 0.65rem;
        color: #860404;
        font-weight: 700;
        text-transform: uppercase;
    }

    .info-title {
        font-family: "neue-haas-grotesk-display", sans-serif;
        font-size: 1.25rem;
        text-transform: uppercase;
        color: #000;
        margin: 0;
        line-height: 1;
    }

    .info-desc {
        font-family: "Manrope", sans-serif;
        font-size: 0.75rem;
        color: #333;
        margin-bottom: 0.5rem;
        text-transform: none;
        text-align: center;
    }

    .info-btn {
        font-family: "Manrope", sans-serif;
        font-size: 0.7rem;
        color: #111;
        background: rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.45rem 0.95rem;
        border-radius: 8px;
        align-self: center;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        width: max-content;
        transition: background 0.2s ease;
    }

    .info-btn:hover,
    .info-btn:active {
        background: rgba(0, 0, 0, 0.12);
    }

    .info-divider {
        border: none;
        height: 1px;
        background: rgba(0, 0, 0, 0.08);
        margin: 1.25rem 0;
    }

    /* 4. Footer & Links (Dots moved out) */
    .info-footer {
        display: flex;
        width: 100%;
    }

    .info-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .info-links a {
        font-family: "Manrope", sans-serif;
        font-size: 0.7rem;
        color: #000;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 700;
        opacity: 0.6;
        transition: opacity 0.2s ease;
    }

    .info-links a:hover,
    .info-links a:active {
        opacity: 1;
    }

    /* 5. Floating Dots Below the Box */
    .info-dots {
        position: absolute;
        bottom: -30px;
        /* Pushes them completely out of the box */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.15);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        cursor: pointer;
    }

    .dot.active {
        width: 18px;
        background: #860404;
    }
}





/* --- SPLITTEXT OVERLAP FIX --- */
.preloader-header a .char,
.preloader-header a .word {
    position: relative;
    display: inline-block;
    transform: translateY(0);
    will-change: transform;
}

.preloader-copy p .line,
.header-row h1 .line {
    position: relative;
    display: block;
    transform: translateY(0);
    will-change: transform;
}

.preloader-header a {
    white-space: nowrap;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablets & Smaller Laptops */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .header-row h1 {
        font-size: 3.8rem;
    }

    /* Custom scale down for the hero text */
    .preloader-images {
        top: 40%;
        width: 15rem;
        height: 15rem;
    }

    .preloader-copy {
        width: 70%;
        bottom: 3rem;
    }

    .preloader-header {
        transform: translateY(50svh);
    }

    .preloader-header a {
        font-size: 5rem;
    }

    .hero {
        padding: 2rem;
    }
}

/* Small Tablets & Large Mobile Interfaces (768px and down) */
@media (max-width: 768px) {
    .header-row h1 {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }
}

/* Standard L Mobile (425px) */
@media (max-width: 425px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .header-row h1 {
        font-size: 1.85rem;
        letter-spacing: -1px;
    }

    /* Fits long strings perfectly within view width */
    .preloader-images {
        width: 12rem;
        height: 12rem;
    }

    .preloader-copy {
        width: 90%;
        bottom: 2rem;
    }

    .preloader-copy p {
        font-size: 0.7rem;
    }

    .preloader-header a {
        font-size: 2.85rem;
    }

    .hero {
        padding: 1.5rem;
    }
}

/* Medium Mobile (375px) */
@media (max-width: 375px) {
    h1 {
        font-size: 2.2rem;
        letter-spacing: 0;
    }

    .header-row h1 {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
    }

    .preloader-images {
        width: 10rem;
        height: 10rem;
    }

    .preloader-header a {
        font-size: 2.5rem;
    }

    .preloader-copy p {
        font-size: 0.65rem;
    }

    .hero {
        padding: 1rem;
    }
}

/* Extra Small Mobile Devices (320px) */
@media (max-width: 320px) {
    .header-row h1 {
        font-size: 1.4rem;
        letter-spacing: 0;
    }
}