/* Byrá: palette and textures sampled/cropped from the supplied official logo. */
:root {
    --color-terracotta: #9B300C;
    --color-green: var(--color-terracotta);
    /* Compatibility with existing component tokens. */
    --color-ink: #4F2E20;
    --color-sand: #E8E1D7;
    --color-off-white: #E8E1D7;
    --bg-sand-textured: var(--color-sand) url('../images/brand/byra/beige-texture.webp') repeat;
    --bg-green-textured: var(--color-terracotta) url('../images/brand/byra/terracotta-texture.webp') repeat;
}

body {
    background: var(--bg-sand-textured);
}

.contact-location-map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-location-link {
    margin-block: 0;
    padding-block: 1rem;
    font-size: .8125rem;
}

/* Requested contact actions; existing placement and layout remain unchanged. */
/* Remove filtered items from grid flow so the remaining projects fill each row. */
.home-selected-project__grid .project-card.is-filtered {
    display: none;
}

.site-footer__contact a,
.contact-directory a {
    overflow-wrap: anywhere;
}

.whatsapp-contact__trigger {
    animation: byra-contact-pulse 3s ease-in-out infinite;
}

.whatsapp-contact__trigger:hover,
.whatsapp-contact__trigger:focus-visible,
.whatsapp-contact__trigger[aria-expanded="true"] {
    animation: none;
}

@keyframes byra-contact-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(155 48 12 / 0);
    }

    25% {
        box-shadow: 0 0 0 0 rgb(155 48 12 / .38);
    }

    75% {
        box-shadow: 0 0 0 .65rem rgb(155 48 12 / 0);
    }
}

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

.project-detail-hero__marquee.is-animating {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.preloader {
    background: var(--bg-sand-textured) !important;
}

.site-menu,
.site-menu.is-open,
.site-header::before {
    background: var(--bg-green-textured) !important;
}

.site-menu.is-open {
    backdrop-filter: none;
}

.site-menu,
.site-menu.is-open {
    background: var(--bg-sand-textured) !important;
    color: var(--color-terracotta);
}

.site-menu nav a,
.site-menu nav a:hover,
.site-menu nav a:focus-visible,
.site-menu__lang-switcher a,
.site-menu__lang-switcher a.is-active {
    color: var(--color-terracotta) !important;
}

.site-menu__lang-switcher span {
    background-color: var(--color-terracotta);
}

.site-header[data-header-theme="light"]:not(.is-scrolled)::before {
    background: var(--bg-sand-textured) !important;
}

.is-menu-open .site-header[data-header-theme="light"]:not(.is-scrolled)::before {
    background: var(--bg-green-textured) !important;
}

.site-menu::before {
    background-image: none;
}

.site-header[data-header-theme="photo"]:not(.is-scrolled)::before {
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
}

.site-header[data-header-theme="photo"]:not(.is-scrolled) {
    background: transparent;
}

/* Crop only the descriptor; preserve the supplied BYRÁ + STUDIO artwork. */
.site-brand img {
    width: clamp(10rem, 13vw, 13rem);
    aspect-ratio: 784 / 300;
    object-fit: cover;
    object-position: top;
}

.site-header[data-header-theme="photo"] .site-brand__logo--green {
    opacity: 0;
}

.site-header[data-header-theme="photo"] .site-brand__logo--sand {
    opacity: 1;
}

.is-menu-open .site-header {
    --header-foreground: var(--color-terracotta);
    color: var(--color-terracotta);
}

.is-menu-open .site-header::before,
.is-menu-open .site-header[data-header-theme="light"]:not(.is-scrolled)::before {
    background: var(--bg-sand-textured) !important;
    box-shadow: none;
}

.is-menu-open .site-header .site-brand__logo--green {
    opacity: 1;
}

.is-menu-open .site-header .site-brand__logo--sand {
    opacity: 0;
}

.is-menu-open .site-header :focus-visible,
.site-menu :focus-visible {
    outline-color: var(--color-terracotta);
}

/* External header: same beige/terracotta application as the expanded menu. */
.site-header.is-scrolled::before {
    background: var(--bg-sand-textured) !important;
    box-shadow: none;
}

.site-header.is-scrolled,
.site-header[data-header-theme="light"] {
    --header-foreground: var(--color-terracotta);
    color: var(--color-terracotta);
}

.site-header.is-scrolled .site-brand__logo--green {
    opacity: 1;
}

.site-header.is-scrolled .site-brand__logo--sand {
    opacity: 0;
}

.site-header.is-scrolled :focus-visible {
    outline-color: var(--color-terracotta);
}

.preloader__logo {
    width: min(65vw, 24rem);
    height: auto;
    aspect-ratio: 784 / 300;
    object-fit: cover;
    object-position: top;
}

.home-manifesto,
.home-process,
.studio-intro,
.studio-process,
.contact-opening,
.contact-directory,
.project-detail-intro,
.project-gallery,
.projects-intro,
.projects-page,
.studio-team-editorial {
    background: var(--bg-sand-textured) !important;
}

.home-manifesto__graphic img {
    object-fit: contain;
    height: auto;
    mix-blend-mode: multiply;
}

.home-services__symbol {
    width: clamp(6rem, 9vw, 10rem);
    max-height: 11rem;
    object-fit: contain;
}

.home-services__placeholder {
    color: var(--color-sand);
    opacity: .85;
    letter-spacing: normal;
    font-size: .8125rem;
}

/* Full service copy supplied by the client; no truncation or hover dependency. */
.service-description {
    max-width: 65ch;
    color: var(--color-sand);
    font-size: .9375rem;
    line-height: 1.85;
    letter-spacing: normal;
}
.service-description p { margin: 0 0 1.25rem; }
.service-description p:last-child { margin-bottom: 0; }
.home-services__item[id] { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.home-services__item { padding-block: 3rem; }
.home-services__description { grid-column: 4 / 13; grid-row: 2; margin-top: 1.75rem; }
.byra-studio-services__copy { flex: 1; min-width: 0; }
.byra-studio-services__copy .service-description { margin-top: 1.5rem; }
.byra-studio-services li { align-items: flex-start; padding-block: 2.5rem; }
.byra-studio-services img { flex-shrink: 0; }
@media (min-width: 48rem) and (max-width: 63.99rem) {
    .home-services__description { grid-column: 3 / 7; }
}
@media (max-width: 47.99rem) {
    .home-services__description { grid-column: 1 / 3; grid-row: 3; }
    .byra-studio-services li { flex-direction: column; gap: 1.5rem; }
    .service-description { font-size: .875rem; }
}

.site-footer__bottom-logo img {
    width: 12rem;
    height: auto;
    aspect-ratio: 784 / 300;
    object-fit: cover;
    object-position: top;
}

/* Optical reinforcement of the official small lettering, not a decorative shadow. */
.site-brand__logo--sand,
.site-footer__bottom-logo img {
    filter: none;
}

.studio-contact-link:hover .studio-contact-link__text,
.studio-contact-link:focus-visible .studio-contact-link__text {
    color: var(--color-terracotta);
}

.studio-contact-link:hover .studio-contact-link__circle,
.studio-contact-link:focus-visible .studio-contact-link__circle {
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
    background: transparent;
}

.byra-founder {
    padding-block: clamp(4rem, 8vw, 8rem);
    background: var(--bg-sand-textured);
    color: var(--color-ink);
}

.byra-founder__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

.byra-founder__portrait {
    grid-column: 1 / 6;
    margin: 0;
}

.byra-founder__portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.byra-founder__copy {
    grid-column: 7 / 13;
}

.byra-founder__copy h2 {
    margin: 1rem 0 2rem;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.byra-founder__copy p {
    line-height: 1.85;
    font-size: .9375rem;
    margin-bottom: 1.5rem;
}

.byra-founder__eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .6875rem !important;
}

.studio-intro {
    color: var(--color-ink);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.studio-opening__copy h1 {
    color: var(--color-ink);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.studio-opening__copy p {
    color: var(--color-ink);
}

.studio-intro__text {
    margin-top: 3rem;
}

.byra-studio-services {
    padding-block: clamp(4rem, 7vw, 7rem);
    background: var(--bg-green-textured);
    color: var(--color-sand);
}

.byra-studio-services h2 {
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 5rem);
}

.byra-studio-services ul {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
}

.byra-studio-services li {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: 1.5rem 0;
    border-top: 1px solid rgb(232 225 215 / .25);
}

.byra-studio-services img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.byra-studio-services h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin: 0;
}

@media (max-width: 47.99rem) {
    .site-brand img {
        width: 10rem;
    }

    .byra-founder__inner {
        display: block;
    }

    .byra-founder__portrait {
        max-width: 30rem;
        margin: 0 0 2.5rem;
    }

    .byra-founder__copy p {
        font-size: .875rem;
    }

    .home-process-section .home-manifesto__title {
        font-size: clamp(2.75rem, 12vw, 3.25rem);
    }

    .home-process-section .home-manifesto__graphic {
        justify-self: start;
    }

    .home-services__symbol {
        max-width: 6rem;
        max-height: 7rem;
    }
}
