/* Território Paisagismo, modelo 5
   Papel de linho, tinta grafite, um acento de terra. Petrona fina nos títulos, Manrope leve no texto. */
:root {
  --papel: #f1ede5;
  --papel-2: #e6e0d4;
  --tinta: #1d1f1a;
  --tinta-2: #4f5048;
  --linha: rgba(29, 31, 26, 0.16);
  --terra: #8b5636;
  --escuro: #1e211b;
  --claro: #ece7dc;
  --claro-2: #b8b4a8;
  --serif: 'Petrona', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --margem: clamp(20px, 4.2vw, 64px);
  --topo: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 1.5px solid var(--terra); outline-offset: 3px; }

.pular { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--tinta); color: var(--papel); padding: 8px 14px; }
.pular:focus { left: 8px; }

/* ---------- topo ---------- */
.topo {
  height: var(--topo); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--margem); border-bottom: 1px solid var(--linha); background: var(--papel);
  position: relative; z-index: 5;
}
.marca { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.marca-nome { font-family: var(--serif); font-weight: 300; font-size: 1.55rem; letter-spacing: -0.01em; }
.marca-sub { font-size: 0.82rem; font-weight: 300; color: var(--tinta-2); }
.menu { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.menu a { text-decoration: none; font-size: 0.92rem; font-weight: 400; color: var(--tinta-2); padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.menu a:hover { color: var(--tinta); background-size: 100% 1px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(400px, 0.37fr) 1fr;
  height: calc(100svh - var(--topo)); min-height: 640px; max-height: 1100px;
}
.hero-texto {
  display: flex; flex-direction: column; padding: clamp(28px, 4.5vh, 56px) var(--margem) clamp(24px, 4vh, 44px);
  border-right: 1px solid var(--linha);
}
.hero-meta { font-size: 0.86rem; color: var(--tinta-2); font-weight: 300; }
.hero h1 {
  font-size: clamp(2.5rem, 4.1vw, 4.4rem); line-height: 1.02; font-weight: 200;
  margin-top: auto; padding-top: 24px; max-width: 11ch; letter-spacing: -0.02em;
}
.hero h1 em { font-weight: 300; }
.hero-lead { margin-top: 22px; color: var(--tinta-2); font-weight: 300; font-size: 1.02rem; max-width: 40ch; }

.controles { margin-top: clamp(26px, 4.4vh, 44px); display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 0.8rem; color: var(--tinta-2); margin-bottom: 10px; }
.controles input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* régua do dia: uma linha fina com quatro marcas */
.regua { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.regua::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linha); }
.regua label {
  position: relative; display: flex; flex-direction: column; gap: 1px; padding: 16px 6px 4px 0; cursor: pointer;
  color: var(--tinta-2); transition: color 0.25s;
}
.regua label::before { content: ''; position: absolute; left: 0; top: -4px; width: 1px; height: 9px; background: var(--tinta-2); opacity: 0.55; }
.regua label::after {
  content: ''; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--terra); transform: scale(0); transition: transform 0.35s var(--ease);
}
.regua label span { font-size: 0.88rem; white-space: nowrap; }
.regua label small { font-size: 0.76rem; font-variant-numeric: tabular-nums; font-weight: 300; }
.regua label:hover { color: var(--tinta); }
.regua input:checked + label { color: var(--tinta); }
.regua input:checked + label::after { transform: scale(1); }
.regua input:focus-visible + label { outline: 1.5px solid var(--terra); outline-offset: 2px; }

.opcoes { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.opcoes label {
  cursor: pointer; font-size: 0.93rem; color: var(--tinta-2); padding: 2px 0;
  background: linear-gradient(var(--terra), var(--terra)) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.25s;
}
.opcoes label:hover { color: var(--tinta); }
.opcoes input:checked + label { color: var(--tinta); background-size: 100% 1px; }
.opcoes input:focus-visible + label { outline: 1.5px solid var(--terra); outline-offset: 3px; }

.legenda-cena { margin-top: 20px; font-size: 0.86rem; color: var(--tinta-2); font-weight: 300; max-width: 46ch; min-height: 4.2em; }

.hero-cena { position: relative; overflow: hidden; background: #2a2d27; }
.cena { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.cena:active { cursor: grabbing; }
.cena canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.cena-pronta .cena canvas { opacity: 1; }
.cena-carregando {
  position: absolute; left: 24px; top: 22px; font-size: 0.82rem; color: var(--claro-2); font-weight: 300;
  transition: opacity 0.6s;
}
.cena-pronta .cena-carregando { opacity: 0; }
.cena-rotulo, .cena-dica {
  position: absolute; bottom: 18px; margin: 0; font-size: 0.8rem; color: #f3efe6; font-weight: 400;
  padding: 6px 10px; background: rgba(18, 20, 16, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.cena-rotulo { left: 18px; }
.cena-rotulo-sub { color: #cfcabf; font-weight: 300; }
.cena-dica { right: 18px; }
.sem-webgl { position: absolute; inset: 0; margin: 0; }
.sem-webgl img { width: 100%; height: 100%; object-fit: cover; }
.sem-webgl figcaption { position: absolute; left: 18px; top: 18px; font-size: 0.8rem; color: #f3efe6; background: rgba(18, 20, 16, 0.55); padding: 6px 10px; }
.sem-3d .cena-carregando, .sem-3d .cena-dica, .sem-3d .cena-rotulo { display: none; }

/* entrada do hero: o texto sobe junto com o jardim aparecendo */
@media (prefers-reduced-motion: no-preference) {
  .hero-texto > * { animation: sobe 0.9s var(--ease) both; }
  .hero-texto > :nth-child(2) { animation-delay: 0.08s; }
  .hero-texto > :nth-child(3) { animation-delay: 0.16s; }
  .hero-texto > :nth-child(4) { animation-delay: 0.26s; }
  .hero-texto > :nth-child(5) { animation-delay: 0.32s; }
  @keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cena canvas { transition: none; }
}

/* ---------- seções ---------- */
.secao-cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--margem); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.secao-cabeca h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.02; font-weight: 200; letter-spacing: -0.02em; }
.secao-cabeca p { max-width: 52ch; color: var(--tinta-2); font-weight: 300; }

figure { margin: 0; }
figcaption { font-size: 0.74rem; color: var(--tinta-2); font-weight: 300; margin-top: 8px; }

.projetos {
  padding: clamp(72px, 10vw, 140px) var(--margem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 8vw, 120px);
}
.projetos .secao-cabeca { grid-column: 1 / -1; margin-bottom: 0; }
.proj { display: grid; gap: 22px; align-content: start; }
.proj img { width: 100%; object-fit: cover; }
.proj-num { font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--terra); font-weight: 500; }
.proj h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; margin-top: 4px; }
.proj-meta { font-size: 0.86rem; color: var(--tinta-2); margin: 6px 0 12px; }
.proj-texto p:last-child { color: var(--tinta-2); font-weight: 300; max-width: 46ch; }

.proj-1 { grid-column: 1 / 13; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.proj-1 img { aspect-ratio: 3 / 2; }
.proj-2 { grid-column: 2 / 6; }
.proj-2 img { aspect-ratio: 4 / 5; }
.proj-3 { grid-column: 7 / 13; padding-top: clamp(40px, 12vw, 200px); }
.proj-3 img { aspect-ratio: 3 / 2; }
.proj-4 { grid-column: 1 / 5; }
.proj-4 img { aspect-ratio: 3 / 4; }
.proj-5 { grid-column: 6 / 12; padding-top: clamp(30px, 6vw, 100px); }
.proj-5 img { aspect-ratio: 16 / 10; }

.processo { background: var(--escuro); color: var(--claro); padding: clamp(72px, 10vw, 140px) var(--margem); }
.processo .secao-cabeca p { color: var(--claro-2); }
.etapas { list-style: none; margin: 0; padding: 0; counter-reset: etapa; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--margem); }
.etapas li {
  grid-column: 2; counter-increment: etapa; display: grid; grid-template-columns: 64px minmax(0, 15ch) minmax(0, 1fr); gap: 8px 24px;
  padding: 22px 0 24px; border-top: 1px solid rgba(236, 231, 220, 0.18);
}
.etapas li:last-child { border-bottom: 1px solid rgba(236, 231, 220, 0.18); }
.etapas li::before { content: counter(etapa, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.25rem; color: #c7a487; line-height: 1.3; }
.etapas h3 { font-size: 1.35rem; line-height: 1.25; }
.etapas p { color: var(--claro-2); font-weight: 300; }

.escritorio {
  padding: clamp(72px, 10vw, 140px) var(--margem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: center;
}
.escritorio img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.escritorio h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 200; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 28px; }
.escritorio-texto p { color: var(--tinta-2); font-weight: 300; max-width: 52ch; }
.escritorio-texto p + p { margin-top: 16px; }
.escritorio-texto .escritorio-dados { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--tinta); margin-top: 28px; }

.contato {
  background: var(--papel-2); padding: clamp(72px, 10vw, 130px) var(--margem);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px var(--margem); align-items: end;
}
.contato h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1; font-weight: 200; letter-spacing: -0.025em; max-width: 12ch; }
.contato-corpo p { color: var(--tinta-2); font-weight: 300; max-width: 44ch; }
.link-whats {
  display: inline-flex; gap: 10px; align-items: baseline; margin-top: 26px; text-decoration: none;
  font-family: var(--serif); font-size: 1.55rem; font-weight: 300; color: var(--tinta);
  padding-bottom: 4px; border-bottom: 1px solid var(--terra);
}
.link-whats span { color: var(--terra); transition: transform 0.35s var(--ease); }
.link-whats:hover span { transform: translateX(5px); }
address { font-style: normal; margin-top: 28px; font-size: 0.9rem; color: var(--tinta-2); font-weight: 300; }

/* ---------- rodapé (Vetor) ---------- */
.rodape { padding: 36px var(--margem) 44px; border-top: 1px solid var(--linha); display: grid; gap: 22px; }
.rodape-aviso { font-size: 0.82rem; color: var(--tinta-2); max-width: 80ch; font-weight: 300; }
.vetor { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 0.86rem; }
.vetor a { text-decoration: none; color: var(--tinta-2); }
.vetor a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.vetor-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta) !important; }
.vetor .voltar { margin-left: auto; color: var(--tinta); border-bottom: 1px solid var(--linha); }

/* ---------- celular e tablet ---------- */
@media (max-width: 980px) {
  /* no celular os controles ficam logo abaixo do jardim, para ver a mudança enquanto toca */
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; }
  .hero-texto { display: contents; }
  .hero-texto > * { padding-inline: var(--margem); }
  .hero-cena { order: 1; height: 50svh; min-height: 320px; }
  .controles { order: 2; margin-top: 22px; gap: 18px; }
  .legenda-cena { order: 3; margin-top: 14px; min-height: 0; max-width: none; }
  .hero-meta { order: 4; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--linha); margin-inline: var(--margem); padding-inline: 0; }
  .hero h1 { order: 5; margin-top: 14px; padding-top: 0; }
  .hero-lead { order: 6; padding-bottom: 8px; }
  .secao-cabeca, .etapas, .escritorio, .contato { grid-template-columns: 1fr; }
  .etapas li { grid-column: 1; }
  .proj-1 { grid-template-columns: 1fr; }
  .proj-2, .proj-3, .proj-4, .proj-5 { grid-column: 1 / -1; padding-top: 0; }
  .proj-2 { grid-column: 1 / 11; }
  .proj-4 { grid-column: 3 / 13; }
}
@media (max-width: 600px) {
  :root { --topo: 58px; }
  .so-largo { display: none; }
  .marca-sub { display: none; }
  .menu { gap: 18px; }
  .menu a { font-size: 0.88rem; }
  .hero-cena { height: 48svh; }
  .hero h1 { font-size: 2.45rem; }
  .regua label span { font-size: 0.84rem; }
  .cena-rotulo-sub { display: none; }
  .etapas li { grid-template-columns: 44px minmax(0, 1fr); }
  .etapas li p { grid-column: 2; }
  .proj-2, .proj-4 { grid-column: 1 / -1; }
  .vetor .voltar { margin-left: 0; }
}
