﻿
/* Saída do Hero e maquete paisagística */
.passagem-jardim {
  position: relative;
  z-index: 1;
  height: clamp(180px, 38svh, 380px);
  margin-top: calc(-1 * clamp(86px, 21svh, 210px));
  background: linear-gradient(180deg, transparent 0%, #101e17 92%);
  overflow: hidden;
  pointer-events: none;
}
.passagem-jardim img {
  position: absolute;
  width: clamp(190px, 38vw, 640px);
  height: auto;
  filter: brightness(.39) saturate(.75) blur(5px);
  opacity: .78;
  mask-image: radial-gradient(ellipse at 44% 48%, black 26%, transparent 76%);
}
.passagem-jardim img:first-child { right: -7%; top: -16%; transform: rotate(-11deg); }
.passagem-jardim img:last-child { left: -10%; bottom: -46%; transform: rotate(11deg); }
.transformacao {
  --maquete-p: 0;
  --maquete-texto: 1;
  height: 480svh;
  color: #f7f1e4;
  background: #101e17;
}
.maquete-palco {
  position: sticky;
  top: 0;
  isolation: isolate;
  height: 100svh;
  min-height: 430px;
  overflow: hidden;
  background: radial-gradient(ellipse at 61% 48%, #334236 0, #1f3025 45%, #101e17 78%);
}
.maquete-canvas, .maquete-alternativa, .maquete-alternativa img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.maquete-alternativa { margin: 0; }
.maquete-alternativa img { object-fit: cover; }
.maquete-canvas { opacity: 0; }
[data-modo-maquete="webgl"] .maquete-canvas { opacity: 1; }
[data-modo-maquete="webgl"] .maquete-alternativa { visibility: hidden; }
.maquete-topo, .maquete-rodape {
  position: absolute;
  inset-inline: clamp(24px, 5vw, 100px);
  z-index: 1;
}
.maquete-topo {
  top: clamp(26px, 5vh, 62px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f7f1e438;
}
.maquete-topo h2 { margin: 0; font: 400 clamp(21px, 2.1vw, 35px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.maquete-topo > span { color: #e1c68e; font-size: 11px; line-height: 1.35; text-align: right; }
.maquete-rodape {
  bottom: clamp(25px, 6vh, 65px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}
.maquete-narrativa {
  max-width: 11em;
  margin: 0;
  font: 400 clamp(33px, 4.2vw, 74px)/.99 Georgia, serif;
  letter-spacing: -.053em;
  color: #f7f1e4;
  text-wrap: balance;
  opacity: var(--maquete-texto);
  min-height: 2em;
}
.maquete-capitulo {
  display: grid;
  min-width: 153px;
  grid-template-columns: auto 1fr;
  gap: 8px 9px;
  font-size: 12px;
  align-items: center;
  color: #f7f1e4;
}
.maquete-etapa { color: #e1c68e; font-variant-numeric: tabular-nums; }
.maquete-trilho { height: 1px; background: #f7f1e451; }
.maquete-trilho span { display: block; height: 100%; background: #dfbd78; transform: scaleX(calc(.05 + .95 * var(--maquete-p))); transform-origin: left; }
.maquete-rotulo { grid-column: 1 / -1; }
.maquete-leitura { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .maquete-palco { background: radial-gradient(ellipse at 51% 48%, #334236 0, #1f3025 45%, #101e17 78%); }
  .maquete-topo, .maquete-rodape { inset-inline: 20px; }
  .maquete-topo { top: 24px; }
  .maquete-topo > span { max-width: 100px; }
  .maquete-rodape { display: grid; gap: 16px; bottom: 23px; }
  .maquete-narrativa { min-height: 0; max-width: 430px; font-size: clamp(30px, 8vw, 51px); }
  .maquete-capitulo { width: min(100%, 280px); }
}
@media (max-height: 520px) and (min-width: 701px) {
  .maquete-topo { top: 18px; }
  .maquete-rodape { bottom: 20px; }
  .maquete-narrativa { font-size: clamp(27px, 4.5vw, 53px); }
}
@media (prefers-reduced-motion: reduce) {
  .passagem-jardim { height: 90px; margin-top: -38px; }
  .transformacao { height: auto; }
  .maquete-palco { position: relative; height: min(100svh, 850px); }
}


.passagem-jardim img:first-child {
  transform: translate3d(calc(var(--passagem, 0) * 21vw), calc(var(--passagem, 0) * -17vh), 0) rotate(-11deg);
}
.passagem-jardim img:last-child {
  transform: translate3d(calc(var(--passagem, 0) * -18vw), calc(var(--passagem, 0) * 12vh), 0) rotate(11deg);
}


.maquete-alternativa img { object-fit: contain; }
.maquete-alternativa { transition: opacity .34s; }
.maquete-canvas { z-index: 1; transition: opacity .38s; }
[data-modo-maquete="webgl"] .maquete-alternativa { opacity: 0; visibility: visible; }
.maquete-topo, .maquete-rodape { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .maquete-alternativa, .maquete-canvas { transition: none; }
}

@media (max-height: 520px) { .maquete-palco { min-height: 0; } }


.maquete-palco {
  background: radial-gradient(ellipse at 60% 39%, #3b4938 0%, #24352a 38%, #101e17 76%);
}
@media (max-width: 700px) {
  .maquete-palco {
    background: radial-gradient(ellipse at 48% 44%, #384637 0%, #203126 42%, #101e17 76%);
  }
}

