/*!
 * Homepage "Our Projects" — 3D flip carousel. Shree Umiya Structure Pvt. Ltd.   v1.1.0
 * Scoped to .suspl-projects-carousel. Plain CSS values only (no clamp(), calc() or var()).
 * v1.1 — card numbers removed; details panel shaped like the reference (white card angled away,
 *        light inner box) and its content can never spill out (JS fit); autoplay no longer stops
 *        after a click.
 * JS (js/suspl-projects.js) gives every card a data-pos: 0 = featured, -1 / 1 = side cards,
 * -2 / 2 = waiting off-stage. All card positions are percentages of .spc-track, so cards glide
 * between places with CSS transitions. The details panel shows the featured project and turns
 * over (flip) when the project changes.
 * Layouts: ≥1280 reference composition (side card · featured card + details panel · side card)
 *          768–1279 featured card with side previews, details panel below
 *          ≤767 one card with the neighbours peeking, details below, swipe
 * Palette: navy #00163F · yellow #F4B400 · white · pale blue #EAF1FA / #CFDCEC
 */

section.suspl-projects-carousel {
    position: relative;
    overflow: hidden;
    padding: 80px 0 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 55%, #ffffff 100%);
    color: #00163f;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
}

.suspl-projects-carousel *,
.suspl-projects-carousel *::before,
.suspl-projects-carousel *::after {
    box-sizing: border-box;
}

.spc-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.suspl-projects-carousel svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.suspl-projects-carousel a:focus-visible,
.suspl-projects-carousel button:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 3px;
}

/* faint blueprint drawings left and right */
.suspl-projects-carousel .spc-bp {
    position: absolute;
    top: 0;
    z-index: 0;
    width: 40%;
    height: 78%;
    max-width: none;
    object-fit: cover;
    opacity: 0.2;
    filter: invert(1) sepia(1) saturate(2.6) hue-rotate(178deg) brightness(1.05);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.suspl-projects-carousel .spc-bp--left {
    left: 0;
    object-position: 20% 40%;
    -webkit-mask-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
}

.suspl-projects-carousel .spc-bp--right {
    right: 0;
    object-position: 20% 40%;
    transform: scaleX(-1);
    -webkit-mask-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0) 100%);
}

.spc-wrap {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 1820px;
    margin: 0 auto;
}

/* ======================================================================
   Heading
   ====================================================================== */
.spc-head {
    max-width: 820px;
    margin: 0 auto 54px;
    text-align: center;
}

.suspl-projects-carousel p.spc-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 14px;
    color: #00163f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
}

.spc-eyebrow span {
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: #f4b400;
}

.suspl-projects-carousel h2.spc-title {
    margin: 0 0 12px;
    color: #00163f;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.suspl-projects-carousel h2.spc-title em {
    color: #f4b400;
    font-style: normal;
}

.suspl-projects-carousel p.spc-lead {
    max-width: 640px;
    margin: 0 auto;
    color: #2b3a55;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* ======================================================================
   Carousel stage
   ====================================================================== */
.spc-carousel {
    position: relative;
}

.spc-stage {
    position: relative;
    margin: 0 84px;
}

.spc-track {
    position: relative;
    aspect-ratio: 1672 / 420;
    touch-action: pan-y;
}

.suspl-projects-carousel ul.spc-list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* soft floor shadow under the row */
.spc-track::after {
    content: "";
    position: absolute;
    right: 6%;
    bottom: -6%;
    left: 6%;
    z-index: 0;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 22, 63, 0.14) 0%, rgba(0, 22, 63, 0) 100%);
    pointer-events: none;
}

/* ---------- project card ---------- */
.spc-card {
    position: absolute;
    top: 11%;
    left: 0;
    z-index: 1;
    width: 24%;
    height: 71.4%;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0b2347;
    box-shadow: 0 22px 44px rgba(0, 22, 63, 0.2);
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    transform: perspective(1500px) rotateY(0deg);
    transition: left 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), top 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        width 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), height 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.suspl-projects-carousel .spc-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* navy gradient for the text */
.spc-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 22, 63, 0.5) 0%, rgba(0, 22, 63, 0) 26%),
        linear-gradient(180deg, rgba(0, 22, 63, 0) 38%, rgba(0, 22, 63, 0.72) 68%, rgba(0, 22, 63, 0.96) 100%);
    pointer-events: none;
}

/* yellow frame of the featured card */
.spc-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    border: 4px solid #f4b400;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spc-card__body::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 14px;
    border-radius: 3px;
    background: #f4b400;
}

.spc-card__body {
    position: absolute;
    right: 25%;
    bottom: 7%;
    left: 6%;
    z-index: 2;
}

.spc-card__body::before {
    margin: 0 0 14px;
}

.suspl-projects-carousel h3.spc-card__title {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    transition: font-size 0.6s ease;
}

.suspl-projects-carousel p.spc-card__loc {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

/* yellow round arrow (featured card only) */
.suspl-projects-carousel a.spc-card__go {
    position: absolute;
    right: 5%;
    bottom: 9%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f4b400;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    color: #00163f;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s, background-color 0.3s ease;
}

.suspl-projects-carousel a.spc-card__go svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
    transition: transform 0.3s ease;
}

.suspl-projects-carousel a.spc-card__go:hover,
.suspl-projects-carousel a.spc-card__go:focus-visible {
    background: #ffffff;
}

.suspl-projects-carousel a.spc-card__go:hover svg { transform: translateX(3px); }

/* ---------- positions (≥1200 px: the reference composition) ---------- */
.spc-card[data-pos="0"] {
    top: 2.4%;
    left: 24.4%;
    z-index: 4;
    width: 34.1%;
    height: 95.2%;
    box-shadow: 0 30px 60px rgba(0, 22, 63, 0.28);
    cursor: default;
}

.spc-card[data-pos="-1"] {
    top: 11%;
    left: 0;
    z-index: 2;
    width: 24.2%;
    height: 71.4%;
    transform: perspective(1500px) rotateY(16deg);
}

.spc-card[data-pos="1"] {
    top: 11%;
    left: 76.5%;
    z-index: 2;
    width: 23.5%;
    height: 71.4%;
    transform: perspective(1500px) rotateY(-16deg);
}

.spc-card[data-pos="-2"] {
    top: 16%;
    left: -16%;
    z-index: 1;
    width: 20%;
    height: 60%;
    opacity: 0;
    transform: perspective(1500px) rotateY(24deg);
    pointer-events: none;
}

.spc-card[data-pos="2"] {
    top: 16%;
    left: 96%;
    z-index: 1;
    width: 20%;
    height: 60%;
    opacity: 0;
    transform: perspective(1500px) rotateY(-24deg);
    pointer-events: none;
}

.spc-card[data-pos="0"]::after { opacity: 1; }

.spc-card[data-pos="0"] a.spc-card__go {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, visibility 0s linear 0s, background-color 0.3s ease;
}

.suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 26px; }
.suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 17px; }

@media (hover: hover) and (pointer: fine) {
    .spc-card[data-pos="-1"]:hover,
    .spc-card[data-pos="1"]:hover {
        box-shadow: 0 28px 54px rgba(0, 22, 63, 0.3);
        filter: brightness(1.06);
    }

    .spc-card:hover .spc-card__img { transform: scale(1.04); }
}

/* floor reflections (desktop only) */
@media (min-width: 1280px) {
    .spc-card { -webkit-box-reflect: below 6px linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 86%, rgba(255, 255, 255, 0.16) 100%); }
    .spc-details__card { -webkit-box-reflect: below 6px linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.12) 100%); }
}

/* ---------- details panel (the "back" of the featured card) ----------
   .spc-details      position + perspective
   .spc-details__card the white card; on desktop it is tucked under the featured card on the
                     left and angled away to the right (as in the reference)
   .spc-details__in  the light inner box holding the facts and the button; it turns over when
                     the project changes. JS shrinks its content (zoom) only if it would not fit. */
.spc-details {
    position: absolute;
    top: 4.6%;
    left: 56.4%;
    z-index: 3;
    width: 20.6%;
    height: 90.8%;
    perspective: 1300px;
}

.spc-details__card {
    width: 100%;
    height: 100%;
    padding: 12px 12px 12px 13%;
    border: 1px solid #e3eaf3;
    border-radius: 0 20px 20px 0;
    background: #ffffff;
    box-shadow: 0 26px 50px rgba(0, 22, 63, 0.13), 0 2px 6px rgba(0, 22, 63, 0.05);
    transform: rotateY(-11deg);
    transform-origin: 0 50%;
}

.spc-details__in {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    padding: 12px 16px;
    border: 1px solid #e6edf6;
    border-radius: 14px;
    background: linear-gradient(180deg, #f6f9fd 0%, #eef3f9 100%);
    transform-origin: 0 50%;
    transition: transform 0.32s cubic-bezier(0.55, 0, 0.45, 1), opacity 0.32s ease;
}

/* the flip when the project changes */
.spc-details.is-turning .spc-details__in {
    opacity: 0;
    transform: rotateY(-80deg);
}

.suspl-projects-carousel dl.spc-details__list {
    margin: 0 0 16px;
}

.spc-details__row {
    position: relative;
    margin: 0 0 14px;
    padding-left: 46px;
}

.spc-details__row:last-child { margin-bottom: 0; }

.suspl-projects-carousel .spc-details__row dt {
    color: #00163f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.spc-details__row dt svg {
    position: absolute;
    top: 2px;
    left: 0;
    width: 32px;
    height: 32px;
    color: #00163f;
    stroke-width: 1.6;
}

.suspl-projects-carousel .spc-details__row dd {
    margin: 1px 0 0;
    overflow-wrap: break-word;
    color: #2b3a55;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.32;
}

.suspl-projects-carousel a.spc-details__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #f4b400;
    box-shadow: 0 10px 22px rgba(244, 180, 0, 0.26);
    color: #00163f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.suspl-projects-carousel a.spc-details__btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
    transition: transform 0.3s ease;
}

.suspl-projects-carousel a.spc-details__btn:hover,
.suspl-projects-carousel a.spc-details__btn:focus-visible {
    background: #00163f;
    color: #ffffff;
}

.suspl-projects-carousel a.spc-details__btn:hover svg { transform: translateX(3px); }

/* ---------- arrows ---------- */
.suspl-projects-carousel button.spc-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: -33px 0 0;
    padding: 0;
    border: 1.5px solid #c6d3e4;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 22, 63, 0.1);
    color: #00163f;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.suspl-projects-carousel button.spc-nav svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.spc-nav--prev { left: -84px; }
.spc-nav--next { right: -84px; }

.suspl-projects-carousel button.spc-nav:hover {
    border-color: #00163f;
    background: #00163f;
    color: #ffffff;
}

/* ---------- pagination ---------- */
.spc-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    margin-top: 74px;
}

.suspl-projects-carousel p.spc-count {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.spc-count__now { color: #00163f; }
.spc-count__sep,
.spc-count__all { color: #a9bcd6; font-weight: 400; }

.spc-bars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suspl-projects-carousel button.spc-bar {
    position: relative;
    width: 46px;
    height: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #cfdcec;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.4s ease;
}

/* bigger tap target than the thin bar */
.suspl-projects-carousel button.spc-bar::before {
    content: "";
    position: absolute;
    top: -12px;
    right: -4px;
    bottom: -12px;
    left: -4px;
}

.suspl-projects-carousel button.spc-bar.is-active {
    width: 86px;
    background: #f4b400;
}

.suspl-projects-carousel button.spc-bar:hover { background: #9fb6d3; }
.suspl-projects-carousel button.spc-bar.is-active:hover { background: #f4b400; }

/* ======================================================================
   Sizes per screen range
   ====================================================================== */
@media (min-width: 1920px) {
    section.suspl-projects-carousel { padding: 100px 0 90px; }
    .suspl-projects-carousel h2.spc-title { font-size: 60px; }
    .suspl-projects-carousel p.spc-lead { max-width: 720px; font-size: 20px; }
    .spc-head { max-width: 900px; margin-bottom: 64px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 28px; }
    .suspl-projects-carousel h3.spc-card__title { font-size: 22px; }
    .spc-details__row { margin-bottom: 18px; padding-left: 52px; }
    .spc-details__row dt svg { width: 36px; height: 36px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 15px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 16px; }
    .suspl-projects-carousel a.spc-details__btn { min-height: 52px; font-size: 16.5px; }
}

@media (min-width: 2560px) {
    section.suspl-projects-carousel { padding: 140px 0 120px; }
    .spc-wrap { max-width: 2400px; }
    .spc-stage { margin: 0 110px; }
    .spc-head { max-width: 1240px; margin-bottom: 86px; }
    .suspl-projects-carousel p.spc-eyebrow { gap: 22px; font-size: 20px; }
    .spc-eyebrow span { width: 64px; height: 4px; }
    .suspl-projects-carousel h2.spc-title { margin-bottom: 18px; font-size: 80px; }
    .suspl-projects-carousel p.spc-lead { max-width: 980px; font-size: 26px; }
    .spc-card,
    .spc-card::after { border-radius: 22px; }
    .spc-card::after { border-width: 6px; }
    .suspl-projects-carousel h3.spc-card__title { font-size: 29px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 37px; }
    .suspl-projects-carousel p.spc-card__loc { font-size: 20px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 23px; }
    .spc-card__body::before { width: 48px; height: 4px; }
    .suspl-projects-carousel a.spc-card__go { width: 90px; height: 90px; }
    .suspl-projects-carousel a.spc-card__go svg { width: 36px; height: 36px; }
    .spc-details__card { padding: 16px 16px 16px 13%; border-radius: 0 26px 26px 0; }
    .spc-details__in { padding: 20px 26px; border-radius: 18px; }
    .spc-details__row { margin-bottom: 24px; padding-left: 70px; }
    .spc-details__row dt svg { width: 48px; height: 48px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 20px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 21px; }
    .suspl-projects-carousel dl.spc-details__list { margin-bottom: 24px; }
    .suspl-projects-carousel a.spc-details__btn { min-height: 70px; font-size: 22px; border-radius: 12px; }
    .suspl-projects-carousel button.spc-nav { width: 88px; height: 88px; margin-top: -44px; }
    .suspl-projects-carousel button.spc-nav svg { width: 34px; height: 34px; }
    .spc-nav--prev { left: -110px; }
    .spc-nav--next { right: -110px; }
    .spc-pager { gap: 90px; margin-top: 100px; }
    .suspl-projects-carousel p.spc-count { font-size: 38px; }
    .suspl-projects-carousel button.spc-bar { width: 62px; height: 8px; }
    .suspl-projects-carousel button.spc-bar.is-active { width: 116px; }
}

@media (min-width: 3840px) {
    section.suspl-projects-carousel { padding: 210px 0 180px; }
    .spc-wrap { max-width: 3600px; }
    .spc-stage { margin: 0 166px; }
    .spc-head { max-width: 1860px; margin-bottom: 130px; }
    .suspl-projects-carousel p.spc-eyebrow { gap: 32px; font-size: 30px; }
    .spc-eyebrow span { width: 96px; height: 6px; }
    .suspl-projects-carousel h2.spc-title { margin-bottom: 26px; font-size: 120px; }
    .suspl-projects-carousel p.spc-lead { max-width: 1470px; font-size: 39px; }
    .spc-card,
    .spc-card::after { border-radius: 32px; }
    .spc-card::after { border-width: 9px; }
    .suspl-projects-carousel h3.spc-card__title { font-size: 44px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 56px; }
    .suspl-projects-carousel p.spc-card__loc { font-size: 30px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 34px; }
    .spc-card__body::before { width: 72px; height: 6px; margin-top: 24px; }
    .spc-card__body::before { margin: 0 0 24px; }
    .suspl-projects-carousel a.spc-card__go { width: 136px; height: 136px; }
    .suspl-projects-carousel a.spc-card__go svg { width: 54px; height: 54px; }
    .spc-details__card { padding: 24px 24px 24px 13%; border-radius: 0 38px 38px 0; }
    .spc-details__in { padding: 30px 40px; border-radius: 26px; }
    .spc-details__row { margin-bottom: 36px; padding-left: 104px; }
    .spc-details__row dt svg { width: 72px; height: 72px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 30px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 31px; }
    .suspl-projects-carousel dl.spc-details__list { margin-bottom: 36px; }
    .suspl-projects-carousel a.spc-details__btn { min-height: 104px; font-size: 33px; border-radius: 18px; }
    .suspl-projects-carousel a.spc-details__btn svg { width: 30px; height: 30px; }
    .suspl-projects-carousel button.spc-nav { width: 132px; height: 132px; margin-top: -66px; }
    .suspl-projects-carousel button.spc-nav svg { width: 50px; height: 50px; }
    .spc-nav--prev { left: -166px; }
    .spc-nav--next { right: -166px; }
    .spc-pager { gap: 136px; margin-top: 150px; }
    .suspl-projects-carousel p.spc-count { font-size: 57px; }
    .suspl-projects-carousel button.spc-bar { width: 92px; height: 12px; }
    .suspl-projects-carousel button.spc-bar.is-active { width: 172px; }
}

/* laptops 1280–1599: same composition, smaller type */
@media (min-width: 1280px) and (max-width: 1599px) {
    .spc-stage { margin: 0 74px; }
    .spc-nav--prev { left: -74px; }
    .spc-nav--next { right: -74px; }
    .suspl-projects-carousel button.spc-nav { width: 56px; height: 56px; margin-top: -28px; }
    .suspl-projects-carousel h2.spc-title { font-size: 46px; }
    .suspl-projects-carousel p.spc-lead { font-size: 17px; }
    .spc-head { margin-bottom: 44px; }
    .spc-card__body::before { width: 30px; margin-top: 10px; }
    .spc-card__body::before { margin: 0 0 10px; }
    .suspl-projects-carousel h3.spc-card__title { font-size: 16px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 21px; }
    .suspl-projects-carousel p.spc-card__loc { margin-bottom: 6px; font-size: 13px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 15px; }
    .suspl-projects-carousel a.spc-card__go { width: 54px; height: 54px; }
    .suspl-projects-carousel a.spc-card__go svg { width: 22px; height: 22px; }
    .spc-details__in { padding: 10px 12px; }
    .spc-details__row { margin-bottom: 10px; padding-left: 36px; }
    .spc-details__row dt svg { width: 26px; height: 26px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 12.5px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 13px; }
    .suspl-projects-carousel dl.spc-details__list { margin-bottom: 12px; }
    .suspl-projects-carousel a.spc-details__btn { min-height: 40px; padding: 9px 10px; font-size: 13.5px; }
    .spc-pager { margin-top: 60px; }
    .suspl-projects-carousel p.spc-count { font-size: 24px; }
}

@media (min-width: 1280px) and (max-width: 1365px) {
    .suspl-projects-carousel h3.spc-card__title { font-size: 14.5px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 19px; }
    .suspl-projects-carousel p.spc-card__loc { font-size: 12px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 14px; }
    .spc-details__row { margin-bottom: 8px; padding-left: 32px; }
    .spc-details__row dt svg { width: 23px; height: 23px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 12px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 12.5px; }
    .suspl-projects-carousel a.spc-details__btn { min-height: 38px; font-size: 13px; }
}

/* laptops 1280–1439: side cards a little narrower so the details panel gets more room */
@media (min-width: 1280px) and (max-width: 1439px) {
    .spc-card[data-pos="-1"] { left: 0; width: 22.2%; }
    .spc-card[data-pos="0"] { left: 22.8%; }
    .spc-details { left: 54.9%; width: 24.2%; }
    .spc-card[data-pos="1"] { left: 79.2%; width: 20.8%; }
}

/* tablets / small laptops: featured card with side previews; details below */
@media (max-width: 1279px) {
    section.suspl-projects-carousel { padding: 70px 0 60px; }
    .suspl-projects-carousel h2.spc-title { font-size: 42px; }
    .suspl-projects-carousel p.spc-lead { font-size: 17px; }
    .spc-head { margin-bottom: 40px; }
    .spc-stage { margin: 0 56px; }
    .spc-track { aspect-ratio: 100 / 44; }
    .suspl-projects-carousel button.spc-nav { width: 52px; height: 52px; margin-top: -26px; }
    .spc-nav--prev { left: -56px; }
    .spc-nav--next { right: -56px; }

    .spc-card[data-pos="0"] { top: 3.4%; left: 20%; width: 60%; height: 93.2%; }
    .spc-card[data-pos="-1"] { top: 14%; left: 1%; width: 34%; height: 72%; }
    .spc-card[data-pos="1"] { top: 14%; left: 65%; width: 34%; height: 72%; }
    .spc-card[data-pos="-2"] { top: 18%; left: -20%; width: 30%; height: 64%; }
    .spc-card[data-pos="2"] { top: 18%; left: 90%; width: 30%; height: 64%; }
    .spc-card[data-pos="-1"] .spc-card__body,
    .spc-card[data-pos="1"] .spc-card__body { opacity: 0; }
    .spc-card__body { transition: opacity 0.4s ease; }

    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 22px; }
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 15px; }
    .suspl-projects-carousel a.spc-card__go { width: 56px; height: 56px; }

    /* details as one row below the cards */
    .spc-details {
        position: relative;
        top: auto;
        left: auto;
        width: 92%;
        height: auto;
        margin: 30px auto 0;
        perspective: none;
    }
    .spc-details__card {
        height: auto;
        padding: 10px;
        border-radius: 18px;
        transform: none;
    }
    .spc-details__in {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        height: auto;
        padding: 16px 18px;
        border-radius: 12px;
    }
    .suspl-projects-carousel dl.spc-details__list {
        display: flex;
        flex: 1 1 auto;
        gap: 16px;
        margin: 0;
    }
    .spc-details__row { flex: 1 1 0; margin: 0; padding-left: 40px; }
    .spc-details__row:last-child { flex-grow: 1.5; }
    .suspl-projects-carousel .spc-details__row dd[data-spc-field="area"] { white-space: nowrap; }
    .spc-details__row dt svg { width: 30px; height: 30px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 13px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 14px; }
    .suspl-projects-carousel a.spc-details__btn { flex: 0 0 auto; min-height: 46px; font-size: 14px; }
    .spc-pager { gap: 40px; margin-top: 34px; }
    .suspl-projects-carousel p.spc-count { font-size: 24px; }
}

@media (max-width: 991px) {
    .spc-details { width: 100%; }
    .spc-details__in { flex-direction: column; align-items: stretch; }
    .suspl-projects-carousel a.spc-details__btn { align-self: center; min-width: 240px; }
}

/* phones: one card at a time, the neighbours peek in; swipe */
@media (max-width: 767px) {
    section.suspl-projects-carousel { padding: 56px 0 48px; }
    .spc-wrap { width: 100%; }
    .spc-head { width: 90%; margin-bottom: 30px; }
    .suspl-projects-carousel p.spc-eyebrow { gap: 12px; font-size: 13px; }
    .spc-eyebrow span { width: 34px; }
    .suspl-projects-carousel h2.spc-title { font-size: 32px; letter-spacing: -0.8px; }
    .suspl-projects-carousel p.spc-lead { font-size: 15.5px; }
    .suspl-projects-carousel .spc-bp { display: none; }
    .spc-stage { margin: 0; }
    .spc-track { aspect-ratio: 100 / 62; }
    .spc-track::after { display: none; }

    .spc-card,
    .spc-card[data-pos="0"],
    .spc-card[data-pos="-1"],
    .spc-card[data-pos="1"],
    .spc-card[data-pos="-2"],
    .spc-card[data-pos="2"] { top: 1.6%; width: 84%; height: 96.8%; border-radius: 14px; transform: none; }
    .spc-card::after { border-width: 3px; border-radius: 14px; }
    .spc-card[data-pos="0"] { left: 8%; }
    .spc-card[data-pos="-1"] { left: -79%; opacity: 0.55; }
    .spc-card[data-pos="1"] { left: 95%; opacity: 0.55; }
    .spc-card[data-pos="-2"] { left: -166%; }
    .spc-card[data-pos="2"] { left: 182%; }
    .spc-card { box-shadow: 0 14px 30px rgba(0, 22, 63, 0.18); }
    .spc-card[data-pos="0"] { box-shadow: 0 18px 36px rgba(0, 22, 63, 0.24); }

    .spc-card__body::before { width: 26px; margin-top: 8px; }
    .spc-card__body::before { margin: 0 0 8px; }
    .spc-card__body { right: 24%; bottom: 7%; }
    .suspl-projects-carousel h3.spc-card__title,
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { margin-bottom: 3px; font-size: 16px; }
    .suspl-projects-carousel p.spc-card__loc,
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { margin-bottom: 4px; font-size: 13px; }
    .suspl-projects-carousel a.spc-card__go { right: 4%; bottom: 8%; width: 46px; height: 46px; }
    .suspl-projects-carousel a.spc-card__go svg { width: 20px; height: 20px; }

    .suspl-projects-carousel button.spc-nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(255, 255, 255, 0.94); }
    .suspl-projects-carousel button.spc-nav svg { width: 18px; height: 18px; }
    .spc-nav--prev { left: 6px; }
    .spc-nav--next { right: 6px; }

    .spc-details { width: 84%; margin-top: 18px; }
    .spc-details__card { padding: 8px; border-radius: 16px; }
    .spc-details__in { padding: 16px; }
    .suspl-projects-carousel dl.spc-details__list { flex-direction: column; gap: 12px; margin-bottom: 16px; }
    .spc-details__row { padding-left: 42px; }
    .suspl-projects-carousel .spc-details__row dt { font-size: 13px; }
    .suspl-projects-carousel .spc-details__row dd { font-size: 15px; }
    .suspl-projects-carousel a.spc-details__btn { align-self: stretch; min-width: 0; min-height: 48px; }

    .spc-pager { gap: 22px; margin-top: 24px; }
    .suspl-projects-carousel p.spc-count { gap: 8px; font-size: 20px; }
    .suspl-projects-carousel button.spc-bar { width: 26px; }
    .suspl-projects-carousel button.spc-bar.is-active { width: 50px; }
}

@media (max-width: 374px) {
    .suspl-projects-carousel h2.spc-title { font-size: 27px; }
    .spc-track { aspect-ratio: 100 / 64; }
    .suspl-projects-carousel h3.spc-card__title,
    .suspl-projects-carousel .spc-card[data-pos="0"] h3.spc-card__title { font-size: 14.5px; }
    .suspl-projects-carousel p.spc-card__loc,
    .suspl-projects-carousel .spc-card[data-pos="0"] p.spc-card__loc { font-size: 12px; }
    .suspl-projects-carousel a.spc-card__go { width: 40px; height: 40px; }
    .spc-pager { gap: 14px; }
    .suspl-projects-carousel button.spc-bar { width: 20px; }
    .suspl-projects-carousel button.spc-bar.is-active { width: 40px; }
}

/* ======================================================================
   Reduced motion
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    .suspl-projects-carousel *,
    .suspl-projects-carousel *::before,
    .suspl-projects-carousel *::after {
        animation: none !important;
        transition: none !important;
    }
}
