: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(./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;
}

/* --- 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; }
}