/* ══════════════════════════════════════════════
   JOSEANGEL GONZALEZ — HOMEPAGE
   Inspired by jamalburger.com
   ══════════════════════════════════════════════ */

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

html {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: #fff;
    color: #000;
    font-family: 'Inter', sans-serif;
    width: 100%;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
}

/* ─── PRELOADER ─── */
.pl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 101;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.pl.done {
    opacity: 0;
}

/* ─── SIDE NAMES ─── */
.side-name {
    position: fixed;
    top: 50%;
    z-index: 102;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    pointer-events: none;
    display: flex;
    overflow: hidden;
}

.side-name.centered {
    mix-blend-mode: normal;
}

.side-left.centered {
    left: 50%;
    transform: translate(-105%, -50%);
}

.side-right.centered {
    left: 50%;
    transform: translate(5%, -50%);
}

.side-name.moving {
    mix-blend-mode: normal;
}

.side-name.final {
    mix-blend-mode: difference;
}

.side-left.final {
    left: 7vw;
    transform: translate(-50%, -50%);
}

.side-right.final {
    right: 7vw;
    transform: translate(50%, -50%);
}

.side-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.side-name .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── HOMEPAGE WRAPPER ─── */
.h {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ─── SWIPER ─── */
.h-swiper {
    width: 100%;
    height: 100vh;
    padding: 8.68vw 23vw;
    overflow: visible !important;
}

.h-swiper .swiper-wrapper {
    overflow: visible !important;
}

.h-swiper .swiper-slide {
    width: 52.3vw;
    height: 100%;
}

a.h-s {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.39vw;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.h-s-c {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer !important;
}

.h-s-c img {
    cursor: pointer !important;
}

.h-s-c img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── SLIDE TEXT ─── */
.h-s-t {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
}

.h-s-t-l a {
    color: rgba(0, 0, 0, 0.314);
    transition: color 0.2s ease;
}

.h-s-t-l a:hover {
    color: rgba(0, 0, 0, 0.145);
}

/* ─── NON-ACTIVE SLIDES ─── */
.h-swiper .swiper-slide:not(.swiper-slide-active) {
    cursor: pointer;
}

.h-swiper .swiper-slide:not(.swiper-slide-active) .h-s-t {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.h-swiper .swiper-slide-active .h-s-t {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* White tint overlay on non-active slides (from Swiper coverflow shadows) */
.h-swiper .swiper-slide-shadow-coverflow {
    background-image: linear-gradient(hsla(0, 0%, 100%, 0.7),
            hsla(0, 0%, 100%, 0.7)) !important;
    background-color: transparent !important;
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {

    .h,
    .h-swiper,
    body {
        height: 100svh;
    }

    .h-swiper {
        padding: 16vw 8vw;
    }

    .h-swiper .swiper-slide {
        width: 75vw;
    }

    .h-s {
        gap: 5.58vw;
    }
}