.section {
    display: flex; 
    justify-content: center; 
    flex-direction: column; 
    align-items: center;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HERO SECTION */

.section#hero {
    padding: 30px 40px;
    /* margin: 100px 0 0 0; */
    gap: 20px;
}

.wrapper#hero {
    place-content: center;
    gap: 20px;
    position: relative;
}

.wrapper.wrapper-image#hero {
    flex-flow: column; 
    /* height: 400px; */
    /* overflow: visible; */
}

.wrapper.wrapper-image#hero img {
    width: 40vw;
}

.wrapper.wrapper-button#hero,
.wrapper.wrapper-text#hero {
    gap: 10px;
}

.wrapper.wrapper-text#hero p#title {
    color: rgba(0, 0, 0, 1); 
    font-size: 5rem; 
    letter-spacing: -3.8px; 
    line-height: 5rem; 
    text-align: center; 
    /* width: 700px; */
    /* text-shadow: 2px 2px 2px rgba(255, 255, 255,0.4), 3px 3px 3px rgba(255, 255, 255,0.3), 4px 4px 4px rgba(255, 255, 255,0.2), 5px 5px 5px rgba(255, 255, 255,0.1); */
}

.wrapper.wrapper-text#hero p#subtitle {
    color: rgba(0, 0, 0, 0.6); 
    font-size: 20px; 
    letter-spacing: -.01px; 
    line-height: 1.3em; 
    text-align: center; 
    width: 500px;
    font-weight: 100;
}

.wrapper.wrapper-button#hero a {
    color: rgb(255, 255, 255); 
    background-color: rgb(0, 0, 0); 
    border-radius: 100px; 
    cursor: pointer; 
    padding: 10px 14px;
    font-size: 16px;
}



/* Extra large devices (large laptops and desktops, 1200px and up) */
@media (max-width: 1200px) {
    .section#hero {
        padding: 50px 40px;
    }

    .wrapper.wrapper-image#hero img {
        width: 60vw;
    }

    .wrapper.wrapper-text#hero p#title {
        font-size: calc(5rem * 0.9); 
        letter-spacing: calc(-3.8px * 0.9); 
        line-height: calc(5rem * 0.9); 
        /* width: calc(700px * 0.9); */
    }

    .wrapper.wrapper-text#hero p#subtitle {
        font-size: calc(20px * 0.9); 
        width: calc(500px * 0.9);
    }

    .wrapper.wrapper-button#hero a {
        padding: 7.5px 10.5px;
        font-size: 12px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
    .section#hero {
        padding: 70px 40px;
    }

    .wrapper.wrapper-image#hero img {
        width: 75vw;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media (max-width: 768px) {
    .section#hero {
        padding: 100px 40px;
    }

    /* .wrapper.wrapper-image#hero {
        height: 375px;
    } */

    /* .wrapper.wrapper-image#hero img {
        width: 100vw;
    } */

    .wrapper.wrapper-text#hero p#title {
        font-size: calc(5rem * 0.75); 
        letter-spacing: calc(-3.8px * 0.75); 
        line-height: calc(5rem * 0.75); 
        /* width: calc(700px * 0.75); */
    }

    .wrapper.wrapper-text#hero p#subtitle {
        font-size: calc(20px * 0.75); 
        width: calc(500px * 0.75);
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
    .section#hero {
        padding: 50px 40px;
    }

    /* .wrapper.wrapper-image#hero {
        height: 350px;
    } */

    .wrapper.wrapper-text#hero p#title {
        font-size: calc(5rem * 0.6); 
        letter-spacing: calc(-3.8px * 0.6); 
        line-height: calc(5rem * 0.6); 
        /* width: calc(700px * 0.6); */
    }

    .wrapper.wrapper-text#hero p#subtitle {
        font-size: calc(20px * 0.6); 
        width: calc(500px * 0.6);
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 450px) {
    .section#hero {
        padding: 20px 40px;
    }

    /* .wrapper.wrapper-image#hero {
        height: 300px;
    } */

    .wrapper.wrapper-text#hero p#title {
        font-size: calc(5rem * 0.5); 
        letter-spacing: calc(-3.8px * 0.5); 
        line-height: calc(5rem * 0.5); 
        /* width: calc(700px * 0.5); */
    }

    .wrapper.wrapper-text#hero p#subtitle {
        font-size: calc(20px * 0.5); 
        width: calc(500px * 0.5);
    }
}







.section#problem-solution {
    display: flex;
    align-items: flex-start;
    padding: 7.5%;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.wrapper.wrapper-text {
    margin: 0 0 25px 0;
}

.wrapper.wrapper-text#problem-solution p#title {
    color: rgba(0, 0, 0, 1); 
    font-size: 5rem; 
    letter-spacing: -3.8px; 
    line-height: 5rem; 
    text-align: left; 
    width: 100%;
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media (max-width: 1200px) {
    .wrapper.wrapper-text#problem-solution p#title {
        font-size: calc(5rem * 0.9); 
        letter-spacing: calc(-3.8px * 0.9); 
        line-height: calc(5rem * 0.9); 
        /* width: calc(700px * 0.9); */
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media (max-width: 768px) {
    .wrapper.wrapper-text#problem-solution p#title {
        font-size: calc(5rem * 0.75); 
        letter-spacing: calc(-3.8px * 0.75); 
        line-height: calc(5rem * 0.75); 
        /* width: calc(700px * 0.75); */
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
    .wrapper.wrapper-text#problem-solution p#title {
        font-size: calc(5rem * 0.6); 
        letter-spacing: calc(-3.8px * 0.6); 
        line-height: calc(5rem * 0.6); 
        /* width: calc(700px * 0.6); */
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 450px) {
    .wrapper.wrapper-text#problem-solution p#title {
        font-size: calc(5rem * 0.5); 
        letter-spacing: calc(-3.8px * 0.5); 
        line-height: calc(5rem * 0.5); 
        /* width: calc(700px * 0.5); */
    }
}

.wrapper.wrapper-content {
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 24px;
    width: 100%;
}

.wrapper-content.left {
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    position: sticky; 
    top: 96px;
    align-items: flex-start;
}

.wrapper-content.left .content-text {
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 16px; 
    padding: 16px; 
    background: #fff; 
    transition: all .25s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.wrapper-content.left .content-text.is-active {
    border-color: rgba(8,50,100,.35); 
    box-shadow: 0 12px 30px rgba(0,0,0,.08); 
    transform: translateY(-2px);
}

.wrapper-content.left .content-text .title {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 0;
}

.wrapper-content.left .content-text .title h3 {
    margin: 0; 
    font-size: 28px;
}

.wrapper-content.left .content-text .description,
.wrapper-content.left .content-text .note {
    font-size: 18px; 
    opacity: .8;
}

.wrapper-content.left .content-text .cta {
    border: 1px solid rgba(0,0,0,.12); 
    padding: 10px 14px; 
    border-radius: 999px; 
    background: #000000;
    color: #ffffff; 
    cursor: pointer; 
    font-size: 18px;
}

.wrapper-content.left .content-cta-wrapper {
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 16px; 
    padding: 16px; 
    background: #fff; 
    transition: all .25s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrapper-content.left .content-text .cta:hover {
    background: rgba(0, 0, 0, 0.6); 
    border-color: rgba(0,0,0,.2);
}

.wrapper-content.right {
    height: 70vh; 
    min-height: 480px; 
    border-radius: 16px; 
    overflow: auto; 
    scroll-snap-type: y mandatory; 
    border: 1px solid rgba(0,0,0,0.08); 
    background: #f9fbff; border: none;
}

.wrapper-content.right .content-image { 
    /* height: 70vh;  */
    /* min-height: 480px;  */
    display: grid; 
    place-items: center; 
    scroll-snap-align: start; 
    padding: 16px; 
}

.wrapper-content.right .content-image img.ps-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 1;
}



/* Right column scroll container: hide scrollbars across browsers */
.wrapper-content.right {
    /* already has: height, scroll-snap-type, radius, etc. */
    -ms-overflow-style: none;    /* IE/Edge */
    scrollbar-width: none;       /* Firefox */
}
.wrapper-content.right::-webkit-scrollbar {
    width: 0;
    height: 0;                   /* Chrome/Safari */
}

/* === Card mode for Problem-Solution (<=1200px) === */
@media (max-width: 992px) {
    /* keep the section header normal, only the content changes to cards */
    .section#problem-solution {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Hide the 2-column grid in card mode; JS will insert .ps-cards */
    .section#problem-solution .wrapper.wrapper-content {
        display: none !important;
    }

    /* Card container injected by JS */
    .section#problem-solution .ps-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        margin: 0 auto;
        max-width: 980px; /* keep it elegant on large tablets */
    }

    /* Each card pairs image + text from the corresponding left/right item */
    .section#problem-solution .ps-card {
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(0,0,0,.06);
        overflow: hidden;
    }

    .section#problem-solution .ps-card-media {
        width: 100%;
        aspect-ratio: 1;
        background: #f3f6fb;
        overflow: hidden;
    }

    .section#problem-solution .ps-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0;
    }

    .section#problem-solution .ps-card-body {
        padding: 16px;
        display: grid;
        gap: 8px;
    }

    .section#problem-solution .ps-card-title {
        margin: 0;
        font-size: 18px;
        line-height: 1.25;
        letter-spacing: -0.2px;
    }

    .section#problem-solution .ps-card-desc {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: rgba(0,0,0,0.75);
    }

    .section#problem-solution .ps-card-cta {
        justify-self: start;
        border: 1px solid rgba(0,0,0,.12);
        padding: 6px 12px;
        border-radius: 999px;
        background: #fff;
        cursor: pointer;
        font-size: 13px;
    }
}

/* Keep your full-width/scrollbar tweaks for desktop/tablet if you added them */

/* === PS image toggle animation (left -> right) === */
.wrapper-content.right .content-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px; /* already present, re-asserted for overlap safety */
    padding: 0;          /* avoid extra padding during crossfade */
}

.wrapper-content.right .content-image img.ps-img,
.wrapper-content.right .content-image img.ps-img-ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Animations */
@keyframes psFadeInLeft {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes psFadeOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(18px); }
}

.ps-anim-in  { animation: psFadeInLeft 280ms ease both; }
.ps-anim-out { animation: psFadeOutRight 280ms ease both; }

/* Ensure each right-side panel has height so absolutely-positioned images can show */
.wrapper-content.right { 
height: 70vh;          /* you already had this; keep it */
min-height: 480px;
}

.wrapper-content.right .content-image {
position: relative;    /* already set */
height: 100%;          /* <-- critical */
min-height: inherit;   /* match the container’s min-height */
scroll-snap-align: start; /* preserve snap behavior */
padding: 0;            /* keep edge-to-edge during transition */
border-radius: 16px;   /* optional: keep corners */
overflow: hidden;      /* hide slide-out during animation */
margin: 10px;
}

/* Absolutely-positioned images fill their slide */
.wrapper-content.right .content-image img.ps-img,
.wrapper-content.right .content-image img.ps-img-ghost {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-radius: inherit;
}


/* === Mobile Card Mode (<=1200px): image + text pairs === */
@media (max-width: 992px) {
/* Hide the 2-column grid; JS will insert .ps-cards with paired content */
section#problem-solution .wrapper.wrapper-content {
    display: none !important;
}

section#problem-solution .ps-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    /* padding: 0 16px; */
    max-width: 980px;
}

section#problem-solution .ps-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

section#problem-solution .ps-card-media {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f3f6fb;
    overflow: hidden;
}

section#problem-solution .ps-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

section#problem-solution .ps-card-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

section#problem-solution .ps-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

section#problem-solution .ps-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0,0,0,0.75);
}

section#problem-solution .ps-card-cta {
    justify-self: start;
    border: 1px solid rgba(0,0,0,.12);
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}
}


/* Card image container needs absolute positioning for the fade animation */
section#problem-solution .ps-card-media {
position: relative;
overflow: hidden;
}

section#problem-solution .ps-card-media img,
section#problem-solution .ps-card-media .ps-img-ghost {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
/* margin: 10px; */
}

/* --- 3 cards per row between 600px and 992px --- */
/* Place this AFTER your existing @media (max-width: 992px) rules */
@media (min-width: 768px) and (max-width: 992px) {
section#problem-solution .ps-cards {
    display: grid; /* re-assert in case earlier rules changed it */
    grid-template-columns: repeat(3, 1fr) !important; /* override the 1-col rule */
    gap: 20px;
    max-width: 100%; /* let it span width on tablets */
}

/* Make cards equal height and keep CTA aligned nicely */
section#problem-solution .ps-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
section#problem-solution .ps-card-media {
    aspect-ratio: 4 / 3; /* slightly shorter thumbs for rows */
}
section#problem-solution .ps-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}
section#problem-solution .ps-card-cta {
    margin-top: auto; /* pushes CTA to bottom for tidy rows */
}
}

/* --- Desktop accordion (>1200px) for the left column --- */
@media (min-width: 1201px) {
.wrapper-content.left .content-text { cursor: default; }

/* make only the header look clickable */
.wrapper-content.left .content-text .title { cursor: pointer; }

/* we'll move non-title content into .ct-body via JS */
.wrapper-content.left .content-text .ct-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

/* expanded state for the active item */
.wrapper-content.left .content-text.is-active .ct-body {
    /* JS will set max-height to exact scrollHeight; this is a fallback */
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}
}

/* --- Desktop accordion (>1200px) for the left column --- */
@media (min-width: 1201px) {
.wrapper-content.left .content-text { cursor: default; }
.wrapper-content.left .content-text .title { cursor: pointer; }

/* collapsed body (JS wraps non-title content into .ct-body) */
.wrapper-content.left .content-text .ct-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 220ms ease;
            opacity: 1;
        transform: translateY(0);
        gap: 15px;
        display: flex
;
        flex-direction: column;
}

/* expanded state for active item */
.wrapper-content.left .content-text.is-active .ct-body {
    /* JS will set exact height, this is a safe fallback */
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}
}
































/* --- AQI Section --- */
#aqi.section {
    width: 100%;
    gap: 16px;
    padding: 7.5% 7.5% 4%;
    align-items: stretch;
}

#aqi .aqi-header {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#aqi .aqi-title {
    margin: 0;
    font-size: clamp(24px, 4vw, 40px);
    letter-spacing: -0.6px;
}

#aqi .aqi-city {
    appearance: none;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Card */
#aqi .aqi-card {
    position: relative;
    border-radius: 16px;
    /* padding: 18px; */
    border: 1px solid rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    color: #111;
    /* shiny background that we recolor via JS (--aqiColor) */
    --aqiColor: #e5e7eb;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.7), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35)),
        var(--aqiColor);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

#aqi .aqi-person {
    width: 64px;
    height: 64px;
    fill: rgba(0,0,0,0.75);
    opacity: .9;
}

#aqi .aqi-score-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: space-between;
}

#aqi .aqi-score {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
}

#aqi .aqi-label {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.06);
}

#aqi .aqi-metric {
    margin-top: 6px;
    font-size: 15px;
}

#aqi .aqi-updated {
    margin-top: 4px;
    font-size: 12px;
    opacity: .7;
}

/* Responsive */
@media (max-width: 600px) {
    #aqi .aqi-card { grid-template-columns: 1fr; }
    #aqi .aqi-person { width: 52px; height: 52px; }
}

/* A11y helpers */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

#aqi .aqi-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
@media (max-width: 600px) {
    #aqi .aqi-icon {
        width: 52px;
        height: 52px;
    }
}

/* ===== AQI card layout ===== */
#aqi .aqi-card {
    /* color comes from JS: card.style.setProperty('--aqiColor', color) */
    --radius: 18px;

    position: relative;
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius);
    /* overflow: hidden; */
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;

    /* soft elevation + inner border */
    box-shadow:
        0 6px 18px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.65);
    display: grid;
    grid-template-columns: 1fr auto; /* text | icon */
    grid-template-rows: auto auto;   /* header | meta */
    align-items: stretch;
    display: flex;

    margin: auto;
}

/* colored glow around the card using the AQI color */
#aqi .aqi-card::before {
    content: "";
    position: absolute;
    inset: -28px;
    border-radius: calc(var(--radius) + 28px);
    background: var(--aqiColor);
    filter: blur(36px);
    opacity: 0.35;
    z-index: -1;
}

/* ===== Row 1: colored header (score + label + icon on the right) ===== */
#aqi .aqi-score-line {
    grid-column: 1 / 2;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    /* create the colored strip behind the text without affecting text color */
    z-index: 0;
}
#aqi .aqi-score-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--aqiColor);
    opacity: 0.92;
    z-index: -1;
}

/* icon on the right with room to breathe */
#aqi .aqi-card-left {
    grid-column: 2 / 3;
    grid-row: 1;
    display: grid;
    place-items: center;
    padding: 10px 14px 10px 6px;
    background: transparent; /* sits on top of the colored header */
}
#aqi .aqi-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.95;
}

/* Typographic scale for the header row */
#aqi .aqi-score {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}
#aqi .aqi-label {
    font-size: 22px;
    font-weight: 600;
    opacity: 0.95;
    padding: 20px 30px;
    border-radius: 25px;
}

/* Make the header text readable on strong colors.
JS already toggles card text color, but just in case: */
#aqi .aqi-score-line,
#aqi .aqi-score-line * {
    color: #1a1a1a; /* will be overridden to white by inline JS when AQI is “dark” */
}

#aqi .aqi-metric {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0,0,0,0.9);
}
#aqi .aqi-updated {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
}

/* ===== Minor tweaks: header area has rounded corners; meta is square on top ===== */
#aqi .aqi-score-line::before {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

/* ===== Responsive niceties ===== */
@media (max-width: 480px) {
    #aqi .aqi-icon { width: 52px; height: 52px; }
    #aqi .aqi-score { font-size: 28px; }
    #aqi .aqi-label { font-size: 12px; padding: 10px 18px; border-radius: 15px;}

    #aqi-head {
        gap: 15px !important;
    }
}

.aqi-city {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    font-size: 14px;
}












































/* --- Simple Moving Carousel --- */
.carousel-strip {
    padding: 24px 0;
}

.carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
    /* -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
}

.carousel-track {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    width: max-content;
    animation: carousel-scroll 50s linear infinite;
    gap: 10px;
}

.carousel-track li {
    flex: 0 0 auto;
}

.carousel-track img {
    display: block;
    width: 30vw;
    opacity: 0.9;
    transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
    will-change: transform;
    aspect-ratio: 1;
}

#influencer .carousel-track img {
    aspect-ratio: 3/4;
}

.carousel:hover .carousel-track { 
    animation-play-state: paused; 
}

.carousel-track img:hover { 
    opacity: 1; 
    transform: translateY(-2px); 
}

/* Infinite scroll: move left by half the track (because we duplicated the list) */
@keyframes carousel-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-track { animation: none; }
}

@media (max-width: 800px) {
    .carousel-track img {
        width: 60vw;
    }
}































/* ===== Players Gallery ===== */


.hero__title {
    color: #fff;
    font-size: 5rem;
    font-weight: 500;
    line-height: 5rem;
    letter-spacing: -3.8px;
    color: #fff;
    padding: 0 0 1%;
}

.hero__pretitle {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2rem;
    letter-spacing: 0px !important;
    color: #fff;
    padding: 0 0 1%;
}

.hero__sub {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2rem;
    letter-spacing: 0px !important;
    color: #fff;
    padding: 0 0 1%;
}

.gallery{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.gallery .hero{grid-column:1/-1; aspect-ratio:4/5; background:var(--ui-bg); border-radius:12px}

.section--gallery {
background: #fff;
color: #000;
padding-top: 56px;
padding-bottom: 56px;
}
.gallery__title { text-align: center; margin: 0 0 6px; }
.gallery__subtitle { text-align: center; color: #aeb4bf; margin: 0 0 18px; }

/* Grid masonry-lite dengan CSS Grid */
.gallery__grid {
display: grid;
gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
align-items: stretch;
}


/* Mobile tweaks */
@media (max-width: 700px) {
.gallery__grid { gap: 8px; }

    .hero__title {
        font-size: 3.5rem;
        line-height: 4rem;
    }
}

/* ===== Simple 3-up Gallery ===== */
.section--gallery-simple {
color: #000;
padding-top: 48px;
}

/* ===== Players Gallery (exact layout like screenshot) ===== */
.section--gallery-simple .gallery3{
display:grid;
gap:3px;                               /* tiny seams */
grid-template-columns:repeat(3,1fr);   /* keep 3-up even on mobile */
}
@media (max-width:799px){
.section--gallery-simple .gallery3{ grid-template-columns:repeat(3,1fr); }
}

.section--gallery-simple .gallery3 figure{
margin:0;
border-radius:0;
overflow:hidden;
display:block;
}

.section--gallery-simple .gallery3 img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* Crop anchors to match positions in the reference */
.section--gallery-simple .gallery3 .crop-left   img{ object-position:left  center; }
.section--gallery-simple .gallery3 .crop-center img{ object-position:center center; }
.section--gallery-simple .gallery3 .crop-right  img{ object-position:right center; }




.gallery3 {
display: grid;
gap: 3px;
grid-template-columns: repeat(3, 1fr);     /* 3 kolom sama lebar */
}

/* kartu gambar */
.gallery3 figure {
margin: 0;
border-radius: 10px;
overflow: hidden;
border: none;
background: #0f0f10;
}

/* gambar mengikuti proporsi aslinya (tinggi auto) */
.gallery3 img {
display: block;
width: 100%;
height: auto;   /* ini yang bikin “kebawahnya mengikuti” */
}

/* responsif */
@media (max-width: 1199px) {
.gallery3 { grid-template-columns: repeat(2, 1fr); }  /* 2 kolom */
}
@media (max-width: 799px) {
.gallery3 { grid-template-columns: 1fr; }             /* 1 kolom */
}


/* Gallery 3-up fix 4:3 */
.gallery3 figure {
margin: 0;
border-radius: 10px;
overflow: hidden;
border: none;
background: #0f0f10;
display: flex;
}

.gallery3 img {
width: 100%;
height: 100%;
object-fit: cover;      /* isi penuh tanpa distorsi */
display: block;
}







/* Optional: slightly boost the small caption under the title on larger screens */
@media (min-width: 1024px){
#players .small {
    font-size: clamp(20px, 1.2vw, 18px);
    line-height: 1.5;
    margin-bottom: 32px !important;
}

#players .medium {
    font-size: clamp(24px, 1.2vw, 18px);
    line-height: 1.5;
}

/* === Players Gallery title: scale up on laptops/desktops === */
#players .h2{
    /* Bigger, fluid heading that grows with viewport width */
    font-weight: 700;
    font-size: 48px; /* ~34px on small screens → up to 64px on wide */
    line-height: 1.08;
    letter-spacing: -1px;
    text-wrap: balance; /* nicer multi-line wrapping (supported on modern browsers) */
    margin-bottom: 16px !important;
}
}





























/* ===== FAQ (Accessible accordion) ===== */
.section.faq { padding-block: 4rem; }
.faq .h2 { margin-bottom: .25rem; }
.faq .muted { color: white(0,0,0,.55); margin-bottom: 1.5rem; display:block; }

/* .faq__list { max-width: 75vw; margin-inline: auto; } */
.faq__item { border-bottom: 1px solid rgba(0,0,0,.12); padding-block: 1rem; }
.faq__item:first-child { border-top: 1px solid rgba(0,0,0,.12); }
.faq__q { cursor: pointer; font-weight: 500 !important; line-height: 1.4; list-style: none; position: relative; padding-right: 2rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; position: absolute; right: 0; top: 0; font-weight: 700; }
.faq__item[open] .faq__q::after { content: '–'; }
.faq__a { margin-top: .75rem; color: rgba(0,0,0,.8); }
.faq__a p { margin: 0 0 1rem 0; }
@media (prefers-color-scheme: dark) {
.faq__item { border-color: rgba(255,255,255,.16); }
.faq__a { color: rgba(255,255,255,.85); }
.faq .muted { color: rgba(255,255,255,.6); }
}

.faq__list p {
color: white !important;
}

.faq__q {
color: white;
}


#faq h2 {
color: white;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
.faq__item[open] .faq__a { animation: none; }
.faq__a { max-height: none; opacity: 1; }
}


/* ===== FAQ animation (scale-down dropdown) ===== */
/* Use CSS Grid row trick + transform to create a smooth "scale down" reveal */
.faq__a {
display: grid;
grid-template-rows: 0fr;    /* collapsed */
transition: grid-template-rows 260ms ease, opacity 260ms ease, transform 260ms ease;
overflow: hidden;           /* ensure no spill while collapsed */
opacity: 0;
transform: scaleY(0.96);
transform-origin: top;
margin-top: 0;
}
.faq__a > * { overflow: hidden; }  /* the inner content collapses cleanly */

.faq__item[open] .faq__a {
grid-template-rows: 1fr;    /* expanded */
opacity: 1;
transform: scaleY(1);
margin-top: .75rem;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
.faq__a {
    transition: none !important;
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
    transform: none !important;
}
}


/* JS-enhanced FAQ overrides: inline height/opacity/transform will take precedence */
.faq__a { will-change: height, opacity, transform; }

/* ===== brill FAQ (light, animated, mobile-friendly) ===== */

/* Container */
#faq.faq--brill {
    color: #111 !important;
    padding: clamp(48px, 9vw, 96px) 0;
}
#faq.faq--brill .container {
    width: min(var(--container), 900px);
    margin-inline: auto;
}

/* Heading */
#faq.faq--brill .faq__head {
    margin: 0 0 16px;
    text-align: left;
}
#faq.faq--brill .faq__head .h2 {
    font: 700 clamp(24px, 3.4vw, 36px) / 1.15 var(--font-display);
    letter-spacing: -0.02em;
    color: #111 !important;
    margin: 0;
}

#faq.faq--brill .faq__head {
    margin-bottom: 30px;
    text-align: center;
}
#faq.faq--brill .faq__head .h2 {
    font-size: clamp(18px, 4.4vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* List + items */
#faq.faq--brill .faq__list {
    border-top: 1px solid rgba(0,0,0,.08);
    border-top: 0;
    display: grid;
    gap: 8px;
}
#faq.faq--brill .faq__item {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}

/* Summary (question) */
#faq.faq--brill .faq__q {
    list-style: none;
    cursor: pointer;
    display: block;
    position: relative;
    margin: 0;
    padding-right: 22px;
    font: 700 clamp(16px, 2.2vw, 20px) / 1.45 var(--font-display);
    color: #111 !important;
    -webkit-tap-highlight-color: transparent;
}
#faq.faq--brill .faq__q::-webkit-details-marker {
    display: none;
}
/* Chevron */
#faq.faq--brill .faq__q::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0.25em;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
    transition: transform .22s ease, opacity .22s ease;
}
#faq.faq--brill .faq__item[open] > .faq__q::after {
    transform: rotate(-135deg);
    opacity: 1;
}

/* Keyboard focus */
#faq.faq--brill .faq__q:focus-visible {
    outline: 2px solid var(--accent-black);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Answer (animated reveal) */
#faq.faq--brill .faq__a {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: .85;
    transform: translateY(-2px);
    margin-top: 0;
    transition:
        grid-template-rows .26s ease,
        opacity .26s ease,
        transform .26s ease;
}
#faq.faq--brill .faq__item[open] .faq__a {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
    margin-top: 8px;
}
#faq.faq--brill .faq__a > * {
    overflow: hidden;
}
#faq.faq--brill .faq__a p {
    margin: 0;
    color: #6b7280 !important;
    font: 400 var(--fs-base) / 1.7 var(--font-body);
}

/* Neutralize old dark overrides within FAQ only */
#faq.faq--brill h2 {
    color: inherit !important;
}
#faq.faq--brill .faq__list p {
    color: inherit;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #faq.faq--brill .faq__a {
        transition: none !important;
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
        transform: none !important;
        margin-top: 8px !important;
    }
}

/* Anchor offset for sticky header */
#faq { 
    scroll-margin-top: 88px; 
}

/* ===== Mobile tweaks ===== */
@media (max-width: 900px) {

    #faq.faq--brill {
        padding: 28px 0 44px;
    }

    #faq.faq--brill .container {
        width: 100%;
        padding: 0 var(--gutter);
    }

    /* Title centered + compact */
    #faq.faq--brill .faq__head {
        margin-bottom: 20px;
        text-align: center;
    }
    #faq.faq--brill .faq__head .h2 {
        font-size: clamp(18px, 4.4vw, 22px);
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    /* Cardy items with spacing */
    #faq.faq--brill .faq__list {
        border-top: 0;
        display: grid;
        gap: 8px;
    }
    #faq.faq--brill .faq__item {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 12px;
        padding: 14px 16px;
        background: #fff;
    }

    /* Larger touch target + chevron */
    #faq.faq--brill .faq__q {
        padding-right: 28px;
        font: 700 16px / 1.35 var(--font-display);
    }
    #faq.faq--brill .faq__q::after {
        right: 4px;
        top: .55em;
        width: 12px;
        height: 12px;
        border-width: 2px;
        opacity: .85;
    }

    /* Readable body */
    #faq.faq--brill .faq__a {
        margin-top: 6px;
    }
    #faq.faq--brill .faq__a p {
        font-size: 14px;
        line-height: 1.6;
    }
}









/* ==== POPUP BACKDROP ==== */
.popup {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    /* Backdrop: blur + vignette */
    background:
        radial-gradient(1200px 600px at 50% 30%, rgba(255,255,255,0.06), transparent 60%),
        radial-gradient(800px 400px at 50% 120%, rgba(37,99,235,0.08), transparent 60%),
        rgba(0,0,0,0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 9999;
}

/* visible state – dibuka oleh JS */
.popup[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

/* Sembunyikan default via .hidden agar tidak render awal */
.hidden { display: none; }

/* ==== CARD / POPUP INNER ==== */
.popup-inner {
    position: relative;
    width: min(560px, calc(100% - 32px));
    border-radius: 16px;
    padding: 24px 24px 28px;
    /* Glass/Dark card */
    background:
        linear-gradient(180deg, rgba(0,0,0,0.6), rgb(17,24,39));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.06);
    color: #fff;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition:
        transform 360ms cubic-bezier(.2,.8,.2,1),
        opacity 360ms cubic-bezier(.2,.8,.2,1);
}

/* Saat popup visible, card muncul */
.popup[aria-hidden="false"] .popup-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.popup-close:hover { 
    transform: scale(1.06); 
    background: rgba(255,255,255,0.10); 
}

.popup-close img { 
    width: 18px; 
    height: 18px; 
    opacity: .9; 
}

/* Title */
.popup-title {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 500;
    color: #fff;
}

/* Form */
.popup-form {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.popup-form input {
    appearance: none;
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    outline: none;
    color: #fff;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.popup-form input::placeholder { 
    color: rgba(255,255,255,0.55); 
}

.popup-form input:focus {
    border-color: rgba(37,99,235,0.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
    background: rgba(255,255,255,0.12);
}

/* Submit */
#popup-form .join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2563EB, #1E4EDB);
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37,99,235,0.35);
    transition: transform 80ms ease, box-shadow 160ms ease, filter 160ms ease;
}

#popup-form .join-button:hover { 
    box-shadow: 0 12px 34px rgba(37,99,235,0.45); 
    filter: brightness(1.03); 
}

#popup-form .join-button:active { 
    transform: translateY(1px); 
}

/* State closing (fade out halus, tanpa jump) */
.popup.closing { 
    opacity: 0; 
    transition: opacity 240ms ease; 
}

.popup.closing .popup-inner { 
    transform: translateY(6px) scale(.985); 
    opacity: 0; 
}












/* ===== HERO (NOX-style) ===== */
.hero { position: relative; }

.hero__media { position: relative; width: 85vw; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Default (desktop) show landscape */
.hero__media [data-src="desktop"] { display: block; }
.hero__media [data-src="mobile"] { display: none; }

/* base stays same; these are enhancements */
.hero__wrap { border-radius: 9px; overflow: hidden; }

/* Buttons row */
.hero__actions {
    display: flex; 
    gap: 12px;
    position: absolute !important;
    left: 6vw;
    bottom: 4.5vw;
    pointer-events: auto;
}

.btn--hero {
    color: #fff;
    border-radius: 5px;
    letter-spacing: 0px;
    padding: 16px 32px;
    font-size: 32px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.4), 3px 3px 3px rgba(0,0,0,0.3), 4px 4px 4px rgba(0,0,0,0.2), 5px 5px 5px rgba(0,0,0,0.1);
}

.btn--hero#shop {
    border: #fff;
    border-style: solid;
    border-width: 3px;
}

.btn-hero#technology {
    border: none;
}

a#shop::after {
    content: "Shop Now";
    vertical-align: middle;
}

a#technology::after {
    content: "See Technology >";
    vertical-align: middle;
}

@media (max-width: 1200px){    
    .btn--hero {
        padding: 12px 24px;
        font-size: 24px;
    }
}

/* Tablet/Desktop: adjust buttons */
@media (max-width: 900px){    
    .btn--hero {
        padding: 9px 18px;
        font-size: 18px;
    }
}

@media (max-width: 700px){
    .hero__actions { 
        bottom: 12.5vw; 
        left: 10.5vw; 
        flex-direction: row; 
    }
    
    .btn--hero {
        text-shadow: none;
        padding:  9px 20px 10px;
        font-size: 24px;
    }

    #shop.btn--hero {
        border: none;
        background: #fff;
        color: #000;
    }

    a#technology {
        background-color: #000;
        color: #fff;
    }

    a#technology::after {
        content: "See Technology";
    }
    
    .hero__media [data-src="desktop"] { display: none; }
    .hero__media [data-src="mobile"] { display: block; }
    .hero__inner { padding-top: 54px; padding-bottom: 22px; }
}
@media (max-width: 600px){
    .btn--hero {
        padding: 5px 15px 6px;
        font-size: 18px;
    }
}
@media (max-width: 500px){
    .hero__actions { 
        bottom: 11.5vw; 
        left: 11vw; 
        flex-direction: row; }

    .btn--hero {
        padding: 2px 11.5px 3.5px;
        font-size: 14px;
    }
}