.service-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0 25px;
}
.work-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.work-card:hover .work-photo img { transform: scale(1.035); }
.work-photo .project-open {
    background: var(--cream);
    color: var(--ink);
    border-color: transparent;
}
.service-hero.has-media {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 6%;
}
.media-gallery { min-width: 0; width: 100%; }
.media-gallery figure { margin: 0; }
.gallery-main-image {
    width: 100%;
    height: clamp(260px, 38vw, 560px);
    object-fit: contain;
    border-radius: 15px;
    background: #ffffff08;
}
.media-gallery figcaption {
    font-size: 12px;
    opacity: .7;
    margin-top: 14px;
}
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    font-size: 12px;
}
.gallery-arrow {
    border: 1px solid var(--line);
    color: var(--cream);
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.gallery-arrow:hover { background: var(--lime); color: var(--ink); }
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px;
    margin-top: 12px;
}
.gallery-thumbnails button {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 3px;
    flex: 0 0 82px;
}
.gallery-thumbnails button.selected { border-color: var(--lime); }
.gallery-thumbnails img {
    width: 72px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
}
.project-gallery { margin-top: 60px; }
.about-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 40px;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.project-service-links { display: flex; flex-wrap: wrap; gap: 16px 30px; }
.hero-description, .split-heading p, .timeline p, .values-grid p, .office-grid p,
.project-cta > p:not(.eyebrow), .footer-brand p { white-space: pre-line; }
@media(max-width: 850px) {
    .service-hero.has-media { grid-template-columns: minmax(0,1fr); gap: 40px; }
    .service-hero.has-media .media-gallery { display: block; }
}
@media(max-width: 560px) {
    .service-card-image { height: 190px; }
    .project-gallery { margin-top: 40px; }
    .gallery-main-image { height: 300px; }
}
.client-strip { flex-wrap: wrap; }
.hero h1, .service-card h3, .team-member h3, .work-caption h3 { overflow-wrap: anywhere; }
.lead, .offering p, .work-caption p { white-space: pre-line; }

/* Progressive image loading: ordinary images remain visible when JavaScript is unavailable. */
.loading-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: var(--image-ratio, 8 / 5);
    overflow: hidden;
    isolation: isolate;
}
.loading-image > .content-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit, cover);
    opacity: 1;
    transition: opacity .2s ease;
}
.image-loading-placeholder,
.image-loading-error {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.has-image-loading [data-image-state="pending"] > .content-image { opacity: 0; }
.has-image-loading [data-image-state="pending"] > .image-loading-placeholder {
    display: flex;
    background: linear-gradient(110deg, #bff74705 20%, #bff74712 45%, #bff74705 70%);
    background-size: 220% 100%;
    animation: trending-image-shimmer 2s ease-in-out infinite;
}
.image-loading-mark {
    display: block;
    width: 40px;
    height: 48px;
    background: url('/images/brand/trending-tree.png') center / contain no-repeat;
    flex: 0 0 auto;
}
.image-loading-placeholder > .image-loading-mark { animation: trending-loader-turn 2.6s ease-in-out infinite; }
.image-loading-orbit {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 1px dashed #bff74755;
    border-radius: 50%;
    animation: trending-loader-orbit 9s linear infinite;
}
.has-image-loading [data-image-state="error"] > .content-image { display: none; }
.has-image-loading [data-image-state="error"] > .image-loading-error {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #bff74708;
    color: inherit;
}
.image-error-text { font-size: 10px; opacity: .65; }
.loading-image-compact .image-loading-mark { width: 15px; height: 20px; }
.loading-image-compact .image-loading-orbit { width: 28px; height: 28px; }
.loading-image-compact .image-error-text { display: none; }
.loading-image-compact .image-loading-placeholder { background: transparent !important; }
.loading-image.brand-image { width: 148px; height: 41px; }
.loading-image.client-logo-image { width: 90px; height: 45px; flex: 0 0 90px; }
.loading-image.work-card-image,
.loading-image.team-photo { width: 100%; height: 100%; }
.loading-image.gallery-thumbnail-image { width: 72px; height: 55px; }
.work-photo .loading-image { transition: transform .45s; }
.work-card:hover .work-photo .loading-image { transform: scale(1.035); }
.work-card:hover .work-photo .content-image { transform: none; }
.loading-image.hero-mark { overflow: visible; }
.loading-image.hero-mark .image-loading-placeholder,
.loading-image.hero-mark .image-loading-error { border-radius: 50%; }
.loading-image.hero-mark .content-image { object-fit: contain; }

.navigation-loading[hidden] { display: none; }
.navigation-loading {
    position: fixed;
    inset: 0 0 auto;
    z-index: 190;
    height: 3px;
    pointer-events: none;
}
.navigation-loading-progress {
    display: block;
    height: 100%;
    width: 38%;
    background: var(--lime);
    box-shadow: 0 0 16px #bff74770;
    animation: trending-navigation-progress 1.2s ease-in-out infinite;
}
.navigation-loading-brand {
    position: absolute;
    right: 24px;
    top: 115px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: #0c0c0cf2;
    color: var(--cream);
    padding: 9px 14px 9px 10px;
    font-size: 8px;
    letter-spacing: .13em;
}
.navigation-loading-brand .image-loading-mark {
    width: 18px;
    height: 22px;
    animation: trending-loader-turn 2.6s ease-in-out infinite;
}
@keyframes trending-image-shimmer { to { background-position: -220% 0; } }
@keyframes trending-loader-turn { 0%,100% { transform: rotate(-10deg) scale(.95); } 50% { transform: rotate(15deg) scale(1.05); } }
@keyframes trending-loader-orbit { to { transform: rotate(360deg); } }
@keyframes trending-navigation-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(365%); } }
@media(max-width: 850px) {
    .navigation-loading-brand { top: 91px; }
    .loading-image.client-logo-image { width: 75px; flex-basis: 75px; height: 40px; }
}
@media(max-width: 560px) {
    .loading-image.brand-image { width: 130px; height: 36px; }
    .loading-image.client-logo-image { width: 80px; height: 36px; }
    .navigation-loading-brand { right: 16px; font-size: 7px; padding: 7px 10px; }
}
@media(prefers-reduced-motion: reduce) {
    .image-loading-placeholder,
    .image-loading-mark,
    .image-loading-orbit,
    .navigation-loading-progress { animation: none !important; }
    .navigation-loading-progress { width: 100%; }
    .loading-image > .content-image { transition: none; }
}

.loading-image .image-error-text{font:400 10px/1.4 Inter,sans-serif;opacity:.65}
