/**
 * HAZTAP — AWWWARDS EXP
 * Estilos para la experiencia inmersiva WebGL + GSAP
 */

/* ── RESET & BASE ── */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body.awwwards-page {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #ffffff;
    font-family: 'Outfit', 'Ubuntu', sans-serif; /* Usamos una fuente más moderna geométrica si es posible */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── WEBGL CANVAS ── */
#ex-webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Detrás de todo */
    pointer-events: none; /* Dejamos que los clicks pasen al HTML */
}

/* ── LAYOUT ── */
.aww-main {
    position: relative;
    z-index: 1; /* Sobre el canvas 3D */
    width: 100%;
}

.aww-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vw 5vw;
    box-sizing: border-box;
}

.aww-section.align-center {
    align-items: center;
    text-align: center;
}

.aww-section.align-left {
    align-items: flex-start;
}

/* ── TYPOGRAPHY ── */
.aww-title-huge {
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0;
    text-transform: uppercase;
    mix-blend-mode: difference; /* Interacción brutal con el fondo WebGL si hay luz */
}

.aww-title-medium {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 2rem 0;
}

.aww-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-top: 2rem;
}

/* ── TEXT SPLIT ANIMATION HELPERS ── */
.aww-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.aww-word-inner {
    display: inline-block;
    will-change: transform;
    transform-origin: left bottom;
}

/* ── IMAGE REVEALS ── */
.aww-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
    width: 100%;
    margin-top: 10vh;
}

.aww-img-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background: #111;
}

.aww-img-parallax {
    width: 100%;
    height: 100%;
}

.aww-img-parallax img {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    object-fit: cover;
    will-change: transform;
}

/* Máscara animada estilo cortina */
.aww-reveal-mask {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.aww-reveal-mask.is-revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ── STORYLINE STYLES ── */
.chapter-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    display: block;
}

.aww-values-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aww-values-list li {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
}

.aww-values-list li strong {
    color: #fff;
    font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}
.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scroll-drop 1.5s infinite;
}

@keyframes scroll-drop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── MAGNETIC BUTTON ── */
.aww-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: #fff;
    color: #000;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.aww-btn span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 768px) {
    .aww-grid-2 {
        grid-template-columns: 1fr;
    }
    .aww-img-container {
        height: 50vh;
        margin-top: 5vh !important;
    }
    .aww-section {
        padding: 15vw 8vw;
    }
    .aww-content-wrapper {
        margin-left: 0 !important;
    }
}
