:root {
    --img1: image-set(
        url("../images/home-accessioning-card.webp") type("image/webp"),
        url("../images/turkana_boy.png") type("image/png")
    );
    --img4: image-set(
        url("../images/home-hero.webp") type("image/webp"),
        url("../images/nmk1.jpeg") type("image/jpeg")
    );
    --img-card: image-set(
        url("../images/home-digitization-card.webp") type("image/webp"),
        url("../images/card.png") type("image/png")
    );
    --img-stats: url("../images/collection_statistics_graph.svg");
    --jungle: #6B4423;
    --jungle-dark: #171717;
    --ivory: #FFFFFF;
    --gold: #F4A460;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    font-family: Arial, sans-serif;
}

.show {
    position: relative;
    display: block;
    width: calc(100% - 80px);
    max-width: 1250px;
    height: clamp(430px, 66vh, 650px);
    min-height: 430px;
    margin: 32px auto 0;
    overflow: hidden;
    background: var(--jungle-dark);
    color: white;
}

.right {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #171717;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.8s ease-in-out;
}

.slide.on {
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

.slide.prev {
    visibility: visible;
    opacity: 0;
    z-index: 1;
}

.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 68% center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    filter: brightness(1.12) saturate(1.08);
    animation: ozeumHeroPan 12s ease-in-out infinite alternate;
}

.bg--hero {
    background-image: var(--img4);
}

.bg--digitization {
    background-image: var(--img-card);
}

.bg--accessioning {
    background-image: var(--img1);
}

.bg--stats {
    background-image: var(--img-stats);
}

.slide:nth-child(2) .bg {
    animation-delay: -6s;
    transform-origin: 65% center;
}

.left {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(24px, 4.5vw, 58px);
    color: #fff;
    background: linear-gradient(
        90deg,
        rgba(12, 12, 12, .96) 0%,
        rgba(12, 12, 12, .90) 28%,
        rgba(12, 12, 12, .68) 48%,
        rgba(12, 12, 12, .25) 69%,
        rgba(12, 12, 12, .02) 100%
    );
}

.left::after {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(24px, 4.5vw, 58px);
    width: 1px;
    height: 100%;
    background: rgba(244, 164, 96, .25);
    pointer-events: none;
}

.texts {
    position: relative;
    width: min(700px, 72vw);
    height: clamp(220px, 32vh, 290px);
    margin: auto 0;
}

.t {
    position: absolute;
    inset: 50% 0 auto;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

.t.on {
    opacity: 1;
    pointer-events: auto;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 45px;
    height: 1px;
    background: var(--gold);
}

.hero-copy {
    max-width: 580px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .38);
}

.hero-quote {
    max-width: 620px;
    margin: 22px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, .9);
    border-left: 2px solid var(--gold);
    font: italic 18px/1.55 "Playfair Display", Georgia, serif;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}

.show .btn {
    display: none !important;
}

@keyframes ozeumHeroPan {
    0% {
        transform: scale(1.04) translateX(1.5%);
        filter: brightness(1.08) saturate(1.02);
    }

    100% {
        transform: scale(1.13) translateX(-2%);
        filter: brightness(1.24) saturate(1.10);
    }
}

.cols {
    width: calc(100% - 80px);
    max-width: 1250px;
    margin: 48px auto 0;
    padding: 85px 0;
    background: #fff;
    color: #171717;
}

.wrap {
    width: 100%;
    margin: 0;
}

.label {
    color: #6B4423;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sec-title {
    margin: 12px 0;
    color: #171717;
    font: 400 clamp(32px, 4vw, 48px) "Playfair Display", Georgia, serif;
}

.section-intro {
    max-width: 650px;
    color: #555;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.feature-card {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    background: #171717;
    color: #fff;
    text-decoration: none;
}

.feature-card .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.feature-card--core .bg {
    background-position: center 30%;
}

.feature-card .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .05));
}

.feature-card--core .shade {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, .88),
        rgba(0, 0, 0, .42) 55%,
        rgba(0, 0, 0, .18)
    );
}

.feature-card .info {
    position: absolute;
    inset: auto 24px 24px;
    z-index: 1;
}

.feature-card .num {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.feature-card h3 {
    margin: 12px 0 8px;
    font: 400 26px "Playfair Display", Georgia, serif;
}

.feature-subtitle {
    margin: -2px 0 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.feature-stat {
    margin: -2px 0 8px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

.feature-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.feature-live::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff2d2d;
    box-shadow: 0 0 0 4px rgba(255, 45, 45, .2);
}

.feature-copy {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.6;
}

.feature-card--core h3,
.feature-card--core .feature-copy {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.feature-card--core .feature-copy {
    font-size: 15px;
    font-weight: 600;
}

#collections,
#collections * {
    animation: none !important;
    transition: none !important;
}

#collections .feature-card,
#collections .feature-card .bg,
#collections .feature-card .shade,
#collections .feature-card .info {
    transform: none !important;
}

@media (max-width: 900px) {
    .show,
    .cols {
        width: calc(100% - 40px);
    }

    .show {
        margin-top: 20px;
    }

    .texts {
        width: min(620px, 88vw);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .show,
    .cols {
        width: calc(100% - 28px);
    }

    .show {
        margin-top: 14px;
    }

    .texts {
        width: 100%;
    }

    .left {
        background: linear-gradient(
            90deg,
            rgba(12, 12, 12, .92),
            rgba(12, 12, 12, .70) 68%,
            rgba(12, 12, 12, .28)
        );
    }

    .hero-copy {
        font-size: 14px;
    }

    .hero-quote {
        font-size: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cols {
        padding: 55px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .bg {
        animation: none !important;
        transition: none !important;
    }
}
