/* =========================================================
   Canto de Encontro · Letícia Soares
   ========================================================= */

:root {
  --areia: #F3EDE4;
  --linho: #E9E0D3;
  --creme: #FBF8F3;
  --carvao: #22211F;
  --grafite: #4C4944;
  --cinza: #8C877F;
  --borda: rgba(34, 33, 31, 0.12);
  --terracota: #B9532B;
  --ardosia: #4E6072;
  --ardosia-escura: #37434F;
  --freijo: #B4803F;
  --granito: #D9D4CC;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--areia);
  color: var(--carvao);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; text-wrap: pretty; hyphens: manual; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
strong { font-weight: 500; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.br-mobile { display: none; }
@media (max-width: 560px) { .br-mobile { display: inline; } }

/* ---------- Intro overlay ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--carvao);
  color: var(--areia);
  display: grid;
  place-items: center;
  transform: translateY(0);
  transition: transform 1s var(--ease-in-out);
  will-change: transform;
}
.intro.is-done { transform: translateY(-101%); }
.intro__mark { text-align: center; }
.intro__line {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.intro__line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease-out) 0.15s forwards;
}
.intro__line--sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.7;
}
.intro__line--sub > span { animation-delay: 0.35s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  color: var(--areia);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease-out);
  transform: translateY(-100%);
}
body.is-ready .nav { transform: translateY(0); }
.nav.is-solid {
  background: rgba(243, 237, 228, 0.92);
  color: var(--carvao);
  box-shadow: 0 1px 0 var(--borda);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(243, 237, 228, 0.78); backdrop-filter: blur(12px); }
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__ls {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.1em;
}
.nav__title {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nav__links { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; opacity: 0.8; transition: opacity .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 9px 16px; border-radius: 999px;
  transition: background-color .3s, color .3s;
}
.nav__cta:hover { background: var(--carvao); color: var(--areia); border-color: var(--carvao); }
.nav.is-solid .nav__cta:hover { background: var(--carvao); color: var(--areia); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__title { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--creme);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background: var(--carvao);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.12);
  will-change: transform;
}
body.is-ready .hero__img { animation: heroZoom 9s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0) 32%, rgba(20,18,16,0.15) 60%, rgba(20,18,16,0.82) 100%);
}
.hero__content {
  position: relative;
  padding: 0 var(--gutter) clamp(84px, 14vh, 140px);
  width: min(100%, var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.85; margin: 0 0 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(64px, 14vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  margin: 26px 0 0;
  max-width: 24ch;
}
.hero__meta {
  margin-top: 36px;
  font-size: 12px; letter-spacing: 0.08em; line-height: 1.7;
  opacity: 0.9;
}
.hero__meta strong { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8;
}
.hero__scroll-line {
  width: 1px; height: 54px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%;
  background: var(--creme); animation: scrollLine 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%);} 100% { transform: translateY(220%);} }
.hero__scroll-txt { writing-mode: vertical-rl; }
@media (max-width: 560px) { .hero__scroll { display: none; } }

/* line reveal (hero) */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(115%); opacity: 0; }
body.is-ready .reveal-line > span {
  animation: lineReveal 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.9s + var(--i, 0) * 0.12s);
}
.hero__eyebrow { --i: 0; }
.hero__title .reveal-line:nth-child(1) { --i: 1; }
.hero__title .reveal-line:nth-child(2) { --i: 2; }
.hero__sub { --i: 3; }
.hero__meta { --i: 4; }
.hero__title .reveal-line { padding-bottom: 0.06em; }
@keyframes lineReveal { to { transform: translateY(0); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--carvao);
  color: var(--areia);
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  letter-spacing: 0.02em;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--terracota); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__num {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.3em; color: var(--terracota);
  margin-bottom: 18px;
  position: relative; padding-left: 44px;
}
.section__num::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 1px; background: var(--terracota);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .2s;
}
.is-visible .section__num::before { transform: scaleX(1); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section__desc {
  max-width: 54ch; margin: 22px 0 0; color: var(--grafite);
}
.section__head--light { color: var(--creme); }
.section__head--light .section__desc { color: rgba(251,248,243,0.75); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Projeto ---------- */
.projeto { background: var(--areia); }
.projeto__grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 900px) {
  .projeto__grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .projeto__lead { position: sticky; top: 110px; }
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  font-weight: 400;
  margin: 0;
}
.projeto__text p { color: var(--grafite); }
.projeto__text p + p { margin-top: 1.1em; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--borda);
  border: 1px solid var(--borda);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item {
  background: var(--areia);
  padding: 26px 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.stats__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats__label { font-size: 12px; letter-spacing: 0.06em; color: var(--cinza); line-height: 1.4; }

/* ---------- Ambientes ---------- */
.ambientes { background: var(--linho); }
.amb { display: grid; gap: clamp(56px, 8vw, 110px); }
.amb__item {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
@media (min-width: 900px) {
  .amb__item { grid-template-columns: 7fr 5fr; gap: 56px; }
  .amb__item--alt .amb__media { order: 2; }
  .amb__item--alt .amb__body { order: 1; }
}
.amb__media {
  overflow: hidden; border-radius: 4px;
  aspect-ratio: 16 / 10;
  background: var(--granito);
}
.amb__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.is-visible .amb__media img { transform: scale(1); }
.amb__media--graphic {
  display: grid; place-items: center;
  background: var(--areia);
  color: var(--ardosia);
  aspect-ratio: 16 / 10;
}
.deposito-svg { width: min(78%, 420px); height: auto; }
.deposito-svg .draw {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.is-visible .deposito-svg .draw { stroke-dashoffset: 0; }
.deposito-svg .draw:nth-child(3) { transition-delay: .1s; }
.deposito-svg .draw:nth-child(4) { transition-delay: .2s; }
.deposito-svg .draw:nth-child(5) { transition-delay: .3s; }
.deposito-svg .draw:nth-child(6) { transition-delay: .4s; }
.deposito-svg .draw:nth-child(7) { transition-delay: .5s; }
.deposito-svg .draw:nth-child(8) { transition-delay: .6s; }
.deposito-svg .draw:nth-child(9) { transition-delay: .7s; }
.deposito-svg .draw:nth-child(10) { transition-delay: .8s; }
.deposito-svg .draw:nth-child(11) { transition-delay: .9s; }
.deposito-svg .draw:nth-child(12) { transition-delay: 1s; }

.amb__index { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--terracota); }
.amb__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  margin: 12px 0 16px;
}
.amb__body p { color: var(--grafite); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-size: 11.5px; letter-spacing: 0.08em;
  padding: 7px 12px; border: 1px solid var(--borda); border-radius: 999px;
  color: var(--grafite); background: rgba(255,255,255,0.35);
}

/* ---------- Comparador ---------- */
.imagens { background: var(--areia); }
.compare-list { display: grid; gap: clamp(44px, 6vw, 72px); }
.compare { margin: 0; }
.compare__frame {
  position: relative;
  aspect-ratio: var(--ratio, 16/9);
  overflow: hidden;
  border-radius: 4px;
  background: var(--granito);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  --pos: 50%;
}
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.compare__top {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}
.compare__handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 1px; background: rgba(255,255,255,0.9);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(251,248,243,0.95);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  display: grid; place-items: center;
}
.compare__handle span::before,
.compare__handle span::after {
  content: ""; width: 7px; height: 7px;
  border-left: 1.5px solid var(--carvao); border-bottom: 1.5px solid var(--carvao);
  position: absolute; top: 50%;
}
.compare__handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.compare__handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare__frame { cursor: ew-resize; -webkit-tap-highlight-color: transparent; }
/* O range fica só para teclado e leitores de tela; o arraste é feito via JS */
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.compare__frame:focus-within .compare__handle span { box-shadow: 0 0 0 3px var(--terracota), 0 6px 24px rgba(0,0,0,0.25); }
.compare__handle span { transition: transform .25s var(--ease-out); }
.compare__frame.is-dragging .compare__handle span { transform: translate(-50%, -50%) scale(1.12); }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; opacity: 0; }
.compare__tag {
  position: absolute; bottom: 14px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(20,18,16,0.55); color: var(--creme);
  pointer-events: none;
}
.compare__tag--a { left: 14px; }
.compare__tag--b { right: 14px; }
.compare figcaption {
  margin-top: 14px; font-size: 13px; color: var(--cinza); letter-spacing: 0.02em;
}

/* ---------- Identidade ---------- */
.identidade {
  background: var(--ardosia-escura);
  color: var(--creme);
  position: relative; overflow: hidden;
}
.identidade::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,83,43,0.22), rgba(185,83,43,0) 65%);
  pointer-events: none;
}
.identidade .section__num { color: var(--terracota); }
.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.palette__chip {
  background: var(--c);
  color: var(--t);
  aspect-ratio: 1 / 1.25;
  border-radius: 4px;
  padding: 14px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .9s var(--ease-out);
}
.is-visible .palette__chip { transform: none; opacity: 1; }
.palette__chip:nth-child(1) { transition-delay: .05s; }
.palette__chip:nth-child(2) { transition-delay: .1s; }
.palette__chip:nth-child(3) { transition-delay: .15s; }
.palette__chip:nth-child(4) { transition-delay: .2s; }
.palette__chip:nth-child(5) { transition-delay: .25s; }
.palette__chip:nth-child(6) { transition-delay: .3s; }
.palette__chip:nth-child(7) { transition-delay: .35s; }
.palette__name { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.palette__use { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
@media (max-width: 560px) {
  .palette { grid-template-columns: repeat(2, 1fr); }
  .palette__chip { aspect-ratio: 1.3 / 1; }
}

.identidade__quote { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.identidade__quote blockquote { margin: 0; }
.identidade__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.25;
  max-width: 24ch; margin: 0 auto 18px;
}
.identidade__quote cite {
  font-style: normal; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .7;
}

/* ---------- Materiais ---------- */
.materiais { background: var(--creme); padding-bottom: clamp(60px, 10vw, 140px); }
.mat-scroller { width: 100%; }
.mat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
@media (max-width: 900px) {
  .mat-scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mat-scroller::-webkit-scrollbar { display: none; }
  .mat {
    display: flex; gap: 14px;
    width: max-content;
    padding: 0 var(--gutter);
  }
  .mat__card { width: min(78vw, 340px); scroll-snap-align: start; flex: none; }
}
.mat__card {
  background: var(--areia);
  border: 1px solid var(--borda);
  border-radius: 4px;
  padding: 16px 16px 22px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
@media (hover: hover) {
  .mat__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34,33,31,0.08); }
  .mat__card:hover .mat__swatch img { transform: scale(1.08); }
}
.mat__swatch {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; margin-bottom: 18px; background: var(--granito);
}
.mat__swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mat__where { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terracota); }
.mat__name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin: 8px 0 10px; }
.mat__card p { margin: 0; font-size: 14.5px; color: var(--grafite); }

/* ---------- Cuidados (accordion) ---------- */
.cuidados { background: var(--linho); }
.acc { border-top: 1px solid var(--borda); }
.acc__item { border-bottom: 1px solid var(--borda); }
.acc__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  -webkit-tap-highlight-color: transparent;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__icon {
  position: relative; width: 28px; height: 28px; flex: none;
  border: 1px solid var(--borda); border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--carvao);
  transform: translate(-50%, -50%);
}
.acc__icon::before { width: 10px; height: 1px; }
.acc__icon::after { width: 1px; height: 10px; transition: transform .4s var(--ease-out); }
.acc__item[open] .acc__icon { transform: rotate(180deg); }
.acc__item[open] .acc__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__body { padding: 0 0 24px; color: var(--grafite); max-width: 62ch; }
.acc__body p:last-child { margin-bottom: 0; }
.acc__tip {
  padding: 12px 14px; border-left: 2px solid var(--terracota);
  background: rgba(185,83,43,0.06); font-size: 14.5px;
}
.acc__body { animation: accIn .5s var(--ease-out); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }

/* ---------- Documentos ---------- */
.documentos { background: var(--areia); }
.docs { display: grid; gap: 14px; }
@media (min-width: 680px) { .docs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.doc {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 56px 26px 24px;
  border: 1px solid var(--carvao);
  border-radius: 4px;
  background: transparent;
  color: var(--carvao);
  overflow: hidden;
  transition: color .4s;
}
.doc::before {
  content: ""; position: absolute; inset: 0; background: var(--carvao);
  transform: translateY(101%); transition: transform .5s var(--ease-out); z-index: -1;
}
.doc { isolation: isolate; }
@media (hover: hover) {
  .doc:hover { color: var(--areia); }
  .doc:hover::before { transform: translateY(0); }
  .doc:hover .doc__arrow { transform: translateY(4px); }
}
.doc__kind { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .7; }
.doc__name { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.doc__desc { font-size: 14px; opacity: .8; }
.doc__arrow {
  position: absolute; right: 22px; top: 24px;
  font-size: 22px; line-height: 1; transition: transform .4s var(--ease-out);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--carvao); color: var(--areia);
  padding: clamp(56px, 8vw, 96px) 0 40px;
}
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.2fr 1.6fr auto; align-items: end; }
}
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__ls { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: 0.08em; }
.footer__brand p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .9; }
.footer__brand strong { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.footer__note { margin: 0; font-size: 13px; opacity: .6; line-height: 1.7; }
.footer__year { margin: 0; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .nav { transform: none; transition: none; }
  body.is-ready .hero__img, .hero__img { animation: none; transform: none; }
  .reveal-line > span { transform: none; opacity: 1; animation: none !important; }
  .marquee__track { animation: none; }
  .amb__media img { transform: none; transition: none; }
  .deposito-svg .draw { stroke-dashoffset: 0; transition: none; }
  .palette__chip { transform: none; opacity: 1; transition: none; }
  .section__num::before { transform: scaleX(1); transition: none; }
}

/* =========================================================
   v2 · Menu mobile, progresso, projeto técnico, lightbox
   ========================================================= */

/* progress bar na nav */
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: transparent;
}
.nav__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--terracota);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* burger */
.nav__burger {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 25px; }
body.menu-open .nav__burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
body.menu-open .nav { color: var(--areia); background: transparent; box-shadow: none; backdrop-filter: none; }
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__cta { display: none; }
}

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--carvao); color: var(--areia);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 34px) 36px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
}
body.menu-open .menu {
  clip-path: circle(150% at calc(100% - 34px) 36px);
  visibility: visible;
  transition: clip-path .7s var(--ease-in-out), visibility 0s;
}
body.menu-open { overflow: hidden; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); line-height: 1.25;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu__links a small { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em; color: var(--terracota); }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
body.menu-open .menu__links a:nth-child(6) { transition-delay: .5s; }
body.menu-open .menu__links a:nth-child(7) { transition-delay: .55s; }
body.menu-open .menu__links a:nth-child(8) { transition-delay: .6s; }
.menu__foot { margin: 40px 0 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .5; }

/* ---------- Projeto técnico ---------- */
.tecnico { background: var(--creme); }
.planta {
  display: grid; gap: 28px; align-items: center;
  margin-bottom: clamp(44px, 6vw, 72px);
}
@media (min-width: 900px) { .planta { grid-template-columns: 7fr 5fr; gap: 56px; } }
.planta__media {
  position: relative; border: 1px solid var(--borda); border-radius: 4px; overflow: hidden; background: #fff;
}
.planta__media img { width: 100%; height: auto; }
.planta__open {
  position: absolute; right: 12px; bottom: 12px;
  font: inherit; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--carvao); color: var(--areia); border: 0; border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.planta__title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 10px 0 22px; }
.areas { display: grid; gap: 12px; }
.areas li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; }
.areas__name { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grafite); }
.areas__val { font-family: var(--font-display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.areas__bar { grid-column: 1 / -1; height: 3px; background: var(--borda); border-radius: 2px; overflow: hidden; }
.areas__bar i {
  display: block; height: 100%; width: var(--w); background: var(--terracota);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .3s;
}
.is-visible .areas__bar i { transform: scaleX(1); }
.areas li:nth-child(2) .areas__bar i { background: var(--ardosia); transition-delay: .45s; }
.areas li:nth-child(3) .areas__bar i { background: var(--freijo); transition-delay: .6s; }
.infra {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--borda);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  font-size: 13.5px; color: var(--grafite); line-height: 1.4;
}
.infra b { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--carvao); margin-right: 4px; }

.sheets-scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sheets-scroller::-webkit-scrollbar { display: none; }
.sheets {
  display: flex; gap: 14px; width: max-content;
  padding: 4px var(--gutter) 12px;
}
.sheet { width: min(82vw, 400px); flex: none; scroll-snap-align: start; }
@media (min-width: 900px) {
  .sheets { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-inline: 0; }
  .sheet { width: auto; }
}
.sheet__btn {
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--areia); border: 1px solid var(--borda); border-radius: 4px; padding: 10px;
  cursor: pointer; display: flex; flex-direction: column; gap: 14px;
  transition: transform .5s var(--ease-out), box-shadow .5s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .sheet__btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34,33,31,0.08); }
  .sheet__btn:hover .sheet__zoom { opacity: 1; transform: scale(1); }
}
.sheet__media { position: relative; display: block; background: #fff; border-radius: 3px; overflow: hidden; aspect-ratio: 1882 / 1105; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--carvao); color: var(--areia); display: grid; place-items: center; font-size: 20px; line-height: 1;
  opacity: .9; transform: scale(.9); transition: opacity .3s, transform .3s;
}
.sheet__meta { display: flex; flex-direction: column; gap: 3px; padding: 0 6px 6px; }
.sheet__num { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terracota); }
.sheet__num i { font-style: normal; opacity: .5; }
.sheet__title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.sheet__desc { font-size: 13px; color: var(--grafite); }
.sheet__desc b { font-weight: 500; color: var(--cinza); white-space: nowrap; }

/* ---------- Lightbox ---------- */
.lb {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(20,18,16,0.96); color: var(--areia);
  inset: 0;
}
.lb::backdrop { background: rgba(20,18,16,0.6); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; animation: lbIn .35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; height: 100%; }
.lb__stage {
  overflow: auto; display: grid; place-items: center;
  padding: 64px 12px 8px;
  touch-action: pinch-zoom pan-x pan-y;
}
.lb__img {
  max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto;
  background: #fff; border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
@media (max-width: 760px) and (orientation: portrait) {
  .lb__img { max-width: none; width: 160vw; max-height: none; }
  .lb__stage { place-items: center start; }
}
.lb__cap { padding: 10px 20px 4px; text-align: center; font-size: 13px; letter-spacing: 0.04em; opacity: .85; }
.lb__cap b { font-weight: 500; color: var(--terracota); letter-spacing: 0.2em; font-size: 10px; text-transform: uppercase; margin-right: 10px; }
.lb__hint { margin: 0; padding: 0 20px 16px; text-align: center; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: .4; }
@media (min-width: 761px) { .lb__hint { display: none; } }
.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,0.08); color: var(--areia); border: 1px solid rgba(255,255,255,0.18);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 24px; line-height: 1; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.lb__close { top: 14px; right: 14px; }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 10px; }
.lb__nav--next { right: 10px; }
@media (max-width: 760px) {
  .lb__nav { top: auto; bottom: 54px; transform: none; }
}

/* ---------- v3 · ajustes mobile ---------- */
@media (max-width: 480px) {
  .hero__eyebrow { line-height: 1.9; }
  .hero__dot { display: none; }
  .hero__date { display: block; opacity: .8; }
  .hero__sub { max-width: 20ch; }
  .infra { grid-template-columns: 1fr; gap: 8px; }
  .planta__open { position: static; width: 100%; border-radius: 0 0 3px 3px; padding: 13px 16px; }
  .palette__chip:last-child { grid-column: span 2; aspect-ratio: 2.9 / 1; }
  .section__desc { font-size: 15.5px; }
  .compare figcaption { font-size: 12.5px; }
  .sheet__desc b { display: block; margin-top: 2px; }
}
.footer__top { display: inline-block; margin-top: 14px; opacity: .8; letter-spacing: 0.2em; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px; }
.footer__top:hover { opacity: 1; }

/* ---------- Mensagem ---------- */
.mensagem { background: var(--linho); padding-top: 0; }
.mensagem__card {
  background: var(--areia); border: 1px solid var(--borda); border-radius: 4px;
  padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.mensagem__card::before {
  content: "“"; position: absolute; right: 18px; top: -30px;
  font-family: var(--font-display); font-size: 220px; line-height: 1; color: var(--terracota); opacity: .12;
}
.mensagem__eyebrow { display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--terracota); margin-bottom: 18px; }
.mensagem__text { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; margin: 0 0 .8em; max-width: 30ch; }
.mensagem__sign { margin: 28px 0 0; display: flex; flex-direction: column; gap: 2px; }
.mensagem__name { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1.1; }
.mensagem__role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cinza); }
body.menu-open .menu__links a:nth-child(9) { transition-delay: .65s; }
