:root {
    --bg: #f6f1ea;
    --panel: rgba(251, 247, 241, 0.82);
    --panel-strong: rgba(255, 251, 246, 0.92);
    --line: rgba(44, 36, 31, 0.12);
    --text: #26211d;
    --muted: #6f665f;
    --taupe: #9a816d;
    --shadow: 0 24px 60px rgba(37, 30, 26, 0.08);
    --radius-xl: 42px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(154, 129, 109, 0.12), transparent 24%),
        linear-gradient(180deg, #f8f4ee 0%, #f3eee7 52%, #f8f5f0 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

img,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

a,
button {
    touch-action: manipulation;
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--text);
    color: #fff;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 1.25rem 0;
}

.site-nav,
.site-footer {
    margin: 0 auto;
    max-width: 1240px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(248, 244, 238, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(30, 24, 21, 0.04);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-nav,
    .site-footer,
    .project-copy {
        background: rgba(248, 244, 238, 0.92);
    }
}

.site-nav {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    line-height: 1;
    flex: 0 0 clamp(220px, 24vw, 340px);
    width: clamp(220px, 24vw, 340px);
    height: 40px;
    max-width: 100%;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand-mark,
.brand-sub {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.08em;
}

.brand-mark {
    font-size: 1.55rem;
}

.brand-sub {
    font-size: 0.88rem;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.section {
    padding: 3.6rem 15%;
}

.hero {
    padding-top: 2.2rem;
}

.hero-grid,
.section-heading,
.project-showcase,
.services-grid,
.contact-layout {
    width: 100%;
    margin: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.86fr);
    gap: 3rem;
    align-items: start;
    min-height: calc(100vh - var(--nav-height) - 2rem);
}

.hero-copy {
    padding-top: 0.35rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--taupe);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
.large-copy {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 4.4vw, 4rem);
    line-height: 0.98;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 0.98;
}

h3 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.05;
}

.hero-title {
    max-width: 66ch;
    font-size: clamp(2.05rem, 3.5vw, 3.3rem);
}

.hero-lead,
.hero-note,
.section-note,
.service-card p,
.project-copy p,
.contact-copy p {
    max-width: 66ch;
}

.hero-lead {
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero-note {
    margin: 1.15rem 0 0;
    color: var(--text);
    font-size: 0.98rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.button:hover,
.button:focus-visible,
.carousel-button:hover,
.carousel-button:focus-visible,
.project-pill:hover,
.project-pill:focus-visible,
.footer-socials a:hover,
.footer-socials a:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--text);
    border-color: var(--text);
    color: #f7f3ed;
}

.button-secondary,
.button-tertiary {
    background: rgba(255, 255, 255, 0.42);
    color: var(--text);
}

.hero-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}

.hero-frame img,
.project-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-heading {
    margin-bottom: 1.6rem;
}

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

.section-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.project-panel {
    display: none;
}

.project-panel.is-active {
    display: block;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.35fr);
    gap: 1.1rem;
    align-items: center;
}

.project-media {
    position: relative;
    min-height: 640px;
    aspect-ratio: 16 / 10;
    min-height: auto;
    max-height: 72vh;
    max-height: 72svh;
    cursor: pointer;
}

.project-figure {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: opacity 800ms ease;
    pointer-events: none;
}

.project-figure.is-active {
    opacity: 1;
}

.project-media:focus-within {
    outline: 2px solid rgba(38, 33, 29, 0.45);
    outline-offset: 8px;
}

.project-media-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    min-height: 100%;
    min-width: 0;
    max-width: 100%;
}

.project-copy {
    padding: 1rem 1.05rem 0.95rem;
    border-radius: 24px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 38px rgba(35, 30, 28, 0.08);
}

.project-copy .eyebrow {
    margin-bottom: 0.45rem;
}

.project-copy h3 + p {
    margin-top: 0;
    color: var(--muted);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-controls-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.project-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 0.15rem 0.2rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.project-index {
    min-width: 4.6rem;
    text-align: center;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
}

.project-pill {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.project-pill.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #f7f3ed;
    box-shadow: 0 10px 24px rgba(38, 33, 29, 0.18);
    transform: translateY(-1px);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(22, 19, 17, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-visible {
    display: flex;
}

.lightbox-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: min(1400px, 100%);
    margin: 0 auto;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 72vh;
    max-height: 72svh;
    border-radius: 24px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
}

.lightbox-nav,
.lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f8f5ef;
    cursor: pointer;
}

.lightbox-nav {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font: inherit;
    font-size: 1.9rem;
    line-height: 1;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1400px, 100%);
    margin: 0 auto;
    color: #f8f5ef;
}

.lightbox-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lightbox-title,
.lightbox-description,
.lightbox-index {
    margin: 0;
}

.lightbox-description {
    color: rgba(248, 245, 239, 0.8);
    max-width: 70ch;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1.2rem 1.15rem;
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    box-shadow: 0 14px 36px rgba(35, 30, 28, 0.06);
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.service-card .button {
    align-self: flex-end;
    margin-left: auto;
    margin-top: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    box-shadow: 0 14px 36px rgba(35, 30, 28, 0.06);
}

.large-copy {
    margin: 0;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.45;
}

.site-footer {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    min-height: var(--nav-height);
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    text-align: center;
    line-height: 1;
    min-height: calc(var(--nav-height) - 0.9rem);
    width: 100%;
}

.footer-email,
.footer-link,
.footer-vat,
.footer-legal {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1;
}

.footer-email,
.footer-link,
.footer-vat {
    white-space: nowrap;
}

.footer-email,
.footer-link {
    text-decoration: none;
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    line-height: 1;
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.footer-legal,
.footer-vat {
    margin: 0;
}

.empty-state {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.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;
}

@media (max-width: 980px) {
    .section {
        padding-inline: 8%;
    }

    .hero-grid,
    .project-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-heading-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-visual {
        order: -1;
    }

    .project-media {
        min-height: auto;
        aspect-ratio: 16 / 10;
        max-height: 72vh;
        max-height: 72svh;
    }

    .project-sidebar {
        min-height: auto;
    }

    .footer-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-meta {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding-inline: 0.8rem;
        overflow: visible;
    }

    .site-nav {
        position: relative;
        flex-wrap: nowrap;
        border-radius: 28px;
        padding: 0.7rem 1rem;
        overflow: visible;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0.35rem 0.55rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.46);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0;
        right: 0;
        width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.95rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 24px;
        background: rgba(248, 244, 238, 0.96);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 40px rgba(30, 24, 21, 0.08);
        z-index: 60;
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 0.15rem 0;
    }

    .brand {
        flex-basis: clamp(170px, 48vw, 240px);
        width: clamp(170px, 48vw, 240px);
        height: 34px;
    }

    .section {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .hero {
        padding-top: 1.4rem;
    }

    .hero-grid {
        gap: 1.6rem;
    }

    .hero-frame {
        aspect-ratio: 4 / 4.8;
    }

    .hero-title {
        max-width: 66ch;
        font-size: clamp(1.9rem, 6vw, 2.45rem);
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
    }

    .hero-actions .button,
    .contact-actions .button {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-media {
        min-height: auto;
        aspect-ratio: 16 / 10;
        max-height: 62vh;
        max-height: 62svh;
    }

    .project-copy {
        padding: 0.9rem 0.95rem 0.85rem;
    }

    .project-controls-wrap {
        width: 100%;
    }

    .project-list {
        justify-content: flex-start;
    }

    .contact-layout {
        padding: 1rem;
        gap: 1.15rem;
    }

    .large-copy {
        font-size: 1rem;
        line-height: 1.55;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-shell {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 1.75rem;
    }

    .lightbox-nav-prev,
    .lightbox-nav-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-nav-prev {
        left: 0.85rem;
    }

    .lightbox-nav-next {
        right: 0.85rem;
    }

    .lightbox-image {
        max-height: 64vh;
        max-height: 64svh;
    }

    .lightbox-meta {
        flex-direction: column;
        text-align: center;
        gap: 0.45rem;
    }
}

footer.site-footer {
    display: block !important;
    max-width: 1240px;
    border-radius: 999px !important;
}

footer.site-footer .footer-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 100%;
    min-width: 0;
}

footer.site-footer .footer-email,
footer.site-footer .footer-socials,
footer.site-footer .footer-meta {
    flex: 0 1 auto;
    min-width: 0;
}

footer.site-footer .footer-socials {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

footer.site-footer .footer-meta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    white-space: nowrap;
    text-align: center;
}

footer.site-footer .footer-legal,
footer.site-footer .footer-vat {
    margin: 0;
}

@media (max-width: 980px) {
    footer.site-footer .footer-bar {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    footer.site-footer .footer-meta {
        justify-content: center !important;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    footer.site-footer {
        border-radius: 28px !important;
    }

    footer.site-footer .footer-bar {
        flex-direction: column;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    footer.site-footer .footer-email,
    footer.site-footer .footer-meta {
        text-align: center;
    }

    footer.site-footer .footer-meta {
        white-space: normal;
        gap: 0.45rem !important;
    }
}
