/* Seções do site v2 (marca/estrategia-v2.md, marca/direcao-3d.md). Tokens em base.css. */

/* ---------- cena 3D: uma só, fixa atrás do conteúdo ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.stage.on canvas { opacity: 1; }
.reduced .stage { position: absolute; height: 100vh; top: 0; }   /* reduzir movimento: cena parada, só no topo */
.no3d .stage { display: none; }
.lbl { position: absolute; left: 0; top: 0; font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; opacity: 0; transition: opacity var(--t-std); }

main { position: relative; z-index: 1; }
.site-header { position: relative; z-index: 3; }

/* seções que mostram a cena (transparentes) vs. seções de leitura (opacas: escondem a cena) */
.sec { min-height: 100vh; display: flex; align-items: center; padding: 88px 16px; }
.sec .in { width: 100%; max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.opaque { background: var(--bg); position: relative; z-index: 1; }
@media (min-width: 680px) { .sec { padding-left: 24px; padding-right: 24px; } }

.txt { max-width: 32rem; display: grid; gap: 1rem; }
.txt .lede { color: var(--ink-soft); margin: 0; }
.txt.panel { background: rgba(255, 252, 247, 0.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; box-shadow: var(--sh-low); }
.txt .eyebrow { margin: 0; }
.txt h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.3rem); line-height: 1.14; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .sec .in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sec .in.right .txt { grid-column: 2; }
  .txt.panel { padding: 32px; }
}
/* celular em pé: o 3D fica no alto, o painel de texto entra por baixo */
@media (max-width: 899px) {
  .sec--gap .in::before { content: ""; display: block; height: 46vh; }
  .sec--gap#produtos .in::before { height: 52vh; }
}

/* ---------- hero ---------- */
.hero { align-items: flex-end; }
@media (min-width: 900px) { .hero { align-items: center; } }
@media (max-width: 899px) { .hero { padding-bottom: 40px; } }
.hero h1 { font-size: clamp(2.1rem, 2.4vw + 1rem, 3.1rem); line-height: 1.08; letter-spacing: -0.015em; }
@media (min-width: 900px) { .hero .txt { max-width: 40rem; } .hero .in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero h1 .l { display: block; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: grid; color: var(--ink-soft); font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.2rem; line-height: 1.3; }
.hero-proof li { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.hero-proof li:last-child { border-bottom: 1px solid var(--line); }
.hero-proof strong { color: var(--ink); font-weight: 560; }
.hero-note { margin: 0; font-size: 1rem; color: var(--ink); }
.hero .btn-main { gap: 0.6rem; }
@media (max-width: 899px) { .hero-actions .btn { flex: 1 1 100%; } .hero .btn-main { padding-inline: 0.9rem; white-space: nowrap; font-size: 0.95rem; } }
/* desktop: sem borda nem sombra de cartão; só um véu creme (--bg) que mantém o texto legível sobre as peças 3D */
@media (min-width: 900px) { .hero .txt.panel { background: rgba(246, 241, 232, 0.9); border: 0; box-shadow: none; } }
@media (max-width: 899px) { .hero .txt.panel { padding: 20px; gap: 0.75rem; } .hero .lede { font-size: 1rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.anim .hero .txt > *, .anim .hero h1 .l { animation: rise-in 0.4s var(--ease) both; --rise: 12px; }
.anim .hero h1 { animation: none; }
.anim .hero .lede { animation-delay: 0.12s; }
.anim .hero-proof { animation-delay: 0.16s; }
.anim .hero-actions { animation-delay: 0.2s; }
.anim .hero-note { animation-delay: 0.24s; }
@keyframes rise-in { from { opacity: 0; translate: 0 var(--rise, 16px); } }
@media (max-width: 680px) { .anim .hero .txt > *, .anim .hero h1 .l { animation-duration: 0.32s; } }

/* robô 2D: reserva (sem WebGL, aparelho simples) e "ponte" até o 3D chegar */
.robo2d { display: none; width: clamp(150px, 22vw, 240px); justify-self: center; transition: opacity var(--t-std) var(--ease); }
.robo2d svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero .robo2d { display: block; }
@media (max-width: 899px) { .hero .robo2d { position: absolute; top: 96px; left: 50%; translate: -50% 0; } .hero { position: relative; } }
.has3d .robo2d { opacity: 0; pointer-events: none; }

/* ---------- O que construímos ---------- */
.block { padding-top: clamp(4.5rem, 9vw, 7.5rem); padding-bottom: 1px; }
.what { list-style: none; margin: 2.5rem auto 0; padding: 0; width: calc(100% - 32px); max-width: 58rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 680px) { .what { width: calc(100% - 48px); } }
@media (min-width: 820px) { .what { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.what li { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem 0.75rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.what li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.what li:hover::after, .what li:focus-within::after { transform: scaleX(1); }
.what .n { font: 500 0.75rem var(--font-mono); letter-spacing: 0.1em; color: var(--accent-strong); padding-top: 0.5rem; }
.what h3 { font-size: 1.35rem; line-height: 1.25; transition: color var(--t-fast) ease; }
.what li:hover h3 { color: var(--accent-strong); }
.what p { grid-column: 2; margin: 0; color: var(--ink-soft); }

/* desenhos de exemplo (sem dados): aparecem uma vez ao entrar na tela; sem JS ou com "reduzir movimento" já vêm prontos */
.what .viz { grid-column: 2; margin-top: 0.9rem; max-width: 15rem; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.v-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.v-tile { fill: var(--surface-tint); stroke: var(--line); stroke-width: 1; }
.v-tile.v-on, .v-bubble, .v-col { fill: var(--accent); stroke: none; }
.v-col { fill: var(--glow-soft); }
.v-dot { fill: var(--accent); }
.v-bar { fill: var(--sand); }
.v-ink { fill: var(--on-accent); }
.v-draw { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.v-node { fill: var(--surface); stroke: var(--sand); stroke-width: 2; }
.viz .r, .v-node, .v-draw { transition: opacity var(--t-std) var(--ease), transform var(--t-std) var(--ease), fill var(--t-std) var(--ease), stroke var(--t-std) var(--ease), stroke-dashoffset var(--t-slow) var(--ease); }
.viz .r { transform-box: fill-box; }
.viz .r:nth-of-type(2), .viz .r:nth-child(2) { transition-delay: 0.09s; }
.viz .r:nth-of-type(3), .viz .r:nth-child(3) { transition-delay: 0.18s; }
.viz-dash .v-col:nth-of-type(2) { transition-delay: 0.08s; }
.viz-dash .v-col:nth-of-type(3) { transition-delay: 0.16s; }
.viz-dash .v-col:nth-of-type(4) { transition-delay: 0.24s; }
.viz-dash .v-col:nth-of-type(5) { transition-delay: 0.32s; }
.viz-dash .v-draw { transition-delay: 0.4s; }
.viz-auto .l2 { transition-delay: 0.25s; } .viz-auto .l3 { transition-delay: 0.5s; }
.viz-auto .n2 { transition-delay: 0.25s; } .viz-auto .n3 { transition-delay: 0.5s; } .viz-auto .n4 { transition-delay: 0.75s; }
.viz-auto .v-node { fill: var(--accent); stroke: var(--accent); }
.anim:not(.anim-fallback) .viz:not(.on) .r { opacity: 0; transform: translateY(8px); }
.anim:not(.anim-fallback) .viz:not(.on) .v-col { opacity: 1; transform: scaleY(0); transform-origin: bottom; }
.anim:not(.anim-fallback) .viz:not(.on) .v-draw { stroke-dashoffset: 1; }
.anim:not(.anim-fallback) .viz-auto:not(.on) .v-node { fill: var(--surface); stroke: var(--sand); }
.viz-dash .v-col { transform-box: fill-box; transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .viz .r, .v-node, .v-draw { transition: none; } }

/* ---------- Diagnóstico ---------- */
.diag { padding-bottom: clamp(3rem, 6vw, 5rem); }
.diag-grid { width: calc(100% - 32px); max-width: 58rem; margin: 2.5rem auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 680px) { .diag-grid { width: calc(100% - 48px); } }
@media (min-width: 900px) { .diag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.diag-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; box-shadow: var(--sh-low); }
.diag-card h3 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.diag-card ul, .diag-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; color: var(--ink-soft); }
.diag-card li::marker { color: var(--accent-strong); }
.diag-cta { width: calc(100% - 32px); max-width: 58rem; margin: 2rem auto 0; }
@media (min-width: 680px) { .diag-cta { width: calc(100% - 48px); } }

/* ---------- Como (7 passos) ---------- */
.steps7 { list-style: none; margin: 0.5rem 0 0; padding: 0; position: relative; display: grid; gap: 0.9rem; }
.steps7::before { content: ""; position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; width: 2px; background: repeating-linear-gradient(to bottom, var(--sand) 0 4px, transparent 4px 9px); }
.steps7 .rail-progress { position: absolute; left: 1.35rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(0); border-radius: 2px; pointer-events: none; transition: transform var(--t-std) var(--ease); }
.steps7 li { position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.step-num { position: relative; z-index: 1; justify-self: start; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--on-accent); background: var(--accent-strong); border-radius: 999px; padding: 0.2rem 0.6rem; margin-top: 2px; transition: background var(--t-std) var(--ease), color var(--t-std) var(--ease); }
.anim .steps7 li:not(.lit) .step-num { color: var(--accent-strong); background: var(--surface-tint); }
.steps7 b { display: block; font-weight: 600; }
.steps7 span.d { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Por quê ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.9375rem; }
.ba h3 { font: 500 0.75rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.ba li { color: var(--ink-soft); }
.ba .after li { color: var(--ink); }
.ba .after li::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
.why-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.why-chips li { font-size: 0.875rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.25rem 0.8rem; }

/* ---------- Produtos: lista HTML (versão acessível da rede 3D) ---------- */
.plist { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.plist a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 1rem; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.75rem 1rem; box-shadow: var(--sh-low); transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.plist a:hover, .plist a:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-med); }
.plist .ic { width: 40px; height: 40px; border-radius: 10px; grid-row: span 3; }
.plist .ph { border: 1.5px dashed var(--sand); background: transparent; }
.plist b { font-weight: 600; }
.plist .st { font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.4rem; }
.plist .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.plist .st.build i { background: transparent; border: 1.5px solid var(--ink-soft); }
.plist .st.soon i { background: transparent; border: 1.5px dashed var(--ink-soft); }
.plist small { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.4; }

/* ---------- Cases ---------- */
.cases { list-style: none; margin: 2.5rem auto 0; padding: 0 16px; max-width: 72rem; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .cases { padding: 0 24px; } }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; box-shadow: var(--sh-low); display: grid; gap: 1rem; align-content: start; }
.case header { display: flex; align-items: center; gap: 0.9rem; }
.case h3 { font-size: 1.4rem; }
.case dl { margin: 0; display: grid; gap: 0.9rem; }
.case dt { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); }
.case dd { margin: 0.15rem 0 0; color: var(--ink-soft); }
.case .more { font-weight: 600; text-decoration: none; color: var(--accent-strong); }
.case .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Região do projeto: azul = Estados Unidos, verde = Brasil. Sempre com texto, nunca só a cor. */
.geo { display: inline-block; margin: 0; font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.01em; padding: 0 0.55rem; border-radius: 999px; vertical-align: 0.1em; color: var(--geo-br); background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.geo--us { color: var(--geo-us); }
.geo--br { color: var(--geo-br); }
.plist b .geo { margin-left: 0.35rem; }
.prod-head .geo { margin-top: 0.45rem; }

/* ---------- Arquitetura (única seção escura) ---------- */
.arch { padding: clamp(4.5rem, 9vw, 7rem) 0; margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.arch .section-head p.sub { max-width: 44rem; }
.tiers { list-style: none; margin: 2.5rem auto 0; padding: 0 16px; max-width: 58rem; display: grid; gap: 0; }
@media (min-width: 680px) { .tiers { padding: 0 24px; } }
.tier { position: relative; display: grid; gap: 0.75rem; padding: 1.4rem 0 1.6rem 1.5rem; border-left: 2px solid var(--line); }
.tier::before { content: ""; position: absolute; left: -7px; top: 1.65rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tier > h3 { font: 500 0.75rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .parts.p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0.9rem 1.1rem; }
.part b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: 1.15rem; }
.part span { color: var(--ink-soft); font-size: 0.9375rem; }
.dark :focus-visible, .arch :focus-visible { outline-color: var(--accent); }

/* ---------- CTA final ---------- */
.cta .txt { max-width: 34rem; }
.cta h2 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.6rem); }
.cta .qs { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; color: var(--ink-soft); }
.cta .ask { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: 1.35rem; margin: 0.5rem 0 0; color: var(--ink); }

/* ---------- navegação ---------- */
.site-nav { display: none; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); padding: 0.5rem 0; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-strong); }
@media (min-width: 900px) { .site-nav { display: flex; } }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 10px; z-index: 50; }
.skip:focus { top: 8px; }

/* rodapé sempre opaco por cima da cena */
footer { background: var(--bg); max-width: none; margin: 0; }
footer .foot-in { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer { padding: 2rem 16px 3rem; }
@media (min-width: 680px) { footer { padding-left: 24px; padding-right: 24px; } }

/* debug (?debug) */
#hud { position: fixed; left: 8px; bottom: 8px; z-index: 30; background: rgba(28, 23, 18, 0.9); color: #F3ECE1; font: 500 0.7rem/1.5 var(--font-mono); padding: 8px 10px; border-radius: 10px; white-space: pre; display: none; }
.debug #hud { display: block; }

/* sem JS: tudo visível */
@media (prefers-reduced-motion: reduce) { .what li::after { transition: none; } }

.sprite { position: absolute; }
a.wordmark { text-decoration: none; color: inherit; }
.steps7 li > p { margin: 0; }
/* se o JS não rodar, o conteúdo continua visível */
:root:not(.js) .reveal, .anim-fallback .reveal { opacity: 1; translate: none; }

/* páginas de produto */
.prod { max-width: 44rem; margin: 0 auto; padding: 2rem 16px 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .prod { padding-left: 24px; padding-right: 24px; } }
.prod .back { font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.prod .back:hover { color: var(--accent-strong); }
.prod-head { display: flex; align-items: center; gap: 1rem; }
.prod-head .app-icon { width: 72px; height: 72px; border-radius: 20px; }
.prod h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.1; }
.prod .lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.prod dl { margin: 0; display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; box-shadow: var(--sh-low); }
.prod dt { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); }
.prod dd { margin: 0.2rem 0 0; }

/* telas muito estreitas (320px): o botão do topo encurta pra não estourar */
@media (max-width: 379px) { .whats-pill .opt { display: none; } .whats-pill { padding: 0 0.9rem; } }

/* sem 3D (reserva 2D ou "reduzir movimento"): os painéis vão pro centro e sem vãos reservados pra cena */
.no3d .sec:not(.hero) .in, .reduced .sec:not(.hero) .in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.no3d .sec:not(.hero) .in.right .txt, .reduced .sec:not(.hero) .in.right .txt { grid-column: 1; }
.no3d .sec:not(.hero), .reduced .sec:not(.hero) { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
.no3d .sec--gap .in::before, .reduced .sec--gap .in::before { display: none; }

/* borda macia entre a cena 3D e as seções de leitura (em vez de um corte seco nas peças).
   Entrada: seções que vêm depois de uma cena. Saída: seções que vêm antes de uma cena. */
#o-que::before, #calculadora::before, #cases::before, footer::before { content: ""; position: absolute; left: 0; right: 0; top: -72px; height: 72px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
#o-que::after, #diagnostico::after, #quem::after { content: ""; position: absolute; left: 0; right: 0; bottom: -72px; height: 72px; background: linear-gradient(to bottom, var(--bg), transparent); pointer-events: none; }
footer { position: relative; }
.no3d #o-que::before, .no3d #calculadora::before, .no3d #cases::before, .no3d footer::before, .no3d #o-que::after, .no3d #diagnostico::after, .no3d #quem::after, .no3d #cases::after,
.reduced #o-que::before, .reduced #calculadora::before, .reduced #cases::before, .reduced footer::before, .reduced #o-que::after, .reduced #diagnostico::after, .reduced #quem::after, .reduced #cases::after { display: none; }

/* Cases (claro) -> Tecnologia (escuro): o vão entre as duas seções escurece aos poucos, em vez de um corte seco.
   Duas faixas do tamanho do vão: o creme some (cases) e o escuro aparece (arquitetura), sobre a cena. */
#cases::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: clamp(4.5rem, 9vw, 7.5rem); background: linear-gradient(to bottom, var(--bg), transparent); pointer-events: none; }
.arch { position: relative; z-index: 1; }
.arch::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(4.5rem, 9vw, 7.5rem); background: linear-gradient(to bottom, transparent, var(--bg) 85%); pointer-events: none; }
/* Tecnologia (escuro) -> Quem faz (claro): o escuro some aos poucos sobre o respiro do topo de "Quem faz".
   A faixa tem a altura do padding da seção, então não encosta no conteúdo. */
#quem::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(4.5rem, 9vw, 7.5rem); background: linear-gradient(to bottom, #16120E 15%, transparent); pointer-events: none; }

/* ---------- tema escuro intercalado (O que construímos, Por quê, Produtos, Tecnologia, Contato e rodapé) ----------
   Tokens de marca/MASTER.md ("tema escuro"). Com o 3D, o fundo escuro vem do palco (a cor muda aos poucos com a rolagem);
   sem 3D ou com "reduzir movimento", a própria seção pinta o fundo. */
.dark, .arch {
  --bg: #16120E; --surface: #211B15; --surface-tint: #2A231C; --line: #3A3027; --sand: #5A4B3C;
  --ink: #F3ECE1; --ink-soft: #B5A792; --accent: #E3A857; --accent-strong: #E3A857; --on-accent: #1C1712;
  --glow-soft: rgba(227,168,87,0.28); --shadow-rgb: 0,0,0;
  --geo-us: #86B8EC; --geo-br: #86CC95;
  color: var(--ink);
}
.arch, footer.dark { background: var(--bg); }
.dark .txt.panel { background: rgba(33, 27, 21, 0.86); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35); }
.sec.dark { background: #16120E; }                              /* padrão seguro: nunca texto claro sobre creme */
.has3d:not(.reduced) .sec.dark { background: transparent; }   /* com o 3D, quem pinta é o palco */
.stage.is-dark .lbl { background: #211B15; color: #F3ECE1; border-color: #3A3027; }

/* link para o Instagram: secundário, nunca disputa com o botão do WhatsApp */
.ig-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.ig-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.ig-link b { font-weight: 600; color: var(--ink); }
.ig-link:hover span, .ig-link:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.ig-link:hover { color: var(--accent-strong); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; }
