.home-page .home-main {
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 24rem),
        linear-gradient(180deg, var(--color-background), #fff);
}

.home-hero {
    align-items: center;
    background: var(--color-background);
    display: grid;
    min-height: min(640px, 74vh);
    overflow: hidden;
    position: relative;
}

.home-hero__media {
    background: var(--color-background);
    inset: 0;
    overflow: hidden;
    position: absolute;
}

.home-hero__poster,
.home-hero__video,
.home-hero__media-image {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    width: 100%;
}

.home-hero__poster {
    background: var(--color-background);
    z-index: 1;
}

.home-hero__video {
    background: transparent;
    object-fit: cover;
    z-index: 2;
}

.home-hero__media-image {
    z-index: 1;
}

.home-hero__scrim {
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--color-background) 92%, transparent) 0%,
            color-mix(in srgb, var(--color-background) 72%, transparent) 28%,
            color-mix(in srgb, var(--color-background) 18%, transparent) 58%,
            transparent 76%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.home-hero__content {
    display: block;
    padding-block: 5rem;
    padding-inline: 0;
    position: relative;
    width: 100%;
    z-index: 4;
}

.home-hero__container {
    box-sizing: border-box;
    margin-inline: auto;
    max-width: var(--container-wide);
    padding-inline: clamp(1.25rem, 4vw, 1.75rem);
    width: min(100%, var(--container-wide));
}

.home-hero__copy {
    max-width: 34rem;
}

.home-hero__copy .eyebrow,
.home-hero__copy .display-title,
.home-hero__copy .lead {
    color: var(--color-primary-dark);
}

.home-hero__actions {
    display: flex;
}

.home-section-heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.home-text-link {
    color: var(--color-primary-dark);
    font-weight: 820;
    text-decoration: none;
    white-space: nowrap;
}

.home-text-link::after {
    content: " >";
}

.home-text-link:hover,
.home-text-link:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.home-category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.home-category-card {
    border-radius: var(--radius-card);
    color: #fff;
    display: block;
    grid-column: span 3;
    min-height: 17rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.home-category-card--feature {
    grid-column: span 6;
    min-height: 22rem;
}

.home-category-card__image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: var(--category-position, 50% 50%);
    position: absolute;
    transform: scale(1);
    transition: transform 420ms ease;
    width: 100%;
}

.home-category-card__overlay {
    background:
        linear-gradient(180deg, rgba(59, 39, 43, 0.05), rgba(59, 39, 43, 0.82)),
        linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 58%, transparent), transparent 70%);
    inset: 0;
    position: absolute;
}

.home-category-card__content {
    bottom: 0;
    display: grid;
    gap: 0.35rem;
    left: 0;
    padding: 1.25rem;
    position: absolute;
    right: 0;
}

.home-category-card__content strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.12;
}

.home-category-card__content span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
}

.home-category-card__link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 850;
    margin-top: 0.3rem;
}

.home-category-card__link::after {
    content: " >";
}

.home-category-card:hover .home-category-card__image,
.home-category-card:focus-visible .home-category-card__image {
    transform: scale(1.045);
}

.home-preorder {
    background: #fffdfa;
}

.home-preorder__grid {
    align-items: center;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.34fr);
}

.home-preorder__number {
    align-content: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--color-secondary) 22%, transparent), transparent 58%),
        var(--color-cream);
    border: 1px solid color-mix(in srgb, var(--color-border) 62%, var(--color-primary-light));
    border-radius: var(--radius-large);
    box-shadow: 0 18px 36px -22px rgba(20, 16, 14, 0.35);
    color: var(--color-primary-dark);
    display: grid;
    justify-items: center;
    padding: 1.75rem 1.5rem 1.6rem;
    text-align: center;
}

.home-preorder__number span {
    font-family: var(--font-heading);
    font-size: clamp(4.2rem, 8vw, 5.4rem);
    font-weight: 700;
    line-height: 0.86;
}

.home-preorder__number small {
    color: var(--color-primary-dark);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 750;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.home-preorder__copy {
    max-width: 52rem;
}

.home-preorder__copy p:last-child,
.home-delivery__copy p,
.home-corporate p {
    color: var(--color-text-muted);
    font-size: 1.03rem;
}

.home-delivery {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, transparent), rgba(88, 122, 90, 0.08)),
        var(--color-background);
    overflow: hidden;
}

.home-delivery__layout {
    align-items: center;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
}

.home-delivery__visual {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.home-delivery__road {
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 28%, transparent), transparent),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 28%, transparent) 0 2rem, transparent 2rem 3.25rem);
    border-radius: 999px;
    bottom: 2.7rem;
    height: 0.22rem;
    left: 2rem;
    position: absolute;
    right: 2rem;
}

.home-delivery__vehicle {
    overflow: hidden;
    position: relative;
    transform: translateX(-38%);
    width: clamp(28.75rem, 100%, 35rem);
}

.delivery-van {
    display: inline-block;
    position: relative;
}

.home-delivery__van,
.delivery-van__image {
    display: block;
    filter: drop-shadow(0 6px 20px rgba(59, 39, 43, 0.14));
    height: auto;
    max-width: 100%;
    width: 100%;
}

.home-delivery__logo-area,
.delivery-van__branding {
    align-items: center;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    left: 18%;
    pointer-events: none;
    position: absolute;
    top: 34%;
    transform: translate(-50%, -50%);
    width: 12.4%;
}

.home-delivery__logo,
.home-delivery__logo-placeholder,
.delivery-van__logo {
    display: block;
    height: 100%;
    width: 100%;
}

.home-delivery__logo,
.delivery-van__logo {
    object-fit: contain;
}

.home-delivery__logo-placeholder {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 0.12rem dashed var(--color-border);
    border-radius: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    font-size: clamp(0.45rem, 1.1vw, 0.8rem);
    font-weight: 700;
    justify-content: center;
    line-height: 1.1;
    padding: 0.35em;
    text-align: center;
}

.home-delivery.is-in-view .home-delivery__vehicle {
    animation: deliveryDrive 1550ms cubic-bezier(0.16, 0.84, 0.26, 1) forwards;
}

.home-delivery__free {
    background: #fffdfa;
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, var(--color-success));
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark) !important;
    display: inline-flex;
    font-weight: 850;
    margin: 0.6rem 0 1.15rem;
    padding: 0.7rem 0.95rem;
}

.home-corporate__grid {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
}

.home-corporate__points {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* The points became links into the contact form with the matching intent preselected. The card
   look is deliberately unchanged - these only add what an anchor needs on top of it. */
.home-corporate__point {
    background: #fffdfa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
    font-weight: 800;
    padding: 1rem;
    text-decoration: none;
}

.home-corporate__point:hover,
.home-corporate__point:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-subtle);
}

.home-corporate__point:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.home-values__intro {
    margin: 0 auto 3rem;
    max-width: 34rem;
}

.home-values__grid {
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-value-card {
    border-left: 1px solid var(--color-border);
    padding: 2.75rem 1.75rem 0.5rem;
    text-align: center;
}

.home-value-card:first-child {
    border-left: none;
}

/*
 * Four piano keys, pressed left to right as the strip is scrolled into view. The column falls
 * under its own weight, rests at the bottom for a beat, springs back past its rest position and
 * settles - the pause is what makes it read as a key being struck rather than something sliding.
 *
 * Only the inner body moves, so the separator borders that live on the cards stay exactly where
 * they are, and the icon, heading and copy of a column travel together.
 *
 * Transform only - nothing here can shift layout. With 1.18s per key and the 300ms stagger
 * home-value-keys.js hands out, the four-key sequence reads clearly as four distinct presses.
 */
@keyframes homeValueKeyPress {
    0% {
        transform: translateY(0) scaleY(1) scaleX(1);
        /* Falls under its own weight: slow to leave, quick to arrive. */
        animation-timing-function: cubic-bezier(0.4, 0, 0.5, 1);
    }

    28% {
        transform: translateY(var(--key-travel, 20px)) scaleY(0.96) scaleX(1.015);
        animation-timing-function: linear;
    }

    /* Held at the bottom for a beat - the difference between a press and a slide. */
    46% {
        transform: translateY(var(--key-travel, 20px)) scaleY(0.96) scaleX(1.015);
        animation-timing-function: cubic-bezier(0.16, 0.82, 0.24, 1);
    }

    76% {
        transform: translateY(var(--key-rebound, -6px)) scaleY(1.008) scaleX(0.998);
        animation-timing-function: cubic-bezier(0.28, 0, 0.22, 1);
    }

    90% {
        transform: translateY(1.5px) scaleY(1) scaleX(1);
        animation-timing-function: ease-out;
    }

    100% {
        transform: translateY(0) scaleY(1) scaleX(1);
    }
}

.home-values__grid--pressed .home-value-card__body {
    animation: homeValueKeyPress var(--key-duration, 1180ms) both;
    animation-delay: calc(var(--key-index, 0) * var(--key-stagger, 300ms));
    /* A key pivots at its back edge, so the squash reads as weight rather than a wobble. */
    transform-origin: center top;
}

.home-value-card__icon {
    color: var(--color-primary);
    display: inline-flex;
    margin-bottom: 1.35rem;
}

.home-value-card__icon svg {
    fill: none;
    height: 1.7rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    width: 1.7rem;
}

.home-value-card__title {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.home-value-card__text {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 16rem;
}

.home-preorder__number--pulse {
    animation: homePreorderPulse 820ms cubic-bezier(0.22, 0.64, 0.22, 1) 3;
    transform-origin: center;
    will-change: transform, box-shadow;
}

@keyframes homePreorderPulse {
    0%,
    100% {
        box-shadow: 0 18px 36px -22px rgba(20, 16, 14, 0.35);
        transform: scale(1);
    }
    40% {
        box-shadow: 0 30px 58px -24px rgba(20, 16, 14, 0.46);
        transform: scale(1.06);
    }
}

body.public-site.motion-ready .home-category-card.motion-reveal {
    transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

@media (max-width: 575.98px) {
    .home-values__grid--pressed .home-value-card__body {
        --key-travel: 16px;
        --key-rebound: -5px;
    }
}

.home-gallery__grid {
    display: grid;
    /* Same gutter as the Bootstrap "g-4" rows used by the album, occasion and blog grids. */
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.home-gallery__item {
    background: none;
    border: 0;
    border-radius: var(--radius-card);
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}

.home-gallery__item:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/*
 * Album view: the photographs are the content, so each one keeps the shape it was taken in.
 * CSS columns give a balanced masonry without a line of layout JavaScript - the browser fills
 * the shortest column itself, and break-inside keeps a photo whole. "columns: 4 16rem" means
 * as many columns as fit at 16rem or wider, never more than four: four on a wide desktop,
 * three around laptop width, two on a tablet, one on a phone.
 *
 * Scoped to the album page: the home page teaser keeps its uniform 4:3 strip.
 */
.home-gallery__grid--natural {
    column-gap: 1.5rem;
    columns: 4 16rem;
    display: block;
}

.home-gallery__grid--natural .home-gallery__item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    width: 100%;
}

.home-gallery__grid--natural .home-gallery__item img {
    /* Undo the uniform tile: the box now follows the photo instead of cropping it. */
    aspect-ratio: auto;
    height: auto;
    object-fit: fill;
}

@media (max-width: 575.98px) {
    /* Two columns would leave a phone with thumbnails too small to judge a photo by. */
    .home-gallery__grid--natural {
        columns: 1;
    }
}

/* Full-size viewer for an album photo, at whatever size the screen allows. */
.gallery-lightbox {
    align-items: center;
    background: transparent;
    border: 0;
    display: none;
    gap: 0.5rem;
    height: 100%;
    justify-content: center;
    max-height: 100%;
    max-width: 100%;
    padding: clamp(0.75rem, 3vw, 2.5rem);
    width: 100%;
}

.gallery-lightbox[open] {
    display: flex;
}

.gallery-lightbox::backdrop {
    background: rgba(24, 20, 18, 0.82);
}

.gallery-lightbox__figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    min-width: 0;
}

.gallery-lightbox__image {
    border-radius: var(--radius-card);
    display: block;
    height: auto;
    max-height: 82vh;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.gallery-lightbox__caption {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

.gallery-lightbox__control {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.75rem;
    justify-content: center;
    transition: background 160ms ease, transform 160ms ease;
    width: 2.75rem;
}

.gallery-lightbox__control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox__control:active {
    transform: scale(0.94);
}

.gallery-lightbox__control:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.gallery-lightbox__control svg {
    fill: none;
    height: 1.35rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.35rem;
}

.gallery-lightbox__close {
    position: absolute;
    right: clamp(0.75rem, 3vw, 2.5rem);
    top: clamp(0.75rem, 3vw, 2.5rem);
}

@media (max-width: 575.98px) {
    /* Arrows sit under the photo on a narrow screen instead of squeezing its width. */
    .gallery-lightbox {
        align-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .gallery-lightbox__figure {
        flex: 1 0 100%;
        order: 1;
    }

    .gallery-lightbox__nav {
        order: 2;
    }

    .gallery-lightbox__image {
        max-height: 68vh;
    }
}

.home-gallery__item img {
    aspect-ratio: 4 / 3;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
    width: 100%;
}

.home-gallery__item:hover img,
.home-gallery__item:focus-visible img {
    transform: scale(1.035);
}

/* Gallery album tile on /gallery: a cover photo above the album's own title and description. */
.gallery-album-card {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.gallery-album-card__cover {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    display: block;
    margin-bottom: 0.85rem;
    object-fit: cover;
    transition: transform 360ms ease;
    width: 100%;
}

.gallery-album-card:hover .gallery-album-card__cover,
.gallery-album-card:focus-visible .gallery-album-card__cover {
    transform: scale(1.02);
}

.gallery-album-card:hover h2,
.gallery-album-card:focus-visible h2 {
    color: var(--color-primary);
}

/* Blog listing card: cover photo, title, excerpt. */
.blog-post-card {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.blog-post-card__cover {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-card);
    display: block;
    margin-bottom: 0.85rem;
    object-fit: cover;
    transition: transform 360ms ease;
    width: 100%;
}

.blog-post-card:hover .blog-post-card__cover,
.blog-post-card:focus-visible .blog-post-card__cover {
    transform: scale(1.02);
}

.blog-post-card:hover h2,
.blog-post-card:focus-visible h2 {
    color: var(--color-primary);
}

/* Article page: the tenant writes the copy, the storefront owns the typography. */
.blog-article__cover {
    border-radius: var(--radius-card);
    display: block;
    max-height: 26rem;
    object-fit: cover;
    width: 100%;
}

.blog-article__body {
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.blog-article__body h2,
.blog-article__body h3 {
    font-family: var(--font-heading);
    margin: 2rem 0 0.75rem;
}

.blog-article__body p {
    margin-bottom: 1.1rem;
}

.blog-article__body img {
    border-radius: var(--radius-card);
    display: block;
    height: auto;
    margin: 1.5rem 0;
    max-width: 100%;
}

.blog-article__body blockquote {
    border-left: 3px solid var(--color-border);
    color: var(--color-text-muted);
    margin: 1.5rem 0;
    padding-left: 1.1rem;
}

.home-newsletter__panel {
    align-items: center;
    background: #fffdfa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    padding: 2rem;
}

.home-newsletter__form {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

@keyframes deliveryDrive {
    0% {
        transform: translateX(-38%);
    }
    72% {
        transform: translateX(4%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: min(560px, 78vh);
    }

    .home-hero__content {
        padding-block: 4.25rem 2.5rem;
        padding-inline: 0;
    }

    .home-hero__scrim {
        background:
            linear-gradient(180deg,
                color-mix(in srgb, var(--color-background) 78%, transparent) 0%,
                color-mix(in srgb, var(--color-background) 42%, transparent) 38%,
                transparent 72%);
    }

    .home-category-card,
    .home-category-card--feature {
        grid-column: span 6;
        min-height: 18rem;
    }

    .home-preorder__grid,
    .home-delivery__layout,
    .home-corporate__grid,
    .home-newsletter__panel {
        grid-template-columns: 1fr;
    }

    .home-values__grid {
        border-top: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .home-value-card {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: 1.75rem 1rem 0;
    }

    /* Same sequence in the same visual order, with less travel and a little less waiting on a
       smaller screen, where the whole strip is taken in at once. */
    .home-value-card__body {
        --key-duration: 760ms;
        --key-rebound: -4px;
        --key-stagger: 170ms;
        --key-travel: 13px;
    }

    .home-delivery__visual {
        order: -1;
    }

    .home-delivery__vehicle {
        width: min(calc(100% - 1.5rem), 30rem);
    }

    .home-newsletter__form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .home-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .home-category-card,
    .home-category-card--feature {
        grid-column: 1 / -1;
        min-height: 16rem;
    }

    .home-preorder__number {
        aspect-ratio: 1;
        justify-items: center;
        max-width: 16rem;
        text-align: center;
        width: min(100%, 16rem);
    }

    .home-preorder__number span {
        font-size: 4.2rem;
    }

    .home-delivery__vehicle {
        transform: translateX(-18%);
        width: min(calc(100% - 1rem), 22rem);
    }

    .home-delivery.is-in-view .home-delivery__vehicle {
        animation-name: deliveryDriveMobile;
    }

    .home-corporate__points {
        grid-template-columns: 1fr;
    }

    .home-newsletter__panel {
        padding: 1.25rem;
    }
}

@keyframes deliveryDriveMobile {
    0% {
        transform: translateX(-18%);
    }
    72% {
        transform: translateX(3%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-card__image,
    .home-gallery__item img {
        transition: none;
    }

    .home-delivery__vehicle,
    .home-delivery.is-in-view .home-delivery__vehicle {
        animation: none;
        transform: translateX(0);
    }
}
/* Tenant-curated social proof */
.home-social-proof {
    background: color-mix(in srgb, var(--color-background) 88%, var(--color-primary) 12%);
}

.home-testimonials {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.home-testimonial {
    background: var(--color-background);
    border: 1px solid color-mix(in srgb, var(--color-primary) 24%, transparent);
    border-radius: 1rem;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.home-testimonial blockquote {
    color: var(--color-primary-dark);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.home-testimonial figcaption { display: grid; gap: 0.15rem; }
.home-testimonial figcaption span { color: var(--color-text-muted); }
.home-client-logos__grid { align-items: center; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.home-client-logo { align-items: center; display: flex; justify-content: center; min-height: 88px; padding: 0.75rem; width: min(180px, 42vw); }
.home-client-logo img { height: auto; max-height: 72px; max-width: 100%; object-fit: contain; }

/* ---- Services -------------------------------------------------------------------------------
   Discovery cards: a picture, what it is, what it starts at, and the one action that matters -
   asking about it. Nothing here adds to a basket, so the inquiry button is the primary control
   on every card rather than competing with an "add" button. */

.services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    margin-top: 2rem;
}

.services-grid--compact {
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    margin-top: 0.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(20, 16, 14, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.service-card:hover {
    box-shadow: 0 22px 44px -30px rgba(20, 16, 14, 0.45);
    transform: translateY(-2px);
}

/* A featured service is marked by a band, not by a different card - the grid stays even. */
.service-card--featured {
    border-color: rgba(138, 92, 56, 0.35);
    box-shadow: inset 4px 0 0 0 rgba(138, 92, 56, 0.55);
}

.service-card__media {
    display: block;
    line-height: 0;
}

.service-card__media img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.service-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.1rem 1.15rem;
}

.service-card__title {
    font-size: 1.05rem;
    margin: 0;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
}

.service-card__title a:hover,
.service-card__title a:focus-visible {
    text-decoration: underline;
}

.service-card__price {
    font-weight: 700;
    margin: 0;
}

.service-card__price--muted {
    color: #7a6c61;
    font-weight: 600;
}

.service-card__summary {
    color: #5d5149;
    flex: 1 1 auto;
    margin: 0;
}

.service-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.35rem;
}

.services-empty {
    background: #fbf8f5;
    border: 1px solid rgba(20, 16, 14, 0.08);
    border-radius: 14px;
    margin-top: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.service-detail {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 1.5rem;
}

.service-detail__media {
    margin: 0;
}

.service-detail__media img {
    border-radius: 14px;
    height: auto;
    width: 100%;
}

.service-detail__price {
    font-size: 1.1rem;
    font-weight: 700;
}

.service-detail__body {
    white-space: pre-line;
}

.services-related {
    margin-top: 3rem;
}

@media (max-width: 767.98px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
}

.home-corporate__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
/* ---- Homepage statistics ---------------------------------------------------------------------
   Three or four to a row on desktop, dropping to two and then one. The reveal is a class the
   script adds; without JavaScript, or with reduced motion, the cards are simply visible - the
   base state is the finished state, never the hidden one. */

.home-stats__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin-top: 2rem;
}

.home-stat {
    background: #fff;
    border: 1px solid rgba(20, 16, 14, 0.07);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.4rem 1.25rem;
    text-align: center;
}

.home-stat__value {
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.1;
}

.home-stat__label {
    font-weight: 700;
}

.home-stat__description {
    color: #6b5a4c;
    font-size: 0.86rem;
}

/* Only ever applied by the script, so the un-scripted page is already in its final state. */
.home-stat.is-pending {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
}

.home-stat.is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

/* ---- Client logo marquee ----------------------------------------------------------------------
   Two identical groups scroll as one track; translating by exactly one group's width and looping
   leaves no seam. Distance and duration come from the script so the speed is constant regardless
   of how many logos a tenant has. */

.home-client-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    margin-top: 1.5rem;
    overflow: hidden;
}

.home-client-marquee__track {
    display: flex;
    gap: 3rem;
    width: max-content;
}

.home-client-marquee__group {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 3rem;
}

.home-client-marquee.is-running .home-client-marquee__track {
    animation: homeClientMarquee var(--marquee-duration, 40s) linear infinite;
}

.home-client-marquee.is-paused .home-client-marquee__track {
    animation-play-state: paused;
}

@keyframes homeClientMarquee {
    from { transform: translateX(0); }
    /* One group plus one gap - the point at which the second group sits exactly where the first
       started, so the restart is invisible. */
    to { transform: translateX(calc(-1 * var(--marquee-distance, 0px) - 3rem)); }
}

/* Reduced motion, or no JavaScript: a plain wrapping strip. Every logo is still visible. */
.home-client-marquee.is-static,
.home-client-marquee:not(.is-running) {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
}

.home-client-marquee.is-static .home-client-marquee__track,
.home-client-marquee:not(.is-running) .home-client-marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
}

.home-client-marquee.is-static [data-marquee-group][aria-hidden="true"],
.home-client-marquee:not(.is-running) [data-marquee-group][aria-hidden="true"] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-stat.is-pending {
        opacity: 1;
        transform: none;
    }

    .home-client-marquee__track {
        animation: none;
    }
}
