@charset "UTF-8";

:root {
  --terra: #b84729;
  --terra-hover: #a63e22;
  --green: #233e35;
  --ink: #26271f;
  --paper: #f0ebe1;
  --sand: #e6dac8;
  --sand-light: #eadfce;
  --light-ink: #fff9ee;
  --line: #26271f33;
  --gutter: clamp(26px, 3.889vw, 72px);
  --measure: 1360px;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: var(--terra-hover);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--heading, var(--green)); font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 550; line-height: 1; letter-spacing: -.025em; }
h1 em, h2 em, h3 em { font-weight: 420; color: var(--terra); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--measure)); margin-inline: auto; }
.section-title { font-size: clamp(44px, 6vw, 88px); }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; color: var(--paper); background: var(--green); --focus: var(--paper); transform: translateY(calc(-100% - 20px)); }
.skip:focus { transform: none; }

.top { position: relative; z-index: 6; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { color: var(--heading, var(--green)); position: relative; display: inline-flex; flex: none; flex-direction: column; align-self: center; justify-self: start; width: max-content; padding-right: .5em; font: 800 46px/.8 Manrope, sans-serif; letter-spacing: -.085em; text-decoration: none; }
.brand small { font: 500 8px/1 var(--sans); letter-spacing: .34em; margin: 10px 0 0 3px; }
.mark { position: relative; display: block; width: 1em; height: 1em; color: var(--terra); pointer-events: none; }
.mark i { position: absolute; left: 50%; top: 50%; width: 100%; height: max(2px, .096em); background: currentColor; border-radius: 50rem; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); }
.mark i:nth-child(2) { --angle: 45deg; }
.mark i:nth-child(3) { --angle: 90deg; }
.mark i:nth-child(4) { --angle: 135deg; }
.brand-star { position: absolute; top: -.02em; right: 0; width: .43em; height: .43em; }
.brand-star i { height: max(1.6px, .036em); }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.36vw, 34px); font-size: 14.5px; }
.desktop-nav a { color: var(--ink); text-decoration: none; }
.desktop-nav a:hover, .top a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.menu-button, .mobile-nav { display: none; }

.btn, .chair-form .button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 15px 22px; border: 0; font: 500 15px/1.5 var(--sans); text-align: center; text-decoration: none; transition: translate .25s var(--ease), background-color .25s, transform 160ms ease-out; }
.btn svg { flex: none; width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { translate: 0 -2px; }
}
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="paused"]) :is(.btn, .chair-form .button):not(:disabled):active { transform: scale(0.97); }
}
.primary, .chair-form .button { color: var(--light-ink); background: var(--terra); }
.primary:hover, .chair-form .button:hover { background: var(--terra-hover); }
.top-book { padding: 13px 20px; font-size: 14px; }
.ghost { border: 1px solid #26271f55; padding: 14px 21px; }
.ghost:hover { background: #26271f0d; }
.text-link { display: inline-flex; align-items: baseline; gap: .45em; width: fit-content; text-underline-offset: .26em; font-weight: 550; }
.text-link:hover { text-decoration-thickness: 2px; }

.footer { --heading: var(--paper); --focus: var(--paper); color: var(--paper); background: var(--green); padding: 58px 0 25px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 24px; align-items: start; padding-bottom: 38px; }
.footer .brand { align-self: start; }
.footer address { font-style: normal; }
.footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.footer a:not(.brand) { text-underline-offset: .24em; }
.footer-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 18px; border-top: 1px solid #f0ebe14d; padding-top: 17px; font-size: 13px; }
.motion-toggle { border: 1px solid #f0ebe18c; padding: 7px 13px; color: inherit; background: transparent; }
.motion-toggle:not(:disabled):hover { background: #f0ebe124; }
.motion-toggle:disabled { cursor: default; }

.chooser { width: min(660px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.chooser::backdrop { background: #26271fb8; }
.chooser-heading { position: relative; border-bottom: 1px solid var(--line); padding: 24px 62px 24px 26px; }
.chooser h2 { font-size: clamp(27px, 5vw, 44px); }
.chooser-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--sand); color: var(--ink); font-size: 26px; line-height: 1; }
.chooser-options { list-style: none; padding: 0 26px; }
.chooser-options li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; padding: 17px 0; }
.chooser-options li + li { border-top: 1px solid var(--line); }
.chooser h3 { font-size: 23px; margin-bottom: 4px; }
.chooser-options p { color: var(--ink); font-size: 14px; }

.page-label { font-size: 14px; font-weight: 550; }
.work-mast { padding-block: clamp(57px, 8vw, 114px); background: var(--sand); }
.work-mast-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr); align-items: end; gap: clamp(26px, 8vw, 110px); }
.work-mast h1 { margin-top: 15px; max-width: 11ch; font-size: clamp(56px, 8.7vw, 132px); }
.work-mast-layout > div:last-child { max-width: 42ch; }
.work-mast-layout > div:last-child p { margin-bottom: 18px; font-size: clamp(17px, 2vw, 23px); }
.work-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: start; gap: clamp(26px, 9vw, 126px); padding-block: clamp(46px, 7vw, 100px); }
.work-layout h2 { font-size: clamp(31px, 4vw, 52px); margin-bottom: 15px; }
.work-details { display: grid; gap: 40px; }
.work-details ul { list-style: none; padding: 0; }
.work-details li { display: grid; grid-template-columns: 18px 1fr; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-block: 12px; }
.work-details li::before { content: ""; height: 3px; background: var(--terra); align-self: start; margin-top: .68em; }
.work-details p { max-width: 44ch; }
.enquire { padding: clamp(19px, 4vw, 50px); border-top: 4px solid var(--terra); background: var(--sand-light); }
.enquire > p { max-width: 40ch; margin-bottom: 25px; }
.chair-form { display: grid; gap: 15px; }
.form-field { display: grid; gap: 5px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-width: 0; min-height: 46px; padding: 9px 10px; border: 1px solid #26271f8c; border-radius: 0; color: var(--ink); background: var(--paper); }
.form-field textarea { resize: vertical; }
.chair-form .button { justify-self: start; }
.thanks { display: grid; justify-items: start; gap: 28px; padding-block: clamp(72px, 12vw, 175px); }
.thanks-star { font-size: 55px; }
.thanks h1 { max-width: 16ch; }

.faq-layout { display: grid; align-items: start; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); gap: clamp(34px, 8vw, 105px); padding-block: clamp(51px, 8vw, 112px); }
.faq-index h1 { font-size: clamp(55px, 8vw, 116px); }
.faq-index ul { list-style: none; padding: 0; margin-top: 28px; }
.faq-index a { display: inline-block; padding-block: 6px; color: var(--terra-hover); text-underline-offset: .24em; }
.faq-groups { display: grid; gap: 42px; }
.faq-group { border-block: 1px solid var(--line); }
.faq-group h2 { padding-block: 15px 19px; font-size: clamp(28px, 3.8vw, 50px); }
.faq-group details { border-top: 1px solid var(--line); }
.faq-group summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 14px; cursor: pointer; font-weight: 550; list-style: none; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: ""; flex: none; width: 15px; height: 15px; color: var(--terra-hover); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq-group details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq-group summary:hover { color: var(--terra-hover); }
.faq-group details p { max-width: 65ch; padding-bottom: 18px; color: var(--ink); }
.faq-group details a { color: var(--terra-hover); text-underline-offset: .2em; }

.profile-mast { padding: clamp(27px, 5vw, 68px) 0 clamp(44px, 7vw, 90px); background: var(--sand-light); }
.profile-back { margin-bottom: clamp(26px, 4vw, 58px); }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .75fr); align-items: center; gap: clamp(25px, 8vw, 98px); }
.profile-hero h1 { max-width: 12ch; font-size: clamp(51px, 8.2vw, 118px); overflow-wrap: break-word; }
.profile-byline { margin-top: 14px; color: var(--ink); font-size: clamp(16px, 2vw, 23px); }
.profile-hero .page-label { margin-bottom: 12px; color: var(--terra-hover); }
.profile-intro { max-width: 43ch; margin-top: 20px; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.profile-identity { display: grid; place-items: center; min-height: clamp(132px, 23vw, 288px); padding: 22px; border: 1px solid var(--line); background: var(--sand); }
.profile-logo { width: min(100%, 350px); height: auto; mix-blend-mode: multiply; }
.profile-nos .profile-logo { width: min(61%, 213px); }
.profile-nos .profile-identity { background: var(--paper); }
.profile-star { font-size: clamp(85px, 13vw, 180px); }
.profile-address { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(25px, 7vw, 98px); padding-block: clamp(32px, 5vw, 72px); }
.profile-address h2 { font-size: clamp(29px, 4vw, 51px); }
.profile-address address { font-style: normal; }
.profile-address .text-link { margin-inline-start: auto; }

@media (min-width: 761px) and (max-width: 900px) {
  .desktop-nav { gap: 14px; font-size: 13px; }
  .top { gap: 12px; }
  .top-book { padding-inline: 12px; gap: 8px; }
}

@media (min-width: 761px) {
  .faq-index { position: sticky; top: 28px; }
}

@media (width < 761px) {
  :root { --gutter: 20px; }
  .top { min-height: 72px; flex-wrap: wrap; gap: 0 18px; padding-block: 12px; }
  .brand { font-size: 38px; }
  .brand small { font-size: 7px; margin-top: 8px; }
  .desktop-nav, .top-book { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; color: var(--ink); border: 1px solid var(--line); background: transparent; }
  .menu-button span { width: 13px; height: 8px; border-block: 1px solid currentColor; }
  .menu-button[aria-expanded="true"] { background: var(--sand); }
  .mobile-nav { flex: 1 0 100%; display: grid; padding-top: 12px; }
  .mobile-nav a { padding: 10px 2px; border-top: 1px solid var(--line); text-decoration: none; }
  .footer { padding-top: 38px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; }
  .work-mast-layout, .work-layout, .faq-layout, .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .faq-index ul { display: flex; flex-wrap: wrap; gap: 2px 17px; margin-top: 15px; }
  .faq-index a { padding-block: 10px; }
  .profile-address { display: grid; justify-items: start; }
  .profile-address .text-link { margin: 0; }
  .profile-identity { min-height: 0; }
  .profile-logo { width: min(70%, 200px); }
  .profile-nos .profile-logo { width: min(46%, 140px); }
}

@media (max-width: 480px) {
  .chooser-options li { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .chair-form .button { transition: none; }
  .btn:not(:disabled):hover { translate: none; }
}
[data-motion="paused"] :is(.btn, .chair-form .button) { transition: none; }
[data-motion="paused"] .btn:not(:disabled):hover { translate: none; }

/* Bouncy menu pill (desktop), Bruno's Bouncy Radio Selector logic A: a terracotta pill on the
   selected item; hover leans it, press winds it back, click springs it to the new item. */
.desktop-nav { position: relative; gap: 4px; --bounciness: 15; }
.desktop-nav a { position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px; transition: color 0s linear 120ms; }
.desktop-nav a.is-on { color: var(--light-ink); }
.nav-pill { --m: 0; --spring: cubic-bezier(.25, calc(var(--bounciness) / 10), .5, 1);
  position: absolute; z-index: 0; top: 50%; left: 0; width: var(--w, 0); height: 38px; border-radius: 999px; background: var(--terra); opacity: var(--o, 0); pointer-events: none;
  translate: var(--x, 0) -50%;
  --p: 0;
  transform: translateX(calc(var(--m) * 6%));
  /* hover: a small lean; held press: thinner the farther the pressed item (--p = steps away) */
  scale: calc(1 + var(--m) * var(--m) * .05 + var(--p) * .05) calc(1 - var(--m) * var(--m) * .1 - var(--p) * .12);
  transition: translate .42s var(--spring), width .42s var(--spring), transform .3s var(--spring), scale .3s var(--spring), opacity .2s, background-color .2s; }
.desktop-nav a.is-on:hover ~ .nav-pill, .desktop-nav:has(a.is-on:hover) .nav-pill { background: var(--terra-hover); }
.desktop-nav.pressing .nav-pill { transition: translate .42s var(--spring), width .42s var(--spring), transform .12s ease-out, scale .12s ease-out, opacity .2s, background-color .2s; }
.desktop-nav.no-anim .nav-pill, .desktop-nav.no-anim a { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav-pill { transition: opacity .2s; transform: none; scale: none; } .desktop-nav a { transition: none; } }
[data-motion="paused"] .desktop-nav a { transition: none; }
[data-motion="paused"] .nav-pill { transition: opacity .2s; transform: none; scale: none; }

/* The header stays on screen while scrolling (Bruno: "não vi porque o menu some da tela"). */
.top { position: sticky; top: 0; }
html { scroll-padding-top: 92px; }

/* Centred menu that stays on screen; after the first scroll it folds into a small floating menu. */
@media (min-width: 761px) {
  .top { transition: min-height .35s var(--ease, ease), background-color .35s, border-color .35s; }
  .top .desktop-nav { position: absolute; left: 50%; translate: -50% 0; transition: padding .35s, background-color .35s, box-shadow .35s; border-radius: 999px; }
  .top .brand { transition: scale .35s, padding .35s, background-color .35s, box-shadow .35s; transform-origin: left center; border-radius: 999px; }
  .top.compact { min-height: 72px; background: transparent; border-color: transparent; pointer-events: none; }
  .top.compact > * { pointer-events: auto; }
  .top.compact .desktop-nav { padding: 5px; background: var(--paper); box-shadow: 0 8px 28px #26271f24; }
  .top.compact .brand { scale: .8; padding: 8px 16px 6px; background: var(--paper); box-shadow: 0 8px 28px #26271f24; }
}
@media (prefers-reduced-motion: reduce) { .top, .top .desktop-nav, .top .brand { transition: none; } }

/* Work from Testa is the one call to action in the menu: terracotta accent. */
.mobile-nav a[href="/work-from-testa/"] { background: var(--terra); color: var(--light-ink); transition: background-color .2s; }
.mobile-nav a[href="/work-from-testa/"]:hover { background: var(--terra-hover); }

/* Folded menu: liquid glass, and the logo joins the menu (the big one fades out). */
.nav-brand { display: none; }
@media (min-width: 761px) {
  .nav-brand { display: inline-flex; position: relative; max-width: 0; padding: 0 !important; overflow: hidden; opacity: 0; color: var(--green); font: 800 22px/1 Manrope, sans-serif; letter-spacing: -.085em; padding-right: .5em; transition: max-width .4s var(--ease, ease), opacity .3s, padding .4s; }
  .top .desktop-nav .nav-brand { color: var(--green); }
  .nav-brand .brand-star { position: absolute; top: 8px; right: 9px; color: var(--terra); }
  .top.compact .nav-brand { max-width: 90px; opacity: 1; padding: 9px 22px 9px 15px !important; }
  .top.compact .brand { opacity: 0; scale: .6; pointer-events: none; }
  .top .brand { transition: opacity .3s, scale .35s; }
  .top.compact .desktop-nav {
    background: color-mix(in srgb, var(--paper) 74%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid #ffffff8c;
    box-shadow: inset 0 1px 0 #ffffffb3, inset 0 -1px 0 #26271f14, 0 10px 30px #26271f26;
  }
}

/* Menu items never move: the small logo is a separate glass chip to the left of the menu,
   outside its flow, so the folded and unfolded menus keep the same link positions. */
@media (min-width: 761px) {
  .desktop-nav .nav-brand { position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%; max-width: none !important; border-radius: 999px; pointer-events: none; }
  .top.compact .nav-brand { pointer-events: auto; padding: 12px 24px 12px 16px !important;
    background: color-mix(in srgb, var(--paper) 74%, transparent); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid #ffffff8c; box-shadow: inset 0 1px 0 #ffffffb3, 0 10px 30px #26271f26; }
  .top .desktop-nav { padding: 5px; border: 1px solid transparent; }
}
