.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;
}

.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;
    }
}

































/* ===== Testimony: stacked -> slide down animation ===== */
#testimony .testi-header { text-align: center; margin-bottom: 24px; padding: 0 0 4% 0;}
#testimony .testi-title  { font: 700 28px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto; letter-spacing: -0.2px; }
#testimony .testi-subtitle { color: #6b7280; font-size: 20px; font-weight: 500; }

.testi-stack { --brand: #0ea5e9; }
.testi-stack[data-brand="tokopedia"] { --brand: #03AC0E; }
.testi-stack[data-brand="shopee"]    { --brand: #EE4D2D; }
.testi-stack[data-brand="whatsapp"]  { --brand: #25D366; }

/* Container for cards: relative so children can be absolute when collapsed */
.testi-cards{
  list-style:none; margin:0; padding:0;
  position:relative; overflow:visible;
  height: var(--collapsed-h, 260px);      /* ⟵ give it real height */
  /* max-height: none;  (not needed) */
  transition: height .45s ease;           /* animate height */
  will-change: height;
}

/* Card base look */
.testi-card {
    position: absolute;              /* overlap in collapsed state */
    left: 0;
    right: 0;
    top: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    padding: 16px 16px 64px;         /* extra for footer ribbon */
    transform-origin: 20% 10%;
    transition:
        transform .40s cubic-bezier(.63,.15,.03,1.12),
        opacity   .28s ease,
        box-shadow .28s ease;
    will-change: transform, opacity;
}

/* “Messy stack” angles like the demo */
.testi-card:nth-child(1) { transform: rotate(-2deg) translateY(0px);   z-index: 5; }
.testi-card:nth-child(2) { transform: rotate(-6deg) translateY(-2px);  z-index: 4; }
.testi-card:nth-child(3) { transform: rotate( 4deg) translateY(-4px);  z-index: 3; }
.testi-card:nth-child(4) { transform: rotate(-4deg) translateY(-6px);  z-index: 2; }
.testi-card:nth-child(5) { transform: rotate( 6deg) translateY(-8px);  z-index: 1; }
/* hide deeper cards a bit in collapsed state */
.testi-card:nth-child(n+2) { opacity: 0; }

/* Expanded (open) state */
.testi-stack.expanded .testi-cards { max-height: var(--open-h, 2000px); }
.testi-stack.expanded .testi-card {
    opacity: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    /* translate by row height * index (index provided via --i from JS) */
    transform: rotate(0deg) translateY(calc((var(--row-h) + var(--gap, 16px)) * var(--i, 0)));
}

/* Staggered drop timing like the reference */
.testi-stack.expanded .testi-card:nth-child(1) { transition-delay:   0ms; }
.testi-stack.expanded .testi-card:nth-child(2) { transition-delay:  60ms; }
.testi-stack.expanded .testi-card:nth-child(3) { transition-delay: 120ms; }
.testi-stack.expanded .testi-card:nth-child(4) { transition-delay: 180ms; }
.testi-stack.expanded .testi-card:nth-child(5) { transition-delay: 240ms; }

/* Content bits (avatar, labels, ribbon) */
.testi-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.testi-top .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; border: 3px solid var(--brand);
}
.testi-top .avatar .user { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); display: inline-block; }
.testi-top .who .name { margin: 0; color: var(--brand); font-weight: 700; }
.testi-top .who .role { margin: 0; color: #6b7280; font-size: 12px; }
.testi-text { color: #374151; font-size: 14px; margin: 8px 0 0; }

.testi-foot {
    position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.testi-foot::before {
    content: ""; position: absolute; inset: 0 80px 0 0; background: var(--brand);
    border-radius: 0 18px 16px 16px;    /* soft corner like your reference */
}
.testi-foot .stars, .testi-foot .quote { position: relative; z-index: 1; }
.testi-foot .stars::before { content: "★★★★★"; letter-spacing: 2px; color: #fff; font-size: 18px; line-height: 1; }
.testi-foot .quote::before { content: "“"; color: #f59e0b; font-size: 34px; line-height: 1; opacity: .95; }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
    .testi-card, .testi-cards { transition: none !important; transform: none !important; opacity: 1 !important; position: relative !important; }
}

/* Fallback: before JS enhances, show only the first card in normal flow */
#testimony .testi-cards:not(.enhanced) { position: relative; max-height: none; }
#testimony .testi-cards:not(.enhanced) .testi-card { 
  position: relative; 
  opacity: 1; 
  transform: none; 
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  margin-bottom: 16px;      /* give it space */
}
#testimony .testi-cards:not(.enhanced) .testi-card:nth-child(n+2) { display: none; }

/* Expanded: grow to full height */
.testi-stack.expanded .testi-cards{
  height: var(--open-h, 2000px);
}

/* Fallback: before JS enhances, show first card in normal flow */
#testimony .testi-cards:not(.enhanced){
  position:relative; overflow:visible;
  height:auto;                             /* ⟵ important */
}
#testimony .testi-cards:not(.enhanced) .testi-card{
  position:relative; opacity:1; transform:none;
  margin-bottom:16px;
}
#testimony .testi-cards:not(.enhanced) .testi-card:nth-child(n+2){
  display:none;
}

/* -------- collapsed "stacked" look -------- */
.testi-stack:not(.expanded) .testi-card {
  /* already centered by translateX(-50%) in your base rule */
  /* keep shadow subtle so the deck reads as one bundle */
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

/* show the other cards peeking from the sides instead of hiding them */
.testi-stack:not(.expanded) .testi-card:nth-child(2) {
  opacity: .80;
  transform: translateX(calc(-50% + 12px)) rotate(-3deg) translateY(4px) scale(.997);
  z-index: 4;
}
.testi-stack:not(.expanded) .testi-card:nth-child(3) {
  opacity: .65;
  transform: translateX(calc(-50% - 12px)) rotate(2.5deg) translateY(8px) scale(.994);
  z-index: 3;
}
.testi-stack:not(.expanded) .testi-card:nth-child(4) {
  opacity: .45;
  transform: translateX(calc(-50% + 20px)) rotate(-2deg) translateY(12px) scale(.992);
  z-index: 2;
}
.testi-stack:not(.expanded) .testi-card:nth-child(5) {
  opacity: .35;
  transform: translateX(calc(-50% - 20px)) rotate(2deg) translateY(16px) scale(.990);
  z-index: 1;
}

/* remove the old rule that hid deeper cards */
.testi-card:nth-child(n+2) { opacity: 1; } /* <- overwrite earlier 0 */

/* keep the expanded state exactly as you have: cards slide straight down,
   de-tilt, and become fully opaque */
.testi-stack.expanded .testi-card {
  opacity: 1;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  transform:
    translateX(-50%)
    translateY(calc((var(--row-h) + var(--gap, 16px)) * var(--i, 0)))
    rotate(0deg) scale(1);
}

/* 1) Each column/stack is its own stacking context and clipping box */
#testimony .column { overflow: hidden; }                 /* stop bleeding into neighbors */
#testimony .testi-stack { position: relative; isolation: isolate; }

/* 2) Let cards peek but keep them inside the column */
#testimony .testi-cards{
  overflow: visible;                 /* allow side-peek */
  padding-inline: 18px;              /* internal gutters for the peek */
}
#testimony .testi-card{
  width: calc(100% - 36px);          /* fit inside the gutters */
  left: 50%;
  right: auto;
  transform-origin: 50% 0%;
  transform: translateX(-50%);       /* centered baseline */
}

/* 3) Tighter, consistent collapsed stack (smaller offsets, softer shadows) */
#testimony .testi-stack:not(.expanded) .testi-card{ box-shadow: 0 6px 18px rgba(0,0,0,.10); }
#testimony .testi-stack:not(.expanded) .testi-card:nth-child(1){
  transform: translateX(-50%) rotate(-1.5deg) translateY(0);
  z-index:5; opacity:1;
}
#testimony .testi-stack:not(.expanded) .testi-card:nth-child(2){
  transform: translateX(calc(-50% + 10px)) rotate(-3deg) translateY(4px) scale(.997);
  z-index:4; opacity:.85;
}
#testimony .testi-stack:not(.expanded) .testi-card:nth-child(3){
  transform: translateX(calc(-50% - 10px)) rotate(2.5deg) translateY(8px) scale(.994);
  z-index:3; opacity:.70;
}
#testimony .testi-stack:not(.expanded) .testi-card:nth-child(4){
  transform: translateX(calc(-50% + 16px)) rotate(-2deg) translateY(12px) scale(.992);
  z-index:2; opacity:.55;
}
#testimony .testi-stack:not(.expanded) .testi-card:nth-child(5){
  transform: translateX(calc(-50% - 16px)) rotate(2deg) translateY(16px) scale(.990);
  z-index:1; opacity:.45;
}

/* 4) Keep your expanded state as-is; just ensure it stays centered */
#testimony .testi-stack.expanded .testi-card{
  transform:
    translateX(-50%)
    translateY(calc((var(--row-h) + var(--gap,16px)) * var(--i,0)))
    rotate(0) scale(1);
}



#testimony-title,
#faq-title {
    color: rgba(0, 0, 0, 1) !important; 
    font-size: 5rem !important; 
    letter-spacing: -3.8px !important; 
    line-height: 5rem !important; 
    text-align: center !important; 
    font-weight: 500 !important;
    /* 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); */
}

@media (max-width: 1200px) {
    #testimony-title,
    #faq-title {
        font-size: calc(5rem * 0.9) !important; 
        letter-spacing: calc(-3.8px * 0.9) !important; 
        line-height: calc(5rem * 0.9) !important; 
        /* width: calc(700px * 0.9); */
    }
}

@media (max-width: 768px) {
    #testimony-title,
    #faq-title {
        font-size: calc(5rem * 0.75) !important; 
        letter-spacing: calc(-3.8px * 0.75) !important; 
        line-height: calc(5rem * 0.75) !important; 
        /* width: calc(700px * 0.75); */
    }
}

@media only screen and (max-width: 600px) {
    #testimony-title,
    #faq-title {
        font-size: calc(5rem * 0.6) !important; 
        letter-spacing: calc(-3.8px * 0.6) !important; 
        line-height: calc(5rem * 0.6) !important; 
        /* width: calc(700px * 0.6); */
    }
}

@media only screen and (max-width: 450px) {
    #testimony-title,
    #faq-title {
        font-size: calc(5rem * 0.5) !important; 
        letter-spacing: calc(-3.8px * 0.5) !important; 
        line-height: calc(5rem * 0.5) !important; 
        /* width: calc(700px * 0.5); */
    }
}






























/* ===== 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 {
    background: #fff !important;        /* wins over old dark block */
    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; 
}