body.home-page main section#services.services-photo {
    --services-gap: clamp(6px, .6vw, 10px);
    --services-card-width: clamp(196px, 20vw, 292px);
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: clamp(48px, 4.6vw, 70px) 0 clamp(54px, 5.6vw, 84px) !important;
    overflow: hidden !important;
    color: #f5f5ef !important;
    background: #050917 !important;
    scroll-margin-top: 6.5rem;
}

body.home-page main section#services.services-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .72;
    background:
        radial-gradient(circle at 8% 12%, rgba(46, 214, 197, .1), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(255, 101, 151, .08), transparent 27%),
        linear-gradient(180deg, rgba(255,255,255,.018), transparent 32%);
    pointer-events: none;
}

body.home-page main section#services.services-photo > .shell {
    position: relative !important;
    z-index: 1 !important;
    width: min(calc(100% - 48px), 1240px) !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.home-page main section#services.services-photo .services-intro {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto clamp(18px, 2.2vw, 28px) !important;
    padding: 0 !important;
    text-align: center !important;
}

body.home-page main section#services.services-photo .services-intro h2 {
    max-width: 820px !important;
    margin: 0 auto !important;
    color: #f5f5ef !important;
    font-family: "Instrument Sans", sans-serif !important;
    font-size: clamp(42px, 4.1vw, 58px) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.06 !important;
    text-align: center !important;
    text-wrap: balance;
}

body.home-page main section#services.services-photo .services-intro p {
    max-width: 620px !important;
    margin: 10px auto 0 !important;
    color: #9da9ae !important;
    font-family: "Inter", sans-serif !important;
    font-size: clamp(14px, 1.2vw, 17px) !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.services-community {
    display: grid;
    gap: var(--services-gap);
}

.services-community__row {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.services-community__track,
.services-community__set {
    display: flex;
    width: max-content;
    flex: none;
}

.services-community__track {
    will-change: transform;
}

.services-community__set {
    gap: var(--services-gap);
    padding-right: var(--services-gap);
}

.services-community__row--forward .services-community__track {
    animation: services-community-forward 58s linear infinite;
}

.services-community__row--reverse .services-community__track {
    animation: services-community-reverse 62s linear infinite;
}

.services-community__row:hover .services-community__track,
.services-community__row:focus-within .services-community__track {
    animation-play-state: paused;
}

@keyframes services-community-forward {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes services-community-reverse {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

.services-community__card {
    position: relative;
    width: var(--services-card-width);
    flex: 0 0 var(--services-card-width);
    margin: 1px 0;
    overflow: hidden;
    border: 1px solid rgba(126, 148, 176, .26);
    border-radius: 8px;
    background: #0b1224;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
    transform: translateZ(0);
    transition: border-color .35s ease, box-shadow .35s ease;
}

/* Echoes the hero showcase window's chrome (border tint + halo) so the hover
   state reads as the same premium surface as the rest of the homepage. */
.services-community__card:hover,
.services-community__card:focus-within {
    border-color: rgba(119, 211, 221, .55);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(105, 212, 217, .28), 0 0 34px rgba(105, 212, 217, .16);
}

.services-community__card > a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.services-community__image,
.services-community__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.services-community__image {
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .45s ease;
}

.services-community__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(3,8,18,.06) 38%, rgba(3,8,18,.86) 100%);
    transition: background-color .35s ease, backdrop-filter .35s ease;
}

.services-community__index {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(5,9,23,.62);
    backdrop-filter: blur(10px);
    font: 700 10px/1 "Inter", sans-serif;
    letter-spacing: .12em;
}

.services-community__label {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: #fff;
    overflow: hidden;
    font: 600 clamp(16px, 1.42vw, 21px)/1.05 "Instrument Sans", sans-serif;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity .25s ease, transform .35s ease;
}

.services-community__details {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2.4vw, 34px);
    color: #071018;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .32s ease, transform .38s cubic-bezier(.2,.75,.2,1);
}

.services-community__kicker {
    margin-bottom: 10px;
    color: #526269;
    font: 750 10px/1 "Inter", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.services-community__details strong {
    width: 100%;
    max-width: 250px;
    overflow: hidden;
    font: 600 clamp(17px, 1.5vw, 22px)/1.05 "Instrument Sans", sans-serif;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.services-community__copy {
    display: -webkit-box;
    max-width: 240px;
    margin-top: 12px;
    overflow: hidden;
    color: #526269;
    font: 450 clamp(11px, .9vw, 13px)/1.45 "Inter", sans-serif;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.services-community__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 11px 17px;
    border-radius: 999px;
    color: #f7f8f3;
    background: #071018;
    font: 700 12px/1 "Inter", sans-serif;
}

.services-community__link b {
    font-size: 16px;
    font-weight: 400;
    transition: transform .25s ease;
}

.services-community__card:hover .services-community__shade,
.services-community__card:focus-within .services-community__shade {
    background: rgba(242, 245, 237, .91);
    backdrop-filter: blur(4px);
}

.services-community__card:hover .services-community__image,
.services-community__card:focus-within .services-community__image {
    transform: scale(1.045);
    filter: saturate(.75) contrast(.92);
}

.services-community__card:hover .services-community__label,
.services-community__card:focus-within .services-community__label,
.services-community__card:hover .services-community__index,
.services-community__card:focus-within .services-community__index {
    opacity: 0;
    transform: translateY(8px);
}

.services-community__card:hover .services-community__details,
.services-community__card:focus-within .services-community__details {
    opacity: 1;
    transform: translateY(0);
}

.services-community__card:hover .services-community__link b,
.services-community__card:focus-within .services-community__link b {
    transform: translateX(3px);
}

@media (max-width: 760px) {
    body.home-page main section#services.services-photo {
        --services-card-width: clamp(184px, 58vw, 248px);
        --services-gap: 8px;
        padding: 44px 0 58px !important;
    }

    body.home-page main section#services.services-photo .services-intro {
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    body.home-page main section#services.services-photo > .shell {
        width: calc(100% - 28px) !important;
    }

    body.home-page main section#services.services-photo .services-intro h2 {
        font-size: clamp(34px, 10vw, 46px) !important;
    }

    .services-community__row--forward .services-community__track { animation-duration: 48s; }
    .services-community__row--reverse .services-community__track { animation-duration: 52s; }

    .services-community__details {
        justify-content: flex-end;
        align-items: flex-start;
        padding: 18px;
        color: #fff;
        text-align: left;
        opacity: 1;
        transform: none;
    }

    .services-community__kicker,
    .services-community__copy,
    .services-community__index,
    .services-community__label {
        display: none;
    }

    .services-community__details strong {
        max-width: 190px;
        font-size: 22px;
    }

    .services-community__link {
        margin-top: 11px;
        padding: 9px 13px;
        color: #071018;
        background: rgba(245,245,239,.94);
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-community__row {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }

    .services-community__track {
        animation: none !important;
    }

    .services-community__set[aria-hidden="true"] {
        display: none;
    }

    .services-community__image,
    .services-community__label,
    .services-community__details,
    .services-community__link b {
        transition: none;
    }
}
