/* Home — resumo de cada página depois da capa (17/10/2026). Motion em home.js (GSAP + ScrollTrigger). */
.hm-titulo { font-size: clamp(2rem, 4.6vw, 4.2rem); margin-bottom: 1.5rem; }
.hm-cab { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.hm-cab__num { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; color: var(--dourado); }
.hm-cab__rotulo { display: inline-flex; align-items: center; gap: .9rem; color: inherit; opacity: .75; }
.hm-cab__rotulo::before { content: ""; width: 42px; height: 1px; background: currentColor; opacity: .5; }

/* 01 — A Terravista */
.hm-sobre { padding-block: var(--section-py); background: var(--papel); color: var(--texto); overflow: hidden; }
.hm-sobre .hm-titulo { color: var(--grafite); }
.hm-sobre .hm-titulo em { text-shadow: none; }
.hm-sobre__grade { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 992px) { .hm-sobre__grade { grid-template-columns: 1fr 1.05fr; } }
.hm-sobre__desc { max-width: 46ch; color: var(--texto-suave-escuro); font-size: 1.05rem; }
.hm-numeros { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem clamp(1.25rem, 3vw, 2.75rem); margin: 2.25rem 0 2.5rem; }
.hm-numeros > div { padding-top: .9rem; border-top: 1px solid var(--linha-dourada); }
.hm-numeros dd { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1; color: var(--grafite); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-numeros dt { margin-top: .5rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave-escuro); }
.hm-sobre__fotos { position: relative; padding: 0 0 18% 0; }
.hm-sobre__fotos figure { overflow: hidden; }
.hm-sobre__fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-sobre__grande { aspect-ratio: 4 / 5; width: 78%; margin-left: auto; }
.hm-sobre__pequena { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 8px solid var(--papel); }

/* 02 — Obras: trilho horizontal (fixo e guiado pela rolagem no desktop; arrasta no celular) */
.hm-obras { background: var(--preto); color: var(--texto-claro); }
.hm-obras__fixo { padding-block: clamp(4rem, 9vh, 7rem) clamp(2.5rem, 6vh, 4.5rem); overflow: hidden; }
@media (min-width: 992px) { .hm-obras__fixo { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.hm-obras__topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hm-obras .hm-titulo { margin-bottom: 0; }
.hm-obras__trilho { display: flex; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.hm-obra { position: relative; display: block; width: clamp(240px, min(30vw, 40vh), 440px); color: #fff; text-decoration: none; }
.hm-obra__foto { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grafite); }
.hm-obra__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.1s var(--ease-out); }
.hm-obra:hover .hm-obra__foto img, .hm-obra:focus-visible .hm-obra__foto img { transform: scale(1.14); }
.hm-obra__num { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .8); }
.hm-obra__nome { display: block; margin-top: 1rem; font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: 1.05rem; text-transform: uppercase; }
.hm-obra__local { display: block; margin-top: .3rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dourado-claro); }
.hm-obras__barra { display: block; height: 1px; margin-top: 2rem; background: rgba(204, 164, 100, .25); }
.hm-obras__barra i { display: block; height: 100%; background: var(--dourado-claro); transform-origin: left center; transform: scaleX(0); }
@media (max-width: 991px) {
  .hm-obras__trilho { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
  .hm-obras__trilho::-webkit-scrollbar { display: none; }
  .hm-obra { flex: 0 0 auto; width: 72vw; scroll-snap-align: start; }
  .hm-obras__barra { display: none; }
}

/* 03 — Método: 9 passos acendem em sequência com a rolagem */
.hm-metodo { padding-block: var(--section-py); background: var(--grafite); color: var(--texto-claro); overflow: hidden; }
.hm-metodo__topo { display: grid; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 992px) { .hm-metodo__topo { grid-template-columns: 1.3fr 1fr; } }
.hm-metodo .hm-titulo { margin-bottom: 0; }
.hm-metodo__desc { max-width: 40ch; color: var(--texto-suave-claro); }
.hm-passos { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0; border-top: 1px solid rgba(204, 164, 100, .2); }
@media (min-width: 992px) { .hm-passos { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.hm-passos__linha { position: absolute; top: -1px; left: 0; right: 0; height: 1px; }
.hm-passos__linha i { display: block; height: 100%; background: var(--dourado-claro); transform-origin: left center; transform: scaleX(0); }
.hm-passo { padding: 1.4rem 1rem 1.4rem 0; opacity: .28; transition: opacity .5s var(--ease-out); }
.hm-passo.is-on { opacity: 1; }
.hm-passo__num { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--dourado-claro); transition: color .5s var(--ease-out); }
.hm-passo.is-on .hm-passo__num { color: var(--dourado-claro); }
.hm-passo__nome { display: block; margin-top: .75rem; font-size: .9rem; line-height: 1.35; }
@media (max-width: 991px) { .hm-passo { border-bottom: 1px solid rgba(204, 164, 100, .14); } }

/* 04 — Equipe: a foto abre como uma janela que se alarga com a rolagem */
.hm-equipe { padding-bottom: var(--section-py); background: var(--papel); overflow: hidden; }
.hm-equipe__janela { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; clip-path: inset(9% 7% 9% 7%); }
.hm-equipe__janela > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.15); }
.hm-equipe__janela::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,28,.35) 0%, rgba(20,22,28,0) 35%, rgba(20,22,28,.15) 60%, rgba(20,22,28,.8) 100%); }
.hm-equipe__sobre { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 9vh, 5rem); z-index: 1; color: #fff; }
.hm-equipe__sobre .hm-titulo { margin-bottom: 0; color: #fff; }
.hm-equipe__base { display: grid; gap: 2rem 4rem; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 992px) { .hm-equipe__base { grid-template-columns: 1.4fr 1fr; } }
.hm-rostos { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.hm-rosto { position: relative; width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--papel); box-shadow: 0 0 0 1px var(--linha-dourada); }
.hm-rosto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hm-rosto span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hm-equipe__acao p { margin-bottom: 1.5rem; color: var(--texto-suave-escuro); font-size: 1.05rem; max-width: 36ch; }
@media (max-width: 767px) { .hm-equipe__janela { height: 78svh; clip-path: inset(6% 5% 6% 5%); } }

/* 03 — Em execução: render grande que abre de lado, selo pulsando e miniaturas */
.hm-exec { padding-block: var(--section-py); background: var(--preto); color: var(--texto-claro); overflow: hidden; border-top: 1px solid rgba(204, 164, 100, .15); }
.hm-exec__grade { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 992px) { .hm-exec__grade { grid-template-columns: 1.3fr 1fr; } }
.hm-exec__foto { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grafite); }
.hm-exec__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.hm-exec__foto:hover img { transform: scale(1.1); }
.hm-exec__selo { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .85rem; background: var(--dourado-claro); color: var(--preto); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hm-exec__selo i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hm-exec__selo i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: hmPulso 1.8s ease-out infinite; }
@keyframes hmPulso { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.hm-exec__aviso { position: absolute; right: .8rem; bottom: .7rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hm-exec .hm-titulo { color: #fff; }
.hm-exec__nome { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: #fff; }
.hm-exec__nome span { color: var(--dourado-claro); font-size: .85em; }
.hm-exec__desc { margin: .75rem 0 1.5rem; max-width: 44ch; color: var(--texto-suave-claro); }
.hm-exec__minis { display: flex; gap: .6rem; margin-bottom: 2rem; }
.hm-exec__mini { width: 31%; max-width: 120px; aspect-ratio: 4 / 3; overflow: hidden; }
.hm-exec__mini img { width: 100%; height: 100%; object-fit: cover; }
.hm-exec__acoes { display: flex; flex-wrap: wrap; gap: .75rem; }
.hm-exec__outra { display: flex; align-items: center; gap: 1rem; margin: -0.5rem 0 1.75rem; padding: .75rem; border: 1px solid rgba(204,164,100,.3); color: #fff; transition: border-color .3s, background-color .3s; }
.hm-exec__outra:hover { border-color: var(--dourado-claro); background: rgba(204,164,100,.06); }
.hm-exec__outra img { width: 88px; height: 58px; object-fit: cover; flex-shrink: 0; }
.hm-exec__outra span { display: grid; gap: .2rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: .9rem; text-transform: uppercase; }
.hm-exec__outra small { font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .18em; color: var(--dourado-claro); }

/* estados iniciais só quando o motion vai rodar (home.js põe .hm-motion no <html>) */
.hm-motion .hm-sobre__grande, .hm-motion .hm-sobre__pequena { clip-path: inset(100% 0 0 0); }
.hm-motion .hm-exec__foto { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: reduce) {
  .hm-exec__selo i::after { animation: none; }
  .hm-equipe__janela { clip-path: none; }
  .hm-equipe__janela > img { transform: none; }
  .hm-passo { opacity: 1; }
  .hm-passos__linha i, .hm-obras__barra i { transform: none; }
}
