/* Bloco F — proposta horizontal: a página é uma fila de telas lado a lado, sem rolagem vertical.
   O menu "gira" a página até a tela escolhida (app.js). Fontes servidas pelo próprio site. */
@font-face { font-family: "Stack Sans Headline"; src: url("fontes/stack-sans-headline-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("fontes/stack-sans-text.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #16191d;
  --fundo: #0b0d10;
  --surface: #21252b;
  --surface-2: #2b3038;
  --ink: #eef1f4;
  --muted: #aeb6bf;
  --accent: #5b93e6;
  --accent-ink: #0b1420;
  --field: #cfd6de;
  --field-ink: #16202a;
  --field-2: #e3e8ee;
  --accent-hover: #7aa8ee;
  --erro: #f0a090;

  --f-display: "Stack Sans Headline", "Segoe UI", system-ui, sans-serif;
  --f-text: "Stack Sans Text", "Segoe UI", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.2rem + 2.8vw, 3.75rem);
  --step-display: clamp(2.5rem, 1rem + 4.4vw, 4.5rem);

  --margem: clamp(20px, 2.8vw, 40px);
  --topo: 68px;
  --guia: 64px;
}
/* modo claro: segue o sistema; o botão do topo força um ou outro (data-theme) e guarda a escolha */
:root { color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f8; --fundo: #cfd7e0; --surface: #ffffff; --surface-2: #e4e9ef; --ink: #16202a; --muted: #4f5a66;
    --accent: #1f5fbf; --accent-ink: #ffffff; --field: #dce3eb; --field-2: #e9eef3; --accent-hover: #174a96; --erro: #b3321f;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f8; --fundo: #cfd7e0; --surface: #ffffff; --surface-2: #e4e9ef; --ink: #16202a; --muted: #4f5a66;
  --accent: #1f5fbf; --accent-ink: #ffffff; --field: #dce3eb; --field-2: #e9eef3; --accent-hover: #174a96; --erro: #b3321f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }   /* sem rolagem vertical: quem rola é o trilho, de lado */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--ink); font: 400 var(--step-body)/1.5 var(--f-text); overscroll-behavior: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: var(--margem); top: -80px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 500; text-decoration: none; }
.pular:focus { top: 12px; }

.bt { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font: 500 var(--step-body)/1 var(--f-text);
  padding: 16px 24px; text-decoration: none; border: 0; cursor: pointer; transition: transform .16s ease, background-color .16s ease; }
.bt:hover { background: var(--accent-hover); }
.bt:active { transform: translateY(1px) scale(.99); }

/* ------------------------------------------------------------------ cabeçalho fixo; o item da tela atual fica marcado */
.topo { position: fixed; inset: 0 0 auto; height: var(--topo); z-index: 20; display: flex; align-items: center; gap: 24px; padding-inline: var(--margem); background: var(--bg); }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 1.25rem/1 var(--f-text); flex: none; }
.marca svg { width: 30px; height: 30px; }
.marca b { color: var(--accent); font-weight: inherit; }
.topo nav { margin-left: auto; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.topo nav::-webkit-scrollbar { display: none; }
.topo nav a { text-decoration: none; color: var(--muted); font-size: 0.9375rem; padding: 10px 14px; white-space: nowrap; transition: color .16s, background-color .16s; }
.topo nav a:hover { color: var(--ink); }
.topo nav a[aria-current="true"]:not(.bt) { color: var(--ink); background: var(--surface-2); }
.topo nav .bt { padding: 12px 18px; color: var(--accent-ink); margin-left: 10px; }
.tema { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 0; cursor: pointer; transition: background-color .15s, transform .15s; }
.tema:hover { background: var(--surface); }
.tema:active { transform: scale(.94); }
.tema svg { width: 20px; height: 20px; }
.tema .sol { display: none; }
.claro .tema .sol { display: block; } .claro .tema .lua { display: none; }
@media (max-width: 1180px) { .topo nav a[href="#perguntas"], .topo nav a[href="#armadura3d"] { display: none; } }
@media (max-width: 960px) { .topo nav a[href="#tipos-tela"], .topo nav a[href="#armadura3d"] { display: none; } }
@media (max-width: 760px) {
  .topo { gap: 12px; }
  .topo nav a:not(.bt) { padding: 10px 10px; font-size: 0.875rem; }
}
@media (max-width: 480px) {
  .topo nav a[href="#etapas"] { display: none; }
  .marca span { display: none; }   /* no celular fica só o ícone */
  .topo nav .bt { padding: 10px 12px; font-size: 0.875rem; margin-left: 4px; }
}

/* ------------------------------------------------------------------ o trilho: telas lado a lado, encaixando uma a uma */
.palco3d { position: fixed; inset: var(--topo) 0 0; perspective: 2200px; perspective-origin: 50% 50%; }
.trilho { height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  transform-origin: 50% 50%; backface-visibility: hidden; outline: none; background: var(--bg); }
.trilho::-webkit-scrollbar { display: none; }
.painel { flex: 0 0 100vw; width: 100vw; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden;
  padding: clamp(24px, 4vh, 56px) var(--margem) calc(var(--guia) + 16px); }
/* no celular a tela pode ser mais alta que o visor: rola por dentro, sem barra à vista */
@media (max-width: 760px), (max-height: 620px) {
  .painel { overflow-y: auto; scrollbar-width: none; overscroll-behavior-y: contain; }
  .painel::-webkit-scrollbar { display: none; }
}

/* guia de baixo: anterior, número da tela, próxima */
.guia { position: fixed; right: var(--margem); bottom: 14px; z-index: 15; display: flex; align-items: center; gap: 4px; background: var(--ink); color: var(--bg); padding: 4px; }
.guia p { font-size: 0.9375rem; padding: 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guia b { font-weight: 500; }
.guia #guia-nome { margin-left: 8px; opacity: .7; }
.guia button { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: inherit; border: 0; cursor: pointer; transition: background-color .15s, transform .15s; }
.guia button:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.guia button:active { transform: scale(.94); }
.guia button:disabled { opacity: .3; cursor: default; }
.guia svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .guia { left: var(--margem); right: var(--margem); justify-content: space-between; } .guia #guia-nome { display: none; } }

/* ------------------------------------------------------------------ 1. abertura */
.abertura { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding-right: 0; }
.abertura h1 { font-size: var(--step-display); }
.abertura .frase { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; margin-top: 28px; }
.abertura .acoes { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.abertura .nota { color: var(--muted); font-size: var(--step-small); max-width: 26ch; }
.dica-rolar { margin-top: 40px; display: inline-flex; gap: 10px; align-items: center; color: var(--accent); font-size: var(--step-small); }
.dica-rolar svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .dica-rolar svg { animation: empurra 1.6s ease-in-out infinite; } }
@keyframes empurra { 50% { transform: translateX(6px); } }
.campo-chanfro { align-self: stretch; display: flex; align-items: center; background: var(--field); clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%, 0 96px);
  padding: 32px var(--margem) 32px clamp(32px, 4vw, 64px); margin-block: calc(-1 * clamp(24px, 4vh, 56px)) calc(-1 * (var(--guia) + 16px)); }
@media (max-width: 1000px) {
  .abertura { display: block; padding-right: var(--margem); }
  .campo-chanfro { margin: 32px calc(-1 * var(--margem)) 0; clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px); padding: 40px var(--margem); }
}

/* o painel do app (data-ui: aqui valem as convenções da interface) */
.calc { width: min(780px, 100%); background: #fbfaf7; color: #1e2328; font: 400 14px/1.4 var(--f-text); border: 1px solid #b9b6ab; /* taste-skill-ignore: interface do app */ }
.calc .barra { padding: 10px 14px; background: #eceae3; border-bottom: 1px solid #cfccc2; /* taste-skill-ignore */ font-size: 13px; color: #4b5057; }
.calc .barra b { color: #1e2328; font-weight: 500; }
.calc .corpo { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); }
.calc .entrada { padding: 14px; border-right: 1px solid #e0ddd4; /* taste-skill-ignore */ display: grid; gap: 12px; align-content: start; }
@media (max-width: 640px) { .calc .corpo { grid-template-columns: 1fr; } .calc .entrada { border-right: 0; } }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend, .calc .rot { font-size: 13px; color: #4b5057; margin-bottom: 6px; display: block; padding: 0; }
.calc .seg { display: flex; border: 1px solid #b9b6ab; /* taste-skill-ignore */ }
.calc .seg label { flex: 1; text-align: center; padding: 7px 0; cursor: pointer; position: relative; transition: background-color .12s; }
.calc .seg label + label { border-left: 1px solid #b9b6ab; /* taste-skill-ignore */ }
.calc .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc .seg label:has(input:checked) { background: #1e2328; color: #fbfaf7; }
.calc .seg label:hover:not(:has(input:checked)) { background: #eceae3; }
.calc .seg label:has(input:focus-visible) { outline: 2px solid #1f5fbf; outline-offset: -3px; }
.calc input[type="range"] { width: 100%; accent-color: #1e2328; }
.calc .carga { display: flex; justify-content: space-between; align-items: baseline; }
.calc .carga output { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc .planta { background: #fff; }
.calc .planta svg { display: block; width: 100%; height: auto; max-height: 28vh; }
.calc .geo { font-size: 13px; color: #4b5057; font-variant-numeric: tabular-nums; }
.calc .saida { padding: 14px 14px 16px; }
.calc .saida h2 { font: 500 14px/1.3 var(--f-text); letter-spacing: 0; margin-bottom: 8px; }
.calc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc th, .calc td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #ebe8e0; /* taste-skill-ignore */ font-size: 14px; }
.calc th { font-weight: 400; color: #4b5057; font-size: 13px; }
.calc .num { text-align: right; white-space: nowrap; width: 72px; }
.calc td.barra-as { width: 36%; }
.calc .medidor { height: 8px; background: #ebe8e0; }
.calc .medidor i { display: block; height: 100%; background: #9aa3ad; transition: width .25s ease; }
.calc tr.adotado td { font-weight: 500; }
.calc tr.adotado .medidor i { background: #1f5fbf; }
.calc .selo-adotado { font-size: 12px; color: #174a96; background: #dce8f8; padding: 1px 6px; margin-left: 6px; font-weight: 500; }
.calc .resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e0ddd4; margin-top: 12px; }
.calc .resumo div { background: #f4f2ec; padding: 9px 10px; }
.calc .resumo span { display: block; font-size: 12.5px; color: #4b5057; }
.calc .resumo strong { font-weight: 500; font-size: 15px; }
.calc .fonte { margin-top: 10px; font-size: 12.5px; color: #4b5057; }

/* ------------------------------------------------------------------ 2. do bloco de 2 estacas ao de 36: plantas do motor e a foto da obra */
.tipos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 56px); padding-right: 0; }
.tipos-lado { display: flex; flex-direction: column; min-height: 0; }
.tipos h2 { font-size: var(--step-head); max-width: 16em; }
.tipos-sub { margin-top: 14px; max-width: 60ch; }
.tipos-grade { margin-top: clamp(16px, 3vh, 32px); flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tipo { background: var(--field-2); color: var(--field-ink); display: flex; flex-direction: column; min-height: 0; }
.tipo-planta { flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px; background: #fff; }
.tipo-planta svg { width: 100%; height: 100%; max-height: 34vh; }
.tipo figcaption { padding: 12px 12px 14px; font-size: var(--step-small); line-height: 1.35; display: grid; gap: 4px; }
.tipo h3 { font: 500 1.0625rem/1.2 var(--f-text); letter-spacing: 0; }
.tipo-bt { justify-self: start; margin-top: 6px; font: 500 0.875rem/1 var(--f-text); background: var(--field-ink); color: #fff; border: 0; padding: 10px 12px; cursor: pointer; transition: background-color .15s, transform .15s; }
.tipo-bt:hover { background: #1f5fbf; }
.tipo-bt:active { transform: translateY(1px); }
.tipos-foto { position: relative; margin-block: calc(-1 * clamp(24px, 4vh, 56px)) calc(-1 * (var(--guia) + 16px)); min-height: 0; }
.tipos-foto img { width: 100%; height: 100%; object-fit: cover; }
.tipos-foto figcaption { position: absolute; left: 16px; right: 16px; bottom: calc(var(--guia) + 28px); background: var(--bg); padding: 8px 12px; font-size: var(--step-small); justify-self: start; width: fit-content; }
@media (max-width: 1100px) { .tipos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tipo-planta svg { max-height: 16vh; } }
@media (max-width: 860px) {
  .tipos { display: block; padding-right: var(--margem); }
  .tipos-grade { flex: none; }
  .tipo-planta svg { max-height: 150px; }
  .tipos-foto { margin: 24px calc(-1 * var(--margem)) 0; }
  .tipos-foto img { aspect-ratio: 4 / 3; height: auto; }
  .tipos-foto figcaption { position: static; margin: 10px var(--margem) calc(var(--guia) + 24px); }
}
/* ------------------------------------------------------------------ 3. um bloco, quatro momentos */
.etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.etapa { position: relative; padding: 28px 24px calc(var(--guia) + 28px); display: flex; flex-direction: column; min-width: 0; }
.etapa:nth-child(1) { background: var(--surface); } .etapa:nth-child(2) { background: var(--surface-2); }
.etapa:nth-child(3) { background: var(--accent); color: var(--accent-ink); } .etapa:nth-child(4) { background: var(--field); color: var(--field-ink); }
.etapa h2 { font: 500 var(--step-lead)/1.2 var(--f-text); letter-spacing: 0; }
.etapa-planta { margin: 16px 0 14px; background: #fff; flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; }
.etapa-planta svg { width: 100%; height: 100%; max-height: 32vh; }
.etapa .cartao { margin: 0 0 18px; width: 100%; transition: transform .15s ease; }
.etapa .cartao dl { gap: 1px 10px; padding-block: 6px 8px; }
.etapa:hover .cartao { transform: translateY(-6px); }
.etapa .frase { font: 300 clamp(1.25rem, 1rem + 0.8vw, 1.75rem)/1.2 var(--f-display); }
.cartao { background: #fbfaf7; color: #1e2328; border: 1px solid #b9b6ab; /* taste-skill-ignore */ font: 400 13.5px/1.45 var(--f-text); }
.cartao .cab { display: flex; justify-content: space-between; padding: 9px 12px; background: #eceae3; font-size: 13px; }
.cartao .cab b { font-weight: 500; }
.cartao .estado { font-size: 12px; padding: 1px 6px; background: #e3e0d6; }
.cartao .estado.ok { background: #dce8f8; color: #174a96; }
.cartao dl { margin: 0; padding: 8px 12px 10px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.cartao dt { color: #4b5057; }
.cartao dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cartao dd.vazio { color: #6b7076; }
@media (max-width: 860px) {
  .etapas { display: block; overflow-y: auto; }
  .etapa { min-height: 0; padding: 28px var(--margem); gap: 20px; }
  .etapa:last-child { padding-bottom: calc(var(--guia) + 40px); }
  .etapa .cartao { margin: 0; }
  .etapa-planta { flex: none; margin: 0; } .etapa-planta svg { max-height: 220px; }
}

/* ------------------------------------------------------------------ 4. normas: placas grandes */
.normas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 8px; }
.normas > * { background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.normas .titulo { grid-column: span 2; background: var(--accent); color: var(--accent-ink); }
.normas .titulo h2 { font-size: var(--step-head); max-width: 9em; }
.normas .titulo p { max-width: 44ch; }
.normas strong { font: 300 clamp(1.5rem, 1rem + 1.4vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -0.02em; }
.normas span { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 860px) {
  .normas { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 6px; }
  .normas .titulo { grid-column: 1 / -1; }
  .normas > * { min-height: 130px; padding: 18px; }
  .normas strong { font-size: 22px; }
}

/* ------------------------------------------------------------------ 5 a 8. recursos: a prova grande, o texto ao lado */
.modulo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.modulo .prova { height: 100%; display: flex; align-items: center; justify-content: center; background: #fff; min-height: 0; overflow: hidden; }
.modulo .prova a { display: block; height: 100%; width: 100%; cursor: zoom-in; }
.modulo .prova img { width: 100%; height: 100%; object-fit: contain; }
.modulo .txt { max-width: 46ch; }
.modulo h2 { font-size: var(--step-head); margin-bottom: 24px; }
.modulo p + p { margin-top: 12px; }
.modulo p.sec { color: var(--muted); font-size: var(--step-small); }
.modulo .numeros { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.modulo .numeros b { font-weight: 500; color: var(--accent); }
@media (max-width: 860px) {
  .modulo { display: block; }
  .modulo .prova { height: auto; max-height: 46vh; margin-bottom: 24px; }
  .modulo .prova img { max-height: 46vh; }
  .modulo h2 { font-size: 34px; margin-bottom: 14px; }
}

/* ------------------------------------------------------------------ 9. a obra, de ponta a ponta */
.obra { padding: 0; }
.obra img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.obra.atual img { transform: scale(1); }
.obra figcaption { position: absolute; left: var(--margem); bottom: 22px; background: var(--bg); font-size: var(--step-small); padding: 8px 12px; max-width: 60ch; }
@media (max-width: 760px) { .obra figcaption { bottom: calc(var(--guia) + 24px); right: var(--margem); } }

/* ------------------------------------------------------------------ 10. armadura 3D (armadura3d.js, o mesmo do site) */
.a3d { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.a3d-texto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.a3d h2 { font-size: var(--step-head); }
.a3d-texto p { max-width: 62ch; }
.armadura3d { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; background: var(--field-2); color: var(--field-ink); }
.a3d-tela { position: relative; min-width: 0; min-height: 0; cursor: grab; touch-action: pan-x pan-y; background: #f6f8fa; }
.a3d-tela:active { cursor: grabbing; }
.a3d-tela canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.a3d-carregando { position: absolute; inset: 0; display: grid; place-items: center; color: #55606b; font-size: 14px; }
.armadura3d.pronto .a3d-carregando { display: none; }
.a3d-ajuda { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: 12.5px; color: #3c4650; background: rgba(246, 248, 250, .9); padding: 4px 8px; }
.a3d-ajuda .so-toque { display: none; }
@media (pointer: coarse) { .a3d-ajuda .so-toque { display: inline; } .a3d-ajuda .so-teclado { display: none; } }
.a3d-lado { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.a3d-botoes { display: flex; flex-wrap: wrap; gap: 6px; }
.a3d-botoes button { font: 500 13px/1 var(--f-text); background: #fff; color: var(--field-ink); border: 0; padding: 9px 10px; cursor: pointer; transition: background-color .15s, color .15s; }
.a3d-botoes button:hover { background: #1f5fbf; color: #fff; }
.a3d-botoes button[aria-pressed="false"] { color: #6b7681; text-decoration: line-through; }
.a3d-info { font-size: 13px; min-height: 2.6em; }
.a3d-legenda { display: grid; gap: 2px; overflow-y: auto; scrollbar-width: thin; align-content: start; }
.a3d-pos { display: grid; grid-template-columns: 14px 38px 1fr; gap: 8px; align-items: center; text-align: left; width: 100%; font: 400 13px/1.3 var(--f-text);
  background: transparent; color: inherit; border: 0; padding: 5px 6px; cursor: pointer; transition: background-color .12s; }
.a3d-pos:hover { background: #fff; }
.a3d-pos i { width: 14px; height: 14px; }
.a3d-pos b { font-weight: 500; }
.a3d-pos span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3c4650; }
.a3d-pos[aria-pressed="false"] { opacity: .4; }
@media (max-width: 860px) {
  .a3d { display: block; }
  .a3d-texto { display: block; }
  .a3d-texto p { margin-top: 12px; }
  .armadura3d { grid-template-columns: 1fr; margin-top: 20px; margin-bottom: calc(var(--guia) + 24px); }
  .a3d-tela { height: 56vh; }
  .a3d-legenda { max-height: 240px; }
}

/* ------------------------------------------------------------------ 11. perguntas: índice à esquerda, uma resposta à direita */
.perguntas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); align-items: center; }
.perguntas h2 { font-size: var(--step-head); margin-bottom: 32px; }
.perguntas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.perguntas .q { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 8px 0; color: var(--muted); transition: color .15s; }
.perguntas .q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color .15s; }
.perguntas .q[aria-expanded="true"] { color: var(--ink); }
.perguntas .q[aria-expanded="true"]::before { background: var(--accent); }
.perguntas .q:hover { color: var(--ink); }
.perguntas .q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.painel-resp { align-self: stretch; display: flex; align-items: center; background: var(--surface); padding: clamp(24px, 4vw, 64px); }
.painel-resp p { font: 300 clamp(1.5rem, 1.1rem + 1vw, 2.125rem)/1.3 var(--f-display); max-width: 30ch; transition: opacity .15s; }
.perguntas .resp { display: none; }
@media (max-width: 860px) {
  .perguntas { display: block; }
  .painel-resp { display: none; }
  .perguntas .resp { padding: 4px 0 14px 22px; }
  .perguntas .resp.aberta { display: block; }
}

/* ------------------------------------------------------------------ 11. a frase com lacunas */
.convite { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.convite h2 { font-size: var(--step-head); margin-bottom: 32px; }
.convite .frase-form { font: 300 clamp(1.5rem, 1rem + 1.5vw, 2.25rem)/1.75 var(--f-display); letter-spacing: -0.01em; }
.convite .frase-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.convite input[type="text"], .convite input[type="email"], .convite select { font: inherit; color: var(--ink); background: var(--surface-2); border: 0; padding: 0 .35em; height: 1.45em; border-radius: 0; }
.convite input[type="text"] { width: 7em; }
.convite input[type="email"] { width: 10em; }
.convite input::placeholder { color: var(--muted); }
.convite button { font: inherit; background: var(--accent); color: var(--accent-ink); border: 0; padding: 0 .4em; height: 1.45em; cursor: pointer; transition: background-color .15s, transform .15s; }
.convite button:hover { background: var(--accent-hover); }
.convite button:active { transform: translateY(1px); }
.convite .aceite { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-size: 1rem; max-width: 60ch; }
.convite .aceite input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.convite .aviso { margin-top: 12px; min-height: 1.5em; font-size: 1rem; }
.convite .aviso.erro { color: var(--erro); }
.convite .aviso.ok { color: var(--accent); }
.perfuratriz { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.perfuratriz img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.perfuratriz figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 860px) {
  .convite { display: block; }
  .convite .frase-form { font-size: 20px; line-height: 1.6; }
  .convite input[type="text"], .convite input[type="email"] { width: 100%; display: block; margin: 4px 0; }
  .perfuratriz { height: auto; margin-top: 32px; }
  .perfuratriz img { aspect-ratio: 4 / 3; flex: none; }
}

/* ------------------------------------------------------------------ 12. fim: placas */
.rodape { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 8px; padding: 8px 8px calc(var(--guia) + 24px); }
.rodape > * { background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.rodape .declaracao { grid-column: 1 / 6; }
.rodape .declaracao p { font-size: var(--step-lead); line-height: 1.3; max-width: 24ch; }
.rodape small, .rodape .creditos { font-size: var(--step-small); color: var(--muted); }
.rodape .hora { grid-column: 6 / 9; }
.rodape .hora strong { font: 300 var(--step-head)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.rodape .email { grid-column: 9 / 13; }
.rodape .email a { font-size: var(--step-lead); text-decoration: none; }
.rodape .email a:hover { color: var(--accent); }
.rodape .marca-grande { grid-column: 1 / 9; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; }
.rodape .marca-grande span { font: 300 clamp(4rem, 1rem + 9vw, 10rem)/1 var(--f-display); letter-spacing: -0.04em; }
.rodape .chamada { grid-column: 9 / 13; background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: background-color .15s; }
.rodape .chamada:hover { background: var(--accent-hover); }
.rodape .chamada span { font: 300 clamp(1.5rem, 1rem + 1vw, 2rem)/1.15 var(--f-display); }
.rodape .chamada svg { align-self: flex-start; width: 48px; height: 48px; transition: transform .2s; }
.rodape .chamada:hover svg { transform: translateX(-6px); }
.rodape .creditos { grid-column: 1 / -1; background: transparent; padding: 4px 16px; display: block; }
@media (max-width: 860px) {
  .rodape { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px calc(var(--guia) + 32px); }
  .rodape .marca-grande, .rodape .chamada { min-height: 140px; }
}

/* ------------------------------------------------------------------ imagem ampliada */
.ampliada { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; }
.ampliada::backdrop { background: rgba(10, 10, 10, .9); }
.ampliada[open] { display: grid; place-items: center; }
.ampliada img { max-width: 96vw; max-height: 92dvh; background: #fff; }
.ampliada button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; background: var(--ink); color: var(--bg); border: 0; font-size: 24px; cursor: pointer; }

/* ------------------------------------------------------------------ movimento: o conteúdo de cada tela entra quando ela chega */
@media (prefers-reduced-motion: no-preference) {
  .js .painel :is(h1, h2, .frase, .acoes, .calc, .cartao, .txt, .prova, .normas > *, .indice, .painel-resp, .form-lado, .perfuratriz, .rodape > *, .tipos-grade, .tipos-foto, .etapa-planta, .a3d-texto, .armadura3d) {
    transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
  .js .painel:not(.atual) :is(h2, .frase, .acoes, .calc, .txt, .prova, .normas > *, .indice, .painel-resp, .form-lado, .perfuratriz, .rodape > *, .tipos-grade, .tipos-foto, .etapa-planta, .a3d-texto, .armadura3d, .historia) { opacity: 0; transform: translateX(40px); }
  .js .painel.atual .txt, .js .painel.atual .painel-resp, .js .painel.atual .perfuratriz, .js .painel.atual .tipos-foto, .js .painel.atual .armadura3d { transition-delay: .12s; }
  .js .normas.atual > :nth-child(n+2) { transition-delay: calc(var(--i, 0) * 50ms); }
  .js .calc { transition-delay: .1s; }
}

/* ------------------------------------------------------------------ editor de textos (só dentro do Artifact) */
.editor-barra { position: fixed; left: var(--margem); bottom: 14px; z-index: 16; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 2 * var(--margem) - 330px); }
.editor-bt { font: 500 0.9375rem/1 var(--f-text); background: var(--accent); color: var(--accent-ink); border: 0; padding: 14px 16px; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s; }
.editor-bt:hover { background: var(--accent-hover); }
.editor-bt:active { transform: scale(.97); }
.editor-st { font-size: var(--step-small); background: var(--bg); color: var(--ink); padding: 6px 10px; }
.editor-st:empty { display: none; }
.editor-st.erro { color: var(--erro); }
.editando [data-t][contenteditable] { outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; cursor: text; } /* taste-skill-ignore: marca do modo de edição */
.editando [data-t][contenteditable]:focus { outline: 2px solid var(--accent); }
.editando .perguntas .resp { display: block; padding: 2px 0 10px 22px; }
.editando .painel-resp { display: none; }
.editando .perguntas { grid-template-columns: 1fr; overflow-y: auto; }
.editando .painel :is(h1, h2, .frase, .acoes, .txt, .prova, .normas > *, .indice, .form-lado, .perfuratriz, .rodape > *, .tipos-grade, .tipos-foto, .a3d-texto) { opacity: 1; transform: none; }
@media (max-width: 760px) { .editor-barra { left: var(--margem); right: var(--margem); bottom: calc(var(--guia) + 10px); max-width: none; } }
/* ------------------------------------------------------------------ 9. a história do nome, sobre a foto da obra */
.historia { position: absolute; top: clamp(20px, 4vh, 48px); right: var(--margem); width: min(460px, calc(100% - 2 * var(--margem))); max-height: calc(100% - var(--guia) - 72px);
  overflow-y: auto; scrollbar-width: thin; background: var(--bg); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.historia h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.historia p { font-size: var(--step-body); line-height: 1.55; }
/* texto longo: a caixa alarga e o texto corre em duas colunas */
@media (min-width: 900px) {
  .historia { width: min(900px, calc(100% - 2 * var(--margem))); }
  .historia p { column-count: 2; column-gap: clamp(24px, 3vw, 40px); }
}
@media (max-width: 760px) { .historia { top: auto; bottom: calc(var(--guia) + 76px); left: var(--margem); right: var(--margem); width: auto; max-height: 52%; } }
/* as imagens do MEF têm fundo cinza-claro (não branco): a moldura acompanha */
.modulo .prova.mef { background: #f7f9fb; }

/* o card grande do rodapé leva a logo, da altura das letras */
.rodape .marca-grande { flex-direction: row; gap: .22em; font-size: clamp(4rem, 1rem + 9vw, 10rem); }
.rodape .marca-grande svg { width: .78em; height: .78em; flex: none; }
.rodape .marca-grande span { font-size: 1em; }
