.site{--c-bg:#FFFCF7;--c-surface:#FBEFE3;--c-text:#2A1533;--c-muted:#5B4763;--c-border:#F0DCCB;--c-primary:#7B2D8E;--c-on-primary:#FFFFFF;--c-accent:#FFB627;--c-on-accent:#2A1533;--c-dark:#2A1533;--c-on-dark:#FFFCF7;--f-heading:'Poppins', system-ui, sans-serif;--f-body:'Poppins', system-ui, sans-serif;--w-heading:700;--r-sm:10px;--r-md:18px;--r-lg:28px;--r-btn:999px;--m-dur:0.85s;--m-dist:28px;--m-ease:cubic-bezier(0.2, 0.9, 0.25, 1.15);--m-lift:-5px;--m-zoom:1.07;--m-stagger:120ms}
/*
 * Customer website styles. Shared by the published site and the editor canvas.
 * Everything is driven by theme custom properties set on .site (see themes/css.ts).
 * Mobile first; no framework; no external dependencies.
 */

.site {
    --space-section: clamp(3.5rem, 8vw, 6.5rem);
    --container: 72rem;
    --container-narrow: 46rem;
    --gutter: clamp(1.25rem, 4vw, 2rem);

    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site *,
.site *::before,
.site *::after {
    box-sizing: border-box;
}

.site :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) {
    margin: 0;
}

.site :where(ul[role='list'], ol[role='list']) {
    list-style: none;
    padding: 0;
}

.site img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Zero specificity so component styles (buttons, nav) always win. */
:where(.site) a {
    color: inherit;
    text-underline-offset: 0.18em;
}

.site :focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    background: var(--c-dark);
    color: var(--c-on-dark);
}

.skip-link:focus {
    top: 1rem;
}

/* ------------------------------------------------------------------ layout */

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.s {
    position: relative;
    padding-block: var(--space-section);
}

.s:not([class*='tone-']) + .s:not([class*='tone-']) {
    padding-top: 0;
}

.tone-surface {
    background: var(--c-surface);
}

.tone-dark {
    background: var(--c-dark);
    color: var(--c-on-dark);
    --c-text: var(--c-on-dark);
    --c-muted: var(--c-on-dark);
    --c-border: color-mix(in srgb, var(--c-on-dark) 22%, transparent);
}

.tone-primary {
    background: var(--c-primary);
    color: var(--c-on-primary);
    --c-text: var(--c-on-primary);
    --c-muted: var(--c-on-primary);
}

/* -------------------------------------------------------------- typography */

.heading {
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin-bottom: 1rem;
}

.heading--display {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.lead {
    max-width: 40rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--c-muted);
}

.rt > * + * {
    margin-top: 1rem;
}

.rt :where(ul, ol) {
    padding-left: 1.25rem;
}

.rt li + li {
    margin-top: 0.35rem;
}

.rt a {
    color: var(--c-primary);
    font-weight: 600;
}

.tone-dark .rt a,
.tone-primary .rt a {
    color: inherit;
}

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

.notice {
    padding: 1.25rem;
    border: 2px dashed var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-muted);
}

.section-head {
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------------- buttons */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--r-btn);
    font: 600 1rem/1.2 var(--f-body);
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.06);
}

.btn--primary {
    background: var(--c-primary);
    color: var(--c-on-primary);
}

.btn--accent {
    background: var(--c-accent);
    color: var(--c-on-accent);
}

.btn--secondary {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}

/* ------------------------------------------------------------------ images */

.img,
.img-placeholder {
    width: 100%;
    border-radius: var(--r-lg);
}

.img {
    object-fit: cover;
}

.img-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border: 1.5px dashed color-mix(in srgb, var(--c-primary) 32%, transparent);
    background:
        radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--c-accent) 38%, transparent), transparent 55%),
        radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--c-primary) 30%, transparent), transparent 60%),
        color-mix(in srgb, var(--c-primary) 7%, var(--c-surface));
    background-size: 140% 140%;
    color: var(--c-primary);
    animation: site-drift 14s ease-in-out infinite alternate;
}

.img-placeholder__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.3);
}

@keyframes site-drift {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

/*
 * Published sites never show placeholders: an empty image is removed and
 * its layout closes up (e.g. a split hero becomes a full-width text hero).
 */
.site[data-mode='public'] :is(.hero-media, .media-text__media, .hero-cover-media, .gallery > li):has(> .img-placeholder, > figure > .img-placeholder) {
    display: none;
}

/* A photo-less hero still gets a designed, theme-tinted backdrop. */
.site[data-mode='public'] .s-hero--split:has(.img-placeholder),
.s-hero--centered {
    background:
        radial-gradient(60rem 24rem at 90% 0%, color-mix(in srgb, var(--c-accent) 24%, transparent), transparent 70%),
        var(--c-bg);
}

.site[data-mode='public'] .hero-layout:has(.img-placeholder),
.site[data-mode='public'] .media-text:has(.img-placeholder) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 52rem;
}

/* ------------------------------------------------------------------ header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-right: auto;
    text-decoration: none;
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: 1.2rem;
}

.brand__name {
    line-height: 1.2;
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.05rem;
    }
}

/* `.site-header` beats `.site img { height: auto }`, so the size applies. */
.site-header .brand__logo {
    width: auto;
    max-width: 14rem;
    height: var(--logo-h, 2.5rem);
    object-fit: contain;
}

.site-header[data-logo-size='small'] {
    --logo-h: 2rem;
}

.site-header[data-logo-size='large'] {
    --logo-h: 3.25rem;
}

.site-header .menu-desktop ul,
.menu-mobile__panel ul {
    display: flex;
    gap: 1.75rem;
}

.site-header .menu-desktop a,
.menu-mobile__panel a:not(.btn) {
    font-weight: 500;
    text-decoration: none;
    color: var(--c-muted);
}

.site-header a[aria-current='page'],
.site-header .menu-desktop a:hover {
    color: var(--c-text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.site-header__cta .btn {
    min-height: 2.6rem;
    padding: 0.5rem 1.1rem;
}

.menu-desktop,
.site-header__cta {
    display: none;
}

.menu-mobile summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-sm);
    list-style: none;
    cursor: pointer;
}

.menu-mobile summary::-webkit-details-marker {
    display: none;
}

.menu-mobile__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 20px 30px -20px rgb(0 0 0 / 0.25);
}

.menu-mobile__panel ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.menu-mobile__panel li a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-border);
}

.site-header--centered .site-header__inner {
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .menu-desktop,
    .site-header__cta {
        display: block;
    }

    .menu-mobile {
        display: none;
    }

    /* Centred: logo in the middle with the button to its right, menu below. */
    .site-header--centered .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            '. brand cta'
            'menu menu menu';
        align-items: center;
        row-gap: 0;
        column-gap: 1.5rem;
        padding-top: 1.1rem;
    }

    .site-header--centered .brand {
        grid-area: brand;
        flex-direction: column;
        gap: 0.4rem;
        margin-right: 0;
        text-align: center;
    }

    .site-header--centered .site-header__cta {
        grid-area: cta;
        justify-self: end;
    }

    .site-header--centered .menu-desktop {
        grid-area: menu;
        justify-self: stretch;
        margin-top: 0.9rem;
        padding-block: 0.8rem;
        border-top: 1px solid var(--c-border);
    }

    .site-header--centered .menu-desktop ul {
        justify-content: center;
        gap: 2.25rem;
    }
}

/* -------------------------------------------------------------------- hero */

.hero-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.s-hero--centered .hero-text {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

.s-hero--centered .lead {
    margin-inline: auto;
}

.s-hero--centered .btn-row {
    justify-content: center;
}

:is(.s-hero--cover, .s-hero--slideshow, .s-hero--video) {
    display: flex;
    align-items: flex-end;
    min-height: min(80vh, 44rem);
    overflow: hidden;
}

.hero-cover-media {
    position: absolute;
    inset: 0;
}

.hero-cover-media .img,
.hero-cover-media .img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

/* While editing, keep the "Add a photo" prompt clear of the headline. */
.hero-cover-media .img-placeholder {
    place-items: start end;
    padding: 1.25rem;
}

.hero-cover-media .img-placeholder__badge {
    position: relative;
    z-index: 1;
}

.hero-cover-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, color-mix(in srgb, var(--c-dark) 92%, transparent) 15%, color-mix(in srgb, var(--c-dark) 35%, transparent));
}

:is(.s-hero--cover, .s-hero--slideshow, .s-hero--video) .container {
    position: relative;
}

:is(.s-hero--cover, .s-hero--slideshow, .s-hero--video) .lead {
    color: var(--c-on-dark);
    opacity: 0.92;
}

@media (min-width: 900px) {
    .s-hero--split .hero-layout {
        grid-template-columns: 1.05fr 1fr;
    }

    .s-hero--split .hero-media .img,
    .s-hero--split .hero-media .img-placeholder {
        aspect-ratio: 4 / 5;
    }
}

/* Slideshow: photos crossfade behind the text (site.js moves them on). */
.hero-slides .hero-slides__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slides .hero-slides__slide.is-active {
    opacity: 1;
}

.hero-slides__controls {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-slides__controls[hidden] {
    display: none;
}

.hero-slides__dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
    transition:
        background 0.2s ease,
        width 0.3s var(--m-ease, ease-out);
}

.hero-slides__dot[aria-current='true'] {
    width: 1.4rem;
    background: #fff;
}

/* Pause / play: two bars, or a triangle once paused. */
.hero-slides__pause,
.hero-video__pause {
    position: relative;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.45);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.hero-slides__pause::before,
.hero-video__pause::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.6rem;
    height: 0.7rem;
    border-inline: 0.2rem solid currentColor;
}

.hero-slides__pause[aria-pressed='true']::before,
.hero-video__pause[aria-pressed='true']::before {
    width: 0;
    height: 0;
    margin-left: calc(50% - 0.2rem);
    border-block: 0.4rem solid transparent;
    border-inline: 0.65rem solid currentColor;
    border-inline-end: 0;
}

.hero-video__pause {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 1.25rem;
}

/* Background video: covers the hero; fades in over the poster once loaded. */
.hero-video {
    container-type: size;
    overflow: hidden;
}

.hero-video__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    border: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-video.is-playing .hero-video__frame {
    opacity: 1;
}

/* While editing: a note about photos and video that only show when published. */
.hero-slides__count {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slides .hero-slides__slide,
    .hero-video__frame {
        transition: none;
    }
}

/* -------------------------------------------------------------- media-text */

.media-text {
    display: grid;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .media-text {
        grid-template-columns: 1fr 1fr;
    }

    .s-media-text--image-right .media-text__media {
        order: 2;
    }
}

/* ------------------------------------------------------------------- video */

.video-intro {
    max-width: 46rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.s-video--wide :is(.video, .video-intro) {
    max-width: 64rem;
    margin-inline: auto;
}

.video-split {
    display: grid;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .video-split {
        grid-template-columns: 2fr 3fr;
    }
}

.video {
    margin: 0;
}

.video__frame {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--c-text) 88%, var(--c-primary));
    color: var(--c-on-primary);
}

.video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Beats `.site img { height: auto }`; cover also crops YouTube's letterboxed stills. */
.video .video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video__play {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(3.5rem, 8vw, 4.75rem);
    aspect-ratio: 1;
    padding-left: 0.2rem;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.55);
    transition: transform 0.25s var(--m-ease, ease-out);
}

.video__frame:hover .video__play,
.video__frame:focus-visible .video__play {
    transform: scale(1.06);
}

.video__frame--empty {
    border: 1.5px dashed color-mix(in srgb, var(--c-primary) 32%, transparent);
    background: color-mix(in srgb, var(--c-primary) 7%, var(--c-surface));
    color: var(--c-primary);
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

.video figcaption {
    margin-top: 0.75rem;
    color: var(--c-muted);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------- cards */

.cards {
    display: grid;
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.75rem;
    border-radius: var(--r-lg);
    background: var(--c-surface);
}

.card__title {
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: 1.25rem;
    line-height: 1.25;
}

.card__body {
    color: var(--c-muted);
}

.card .btn {
    align-self: flex-start;
    margin-top: auto;
    min-height: 2.6rem;
    padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
    .s-cards--grid-2 .cards,
    .s-cards--grid-3 .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .s-cards--grid-3 .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.s-cards--list .card {
    background: transparent;
    padding: 1.25rem 0;
    border-radius: 0;
    border-top: 1px solid var(--c-border);
}

/* ------------------------------------------------------------------- stats */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
}

.stat__value {
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1;
}

.stat__label {
    color: var(--c-muted);
    font-weight: 500;
}

.s-stats--band .stat__value {
    color: var(--c-accent);
}

/* ----------------------------------------------------------------- gallery */

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

.gallery__item .img,
.gallery__item .img-placeholder {
    aspect-ratio: 1;
}

.gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--c-muted);
}

@media (min-width: 900px) {
    .s-gallery--grid .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.s-gallery--strip .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
}

.s-gallery--strip .gallery > li {
    flex: 0 0 min(75%, 22rem);
    scroll-snap-align: start;
}

/* ------------------------------------------------------------ testimonials */

.quotes {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .s-testimonials--cards .quotes {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.quote blockquote p {
    font-size: 1.1rem;
}

.s-testimonials--spotlight .quote {
    border: 0;
    padding: 0;
    text-align: center;
    align-items: center;
}

.s-testimonials--spotlight .heading {
    text-align: center;
}

.s-testimonials--spotlight .quote blockquote p {
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.25;
}

.quote__by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.quote__photo {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.quote__name {
    display: block;
    font-weight: 600;
}

.quote__role {
    display: block;
    font-size: 0.9rem;
    color: var(--c-muted);
}

/* --------------------------------------------------------------------- faq */

.faq {
    border-top: 1px solid var(--c-border);
}

.faq__item {
    border-bottom: 1px solid var(--c-border);
}

.faq__item summary,
.faq__item h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--c-primary);
}

.faq__item[open] summary::after {
    content: '−';
}

.faq__item .rt {
    padding-bottom: 1.25rem;
    color: var(--c-muted);
}

.faq__item--open {
    padding-block: 1.25rem;
}

.faq__item--open h3 {
    margin-bottom: 0.5rem;
}

.faq__item--open .rt {
    padding-bottom: 0;
}

/* --------------------------------------------------------------------- cta */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.cta .btn-row {
    margin-top: 0;
}

.s-cta--card .cta {
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--c-surface);
}

.s-cta--band .lead {
    color: inherit;
    opacity: 0.92;
}

/* -------------------------------------------------------------------- form */

.form-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .s-form--side .form-layout {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

.form {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: var(--r-lg);
    background: var(--c-bg);
}

.form__field {
    display: grid;
    gap: 0.4rem;
}

.form__field label {
    font-weight: 600;
}

.form__optional {
    font-weight: 400;
    color: var(--c-muted);
}

.form :where(input:not([type='checkbox']), textarea, select) {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    color: var(--c-text);
    font: inherit;
}

.form :where(input, textarea, select):focus {
    outline: 3px solid color-mix(in srgb, var(--c-primary) 35%, transparent);
    border-color: var(--c-primary);
}

.form__check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form__check input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--c-primary);
}

.form .btn {
    justify-self: start;
}

.form [aria-invalid='true'] {
    border-color: #b42318;
}

.form__error {
    margin: 0;
    color: #b42318;
    font-size: 0.925rem;
    font-weight: 600;
}

.form__status:not([hidden]) {
    margin: 0;
    color: var(--c-muted);
}

.form button[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.form-sent {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--r-lg);
    background: var(--c-bg);
    outline: none;
    animation: form-sent-in 0.5s var(--m-ease, ease-out) both;
}

.form-sent::before {
    content: '✓';
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.form-sent__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-result {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.form-result .heading {
    margin: 0;
    font-size: 1.6rem;
}

@keyframes form-sent-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-sent {
        animation: none;
    }
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ----------------------------------------------------------------- contact */

.contact {
    display: grid;
    gap: 2rem;
}

.contact__details {
    display: grid;
    gap: 1rem;
}

.contact__detail {
    padding: 1.25rem 1.5rem;
    border-radius: var(--r-md);
    background: var(--c-surface);
}

.contact__detail dt {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.contact__detail dd {
    margin-top: 0.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (min-width: 900px) {
    .s-contact--split .contact {
        grid-template-columns: 1fr 1fr;
    }

    .s-contact--cards .contact__details {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
    padding-block: 3.5rem 2rem;
    background: var(--c-dark);
    color: var(--c-on-dark);
}

.site-footer__inner {
    display: grid;
    gap: 2rem;
}

.site-footer__name {
    margin-bottom: 0.5rem;
    font-family: var(--f-heading);
    font-weight: var(--w-heading);
    font-size: 1.25rem;
}

.site-footer__about p:not(.site-footer__name) {
    max-width: 28rem;
    opacity: 0.85;
}

.site-footer__links {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

.site-footer__links a {
    text-decoration: none;
    opacity: 0.9;
}

.site-footer__links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-footer__legal {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--c-on-dark) 20%, transparent);
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (min-width: 900px) {
    .site-footer--columns .site-footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .site-footer--simple .site-footer__inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

/* ------------------------------------------------------------------ motion */
/*
 * Motion is CSS-only and progressive. Timing comes from the theme
 * (--m-dur, --m-dist, --m-ease, --m-lift, --m-zoom, --m-stagger).
 * Scroll reveals use scroll-driven animations where supported; elsewhere
 * content is simply visible. Everything stops for prefers-reduced-motion.
 */

@keyframes site-rise {
    from {
        opacity: 0;
        transform: translateY(var(--m-dist));
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes site-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes site-settle {
    from {
        transform: scale(var(--m-zoom));
    }
    to {
        transform: scale(1);
    }
}

@keyframes site-header-shadow {
    to {
        box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.35);
        background: color-mix(in srgb, var(--c-bg) 97%, transparent);
    }
}

/* Interaction: buttons, cards, photos, links */
.btn {
    transition:
        transform 0.25s var(--m-ease),
        filter 0.2s ease,
        box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(var(--m-lift));
    box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--c-primary) 70%, transparent);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
}

.card,
.quote,
.contact__detail {
    transition:
        transform 0.35s var(--m-ease),
        box-shadow 0.35s ease;
}

.card:hover,
.s-testimonials--cards .quote:hover,
.contact__detail:hover {
    transform: translateY(var(--m-lift));
    box-shadow: 0 22px 40px -28px rgb(0 0 0 / 0.35);
}

.s-cards--list .card:hover {
    transform: translateX(6px);
    box-shadow: none;
}

.gallery__item,
.media-text__media,
.hero-media {
    overflow: hidden;
    border-radius: var(--r-lg);
}

.gallery__item .img,
.media-text__media .img {
    transition: transform 0.8s var(--m-ease);
}

.gallery__item:hover .img,
.media-text__media:hover .img {
    transform: scale(var(--m-zoom));
}

.rt a,
.site-footer__links a,
.contact__detail a {
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

.faq__item summary::after {
    transition: transform 0.3s var(--m-ease);
}

.faq__item[open] summary::after {
    transform: rotate(180deg);
}

/* Hero entrance on page load, staggered */
.s-hero .hero-text > * {
    animation: site-rise var(--m-dur) var(--m-ease) both;
}

.s-hero .hero-text > :nth-child(2) {
    animation-delay: var(--m-stagger);
}

.s-hero .hero-text > :nth-child(3) {
    animation-delay: calc(var(--m-stagger) * 2);
}

.s-hero .hero-text > :nth-child(4) {
    animation-delay: calc(var(--m-stagger) * 3);
}

.s-hero .hero-media {
    animation: site-fade calc(var(--m-dur) * 1.4) ease both;
    animation-delay: var(--m-stagger);
}

.s-hero .hero-media .img,
.hero-cover-media .img {
    animation: site-settle calc(var(--m-dur) * 3) var(--m-ease) both;
}

@supports (interpolate-size: allow-keywords) {
    .faq {
        interpolate-size: allow-keywords;
    }

    .faq__item::details-content {
        height: 0;
        overflow: clip;
        transition:
            height 0.35s var(--m-ease),
            content-visibility 0.35s allow-discrete;
    }

    .faq__item[open]::details-content {
        height: auto;
    }
}

/* Scroll-driven: header shadow and content reveals (no JavaScript) */
@supports (animation-timeline: view()) {
    .site-header {
        animation: site-header-shadow linear both;
        animation-timeline: scroll(root);
        animation-range: 0 120px;
    }

    .s:not(.s-hero) :is(.heading, .lead, .rt, .media-text__media, .media-text__text, .stat, .cta, .form, .contact__detail, .faq__item),
    .s:not(.s-hero) :is(.cards, .gallery, .quotes) > li {
        animation: site-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
    }

    .s :is(.cards, .gallery, .quotes) > li:nth-child(3n + 2) {
        animation-range: entry 5% entry 62%;
    }

    .s :is(.cards, .gallery, .quotes) > li:nth-child(3n + 3) {
        animation-range: entry 10% entry 70%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site *,
    .site *::before,
    .site *::after {
        animation: none !important;
        transition: none !important;
    }
}
