/* Tipografia, superfícies e divisórias compartilhadas pelas páginas do estúdio. */
:root {
    --paper: #fcfcf8;
    --ink: #183027;
    --forest: #214936;
    --muted: #4e6457;
    --line: #d9e1d4;
    --line-strong: #a3b2a3;
    --light: #eef3ea;
    --lime: #dbe8ba;
    --action: #24553e;
    --cta-green: #08794a;
    --cta-green-hover: #05643d;
    --cta-lime: #d9f47a;
    --cta-lime-hover: #e6f9a5;
    --cta-ink: #172b20;
}
.topbar:not(.over-film) .mast { border-color: var(--line); }
.topbar:not(.over-film) .mast .studio-link {
    color: var(--action); border-color: #a7bdaf; border-radius: 30px;
}
.topbar:not(.over-film) .mast .studio-link:hover { background: var(--light); }
.desktop-nav a, .desktop-nav button { font-weight: 560; }
.site-dialog { border: 1px solid var(--line); border-radius: 12px; }

@media (prefers-reduced-motion:no-preference) {
    [data-heading-pending]:not(:focus-within,:target) { opacity: 0; }
    .heading-word { display: inline-block; max-inline-size: 100%; }
    .heading-entering .heading-word {
        mask-image: linear-gradient(90deg,#000 46%,#0000 63%);
        mask-size: 265% 150%;
        mask-repeat: no-repeat;
        mask-clip: no-clip;
        mask-position: 0 50%;
        animation: heading-arrives 740ms var(--heading-delay,0ms) cubic-bezier(.2,.65,.26,1) backwards;
    }
    .topbar:not(.over-film) .mast > * {
        animation: mast-arrives 500ms cubic-bezier(.2,.8,.25,1) both;
    }
    .topbar:not(.over-film) .mast .desktop-nav { animation-delay: 70ms; }
    .topbar:not(.over-film) .mast .mast-actions { animation-delay: 135ms; }
}
@keyframes heading-arrives {
    from {
        opacity: 0;
        transform: translateY(.24em);
        filter: blur(.105em);
        mask-position: 100% 50%;
        color: color-mix(in srgb,currentColor 42%,#79ad81);
    }
    55% { opacity: 1; }
    to { transform: none; filter: none; mask-position: 0 50%; color: inherit; }
}
@keyframes mast-arrives {
    from { opacity: .3; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

body:not(.page-studio) main :is(h1,h2,h3):not(.hero h1,.closing h2) {
    color: var(--ink); font-family: var(--sans); font-weight: 680;
    line-height: 1.13; letter-spacing: -.043em;
}
body:not(.page-studio) main :is(h1,h2,h3):not(.hero h1,.closing h2) em {
    color: inherit; font: inherit;
}
body:not(.page-studio) main h1:not(.hero h1) { font-size: clamp(42px, 5.2vw, 78px); }
body:not(.page-studio) main h2:not(.closing h2) { font-size: clamp(31px, 3.8vw, 55px); }
.page-home #conteudo :is(.section,.folio-heading,.build-intro) h2 {
    font: 400 clamp(40px,4.9vw,74px)/.98 var(--display); letter-spacing: -.025em;
}
.page-home #conteudo .build-intro h2 { font-size: clamp(36px,4.3vw,62px); }
.page-home #conteudo .studio-invite h2 {
    max-width: 12ch; color: #f6f8eb; font-size: clamp(48px,5.9vw,91px);
}
.page-home #conteudo .folio-work h3 {
    color: inherit; font: 400 clamp(31px,3.25vw,49px)/1 var(--display); letter-spacing: -.02em;
}
.page-home #conteudo .folio-work:not(:first-child) h3 { font-size: clamp(27px,2.7vw,41px); }
body.page-home main .journal .guide-card h3 {
    font: 400 clamp(25px,2.55vw,40px)/1.06 var(--display); letter-spacing: -.018em;
}
body.page-home main .journal .guide-card:not(:first-child) h3 { font-size: clamp(23px,2.15vw,32px); }
body:not(.page-studio) main .project-card h3 { font: 650 clamp(21px, 2vw, 30px)/1.2 var(--sans); letter-spacing: -.032em; }
body:not(.page-studio) main :is(.guide-card,.service-card,.acervo-titulo,.mo-ph__ch) h3 {
    font-size: clamp(19px, 2.25vw, 32px); text-wrap: balance;
}
body:not(.page-studio) main .prose h2 { font-size: clamp(25px, 3vw, 38px); }
body:not(.page-studio) main .closing h2 { color: #f9f8ed; font-family: var(--display); }
body:not(.page-studio) .site-dialog h2 { font: 690 30px/1.15 var(--sans); letter-spacing: -.035em; }
:where(main, .site-dialog) .button { border-radius: 5px; }
.button-outline { color: var(--action); border-color: #a6baad; }
.button-outline:hover { color: var(--ink); background: var(--light); }
.button-whatsapp { color: #fff; background: var(--cta-green); }
.button-whatsapp:is(:hover,:focus-visible) { color: #fff; background: var(--cta-green-hover); }
.eyebrow.ink,.tag,.project-meta,.atelier-note { color: #527163; }
.eyebrow.ink > span:empty { display: none; }
.textlink,.inline-go,.contact-line { color: var(--action); }
.intro-text { color: var(--muted); }
.page-home .service-feature { background: linear-gradient(125deg,#edf2e7,#f4f6ed 84%); }
.page-home .faq { background: #f0f3e9; }
.page-home .feature-photo img,.page-home .studio-shot img { border-radius: 4px; }
.page-intro,.locations { background: linear-gradient(125deg,#f0f4e9,#f9faf3); }
.page-intro { padding-block: clamp(21px,2.4vw,38px) clamp(31px,4.4vw,65px); }
.page-intro .crumb { color: var(--muted); }
.collection-section { padding-top: clamp(25px,3.8vw,55px); }
.prose a:not(.button),.notes a,.sources a { color: var(--action); }
.page-projects #conteudo,.page-project #conteudo {
    --folio-paper: var(--paper); --folio-ink: var(--ink);
    --folio-leaf: var(--muted); --folio-line: var(--line);
}
:is(.page-projects,.page-project,.page-about,.page-services,.page-service) #conteudo :is(.acervo-apresentacao,.obra-ficha,.perfil-apresentacao,.page-intro) h1 {
    font: 400 clamp(52px,7vw,106px)/.98 var(--display); letter-spacing: -.033em;
}
.page-services #conteudo .service-collection h2 {
    font: 400 clamp(39px,4.3vw,65px)/1 var(--display); letter-spacing: -.024em;
}
body.page-projects main .acervo-cartao h2 { font-size: clamp(24px,3vw,40px); }
body.page-studio { --studio-paper: var(--paper); }

.site-footer {
    color: var(--muted); background: var(--paper);
    border-top: 1px solid var(--line-strong);
    padding: clamp(31px, 4vw, 65px) 0 max(61px, env(safe-area-inset-bottom));
    font-size: 14px; line-height: 1.55;
}
.site-footer .brand-link { color: var(--ink); }
.site-footer .brand-word small { color: var(--muted); }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1fr);
    gap: clamp(18px,3.5vw,64px);
    padding-bottom: clamp(24px,3.3vw,50px);
}
.footer-grid h2 {
    margin: 8px 0 14px; color: var(--ink); font: 700 14px/1.4 var(--sans); text-wrap: initial;
    text-transform: none; letter-spacing: normal;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 4px; }
.footer-grid li a,.footer-grid li button { display: inline-flex; align-items: center; min-height: 30px; gap: 8px; }
.footer-grid li .ico { color: var(--action); width: 16px; height: 16px; }
.footer-profile > p { max-width: 23ch; margin: 9px 0 14px; }
.footer-address { display: inline-flex; align-items: flex-start; gap: 9px; }
.footer-address .ico { color: var(--action); width: 17px; height: 17px; margin-top: 3px; }
.social-list {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 15px 0 0;
}
.footer-grid .social-list { margin-top: 14px; }
.footer-grid .social-list li { margin: 0; }
.footer-grid .social-list li a { min-height: 44px; }
.social-list li a {
    display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 7px;
    border-radius: 7px; border: 1px solid var(--line); color: var(--ink);
    transition: border-color .18s ease,background-color .18s ease;
}
.social-list li a:hover { background: var(--light); border-color: var(--line-strong); }
.social-list li a .ico { width: 20px; height: 20px; color: var(--action); }
.social-list--labels a { padding-inline: 10px; font-size: 13px; font-weight: 580; }
.footer-contact-list a { overflow-wrap: anywhere; }
.footer-contact-list img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.footer-links {
    border-block: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap;
    gap: 5px clamp(14px, 2.1vw, 32px); padding: 12px 0; font-size: 13px;
}
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer :is(a,button):hover:not(.social-list a,.brand-link) { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--action); box-shadow: none; }
.footer-credit {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
    column-gap: 24px; row-gap: 5px; padding-top: 15px; font-size: 12px; text-align: center;
}
.footer-credit strong { font-weight: 630; }
.footer-studio-note { font-size: 12px; margin-top: 10px; text-align: center; }
.footer-studio-note a { text-decoration: underline; text-underline-offset: 3px; }

.perfil-wrap { padding-block: clamp(24px,3.3vw,50px) clamp(42px,5.3vw,80px); }
.perfil-apresentacao {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(220px, .72fr);
    gap: clamp(24px,6vw,100px); align-items: center;
}
.perfil-apresentacao h1 { margin: 0 0 16px; }
.perfil-apresentacao p { max-width: 57ch; color: var(--muted); }
.perfil-apresentacao p + p { margin-top: 12px; }
.perfil-apresentacao .button { margin-top: 20px; }
.perfil-apresentacao .portrait { max-width: 410px; justify-self: end; }
.perfil-apresentacao .portrait img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.perfil-apresentacao .portrait figcaption { display: none; }
.perfil-principios {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(16px,3.2vw,48px); padding-block: clamp(32px,5vw,76px);
}
.perfil-principios > div { border-top: 1px solid var(--line-strong); padding-top: 17px; }
body.page-about main .perfil-principios h3 { font-size: clamp(20px,2.15vw,29px); margin-bottom: 10px; }
.perfil-principios p { color: var(--muted); }
.perfil-regiao { border-top: 1px solid var(--line); padding-block: clamp(24px,3.2vw,48px); background: var(--light); }
.perfil-regiao p + p { margin-top: 10px; }
.perfil-regiao .button { margin-top: 16px; }

@media (max-width:950px) {
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
    .perfil-apresentacao { grid-template-columns: 1fr; }
    .perfil-apresentacao .portrait { width: min(100%,350px); justify-self: start; }
    .perfil-principios { grid-template-columns: 1fr; }
    .footer-grid { row-gap: 21px; }
    .footer-profile,.footer-contact { grid-column: 1/-1; }
    .footer-grid h2 { margin: 3px 0 9px; }
    .footer-grid li a,.footer-grid li button { min-height: 36px; }
    .footer-links { padding-block: 9px; }
    .footer-links a { min-height: 39px; }
    .footer-credit,.footer-studio-note { text-align: left; justify-content: flex-start; }
    .site-footer { padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px)); }
}
