:root {
  --ink: #171514;
  --ink-soft: #272321;
  --paper: #f4f0e9;
  --paper-2: #e9e1d6;
  --white: #fffdf9;
  --muted: #716b64;
  --line: rgba(23, 21, 20, 0.16);
  --accent: #a70e56;
  --accent-bright: #d01971;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body.menu-open, body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.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; }
.skip-link { position: fixed; z-index: 200; top: 0.75rem; left: 0.75rem; padding: 0.75rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5vw; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.2); transition: background .35s, color .35s, height .35s; }
.site-header.scrolled { height: 76px; background: rgba(244,240,233,.96); color: var(--ink); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1; }
.brand-logo { width: 39px; height: 42px; object-fit: contain; }
.brand-name { font-family: var(--sans); font-size: 1.02rem; font-weight: 300; letter-spacing: .13em; text-transform: uppercase; }
.brand-name small { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .56rem; letter-spacing: .28em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .87rem; letter-spacing: .04em; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: currentColor; transition: right .25s; }
.site-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: .72rem 1rem; border: 1px solid currentColor; }
.menu-button { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit; padding: 12px 8px; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; margin: 6px 0; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: -3%; overflow: hidden; transform: translate3d(0, var(--hero-parallax, 0px), 0); will-change: transform; }
.hero-image { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 54%; animation: heroCinematic 16s ease-in-out infinite alternate; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,9,.82) 0%, rgba(12,10,9,.5) 50%, rgba(12,10,9,.12) 78%), linear-gradient(0deg, rgba(12,10,9,.62), transparent 58%); }
.hero-content { position: relative; z-index: 2; width: min(880px, 82vw); padding: 156px 0 calc(10vh + 24px) 7.5vw; }
.eyebrow { margin: 0 0 1.25rem; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #f3c5d9; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
h1 { max-width: 850px; margin-bottom: 1.6rem; font-size: clamp(3.2rem, 6.4vw, 7.2rem); line-height: .98; }
h1 em { color: #f1c9b2; font-weight: 400; }
.hero-title-mobile { display: none; }
h2 { font-size: clamp(2.35rem, 4.5vw, 5.2rem); line-height: 1.06; }
.hero-copy { max-width: 610px; margin-bottom: 2rem; color: rgba(255,255,255,.88); font-size: clamp(1.04rem, 1.5vw, 1.24rem); }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .85rem 1.4rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: var(--ink); }
.button-accent { width: 100%; background: var(--accent); color: var(--white); font-weight: 600; }
.button-accent:hover { background: var(--accent-bright); }
.text-link { display: inline-flex; gap: .65rem; align-items: center; text-underline-offset: .25rem; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateY(4px); }
.hero-signature { position: absolute; z-index: 2; right: 4.5vw; bottom: 4vh; display: grid; text-align: right; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }

.section-pad { padding-left: 7.5vw; padding-right: 7.5vw; }
.intro { position: relative; display: grid; grid-template-columns: 1.05fr 1.4fr .9fr; gap: 5vw; align-items: center; padding-top: 9rem; padding-bottom: 9rem; }
.intro-visual { position: relative; min-width: 0; height: clamp(29rem, 40vw, 41rem); margin: 0; overflow: hidden; background: #d8cec3; }
.intro-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(23,21,20,.08); }
.intro-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 48%; transition: transform .8s cubic-bezier(.2,.65,.25,1); }
.intro-visual:hover img { transform: scale(1.025); }
.section-number { position: absolute; z-index: 1; top: 1rem; left: 1rem; min-width: 2.2rem; padding: .45rem .55rem; color: var(--white); background: rgba(23,21,20,.66); backdrop-filter: blur(8px); font-family: var(--serif); font-size: .82rem; text-align: center; }
.intro h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(2.7rem, 4.9vw, 5.7rem); }
.intro-copy { padding-top: 3.2rem; color: var(--muted); }
.intro-copy p + p { margin-top: 1.6rem; }

.portfolio { background: var(--ink); color: var(--white); }
.portfolio-heading { display: grid; grid-template-columns: 1.65fr .6fr; gap: 7vw; align-items: end; padding-top: 8rem; padding-bottom: 4rem; }
.portfolio-heading h2 { margin-bottom: 0; }
.portfolio-heading > p { margin-bottom: .9rem; color: rgba(255,255,255,.62); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(260px, 36vw); gap: 1px; background: rgba(255,255,255,.2); }
.project { grid-column: span 4; margin: 0; overflow: hidden; background: var(--ink); }
.project-wide { grid-column: span 7; }
.project-tall { grid-column: span 5; }
.project-bottom { grid-column: span 4; }
.project-open { position: relative; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; background: var(--ink); color: var(--white); cursor: zoom-in; text-align: left; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.65,.25,1), filter .5s; }
.project-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 47%); }
.project-open:hover img { transform: scale(1.035); filter: brightness(.93); }
.project-label { position: absolute; z-index: 1; left: 2rem; right: 2rem; bottom: 1.7rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.project-label strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.project-label small { max-width: 180px; color: rgba(255,255,255,.68); text-align: right; }

.story { display: grid; grid-template-columns: minmax(300px,.8fr) 1.2fr; gap: 9vw; align-items: center; padding-top: 10rem; padding-bottom: 10rem; background: var(--paper-2); }
.story-visual { position: relative; max-width: 580px; }
.story-visual img { width: 100%; aspect-ratio: .73; object-fit: cover; }
.vertical-caption { position: absolute; right: -2.7rem; bottom: 0; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.story-content h2 { max-width: 820px; margin-bottom: 2.2rem; }
.story-text { columns: 2; column-gap: 3rem; color: #5f5953; }
.story-text p { break-inside: avoid; }
.signature { width: clamp(7.5rem, 10vw, 9.5rem); height: auto; margin: 2rem 0 0; }

.principles { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 760px; background: var(--ink-soft); color: var(--white); }
.principles-title { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 7rem; padding-bottom: 7rem; background: var(--ink); }
.principles-title h2 { max-width: 600px; margin: 0; }
.principles-list { display: flex; flex-direction: column; justify-content: center; padding: 6vw 7vw; }
.principles-list article { display: grid; grid-template-columns: 52px 1fr 1.25fr; gap: 1.5rem; padding: 2.2rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.principles-list article:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.principles-list span { color: #d3ac98; font-family: var(--serif); }
.principles-list h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.principles-list p { margin: 0; color: rgba(255,255,255,.62); }

.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; padding-top: 9rem; padding-bottom: 9rem; }
.process-heading { position: sticky; top: 130px; align-self: start; }
.process-heading h2 { margin-bottom: 1.7rem; }
.process-heading > p:last-child { max-width: 490px; color: var(--muted); }
.process-steps { margin: 0; padding: 0; list-style: none; }
.process-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 1.3rem; padding: 2.1rem 0; border-top: 1px solid var(--line); }
.process-steps li:last-child { border-bottom: 1px solid var(--line); }
.process-steps li > span { color: var(--accent); font-family: var(--serif); }
.process-steps h3 { margin-bottom: .45rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; }
.process-steps p { max-width: 610px; margin: 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 900px; background: var(--ink); color: var(--white); }
.contact-image { min-height: 680px; background: var(--ink-soft); }
.contact-panel { align-self: center; width: min(700px, 100%); padding: 7rem 7vw; }
.contact-panel h2 { max-width: 650px; margin-bottom: 1.4rem; }
.contact-intro { max-width: 600px; margin-bottom: 2.6rem; color: rgba(255,255,255,.68); }
form { display: grid; gap: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .48rem; color: rgba(255,255,255,.77); font-size: .82rem; letter-spacing: .04em; }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 0; background: rgba(255,255,255,.055); color: var(--white); outline: none; padding: .9rem .95rem; font-size: 1rem; }
input, select { min-height: 52px; }
textarea { resize: vertical; min-height: 120px; }
select option { color: var(--ink); background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: #f3c5d9; box-shadow: 0 0 0 2px rgba(208,25,113,.22); }
[aria-invalid="true"] { border-color: #ff8ebd; }
.consent { display: flex; grid-template-columns: auto 1fr; align-items: start; gap: .75rem; margin: .2rem 0; font-size: .78rem; }
.consent input { width: 17px; height: 17px; min-height: 0; margin-top: .18rem; accent-color: var(--accent); }
.form-note { margin: -.5rem 0 0; color: rgba(255,255,255,.48); font-size: .75rem; text-align: center; }
.form-status { min-height: 1.5rem; margin: 0; color: #f3c5d9; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: center; padding: 3rem 4.5vw; background: #0e0d0c; color: rgba(255,255,255,.64); border-top: 1px solid rgba(255,255,255,.12); }
.footer-brand { color: var(--white); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-underline-offset: .25rem; }
.copyright { grid-column: 1/-1; margin: 1rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.powered-separator { margin: 0 .5rem; color: rgba(255,255,255,.3); }
.powered-by { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s ease; }
.powered-by:hover, .powered-by:focus-visible { color: #f3c5d9; text-decoration: underline; text-underline-offset: .25rem; }

.lightbox { width: min(92vw, 1080px); max-width: none; height: min(90vh, 900px); max-height: none; padding: 0; border: 0; background: #0d0c0b; overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.55); color: white; font-size: 1.7rem; line-height: 1; cursor: pointer; }

@keyframes heroCinematic {
  0% { transform: scale(1.07) translate3d(1.1%, -.5%, 0); }
  100% { transform: scale(1.025) translate3d(-1.1%, .45%, 0); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .site-header { height: 76px; padding: 0 1.25rem; }
  .menu-button { display: block; z-index: 2; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.8rem; background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .3s ease; }
  .site-nav.open { transform: none; }
  .site-nav a { font-family: var(--serif); font-size: 1.8rem; }
  .nav-cta { font-family: var(--sans) !important; font-size: 1rem !important; }
  .intro { grid-template-columns: minmax(210px,.72fr) 1.28fr; gap: 2rem 3rem; align-items: start; }
  .intro-visual { grid-column: 1; grid-row: 1 / span 2; width: 100%; height: clamp(28rem, 62vw, 38rem); }
  .intro-heading { grid-column: 2; }
  .intro-copy { grid-column: 2; padding-top: 0; }
  .intro h2 { font-size: clamp(2.7rem, 6.4vw, 4.5rem); }
  .portfolio-heading { grid-template-columns: 1fr; }
  .portfolio-heading > p { max-width: 520px; }
  .story { gap: 6vw; }
  .story-text { columns: 1; }
  .principles { grid-template-columns: 1fr; }
  .principles-title { min-height: 70vh; }
  .process { grid-template-columns: 1fr; gap: 3rem; }
  .process-heading { position: static; }
  .contact { grid-template-columns: .75fr 1.25fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: end; }
  .site-footer > p:not(.copyright) { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .section-pad { padding-left: 1.25rem; padding-right: 1.25rem; }
  .brand-name { font-size: .98rem; }
  .hero { min-height: max(700px, 100svh); }
  .hero-media { inset: -2.5%; }
  .hero-image { object-position: 48% center; animation-duration: 13s; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,9,8,.9) 0%, rgba(11,9,8,.68) 46%, rgba(11,9,8,.2) 83%, rgba(11,9,8,.24) 100%); }
  .hero-content { width: 100%; padding: 112px 1.25rem calc(8.8rem + 16px); }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }
  h1 { max-width: 390px; margin-bottom: 1.15rem; font-size: clamp(2.65rem, 12vw, 3.55rem); line-height: 1; }
  h2 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .hero-copy { max-width: 370px; margin-bottom: 1.45rem; font-size: .98rem; line-height: 1.55; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .hero-actions .button { min-height: 50px; padding: .75rem 1.25rem; }
  .hero-signature { right: auto; left: 1.25rem; bottom: 1.15rem; text-align: left; font-size: .64rem; }
  .intro { grid-template-columns: 1fr; gap: 2rem; padding-top: 6rem; padding-bottom: 6rem; }
  .intro-heading { grid-column: 1; order: 1; }
  .intro-visual { grid-column: 1; grid-row: auto; order: 2; height: min(125vw, 38rem); }
  .intro-copy { grid-column: 1; }
  .intro-copy { order: 3; }
  .portfolio-heading { padding-top: 6rem; padding-bottom: 2.7rem; }
  .project-grid { display: block; }
  .project { height: 72svh; min-height: 520px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .project-label { left: 1.25rem; right: 1.25rem; bottom: 1.3rem; display: block; }
  .project-label strong, .project-label small { display: block; text-align: left; }
  .project-label small { margin-top: .3rem; }
  .story { grid-template-columns: 1fr; gap: 4rem; padding-top: 6rem; padding-bottom: 6rem; }
  .story-visual { width: calc(100% - 1.4rem); }
  .vertical-caption { right: -2.25rem; }
  .principles-title { min-height: 68svh; padding-top: 5rem; padding-bottom: 4rem; }
  .principles-list { padding: 3.2rem 1.25rem; }
  .principles-list article { grid-template-columns: 42px 1fr; gap: 1rem; }
  .principles-list p { grid-column: 2; }
  .process { padding-top: 6rem; padding-bottom: 6rem; }
  .process-steps li { grid-template-columns: 48px 1fr; }
  .contact { display: block; }
  .contact-image { min-height: 62svh; background-position: 54% center; }
  .contact-panel { padding: 5rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { display: flex; flex-direction: column; align-items: flex-start; padding: 3rem 1.25rem; }
  .footer-links { flex-wrap: wrap; }
  .copyright { width: 100%; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
  h1 { font-size: 2.55rem; }
}

/* Preserve existing brand tokens; empty integrations stay out of the visitor flow. */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 88px; }
.hero { background: var(--ink-soft); }
.intro:has(.intro-visual[hidden]) { grid-template-columns: 1.4fr .9fr; }
.intro:has(.intro-visual[hidden]) .intro-heading,
.intro:has(.intro-visual[hidden]) .intro-copy { grid-column: auto; }
.portfolio-empty { margin: 0; padding-bottom: 4rem; color: rgba(255,255,255,.68); }
.story-text { columns: 1; max-width: 640px; }
.signature-slot { min-height: 5rem; margin-top: 2rem; }
.signature-slot .signature { width: clamp(220px, 25vw, 320px); max-width: 100%; height: auto; object-fit: contain; object-position: left; margin: 0; filter: brightness(0) drop-shadow(.4px 0 0 #000) drop-shadow(-.4px 0 0 #000) drop-shadow(0 .4px 0 #000); }
.reviews { padding-top: 6rem; padding-bottom: 6rem; background: var(--paper-2); }
.reviews h2 { max-width: 850px; }
.reviews > p:last-of-type { color: var(--muted); }
.reviews-widget { margin-top: 2.5rem; min-height: 240px; }
.reviews-widget:not(:has(> :not(script))) { margin-top: 0; min-height: 0; }
.reviews-widget iframe { width: 100%; min-height: 400px; border: 0; }
.instagram { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid var(--line); }
.instagram h2 { max-width: 700px; }
.instagram p:last-child { max-width: 620px; color: var(--muted); }
.instagram-button { flex-shrink: 0; gap: .75rem; background: var(--accent); color: var(--white); }
.instagram-button:hover { background: var(--accent-bright); }
@media (max-width: 900px) { .instagram { flex-direction: column; align-items: flex-start; } .instagram-button { max-width: 100%; font-size: .95rem; } }
.contact:has(.contact-image[hidden]) { grid-template-columns: 1fr; min-height: 0; }
.contact:has(.contact-image[hidden]) .contact-panel { width: min(1000px, 100%); margin-inline: auto; }
.contact-unavailable { color: rgba(255,255,255,.77); }
.contact-unavailable a { text-underline-offset: .25rem; }
.footer-links { flex-wrap: wrap; }
.principles-title { align-self: center; aspect-ratio: 1445 / 1089; min-height: 0; padding-top: clamp(1.25rem, 3vw, 3rem); padding-bottom: clamp(1.25rem, 3vw, 3rem); background: linear-gradient(rgba(19,17,16,.2),rgba(19,17,16,.72)), url("assets/sala-painel-ripado.png") center/cover; }
.principles-title h2 { font-size: clamp(1.75rem, 3.5vw, 3.5rem); }
.principles-title .eyebrow { margin-bottom: .75rem; }
.contact-image { background: url("assets/cozinha-cinza-ilha.png") center/cover; }
.project-grid:has(> :nth-child(4):last-child) > :nth-child(n+3) { grid-column: span 6; }
.project-grid > :nth-child(9):last-child { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .intro:has(.intro-visual[hidden]) { grid-template-columns: 1fr; }
  .reviews { padding-top: 5rem; padding-bottom: 5rem; }
}
