:root {
    --dv-bg: #f7f5f1;
    --dv-surface: #ffffff;
    --dv-ink: #1f1f1c;
    --dv-muted: #6f6d67;
    --dv-line: #d9d5ce;
    --dv-stone: #b7aa99;
    --dv-dark: #20201e;
    --dv-shell: min(92vw, 1380px);
    --dv-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --dv-ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--dv-bg);
    color: var(--dv-ink);
    font-family: var(--dv-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--dv-ink); color: #fff; }

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.site-shell { width: var(--dv-shell); margin-inline: auto; }
.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    transform: translateY(-180%);
    background: #fff;
    color: #111;
    padding: .75rem 1rem;
    border: 1px solid #111;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: absolute;
    inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
    z-index: 40;
    padding: 1.65rem 0;
    color: var(--dv-ink);
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header a, .site-footer a { color: inherit; }
.site-header--transparent { color: #fff; }
.site-header.is-scrolled {
    color: var(--dv-ink);
    position: fixed;
    background: rgba(247,245,241,.9);
    box-shadow: 0 1px 0 rgba(20,20,20,.08);
    padding: .85rem 0;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; min-width: 0; max-width: min(62vw, 260px); }
.brand__name { display: block; max-width: 15rem; font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; overflow-wrap: anywhere; }
.site-header--transparent .brand__name { font-weight: 400; }
.brand__logo { width: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.brand__variant--light { display: none; }
.site-header--transparent:not(.is-scrolled) .brand__variant--dark { display: none; }
.site-header--transparent:not(.is-scrolled) .brand__variant--light,
.site-footer .brand__variant--light { display: block; }

.primary-nav__list, .footer-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.3rem; }
.primary-nav a { position: relative; font-size: .78rem; font-weight: 400; letter-spacing: .035em; }
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -.42rem;
    height: 1px;
    background: currentColor;
    transition: right .25s var(--dv-ease);
}
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; padding: .5rem 0; min-height: 44px; font-size: .78rem; letter-spacing: .035em; cursor: pointer; }

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 35%, #363632, #181817 75%);
    color: #fff;
    overflow: hidden;
}
.hero__image, .contact-band__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__image { object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%); }
.hero__overlay {
    position: absolute;
    inset: 0;
    /* Keep the editable 55% floor for white text; soften only the edge shading. */
    background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 35%, transparent 65%, rgba(0,0,0,.04)), rgba(0,0,0,var(--hero-overlay, .55));
}
.hero__inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 8rem 0;
    text-align: center;
}
.hero__content { width: 100%; max-width: 800px; }
.hero__scroll { position: absolute; z-index: 2; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; min-width: 44px; min-height: 44px; color: #fff; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll-line { height: 1.4rem; width: 1px; background: currentColor; }
.hero__scroll:hover .hero__scroll-line { opacity: .6; }
#home-content { scroll-margin-top: 6rem; }
.eyebrow {
    margin: 0 0 1.2rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--dv-muted);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; flex: 0 0 auto; background: currentColor; opacity: .55; }
.hero h1, .archive-hero h1, .page-hero h1, .single-project h1, .contact-band h2, .studio-section h2 {
    margin: 0;
    font-family: var(--dv-sans);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .92;
}
.hero h1 { margin-inline: auto; max-width: 24ch; font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; }
.hero .eyebrow { justify-content: center; margin-bottom: 2rem; color: #fff; font-weight: 400; letter-spacing: .24em; }
.hero .eyebrow::before { display: none; }
.hero__lead { max-width: 52ch; margin: 2rem auto 0; font-size: clamp(.875rem, 1.15vw, 1rem); line-height: 1.75; text-wrap: pretty; }
.hero__actions .button { width: auto; min-width: 11rem; min-height: 3rem; font-weight: 400; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.hero__side-note { margin: 0; font-size: .625rem; font-weight: 400; letter-spacing: .1em; line-height: 1.8; }

.button {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .75rem 1.4rem;
    border: 1px solid transparent;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .015em;
    transition: transform .22s var(--dv-ease), background-color .22s ease, color .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--dv-dark); color: #fff; }
.button--dark:hover { background: #050505; }
.button--light { background: rgba(255,255,255,.82); border-color: rgba(30,30,30,.18); backdrop-filter: blur(8px); }
.button--light:hover { background: #fff; }
.button--outline-light { color: #fff; border-color: rgba(255,255,255,.58); }
.button--outline-light:hover { background: #fff; color: #1d1d1b; }

.section { padding: clamp(4.8rem, 8vw, 8.5rem) 0; }
.section-heading { margin-bottom: 2.2rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading .eyebrow { margin-bottom: 0; }
.text-link { font-size: .68rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.text-link span { margin-left: .5rem; display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(.25rem); }

.projects-section { background: var(--dv-bg); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.project-grid--home { grid-template-columns: repeat(var(--project-count, 3), minmax(0, 1fr)); gap: 2rem; }
.project-grid--home .project-card:only-child { grid-column: 1 / -1; }
.project-grid--home .project-card:only-child .project-card__media { aspect-ratio: 16 / 9; }
.project-grid--home .project-card__media { aspect-ratio: 4 / 3; }
.project-grid--home .project-card h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.3; }
.project-grid--home .project-card__body { padding-block: 1.3rem; }
.project-grid--archive { row-gap: 4rem; }
.project-card { min-width: 0; }
.project-card__media { display: block; aspect-ratio: 1.48 / 1; overflow: hidden; background: #ddd8cf; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s var(--dv-ease), filter .45s ease; }
.project-card:hover .project-card__media img { transform: scale(1.028); }
.project-card__body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0 .55rem; border-bottom: 1px solid var(--dv-line); }
.project-card h3 { margin: 0; font-family: var(--dv-sans); font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 400; line-height: 1; }
.project-card__meta { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; color: var(--dv-muted); font-size: .61rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.project-card__arrow { font-size: 1.25rem; transition: transform .2s ease; }
.project-card:hover .project-card__arrow { transform: translateX(.35rem); }

.studio-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--dv-surface);
}
.studio-section__media { margin: 0; min-height: 650px; position: relative; overflow: hidden; }
.studio-section__media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.studio-section__content { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: clamp(3rem, 6vw, 7rem); }
.studio-section--text-only { grid-template-columns: 1fr; }
.studio-section--text-only .studio-section__content { width: var(--dv-shell); max-width: 960px; margin-inline: auto; padding: clamp(4rem, 7vw, 7rem) 0; }
.studio-section__copy { max-width: 620px; }
.studio-section h2 { font-size: clamp(2.2rem, 3.5vw, 4rem); line-height: 1.12; text-wrap: balance; }
.studio-section__text { max-width: 56ch; margin: 1.5rem 0 0; color: #4f4e49; font-size: .95rem; line-height: 1.8; }
.studio-section__link { display: inline-block; margin-top: 2rem; }
.studio-quote { margin: 0; padding-top: 1.8rem; border-top: 1px solid var(--dv-line); max-width: 38ch; }
.studio-quote p { margin: 0; font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.6; color: #59564f; }

.services-section { background: var(--dv-bg); border-top: 1px solid var(--dv-line); }
.section-heading--services { margin-bottom: 2rem; }
.services-grid { border-top: 1px solid var(--dv-line); }
.service-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 2.2rem 0; border-bottom: 1px solid var(--dv-line); }
.service-card__number { color: var(--dv-muted); font-size: .72rem; line-height: 2; }
.service-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance; }
.service-card p { margin: 0; max-width: 60ch; color: #55534e; font-size: .9rem; line-height: 1.8; }

.page-intro { background: var(--dv-surface); }
.page-intro__content { max-width: 880px; margin-inline: auto; }
.prose { font-family: var(--dv-sans); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--dv-sans); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.prose h2 { font-size: clamp(2.4rem, 4vw, 4.6rem); }
.prose h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose p { max-width: 72ch; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }
.prose figure { margin: clamp(2rem, 5vw, 5rem) 0; }
.prose .wp-block-gallery { margin-left: 0; margin-right: 0; }

.contact-band {
    position: relative;
    min-height: 390px;
    background: #20201e;
    color: #fff;
    overflow: hidden;
}
.contact-band__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.contact-band:not(.contact-band--with-image) .contact-band__overlay { background: none; }
.contact-band__inner { position: relative; z-index: 1; min-height: 390px; padding: 4.7rem 0; display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.contact-band .button { flex-shrink: 0; }
.contact-band .eyebrow { color: #fff; }
.contact-band h2 { max-width: 760px; font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: 1.1; text-wrap: balance; }
.contact-band__location { margin: .9rem 0 0; color: #fff; font-size: .86rem; }

.archive-hero, .page-hero, .single-project__header { padding: 11rem 0 4.5rem; background: #efebe4; }
.archive-hero h1, .page-hero h1, .single-project h1 { font-size: clamp(3.6rem, 7vw, 7.3rem); }
.page-hero__inner { max-width: 1120px; margin-inline: auto; }
.page-featured { width: min(100%, 1600px); margin-inline: auto; max-height: 760px; overflow: hidden; }
.page-featured img { width: 100%; height: 100%; object-fit: cover; }
.standard-page__content { max-width: 940px; padding-top: 5rem; padding-bottom: 7rem; }

.single-project .single-project__header h1 { line-height: 1; overflow-wrap: anywhere; }
.project-facts { margin: 0; border-top: 1px solid var(--dv-line); }
.project-facts > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--dv-line); }
.project-facts dt { color: var(--dv-muted); font-size: .64rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.project-facts dd { margin: 0; font-family: var(--dv-sans); font-size: 1.05rem; }
/* Only the project opening uses a cover crop; editorial gallery images stay intrinsic. */
.single-project__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 94vh;
    min-height: 94svh;
    padding-top: 10rem;
    overflow: hidden;
    background: var(--dv-dark);
    color: #fff;
}
.single-project__hero .single-project__hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--project-focus-x, 50%) var(--project-focus-y, 50%); }
/* Local scrims protect white navigation and copy while leaving the photo's centre clear. */
.single-project__hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 13rem; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.64), rgba(0,0,0,.56) 7rem, transparent); }
.single-project__hero-content { padding: 4rem 0 max(3rem, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, rgba(0,0,0,.58) 3rem, rgba(0,0,0,.68)); }
.single-project .single-project__hero h1 { max-width: 22ch; font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: 1.04; overflow-wrap: anywhere; text-wrap: balance; }
.single-project__location { margin: 1rem 0 0; max-width: 60ch; font-size: clamp(.9rem, 1.2vw, 1.1rem); line-height: 1.5; overflow-wrap: anywhere; }
.single-project__content > .project-facts { width: 100%; max-width: 760px; margin-inline: auto; }
.site-header--project.is-menu-open { color: #fff; }
.site-header--project.is-menu-open .brand__variant--dark { display: none; }
.site-header--project.is-menu-open .brand__variant--light { display: block; }
.single-project__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.8rem, 5vw, 5rem); padding-top: 5rem; padding-bottom: 7rem; }
.single-project__lead { width: 100%; max-width: 760px; margin: 0 auto; font-family: var(--dv-sans); font-size: clamp(1.65rem, 2.6vw, 2.5rem); line-height: 1.2; }
/* Keep reading widths on text, leaving Gutenberg media the full project shell. */
.single-project .project-prose { min-width: 0; width: 100%; }
.single-project .project-prose :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, pre, .wp-block-table) { max-width: min(100%, 760px); margin-inline: auto; overflow-wrap: anywhere; }
.single-project .project-prose p { max-width: min(100%, 72ch, 760px); }
.single-project .project-prose :where(.wp-block-group, .wp-block-gallery, .wp-block-image, .project-gallery) { width: 100%; max-width: 100%; margin-inline: auto; }
.single-project .project-prose .wp-block-image > a { display: block; }
.single-project .project-prose .project-gallery__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.single-project .project-prose .project-gallery__column { display: grid; min-width: 0; gap: 24px; }
.single-project .project-prose .project-gallery__item { min-width: 0; margin: 0; }
.single-project .project-prose .project-gallery__image { display: block; width: 100%; height: auto; }
.single-project .project-prose .project-gallery figcaption { margin: .65rem 0 0; color: var(--dv-muted); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.single-project .project-prose .project-gallery__caption { text-align: center; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.2rem 0 4rem; border-top: 1px solid var(--dv-line); font-family: var(--dv-sans); font-size: 1.1rem; }
.project-nav > div:last-child { text-align: right; }

.content-entry { padding: 2rem 0; border-bottom: 1px solid var(--dv-line); }
.content-entry h1 { font-family: var(--dv-sans); font-weight: 400; }
.pagination-wrap { margin-top: 3rem; }

.site-footer { background: #1f1f1d; color: rgba(255,255,255,.82); }
.site-footer__grid { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; padding: 4rem 0 2.5rem; }
.site-footer__meta, .site-footer__copyright { margin: .3rem 0 0; color: rgba(255,255,255,.52); font-size: .72rem; }
.footer-nav__list { flex-wrap: wrap; gap: .7rem 1.4rem; }
.footer-nav a, .site-footer a { font-size: .78rem; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

.has-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--dv-ease), transform .7s var(--dv-ease); }
.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.project-grid [data-reveal]:nth-child(2), .services-grid [data-reveal]:nth-child(2) { transition-delay: .06s; }
.project-grid [data-reveal]:nth-child(3), .services-grid [data-reveal]:nth-child(3) { transition-delay: .12s; }
.services-grid [data-reveal]:nth-child(4) { transition-delay: .18s; }

@media (min-width: 1200px) {
    .single-project .single-project__header { padding: 8rem 0 3rem; }
    .single-project .single-project__header h1 { font-size: clamp(3rem, 5.75vw, 6rem); }
}

/* Bridge the compact tablet title to the desktop scale without a size jump. */
@media (min-width: 1025px) and (max-width: 1199px) {
    .single-project .single-project__header h1 { font-size: clamp(3.5rem, calc(7.5vw - 1.3rem), 4.3125rem); }
}

@media (min-width: 681px) and (max-width: 1024px) {
    .single-project .single-project__header h1 { font-size: clamp(3rem, calc(2rem + 2.34375vw), 3.5rem); }
}

@media (max-width: 980px) {
    :root { --dv-shell: min(90vw, 920px); }
    .has-js .primary-nav { position: fixed; inset: 0; padding: 7rem 5vw 3rem; overflow-y: auto; display: flex; flex-direction: column; align-items: center; background: #20201e; color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
    .has-js .primary-nav.is-open { opacity: 1; visibility: visible; }
    .primary-nav__list { flex-direction: column; align-items: center; gap: 1.25rem; margin-block: auto; }
    .primary-nav a { font-size: clamp(1.5rem, 5vw, 2.7rem); font-weight: 400; }
    .has-js .menu-toggle { position: relative; z-index: 2; display: inline-flex; gap: .7rem; align-items: center; }
    .site-header.is-menu-open .menu-toggle { color: #fff; }
    .menu-toggle__icon { width: 1.6rem; height: 1px; background: currentColor; box-shadow: 0 6px 0 currentColor; }
    html:not(.has-js) .site-header { position: relative; color: var(--dv-ink); }
    html:not(.has-js) .site-header__inner { flex-direction: column; }
    html:not(.has-js) .site-header .brand__variant--dark { display: block; }
    html:not(.has-js) .site-header .brand__variant--light { display: none; }
    html:not(.has-js) .primary-nav a { font-size: 1rem; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .studio-section { grid-template-columns: 1fr; }
    .studio-section__media { min-height: min(75vw, 640px); }
    .studio-section__content { padding: 4.5rem 5vw; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__copyright { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --dv-shell: min(88vw, 640px); }
    .site-header { padding: 1.15rem 0; }
    .site-header__inner { gap: 1rem; }
    .brand__name { font-size: .7rem; letter-spacing: .09em; }
    .brand__logo { max-height: 48px; }
    .hero__inner { padding: 7rem 0; gap: 2rem; }
    .hero .eyebrow { margin-bottom: 1.75rem; }
    .hero__lead { margin-top: 1.75rem; }
    .hero__actions { margin-top: 2.25rem; }
    .hero__actions { max-width: 240px; margin-inline: auto; }
    .button { width: 100%; }
    .section { padding: 4.6rem 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .project-grid { grid-template-columns: 1fr; gap: 2.8rem; }
    .project-card__media { aspect-ratio: 1.34 / 1; }
    .studio-section__media { min-height: 80vw; }
    .studio-section__content { padding: 4rem 6vw; }
    .studio-section h2 { font-size: clamp(2rem, 8vw, 3.4rem); }
    .service-card { grid-template-columns: 1.6rem minmax(0, 1fr); gap: .7rem 1rem; padding: 1.8rem 0; }
    .service-card p { grid-column: 2; }
    .contact-band, .contact-band__inner { min-height: 440px; }
    .contact-band__inner { align-items: start; flex-direction: column; justify-content: end; }
    .contact-band h2 { font-size: clamp(2.5rem, 10vw, 3.6rem); }
    .contact-band .button { width: auto; }
    .archive-hero, .page-hero, .single-project__header { padding: 9rem 0 3rem; }
    .single-project .single-project__header { padding: 7rem 0 2.25rem; }
    .single-project .single-project__header h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
    .single-project__hero { min-height: 84vh; min-height: 84svh; padding-top: 8rem; }
    .single-project__hero-content { padding: 3rem 0 max(2rem, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, rgba(0,0,0,.58) 2rem, rgba(0,0,0,.68)); }
    .single-project .single-project__hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
    .single-project__location { margin-top: .75rem; }
    .project-facts > div { grid-template-columns: 1fr; gap: .15rem; }
    .single-project__content { padding-top: 3.5rem; padding-bottom: 5rem; }
    .single-project .project-prose .project-gallery__columns { grid-template-columns: minmax(0, 1fr); }
    .single-project .project-prose .project-gallery__column { display: contents; }
    .single-project .project-prose .project-gallery__item { order: var(--project-image-order); }
    .project-nav { grid-template-columns: 1fr; }
    .project-nav > div:last-child { text-align: left; }
    .site-footer__grid { grid-template-columns: 1fr; align-items: start; }
    .footer-nav__list { flex-direction: column; }
    .site-footer__copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .has-js [data-reveal] { opacity: 1; transform: none; }
    .button:hover, .project-card:hover .project-card__media img { transform: none; }
}

@media (max-width: 600px) {
    .site-header.is-scrolled { top: 0; }
}

@media (max-width: 768px) {
    .hero__image { object-position: var(--hero-focus-mobile-x, 50%) var(--hero-focus-mobile-y, 50%); }
    .project-grid--home { grid-template-columns: 1fr; }
    .contact-band__inner { align-items: start; flex-direction: column; justify-content: center; }
}

/* Reserve space for the header and Explorar on shorter phone viewports. */
@media (max-height: 700px) and (max-width: 680px) {
    .hero__inner { padding: 6.5rem 0 6rem; gap: 1.5rem; }
    .hero .eyebrow { margin-bottom: 1.5rem; }
    .hero__lead { margin-top: 1.5rem; }
    .hero__actions { margin-top: 1.75rem; }
}
