/* Homepage hero slider — scoped to .home-hero only */
:root {
    --home-hero-header-h: 85px;
}

/* Full-viewport hero with header overlay (matches homepage04 reference) */
body.home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
}

body.home main.site-content > .home-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.home-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    column-gap: 0;
    row-gap: 0;
    align-items: stretch;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Three equal columns — 1fr grid, no gutters (matches homepage04) */
#homeHeroL,
#homeHeroC,
#homeHeroR {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-width: 0;
    height: 100%;
    background: #0a0a0a;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#homeHeroC {
    z-index: 2;
}

.home-hero-col-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
    width: 100%;
}

.home-hero-cell {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slight vertical overlap so row seams never show empty background */
.home-hero-cell + .home-hero-cell {
    margin-top: -2px;
}

/* Override main.min.css img { height:auto; max-width:100%; background:#fafafb } */
body.home .home-hero-cell img {
    position: absolute !important;
    top: -8% !important;
    left: -1% !important;
    right: -1% !important;
    width: 102% !important;
    height: 116% !important;
    max-width: none !important;
    min-height: 116% !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0;
    transition: opacity 1.1s ease !important;
    will-change: opacity, transform;
    pointer-events: none;
}

body.home .home-hero-cell img.on {
    opacity: 1 !important;
    z-index: 1;
}

.home-hero-brand {
    position: absolute;
    grid-column: 1 / -1;
    grid-row: 1;
    left: 50%;
    bottom: clamp(12px, 6vh, 40px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1.2vh, 8px);
    text-align: center;
    max-width: calc(100% - 32px);
    pointer-events: none;
}

.home-hero-brand > * {
    pointer-events: auto;
}

.home-hero-brand-logo {
    height: 26px;
    filter: brightness(0) invert(1);
    display: block;
}

.home-hero-brand-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.home-hero-enter {
    margin-top: clamp(2px, 0.8vh, 6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vh, 8px);
    min-height: 44px;
    padding: 6px 20px 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-hero-enter:hover {
    color: #fff;
}

.home-hero-enter-txt {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-hero-enter-arr {
    animation: homeHeroBounceArr 1.6s ease-in-out infinite;
}

@keyframes homeHeroBounceArr {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.home-hero-mob {
    display: none;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    padding-top: var(--home-hero-header-h);
    box-sizing: border-box;
}

.home-hero-mob::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    pointer-events: none;
    z-index: 2;
}

.home-hero-mob-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.1s;
    filter: brightness(0.65);
    background: transparent !important;
}

.home-hero-mob-img.on {
    opacity: 1;
}

.home-hero-mob-brand {
    position: absolute;
    left: 50%;
    bottom: clamp(12px, 6vh, 40px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1.2vh, 8px);
    text-align: center;
    max-width: calc(100% - 32px);
    pointer-events: none;
}

.home-hero-mob-brand > * {
    pointer-events: auto;
}

.home-hero-mob-brand img {
    height: 22px;
    filter: brightness(0) invert(1);
    display: block;
}

.home-hero-mob-brand span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.home-hero-mob-enter {
    margin-top: clamp(2px, 0.8vh, 6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vh, 8px);
    min-height: 44px;
    padding: 6px 20px 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.home-hero-mob-enter span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-hero-mob-enter svg {
    animation: homeHeroBounceArr 1.6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .home-hero {
        display: none;
    }

    .home-hero-mob {
        display: block;
    }
}

@media (max-height: 700px) {
    .home-hero-brand,
    .home-hero-mob-brand {
        bottom: clamp(10px, 5vh, 24px);
        gap: 3px;
    }

    .home-hero-brand-logo,
    .home-hero-mob-brand img {
        height: 20px;
    }

    .home-hero-brand-tag,
    .home-hero-mob-brand span {
        font-size: 8px;
        letter-spacing: 0.18em;
    }

    .home-hero-enter-txt,
    .home-hero-mob-enter span {
        font-size: 8px;
    }

    @keyframes homeHeroBounceArr {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(3px); }
    }
}

@media (max-height: 500px) {
    .home-hero,
    .home-hero-mob {
        min-height: 400px;
    }

    .home-hero-brand,
    .home-hero-mob-brand {
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
}
