/* Homepage: AI loader + banner image */

html.home-page-root {
    scroll-padding-top: 0;
    height: 100%;
    overflow: hidden;
}

html.home-page-root.home-page-root--scrollable {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-header-h);
}

html.home-page-root::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html.home-page-root.home-page-root--scrollable::-webkit-scrollbar {
    width: auto;
    height: auto;
}

body.home-page {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-top: var(--site-header-h);
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 100%;
}

body.home-page:not(.is-loading):not(.home-page--scrollable) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: none;
}

body.home-page.home-page--scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

body.home-page.home-page--scrollable::-webkit-scrollbar {
    display: block;
    width: auto;
    height: auto;
}

body.home-page.is-loading {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body.home-page.is-loading .site-main,
body.home-page.is-loading .site-header {
    visibility: hidden;
}

/* —— Shared site header (matches Services / About) —— */
.home-page .site-header--dark {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .site-header--dark.is-scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.home-page .logo,
.home-page .nav-menu a,
.home-page .nav-toggle {
    color: #ffffff;
}

.home-page .nav-menu a:hover,
.home-page .nav-menu a[aria-current="page"] {
    color: #93c5fd;
}

.home-page .nav-toggle {
    border-color: rgba(255, 255, 255, 0.25);
}

/* —— AI Loader —— */
.ai-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030308;
    overflow: hidden;
    transition:
        opacity 0.65s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
        visibility 0.65s;
}

.ai-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ai-loader__grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(500px) rotateX(58deg);
    animation: ai-loader-grid-drift 18s linear infinite;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, #000 20%, transparent 72%);
}

.ai-loader__glow {
    position: absolute;
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(59, 130, 246, 0.12) 42%, transparent 68%);
    filter: blur(40px);
    animation: ai-loader-pulse 2.4s ease-in-out infinite;
}

.ai-loader__core {
    position: relative;
    z-index: 2;
    width: min(92vw, 400px);
    text-align: center;
}

.ai-loader__orb {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.ai-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ai-loader__ring--1 {
    border-top-color: rgba(167, 139, 250, 0.9);
    border-right-color: rgba(96, 165, 250, 0.35);
    animation: ai-loader-spin 1.1s linear infinite;
}

.ai-loader__ring--2 {
    inset: 14px;
    border-bottom-color: rgba(56, 189, 248, 0.85);
    border-left-color: rgba(139, 92, 246, 0.3);
    animation: ai-loader-spin 1.6s linear infinite reverse;
}

.ai-loader__ring--3 {
    inset: 28px;
    border-top-color: rgba(255, 255, 255, 0.55);
    animation: ai-loader-spin 2.2s linear infinite;
}

.ai-loader__brain {
    position: absolute;
    inset: 38px;
    display: grid;
    place-items: center;
    font-family: "Sora", "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 0 0 24px rgba(139, 92, 246, 0.8);
    animation: ai-loader-brain-glow 1.8s ease-in-out infinite;
}

.ai-loader__nodes {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
}

.ai-loader__node {
    fill: #a78bfa;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.9));
    animation: ai-loader-node 1.4s ease-in-out infinite;
}

.ai-loader__node:nth-child(2) { animation-delay: 0.2s; }
.ai-loader__node:nth-child(3) { animation-delay: 0.4s; }
.ai-loader__node:nth-child(4) { animation-delay: 0.6s; }
.ai-loader__node:nth-child(5) { animation-delay: 0.8s; }
.ai-loader__node:nth-child(6) { animation-delay: 1s; }

.ai-loader__line {
    stroke: rgba(129, 140, 248, 0.45);
    stroke-width: 1;
    stroke-dasharray: 4 6;
    animation: ai-loader-dash 2s linear infinite;
}

.ai-loader__brand {
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #fff;
    margin-bottom: 8px;
}

.ai-loader__status {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(199, 210, 254, 0.75);
    min-height: 1.25em;
    margin-bottom: 22px;
}

.ai-loader__track {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.ai-loader__bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #a855f7, #38bdf8);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transition: width 0.25s ease-out;
}

/* Desktop: real download % — no width tween (avoids bar crawling 1% at a time) */
.ai-loader__bar--snap {
    transition: none;
}

.ai-loader__pct {
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
}

@keyframes ai-loader-grid-drift {
    from { transform: perspective(500px) rotateX(58deg) translateY(0); }
    to { transform: perspective(500px) rotateX(58deg) translateY(48px); }
}

@keyframes ai-loader-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ai-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes ai-loader-brain-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes ai-loader-node {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@keyframes ai-loader-dash {
    to { stroke-dashoffset: -20; }
}

/* —— Banner image —— */
.site-main--fullscreen {
    min-height: 100vh;
    min-height: 100dvh;
}

body.home-page:not(.home-page--scrollable) .site-main--fullscreen {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.home-page--scrollable .site-main--fullscreen {
    height: auto;
    overflow: visible;
}

.hero-banner {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 480px;
    overflow: hidden;
}

.hero-banner__media {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000;
}

.hero-banner__image,
.hero-banner__mobile-image {
    display: none;
}

.hero-banner__shade {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 35%),
        radial-gradient(ellipse 80% 50% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

/* Fixed banner image — desktop/tablet only */
body.home-page--image-banner {
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}

body.home-page--image-banner:not(.is-loading) {
    overflow-y: auto;
    height: auto;
}

@media (min-width: 769px) {
    body.home-page--image-banner .hero-banner__image {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    body.home-page--image-banner .hero-banner {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        background: transparent;
        pointer-events: none;
        touch-action: pan-y;
    }

    body.home-page--image-banner .hero-banner__shade {
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    body.home-page--image-banner .site-main--fullscreen {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    body.home-page--image-banner .home-services,
    body.home-page--image-banner .home-why,
    body.home-page--image-banner .home-live-counter,
    body.home-page--image-banner .home-stats,
    body.home-page--image-banner .client-slideshow,
    body.home-page--image-banner .home-leadership,
    body.home-page--image-banner .home-project-cta,
    body.home-page--image-banner .home-comments,
    body.home-page--image-banner .site-footer,
    body.home-page--image-banner .ai-site-footer {
        position: relative;
        z-index: 2;
    }
}

/* Mobile home — fixed banner (cropped height), content scrolls over */
body.home-page--mobile-banner {
    --mobile-banner-h: min(68vh, 440px);
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}

body.home-page--mobile-banner:not(.is-loading) {
    overflow-y: auto;
    height: auto;
}

@media (max-width: 768px) {
    body.home-page--mobile-banner .hero-banner__media {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-banner-h);
        z-index: 0;
        overflow: hidden;
        background: #000;
    }

    body.home-page--mobile-banner .hero-banner__mobile-image {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        pointer-events: none;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    body.home-page--mobile-banner .hero-banner {
        height: var(--mobile-banner-h);
        min-height: 0;
        background: transparent;
        pointer-events: none;
        touch-action: pan-y;
        overflow: hidden;
    }

    body.home-page--mobile-banner .hero-banner__shade {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-banner-h);
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 32%),
            linear-gradient(0deg, rgba(255, 255, 255, 0.92) 0%, transparent 28%);
    }

    body.home-page--mobile-banner .site-main--fullscreen {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-top: 0;
    }

    body.home-page--mobile-banner .home-services,
    body.home-page--mobile-banner .home-why,
    body.home-page--mobile-banner .home-stats,
    body.home-page--mobile-banner .client-slideshow,
    body.home-page--mobile-banner .home-leadership,
    body.home-page--mobile-banner .home-project-cta,
    body.home-page--mobile-banner .home-comments,
    body.home-page--mobile-banner .site-footer,
    body.home-page--mobile-banner .ai-site-footer {
        position: relative;
        z-index: 2;
    }
}

/* Services zoom-in (legacy) */
body.home-page--services-zoom-reveal {
    overflow: hidden;
}

body.home-page--services-zoom-reveal .hero-banner__media,
body.home-page--services-zoom-reveal .hero-banner__shade {
    display: none;
}

body.home-page--services-zoom-reveal .home-services.is-zoom-revealing {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #ffffff;
    transform: scale(0.78);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

body.home-page--services-zoom-reveal .home-services.is-zoom-revealing.is-zoom-reveal-active {
    transform: scale(1);
}

body.home-page--services-zoom-reveal.home-page--scrollable .site-main--fullscreen {
    overflow: hidden;
}

.home-page .site-main--fullscreen {
    padding: 0;
    margin: 0;
}

/* —— Services (after banner) —— */
.home-services {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    scroll-margin-top: 0;
    padding:
        max(64px, calc(52px + env(safe-area-inset-top)))
        clamp(20px, 4vw, 48px)
        max(16px, env(safe-area-inset-bottom));
    background: #ffffff;
}

body.home-page--scrollable .home-services {
    scroll-margin-top: max(64px, calc(52px + env(safe-area-inset-top)));
}

.home-services__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: min(1240px, 100%);
    min-height: 0;
    gap: clamp(14px, 2.2vh, 24px);
}

.home-services__heading {
    flex-shrink: 0;
    margin: 0;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(0.75rem, 1.4vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    color: #8a8f98;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    flex: 1;
    width: 100%;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.home-services__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.5vh, 16px);
    min-height: 0;
    height: 100%;
    --scroll-shift: 0px;
    opacity: 0;
    transform: translateY(calc(28px + var(--scroll-shift)));
    transition:
        opacity 0.7s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--card-delay, 0ms);
}

.home-services__media {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-radius: clamp(12px, 1.5vw, 18px);
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.home-services__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-services__card.is-inview {
    opacity: 1;
    transform: translateY(var(--scroll-shift));
}

.home-services__card:hover .home-services__media {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow:
        0 16px 36px rgba(37, 99, 235, 0.16),
        0 2px 0 rgba(255, 255, 255, 0.85) inset;
}

.home-services__card:hover .home-services__image {
    transform: scale(1.045);
}

.home-services__card:hover .home-services__title {
    color: #1d4ed8;
}

.home-services__title {
    flex-shrink: 0;
    margin: 0;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.home-services__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
    width: 100%;
    margin-top: clamp(32px, 5vh, 56px);
    padding-top: 0;
}

.home-services__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(0.82rem, 1.6vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.home-services__btn--primary {
    color: #fff;
    background: #0a0a0a;
    border: 1px solid #0a0a0a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.home-services__btn--primary:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.home-services__btn--secondary {
    color: #0a0a0a;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.home-services__btn--secondary:hover {
    transform: translateY(-2px);
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.32);
}

.home-services__btn:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 3px;
}

/* —— Live stats (between services and why choose) —— */
.home-stats {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: clamp(36px, 5vw, 52px) clamp(20px, 4vw, 48px);
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 18px);
    width: min(1240px, 100%);
    margin: 0 auto;
}

.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 104px;
    padding: 18px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #f8f9fb;
    text-align: center;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.home-stats__item.is-inview {
    animation: home-stats-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-stats__item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.home-stats__item--highlight {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a2238 100%);
    border-color: rgba(0, 0, 0, 0.2);
}

.home-stats__item--highlight .home-stats__value {
    color: #ffffff;
}

.home-stats__item--highlight .home-stats__label {
    color: rgba(255, 255, 255, 0.72);
}

.home-stats__value {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0a0a0a;
    font-variant-numeric: tabular-nums;
}

.home-stats__label {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.68rem, 1.1vw, 0.78rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.52);
    max-width: 12ch;
}

@keyframes home-stats-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .home-stats__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stats__item {
        min-height: 92px;
        padding: 16px 12px;
    }

    .home-stats__label {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-stats__item.is-inview {
        animation: none;
    }
}

/* —— Why choose (after services) —— */
.home-why {
    position: relative;
    z-index: 2;
    background: #000000;
    color: #ffffff;
    padding: clamp(64px, 10vh, 112px) clamp(20px, 4vw, 48px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-why__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.home-why__title {
    margin: 0 0 clamp(20px, 3vh, 28px);
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #ffffff;
}

.home-why__text {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vh, 22px);
}

.home-why__text p {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.home-why__media {
    width: 100%;
    border-radius: clamp(14px, 2vw, 20px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.home-why__video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .home-why__inner {
        grid-template-columns: 1fr;
    }

    .home-why__media {
        order: 2;
    }

    .home-why__copy {
        order: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-why__video {
        object-fit: contain;
    }
}

/* —— Clients slideshow (directly after Why Choose) —— */
.home-page .client-slideshow.client-slideshow--light {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* —— Leadership (homepage) —— */
.home-leadership {
    background: #f7f7f8;
    color: #0a0a0a;
    padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 48px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-leadership__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.home-leadership__heading {
    font-family: "Sora", "Inter", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.home-leadership__sub {
    margin: 10px 0 clamp(32px, 5vw, 48px);
    color: rgba(0, 0, 0, 0.55);
    font-size: 1rem;
}

.home-leadership__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: clamp(20px, 3vw, 28px);
    text-align: center;
}

.home-leadership__card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 22px 18px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.home-leadership__photo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.home-leadership__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-leadership__name {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.home-leadership__role {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
    .home-services {
        min-height: 100dvh;
    }

    .home-services__inner {
        flex: 0 0 auto;
        min-height: min(100%, 100dvh);
        padding-bottom: 8px;
    }

    .home-services__grid {
        grid-template-columns: 1fr;
        flex: 0 0 auto;
        max-width: 360px;
        margin-inline: auto;
        gap: 20px;
    }

    .home-services__card {
        height: auto;
    }

    .home-services__media {
        flex: none;
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }

    .home-services__actions {
        margin-top: clamp(28px, 6vw, 44px);
    }
}

@media (hover: none) {
    .home-services__card:hover .home-services__media {
        transform: none;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.06),
            0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }

    .home-services__card:hover .home-services__image {
        transform: none;
    }

    .home-services__card:hover .home-services__title {
        color: #0a0a0a;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page--services-zoom-reveal .home-services.is-zoom-revealing {
        transition: none;
        transform: none;
    }

    .home-services__card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-services__media,
    .home-services__image {
        transition: none;
    }
}

@media (max-height: 640px) and (min-width: 769px) {
    .home-services__inner {
        gap: 10px;
    }

    .home-services__actions {
        margin-top: clamp(24px, 4vh, 40px);
    }

    .home-services__btn {
        min-height: 44px;
        padding: 10px 24px;
    }
}

@media (max-width: 520px) {
    .home-services__actions {
        flex-direction: column;
        width: min(100%, 320px);
    }

    .home-services__btn {
        width: 100%;
    }

    .home-services__heading {
        letter-spacing: 0.32em;
        text-indent: 0.32em;
    }
}

/* —— Project CTA (after services) —— */
.home-project-cta {
    background: #000000;
    color: #ffffff;
    padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 40px);
    text-align: center;
}

.home-project-cta__inner {
    width: min(980px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.6vh, 24px);
}

.home-project-cta__title {
    margin: 0;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.home-project-cta__divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
}

.home-project-cta__line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #ffffff 52%, rgba(255, 255, 255, 0.25));
    border-radius: 999px;
}

.home-project-cta__chevron {
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.home-project-cta__text {
    margin: 0;
    max-width: 760px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1rem, 2vw, 1.9rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.home-project-cta__button {
    margin-top: clamp(6px, 1vh, 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 14px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.home-project-cta__button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(255, 255, 255, 0.12);
}

.home-project-cta__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* —— Comments (white, above footer) —— */
.home-comments {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: #0a0a0a;
    padding: clamp(56px, 10vh, 96px) clamp(20px, 4vw, 48px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-comments__marquee-section {
    margin-bottom: clamp(40px, 6vh, 56px);
}

.home-comments__marquee-heading {
    margin: 0 0 clamp(28px, 4vw, 40px);
    padding: 0 clamp(20px, 4vw, 48px);
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.home-comments__marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );
}

.home-comments__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: home-comments-scroll-left 22s linear infinite;
}

.home-comments__marquee:hover .home-comments__track {
    animation-play-state: paused;
}

@keyframes home-comments-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.home-comments__strip {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    gap: clamp(20px, 3vw, 28px);
    padding-inline: clamp(12px, 2vw, 20px);
}

.home-comments__card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: clamp(300px, 34vw, 400px);
    min-height: 200px;
    padding: clamp(22px, 3vw, 28px);
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.home-comments__quote {
    margin: 0;
    flex: 1;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 500;
    font-style: normal;
    line-height: 1.55;
    color: #1a1a1a;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.home-comments__flash.is-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.home-comments__flash.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.home-comments__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: "Sora", "Inter", system-ui, sans-serif;
}

.home-comments__meta strong {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-comments__company {
    font-size: 0.85rem;
    color: #6b7280;
    letter-spacing: 0.04em;
}

.home-comments__inner {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.home-comments__empty {
    margin: 0;
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    padding: 48px 20px;
}

.home-comments__form-wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: clamp(32px, 5vh, 48px);
}

.home-comments__heading {
    margin: 0 0 8px;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
}

.home-comments__sub {
    margin: 0 0 24px;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
}

.home-comments__flash {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
}

.home-comments__form {
    display: grid;
    gap: 18px;
}

.home-comments__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-comments__field span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
}

.home-comments__field input,
.home-comments__field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    color: #0a0a0a;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-comments__field input:focus,
.home-comments__field textarea:focus {
    outline: none;
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.home-comments__field textarea {
    resize: vertical;
    min-height: 120px;
}

.home-comments__submit {
    margin-top: 8px;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    background: #0a0a0a;
    color: #fff;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.home-comments__submit:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
}

.home-comments__submit:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .home-comments__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1100px;
        margin-inline: auto;
        padding-inline: clamp(20px, 4vw, 48px);
        gap: 20px;
    }

    .home-comments__strip[aria-hidden="true"] {
        display: none;
    }

    .home-comments__marquee {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }
}

/* Footer (shared with about/contact via includes/site-footer.php) */
.home-page .ai-site-footer {
    position: relative;
    z-index: 2;
}

.home-page .ai-site-footer .footer-social-container {
    height: auto;
    min-height: 0;
    padding: clamp(48px, 8vh, 72px) 0 clamp(28px, 4vh, 40px);
}

.home-page .footer-social-title {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
}
