/* Ágora Software House · site (protótipo local, 26/11/2026)
   Book v2: o escuro frio da estrutura, a hachura a 45°, o lima como a única luz, a Neue DIN.
   Fonte: Neue DIN (Fontwerk), variável, em fonts/. */
@font-face { font-family: 'Neue DIN'; src: url('fonts/FwTRIAL-NeueDINVAR.woff2') format('woff2-variations'), url('fonts/FwTRIAL-NeueDINVAR.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 200%; font-display: swap; }

:root {
  --nanquim: #0F1114; --aco: #1A1D21; --concreto: #2A2E33; --linha: #33373D;
  --cinza: #9BA0A7; --papel: #F2F2EE; --grafite: #5E6166; --lima: #C6FF3D;
  --din: 'Neue DIN', 'Bahnschrift', 'Barlow', 'Arial Narrow', sans-serif;
  --m: clamp(22px, 4.4vw, 76px);
  --q: 12px; /* recuo do quadro */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--nanquim); scroll-behavior: smooth; }
body { font-family: var(--din); color: var(--papel); background: var(--nanquim); font-size: 17px; line-height: 1.45; font-weight: 400; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lima); color: var(--nanquim); }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tipografia (escala √2) */
.v90 { font-size: clamp(56px, 6.3vw, 90.5px); font-weight: 400; line-height: .95; letter-spacing: -.025em; }
.v64 { font-size: clamp(40px, 4.45vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.022em; }
.v45 { font-size: clamp(30px, 3.15vw, 45.3px); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
.v22 { font-size: 22.6px; font-weight: 450; line-height: 1.15; letter-spacing: -.01em; }
.txt { font-size: 17px; line-height: 1.5; max-width: 34em; }
.dado { font-weight: 500; font-stretch: 75%; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.dado.n { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.cinza { color: var(--cinza); }
.luz { color: var(--lima); }
.des { width: 100%; height: auto; overflow: visible; }
.des text { font-family: var(--din); }

/* O quadro da folha, em volta da tela */
.quadro { position: fixed; inset: var(--q); border: 1px solid var(--linha); pointer-events: none; z-index: 40; }

.topo { position: absolute; top: calc(var(--q) + 26px); left: var(--m); z-index: 20; }
.topo .lk-h { display: block; width: 168px; color: var(--papel); }
.lk-h svg, .lk-p svg { width: 100%; height: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--lima); color: var(--nanquim); border: 0; cursor: pointer; font-weight: 500; font-size: 14px; letter-spacing: .01em; padding: 12px 18px; text-decoration: none; transition: background-color .2s ease-out; }
.btn:hover { background: #d6ff6e; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; }

/* ---------- Folhas ---------- */
.folha { position: relative; padding: 15vh var(--m) 14vh; border-top: 1px solid var(--linha); }
.f-cab { display: flex; gap: 22px; margin-bottom: 7vh; }

/* ---------- 01 · Corte ---------- */
.abertura { border-top: 0; padding: 0; height: 100svh; min-height: 680px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.para-cel { display: none; }
.desenho {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .42fr) 48px minmax(0, 2.25fr);
  align-items: center; column-gap: 2.2vw; padding: calc(var(--q) + 84px) var(--m) 2vh calc(var(--m));
  min-height: 0;
}
.anot { display: grid; gap: 14px; }
.anota { font-size: clamp(24px, 2.25vw, 34px); line-height: 1.1; letter-spacing: -.018em; max-width: 12ch; }
.anot-fachada { align-self: center; position: relative; padding-right: 28px; }
.anot-fachada::after { content: ''; position: absolute; right: -2.2vw; top: 50%; width: calc(2.2vw + 26px); border-top: 1px solid var(--cinza); pointer-events: none; }
.fachada { color: var(--papel); }
.fachada svg { max-height: 46svh; width: auto; max-width: 100%; margin: 0 auto; }
.aa { align-self: stretch; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; color: var(--lima); font-weight: 500; font-stretch: 75%; font-size: 13px; padding: 4vh 0 7vh; }
.aa i { width: 0; border-left: 1.6px dashed var(--lima); margin: 8px 0; }
.corte-box { display: grid; grid-template-rows: auto auto auto; gap: 14px; align-self: center; padding-bottom: 110px; }
.anot-corte .anota { max-width: 18ch; }
.corte { color: var(--papel); }
.corte svg { height: min(48svh, 470px); width: auto; max-width: 100%; }
.corte .camada { cursor: pointer; outline: none; }
.corte .camada .r { transition: fill .2s ease-out; }
.corte .camada.on .r, .corte .camada:focus-visible .r { fill: var(--lima); }
.corte .camada.on text, .corte .camada:focus-visible text { fill: var(--lima); opacity: 1; }
.leitura { min-height: 2.9em; color: var(--cinza); max-width: 46em; }
.leitura b { color: var(--lima); font-weight: 500; }

/* A hachura varre as camadas na entrada (ligada à rolagem, reversível) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .varre { animation: varre linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes varre { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Faixa de clientes, esticada */
.faixa { border-top: 1px solid var(--linha); padding: 18px var(--m) 24px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3vw; margin: 0 var(--q) var(--q); }
.faixa-cli { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2.4vw; align-items: center; color: var(--cinza); }
.cli { background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.faixa .cli { height: 24px; }

/* ---------- Abas de setor ---------- */
.abas { display: flex; gap: 2px; flex-wrap: wrap; }
.abas button { background: none; border: 0; cursor: pointer; font-weight: 500; font-stretch: 75%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); padding: 5px 7px; }
.abas button[aria-pressed="true"] { color: var(--nanquim); background: var(--lima); }
.abas button:hover { color: var(--papel); }
.abas button[aria-pressed="true"]:hover { color: var(--nanquim); }

/* ---------- Carimbo (a navegação) ---------- */
.carimbo {
  position: fixed; right: calc(var(--q) + 0px); bottom: var(--cb-b, var(--q)); z-index: 50; width: min(560px, calc(100vw - 2 * var(--q)));
  display: grid; grid-template-columns: 150px 1fr 108px; grid-template-rows: auto auto;
  background: var(--nanquim); border-top: 1px solid var(--papel); border-left: 1px solid var(--papel);
}
.carimbo > * { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 10px 12px; min-width: 0; }
.carimbo b { display: block; font-weight: 500; font-stretch: 75%; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); margin-bottom: 4px; }
.cb-lk { grid-row: span 2; display: flex; align-items: center; color: var(--papel); }
.cb-lk .lk-h { width: 100%; }
.cb-tit span { display: block; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tit em { display: block; font-style: normal; font-size: 12px; color: var(--cinza); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-folha { background: none; border: 0; text-align: left; cursor: pointer; border-right: 0 !important; border-bottom: 1px solid var(--linha) !important; }
.cb-folha > span { font-size: 17px; white-space: nowrap; }
.cb-folha i { font-style: normal; color: var(--cinza); font-size: 11px; }
.cb-para { display: flex; align-items: center; gap: 10px; }
.cb-para b { margin: 0; }
.cb-fale { border: 0 !important; padding: 0 10px !important; font-size: 12.5px; text-align: center; line-height: 1.15; }
.cb-lista { position: absolute; right: -1px; bottom: 100%; width: 100%; list-style: none; background: var(--nanquim); border: 1px solid var(--papel); border-bottom: 0; padding: 6px 0 !important; }
.cb-lista[hidden] { display: none; }
.cb-lista a { display: flex; gap: 14px; padding: 8px 14px; text-decoration: none; font-size: 15px; }
.cb-lista a span { color: var(--cinza); font-weight: 500; font-stretch: 75%; font-size: 12px; letter-spacing: .08em; width: 22px; padding-top: 2px; }
.cb-lista a:hover, .cb-lista a.on { background: var(--aco); }
.cb-lista a.on span { color: var(--lima); }

/* ---------- 02 · Planta ---------- */
.planta-g { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.planta-des { color: var(--papel); }
.planta .sala-r { cursor: pointer; }
.planta .sala-r rect.chao { fill: transparent; transition: fill .2s ease-out; }
.planta .sala-r:hover rect.chao { fill: rgba(242, 242, 238, .04); }
.planta .sala-r.on .nome { fill: var(--lima); }
.planta .sala-r.on rect.chao { fill: rgba(198, 255, 61, .07); }
.planta-txt h2 { max-width: 13ch; margin-bottom: 40px; }
.sala { border-top: 1px solid var(--linha); padding-top: 18px; min-height: 230px; }
.sala .dado { color: var(--lima); }
.sala p.txt { margin: 10px 0 16px; }
.sala ul { list-style: none; }
.sala li { border-top: 1px solid var(--linha); padding: 9px 0; font-size: 15px; }
.salas-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 18px; }
.salas-nav button { background: none; border: 1px solid var(--linha); color: var(--cinza); padding: 7px 10px; cursor: pointer; font-weight: 500; font-stretch: 75%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.salas-nav button[aria-pressed="true"] { border-color: var(--lima); color: var(--lima); }

/* ---------- 03 · Setores ---------- */
.setores { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr); gap: 6vw; }
.setor { position: relative; }
.setor-agro h2 { margin: 18px 0 22px; }
.setor-agro .txt { font-size: 19px; }
.usos { list-style: none; margin-top: 30px; }
.usos li { border-top: 1px solid var(--linha); padding: 14px 0; max-width: 34em; color: var(--cinza); }
.usos li b { color: var(--papel); font-weight: 500; }
.setores-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 4vw; align-content: start; padding-top: 6px; }
.setores-2 .setor { border-top: 1px solid var(--linha); padding-top: 16px; }
.setores-2 .setor-outro { grid-column: 1 / -1; }
.setores-2 h3 { margin: 12px 0 12px; }
.setor.ativo > .dado::after { content: ' · aceso no corte'; color: var(--lima); }
.setor.ativo { }

/* ---------- 04 · Cronograma ---------- */
.cron-tit { max-width: 17ch; margin-bottom: 9vh; }
.cron { position: relative; }
.cron-cota { position: relative; height: 34px; }
.cron-cota b { position: absolute; left: 0; right: 0; top: 16px; border-top: 1.4px solid var(--papel); transform-origin: left center; }
.cron-cota i { position: absolute; top: 9px; width: 16px; border-top: 2px solid var(--papel); transform: rotate(-45deg); }
.cron-cota .t0 { left: -8px; } .cron-cota .t1 { right: -8px; }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .cron-cota b { animation: abre linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
} }
@keyframes abre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cron-etapas { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cron-etapas li { padding: 22px 22px 0 0; border-left: 1px solid var(--linha); padding-left: 16px; position: relative; }
.cron-etapas li::before { content: ''; position: absolute; left: -1px; top: -18px; height: 18px; border-left: 1px solid var(--papel); }
.cron-etapas .num { color: var(--lima); }
.cron-etapas h3 { margin: 8px 0 12px; }
.cron-etapas p { font-size: 15px; color: var(--cinza); line-height: 1.45; }
.cron-etapas .rec { margin-top: 16px; border-top: 1px solid var(--linha); padding-top: 10px; }
.cron-etapas .rec span { display: block; color: var(--papel); font-size: 15px; margin-top: 4px; text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 400; }
.cron-nota { margin-top: 6vh; }

/* ---------- 05 · Memorial ---------- */
.memo-g { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 6vw; }
.memo-g h2 { max-width: 13ch; }
.memorial { list-style: none; counter-reset: m; }
.memorial li { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; border-top: 1px solid var(--linha); padding: 18px 0; align-items: baseline; }
.memorial li:last-child { border-bottom: 1px solid var(--linha); }
.memorial .n { color: var(--lima); }
.memorial h3 { font-size: 19px; font-weight: 450; line-height: 1.2; }
.memorial p { color: var(--cinza); font-size: 15.5px; }

/* ---------- 06 · A casa ---------- */
.casa-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: end; margin-bottom: 7vh; }
.casa-g h2 { max-width: 14ch; }
.parede { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.parede > * { aspect-ratio: 2.1; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); display: grid; place-items: center; padding: 15% 16%; color: var(--papel); }
.parede .cli { width: 100%; height: 100%; }
.parede .films { place-items: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; text-decoration: none; grid-column: span 2; aspect-ratio: auto; transition: background-color .2s ease-out; }
.parede .films:hover { background: var(--aco); }
.parede .films p { font-size: 17px; line-height: 1.3; max-width: 26ch; }
.parede .films .dado { color: var(--lima); }

/* ---------- 07 · Aprovação ---------- */
.apr-g { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 6vw; align-items: start; }
.apr-g h2 { max-width: 12ch; margin-bottom: 26px; }
.apr { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--papel); }
.apr .c { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 12px 14px; display: block; min-width: 0; }
.apr .c b { display: block; font-weight: 500; font-stretch: 75%; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); margin-bottom: 6px; }
.apr input, .apr select, .apr textarea { width: 100%; background: transparent; border: 0; font-size: 17px; padding: 2px 0; resize: none; border-radius: 0; }
.apr select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.apr select option { background: var(--nanquim); }
.apr input::placeholder, .apr textarea::placeholder { color: #5f646b; }
.c-nome { grid-column: 1 / 3; grid-row: 1; } .c-set { grid-column: 3; grid-row: 1; border-right: 0 !important; }
.c-emp { grid-column: 1 / -1; grid-row: 2; border-right: 0 !important; }
.c-msg { grid-column: span 3; border-right: 0 !important; }
.c-lk { display: flex !important; align-items: center; } .c-lk .lk-h { width: 150px; }
.c-env { grid-column: span 2; border-right: 0 !important; padding: 0 !important; }
.c-env .btn { width: 100%; height: 100%; min-height: 58px; font-size: 16px; }
.c-lgpd { grid-column: span 3; border: 0 !important; }
.apr .erro { color: var(--lima); }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 12vh var(--m) calc(var(--q) + 150px); }
.rod-lk { width: min(820px, 76vw); color: var(--papel); }
.rod-l { display: flex; justify-content: space-between; gap: 20px; margin-top: 7vh; max-width: calc(100% - 580px); }
.rod-l a { text-decoration: none; }
.rod-links { display: flex; gap: 22px; flex-wrap: wrap; }
.rod-l a:hover { color: var(--papel); }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  :root { --q: 6px; }
  .topo { top: 22px; }
  .topo .lk-h { width: 132px; }
  .abertura { grid-template-rows: auto auto auto; min-height: auto; height: auto; }
  .para-cel { display: flex; align-items: center; gap: 12px; padding: 66px var(--m) 0; }
  .desenho { grid-template-columns: 58px 24px minmax(0, 1fr); grid-template-areas: "af af af" "fa aa co"; padding: 26px var(--m) 8px; row-gap: 26px; column-gap: 10px; align-items: start; }
  .anot-fachada { grid-area: af; padding: 0; }
  .anot-fachada::after { display: none; }
  .fachada { grid-area: fa; padding-top: 74px; }
  .fachada svg { max-height: none; width: 100%; }
  .aa { grid-area: aa; padding: 74px 0 40px; }
  .corte-box { grid-area: co; padding: 0; }
  .corte svg { max-height: none; }
  .anota { font-size: 25px; max-width: 16ch; }
  .anot-corte .anota { font-size: 21px; }
  .faixa { grid-template-columns: 1fr; gap: 16px; padding: 18px var(--m) 22px; margin: 0; }
  .faixa-cli { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 22px; }
  .faixa .cli { height: 20px; }
  .folha { padding: 11vh var(--m) 10vh; }
  .planta-g, .setores, .memo-g, .casa-g, .apr-g { grid-template-columns: 1fr; gap: 40px; }
  .setores-2 { grid-template-columns: 1fr; }
  .cron-cota { display: none; }
  .cron-etapas { grid-template-columns: 1fr; border-left: 1.4px solid var(--papel); margin-left: 8px; }
  .cron-etapas li { border-left: 0; padding: 0 0 30px 22px; }
  .cron-etapas li::before { top: 8px; left: -1px; width: 14px; height: 0; border-left: 0; border-top: 1.4px solid var(--papel); }
  .memorial li { grid-template-columns: 40px 1fr; } .memorial p { grid-column: 2; }
  .parede { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parede .films { grid-column: span 2; }
  .apr { grid-template-columns: 1fr 1fr; }
  .c-nome, .c-emp, .c-msg, .c-lgpd { grid-column: span 2; border-right: 0 !important; }
  .c-nome, .c-set, .c-emp { grid-row: auto; } .c-set { grid-column: span 2; }
  .c-lk { display: none !important; }
  .c-env { grid-column: span 2; }
  .rodape { padding-bottom: 110px; }
  .rod-l { max-width: none; flex-direction: column; }
  /* carimbo vira faixa embaixo */
  .carimbo { left: 0; right: 0; bottom: 0 !important; width: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; border-left: 0; padding-bottom: env(safe-area-inset-bottom); }
  .cb-lk, .cb-para, .cb-tit em { display: none; }
  .cb-tit { display: none; }
  .cb-folha { border-bottom: 0 !important; padding: 10px 14px !important; display: flex; align-items: center; gap: 10px; overflow: hidden; }
  .cb-folha > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cb-folha b { margin: 0; }
  .cb-folha > span { font-size: 15px; }
  .cb-folha .cb-titm { display: inline; }
  .cb-fale { padding: 0 16px !important; font-size: 14px; }
  .cb-lista { left: 0; right: 0; width: auto; border-left: 0; border-right: 0; }
  .quadro { display: none; }
}
@media (min-width: 901px) { .cb-titm { display: none; } }
