/* ==========================================================================
   Delta Construtora · estilos do site
   Tokens em tokens.css (marca real). Movimento no fim deste arquivo, sempre
   atrás do gate html[data-motion] (sem ele a página fica 100% legível).
   ========================================================================== */

@font-face { font-family: 'League Spartan'; src: url('../fonts/league-spartan-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../fonts/lato-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--f-body); font-size: var(--t-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 700; }
p { text-wrap: pretty; }
p strong { color: var(--text); }
.sec--ink p strong { color: var(--on-ink); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.sec--ink :focus-visible, .hero :focus-visible, .faixa :focus-visible, .foot :focus-visible, .lb :focus-visible, .hdr.is-top :focus-visible, .hdr.is-menu :focus-visible { outline-color: var(--gold); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 700; transform: translateY(-160%); transition: transform var(--d-fast) var(--e2); }
.skip:focus { transform: none; }

main:focus, section:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: var(--t-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; line-height: 1.4; color: var(--gold-ink); margin-bottom: clamp(14px, 2vh, 22px); }
.sec--ink .eyebrow, .eyebrow--light { color: var(--gold); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h2); line-height: var(--lh-head); letter-spacing: -.022em; text-wrap: balance; }
.h2 em, .hero__t em, .cta__t em { font-style: normal; }
.sec--ink .h2 em, .hero__t em { color: var(--gold); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--text-2); max-width: 46ch; }
.sec--ink .lead { color: var(--on-ink-2); }

/* ---------- botões ---------- */
.btn { --bg: var(--gold); --fg: var(--ink); display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 24px; border: 0; border-radius: var(--r-1); background: var(--bg); color: var(--fg); font-family: var(--f-body); font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background var(--d-fast) var(--e2), color var(--d-fast) var(--e2), transform var(--d-fast) var(--e2); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; transition: transform var(--d-ui) var(--e); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.975); }
.btn--gold:hover { --bg: var(--gold-hi); }
.btn--ink { --bg: var(--ink); --fg: var(--on-ink); }
.btn--ink svg { stroke: var(--gold); }
.btn--ink:hover { --bg: #23221F; }
.btn--sm { min-height: 44px; padding: 0 16px 0 18px; font-size: .88rem; gap: 10px; }
.btn--lg { min-height: 60px; padding: 0 28px 0 30px; font-size: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--text); }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform var(--d-ui) var(--e); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--d-ui) var(--e); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow--light { color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); color: var(--text); transition: background var(--d-ui) var(--e2), transform var(--d-ui) var(--e2), box-shadow var(--d-ui) var(--e2), color var(--d-ui) var(--e2); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.hdr__logo { flex: none; display: block; position: relative; width: 172px; height: 41px; }
.hdr__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity var(--d-ui) var(--e2); }
.hdr__logo .logo--claro { opacity: 0; }
.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.hdr__nav a[data-nav] { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; letter-spacing: .01em; text-decoration: none; color: inherit; transition: color var(--d-fast) var(--e2); }
.hdr__nav a[data-nav]:hover, .hdr__nav a[aria-current] { color: var(--gold-ink); }
.hdr__menu-cta, .hdr__menu-foot { display: none; }
.hdr__burger { display: none; }
/* estado sólido (fora do hero): papel translúcido */
.hdr.is-solid { background: rgba(244, 241, 234, .94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* sobre o hero: transparente, logo e links claros */
.hdr.is-top { color: #fff; }
.hdr.is-top::before { content: ''; position: absolute; inset: 0 0 -56px; background: linear-gradient(180deg, rgba(8, 14, 24, .68) 0%, rgba(8, 14, 24, .38) 55%, rgba(8, 14, 24, 0) 100%); pointer-events: none; z-index: -1; }
.hdr.is-top .hdr__nav a[data-nav] { text-shadow: 0 1px 12px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .5); }
.hdr.is-top .logo--claro { opacity: 1; }
.hdr.is-top .logo--escuro { opacity: 0; }
.hdr.is-top .hdr__nav a[data-nav]:hover, .hdr.is-top .hdr__nav a[aria-current] { color: var(--gold); }
.hdr.is-hidden { transform: translateY(-100%); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 32%; transform-origin: 62% 40%; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10, 10, 9, .9) 0%, rgba(10, 10, 9, .74) 28%, rgba(10, 10, 9, .4) 48%, rgba(10, 10, 9, 0) 66%),
    linear-gradient(90deg, rgba(10, 10, 9, .55) 0%, rgba(10, 10, 9, .2) 42%, rgba(10, 10, 9, 0) 64%); }
.hero__in { position: relative; padding-top: calc(var(--hdr) + 40px); padding-bottom: clamp(40px, 8.5vh, 88px); }
.hero__t { font-family: var(--f-display); font-weight: 600; font-size: var(--t-hero); line-height: var(--lh-tight); letter-spacing: -.028em; max-width: 13.5em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 22px 56px; margin-top: clamp(22px, 3.6vh, 40px); }
.hero__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.hero__cap { position: absolute; right: var(--gutter); top: calc(var(--hdr) + 22px); margin: 0; padding: 7px 12px 6px; background: rgba(12, 12, 11, .62); color: rgba(255, 255, 255, .9); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
@media (min-width: 1400px) { .hero__cap { right: calc((100vw - var(--wrap)) / 2); } }

/* ==========================================================================
   Casas entregues (portfólio: só os trabalhos)
   ========================================================================== */
.casas { padding: clamp(84px, 12vh, 132px) 0 clamp(56px, 9vh, 112px); background: var(--paper); }
.casas__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.casa { position: relative; display: block; overflow: hidden; background: var(--paper-3); color: #fff; text-decoration: none; aspect-ratio: 3 / 5; max-height: calc(100svh - 180px); min-height: 360px; }
.casa--lg { aspect-ratio: auto; }
/* aspect-ratio + min-height transferiria largura mínima: trava em 0 para não estourar em 320px */
.casas__grid > *, .obra__grid > *, .det__grid > * { min-width: 0; width: 100%; }
.obra-card__fig { min-width: 0; }
.casa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e); }
.casa:hover img, .casa:focus-visible img { transform: scale(1.045); }
/* véu no ângulo do Δ (53,5°): desce em diagonal no hover */
.casa__veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 12, 11, .9) 0%, rgba(12, 12, 11, .72) 22%, rgba(12, 12, 11, .2) 46%, rgba(12, 12, 11, 0) 60%), linear-gradient(143.5deg, rgba(12, 12, 11, 0) 40%, rgba(12, 12, 11, .5) 100%); opacity: 0; transition: opacity .6s var(--e); }
.casa__info { position: absolute; left: clamp(18px, 2vw, 28px); right: 80px; bottom: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--e), transform .6s var(--e); }
.casa__t { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + .9vw, 1.9rem); line-height: 1.05; letter-spacing: -.015em; }
.casa__m { font-size: .86rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .86); }
.casa__zoom { position: absolute; right: clamp(16px, 2vw, 26px); bottom: clamp(16px, 2vw, 26px); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-round); background: var(--gold); color: var(--ink); opacity: 0; transform: scale(.7); transition: opacity .5s var(--e), transform .5s var(--e); }
.casa__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.casa:hover .casa__veil, .casa:focus-visible .casa__veil { opacity: 1; }
.casa:hover .casa__info, .casa:focus-visible .casa__info { opacity: 1; transform: none; }
.casa:hover .casa__zoom, .casa:focus-visible .casa__zoom { opacity: 1; transform: none; }
.casa:focus-visible { outline-offset: 4px; }
/* toque: sem hover, a identificação fica visível */
@media (hover: none) {
  .casa__veil, .casa__info, .casa__zoom { opacity: 1; transform: none; }
  .casa__zoom { width: 40px; height: 40px; }
}

/* ==========================================================================
   A Delta (ink)
   ========================================================================== */
.sec--ink { background: var(--ink); color: var(--on-ink); }
.delta { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: clamp(88px, 12vh, 128px) 0 clamp(56px, 9vh, 104px); }
.malha { position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: cover; }
.delta .malha { inset: 0 0 0 38%; background-image: url('../patterns/malha-delta-ouro.svg'); opacity: .1; -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000 0%, transparent 72%); mask-image: radial-gradient(70% 80% at 80% 30%, #000 0%, transparent 72%); }
.delta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.delta .h2 { font-size: clamp(2.2rem, 1rem + 3.9vw, 4.6rem); line-height: 1.0; max-width: 11em; }
.delta__p { margin-top: clamp(18px, 3vh, 30px); max-width: 50ch; color: var(--on-ink-2); font-size: var(--t-lead); line-height: 1.6; }
.ficha { margin-top: clamp(22px, 3.6vh, 40px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px clamp(28px, 4vw, 56px); }
.ficha > div { display: flex; flex-direction: column; gap: 4px; }
.ficha dt { font-size: .9rem; font-weight: 700; color: var(--gold); }
.ficha dd { font-size: 1.05rem; line-height: 1.45; color: var(--on-ink); max-width: 34ch; }
.ficha > div:first-child dd { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.delta__cta { margin-top: clamp(22px, 3.6vh, 38px); }
.delta__fig { position: relative; aspect-ratio: 11 / 14; max-height: calc(100svh - 190px); width: 100%; overflow: hidden; background: var(--ink-2); justify-self: end; }
.delta__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Detalhes (mosaico de materiais)
   ========================================================================== */
.det { background: var(--paper-2); padding: clamp(80px, 11vh, 124px) 0 clamp(40px, 6vh, 88px); min-height: 100svh; display: flex; align-items: center; }
.det__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(22px, 4vh, 44px); }
.det__head .h2 { max-width: 12em; }
.det__p { color: var(--text-2); font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; justify-self: end; text-wrap: pretty; }
.det__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(340px, calc(100svh - 360px), 620px); }
.tile { position: relative; overflow: hidden; background: var(--paper-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e); }
.tile:hover img { transform: scale(1.04); }
.tile--a { grid-row: 1 / 3; }
.tile--a img { object-position: 50% 88%; }
.tile--d { grid-column: 2 / 4; }
.tile--e { grid-column: 4; grid-row: 1 / 3; }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px 8px; background: var(--paper); color: var(--text); max-width: calc(100% - 24px); }
.tile figcaption b { font-size: .9rem; line-height: 1.2; }
.tile figcaption span { font-size: .76rem; color: var(--text-2); line-height: 1.3; }

/* ==========================================================================
   Faixa (terreno)
   ========================================================================== */
.faixa { position: relative; min-height: 88svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.faixa__media { position: absolute; inset: -9% 0; z-index: -2; }
.faixa__media picture, .faixa__media img { width: 100%; height: 100%; }
.faixa__media img { object-fit: cover; object-position: 50% 45%; }
.faixa__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 9, .8) 0%, rgba(10, 10, 9, .58) 34%, rgba(10, 10, 9, 0) 66%); }
.faixa__in { padding-top: clamp(80px, 10vh, 120px); padding-bottom: clamp(56px, 9vh, 100px); }
.faixa .h2 { max-width: 10.5em; }
.faixa p { margin-top: 18px; max-width: 36ch; font-size: var(--t-lead); color: rgba(255, 255, 255, .9); }
.faixa .btn { margin-top: clamp(22px, 3.6vh, 36px); }

/* ==========================================================================
   Obra completa (lista tipográfica)
   ========================================================================== */
.esc { padding: clamp(80px, 11vh, 124px) 0 clamp(44px, 7vh, 96px); min-height: 100svh; display: flex; align-items: center; }
.esc__grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.esc__head .h2 { font-size: var(--t-h2-sm); max-width: 10em; }
.esc__head .lead { margin-top: 18px; }
.esc__head .btn { margin-top: clamp(22px, 3.6vh, 36px); }
.esc__list { border-top: 1px solid var(--line-strong); }
.frente { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(10px, 1.7vh, 18px) 0; border-bottom: 1px solid var(--line); }
.frente h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; transition: transform var(--d-ui) var(--e); }
.frente p { margin-top: 4px; font-size: .95rem; line-height: 1.5; color: var(--text-2); max-width: 54ch; }
.frente__img { width: clamp(84px, min(10vw, 17vh), 148px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.frente__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .9s var(--e), filter .6s var(--e2); }
.frente:hover h3 { transform: translateX(6px); }
.frente:hover .frente__img img { transform: scale(1.08); filter: none; }

/* ==========================================================================
   Em obra (ink)
   ========================================================================== */
.obra { padding: clamp(80px, 11vh, 124px) 0 clamp(44px, 7vh, 96px); min-height: 100svh; display: flex; align-items: center; }
.obra__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(22px, 4vh, 44px); }
.obra__head .h2 { font-size: var(--t-h2-sm); max-width: 13em; }
.obra__head .lead { justify-self: end; max-width: 38ch; }
.obra__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.obra-card { display: flex; flex-direction: column; text-decoration: none; color: var(--on-ink); background: var(--ink-2); }
.obra-card__fig { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; max-height: calc(100svh - 492px); min-height: 200px; }
.obra-card__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e); }
.obra-card:hover .obra-card__fig img, .obra-card:focus-visible .obra-card__fig img { transform: scale(1.04); }
.obra-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 16px 20px; }
.obra-card__bar b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.obra-card__bar small { display: block; margin-top: 3px; font-size: .84rem; color: var(--on-ink-2); }
.obra-card__ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-round); border: 1px solid rgba(212, 182, 117, .55); color: var(--gold); transition: background var(--d-fast) var(--e2), color var(--d-fast) var(--e2); }
.obra-card__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.obra-card:hover .obra-card__ico, .obra-card:focus-visible .obra-card__ico { background: var(--gold); color: var(--ink); }
.obra__cta { margin-top: clamp(22px, 3.6vh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.obra__cta p { color: var(--on-ink-2); font-size: .95rem; }

/* ==========================================================================
   Contato (CTA final)
   ========================================================================== */
.cta { position: relative; overflow: hidden; padding: clamp(96px, 13vh, 140px) 0 clamp(56px, 9vh, 96px); min-height: 100svh; display: flex; align-items: center; }
.cta .malha { inset: 0 0 0 44%; background-image: url('../patterns/malha-delta-tinta.svg'); opacity: .07; -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 80%); mask-image: linear-gradient(270deg, #000 0%, transparent 80%); }
.cta .wrap { position: relative; }
.cta__sym { position: absolute; right: var(--gutter); top: -8px; width: min(30vw, 400px); height: auto; pointer-events: none; opacity: .55; }
.cta__sym polyline, .cta__sym polygon { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.cta__sym .g { stroke: var(--gold); }
.cta__sym .k { stroke: var(--gold-ink); }
.cta__t { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 1rem + 6vw, 6.8rem); line-height: .96; letter-spacing: -.035em; max-width: 9.5em; text-wrap: balance; }
.cta__row { margin-top: clamp(24px, 4.4vh, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.cta__row p { font-size: var(--t-lead); color: var(--text-2); max-width: 38ch; line-height: 1.5; }
.cta__cells { margin-top: clamp(32px, 6vh, 72px); display: flex; flex-wrap: wrap; gap: 20px clamp(40px, 7vw, 112px); }
.cta__cells li { padding: 0; }
.cell__k { display: block; font-size: .9rem; font-weight: 700; color: var(--gold-ink); margin-bottom: 6px; }
.cell__v { font-size: 1.05rem; line-height: 1.5; color: var(--text); }
a.cell__v { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: -8px; font-weight: 700; text-decoration: none; }
a.cell__v svg { width: 20px; height: 20px; fill: currentColor; }
a.cell__v:hover { color: var(--gold-ink); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.foot { background: var(--ink); color: var(--on-ink-2); padding: clamp(56px, 9vh, 88px) 0 28px; font-size: .92rem; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-ink); }
.foot__brand img { width: 124px; height: auto; }
.foot__brand p { margin-top: 18px; max-width: 30ch; line-height: 1.55; }
.foot h2 { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot li + li { margin-top: 4px; }
.foot a, .foot .linklike { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-ink); text-decoration: none; }
.foot a:hover, .foot .linklike:hover { color: var(--gold); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; font-size: .82rem; }

/* ==========================================================================
   Lightbox (galeria por obra)
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 800; background: rgba(8, 8, 7, .96); color: var(--on-ink); display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.lb[hidden] { display: none; }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); min-width: 0; }
.lb__t { font-weight: 700; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__c { flex: none; white-space: nowrap; font-size: .88rem; color: var(--on-ink-2); font-variant-numeric: tabular-nums; margin-left: auto; margin-right: 10px; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 76px 24px; min-height: 0; }
.lb__img { max-width: 100%; max-height: calc(100svh - 110px); width: auto; height: auto; object-fit: contain; transition: opacity .3s var(--e2); }
.lb__img.is-loading { opacity: .25; }
.lb__btn { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-round); border: 1px solid rgba(243, 240, 233, .28); background: rgba(12, 12, 11, .5); color: var(--on-ink); cursor: pointer; transition: background var(--d-fast) var(--e2), color var(--d-fast) var(--e2), border-color var(--d-fast) var(--e2); }
.lb__btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb.is-single .lb__prev, .lb.is-single .lb__next, .lb.is-single .lb__c { display: none; }

/* ==========================================================================
   Abertura (símbolo Δ desenhado, 1x por sessão)
   ========================================================================== */
.intro { display: none; }
html.is-opening .intro { display: grid; position: fixed; inset: 0; z-index: 900; place-items: center; background: var(--ink); animation: intro-out .7s var(--e) 1s forwards; }
.intro svg { width: min(38vw, 190px); height: auto; overflow: visible; }
.intro .l { fill: none; stroke-width: 5; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .9s var(--e) forwards; }
.intro .l--g { stroke: var(--gold); animation-delay: .12s; }
.intro .l--w { stroke: var(--on-ink); }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }
html.is-opening body { overflow: hidden; }

/* ==========================================================================
   LGPD: aviso de cookies e política (modal)
   ========================================================================== */
.cookie-notice { position: fixed; left: 20px; bottom: 20px; z-index: 700; width: calc(100% - 40px); max-width: 420px; padding: 20px 22px; background: var(--ink); color: var(--on-ink-2); border: 1px solid var(--line-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transform: translateY(calc(100% + 32px)); transition: transform .5s var(--e); }
.cookie-notice.show { transform: none; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { font-size: .86rem; line-height: 1.6; }
.cookie-notice a, .cookie-notice p button { color: var(--gold); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-btn { flex: 1; min-height: 44px; padding: 0 14px; border-radius: var(--r-1); font-size: .84rem; font-weight: 700; cursor: pointer; }
.cookie-btn--accept { background: var(--gold); color: var(--ink); border: 0; }
.cookie-btn--accept:hover { background: var(--gold-hi); }
.cookie-btn--decline { background: transparent; color: var(--on-ink); border: 1px solid rgba(243, 240, 233, .3); }
.cookie-btn--decline:hover { border-color: var(--on-ink); }
html { scroll-padding-bottom: var(--cookie-h, 0px); }
/* cookies sempre à esquerda: o canto direito é do launcher do widget CRM */

.privacy-overlay { position: fixed; inset: 0; z-index: 850; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 8, 7, .78); opacity: 0; transition: opacity .3s var(--e2); }
.privacy-overlay[hidden] { display: none; }
.privacy-overlay.open { opacity: 1; }
.privacy-modal { width: 100%; max-width: 680px; max-height: 86vh; display: flex; flex-direction: column; background: var(--paper); color: var(--text); transform: translateY(18px); transition: transform .4s var(--e); }
.privacy-overlay.open .privacy-modal { transform: none; }
.privacy-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.privacy-header h2 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.privacy-close { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--text); }
.privacy-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.privacy-body { overflow-y: auto; padding: 22px 24px 28px; font-size: .95rem; line-height: 1.7; color: var(--text-2); }
.privacy-body > * { max-width: 56ch; }
.privacy-body h3 { margin: 20px 0 6px; font-size: .95rem; color: var(--text); }
.privacy-body p, .privacy-body ul { margin-bottom: 10px; }
.privacy-body ul { padding-left: 18px; list-style: disc; }
.privacy-body a { color: var(--gold-ink); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .hdr__nav ul { gap: 16px; }
  .hdr__nav a[data-nav] { font-size: .86rem; }
}
@media (max-width: 1024px) {
  :root { --hdr: 68px; }
  .hdr__logo { width: 150px; height: 36px; }
  .hdr__cta { display: none; }
  .hdr__burger { display: grid; place-items: center; margin-left: auto; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; cursor: pointer; color: inherit; position: relative; z-index: 2; }
  .hdr__burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; transition: transform var(--d-ui) var(--e), top var(--d-ui) var(--e); }
  .hdr__burger span:nth-child(1) { top: 19px; }
  .hdr__burger span:nth-child(2) { top: 28px; }
  .hdr.is-menu .hdr__burger span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
  .hdr.is-menu .hdr__burger span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }
  .hdr__nav { position: fixed; inset: 0; z-index: 1; margin: 0; padding: calc(var(--hdr) + 28px) var(--gutter) 32px; background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity var(--d-ui) var(--e2), visibility 0s linear var(--d-ui); }
  .hdr.is-menu .hdr__nav { visibility: visible; opacity: 1; transition: opacity var(--d-ui) var(--e2); }
  .hdr__nav ul { flex-direction: column; gap: 0; }
  .hdr__nav li { border-bottom: 1px solid var(--line-ink); }
  .hdr__nav a[data-nav] { min-height: 58px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 5.4vw, 2rem); letter-spacing: -.01em; width: 100%; }
  .hdr__nav a[data-nav]:hover, .hdr__nav a[aria-current] { color: var(--gold); }
  .hdr__menu-cta { display: inline-flex; margin-top: 28px; align-self: flex-start; }
  .hdr__menu-foot { display: block; margin-top: auto; padding-top: 28px; font-size: .86rem; color: var(--on-ink-2); }
  .hdr.is-menu { color: var(--on-ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
  .hdr.is-menu::before { display: none; }
  .hdr.is-menu .logo--claro { opacity: 1; }
  .hdr.is-menu .logo--escuro { opacity: 0; }
  .hdr__logo { position: relative; z-index: 2; }

  .delta__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
  .esc__grid { grid-template-columns: 1fr; gap: 28px; }
  .esc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; }
  .esc__head .eyebrow, .esc__head .h2, .esc__head .lead { grid-column: 1; }
  .esc__head .btn { grid-column: 2; grid-row: 2 / 4; margin: 0; align-self: end; }
  .esc__head .h2 { max-width: 16em; }
  .cta__sym { display: none; }
  .casas { padding: 88px 0 48px; }
  .casas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casa { aspect-ratio: 4 / 5; max-height: calc(50svh - 70px); min-height: 220px; }
  .casa--lg { grid-column: 1 / -1; aspect-ratio: 16 / 9; max-height: calc(46svh - 60px); }
  .delta { height: 100svh; min-height: 0; align-items: stretch; }
  .delta__grid { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 32px); height: 100%; }
  .delta__txt { flex: none; }
  .delta__fig { flex: 1 1 0; min-height: 0; max-height: none; aspect-ratio: auto; justify-self: stretch; }
  .delta__fig img { object-position: 50% 72%; }
  .delta__fig.is-tiny { display: none; }
  .delta.is-auto { height: auto; min-height: 100svh; }
  .delta.is-auto .delta__grid { height: auto; }
  .det__head, .obra__head { grid-template-columns: 1fr; }
  .det__p, .obra__head .lead { justify-self: start; }
  .det__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); height: clamp(300px, calc(100svh - 410px), 640px); }
  .tile--a { grid-row: 1 / 3; grid-column: 1; }
  .tile--b { grid-column: 2; grid-row: 1; }
  .tile--c { grid-column: 2; grid-row: 2; }
  .tile--d { grid-column: 1; grid-row: 3; }
  .tile--e { grid-column: 2; grid-row: 3; }
  .obra-card__fig { max-height: calc(50svh - 190px); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .hero__cap { top: auto; bottom: auto; top: calc(var(--hdr) + 14px); right: var(--gutter); font-size: .68rem; }
}
@media (max-width: 700px) {
  .hero__media img { object-position: 50% 0%; }
  .hero__veil { background: linear-gradient(0deg, rgba(10, 10, 9, .92) 0%, rgba(10, 10, 9, .78) 22%, rgba(10, 10, 9, .3) 38%, rgba(10, 10, 9, 0) 50%); }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero { align-items: stretch; }
  .hero__in { display: flex; flex-direction: column; min-height: 100svh; padding-top: calc(var(--hdr) + clamp(14px, 3vh, 28px)); }
  .hero__foot { margin-top: auto; }
  .hero__veil { background:
    linear-gradient(180deg, rgba(8, 16, 30, .5) 0%, rgba(8, 16, 30, .32) 30%, rgba(8, 16, 30, 0) 44%),
    linear-gradient(0deg, rgba(10, 10, 9, .92) 0%, rgba(10, 10, 9, .78) 24%, rgba(10, 10, 9, .3) 38%, rgba(10, 10, 9, 0) 50%); }
  .obra__grid { gap: 8px; }
  .obra-card__fig { aspect-ratio: 4 / 5; max-height: calc(100svh - 520px); min-height: 150px; }
  .obra-card__bar { padding: 12px 12px 14px 14px; align-items: flex-end; }
  .obra-card__bar b { font-size: 1rem; }
  .obra-card__ico { width: 34px; height: 34px; }
  .faixa__veil { background: linear-gradient(0deg, rgba(10, 10, 9, .86) 0%, rgba(10, 10, 9, .6) 45%, rgba(10, 10, 9, .15) 75%); }
  .faixa { align-items: flex-end; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .btn { padding: 0 18px 0 20px; }
  .hero__in { padding-bottom: 32px; }
  .hero__foot { gap: 18px; }
  .hero__actions { gap: 8px 20px; }
  .hero__cap { display: none; }
  .casas { padding-top: 84px; }
  .casas__grid { gap: 8px; }
  .casa { max-height: calc(50svh - 64px); min-height: 190px; }
  .casa--lg { max-height: calc(40svh - 40px); }
  .casa__info { right: 50px; left: 12px; bottom: 12px; }
  .casa__t { font-size: .98rem; }
  .casa__m { display: none; }
  .casa--lg .casa__m { display: block; font-size: .76rem; }
  .casa__zoom { right: 10px; bottom: 10px; width: 36px; height: 36px; }
  .hero__t { font-size: clamp(2.05rem, 1.2rem + 3.6vw, 2.5rem); }
  .hero__lead { font-size: 1rem; }
  .delta { padding: 76px 0 28px; }
  .delta .h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.3rem); }
  .delta__p { font-size: .98rem; line-height: 1.55; margin-top: 14px; }
  .ficha { margin-top: 16px; }
  .ficha > div { grid-template-columns: 1fr; gap: 1px; padding: 8px 0; }
  .ficha dd { font-size: .94rem; line-height: 1.45; }
  .delta__cta { margin-top: 18px; }
  .h2 { font-size: clamp(1.7rem, 1.1rem + 2.8vw, 2.1rem); }
  .eyebrow { margin-bottom: 10px; font-size: .72rem; }
  .det { padding: 76px 0 28px; }
  .det__grid { height: clamp(236px, calc(100svh - 372px), 520px); }
  .det__head { margin-bottom: 16px; gap: 10px; }
  .det__p { font-size: .95rem; }
  .esc { padding: 78px 0 32px; }
  .esc__head .lead { display: none; }
  .esc__head .btn { display: none; }
  .esc__grid { gap: 18px; }
  .frente { padding: 10px 0; }
  .frente h3 { font-size: 1.02rem; }
  .frente p { font-size: .82rem; line-height: 1.4; margin-top: 2px; }
  .frente__img { width: 64px; }
  .obra { padding: 78px 0 32px; }
  .obra__head { margin-bottom: 16px; }
  .obra__head .lead { font-size: .95rem; }
  .obra__cta { margin-top: 16px; }
  .cta { padding: 84px 0 36px; }
  .cta__row { margin-top: 18px; gap: 16px; }
  .cta__row p { font-size: 1rem; }
  .cta__cells { margin-top: 24px; }
  .cta__cells { gap: 14px 32px; }
  .det__grid { gap: 6px; }
  .tile figcaption { left: 6px; bottom: 6px; padding: 6px 8px 5px; max-width: calc(100% - 12px); }
  .tile figcaption b { font-size: .78rem; }
  .tile figcaption span { display: none; }
  .frente { gap: 14px; }
  .frente__img { width: 74px; }
  .frente p { font-size: .88rem; }
  .esc__head { display: block; }
  .esc__head .btn { margin-top: 20px; }
  /* bottom 88px: fica acima do launcher do widget CRM (64px a 16px da base), que senão cobre "Aceitar cookies" */
  .cookie-notice { left: 10px; right: 10px; bottom: 88px; width: auto; max-width: none; padding: 14px 14px 12px; }
  .cookie-notice p { font-size: .8rem; line-height: 1.45; }
  .cookie-actions { margin-top: 10px; gap: 8px; }
  .cookie-btn { min-height: 44px; padding: 0 10px; font-size: .8rem; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
  .lb__stage { padding: 0 8px 72px; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
  .lb__img { max-height: calc(100svh - 150px); }
}
@media (max-width: 380px) {
  .delta__p { font-size: .9rem; }
  .ficha dd { font-size: .86rem; }
  .ficha > div { padding: 6px 0; }
  .frente p { font-size: .78rem; }
  .frente { padding: 7px 0; }
  .obra__head .lead { font-size: .86rem; line-height: 1.45; }
  .cta__t { font-size: 2.3rem; }
  .cta__cells li { padding-top: 10px; }
  .hdr__logo { width: 136px; height: 33px; }
  .btn { font-size: .9rem; }
}

/* ==========================================================================
   Movimento (sistema de movimento BuildV): tudo atrás do gate
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion] [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(5px); transition: opacity .9s var(--e), transform .9s var(--e), filter .9s var(--e); }
  html[data-motion] [data-reveal="soft"] { transform: none; filter: none; transition: opacity 1s var(--e); }
  html[data-motion] [data-reveal="fig"] { transform: scale(.965); filter: blur(4px); }
  html[data-motion] [data-reveal][data-rv="left"] { transform: translate3d(-26px, 0, 0); }
  html[data-motion] [data-reveal][data-rv="right"] { transform: translate3d(26px, 0, 0); }
  /* cortina no ângulo do Δ (53,5°): a borda diagonal atravessa a imagem */
  html[data-motion] [data-reveal="tri"] { opacity: 1; filter: none; transform: none; clip-path: polygon(0 0, 0 0, -74% 100%, -74% 100%); transition: clip-path 1.25s var(--e); }
  html[data-motion] [data-reveal="tri"] img { transform: scale(1.08); transition: transform 1.6s var(--e); }
  html[data-motion] [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
  html[data-motion] [data-reveal="tri"].is-in { clip-path: polygon(0 0, 174% 0, 100% 100%, 0 100%); }
  html[data-motion] [data-reveal="tri"].is-in img { transform: none; }
  html[data-motion] .casa[data-reveal="tri"].is-done img { transition: transform 1.1s var(--e); }
  html[data-motion] .casa[data-reveal="tri"].is-done:hover img, html[data-motion] .casa[data-reveal="tri"].is-done:focus-visible img { transform: scale(1.045); }

  /* título palavra por palavra */
  html[data-motion] [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  html[data-motion] [data-split] .w > i { display: inline-block; font-style: normal; transform: translate3d(0, 108%, 0); transition: transform .9s var(--e); }
  html[data-motion] [data-split].is-in .w > i { transform: none; }

  /* hero: a foto assenta */
  html[data-motion] .hero__media img { transform: scale(1.07); transition: transform 2s var(--e); }
  html[data-motion] .hero.is-ready .hero__media img { transform: none; }
  html[data-motion] .hero__cap { opacity: 0; transition: opacity 1s var(--e) .9s; }
  html[data-motion] .hero.is-ready .hero__cap { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .casa:hover img, .tile:hover img, .obra-card:hover .obra-card__fig img, .frente:hover .frente__img img { transform: none; }
}
