/* ===========================================================================
   Ayoub & Co theme layer over the Framehaus template.
   Palette taken from their own assets: black backdrops + the bronze in their
   team photography (#b49c78 / #a8906c) and the white logo mark.
   Design language follows lamsabook.com: Inter at 500, tight tracking,
   floating pill header, inset rounded hero, muted panels, minimal chrome.
   The template CSS is never edited; everything lives here.
   =========================================================================== */

:root {
    --ink: #0b0b0b;
    --panel: #121212;
    --panel-2: #181818;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    --bronze: #b69b72;
    --bronze-deep: #8c7454;
    --bronze-light: #e2d3bc;

    --text: #f2f0ec;
    --muted: #a8a39a;

    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 12px;
}

/* ---------- base ---------- */
body,
.page-wrapper {
    background-color: var(--ink) !important;
    color: var(--text) !important;
}

p,
li,
.wpo-section-title p,
.about-review .text p,
.story-left p,
.story-text p,
.service-content p,
.hero-top p,
.about-left-side p,
.office-note,
.wpo-partner-section .partner-intro p {
    color: var(--muted) !important;
}

/* lead paragraphs sit a notch brighter than secondary copy */
.wpo-section-title-s2 > p,
.story-left p,
.about-review .text p {
    color: #c6c1b8 !important;
    font-size: 16px !important;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text) !important;
    font-weight: 500 !important;
    letter-spacing: -0.045em;
}

h1, h2 {
    letter-spacing: -0.055em;
    line-height: 1.02;
}

a { color: inherit; }
a:hover { color: var(--bronze); }

::selection {
    background: var(--bronze);
    color: #0b0b0b;
}

/* every light-ground section in the template goes dark */
section,
.wpo-about-section,
.wpo-about-section-s3,
.wpo-service-section,
.wpo-team-section,
.wpo-story-section,
.wpo-partner-section,
.wpo-cta-section,
.wpo-office-section,
.wpo-page-title,
.wpo-site-footer {
    background-color: var(--ink) !important;
}

/* the template's decorative star shapes read as clutter on black */
.shape,
.preloader,
.cursor,
.cursor2 {
    display: none !important;
}

/* ---------- eyebrow labels ---------- */
.title-text {
    color: var(--bronze) !important;
    font-size: 12px !important;
    letter-spacing: .18em !important;
    text-transform: uppercase;
}

/* the outlined "poort" display headings: give them bronze fill, not grey */
.poort-text span,
.poort-text {
    color: var(--text) !important;
}

/* ---------- buttons ---------- */
.theme-btn {
    background: var(--bronze) !important;
    color: #0b0b0b !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    padding: 16px 28px !important;
    transition: background .25s ease, color .25s ease;
}

.theme-btn:hover {
    background: var(--bronze-light) !important;
    color: #0b0b0b !important;
}

.theme-btn::before,
.theme-btn::after {
    display: none !important;
}

/* ---------- header: floating pill ---------- */
#header .wpo-site-header {
    background: transparent !important;
    border: none !important;
}

#header .wpo-site-header .navigation {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    background: rgba(18, 18, 18, .72) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px !important;
    z-index: 999;
}

#header .navigation .row > div {
    border: none !important;
}

#header .nav.navbar-nav > li > a {
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 10px 16px !important;
}

#header .nav.navbar-nav > li > a.active,
#header .nav.navbar-nav > li > a:hover {
    color: var(--bronze) !important;
}

#header .nav.navbar-nav > li > a::before,
#header .nav.navbar-nav > li > a::after {
    display: none !important;
}

.navbar-brand img,
.mini-cart-top .logo img {
    max-height: 40px;
    width: auto;
}

.cart-toggle-btn,
.navbar-toggler .icon-bar {
    color: var(--text) !important;
    background-color: var(--text);
}

.mini-cart-content {
    background: var(--panel) !important;
    border-left: 1px solid var(--line);
}

/* ---------- hero: inset rounded card, one line of copy ---------- */
.wpo-hero-section {
    padding: 0 24px;
}

.wpo-hero-section .hero-slider,
.wpo-hero-section .swiper-slide {
    border-radius: var(--r-lg);
    overflow: hidden;
}

.wpo-hero-section .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 11, .72) 0%, rgba(11, 11, 11, .25) 45%, rgba(11, 11, 11, .88) 100%);
}

.wpo-hero-section .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 64px;
}

.wpo-hero-section .hero-top p {
    max-width: 440px;
    color: rgba(242, 240, 236, .82) !important;
    font-size: 16px !important;
    line-height: 1.6;
}

.wpo-hero-section .hero-text h1 {
    font-size: clamp(44px, 5.6vw, 88px) !important;
    letter-spacing: -0.055em !important;
    line-height: .96 !important;
    margin: 0 !important;
}

.wpo-hero-section .hero-btn {
    order: 3;
    margin-top: 28px;
}

.wpo-hero-section .hero-text { order: 1; }
.wpo-hero-section .hero-top { order: 2; margin-top: 20px !important; }

.swiper-pagination-bullet,
.hero-slider .swiper-pagination span {
    background: rgba(242, 240, 236, .4) !important;
}

.swiper-pagination-bullet-active {
    background: var(--bronze) !important;
}

/* the template puts a translucent slab behind the hero intro: drop it */
.wpo-hero-section .hero-top,
.wpo-hero-section .hero-content > div {
    background: transparent !important;
}

.wpo-hero-section .hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- stats ---------- */
.wpo-fun-fact-grids .grid {
    background: var(--panel) !important;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 28px 24px !important;
}

.wpo-fun-fact-grids .grid h3,
.wpo-fun-fact-grids .grid h3 span {
    color: var(--bronze) !important;
    font-size: 44px;
    letter-spacing: -0.05em;
}

.wpo-fun-fact-grids .grid p {
    color: var(--muted) !important;
    font-size: 14px !important;
    margin-bottom: 0;
}

/* ---------- about imagery ---------- */
.about-image img,
.story-image img,
.wpo-cta-wrap img {
    border-radius: var(--r-lg);
}

.hero-circle { display: none !important; }

/* ---------- services: quiet rows, bronze on hover ---------- */
.service-item {
    background: var(--panel) !important;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px 28px !important;
    transition: border-color .25s ease, background .25s ease;
}

.service-item:hover,
.service-item.active {
    background: var(--panel-2) !important;
    border-color: var(--bronze-deep);
}

.service-item .icon img {
    filter: invert(1) sepia(1) saturate(.35) hue-rotate(350deg);
    opacity: .85;
}

.service-content span,
.service-content span a {
    color: var(--text) !important;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.service-content p {
    color: var(--muted) !important;
    font-size: 15px !important;
}

/* ---------- story / approach ---------- */
.story-item {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.story-item .number span {
    color: var(--bronze) !important;
}

.story-text span {
    color: var(--text) !important;
    letter-spacing: -0.03em;
}

.story-item .line {
    background: var(--line-strong) !important;
}

/* ---------- team: 18 people as a grid ----------
   gsap-script.js initTeamScroll() pins .wpo-team-section and horizontally
   scrolls .team-container (built for 4 cards). Our markup uses .team-stack
   instead, so that function bails out and this grid governs. */
.team-stack,
.team-stack .team-content {
    display: block;
    width: 100%;
}

.team-stack .team-right {
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
}

.team-stack .wpo-section-title-s2 { width: 100%; }

.wpo-team-section .team-item.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wpo-team-section .team-item.team-grid .team-card {
    width: 100%;
    margin: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .25s ease;
}

.wpo-team-section .team-item.team-grid .team-card:hover {
    border-color: var(--bronze-deep);
}

.wpo-team-section .team-item.team-grid .team-card .image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    background: #000;
}

.wpo-team-section .team-item.team-grid .team-text {
    padding: 18px 20px 22px;
}

.wpo-team-section .team-item.team-grid .team-text span {
    display: block;
    color: var(--text) !important;
    font-size: 17px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.wpo-team-section .team-item.team-grid .team-text p {
    color: var(--muted) !important;
    font-size: 13px !important;
    margin: 0;
}

.wpo-team-section .section-lead {
    max-width: 620px;
    margin-top: 18px;
}

@media (max-width: 1199px) {
    .wpo-team-section .team-item.team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .wpo-team-section .team-item.team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .wpo-team-section .team-item.team-grid .team-card .image img { height: 210px; }
}

/* ---------- developer partners: white marks, so keep them white on black ---------- */
.wpo-partner-section .partner-intro {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.wpo-partner-section .partner-intro .title-text {
    display: block;
    margin-bottom: 14px;
}

.wpo-partner-section .partner-intro p {
    color: var(--muted) !important;
    font-size: 15px !important;
}

.wpo-partner-section .partners-slider li > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 18px;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
}

/* the template paints these tiles pale green further up the cascade */
.wpo-partner-section .partner-item,
.wpo-partner-section .partners-slider,
.wpo-partner-section .partners-slider li {
    background: transparent !important;
}

.wpo-partner-section .partners-slider img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    opacity: .7;
    transition: opacity .25s ease;
}

.wpo-partner-section .partners-slider li:hover img { opacity: 1; }

.mini-cart .image-wrap.partner-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-cart .image-wrap.partner-strip .image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--panel-2);
    border-radius: var(--r-sm);
}

.mini-cart .image-wrap.partner-strip .image img {
    height: 34px;
    width: auto;
    object-fit: contain;
    opacity: .8;
}

/* ---------- office strip (client photos are small; keep them small) ---------- */
.office-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.office-strip .office-shot img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: var(--r-md);
}

.office-note {
    max-width: 520px;
    margin: 28px auto 0;
    text-align: center;
    color: var(--muted) !important;
    font-size: 15px !important;
}

@media (max-width: 991px) {
    .office-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575px) {
    .office-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- page title banner ---------- */
.wpo-page-title {
    padding: 190px 0 90px !important;
}

.wpo-page-title::before,
.wpo-page-title::after {
    display: none !important;
}

.wpo-page-title .wpo-breadcumb-wrap h1 {
    font-size: clamp(44px, 6vw, 82px);
}

.wpo-page-title .wpo-breadcumb-wrap ol li,
.wpo-page-title .wpo-breadcumb-wrap ol li a {
    color: var(--muted) !important;
    font-size: 14px;
}

/* ---------- footer ---------- */
.wpo-site-footer {
    border-top: 1px solid var(--line);
}

.wpo-site-footer h2 {
    font-size: clamp(30px, 3.4vw, 46px);
    max-width: 620px;
}

.wpo-site-footer p,
.wpo-site-footer li,
.wpo-site-footer a {
    color: var(--muted) !important;
}

.wpo-site-footer a:hover { color: var(--bronze) !important; }

.wpo-site-footer .widget-title h3 {
    font-size: 13px !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bronze) !important;
}

.footer-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-cta-btns .theme-btn { white-space: nowrap; }

.footer-hours ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.footer-hours ul li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 280px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.footer-middle span {
    color: var(--bronze) !important;
    letter-spacing: -0.03em;
}

.wpo-lower-footer {
    border-top: 1px solid var(--line);
}

.social-media li a {
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    color: var(--text) !important;
}

.social-media li a:hover {
    border-color: var(--bronze) !important;
    color: var(--bronze) !important;
}

/* ---------- misc template leftovers ---------- */
.back-to-top {
    background: var(--bronze) !important;
    color: #0b0b0b !important;
    border-radius: 999px !important;
}

.wpo-cta-section .wpo-section-title p {
    max-width: 640px;
    margin-inline: auto;
}

/* --- story/approach imagery ---
   founders.webp is a real 765x1020 original; the office frames are still
   165x220 thumbnails, so the slot stays capped to avoid upscaling those. */
.wpo-story-section .story-image {
    max-width: 460px;
    margin-inline: 0;
}

.wpo-story-section .story-image img,
.wpo-story-section .mobile-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    background: #000;
    border-radius: var(--r-lg);
}

/* --- four pillars: the template staggers these cards at different heights
   and vertical offsets. Uniform grid, equal height, aligned baselines. --- */
.service-all-content {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.wpo-service-section .service-item {
    margin: 0 !important;
    top: auto !important;
    transform: none !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wpo-service-section .service-item .icon {
    margin-bottom: 26px !important;
}

.wpo-service-section .service-item .icon img {
    height: 40px;
    width: auto;
}

.wpo-service-section .service-content span,
.wpo-service-section .service-content span a {
    display: block;
    font-size: 19px !important;
    line-height: 1.28;
    margin-bottom: 14px;
}

.wpo-service-section .service-content p {
    margin: auto 0 0;
}

@media (max-width: 991px) {
    .service-all-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .service-all-content { grid-template-columns: 1fr; }
}

/* --- about stats ---
   style.css:4048 gives this strip a cream gradient, blur and margin-right:-280px
   so it bleeds across the image. Clean 3-up row inside the text column instead. */
.wpo-about-section .wpo-fun-fact-grids,
.wpo-about-section-s3 .wpo-fun-fact-grids {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px !important;
    margin: 48px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    justify-content: stretch !important;
}

.wpo-about-section .about-image,
.wpo-about-section .about-image img {
    height: 100%;
}

.wpo-about-section .about-image img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--r-lg);
}

.wpo-about-section .about-left-side {
    padding-right: 40px;
}

@media (max-width: 991px) {
    .wpo-about-section .about-left-side { padding-right: 0; }
    .wpo-about-section .about-image img { max-height: 420px; margin-top: 40px; }
}

/* --- hero: their own background video, inset card, minimal chrome --- */
.wpo-hero-section.hero-video {
    position: relative;
    padding: 0 24px;
    height: auto;
}

.hero-video .hero-media {
    position: relative;
    height: min(88vh, 860px);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
}

.hero-video .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 11, .5) 0%, rgba(11, 11, 11, .1) 38%, rgba(11, 11, 11, .92) 100%),
        linear-gradient(90deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .35) 42%, rgba(11, 11, 11, 0) 70%);
}

.hero-video .container-fluid {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 64px 72px;
    pointer-events: none;
}

.hero-video .hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    pointer-events: auto;
}

.hero-video .hero-text h1 {
    font-size: clamp(48px, 6.4vw, 104px) !important;
    letter-spacing: -0.055em !important;
    line-height: .96 !important;
    margin: 0 !important;
}

.hero-video .hero-top p {
    max-width: 460px;
    margin: 18px 0 0;
    color: rgba(242, 240, 236, .84) !important;
    font-size: 16px !important;
    line-height: 1.6;
}

.hero-video .hero-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.theme-btn.ghost {
    background: rgba(242, 240, 236, .08) !important;
    color: var(--text) !important;
    border: 1px solid var(--line-strong) !important;
    backdrop-filter: blur(10px);
}

.theme-btn.ghost:hover {
    background: rgba(242, 240, 236, .16) !important;
    color: var(--text) !important;
}

@media (max-width: 767px) {
    .wpo-hero-section.hero-video { padding: 0 14px; }
    .hero-video .hero-media { height: 76vh; }
    .hero-video .container-fluid { padding: 0 24px 44px; }
}

/* ===========================================================================
   Mobile pass. Measured at a 321px viewport, where the template leaves the
   closed off-canvas drawer sitting ~846px to the right (horizontal overflow)
   and keeps the stats in three ~95px columns.
   =========================================================================== */
@media (max-width: 767px) {
    /* the closed drawer must not contribute width */
    .mini-cart-content {
        visibility: hidden;
        pointer-events: none;
    }

    .mini-cart-content.mini-cart-content-toggle,
    .mini-cart-content.active,
    .mini-cart.active .mini-cart-content {
        visibility: visible;
        pointer-events: auto;
    }

    html, body, .page-wrapper { overflow-x: hidden; max-width: 100%; }

    /* tighter vertical rhythm: the template ships 120px section padding */
    .section-padding { padding: 64px 0 !important; }
    .wpo-office-section.section-padding.pb-0,
    .wpo-story-section.section-padding.pb-0,
    .wpo-cta-section.section-padding.pb-0 { padding-bottom: 0 !important; }

    h2 { font-size: clamp(30px, 9vw, 40px) !important; }

    .container, .container-fluid { padding-inline: 20px; }

    /* hero */
    .hero-video .hero-media { height: 72vh; min-height: 460px; }
    .hero-video .hero-text h1 { font-size: clamp(38px, 12vw, 52px) !important; }
    .hero-video .hero-top p { font-size: 15px !important; margin-top: 14px; }
    .hero-video .hero-btn { margin-top: 22px; gap: 10px; }
    .hero-video .hero-btn .theme-btn {
        flex: 1 1 100%;
        text-align: center;
        padding: 15px 20px !important;
    }

    /* stats read as rows, not three cramped columns */
    .wpo-about-section .wpo-fun-fact-grids,
    .wpo-about-section-s3 .wpo-fun-fact-grids {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 32px !important;
    }

    .wpo-fun-fact-grids .grid {
        display: flex;
        align-items: baseline;
        gap: 14px;
        padding: 18px 20px !important;
    }

    .wpo-fun-fact-grids .grid h3 { margin: 0; font-size: 32px; }
    .wpo-fun-fact-grids .grid p { font-size: 13px !important; }

    /* about imagery */
    .wpo-about-section .about-image img { max-height: 420px; margin-top: 28px; }

    /* pillars */
    .wpo-service-section .service-item { padding: 24px 22px !important; }
    .wpo-service-section .service-content span { font-size: 18px !important; }
    .service-bottom .service-btn { display: flex; flex-direction: column; gap: 10px; }
    .service-bottom .service-btn .theme-btn { text-align: center; }

    /* partners */
    .wpo-partner-section .partners-slider { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .wpo-partner-section .partners-slider li > div { min-height: 84px; padding: 14px; }
    .wpo-partner-section .partners-slider img { max-height: 44px; }
    .wpo-partner-section .partner-intro { margin-bottom: 28px; }

    /* approach */
    .wpo-story-section .story-image { max-width: 100%; }
    .wpo-story-section .story-card { display: block; }
    .story-item { padding-top: 18px; }

    /* footer */
    .footer-cta-btns { flex-direction: column; }
    .footer-cta-btns .theme-btn { text-align: center; }
    .footer-hours ul li { max-width: 100%; }
    .wpo-site-footer h2 { font-size: 26px !important; }
    .wpo-lower-footer .row > div { text-align: center; }
    .wpo-lower-footer .social-media { justify-content: center; display: flex; gap: 10px; }

    /* about page banner */
    .wpo-page-title { padding: 150px 0 60px !important; }
}

/* the floating pill header needs to shrink, not wrap, on small screens */
@media (max-width: 991px) {
    #header .wpo-site-header .navigation {
        top: 12px;
        width: calc(100% - 24px);
        padding: 8px 10px !important;
        border-radius: 22px;
    }

    .navbar-brand img { max-height: 32px; }
}

/* ===========================================================================
   Mobile round 2, from a device walkthrough:
   - style.css:2333 paints the menu button olive green
   - stats, pillars and team cards stack unevenly at phone widths
   - the template's white CTA line-art slab leaves a hole on black
   =========================================================================== */
@media (max-width: 767px) {
    /* --- header: one trigger, no green --- */
    .wpo-site-header .mobail-menu button,
    .wpo-site-header .navbar-header .open-btn {
        background-color: transparent !important;
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid var(--line-strong) !important;
        border-radius: 999px !important;
        padding: 0 !important;
    }

    .wpo-site-header .mobail-menu button span {
        background-color: var(--text) !important;
        width: 16px !important;
        margin: 0 !important;
    }

    /* the drawer trigger duplicates the hamburger on phones */
    .header-right .mini-cart { display: none !important; }

    #header .navigation .navbar-header { text-align: center; }

    /* --- shared horizontal card rail --- */
    .service-all-content,
    .wpo-fun-fact-grids,
    .wpo-about-section .wpo-fun-fact-grids,
    .wpo-about-section-s3 .wpo-fun-fact-grids,
    .team-grid,
    .wpo-team-section .team-item.team-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px !important;
        margin-inline: -20px !important;
        padding: 2px 20px 10px !important;
        align-items: stretch;
    }

    .service-all-content::-webkit-scrollbar,
    .wpo-fun-fact-grids::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar { display: none; }

    .wpo-service-section .service-item {
        flex: 0 0 78% !important;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }

    .wpo-fun-fact-grids .grid {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-width: 150px;
        padding: 20px !important;
    }

    .wpo-fun-fact-grids .grid h3 { font-size: 34px; margin: 0; }
    .wpo-fun-fact-grids .grid p { font-size: 13px !important; margin: 0; white-space: nowrap; }

    .wpo-team-section .team-item.team-grid .team-card {
        flex: 0 0 62% !important;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }

    .wpo-team-section .team-item.team-grid .team-card .image img { height: 220px; }

    .wpo-team-section .team-item.team-grid .team-text {
        padding: 14px 16px 18px;
        min-height: 92px;
    }

    .wpo-team-section .team-item.team-grid .team-text span { font-size: 15px; }
    .wpo-team-section .team-item.team-grid .team-text p { font-size: 12px !important; }

    /* a quiet hint that the rails move */
    .service-all-content::after,
    .team-grid::after {
        content: "";
        flex: 0 0 8px;
    }

    /* --- partners: kill the dead space, keep the logos tight --- */
    .wpo-cta-wrap,
    .wpo-cta-section .cta-item { display: none !important; }

    .wpo-cta-section { padding-bottom: 56px !important; }
    .wpo-partner-section { padding: 8px 0 48px !important; }
    .wpo-partner-section .partner-intro { margin-bottom: 22px; }
    .wpo-partner-section .partner-intro p { font-size: 14px !important; line-height: 1.6; }
    .wpo-partner-section .partners-slider { gap: 10px; margin: 0; padding: 0; }
    .wpo-partner-section .partners-slider li > div { min-height: 76px; }
}
