/* ============================================================
   BÜCH ENGENHARIA / styles.css
   Institucional-corporativo, monocromático verde.
   Depende de tokens.css (paleta + tipografia + escala).
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;                 /* NUNCA overflow-x:hidden no body */
  scroll-behavior: smooth;          /* scroll nativo, sem momentum/Lenis */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--verde-500); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); position: relative; }
.section--deep { background: var(--bg-deep); color: var(--on-deep); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--areia-50); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.section--deep .eyebrow { color: var(--on-deep-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); }
.section__head h2 { font-size: var(--step-3); font-weight: 700; }
.section__lead { margin-top: 20px; color: var(--text-soft); font-size: var(--step-1); line-height: 1.6; }
.section--deep .section__lead { color: var(--on-deep-soft); }

.rule { height: 1px; background: var(--line); border: 0; }
.section--deep .rule { background: var(--line-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--verde-700); color: var(--areia-100); }
.btn--primary:hover { background: var(--verde-600); }
.btn--on-deep { background: var(--areia-100); color: var(--verde-800); }
.btn--on-deep:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--verde-800); border-color: var(--verde-700); }
.btn--ghost:hover { background: var(--verde-700); color: var(--areia-100); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center;
  height: 72px;
}
/* Fundo do header em "cortina": desce do topo (scaleY) quando fica sólido */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--areia-50) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(6,39,34,.07);
  transform: scaleY(0); transform-origin: top center;
  transition: transform .5s cubic-bezier(.5,0,.15,1);
}
.site-header--solid::before { transform: scaleY(1); }
.site-header .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (prefers-reduced-motion: reduce) {
  .site-header::before { transition: none; }
}
/* Header sobre hero escuro (topo da página) usa logo areia */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
@media (max-width: 560px) { .brand img { height: 30px; } }
.brand__light { display: block; }
.brand__dark  { display: none; }
.site-header--solid .brand__light { display: none; }
.site-header--solid .brand__dark  { display: block; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  color: var(--on-deep); opacity: .85; transition: opacity .2s ease;
}
.nav a:hover { opacity: 1; }
.site-header--solid .nav a { color: var(--text); opacity: .8; }
.site-header--solid .nav a:hover { opacity: 1; }
.header__cta { flex: 0 0 auto; }
.header__cta .btn { padding: 12px 22px; }
/* CTA no header sobre hero escuro */
.site-header:not(.site-header--solid) .header__cta .btn { background: var(--areia-100); color: var(--verde-800); }

.nav-toggle { display: none; }

/* ---------- Off-canvas (<=900px) ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg-deep); color: var(--on-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 88px 32px 40px;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mobile-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-2);
  color: var(--areia-100); padding: 12px 0; border-bottom: 1px solid var(--line-deep);
}
.mobile-nav .btn { margin-top: 26px; align-self: flex-start; }
.mobile-nav__close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-deep); border-radius: var(--radius);
  color: var(--areia-100);
}

/* ---------- HERO ---------- */
/* PLACEHOLDER PROVISÓRIO: trocar por imagem final do handoff.
   Slot: ver comentário no HTML de cada página (hero-apartamento.webp / hero-residencial.webp). */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: var(--on-deep);
  overflow: clip;
  padding-top: 96px;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(42,106,94,.42) 0%, rgba(9,61,53,0) 55%),
    radial-gradient(90% 70% at 12% 92%, rgba(15,76,66,.55) 0%, rgba(6,39,34,0) 60%),
    linear-gradient(160deg, var(--verde-700) 0%, var(--verde-800) 100%);
}
/* símbolo 3D como marca d'água grande de baixa opacidade */
.hero__watermark {
  position: absolute; z-index: 1;
  right: -6%; bottom: -8%;
  width: min(62vw, 720px); height: auto;
  opacity: .10; pointer-events: none;
  filter: saturate(.6);
}
/* linha/grafismo arquitetônico sutil */
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, var(--line-deep) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-deep) 1px, transparent 1px);
  background-size: clamp(80px, 12vw, 150px) clamp(80px, 12vw, 150px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 75%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(6,39,34,.30) 0%, rgba(6,39,34,.10) 40%, rgba(6,39,34,.72) 100%);
}
.hero .container { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(2.4rem, 1.5rem + 3vw, 4rem); }
.hero__inner { max-width: 900px; }
.hero__eyebrow { color: var(--on-deep-soft); }
.hero h1 {
  font-size: var(--step-5); font-weight: 800;
  letter-spacing: -0.01em; color: var(--areia-50);
  max-width: 15ch;
}
.hero__sub { margin-top: 22px; max-width: 60ch; font-size: var(--step-1); color: var(--on-deep-soft); line-height: 1.55; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* faixa de 3 números ancorada no rodapé do hero */
.hero__proof {
  position: relative; z-index: 3;
  margin-top: clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
  border-top: 1px solid var(--line-deep);
  padding-top: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hero__proof .stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--areia-50); line-height: 1; }
.hero__proof .stat__label { margin-top: 8px; font-size: var(--step--1); color: var(--on-deep-soft); letter-spacing: .01em; }

/* ---------- DOR / identificação (split editorial) ---------- */
.pain__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.pain__title { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.01em; }
.pain__body p { font-size: var(--step-1); line-height: 1.65; color: var(--text-soft); }
.pain__mark { margin-top: 30px; }

/* ---------- Selo assinatura "CONFERIDO BÜCH" ---------- */
.seal {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
}
.section--deep .seal { border-color: var(--line-deep); background: rgba(227,224,215,.05); }
.seal__disc {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--verde-500); border-radius: 50%;
  color: var(--verde-600);
}
.section--deep .seal__disc { border-color: var(--areia-100); color: var(--areia-100); }
.seal__disc svg { width: 22px; height: 22px; }
.seal__text { display: flex; flex-direction: column; line-height: 1.2; }
.seal__text strong { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); letter-spacing: .16em; text-transform: uppercase; color: var(--verde-700); }
.section--deep .seal__text strong { color: var(--areia-50); }
.seal__text span { font-size: var(--step--1); color: var(--text-muted); letter-spacing: .02em; }
.section--deep .seal__text span { color: var(--on-deep-soft); }

/* ---------- DIFERENCIAIS = lista editorial numerada ---------- */
.diff__list { border-top: 1px solid var(--line); }
.diff__item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, .8rem + 2vw, 3.2rem);
  align-items: baseline;
  padding: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.diff__item:hover { padding-left: 12px; }
.diff__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--taupe-400); letter-spacing: .02em; }
.diff__item:hover .diff__num { color: var(--verde-600); }
.diff__text { font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 46ch; font-weight: 500; }

/* ---------- PROCESSO = timeline vertical (4 fiscalizações) ---------- */
.process__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.process__aside .seal { margin-top: 28px; }

.timeline { position: relative; padding-left: 40px; }
.timeline__track {
  position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line-deep); overflow: hidden;
}
.timeline__track::after {
  content: ""; position: absolute; inset: 0 0 auto 0; width: 100%;
  height: var(--draw, 0%); background: var(--areia-100);
  transition: height 1.1s cubic-bezier(.5,0,.2,1);
}
.tl-step { position: relative; padding-bottom: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__dot {
  position: absolute; left: -32px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--verde-800); border: 2px solid var(--areia-100);
}
.tl-step__k { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-soft); }
.tl-step__t { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--areia-50); margin-top: 6px; }
.tl-step__d { margin-top: 8px; color: var(--on-deep-soft); max-width: 52ch; }

/* ---------- PROVA = contadores ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 1rem + 1.6vw, 2.6rem);
}
.stat { padding: 4px 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); letter-spacing: -.02em; color: var(--verde-700); line-height: 1; }
.section--deep .stat__num { color: var(--areia-50); }
.stat__label { margin-top: 12px; font-size: var(--step-0); color: var(--text-soft); max-width: 22ch; }
.section--deep .stat__label { color: var(--on-deep-soft); }

/* ---------- COMPARATIVA = tabela 2 colunas ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: clip; background: var(--bg-elev); }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__cell { padding: clamp(1.2rem, .9rem + 1.2vw, 2rem) clamp(1.2rem, .9rem + 1.4vw, 2.4rem); }
.compare__cell--head { display: flex; flex-direction: column; gap: 6px; }
.compare__cell--a { color: var(--text-soft); border-right: 1px solid var(--line); }
.compare__cell--b { background: var(--verde-700); color: var(--areia-100); border-right: 0; }
.compare__cell--b.compare__cell--head { position: relative; }
.compare__label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.compare__cell--a .compare__label { color: var(--text); }
.compare__cell--b .compare__label { color: var(--areia-50); }
.compare__tag { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; }
.compare__cell--a .compare__tag { color: var(--text-muted); }
.compare__cell--b .compare__tag { color: var(--on-deep-soft); }
.compare__cell p { font-size: var(--step-0); line-height: 1.55; }

/* ---------- PORTFÓLIO = grade 3-up placeholder ---------- */
.portfolio__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, .6rem + 1.2vw, 1.6rem);
}
.pf-card {
  position: relative; grid-column: span 2;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: clip; background: var(--verde-700);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.pf-card__media { position: relative; display: block; aspect-ratio: 4 / 5; }
.pf-card__ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(42,106,94,.5) 0%, rgba(9,61,53,0) 60%),
    linear-gradient(160deg, var(--verde-700) 0%, var(--verde-800) 100%);
}
.pf-card__wm { position: absolute; right: -12%; bottom: -10%; width: 72%; opacity: .12; }
.pf-card__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 22px; color: var(--areia-100);
  background: linear-gradient(180deg, rgba(6,39,34,0) 0%, rgba(6,39,34,.78) 100%);
}
.pf-card__city { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-soft); }
.pf-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-top: 6px; color: var(--areia-50); }
/* rótulo clicável esticado via ::after (card = <article>, nunca <button> com bloco dentro) */
.pf-card__cta {
  position: static; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 0;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; color: var(--areia-100);
}
.pf-card__cta::after { content: ""; position: absolute; inset: 0; }
.portfolio__note { margin-top: 24px; font-size: var(--step--1); color: var(--text-muted); letter-spacing: .02em; }

/* ---------- FAQ ---------- */
.faq { max-width: none; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(1.1rem, .9rem + .8vw, 1.6rem) 0; text-align: left; background: transparent; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--text);
}
.faq__icon { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--verde-600); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.faq__icon::before { left: 4px; right: 4px; top: 11px; height: 2px; }
.faq__icon::after  { top: 4px; bottom: 4px; left: 11px; width: 2px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; height: 0; transition: height .34s ease; }
.faq__a-inner { padding: 0 0 clamp(1.1rem, .9rem + .8vw, 1.6rem); color: var(--text-soft); font-size: var(--step-0); line-height: 1.6; max-width: 68ch; }

/* ---------- Interstício (selo full-bleed com substância) ---------- */
.interstitial { text-align: center; }
.interstitial .container { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.interstitial p { max-width: 54ch; color: var(--on-deep-soft); font-size: var(--step-1); }

/* ---------- CTA final = passo a passo (3 etapas) + botão ---------- */
.cta-final { position: relative; overflow: clip; }
.cta-final__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(100% 80% at 82% 12%, rgba(42,106,94,.4) 0%, rgba(9,61,53,0) 58%),
    linear-gradient(160deg, var(--verde-700) 0%, var(--verde-800) 100%);
}
.cta-final__wm { display: none; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final__head { max-width: 700px; }
.cta-final__head h2 { font-size: var(--step-3); color: var(--areia-50); }
.cta-final__head p { margin-top: 18px; color: var(--on-deep-soft); font-size: var(--step-1); }
.steps {
  margin-top: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 1rem + 2vw, 3rem);
  position: relative;
}
.steps__line { position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line-deep); overflow: hidden; }
.steps__line::after { content: ""; position: absolute; inset: 0 auto 0 0; height: 100%; width: var(--draw, 0%); background: var(--areia-100); transition: width 1.2s cubic-bezier(.5,0,.2,1); }
.step { position: relative; }
.step__n {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--areia-100); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; color: var(--areia-50);
  background: var(--verde-800); position: relative; z-index: 1;
}
.step__t { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--areia-50); }
.step__d { margin-top: 8px; color: var(--on-deep-soft); font-size: var(--step-0); max-width: 34ch; }
.cta-final__actions { margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-800); color: var(--on-deep-soft); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.site-footer__brand img { height: 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 34ch; font-size: var(--step--1); color: var(--on-deep-soft); }
.site-footer__col h4 { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--areia-100); margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a, .site-footer__col span { font-size: var(--step--1); color: var(--on-deep-soft); }
.site-footer__col a:hover { color: var(--areia-100); }
.site-footer__bottom { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); padding-top: 22px; border-top: 1px solid var(--line-deep); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: var(--step--1); }
.site-footer__bottom a:hover { color: var(--areia-100); }

/* ---------- Cookie banner (canto inferior ESQUERDO) ---------- */
.cookie {
  position: fixed; left: 22px; bottom: 22px; z-index: 65;
  max-width: 380px;
  background: var(--verde-800); color: var(--on-deep-soft);
  border: 1px solid var(--line-deep); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-deep);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.5,0,.2,1);
}
.cookie[data-open="true"] { transform: translateY(0); }
.cookie h4 { font-family: var(--font-display); font-size: var(--step-0); color: var(--areia-50); margin-bottom: 8px; }
.cookie p { font-size: var(--step--1); line-height: 1.55; }
.cookie p a { color: var(--areia-100); text-decoration: underline; }
.cookie__actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { padding: 11px 18px; font-size: var(--step--1); }
.cookie__decline { background: transparent; color: var(--areia-100); border: 1px solid var(--line-deep); border-radius: var(--radius); padding: 11px 18px; font-weight: 600; font-size: var(--step--1); }
.cookie__decline:hover { border-color: var(--areia-100); }

/* ---------- Reveal (movimento) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- Privacidade (documento) ---------- */
.legal { padding-top: 120px; }
.legal__head h1 { font-size: var(--step-4); }
.legal__meta { margin-top: 14px; color: var(--text-muted); font-size: var(--step--1); }
.legal__body { max-width: var(--container-narrow); margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.legal__body h2 { font-size: var(--step-2); margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.legal__body h3 { font-size: var(--step-1); margin-top: 1.6rem; }
.legal__body p, .legal__body li { color: var(--text-soft); margin-top: 14px; line-height: 1.65; }
.legal__body ul { list-style: disc; padding-left: 22px; }
.legal__body a { color: var(--verde-600); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: transparent; border: 1px solid var(--line-deep); border-radius: var(--radius); color: var(--areia-100);
  }
  .site-header--solid .nav-toggle { border-color: var(--line); color: var(--verde-800); }

  .pain__grid { grid-template-columns: 1fr; gap: 26px; }
  .process__grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .hero__proof { gap: 18px; }
}

@media (max-width: 720px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .pf-card { grid-column: span 1; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell--a { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps__line { display: none; }
}

@media (max-width: 560px) {
  .hero__proof { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .hero__proof .stat { display: flex; align-items: baseline; gap: 12px; }
  .hero__proof .stat__label { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .diff__item { grid-template-columns: 1fr; gap: 8px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .timeline__track::after { height: 100% !important; }
  .steps__line::after { width: 100% !important; }
}

/* ---------- Fotos reais no hero (residencial finalizado) ---------- */
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero--photo .hero__media { display: none; }
.hero--photo .hero__grid { opacity: .16; }
.hero--photo .hero__overlay {
  background: linear-gradient(180deg, rgba(6,39,34,.55) 0%, rgba(6,39,34,.35) 38%, rgba(6,39,34,.82) 100%);
}
.hero--photo .hero__watermark { opacity: .07; }

/* ---------- Foto real nas faixas escuras (processo / cta) ---------- */
.section--deep.has-photo { position: relative; overflow: clip; }
.section--deep .deep-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: .22;
}
.section--deep.has-photo > .container { position: relative; z-index: 1; }

/* ---------- Portfólio com foto real ---------- */
.pf-card__media img.pf-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.pf-card:hover .pf-card__media img.pf-photo { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  background: rgba(6,39,34,.92); padding: clamp(16px,4vw,56px); }
.lb[data-open="true"] { display: flex; }
.lb__stage { margin: 0; max-width: min(1100px, 92vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; }
.lb__img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.lb__cap { color: var(--on-deep-soft); font-size: var(--step--1); text-align: center; letter-spacing: .04em; text-transform: uppercase; }
.lb__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--areia-100); font-size: 40px; line-height: 1; cursor: pointer; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid var(--line-deep);
  color: var(--areia-100); width: 52px; height: 52px; border-radius: 50%; font-size: 30px; cursor: pointer; transition: border-color .2s, background .2s; }
.lb__nav:hover { border-color: var(--areia-100); background: rgba(227,224,215,.08); }
.lb__prev { left: clamp(10px,3vw,34px); } .lb__next { right: clamp(10px,3vw,34px); }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--on-deep-soft); font-size: var(--step--1); letter-spacing: .1em; }
@media (max-width: 560px) { .lb__nav { width: 42px; height: 42px; font-size: 24px; } }

/* ============================================================
   Portfólio bento (editorial, mais autêntico e intuitivo)
   ============================================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(158px, 19vw, 214px);
  gap: clamp(.7rem, .4rem + .8vw, 1.1rem);
}
.pf-card {
  position: relative; grid-column: span 2; grid-row: span 1;
  border: 0; border-radius: var(--radius-lg); overflow: clip;
  background: var(--verde-800); cursor: pointer;
  transition: box-shadow .35s ease, transform .35s ease;
  transform: none;
}
.pf-card--feature { grid-column: span 4; grid-row: span 2; }
.pf-card:hover { transform: none; box-shadow: 0 24px 50px rgba(6,39,34,.28); }

.pf-card .pf-photo,
.pf-card__media img.pf-photo {   /* vence a regra antiga */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.001);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.pf-card:hover .pf-photo { transform: scale(1.055); }

.pf-card__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,39,34,0) 42%, rgba(6,39,34,.66) 100%);
  transition: background .4s ease;
}
.pf-card:hover .pf-card__veil {
  background: linear-gradient(180deg, rgba(6,39,34,.12) 12%, rgba(6,39,34,.74) 100%);
}
.pf-card__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; pointer-events: none;
  padding: clamp(14px, 1vw, 20px) clamp(16px, 1.2vw, 22px);
  transform: translateY(4px); transition: transform .4s ease;
}
.pf-card:hover .pf-card__cap { transform: translateY(0); }
.pf-card__cap .pf-card__city {
  display: block; font-size: var(--step--1); letter-spacing: .18em;
  text-transform: uppercase; color: var(--on-deep-soft);
  opacity: .0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.pf-card:hover .pf-card__cap .pf-card__city { opacity: .9; transform: translateY(0); }
.pf-card__cap .pf-card__title {
  font-family: var(--font-display); font-weight: 700; margin-top: 4px;
  font-size: var(--step-0); color: var(--areia-50); line-height: 1.15;
}
.pf-card--feature .pf-card__cap .pf-card__title { font-size: var(--step-2); }
.pf-card--feature .pf-card__cap .pf-card__city { opacity: .9; transform: none; }

.pf-card__expand {
  position: absolute; top: 13px; right: 13px; z-index: 2; pointer-events: none;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--areia-100); background: rgba(6,39,34,.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--line-deep);
  opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .3s ease;
}
.pf-card:hover .pf-card__expand { opacity: 1; transform: scale(1); }

.pf-card__cta {
  position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  font-size: 0; color: transparent;
}
.pf-card__cta::after { content: none; }
.pf-card__cta:focus-visible { outline: 2px solid var(--areia-100); outline-offset: -3px; border-radius: var(--radius-lg); }

@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 34vw, 220px); }
  .pf-card, .pf-card--feature { grid-column: span 1; grid-row: span 1; }
  .pf-card__cap .pf-card__city { opacity: .9; transform: none; }
}
@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .pf-card__expand { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card:hover .pf-photo { transform: scale(1.001); }
}

/* ============================================================
   "Por que confiar" — diferenciais em duas colunas + colagem
   ============================================================ */
.section--why { position: relative; overflow: clip; }
.flowlines {
  position: absolute; right: -4%; bottom: -6%; width: min(60%, 760px); z-index: 0;
  color: var(--verde-500); opacity: .16; pointer-events: none;
}
.flowlines svg { width: 100%; height: auto; }
.section--why > .container { position: relative; z-index: 1; }
.whyus {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: center;
}
.whyus__col .section__head { margin-bottom: clamp(1.2rem, .8rem + 1vw, 1.8rem); max-width: none; }
.whyus .diff__list { border-top: 1px solid var(--line); }
.whyus .diff__item { padding-block: clamp(1.1rem, .8rem + 1vw, 1.6rem); }
.whyus .diff__text { font-size: var(--step-0); max-width: 48ch; }
.whyus__cta { margin-top: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); }

.whyus__media { position: relative; isolation: isolate; padding: 8% 7%; }
.whyus__img {
  position: relative; z-index: 2; width: 100%; height: 100%;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-deep);
}
.whyus__block { position: absolute; border-radius: var(--radius-lg); }
.whyus__block--a { z-index: 1; top: 0; right: 0; width: 58%; aspect-ratio: 1; background: var(--verde-700); }
.whyus__block--b { z-index: 1; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; background: var(--areia-100); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .whyus { grid-template-columns: 1fr; gap: clamp(2rem, 1rem + 6vw, 3.4rem); }
  .whyus__media { max-width: 480px; margin-inline: auto; order: 2; }
  .flowlines { opacity: .1; width: 90%; }
}

/* ============================================================
   Depoimentos — colagem sobre foto (fundo verde)
   ============================================================ */
.section--tst { overflow: clip; }
.tst { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; }
.tst__media { position: relative; z-index: 1; }
.tst__photo {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-deep);
}
.tst__cards {
  position: relative; z-index: 2; margin-left: -9%;
  columns: 2; column-gap: clamp(16px, 1.4vw, 26px);
}
.tst__card {
  break-inside: avoid; margin: 0 0 clamp(16px, 1.4vw, 26px); padding: clamp(20px, 1.4vw, 26px);
  background: rgba(6, 39, 34, .66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-deep); border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(6,39,34,.35);
}
.tst__who {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  color: var(--areia-50); letter-spacing: .04em; text-transform: uppercase;
}
.tst__stars { display: inline-flex; gap: 3px; color: #C9A46B; margin: 8px 0 12px; }
.tst__quote { font-size: var(--step--1); line-height: 1.6; color: var(--on-deep-soft); font-style: italic; }
.tst__quote::before { content: "\201C"; } .tst__quote::after { content: "\201D"; }

@media (max-width: 900px) {
  .tst { grid-template-columns: 1fr; gap: clamp(1.6rem, 1rem + 3vw, 2.6rem); }
  .tst__media { max-width: 420px; }
  .tst__cards { margin-left: 0; columns: 1; }
}

/* ============================================================
   Histórico — timeline horizontal animada (draw + reveal on scroll)
   ============================================================ */
.htl { position: relative; margin-top: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.htl__track {
  position: absolute; top: 11px; left: 11px; right: 11px; height: 2px;
  background: var(--line); overflow: hidden; z-index: 0;
}
.section--deep .htl__track { background: var(--line-deep); }
.htl__track::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--draw, 0%); height: 100%;
  background: var(--verde-600);
  transition: width 1.5s cubic-bezier(.5,0,.2,1);
}
.section--deep .htl__track::after { background: var(--areia-100); }
.htl__nodes {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, .6rem + 1.4vw, 2rem);
}
.htl__node { text-align: center; }
.htl__node:first-child { text-align: left; }
.htl__node:last-child { text-align: right; }
.htl__dot {
  display: block; width: 22px; height: 22px; margin: 0 auto clamp(18px, 1.4vw, 26px);
  border-radius: 50%; background: var(--verde-700);
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--verde-700);
}
.htl__node:first-child .htl__dot { margin-left: 0; }
.htl__node:last-child .htl__dot { margin-right: 0; }
.section--deep .htl__dot { background: var(--areia-100); border-color: var(--bg-deep); box-shadow: 0 0 0 2px var(--areia-100); }
.htl__num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -.02em;
  color: var(--verde-700);
}
.section--deep .htl__num { color: var(--areia-50); }
.htl__label { margin-top: 12px; font-size: var(--step-0); color: var(--text-soft); }
.section--deep .htl__label { color: var(--on-deep-soft); }

@media (max-width: 720px) {
  .htl__nodes { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
  .htl__track { display: none; }
  .htl__node, .htl__node:first-child, .htl__node:last-child { text-align: left; }
  .htl__dot, .htl__node:first-child .htl__dot, .htl__node:last-child .htl__dot { margin: 0 0 14px; }
}
@media (max-width: 360px) {
  .htl__nodes { grid-template-columns: 1fr; }
}

/* ============================================================
   Comparativo "versus" (contraste forte, coluna Büch elevada)
   ============================================================ */
.section--vs { position: relative; }
.vs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.4vw + 8px, 30px); align-items: stretch; position: relative;
}
.vs__col {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 1rem + 1.8vw, 2.6rem);
  display: flex; flex-direction: column;
}
.vs__col--market {
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text-soft); filter: saturate(.8);
}
.vs__col--buch {
  background: var(--verde-700); color: var(--areia-100);
  box-shadow: 0 30px 60px rgba(6,39,34,.32);
  position: relative; z-index: 1;
}
@media (min-width: 901px) { .vs__col--buch { transform: translateY(-16px); } .vs__col--buch { margin-bottom: -16px; } }

.vs__head { padding-bottom: clamp(1rem, .7rem + 1vw, 1.5rem); margin-bottom: clamp(1rem, .7rem + 1vw, 1.5rem); border-bottom: 1px solid var(--line); }
.vs__col--buch .vs__head { border-bottom-color: var(--line-deep); }
.vs__tag { display: block; font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.vs__col--buch .vs__tag { color: var(--on-deep-soft); }
.vs__label { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--text); }
.vs__col--buch .vs__label { color: var(--areia-50); }

.vs__list { display: flex; flex-direction: column; gap: clamp(14px, 1vw, 20px); }
.vs__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.vs__item p { font-size: var(--step-0); line-height: 1.55; }
.vs__ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
}
.vs__ico--x { background: rgba(139,136,127,.16); color: var(--taupe-500); }
.vs__ico--check { background: rgba(227,224,215,.14); color: var(--areia-100); }

.vs__badge {
  position: absolute; top: clamp(2.2rem, 2vw + 1rem, 3.4rem); left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
  width: clamp(46px, 4vw, 58px); height: clamp(46px, 4vw, 58px); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--areia-50); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-0);
  text-transform: uppercase; letter-spacing: .04em; color: var(--verde-700);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .vs { grid-template-columns: 1fr; gap: 16px; }
  .vs__badge {
    position: static; transform: none; margin: -6px auto;
    width: 46px; height: 46px;
  }
}

/* ============================================================
   Hero fixo (pinned) + conteúdo sobe por cima (efeito reveal)
   ============================================================ */
.hero { position: sticky; top: 0; height: 100dvh; min-height: 0; z-index: 0; }
.flow { position: relative; z-index: 2; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .hero { position: relative; height: auto; min-height: 100dvh; }
}

/* Hero pin só em telas maiores; no mobile rola normal (evita clip + jank do address bar) */
@media (max-width: 768px) {
  .hero { position: relative; height: auto; min-height: 100dvh; }
}

/* Hero pinado (desktop/tablet): escala pela ALTURA da janela para SEMPRE caber em 100dvh
   e o título ficar abaixo do header, sem virar texto minúsculo nem gigante.
   Combina largura (vw) e altura (vh): telas altas = título maior; janelas baixas = título menor. */
@media (min-width: 769px) {
  .hero h1 {
    font-size: clamp(2.2rem, 0.6rem + 2.2vw + 3vh, 4.8rem);
    max-width: 20ch; line-height: 1.08;
  }
  .hero__sub { font-size: clamp(1rem, 0.85rem + 0.7vh, 1.28rem); }
  .hero__proof .stat__num { font-size: clamp(1.9rem, 1rem + 2.2vh, 3.4rem); }
}
/* Janela desktop curta: aperta os espaços verticais (o tamanho já cai pelo vh acima) */
@media (min-width: 769px) and (max-height: 760px) {
  .hero { padding-top: 84px; }
  .hero__eyebrow { margin-bottom: 8px; }
  .hero__sub { margin-top: 12px; }
  .hero__actions { margin-top: 16px; }
  .hero__proof { padding-top: 14px; margin-top: 12px; }
}

/* ============================================================
   Linhas fluidas decorativas espalhadas pelo site (.sec-lines)
   ============================================================ */
.sec-lines { overflow: clip; }
.sec-lines > .container { position: relative; z-index: 1; }
.flowlines--flip { right: auto; left: -4%; transform: scaleX(-1); }
.section--deep .flowlines { color: var(--areia-100); opacity: .10; }

/* ============================================================
   Portfólio — showcase interativo (feature + rail de miniaturas)
   ============================================================ */
.showcase { display: grid; grid-template-columns: 1.72fr 1fr; gap: clamp(14px, 1.4vw, 26px); align-items: stretch; }
.showcase__stage {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: clip;
  aspect-ratio: 16 / 11; background: var(--verde-800); box-shadow: var(--shadow-deep);
}
.showcase__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase__stage.is-swapping .showcase__img { opacity: 0; transition: opacity .18s ease; }
.showcase__img { transition: opacity .45s ease; }
.showcase__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,39,34,.15) 0%, rgba(6,39,34,0) 30%, rgba(6,39,34,.72) 100%); }
.showcase__cap { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2vw, 34px); color: var(--areia-100); }
.showcase__idx { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--areia-50); letter-spacing: .01em; }
.showcase__idx i { font-style: normal; font-weight: 500; color: var(--on-deep-soft); font-size: .6em; }
.showcase__city { display: block; margin-top: 12px; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--on-deep-soft); }
.showcase__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--areia-50); margin-top: 4px; }
.showcase__zoom {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: rgba(6,39,34,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line-deep); color: var(--areia-100);
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease;
}
.showcase__zoom:hover { background: rgba(6,39,34,.72); border-color: var(--areia-100); }

.showcase__rail { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 100%; padding-right: 4px; }
.showcase__rail::-webkit-scrollbar { width: 6px; } .showcase__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.showcase__thumb {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; width: 100%;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev);
  cursor: pointer; text-align: left; transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.showcase__thumb:hover { transform: translateX(3px); border-color: var(--taupe-400); }
.showcase__thumb.is-active { border-color: var(--verde-700); background: #fff; box-shadow: var(--shadow); }
.showcase__thumb-media { display: block; width: 88px; aspect-ratio: 4/3; border-radius: 4px; overflow: clip; }
.showcase__thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__thumb-label { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--text); line-height: 1.2; }
.showcase__thumb-label i { display: block; font-style: normal; font-weight: 700; font-size: var(--step--1); color: var(--taupe-500); letter-spacing: .1em; margin-bottom: 3px; }
.showcase__thumb.is-active .showcase__thumb-label i { color: var(--verde-600); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 16px; }
  .showcase__stage { aspect-ratio: 3 / 2; }
  .showcase__rail { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .showcase__thumb { grid-template-columns: 1fr; width: clamp(140px, 40vw, 190px); flex: 0 0 auto; }
  .showcase__thumb-media { width: 100%; aspect-ratio: 16/10; }
  .showcase__thumb-label { font-size: var(--step--1); padding: 0 2px 4px; }
}

/* ============================================================
   Showcase v2 — miniaturas full-bleed + nome grande/estilizado
   ============================================================ */
.showcase__thumb {
  position: relative; display: block; width: 100%; grid-template-columns: none;
  aspect-ratio: 16 / 9; padding: 0; overflow: clip;
  background: var(--verde-800); border: 1px solid var(--line); flex: 0 0 auto;
}
.showcase__thumb:hover { transform: none; }
.showcase__thumb-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0;
}
.showcase__thumb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.showcase__thumb:hover .showcase__thumb-media img { transform: scale(1.06); }
.showcase__thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,39,34,0) 32%, rgba(6,39,34,.8) 100%);
  transition: background .3s ease;
}
.showcase__thumb-label {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: clamp(12px, 1vw, 18px) clamp(14px, 1.1vw, 20px);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.6rem); line-height: 1.04;
  letter-spacing: -0.015em; color: var(--areia-50);
  text-shadow: 0 2px 18px rgba(6,39,34,.55);
}
.showcase__thumb-label i {
  font-style: normal; font-weight: 700; font-size: var(--step--1);
  letter-spacing: .22em; text-transform: uppercase; color: var(--on-deep-soft);
  margin: 0 0 2px;
}
.showcase__thumb.is-active { border-color: var(--areia-100); box-shadow: 0 0 0 2px var(--verde-700), var(--shadow-deep); }
.showcase__thumb.is-active .showcase__thumb-label { color: #fff; }
.showcase__thumb.is-active .showcase__thumb-label i { color: var(--areia-100); opacity: .95; }

/* imagem principal: título maior e mais editorial */
.showcase__stage { aspect-ratio: 3 / 2; }
.showcase__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.02em; }
.showcase__idx { font-size: var(--step-1); }

@media (max-width: 900px) {
  .showcase__thumb { grid-template-columns: none; width: clamp(200px, 62vw, 280px); aspect-ratio: 16/10; }
  .showcase__thumb-media { width: 100%; }
  .showcase__thumb-label { font-size: 1.15rem; }
}

/* Fix sizing do showcase v2 (evita blowout do grid com itens aspect-ratio) */
.showcase { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
.showcase__rail { min-height: 0; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__rail { min-height: auto; }
}

/* ============================================================
   Showcase v3 — lookbook: feature grande + filmstrip horizontal
   ============================================================ */
.showcase { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 22px); grid-template-columns: none; }
.showcase__stage { aspect-ratio: 16 / 9; width: 100%; }
.showcase__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.showcase__rail {
  flex-direction: row; overflow-x: auto; overflow-y: hidden;
  max-height: none; min-height: 0; gap: clamp(12px, 1vw, 18px);
  padding: 2px 2px 10px; scroll-snap-type: x mandatory;
}
.showcase__thumb {
  flex: 0 0 auto; width: clamp(220px, 25vw, 330px); aspect-ratio: 16 / 9;
  scroll-snap-align: start;
}
.showcase__rail::-webkit-scrollbar { height: 6px; }
.showcase__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ============================================================
   Showcase v4 — cards no lado direito (trilho vertical), full-bleed
   Alturas fixas p/ evitar blowout do grid; trilho rola dentro do feature.
   ============================================================ */
.showcase {
  --sh: clamp(440px, 40vw, 600px);
  display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 24px); align-items: start;
}
.showcase__stage { height: var(--sh); aspect-ratio: auto; width: 100%; }
.showcase__rail {
  flex-direction: column; max-height: var(--sh); min-height: 0;
  overflow-y: auto; overflow-x: hidden; gap: 10px; padding: 2px;
  scroll-snap-type: none;
}
.showcase__thumb { width: 100%; aspect-ratio: 16 / 9; scroll-snap-align: none; }
.showcase__rail::-webkit-scrollbar { width: 6px; height: 6px; }
.showcase__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { height: auto; aspect-ratio: 16 / 9; }
  .showcase__rail { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .showcase__thumb { width: clamp(220px, 62vw, 300px); flex: 0 0 auto; }
}

/* ============================================================
   Showcase v5 — cards menores em grid 2×3 (sem scroll) + tipografia editorial
   ============================================================ */
.showcase__rail {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr;
  gap: clamp(8px, 0.7vw, 12px);
  height: var(--sh); max-height: var(--sh); overflow: hidden; padding: 0;
}
.showcase__thumb { width: 100%; height: 100%; aspect-ratio: auto; }

/* nomes em serifada editorial (Fraunces), kicker permanece sans */
.showcase__thumb-label {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.45rem); letter-spacing: 0; line-height: 1.05;
  padding: clamp(10px, 0.8vw, 15px) clamp(11px, 0.9vw, 15px);
}
.showcase__thumb-label i {
  font-family: var(--font-body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .2em; text-transform: uppercase;
}
.showcase__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.005em; }

@media (max-width: 900px) {
  .showcase__rail { display: flex; flex-direction: row; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .showcase__thumb { width: clamp(200px, 58vw, 280px); height: auto; aspect-ratio: 16/9; flex: 0 0 auto; }
}

/* ============================================================
   Seção de vídeo — card estilo Netflix + modal do YouTube
   ============================================================ */
.vcard {
  position: relative; display: block; width: 100%; margin: 0;
  aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-lg); overflow: clip; background: var(--verde-800);
  box-shadow: var(--shadow-deep);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.vcard:hover, .vcard:focus-visible { transform: scale(1.02); box-shadow: 0 44px 90px rgba(6,39,34,.55); outline: none; }
.vcard:focus-visible { box-shadow: 0 0 0 3px var(--areia-100), 0 44px 90px rgba(6,39,34,.55); }
.vcard__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.vcard:hover .vcard__thumb { transform: scale(1.06); }
.vcard__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,39,34,.2) 0%, rgba(6,39,34,.05) 45%, rgba(6,39,34,.85) 100%); }
.vcard__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(62px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--areia-50);
  background: rgba(6,39,34,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 2px solid var(--areia-100);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s ease;
}
.vcard:hover .vcard__play { transform: translate(-50%,-50%) scale(1.1); background: var(--verde-700); }
.vcard__play svg { width: 42%; height: 42%; margin-left: 8%; }
.vcard__meta { position: absolute; left: 0; bottom: 0; padding: clamp(20px, 2.2vw, 36px); text-align: left; }
.vcard__badge { display: inline-block; font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; color: var(--on-deep-soft); }
.vcard__title { display: block; margin-top: 8px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); color: var(--areia-50); line-height: 1.1; max-width: 22ch; }

/* modal do vídeo */
.vmodal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; background: rgba(6,39,34,.94); padding: clamp(16px, 4vw, 60px); }
.vmodal[data-open="true"] { display: flex; }
.vmodal__frame { position: relative; width: min(1100px, 94vw); aspect-ratio: 16/9; border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow-deep); background: #000; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--areia-100); font-size: 42px; line-height: 1; cursor: pointer; }

/* ============================================================
   Portfólio v6 — visualizador editorial (imagem grande + índice de texto)
   ============================================================ */
.showcase {
  --sh: clamp(460px, 44vw, 620px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(26px, 3.2vw, 58px); align-items: stretch;
}
.showcase__stage { height: var(--sh); aspect-ratio: auto; width: 100%; box-shadow: var(--shadow-deep); }
.showcase__frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid rgba(227,224,215,.16); border-radius: var(--radius-lg); }
.showcase__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,39,34,.05) 40%, rgba(6,39,34,.66) 100%); }
.showcase__counter { position: absolute; top: clamp(16px,1.4vw,22px); left: clamp(18px,1.6vw,26px); z-index: 3; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: var(--step-1); color: var(--areia-50); }
.showcase__counter i { font-style: normal; color: var(--on-deep-soft); font-size: .68em; }
.showcase__cap { position: absolute; left: 0; bottom: 0; z-index: 3; padding: clamp(20px,2vw,34px); }
.showcase__city { display: block; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; color: var(--on-deep-soft); }
.showcase__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.9rem); color: var(--areia-50); margin-top: 8px; letter-spacing: -0.01em; }

.showcase__index { display: flex; flex-direction: column; justify-content: center; height: var(--sh); gap: 0; padding: 0; overflow: visible; }
.showcase__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  column-gap: clamp(14px, 1.4vw, 22px); width: 100%;
  padding: clamp(12px, 1.4vw, 20px) 2px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; cursor: pointer; text-align: left; transition: padding-left .3s cubic-bezier(.4,0,.2,1);
}
.showcase__item:first-child { border-top: 1px solid var(--line); }
.showcase__item-num { font-family: var(--font-body); font-weight: 600; font-size: var(--step--1); letter-spacing: .16em; color: var(--taupe-500); transition: color .25s ease; }
.showcase__item-name { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.2rem, 0.95rem + 0.95vw, 1.85rem); line-height: 1.08; color: var(--text-muted); transition: color .28s ease; }
.showcase__item-arrow { color: var(--verde-600); opacity: 0; transform: translateX(-8px); transition: opacity .28s ease, transform .28s ease; font-size: var(--step-0); }
.showcase__item:hover { padding-left: 10px; }
.showcase__item:hover .showcase__item-name { color: var(--verde-800); }
.showcase__item:hover .showcase__item-arrow,
.showcase__item.is-active .showcase__item-arrow { opacity: 1; transform: none; }
.showcase__item.is-active .showcase__item-name { color: var(--verde-700); font-weight: 600; }
.showcase__item.is-active .showcase__item-num { color: var(--verde-700); }
.showcase__item:focus-visible { outline: 2px solid var(--verde-500); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: clamp(20px,3vw,30px); }
  .showcase__stage { height: auto; aspect-ratio: 16 / 10; }
  .showcase__index { height: auto; }
}
