/* ==========================================================================
   Decalcer Technical — technical.decalcer.com
   Folha de estilo única. Tokens em cima, componentes por baixo.

   COMO EDITAR
   - Cores, tipos e espaçamentos: só no bloco :root e [data-theme] abaixo.
   - Não uses border-radius em lado nenhum. É 0 em todo o sistema.
   - Não uses box-shadow, gradientes nem blur. A planura é deliberada.
   - O azul (--accent) não pode passar de ~5% da superfície da página.
   Ver DESIGN.md na raiz do projeto.
   ========================================================================== */

/* --- Fontes auto-alojadas (ficam em assets/fonts/) ----------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800; font-stretch: 62.5% 125%; font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800; font-stretch: 62.5% 125%; font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geistmono-latin.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geistmono-latin-ext.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* --- tipos --- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- espaço e forma (invariáveis) --- */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s8: 64px; --s13: 104px;
  --radius: 0;            /* invariável */
  --border: 1px;          /* invariável */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --numcol: 132px;        /* coluna do numeral de secção */

  /* --- escala tipográfica --- */
  --t-display: clamp(34px, 6.2vw, 88px);
  --t-heading-lg: clamp(28px, 3.6vw, 52px);
  --t-heading: clamp(20px, 2vw, 24px);
  --t-sub: 15px;
  --t-body: 16px;
  --t-note: 13.5px;
  --t-data: 12.5px;
  --t-label: 11px;
  --track-label: 0.16em;

  /* --- TEMA CLARO (por defeito) --- */
  --bg: #FFFFFF;          /* Canvas */
  --bg-band: #F2F5F5;     /* Shell  */
  --panel: #0F1416;       /* Carbon */
  --ink: #0F1416;
  --ink-2: #3A4448;       /* Graphite */
  --ink-3: #697A80;       /* Slate */
  --rule: #D8DFE1;        /* Hairline */
  --rule-strong: #B9C4C7;
  --accent: #195EB8;      /* Signal */
  --heat: #B23F14;        /* Kiln — só em contexto térmico */
  --tint-15: #DCE7F4;
  --tint-30: #BACFEA;
  --tint-55: #81A7D8;
  color-scheme: light;
}

/* --- TEMA ESCURO --- */
[data-theme="dark"] {
  --bg: #0B0F10;
  --bg-band: #12181A;
  --panel: #000000;
  --ink: #F0F4F4;
  --ink-2: #B6C2C5;
  --ink-3: #7F8F94;
  --rule: #232C2F;
  --rule-strong: #364246;
  --accent: #62A3F8;
  --heat: #F37649;
  --tint-15: #16283C;
  --tint-30: #24486E;
  --tint-55: #3F76B8;
  color-scheme: dark;
}

/* Painéis Carbon: são sempre escuros, nos dois temas.
   Redefinem os tokens de tinta para o seu interior. */
.panel {
  --bg: var(--panel);
  --bg-band: var(--panel);
  --ink: #F0F4F4;
  --ink-2: #B6C2C5;
  --ink-3: #7F8F94;
  --rule: #1F2629;
  --rule-strong: #364246;
  --accent: #62A3F8;
  --heat: #F37649;
  background: var(--panel);
  color: var(--ink);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* O overflow-x fica no html, não no body: posto no body ele cria um
   contexto de scroll próprio e há browsers que passam a desencontrar
   window.scrollY do que está realmente pintado. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

/* --- utilitários tipográficos --- */
.label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-3);
}
.data {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.note { font-size: var(--t-note); color: var(--ink-2); }
.accent { color: var(--accent); }
.heat { color: var(--heat); }     /* NOTAÇÃO TÉRMICA — uma vez por página */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   3. ESTRUTURA
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(56px, 9vw, var(--s13));
  border-top: var(--border) solid var(--rule);
}
.panel.section { border-top-color: transparent; }
.band { background: var(--bg-band); }

/* Cabeçalho de secção: numeral mono fixo à esquerda + conteúdo. */
.sec-head {
  display: grid;
  gap: var(--s4);
  margin-bottom: var(--s8);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: var(--numcol) minmax(0, 1fr); gap: 0; }
  .sec-grid { display: grid; grid-template-columns: var(--numcol) minmax(0, 1fr); }
  .sec-grid > .sec-num { grid-column: 1; }
  .sec-grid > .sec-body { grid-column: 2; }
}
.sec-num {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  color: var(--accent);
  text-transform: uppercase;
  align-self: start;
}
@media (min-width: 900px) {
  .sec-num { position: sticky; top: 96px; }   /* acompanha a secção */
}
.sec-title {
  font-size: var(--t-heading-lg);
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  max-width: 22ch;
}
.sec-desc { margin: 0; color: var(--ink-2); max-width: 66ch; }

h3 {
  font-size: var(--t-heading);
  font-weight: 600;
  font-stretch: 112.5%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
}

/* ==========================================================================
   4. NAVEGAÇÃO
   ========================================================================== */

/* Opaca de propósito. Nada de blur nem de translucidez: o DESIGN.md
   proíbe glassmorphism, e uma barra translúcida sobre um painel Carbon
   deixa de se ler. */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  color: var(--ink);
  border-bottom: var(--border) solid var(--rule);
}

.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); height: 64px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 29px; flex: none; }
.brand-type { display: grid; gap: 3px; }
.brand-name {
  font-size: 15px; font-weight: 700; font-stretch: 125%;
  letter-spacing: -0.005em; line-height: 1; text-transform: uppercase;
}
.brand-div {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 400;
  letter-spacing: 0.34em; color: var(--ink-3); line-height: 1;
  border-top: var(--border) solid var(--rule-strong); padding-top: 4px;
}
/* Em ecrã estreito só fica o último link (Contact); a partir de 860px
   aparece o menu inteiro. */
.nav-links { display: flex; gap: var(--s3); align-items: center; }
.nav-links a { display: none; }
.nav-links a:last-child { display: inline; }
@media (min-width: 860px) { .nav-links a { display: inline; } }
.nav-links a {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Barra de progresso de leitura — 1px, cor Signal. */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent); z-index: 70; pointer-events: none;
}
html:not(.js) .progress { display: none; }

/* ==========================================================================
   5. BOTÕES
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: var(--t-data); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn--fill { background: var(--ink); color: var(--bg); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn__arrow { transition: transform .18s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   6. HERO — sequência tubo → quadro → capacete
   Sem JS o bloco .hero-track perde a altura extra e fica um hero normal.
   ========================================================================== */

.hero-track { position: relative; background: var(--panel); }

/* AJUSTE ÚTIL: esta altura é a duração da sequência das três peças.
   260vh = 160vh de scroll repartidos por 3 peças, cerca de meio ecrã
   cada. Aumenta para arrastar mais; 200vh torna a troca quase imediata.
   Não desças abaixo de 200vh ou as peças piscam. */
html.js .hero-track { height: 260vh; }

.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
html.js .hero-stage { position: sticky; top: 0; height: 100svh; }

/* --- as peças ---
   A peça é um ITEM DA GRELHA, não um elemento absoluto: assim nunca
   colide com o texto, em largura nenhuma. As três figuras é que se
   sobrepõem umas às outras dentro dela. */
.hero-media {
  position: relative;
  min-height: 40vh;
  pointer-events: none;
  order: 3;                 /* em ecrã estreito vai para baixo do texto */
}
@media (min-width: 940px) {
  .hero-media { min-height: 62vh; order: 0; }
}
.hero-fig {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.hero-fig img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.hero-fig[data-piece="1"] { opacity: 1; }   /* estado sem JS */
html.js .hero-fig { opacity: 0; transition: opacity .5s linear; }
html.js .hero-fig.is-on { opacity: 1; }

/* --- conteúdo --- */
.hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 96px var(--s8);
  display: grid; gap: var(--s4);
}
@media (min-width: 940px) {
  .hero-in {
    /* texto | peça */
    grid-template-columns: 0.95fr 1.15fr;
    gap: var(--s4);
    align-items: center;
    padding-block: 0;
  }
}
.hero-text { display: grid; gap: var(--s4); align-content: center; }

/* O hero é o único momento de escala da página. Medida do DESIGN.md. */
.hero-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 58px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .96;
  letter-spacing: -0.03em;
  color: #F0F4F4;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-support { display: grid; gap: var(--s3); align-content: center; }
.hero-lede {
  margin: 0; font-size: 14.5px; line-height: 1.6;
  color: #B6C2C5; max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-cta .btn { border-color: #F0F4F4; color: #F0F4F4; }
.hero-cta .btn:hover { background: #F0F4F4; color: #0F1416; }

/* Ficha de dados do hero */
.sheet { border-top: var(--border) solid var(--rule); }
.sheet-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); padding-block: 9px;
  border-bottom: var(--border) solid var(--rule);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row dt {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
.sheet-row dd {
  margin: 0; font-family: var(--font-mono); font-size: var(--t-data);
  font-variant-numeric: tabular-nums; color: var(--ink); text-align: right;
}

/* Variante em tira: quatro células lado a lado, rótulo por cima do valor.
   Usada no hero, onde o espaço é largo e baixo. */
@media (min-width: 620px) {
  .sheet--strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: var(--border) solid var(--rule);
  }
  .sheet--strip .sheet-row {
    display: block; padding: 12px var(--s2) 0 0; border-bottom: 0;
    border-right: var(--border) solid var(--rule);
  }
  .sheet--strip .sheet-row:last-child { border-right: 0; padding-right: 0; }
  .sheet--strip dd { text-align: left; margin-top: 6px; }
}

/* Legenda da peça + pista de scroll */
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--gutter) var(--s3);
  max-width: var(--maxw); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--s3); pointer-events: none;
}
.hero-caption {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: #7F8F94;
}
.hero-caption b { color: #F0F4F4; font-weight: 500; }
.hero-cue {
  font-family: var(--font-mono); font-size: var(--t-label);
  letter-spacing: var(--track-label); text-transform: uppercase; color: #7F8F94;
  display: none;
}
html.js .hero-cue { display: block; }
.hero-cue span { display: inline-block; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(4px); opacity: 1 } }

/* Indicador de posição na sequência (3 traços) */
.hero-ticks { display: none; gap: 6px; align-items: center; }
html.js .hero-ticks { display: flex; }
.hero-ticks i {
  display: block; width: 22px; height: 2px; background: #364246;
  transition: background-color .3s;
}
.hero-ticks i.is-on { background: var(--accent); }

/* --- Hero em ecrã estreito ---------------------------------------------
   A legenda passa a fazer parte do fluxo, para não assentar por cima da
   peça, e a pista de scroll desaparece (chocava com o interruptor). */
@media (max-width: 939px) {
  /* No telemóvel a sequência NÃO é presa ao scroll — uma pista de 260vh
     num ecrã pequeno é uma armadilha. As três peças trocam sozinhas, em
     ciclo, e só enquanto o hero está à vista (ver main.js). A pista
     perde a altura extra e o hero volta a ser um bloco normal. */
  html.js .hero-track { height: auto; }
  html.js .hero-stage { position: relative; height: auto; min-height: 100svh; }

  .hero-stage { flex-direction: column; justify-content: center; }
  .hero-in { flex: 1 1 auto; padding-block: var(--s6) var(--s3); gap: var(--s3); }
  .hero-text { gap: var(--s3); }
  .hero-media { min-height: 30vh; }
  .hero-foot {
    position: static; width: 100%;
    padding: var(--s2) var(--gutter) var(--s4);
  }
  html.js .hero-cue { display: none; }
  /* Os tracinhos ficam: são o que diz que há três peças. */
  html.js .hero-ticks { display: flex; }

  /* Ficha de dados em 2x2 em vez de quatro linhas — poupa cerca de 80px
     e é o que faz o hero caber em 100svh num telefone. */
  .sheet--strip {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: var(--border) solid var(--rule);
  }
  .sheet--strip .sheet-row {
    display: block; padding: 10px var(--s2) 10px 0;
    border-bottom: var(--border) solid var(--rule);
    border-right: 0;
  }
  .sheet--strip .sheet-row:nth-child(odd) {
    border-right: var(--border) solid var(--rule);
  }
  .sheet--strip .sheet-row:nth-last-child(-n+2) { border-bottom: 0; }
  .sheet--strip .sheet-row:nth-child(even) { padding-left: var(--s2); }
  .sheet--strip dd { text-align: left; margin-top: 4px; }
}

/* ==========================================================================
   7. BLOCOS DE TEXTO EM GRELHA
   ========================================================================== */

.cols {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cols--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (min-width: 760px) { .cols--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s6); } }

.block { border-top: var(--border) solid var(--rule); padding-top: var(--s3); }
.block p { margin: 0; color: var(--ink-2); font-size: var(--t-note); }
.block .label { margin-bottom: var(--s2); display: block; }

/* Parágrafos longos */
.prose p { max-width: 68ch; color: var(--ink-2); }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.pull {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 600; font-stretch: 112.5%; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: var(--s3); margin: var(--s6) 0;
  max-width: 30ch;
}

/* ==========================================================================
   8. DIAGRAMA DAS CAMADAS  (§03)
   ========================================================================== */

.layers {
  display: grid; gap: var(--s6); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .layers { grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); } }

.layers-fig { width: 100%; max-width: 420px; margin-inline: auto; }
.layers-fig svg { width: 100%; height: auto; overflow: visible; }
.arc { fill: none; stroke-linecap: butt; }
/* Sem JS os arcos aparecem desenhados. Com JS desenham-se ao scroll. */
html.js .arc { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
html.js .layers.is-in .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.22,.61,.36,1); }
html.js .layers.is-in .arc-1 { transition-delay: .05s }
html.js .layers.is-in .arc-2 { transition-delay: .25s }
html.js .layers.is-in .arc-3 { transition-delay: .45s }
html.js .layers.is-in .arc-4 { transition-delay: .65s }
.dim { stroke: var(--accent); stroke-width: 1; fill: none; }
html.js .dim { opacity: 0; transition: opacity .4s .95s; }
html.js .layers.is-in .dim { opacity: 1; }

/* Tabela das camadas */
.ltable { width: 100%; border-collapse: collapse; }
.ltable th, .ltable td {
  text-align: left; padding: 12px 0; border-bottom: var(--border) solid var(--rule);
  vertical-align: baseline;
}
.ltable thead th {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); border-bottom-color: var(--rule-strong);
}
.ltable td:first-child { width: 34px; }
.ltable .swatch {
  display: inline-block; width: 12px; height: 12px; background: var(--sw, var(--ink));
}
.ltable .lname { font-weight: 600; font-stretch: 112.5%; font-size: 14px; }
.ltable .lrole { color: var(--ink-2); font-size: var(--t-note); }
.ltable td:last-child {
  font-family: var(--font-mono); font-size: var(--t-data);
  font-variant-numeric: tabular-nums; color: var(--ink-3);
  text-align: right; white-space: nowrap;
}

/* ==========================================================================
   9. GRELHA DE SUBSTRATOS  (§04)
   ========================================================================== */

.sgrid {
  display: grid; gap: var(--border);
  background: var(--rule);
  border: var(--border) solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .sgrid { grid-template-columns: repeat(4, 1fr); } }

.scell {
  background: var(--bg); padding: 16px;
  min-height: 118px; display: flex; flex-direction: column;
}
.scell h3 {
  margin: 12px 0 0; font-size: 14px; font-weight: 600; font-stretch: 112.5%;
  line-height: 1.25;
}
/* Graphite e não Slate: a 12px sobre Canvas o Slate dá 4,47:1 e falha o
   AA por uma unha. O DESIGN.md pede Slate aqui, mas o mesmo documento
   rejeita o azul da marca-mãe por falhar AA — mede-se e corrige-se. */
.scell p { margin: auto 0 0; padding-top: var(--s2); font-size: 12px; color: var(--ink-2); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.status::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--dot, var(--ink-3));      /* quadrado, nunca redondo */
}
.status--ok { --dot: var(--accent); }
.status--sampling { --dot: var(--heat); }
.status--none { --dot: var(--rule-strong); }

/* A última célula é um convite, não um substrato. Fundo Shell para se
   distinguir das validadas sem introduzir cor. */
.scell--ask { background: var(--bg-band); }
.band .scell--ask { background: var(--rule); }

/* Faixa de imagem larga com legenda */
.plate { margin-top: var(--s8); }
.plate img { width: 100%; height: auto; }
.plate figcaption {
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: var(--border) solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2);
}

/* ==========================================================================
   10. NÚMEROS  (contadores)
   ========================================================================== */

.figs { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .figs { grid-template-columns: repeat(4, 1fr); } }
.fig { border-top: var(--border) solid var(--rule-strong); padding-top: var(--s2); }
.fig b {
  display: block;
  font-size: clamp(30px, 4vw, 46px); font-weight: 700; font-stretch: 125%;
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fig .label { margin-top: var(--s2); display: block; }

/* ==========================================================================
   11. FORMULÁRIO  (§06)
   ========================================================================== */

.form { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px;
  background: transparent; color: var(--ink);
  border: var(--border) solid var(--rule-strong); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: var(--t-data);
  line-height: 1.45;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);   /* espessa a hairline, não é sombra */
}
.field .hint { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); }
.field select { appearance: none; background-image: none; }
.form-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s3);
  align-items: center; justify-content: space-between;
  border-top: var(--border) solid var(--rule); padding-top: var(--s3);
}
.hp { position: absolute; left: -9999px; }   /* honeypot anti-spam */
.form-msg { font-family: var(--font-mono); font-size: var(--t-data); }
.form-msg[data-state="ok"] { color: var(--accent); }
.form-msg[data-state="err"] { color: var(--heat); }

.contact-direct { display: grid; gap: var(--s2); }
.contact-direct a { color: var(--ink); }
.contact-direct .big {
  font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.01em;
}

/* ==========================================================================
   12. RODAPÉ
   ========================================================================== */

.foot { border-top: var(--border) solid var(--rule); padding-block: var(--s8) var(--s6); }
.foot-in { display: grid; gap: var(--s6); }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr; gap: var(--s8); } }
.foot p { margin: 0 0 var(--s2); color: var(--ink-2); font-size: var(--t-note); max-width: 62ch; }
.foot strong { color: var(--ink); font-weight: 600; }
.foot-meta { display: grid; gap: 6px; }

/* ==========================================================================
   13. INTERRUPTOR DE TEMA
   Provisório — serve para o Paulo escolher entre claro e escuro.
   Para o remover: apagar o <div class="theme-switch"> do index.html.
   ========================================================================== */

.theme-switch {
  position: fixed; right: var(--s2); bottom: var(--s2); z-index: 80;
  display: none; align-items: stretch;
  background: var(--bg); border: var(--border) solid var(--rule-strong);
}
html.js .theme-switch { display: flex; }
.theme-switch button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: 9px 13px; color: var(--ink-3);
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
}
.theme-switch button + button { border-left: var(--border) solid var(--rule); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   14. ANIMAÇÃO AO SCROLL
   Só existe quando há JS. O conteúdo está sempre no HTML.
   ========================================================================== */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s }
html.js .reveal[data-delay="2"] { transition-delay: .16s }
html.js .reveal[data-delay="3"] { transition-delay: .24s }
html.js .reveal[data-delay="4"] { transition-delay: .32s }
html.js .reveal[data-delay="5"] { transition-delay: .40s }
html.js .reveal[data-delay="6"] { transition-delay: .48s }

/* Parallax — o JS escreve --py */
html.js .par { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* --- Quem pediu menos movimento, recebe menos movimento. --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-track { height: auto; }
  html.js .hero-stage { position: relative; height: auto; }
  html.js .hero-fig { transition: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .par { transform: none; }
  html.js .arc { stroke-dashoffset: 0; }
  html.js .dim { opacity: 1; }
  .hero-cue span { animation: none; }
  .progress { display: none; }
}

/* ==========================================================================
   15. IMPRESSÃO
   ========================================================================== */

@media print {
  .nav, .progress, .theme-switch, .hero-foot, .hero-cue { display: none !important; }
  html.js .hero-track { height: auto; }
  html.js .hero-stage { position: relative; height: auto; }
  html.js .hero-fig { position: relative; opacity: 1; }
  .panel { background: #fff !important; color: #000 !important; }
  body { background: #fff; color: #000; }
}
