/**
 * Malabar — Technique
 */

body.malabar-technique-page {
    background: #000;
}

body.malabar-technique-page .malabar-footer {
    position: relative;
    z-index: 30;
}

.malabar-technique {
    position: relative;
    width: 100%;
    overflow: clip;
    background: #000;
}

.malabar-technique-hero,
.malabar-technique-panel {
    color: #fff;
}

.malabar-technique-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: #111;
}

.malabar-technique-hero__media,
.malabar-technique-panel__media,
.malabar-technique-hero__shade,
.malabar-technique-panel__shade {
    position: absolute;
    inset: 0;
}

.malabar-technique-hero__media,
.malabar-technique-panel__media {
    overflow: hidden;
}

.malabar-technique-hero__image,
.malabar-technique-panel__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.001);
}

.malabar-technique-hero__shade,
.malabar-technique-panel__shade {
    z-index: 1;
    background: rgba(0, 0, 0, var(--technique-overlay, .2));
    pointer-events: none;
}

.malabar-technique-hero__content,
.malabar-technique-panel__content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100% - 48px));
    transform: translate(-50%, -50%);
    text-align: center;
}

.malabar-technique-hero__content h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(38px, 4.2vw, 70px);
    font-weight: 600;
    line-height: .98;
    white-space: nowrap;
    letter-spacing: -.04em;
}

.malabar-technique-hero__text {
    max-width: 520px;
    margin: 20px auto 0;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.malabar-technique-hero__text p,
.malabar-technique-panel__text p {
    margin: 0 0 10px;
}

.malabar-technique-hero__text p:last-child,
.malabar-technique-panel__text p:last-child {
    margin-bottom: 0;
}

.malabar-technique-hero__scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.malabar-technique-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: #000;
}

.malabar-technique-panels {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.malabar-technique-panel {
    position: absolute;
    inset: 0;
    z-index: var(--technique-panel-index, 1);
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    will-change: transform;
}

.malabar-technique-panel__media {
    will-change: transform;
}

.malabar-technique-panel__content {
    width: min(500px, calc(100% - 48px));
}

.malabar-technique-panel__content h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.025em;
}

.malabar-technique-panel__text {
    color: #fff;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.malabar-technique-backtop {
    position: absolute;
    z-index: 5;
    right: var(--page-margin);
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.malabar-technique-backtop:hover,
.malabar-technique-backtop:focus,
.malabar-technique-backtop:visited {
    color: #fff !important;
}

@media (max-width: 767px) {
    .malabar-technique-hero {
        min-height: 560px;
    }

    .malabar-technique-hero__content h1 {
        font-size: clamp(34px, 11vw, 52px);
        white-space: normal;
    }

    .malabar-technique-panel__content h2 {
        font-size: 28px;
    }

    .malabar-technique-hero__text,
    .malabar-technique-panel__text {
        font-size: 14px;
        line-height: 19px;
    }
}

/* When GSAP is intentionally disabled, panels become a normal vertical stack. */
.malabar-technique.is-static .malabar-technique-stage {
    height: auto;
}

.malabar-technique.is-static .malabar-technique-panels {
    height: auto;
    overflow: visible;
}

.malabar-technique.is-static .malabar-technique-panel {
    position: relative;
    inset: auto;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    transform: none !important;
}


.malabar-technique-backtop__icon {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    object-fit: contain;
    transition: transform .25s ease;
}
.malabar-technique-backtop:hover .malabar-technique-backtop__icon,
.malabar-technique-backtop:focus-visible .malabar-technique-backtop__icon {
    transform: translate(2px,-2px);
}
