/* Public demo presentation */
body[data-template] .demo-eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.1rem;
    font: 700 .72rem/1.4 system-ui, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.demo-eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    background: var(--accent);
}
body[data-template] #services .card-feature-icon {
    box-sizing: content-box;
    padding: .75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 20%, var(--design-paper));
}
body[data-template] .demo-photo {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: var(--design-radius);
    display: block;
}
body[data-template] .demo-contact-photo {
    position: relative;
    margin: 0 auto 1rem;
}
body[data-template] .demo-contact-photo figcaption {
    position: absolute;
    inset: auto auto 1rem 1rem;
    max-width: calc(100% - 2rem);
    padding: .45rem .75rem;
    border-radius: 4px;
    background: var(--design-paper);
    color: var(--design-ink);
    font: 600 .75rem/1.4 system-ui, sans-serif;
}
body[data-template] #work-images .gallery-item figcaption {
    margin: 0;
    padding: 1rem 1.25rem;
    background: var(--design-surface);
    border-bottom: 2px solid var(--accent);
    color: var(--design-ink);
}
body[data-template] #work-images .gallery-open {
    display: block;
    overflow: hidden;
}
@media (min-width: 900px) {
    body[data-template] #work-images .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

body[data-template] #featured-projects {
    padding-block: clamp(32px, 5vw, 64px);
}
body[data-template] #featured-projects .carousel-stage {
    border-radius: var(--design-radius);
}
body[data-template] #featured-projects .carousel-copy {
    background: var(--design-surface);
}
body[data-template] #featured-projects + #work-images {
    padding-top: clamp(24px, 4vw, 48px);
}

html:has(#work-images .gallery-dialog[open]) {
    overflow: hidden;
}
#work-images .gallery-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: .5rem;
    width: min(1000px, 94vw);
    height: min(760px, 90dvh);
    max-height: 90dvh;
    padding: clamp(8px, 2vw, 18px);
    overflow: hidden;
    border-radius: 12px;
}
#work-images .gallery-dialog .gallery-full-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
}
#work-images .gallery-viewer-caption {
    margin: 0;
    text-align: center;
    font-size: .875rem;
}
#work-images .gallery-viewer-actions {
    justify-content: center;
    gap: .5rem;
}
#work-images .gallery-viewer-actions button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    font-size: 1.4rem;
    line-height: 1;
}

body[data-template] #work-images .gallery-grid {
    align-items: stretch;
}
#work-images .gallery-item {
    display: flex;
    flex-direction: column;
}
#work-images .project-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
#work-images .project-card-copy h3 {
    margin: 0 0 .4rem;
}
#work-images .project-card-copy p {
    margin: 0 0 1rem;
}
#work-images .project-card-copy .button {
    margin-top: auto;
}

.demo-enquiry { scroll-margin-top: 1.5rem; }
.demo-enquiry form { max-width: 760px; }
.demo-enquiry .enquiry-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.demo-enquiry label { display: block; font-weight: 600; }
.demo-enquiry label span { font-weight: 400; }
.demo-enquiry input, .demo-enquiry select, .demo-enquiry textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: .35rem;
}
.demo-enquiry button { margin-top: 1rem; }

body[data-template] .component.hero-compact {
    display: grid;
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    padding: clamp(24px, 3.5vw, 44px);
}
body[data-template] .component.hero-compact:has(> .hero-image) {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}
body[data-template] .hero-compact > .hero-image {
    grid-area: 1 / 2;
    width: 100%;
    height: clamp(130px, 15vw, 210px);
    object-fit: cover;
    border-radius: var(--design-radius);
}
body[data-template] .hero-compact h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    max-width: 25ch;
    margin-bottom: .65rem;
}
body[data-template] .hero-compact .actions { margin-top: 1rem; }
body[data-template] .hero-compact .actions:empty { display: none; }
@media (max-width: 800px) {
    body[data-template] .component.hero-compact:has(> .hero-image) { grid-template-columns: 1fr; }
    body[data-template] .hero-compact > .hero-image { display: none; }
}
