/* cobalt-draft / 01-cn-construtora — construtora de construção industrializada "C&N Construtora".
   Escrito a partir de references/builders/reference-01 e dos limites da família (tokens.css, design-dna.json). Variação, não
   cópia (R32): azul de planta e marfim com o laranja só no botão, Chivo e Chivo Mono, a planta que se desenha e vira prédio
   desenhada pela página, a foto que abre com a mira e a régua de cota, a prancha de cantos cortados; seções e textos próprios.
   Gaveta do menu (dialog), trilho das obras (rail), acordeão, revelação, cabeçalho e ano são comportamentos globais;
   script.js troca a cor da marca, abre a faixa da obra, a mira, gira a planta, digita o título e abre as fichas. */

/* ---- base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cd-header-h) + 8px); }
body { margin: 0; background: var(--cd-paper); color: var(--cd-ink); font: 400 var(--cd-text)/var(--cd-leading) var(--cd-font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
button { font: inherit; color: inherit; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--cd-blue); color: var(--cd-paper); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cd-accent-ink); outline-offset: 3px; }
[data-cd-tone="dark"] :focus-visible, .drawer :focus-visible { outline-color: var(--cd-accent-light); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.band { position: relative; }
.label { font: 500 var(--cd-label)/1.2 var(--cd-mono); text-transform: uppercase; letter-spacing: .04em; }
.title { font: 400 var(--cd-title)/1.02 var(--cd-font); letter-spacing: -.035em; text-wrap: balance; }
.title-xl { font-size: clamp(3rem, 7vw, 6.6rem); letter-spacing: -.05em; }
.title-accent { color: var(--cd-accent-light); }

/* o botão-caixa: texto num retângulo e a seta numa caixinha, como células da prancha */
.box { display: inline-flex; align-items: stretch; min-height: 46px; border: 1px solid currentColor; text-decoration: none; font: 600 .98rem/1 var(--cd-font); }
.box-text { display: flex; align-items: center; padding: 0 22px 0 14px; min-width: 180px; }
.box-arrow { display: grid; place-items: center; width: 46px; border-left: 1px solid currentColor; transition: background-color .25s, color .25s; }
.box:hover .box-arrow, .box:focus-visible .box-arrow { background: var(--cd-accent); color: var(--cd-on-accent); }
.box-light { color: var(--cd-paper); }

/* ---- cabeçalho -------------------------------------------------------------------------------------------------- */
.header { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px var(--cd-gutter); pointer-events: none; }
.header > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--cd-on-blue); text-decoration: none; transition: color .3s; }
.brand-mark svg { width: 26px; height: 26px; stroke-width: 2; }
.brand-name { font: 800 1.3rem/1 var(--cd-font); letter-spacing: -.03em; }
.header.on-light .brand { color: var(--cd-ink); }
.header-boxes { display: flex; gap: 12px; }
.hbox { display: inline-flex; align-items: stretch; min-height: 46px; border: 1px solid var(--cd-ink); background: var(--cd-paper); color: var(--cd-ink); text-decoration: none; cursor: pointer; padding: 0; font: 600 .98rem/1 var(--cd-font); }
.hbox > span:first-child { display: flex; align-items: center; padding: 0 18px 0 12px; min-width: 120px; }
.hbox-ic { display: grid; place-items: center; width: 56px; border-left: 1px solid currentColor; }
.hbox-cta { background: var(--cd-accent); border-color: var(--cd-accent); color: var(--cd-on-accent); }
.hbox-cta > span:first-child { min-width: 170px; }
.hbox-cta .hbox-ic { border-left-color: rgba(11, 31, 58, .35); }
.hbox:hover .hbox-ic { background: var(--cd-blue); color: var(--cd-paper); }
.hbox-cta:hover .hbox-ic { background: var(--cd-blue-2); }

/* ---- gaveta do menu -------------------------------------------------------------------------------------------- */
.drawer { margin: 0 0 0 auto; width: min(560px, 100%); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: var(--cd-blue); color: var(--cd-on-blue);
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.drawer::backdrop { background: rgba(11, 31, 58, .45); }
.drawer[open] { animation: cd-drawer .45s var(--cd-ease-out); }
.drawer.is-closing { animation: cd-drawer-out .22s ease forwards; }
@keyframes cd-drawer { from { transform: translateX(100%); } }
@keyframes cd-drawer-out { to { transform: translateX(100%); } }
.drawer-in { min-height: 100%; display: flex; flex-direction: column; gap: 36px; padding: 14px var(--cd-gutter) 28px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-title { font: 500 var(--cd-label)/1 var(--cd-mono); text-transform: uppercase; letter-spacing: .04em; }
.drawer-links { display: flex; flex-direction: column; border-top: 1px solid var(--cd-line-blue); counter-reset: f; }
.drawer-links a { display: flex; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--cd-line-blue); font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--cd-font); letter-spacing: -.03em; text-decoration: none; }
.drawer-links a::before { counter-increment: f; content: counter(f, decimal-leading-zero) " /"; font: 500 var(--cd-label) var(--cd-mono); color: var(--cd-on-blue-muted); }
.drawer-links a:hover { color: var(--cd-accent-light); }
.drawer-info { margin-top: auto; display: grid; gap: 16px; font-size: .92rem; }
.drawer-info p { display: grid; gap: 4px; }
.drawer-info span { font: 500 var(--cd-label) var(--cd-mono); text-transform: uppercase; color: var(--cd-on-blue-muted); }
.drawer-info a { text-decoration: none; border-bottom: 1px solid var(--cd-line-blue); justify-self: start; }

/* ---- destaque: a prancha com os volumes que sobem --------------------------------------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-height: max(640px, 100svh); background: var(--cd-blue); color: var(--cd-on-blue);
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.hero-left { display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--cd-header-h) + 40px) var(--cd-gutter) 40px; border-right: 1px solid var(--cd-line-blue); }
.hero-title { font: 600 min(var(--cd-h1), 4.3vw)/.96 var(--cd-font); letter-spacing: -.05em; }   /* cabe na coluna de 1/3 (v1.67.3) */
.hero-title .line { display: inline-block; animation: cd-up .9s var(--cd-ease-out) both; }
.hero-title .line:nth-child(2) { animation-delay: .08s; } .hero-title .line:nth-child(3) { animation-delay: .16s; } .hero-title .line:nth-child(4) { animation-delay: .24s; }
@keyframes cd-up { from { opacity: 0; transform: translateY(.4em); } }
.hero-lead { max-width: 22ch; font: 300 clamp(1.3rem, 2vw, 1.8rem)/1.25 var(--cd-font); }
.hero-right { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: calc(var(--cd-header-h) + 0px); }
.cells { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cd-line-blue); }
.cells p { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 52px; padding: 0 var(--cd-gutter); border-bottom: 1px solid var(--cd-line-blue); font: 500 var(--cd-label) var(--cd-mono); text-transform: uppercase; }
.cells p + p { border-left: 1px solid var(--cd-line-blue); }
.plan-box { display: grid; place-items: center; padding: clamp(20px, 4vw, 60px); }
.vol { width: min(100%, 600px, calc((100svh - 240px) * .86)); height: auto; overflow: visible; }
.vol .blk { animation: cd-rise .8s var(--cd-ease-out) both; animation-delay: calc(.3s + var(--k) * .06s); }
.vol polygon { stroke: var(--cd-blue); stroke-width: 1.5; stroke-linejoin: round; }
.vol .t { fill: var(--cd-paper); } .vol .f { fill: #D8D2C4; } .vol .l { fill: #B9B2A2; }
.vol .is-accent .t { fill: var(--cd-accent-light); } .vol .is-accent .f { fill: var(--cd-accent); } .vol .is-accent .l { fill: var(--cd-accent-ink); }
.vol .dim { stroke: var(--cd-accent); stroke-width: 1.2; fill: none; opacity: 0; animation: cd-fade .6s ease 1.5s forwards; }
.vol .dim-t { fill: var(--cd-accent-light); font: 500 13px var(--cd-mono); text-anchor: middle; opacity: 0; animation: cd-fade .6s ease 1.6s forwards; }
@keyframes cd-rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes cd-fade { to { opacity: 1; } }
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--cd-line-blue); }
.sheet span { display: flex; align-items: center; min-height: 56px; padding: 0 var(--cd-gutter); font: 500 var(--cd-label) var(--cd-mono); text-transform: uppercase; }
.sheet span + span { border-left: 1px solid var(--cd-line-blue); }

/* os volumes como protótipo: as quatro guias seguem as bordas da quadra, retas, e inclinam um pouco com o mouse, sempre
   do lado de fora dos módulos; a altura acompanha (script.js; só com mouse) */
.plan-box { position: relative; overflow: hidden; }
.guides { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.plan-box.is-ready .guides { opacity: 1; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net path { fill: none; stroke: rgba(244, 241, 234, .38); stroke-width: 1; }
.net rect { fill: var(--cd-blue); stroke: var(--cd-accent); stroke-width: 1.5; }
.g-dim { position: absolute; left: 0; top: 0; padding: 4px 7px; background: var(--cd-accent); color: var(--cd-on-accent); font: 500 .7rem/1 var(--cd-mono); white-space: nowrap; }
.plan-box.is-live .vol .blk { animation: none; }

/* ---- a abertura: a porta geométrica (primeira visita) ------------------------------------------------------------- */
.door { display: none; }
html.cd-intro { overflow: hidden; }
html.cd-intro .door { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.door i { position: absolute; inset: 0; }
.door-veil { background: rgba(11, 31, 58, .7); transition: opacity 1.1s ease .2s; }
.door-a, .door-b { background: var(--cd-blue); transition: transform 1.2s var(--cd-ease);
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.door-a { clip-path: polygon(0 0, 100% 0, 0 100%); }
.door-b { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
html.cd-intro-open .door-a { transform: translate(-62vw, -62vh); }
html.cd-intro-open .door-b { transform: translate(62vw, 62vh); }
html.cd-intro-open .door-veil { opacity: 0; }

/* ---- a faixa da obra: a prancha de cantos cortados que se abre ------------------------------------------------- */
.sheet-band { position: relative; height: 200svh; background: var(--cd-blue); }
.sheet-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sheet-media { position: absolute; inset: 0; --c: 0; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }
.sheet-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 58, .1), rgba(11, 31, 58, .55)); }
.sheet-title { position: absolute; z-index: 2; left: var(--cd-gutter); right: var(--cd-gutter); top: 50%; transform: translateY(-50%); max-width: 26ch; color: var(--cd-on-blue);
  font: 800 clamp(1.4rem, 2.6vw, 2.4rem)/1.08 var(--cd-font); text-transform: uppercase; letter-spacing: -.01em; }
.sheet-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; transform: scale(var(--z, 1)); }
[data-ws2-film-playing] .sheet-video { opacity: 1; }
.film-toggle { position: absolute; z-index: 5; right: var(--cd-gutter); bottom: 24px; min-height: 46px; }
.film-toggle .hbox-ic { border-left: 0; }
.film-toggle .ic-play, .film-toggle[aria-pressed="true"] .ic-pause { display: none; }
.film-toggle[aria-pressed="true"] .ic-play { display: block; }
.film-toggle[hidden] { display: none; }
.sheet-title .cursor { display: inline-block; width: .5em; height: .9em; margin-left: .05em; vertical-align: -.08em; background: var(--cd-accent); }
.sheet-title.typed .cursor { animation: cd-blink 1s steps(1) infinite; }

/* ---- visão: a mira e a cota --------------------------------------------------------------------------------------- */
.vision { border-bottom: 1px solid var(--cd-line); }
.vision-media { position: relative; padding: var(--cd-gutter); border-right: 1px solid var(--cd-line); }
.aim { width: 58%; aspect-ratio: 4 / 5; }
/* a mira ([data-cd-aim]; nas obras entregues, não — lá as fotos ficam paradas, v1.67.4): a foto abre a partir do canto de cima,
   direto sobre o papel (sem moldura colorida antes, v1.67.4); as linhas e os números seguem o canto */
[data-cd-aim] { position: relative; --a: 1; }
[data-cd-aim] > img { clip-path: inset(0 calc((1 - var(--a)) * 100%) calc((1 - var(--a)) * 100%) 0); }
.aim-v, .aim-h { position: absolute; z-index: 4; background: var(--cd-accent); pointer-events: none; transition: opacity .5s; }
.aim-v { top: -14px; bottom: -14px; width: 1px; left: min(calc(var(--a) * 100%), calc(100% - 1px)); }
.aim-h { left: -14px; right: -14px; height: 1px; top: min(calc(var(--a) * 100%), calc(100% - 1px)); }
.aim-n { position: absolute; z-index: 4; left: min(calc(var(--a) * 100% + 8px), calc(100% - 92px)); top: min(calc(var(--a) * 100% + 8px), calc(100% - 46px));
  display: grid; gap: 2px; font: 500 .72rem/1 var(--cd-mono); color: var(--cd-ink); white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.aim-n b { font-weight: 500; background: var(--cd-paper); padding: 3px 5px; border: 1px solid var(--cd-accent); }
.aim-done:not(.aim) .aim-v, .aim-done:not(.aim) .aim-h, .aim-done:not(.aim) .aim-n { opacity: 0; }
.cota { position: relative; width: 58%; height: 16px; margin-top: 46px; --a: 1; }
.cota-line { position: absolute; left: 0; top: 7px; height: 1px; width: calc(var(--a) * 100%); background: var(--cd-ink); }
.cota-line::before, .cota-line::after { content: ""; position: absolute; top: -7px; width: 1px; height: 15px; background: var(--cd-ink); }
.cota-line::before { left: 0; } .cota-line::after { right: 0; }
.cota-t { position: absolute; left: calc(var(--a) * 50%); top: -4px; transform: translateX(-50%); padding: 0 8px; background: var(--cd-paper); font: 500 .74rem/1 var(--cd-mono); }
.vision-text { display: flex; flex-direction: column; padding: clamp(30px, 5vw, 70px) var(--cd-gutter) 0; }
.vision-text .title { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.vision-sub { margin-top: auto; padding-block: 40px 28px; font: 300 clamp(1.3rem, 2vw, 1.7rem)/1.25 var(--cd-font); max-width: 22ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cd-line); margin-inline: calc(var(--cd-gutter) * -1); }
.duo-item { display: flex; flex-direction: column; gap: 70px; padding: 18px var(--cd-gutter) 30px; }
.duo-item + .duo-item { border-left: 1px solid var(--cd-line); }
.duo-item h3 { display: flex; justify-content: space-between; font: 600 1rem/1 var(--cd-font); text-transform: uppercase; }
.duo-item h3 i { width: 8px; height: 8px; background: currentColor; }
.duo-item p { font-size: 1.05rem; line-height: 1.4; }
.duo-item .box { align-self: flex-start; margin-top: auto; }

/* ---- o sistema: a planta que vira prédio --------------------------------------------------------------------------- */
.system { position: relative; height: 240svh; background: var(--cd-blue-2); color: var(--cd-on-blue); }
.system-sticky { position: sticky; top: 0; height: 100svh; }
.system-text { display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--cd-header-h) + 30px) var(--cd-gutter) 40px; border-right: 1px solid var(--cd-line-blue); }
.system-text p:last-child { max-width: 30rem; font-size: 1.08rem; color: var(--cd-on-blue-muted); }
.system-draw { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: calc(var(--cd-header-h) + 10px) var(--cd-gutter) 0;
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.axo { width: 100%; height: 100%; overflow: visible; }
.axo .f { fill: rgba(242, 107, 42, .1); stroke: var(--cd-accent); stroke-width: 1.4; stroke-linejoin: round; }
.axo .fl { fill: rgba(244, 241, 234, .04); stroke: var(--cd-on-blue-muted); stroke-width: 1; stroke-dasharray: 5 5; }
.axo .t { fill: var(--cd-on-blue); font: 500 12px var(--cd-mono); text-anchor: middle; }
.axo-data { display: flex; align-items: stretch; border: 1px solid var(--cd-line-blue); border-bottom: 0; align-self: end; width: max-content; max-width: 100%; }
.axo-mark { display: grid; place-items: center; width: 92px; border-right: 1px solid var(--cd-line-blue); color: var(--cd-accent); }
.axo-mark svg { width: 46px; height: 46px; stroke-width: 1.6; }
.axo-data p { display: grid; }
.axo-data span { padding: 9px 16px; font: 500 var(--cd-label) var(--cd-mono); text-transform: uppercase; color: var(--cd-accent-light); border-bottom: 1px solid var(--cd-line-blue); }

/* ---- soluções: as linhas que se empilham -------------------------------------------------------------------------- */
.solutions { padding-top: var(--cd-section-y); }
.solutions-head { padding: 0 var(--cd-gutter) clamp(40px, 6vw, 90px); }
.solutions-head .title { margin-top: 18px; max-width: 16ch; }
.stack { border-top: 1px solid var(--cd-line); }
.stack-item { position: sticky; top: calc(var(--cd-header-h) + 8px + var(--i) * 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); min-height: calc(100svh - var(--cd-header-h) - 220px);
  background: var(--cd-paper); border-bottom: 1px solid var(--cd-line); }
.stack-n { padding: 14px var(--cd-gutter); font: 600 1.1rem/1 var(--cd-font); border-right: 1px solid var(--cd-line); }
.stack-media { margin: 18px var(--cd-gutter); overflow: hidden; }
.stack-media img { width: 100%; height: 100%; object-fit: cover; }
.stack-text { display: flex; flex-direction: column; gap: 16px; padding: 14px var(--cd-gutter) 30px; border-left: 1px solid var(--cd-line); }
.stack-name { font: 600 1.05rem/1 var(--cd-font); text-transform: uppercase; }
.stack-head { font: 400 clamp(1.8rem, 3vw, 2.8rem)/1.05 var(--cd-font); letter-spacing: -.035em; max-width: 18ch; margin-bottom: auto; }
.stack-text > p:not(.stack-head) { max-width: 34rem; font-size: 1.05rem; line-height: 1.45; }
.stack-text .box { align-self: flex-start; }

/* ---- obras ----------------------------------------------------------------------------------------------------- */
.works { padding-bottom: var(--cd-section-y); }
.works-banner { height: clamp(300px, 56vw, 640px); overflow: hidden; background: var(--cd-blue); }
.works-banner img { width: 100%; height: 100%; object-fit: cover; }
.works-head { grid-template-columns: 1fr; padding: 18px var(--cd-gutter) 34px; border-bottom: 1px solid var(--cd-line); }
.works-head .label { display: flex; justify-content: space-between; }
.works-head .label::after { content: ""; width: 8px; height: 8px; background: currentColor; }
.works-head .title { margin-top: clamp(50px, 9vw, 130px); }
[data-cd-typing].is-typing::after, [data-cd-typing].typed::after { content: ""; display: inline-block; width: .5em; height: .82em; margin-left: .04em; vertical-align: -.04em; background: var(--cd-ink); }
[data-cd-typing].typed::after { animation: cd-blink 1s steps(1) infinite; }
@keyframes cd-blink { 50% { opacity: 0; } }
.rail-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.work { position: relative; flex: 0 0 clamp(300px, 40vw, 640px); aspect-ratio: 4 / 3; scroll-snap-align: start; overflow: hidden; background: var(--cd-blue); color: var(--cd-on-blue); border-right: 1px solid var(--cd-paper); }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 31, 58, .7)); pointer-events: none; }
.work-code { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 5px 8px; background: rgba(244, 241, 234, .16); backdrop-filter: blur(6px); font: 500 .74rem/1 var(--cd-mono); }
.work-name { position: absolute; z-index: 2; left: 16px; right: 80px; bottom: 18px; font: 600 clamp(1.3rem, 2vw, 1.9rem)/1.05 var(--cd-font); letter-spacing: -.03em; }
.work-more { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cd-on-blue); background: transparent; color: var(--cd-on-blue); cursor: pointer; transition: background-color .25s, transform .3s; }
.work-more:hover, .work-more[aria-expanded="true"] { background: var(--cd-accent); border-color: var(--cd-accent); color: var(--cd-on-accent); }
.work-more[aria-expanded="true"] svg { transform: rotate(45deg); }
.work-facts { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px 16px 76px; background: rgba(11, 31, 58, .92); display: grid; gap: 0; font-size: .92rem; transform: translateY(100%); transition: transform .4s var(--cd-ease-out); }
.work-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--cd-line-blue); }
.work-facts dt { font: 500 var(--cd-label) var(--cd-mono); text-transform: uppercase; color: var(--cd-on-blue-muted); }
.work.is-open .work-facts { transform: none; }
.work.is-open .work-name { bottom: auto; top: 54px; }
.rail-nav { display: flex; gap: 10px; padding: 26px var(--cd-gutter) 0; }
.sq { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--cd-ink); background: transparent; cursor: pointer; }
.sq:disabled { opacity: .3; cursor: default; }
.sq:not(:disabled):hover { background: var(--cd-blue); color: var(--cd-paper); }
.rail-nav .box { margin-left: 4px; }

/* ---- garantias: o título com os blocos e o acordeão ------------------------------------------------------------- */
.guarantees { border-top: 1px solid var(--cd-line); }
.guarantees-side { padding: 18px var(--cd-gutter) var(--cd-section-y); border-right: 1px solid var(--cd-line); }
.guarantees-side .label { display: flex; justify-content: space-between; margin-bottom: clamp(40px, 6vw, 80px); }
.guarantees-side .label::after { content: ""; width: 8px; height: 8px; background: currentColor; }
.mask span { position: relative; display: inline; }
.mask span::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: .06em; bottom: -.06em; background: var(--cd-blue); transform-origin: right; transition: transform .7s var(--cd-ease); }
.mask.in span::after { transform: scaleX(0); }
.mask.in span:nth-child(2)::after { transition-delay: .12s; } .mask.in span:nth-child(3)::after { transition-delay: .24s; }
.acc-item { border-bottom: 1px solid var(--cd-line); }
.acc-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px var(--cd-gutter); cursor: pointer; list-style: none; font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1.1 var(--cd-font); letter-spacing: -.03em; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-ic { position: relative; width: 26px; height: 26px; flex: none; }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform .3s; }
.acc-ic::after { transform: rotate(90deg); }
.acc-item[open] .acc-ic::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 0 var(--cd-gutter) 26px; }
.acc-body p { font-size: 1.02rem; max-width: 30rem; }
.acc-media { aspect-ratio: 1; overflow: hidden; }
.acc-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- para quem constrói em série e quem responde ---------------------------------------------------------------- */
.series { border-top: 1px solid var(--cd-line); }
.series-media { margin: var(--cd-gutter); aspect-ratio: 3 / 4; max-height: 86svh; overflow: hidden; }
.series-media img { width: 100%; height: 100%; object-fit: cover; }
.series-text { display: flex; flex-direction: column; gap: 22px; justify-content: center; padding: var(--cd-section-y) var(--cd-gutter); border-left: 1px solid var(--cd-line); }
.series-text .title { max-width: 16ch; }
.series-text > p { max-width: 34rem; font-size: 1.1rem; }
.sectors { display: grid; border-top: 1px solid var(--cd-line); max-width: 34rem; }
.sectors li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--cd-line); font-weight: 600; }
.sq-dot { width: 8px; height: 8px; background: var(--cd-accent); }
.series-text .box, .lead-text .box { align-self: flex-start; }
.lead { border-top: 1px solid var(--cd-line); }
.lead-text { display: flex; flex-direction: column; gap: 24px; padding: var(--cd-section-y) var(--cd-gutter); border-right: 1px solid var(--cd-line); }
.lead-text p { max-width: 32rem; font-size: 1.15rem; }
.lead-media { margin: var(--cd-gutter); aspect-ratio: 4 / 5; max-height: 86svh; overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- convite ----------------------------------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--cd-blue-2); color: var(--cd-on-blue);
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.cta-blocks { position: absolute; right: -4%; top: 50%; width: min(52vw, 620px); transform: translateY(-50%); pointer-events: none; }
.cta-blocks svg { width: 100%; height: auto; }
.cta-blocks .blk { fill: rgba(242, 107, 42, .16); stroke: var(--cd-accent); stroke-width: 1.5; }
.cta-blocks .blk-l { stroke: var(--cd-accent); stroke-width: 1.5; fill: none; opacity: .8; }
.cta-in { position: relative; z-index: 2; min-height: 560px; }
.cta-note { align-self: start; padding: 40px var(--cd-gutter); max-width: 30rem; color: var(--cd-on-blue-muted); border-right: 1px solid var(--cd-line-blue); height: 100%; }
.cta-main { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 60px var(--cd-gutter); }
.cta-title { font: 800 clamp(2.6rem, 5.6vw, 5.2rem)/.98 var(--cd-font); letter-spacing: -.045em; max-width: 12ch; }
.cta-main .box { align-self: flex-start; }

/* ---- rodapé ------------------------------------------------------------------------------------------------------ */
.footer { background: var(--cd-blue); color: var(--cd-on-blue); overflow: hidden;
  background-image: linear-gradient(var(--cd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cd-grid) 1px, transparent 1px); background-size: 40px 40px; }
.footer-sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--cd-line-blue); border-bottom: 1px solid var(--cd-line-blue); }
.fsheet { display: flex; flex-direction: column; gap: 70px; padding: 18px var(--cd-gutter) 26px; }
.fsheet + .fsheet { border-left: 1px solid var(--cd-line-blue); }
.fsheet-n { display: flex; justify-content: space-between; font: 600 1rem/1 var(--cd-font); text-transform: uppercase; }
.fsheet-n i { width: 8px; height: 8px; background: currentColor; }
.fsheet-links { display: flex; flex-direction: column; gap: 6px; font-size: 1.1rem; }
.fsheet-links a { text-decoration: none; align-self: flex-start; }
.fsheet-links a:hover { color: var(--cd-accent-light); }
.footer .ws2-social { margin-top: 12px; }
.footer .ws2-social-link { border-color: var(--cd-line-blue); }
.footer-word { padding: clamp(24px, 4vw, 50px) var(--cd-gutter) 0; line-height: 0; }
.footer-word svg { width: 100%; height: auto; overflow: visible; }
.footer-word text { font: 800 210px var(--cd-font); letter-spacing: -.04em; fill: var(--cd-on-blue); }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 16px var(--cd-gutter); border-top: 1px solid var(--cd-line-blue); font: 500 .72rem/1.5 var(--cd-mono); text-transform: uppercase; }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ---- página de privacidade (sem destaque): conteúdo abaixo do cabeçalho -------------------------------------------- */
body:not(:has(.hero)) main { padding-top: calc(var(--cd-header-h) + 40px); }

/* ---- revelação ---------------------------------------------------------------------------------------------------- */
.reveal:not(.mask) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--cd-ease-out), transform .8s var(--cd-ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---- tablet e celular -------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--cd-h1); }
  .hero-left { border-right: 0; min-height: 62svh; }
  .hero-right { padding-top: 0; }
  .grid { grid-template-columns: 1fr; }
  .vision-media, .guarantees-side, .lead-text, .cta-note, .system-text { border-right: 0; }
  .series-text { border-left: 0; }
  .system { height: auto; }
  .system-sticky { position: relative; height: auto; }
  .system-text { padding-bottom: 20px; }
  .system-draw { padding-top: 0; min-height: 70svh; }
  .stack-item { grid-template-columns: 80px minmax(0, 1fr); top: calc(var(--cd-header-h) + 8px + var(--i) * 44px); }
  .stack-media { grid-column: 2; grid-row: 2; margin: 0 var(--cd-gutter) 18px; aspect-ratio: 4 / 3; }
  .stack-text { grid-column: 2; grid-row: 1; border-left: 0; }
  .stack-n { grid-row: 1 / 3; }
  .cta-blocks { opacity: .45; width: 90vw; right: -20vw; }
}
@media (max-width: 700px) {
  .header { padding: 10px var(--cd-gutter); }
  .brand-name { font-size: 1.05rem; }
  .hbox > span:first-child { display: none; }
  .hbox-ic { width: 46px; border-left: 0; }
  .hbox-cta .hbox-ic { border-left: 0; }
  .cells p { gap: 0; justify-content: space-between; }
  .cells p + p { display: none; }
  .cells { grid-template-columns: 1fr; }
  .sheet span { padding: 0 10px; font-size: .64rem; }
  .aim, .cota { width: 72%; }
  .duo { grid-template-columns: 1fr; }
  .duo-item + .duo-item { border-left: 0; border-top: 1px solid var(--cd-line); }
  .duo-item { gap: 24px; }
  .stack-item { grid-template-columns: 1fr; min-height: 0; }
  .stack-n { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--cd-line); padding-block: 12px; }
  .stack-media, .stack-text { grid-column: 1; grid-row: auto; }
  .work { flex-basis: 86vw; }
  .acc-body { grid-template-columns: 1fr; }
  .rail-nav { flex-wrap: wrap; }
  .footer-sheets { grid-template-columns: 1fr; }
  .fsheet + .fsheet { border-left: 0; border-top: 1px solid var(--cd-line-blue); }
  .fsheet { gap: 28px; }
}

/* ---- movimento reduzido: a quadra e a casa prontas, nada sobe, nada digita ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .line, .vol .blk, .vol .dim, .vol .dim-t { animation: none; opacity: 1; }
  .reveal:not(.mask) { opacity: 1; transform: none; transition: none; }
  .mask span::after { display: none; }
  .drawer[open], .drawer.is-closing { animation: none; }
  .sheet-band { height: auto; } .sheet-sticky { position: relative; height: 80svh; }
  .door { display: none !important; }
}
html[data-ws2-motion="reduced"] .hero-title .line, html[data-ws2-motion="reduced"] .vol .blk, html[data-ws2-motion="reduced"] .vol .dim,
html[data-ws2-motion="reduced"] .vol .dim-t { animation: none; opacity: 1; }
html[data-ws2-motion="reduced"] .reveal:not(.mask) { opacity: 1; transform: none; transition: none; }
html[data-ws2-motion="reduced"] .mask span::after { display: none; }
html[data-ws2-motion="reduced"] .sheet-band { height: auto; }
html[data-ws2-motion="reduced"] .sheet-sticky { position: relative; height: 80svh; }
