/* =========================================================================
   Tipografia auto-alojada (Archivo variável + IBM Plex Sans/Mono)
   ========================================================================= */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-100-900-latin-ext-0.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-100-900-latin-1.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin-ext-2.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin-3.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-ext-4.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-5.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-400-latin-ext-6.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-400-latin-7.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-500-latin-ext-8.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-500-latin-9.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-600-latin-ext-10.woff2) format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-600-latin-11.woff2) format('woff2');
  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;
}

/* =========================================================================
   RFAS — "O Dossier Técnico"
   Design system v2 · 2026
   -------------------------------------------------------------------------
   O site comporta-se como um caderno de documentos de projeto:
   folhas numeradas, legendas ISO 7200, linhas de cota, carimbos,
   barra de coordenadas. Execução sóbria — a metáfora está nos detalhes,
   não em decoração.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
    /* Papel e tinta */
    --paper:      #F4F0E5;
    --paper-2:    #ECE6D6;
    --paper-3:    #E2DBC6;
    --ink:        #17130D;
    --ink-2:      #464136;
    --ink-3:      #8B8372;
    --line:       #C7BFAC;
    --line-2:     #DAD3C0;

    /* Acentos técnicos */
    --blue:       #1B3C6E;   /* tinta técnica */
    --blue-2:     #2D5695;
    --bp:         #0E2C55;   /* fundo blueprint */
    --bp-deep:    #0A2140;
    --bp-line:    rgba(208, 222, 244, .14);
    --bp-text:    #D8E2F2;
    --red:        #B23B2A;   /* vermelho de carimbo/revisão */
    --red-2:      #C9553F;
    --moss:       #5A6F47;

    /* Tipografia */
    --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', 'Courier New', monospace;

    /* Métrica de folha */
    --container: 1200px;
    --container-wide: 1360px;
    --container-narrow: 860px;
    --rail: 2.25rem;             /* margem das guias laterais */
    --statusbar-h: 30px;

    --shadow-plate: 0 1px 0 rgba(23, 19, 13, .06), 0 14px 40px -18px rgba(23, 19, 13, .28);
}

/* -------------------------------------------------------------------------
   2. Reset e base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
    body { padding-bottom: var(--statusbar-h); }
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--paper-2);
    border: 1px solid var(--line-2);
    padding: .05em .35em;
    border-radius: 2px;
}

::selection { background: var(--red); color: var(--paper); }

/* Grão de papel — muito subtil */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: .5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .09 0 0 0 0 .075 0 0 0 0 .05 0 0 0 .03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

/* -------------------------------------------------------------------------
   3. Tipografia
   ------------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 740;
    font-stretch: 116%;
    line-height: 1.0;
    letter-spacing: -.022em;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.04; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-stretch: 110%; font-weight: 680; line-height: 1.15; letter-spacing: -.015em; }
h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

/* Palavra "wireframe" — a camada digital desenha-se em contorno */
.outline {
    color: transparent;
    -webkit-text-stroke: 1.6px var(--blue);
    text-stroke: 1.6px var(--blue);
}
@supports not ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
    .outline { color: var(--blue); -webkit-text-stroke: 0; }
}
.accent-blue { color: var(--blue); }
.accent-red  { color: var(--red); }

p { margin: 0; }
p + p { margin-top: 1em; }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.58;
    color: var(--ink-2);
    max-width: 58ch;
}

/* Linha de documento — substitui o "eyebrow": referência de doc real */
.doc-line {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 1.5rem;
    flex-wrap: wrap;
    row-gap: .2rem;
}
.doc-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    min-width: 2rem;
}
.doc-line .doc-no { color: var(--red); }
.doc-line b { color: var(--ink-2); font-weight: 500; }

.mono-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
    width: min(var(--container), calc(100% - 3.5rem));
    margin-inline: auto;
}
.container-wide {
    width: min(var(--container-wide), calc(100% - 3.5rem));
    margin-inline: auto;
}
.container-narrow {
    width: min(var(--container-narrow), calc(100% - 3.5rem));
    margin-inline: auto;
}

.section { padding: clamp(4rem, 8.5vw, 7rem) 0; position: relative; }
.section-tight { padding: clamp(2.75rem, 5vw, 4.25rem) 0; position: relative; }

/* impede que conteúdo intrínseco rebente as grelhas em ecrãs estreitos */
.hero-grid > *,
.sec-head > *,
.sheet-row > *,
.bp-feature > *,
.fig-duo > *,
.contact-grid > *,
.nota-box > * { min-width: 0; }

/* -------------------------------------------------------------------------
   5. Acessibilidade
   ------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 999;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1rem;
    font-size: .9rem;
    font-weight: 600;
}
.skip-link:focus { left: 1rem; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------
   6. Guias laterais de folha (desktop largo)
   ------------------------------------------------------------------------- */
.sheet-rails {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    display: none;
}
@media (min-width: 1440px) {
    .sheet-rails { display: block; }
}
.sheet-rails::before,
.sheet-rails::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-2);
}
.sheet-rails::before { left: var(--rail); }
.sheet-rails::after  { right: var(--rail); }

.rail-ticks {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .08em;
    color: var(--ink-3);
}
.rail-ticks.left { left: 0; }
.rail-ticks.right { right: 0; }
.rail-ticks span {
    display: block;
    transform: rotate(0);
    opacity: .75;
}
.rail-ticks span::before {
    content: "";
    display: block;
    width: 9px;
    height: 1px;
    background: var(--line);
    margin: 0 auto .35rem;
}

/* -------------------------------------------------------------------------
   7. Barra de estado (leitura de coordenadas, tipo CAD)
   ------------------------------------------------------------------------- */
.statusbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--statusbar-h);
    z-index: 120;
    display: none;
    align-items: center;
    gap: 2rem;
    padding: 0 1.25rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    user-select: none;
}
@media (min-width: 1024px) {
    .statusbar { display: flex; }
}
.statusbar .sb-doc { color: var(--ink-2); }
.statusbar .sb-doc b { color: var(--red); font-weight: 500; }
.statusbar .sb-section { flex: 1; text-align: center; color: var(--ink-3); }
.statusbar .sb-coords { display: flex; gap: 1.4rem; }
.statusbar .sb-coords span { min-width: 6.5ch; text-align: right; }
.statusbar .sb-scroll { color: var(--blue); min-width: 8ch; text-align: right; }

/* -------------------------------------------------------------------------
   8. Cabeçalho e navegação
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: rgba(244, 240, 229, .88);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid var(--line-2);
    transition: box-shadow .25s;
}
.site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(23, 19, 13, .35);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: .85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--ink);
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 740;
    font-stretch: 116%;
    font-size: 1.3rem;
    line-height: 1;
    position: relative;
    flex-shrink: 0;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(244, 240, 229, .3);
    pointer-events: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: .04em;
    font-size: 1.02rem;
}
.brand-text small {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--ink-3);
    margin-top: 3px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.main-nav > a {
    padding: .5rem .8rem;
    font-size: .9rem;
    color: var(--ink-2);
    position: relative;
    transition: color .18s;
}
.main-nav > a i {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--ink-3);
    margin-right: .35rem;
    letter-spacing: .05em;
    transition: color .18s;
}
.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .3rem;
    height: 1.5px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.main-nav > a:not(.nav-cta):hover { color: var(--ink); }
.main-nav > a:not(.nav-cta):hover i { color: var(--red); }
.main-nav > a.active { color: var(--ink); font-weight: 500; }
.main-nav > a.active i { color: var(--red); }
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a.active:not(.nav-cta)::after { transform: scaleX(1); }

.nav-cta {
    margin-left: .7rem;
    background: var(--ink);
    color: var(--paper) !important;
    padding: .62rem 1.05rem !important;
    font-family: var(--font-mono);
    font-size: .74rem !important;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .18s;
}
.nav-cta:hover { background: var(--blue); }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .05rem;
    margin-left: .6rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .05em;
}
.lang-switch a {
    padding: .2rem .35rem;
    color: var(--ink-3);
    transition: color .18s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--red); font-weight: 500; }
.lang-switch span { color: var(--line); }

.nav-portal {
    margin-left: .6rem;
    font-family: var(--font-mono);
    font-size: .68rem !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3) !important;
    padding: .34rem .55rem !important;
    border: 1px solid var(--line);
    transition: color .18s, border-color .18s;
    white-space: nowrap;
}
.nav-portal:hover { color: var(--red) !important; border-color: var(--red); }
.main-nav > a.nav-portal::after { display: none !important; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    padding: .55rem;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    margin: 4.5px 0;
    transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   9. Botões e ligações
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .95rem 1.35rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    line-height: 1;
    transition: background .18s, color .18s, border-color .18s;
    position: relative;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); }

.btn-arrow::after {
    content: "→";
    font-family: var(--font-body);
    transition: transform .18s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

.text-link {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    font-weight: 500;
    color: var(--blue);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color .18s;
}
.text-link:hover { color: var(--red); }
.text-link span { transition: transform .18s; display: inline-block; }
.text-link:hover span { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   10. Marcas de secção (§)
   ------------------------------------------------------------------------- */
.sec-mark {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.sec-mark .no {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--red);
    white-space: nowrap;
}
.sec-mark .ttl {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.sec-mark .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
    position: relative;
}
.sec-mark .rule::before,
.sec-mark .rule::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 1px;
    height: 7px;
    background: var(--line);
}
.sec-mark .rule::before { left: 0; }
.sec-mark .rule::after { right: 0; }

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 2.5rem 4rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head h2 { max-width: 20ch; }
.sec-head .side-note {
    color: var(--ink-2);
    font-size: .98rem;
    line-height: 1.6;
    max-width: 48ch;
    padding-bottom: .35rem;
}

/* -------------------------------------------------------------------------
   11. Hero (índice)
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0 0;
    overflow: hidden;
}

/* papel milimétrico desvanecido no fundo */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
        linear-gradient(rgba(199, 191, 172, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199, 191, 172, .55) 1px, transparent 1px);
    background-size: 14px 14px, 14px 14px, 70px 70px, 70px 70px;
    mask-image: radial-gradient(ellipse 75% 82% at 78% 30%, rgba(0,0,0,.6), transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 82% at 78% 30%, rgba(0,0,0,.6), transparent 72%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.6rem; max-width: 46ch; }

.hero-actions {
    margin-top: 2.4rem;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

/* Linha de cota por baixo do título */
.dim-line {
    margin-top: 2.6rem;
    max-width: 30rem;
    position: relative;
    height: 34px;
}
.dim-line svg { width: 100%; height: 100%; overflow: visible; }
.dim-line .dim-stroke {
    stroke: var(--red);
    stroke-width: 1.2;
    fill: none;
}
.dim-line text {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    fill: var(--red);
    text-transform: uppercase;
}

/* Prancheta do hero */
.hero-plate {
    position: relative;
    border: 1px solid var(--line);
    background:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px),
        var(--paper-2);
    background-size: 28px 28px;
    box-shadow: var(--shadow-plate);
}
.hero-plate .plate-inner { padding: 1.2rem; }
.hero-plate svg { width: 100%; height: auto; }

/* mini-legenda dentro da prancheta */
.plate-block {
    display: grid;
    grid-template-columns: 1fr auto auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-mono);
}
.plate-block > div {
    padding: .55rem .9rem;
    border-right: 1px solid var(--line-2);
}
.plate-block > div:last-child { border-right: 0; }
.plate-block .k {
    display: block;
    font-size: .56rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .15rem;
}
.plate-block .v { font-size: .74rem; color: var(--ink-2); letter-spacing: .04em; }

/* Carimbo redondo */
.stamp {
    position: absolute;
    width: 108px;
    height: 108px;
    top: -22px;
    right: -18px;
    transform: rotate(8deg);
    opacity: .9;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 1px 0 rgba(23,19,13,.05));
}
.stamp svg { width: 100%; height: 100%; }
.stamp text {
    font-family: var(--font-mono);
    letter-spacing: .22em;
    fill: var(--red);
    text-transform: uppercase;
}

/* Quadro de dados por baixo do hero */
.hero-board {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--ink);
    position: relative;
    z-index: 1;
}
.hero-board .board-title {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: .8rem 0 0;
}
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1rem;
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.board-cell {
    padding: .35rem 1.5rem .35rem 0;
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
}
.board-cell:first-child { border-left: 0; padding-left: 0; }
.board-cell .mono-label { display: block; margin-bottom: .55rem; }
.board-cell strong {
    font-family: var(--font-display);
    font-weight: 720;
    font-stretch: 114%;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -.015em;
    line-height: 1;
    display: block;
}
.board-cell span.desc {
    font-size: .86rem;
    color: var(--ink-3);
    display: block;
    margin-top: .5rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
   12. Painel blueprint
   ------------------------------------------------------------------------- */
.blueprint {
    background:
        linear-gradient(var(--bp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bp-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--bp), var(--bp-deep));
    background-size: 34px 34px, 34px 34px, 100%;
    color: var(--bp-text);
    position: relative;
    border: 1px solid var(--bp-deep);
}
.blueprint::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(208, 222, 244, .22);
    pointer-events: none;
}
.blueprint h2, .blueprint h3 { color: #F2F6FC; }
.blueprint .lead { color: rgba(216, 226, 242, .82); }
.blueprint p { color: rgba(216, 226, 242, .78); }
.blueprint .mono-label { color: rgba(216, 226, 242, .55); }
.blueprint .doc-line { color: rgba(216, 226, 242, .6); }
.blueprint .doc-line::after { background: rgba(216, 226, 242, .25); }
.blueprint .doc-line .doc-no { color: #F2B8AA; }

.bp-feature {
    padding: clamp(2.5rem, 5.5vw, 4.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 3rem;
    align-items: center;
}
.bp-feature h2 { max-width: 22ch; }
.bp-feature .bp-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }

.bp-kpis {
    display: flex;
    gap: 2.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.bp-kpi .v {
    font-family: var(--font-display);
    font-weight: 720;
    font-stretch: 114%;
    font-size: 1.6rem;
    color: #F2F6FC;
    display: block;
    line-height: 1;
}
.bp-kpi .k {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(216, 226, 242, .55);
    display: block;
    margin-top: .5rem;
}

/* -------------------------------------------------------------------------
   13. Catálogo de serviços (lista, não cartões)
   ------------------------------------------------------------------------- */
.catalog { border-top: 1px solid var(--ink); }
.catalog-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.35fr) auto;
    gap: 2rem;
    align-items: baseline;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background .18s;
}
.catalog-row:hover { background: linear-gradient(90deg, transparent, var(--paper-2) 8%, var(--paper-2) 92%, transparent); }

.catalog-row .no {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--ink-3);
    letter-spacing: .08em;
    transition: color .18s;
}
.catalog-row:hover .no { color: var(--red); }

.catalog-row h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.42rem);
    transition: transform .22s ease;
}
.catalog-row:hover h3 { transform: translateX(6px); }
.catalog-row .tag {
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-top: .5rem;
}
.catalog-row p {
    font-size: .93rem;
    color: var(--ink-2);
    line-height: 1.55;
    max-width: 52ch;
}
.catalog-row .go {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
    align-self: center;
    transition: color .18s, transform .18s;
}
.catalog-row:hover .go { color: var(--ink); transform: translateX(4px); }

/* linha "aberta" (a sua ideia) */
.catalog-row.open-row { background: var(--ink); border-bottom-color: var(--ink); }
.catalog-row.open-row:hover { background: var(--bp); }
.catalog-row.open-row .no { color: var(--red-2); }
.catalog-row.open-row h3 { color: var(--paper); }
.catalog-row.open-row .tag { color: var(--red-2); }
.catalog-row.open-row p { color: rgba(244, 240, 229, .72); }
.catalog-row.open-row .go { color: rgba(244, 240, 229, .8); }
.catalog-row.open-row { padding-left: 1.25rem; padding-right: 1.25rem; margin-inline: -1.25rem; }

/* -------------------------------------------------------------------------
   14. Figuras (imagens reais tratadas como peças de relatório)
   ------------------------------------------------------------------------- */
.figure {
    position: relative;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-plate);
}
.figure .fig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .95rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.figure .fig-head .fig-no { color: var(--red); font-weight: 500; }
.figure .fig-media {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
    aspect-ratio: 16 / 10;
}
.figure .fig-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}
.figure .fig-media.natural { aspect-ratio: auto; }
.figure .fig-media.contain img { object-fit: contain; }
.figure .fig-caption {
    padding: .7rem .95rem;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--ink-2);
    line-height: 1.5;
}
/* marcas de registo nos cantos */
.figure::before, .figure::after,
.figure .fig-media::before, .figure .fig-media::after { pointer-events: none; }

.reg-marks { position: absolute; inset: -5px; pointer-events: none; }
.reg-marks i {
    position: absolute;
    width: 11px; height: 11px;
}
.reg-marks i::before, .reg-marks i::after {
    content: "";
    position: absolute;
    background: var(--ink-3);
}
.reg-marks i::before { left: 5px; top: 0; width: 1px; height: 11px; }
.reg-marks i::after  { top: 5px; left: 0; height: 1px; width: 11px; }
.reg-marks i:nth-child(1) { top: 0; left: 0; }
.reg-marks i:nth-child(2) { top: 0; right: 0; }
.reg-marks i:nth-child(3) { bottom: 0; left: 0; }
.reg-marks i:nth-child(4) { bottom: 0; right: 0; }

/* Grelha de projetos na homepage */
.fig-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.fig-entry .meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 1.2rem 0 .5rem;
}
.fig-entry h3 { font-size: 1.35rem; }
.fig-entry .desc {
    margin-top: .6rem;
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.58;
}
.fig-entry .tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag-chip {
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .05em;
    padding: .28rem .6rem;
    border: 1px solid var(--line);
    color: var(--ink-2);
    background: var(--paper);
}

/* -------------------------------------------------------------------------
   14b. Fichas de projeto (página Projetos)
   ------------------------------------------------------------------------- */
.sheet-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: start;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.sheet-row.flip .sheet-fig { order: 2; }
.sheet-row + .sheet-divider { margin: 0; }

.sheet-body h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 1.1rem;
}
.sheet-body .desc {
    color: var(--ink-2);
    font-size: .98rem;
    line-height: 1.65;
}
.sheet-body .desc + .desc { margin-top: .9rem; }
.sheet-body .desc strong { color: var(--ink); font-weight: 600; }

.spec-list {
    margin: 1.6rem 0 0;
    border-top: 1px solid var(--ink);
}
.spec-list > div {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}
.spec-list dt {
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: .2rem;
}
.spec-list dd {
    margin: 0;
    font-size: .92rem;
    color: var(--ink);
    line-height: 1.5;
}

/* fita de capturas de telemóvel */
.fig-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}
.fig-strip .cell {
    background: var(--paper-2);
    aspect-ratio: 9 / 16;
    overflow: hidden;
}
.fig-strip .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* -------------------------------------------------------------------------
   15. Método — fita de fluxo com cotas
   ------------------------------------------------------------------------- */
.method-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--ink);
    background: var(--paper);
}
.method-step {
    padding: 1.8rem 1.6rem 1.7rem;
    border-right: 1px solid var(--line);
    position: relative;
    counter-increment: mstep;
}
.method-step:last-child { border-right: 0; }
.method-step .m-no {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.method-step .m-no::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.method-step h3 { font-size: 1.28rem; margin-bottom: .7rem; }
.method-step p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.method-step .m-arrow {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 14px;
    height: 14px;
    color: var(--ink-3);
}
.method-step:last-child .m-arrow { display: none; }

/* -------------------------------------------------------------------------
   15b. Componentes de dossier (OTL e páginas técnicas)
   ------------------------------------------------------------------------- */
/* lista técnica com setas */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.check-list li {
    display: flex;
    gap: .8rem;
    color: var(--ink-2);
    font-size: .94rem;
    line-height: 1.55;
}
.check-list li::before {
    content: "→";
    color: var(--red);
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
}
.check-list li strong { color: var(--ink); font-weight: 600; }

/* anexo — caixa escura com régua vermelha e anotação mono */
.annex {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    position: relative;
    border-left: 4px solid var(--red);
}
.annex .mono-label { color: var(--red-2); display: block; margin-bottom: 1rem; }
.annex h3 { color: var(--paper); margin-bottom: .9rem; }
.annex p { color: rgba(244, 240, 229, .82); line-height: 1.62; font-size: .95rem; }
.annex .annotation {
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(244, 240, 229, .18);
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.6;
    color: rgba(244, 240, 229, .62);
}

/* grelha de células claras (audiências, princípios) */
.cell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--ink);
}
.cell-grid .cell {
    background: var(--paper);
    padding: 1.7rem 1.5rem;
    transition: background .18s;
}
.cell-grid .cell:hover { background: var(--paper-2); }
.cell-grid .cell .mono-label { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.cell-grid .cell .mono-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cell-grid .cell h3 { font-size: 1.18rem; margin-bottom: .65rem; }
.cell-grid .cell p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }

/* grelha de células sobre blueprint */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(208, 222, 244, .22);
    border: 1px solid rgba(208, 222, 244, .3);
    position: relative;
    z-index: 1;
}
.bp-grid .cell { background: var(--bp); padding: 1.7rem 1.5rem; }
.bp-grid .cell .mono-label { color: #F2B8AA; display: block; margin-bottom: .9rem; }
.bp-grid .cell h3 { color: #F2F6FC; font-size: 1.15rem; margin-bottom: .6rem; }
.bp-grid .cell p { color: rgba(216, 226, 242, .72); font-size: .88rem; line-height: 1.55; }

/* secção inteira blueprint */
.section-blueprint {
    background:
        linear-gradient(var(--bp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bp-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--bp), var(--bp-deep));
    background-size: 34px 34px, 34px 34px, 100%;
    color: var(--bp-text);
    padding: clamp(4rem, 8.5vw, 7rem) 0;
    position: relative;
}
.section-blueprint h2 { color: #F2F6FC; }
.section-blueprint .sec-mark .no { color: #F2B8AA; }
.section-blueprint .sec-mark .ttl { color: rgba(216, 226, 242, .85); }
.section-blueprint .sec-mark .rule,
.section-blueprint .sec-mark .rule::before,
.section-blueprint .sec-mark .rule::after { background: rgba(216, 226, 242, .3); }
.section-blueprint .sec-head .side-note { color: rgba(216, 226, 242, .75); }
.section-blueprint .footnote { color: rgba(216, 226, 242, .65); font-size: .92rem; max-width: 72ch; margin-top: 2.5rem; line-height: 1.6; }

/* -------------------------------------------------------------------------
   16. Registo de documentos (índice de páginas)
   ------------------------------------------------------------------------- */
.doc-register { border: 1px solid var(--ink); background: var(--paper); }
.doc-register .dr-head {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr) 6rem 3rem;
    gap: 1.5rem;
    padding: .7rem 1.4rem;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--paper-2);
}
.doc-register a.dr-row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr) 6rem 3rem;
    gap: 1.5rem;
    padding: 1.05rem 1.4rem;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
    transition: background .15s;
}
.doc-register a.dr-row:last-child { border-bottom: 0; }
.doc-register a.dr-row:hover { background: var(--paper-2); }
.dr-row .dr-no {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--red);
    letter-spacing: .06em;
}
.dr-row .dr-title {
    font-family: var(--font-display);
    font-weight: 680;
    font-stretch: 110%;
    font-size: 1.06rem;
    letter-spacing: -.01em;
}
.dr-row .dr-desc { font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.dr-row .dr-rev {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--ink-3);
    letter-spacing: .05em;
}
.dr-row .dr-go {
    font-family: var(--font-body);
    color: var(--ink-3);
    text-align: right;
    transition: transform .18s, color .18s;
}
.dr-row:hover .dr-go { transform: translateX(4px); color: var(--ink); }

/* -------------------------------------------------------------------------
   17. Caixa de nota / CTA
   ------------------------------------------------------------------------- */
.nota-box {
    position: relative;
    border: 1px solid var(--ink);
    outline: 1px solid var(--line);
    outline-offset: 5px;
    background: var(--paper);
    padding: clamp(2.25rem, 5vw, 3.75rem);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.nota-box .nota-tab {
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .45rem .9rem;
}
.nota-box h2 { max-width: 24ch; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.nota-box p { color: var(--ink-2); margin-top: 1.1rem; max-width: 52ch; }
.nota-box .nota-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }

.nota-box.on-blueprint {
    border-color: rgba(208, 222, 244, .5);
    outline-color: rgba(208, 222, 244, .25);
    background: transparent;
}

/* -------------------------------------------------------------------------
   18. Rodapé — legenda ISO 7200
   ------------------------------------------------------------------------- */
.site-footer {
    margin-top: clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--ink);
    background: var(--paper);
    position: relative;
}

.titleblock {
    border: 1px solid var(--ink);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    background: var(--paper);
}
.titleblock .tb-cell {
    padding: .8rem 1rem .7rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 3.4rem;
}
.titleblock .tb-cell:nth-child(5n),
.titleblock .tb-cell:last-child { border-right: 0; }
.titleblock .tb-cell:nth-last-child(-n+4) { border-bottom: 0; }
.titleblock .tb-cell .k {
    display: block;
    font-family: var(--font-mono);
    font-size: .56rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .3rem;
}
.titleblock .tb-cell .v {
    font-size: .86rem;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: .01em;
}
.titleblock .tb-cell .v.mono { font-family: var(--font-mono); font-size: .78rem; }
.titleblock .tb-cell .v a { border-bottom: 1px solid var(--line); transition: border-color .18s, color .18s; }
.titleblock .tb-cell .v a:hover { color: var(--blue); border-color: var(--blue); }
.titleblock .tb-brand {
    grid-row: span 2;
    display: flex;
    align-items: center;
    gap: .9rem;
    border-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.75rem;
    padding: 1.4rem 0 0;
    font-size: .9rem;
}
.footer-nav a {
    color: var(--ink-2);
    padding: .25rem 0;
    transition: color .18s;
}
.footer-nav a:hover { color: var(--red); }
.footer-nav .sep { color: var(--line); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    padding: 1.2rem 0 1.6rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   18b. Grelhas de apoio
   ------------------------------------------------------------------------- */
.duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.figure .fig-pad { padding: 1.5rem 1.4rem; }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}
.contact-info h2 { max-width: 16ch; }
.contact-info .lead { margin-top: 1.4rem; }

.contact-meta {
    margin-top: 2rem;
    border-top: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
}
.contact-meta > div {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-meta dt {
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: .2rem;
}
.contact-meta dd { margin: 0; font-size: .95rem; color: var(--ink); }
.contact-meta dd a { color: var(--blue); border-bottom: 1px solid var(--blue); padding-bottom: 1px; }
.contact-meta dd a:hover { color: var(--red); border-color: var(--red); }

/* -------------------------------------------------------------------------
   19. Formulários
   ------------------------------------------------------------------------- */
.form-plate {
    background: var(--paper);
    border: 1px solid var(--ink);
    outline: 1px solid var(--line);
    outline-offset: 5px;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: relative;
}
.form-plate .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}
.form-plate label {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-weight: 500;
}
.form-plate label .muted { color: var(--ink-3); text-transform: none; letter-spacing: .02em; }
.form-plate input,
.form-plate select,
.form-plate textarea {
    border: 1px solid var(--line);
    padding: .85rem 1rem;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    width: 100%;
    border-radius: 0;
    transition: border-color .18s, box-shadow .18s;
}
.form-plate input:focus,
.form-plate select:focus,
.form-plate textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 60, 110, .14);
}
.form-plate textarea { resize: vertical; min-height: 140px; }
.form-plate .form-note {
    font-family: var(--font-body);
    font-size: .84rem;
    color: var(--ink-3);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
}
.form-plate .form-note a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.form-plate button { align-self: flex-start; }

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.status-box {
    display: none;
    padding: 1rem 1.2rem;
    font-size: .92rem;
    border: 1px solid;
    background: var(--paper);
    margin-bottom: 1.2rem;
}
.status-box.success { display: block; border-color: var(--moss); color: var(--moss); }
.status-box.error { display: block; border-color: var(--red); color: var(--red); }

/* -------------------------------------------------------------------------
   20. Cabeçalho de página interior
   ------------------------------------------------------------------------- */
.page-hero {
    padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
    background-size: 14px 14px;
    mask-image: radial-gradient(ellipse 60% 100% at 92% 0%, rgba(0,0,0,.5), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 92% 0%, rgba(0,0,0,.5), transparent 70%);
    z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.4rem; }

/* -------------------------------------------------------------------------
   21. Diversos
   ------------------------------------------------------------------------- */
.not-found {
    min-height: 58vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 5rem 0;
}
.not-found h1 { margin: 1rem 0; }
.not-found p { color: var(--ink-2); max-width: 50ch; margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* -------------------------------------------------------------------------
   22. Animações de entrada — "desenhar", não "flutuar"
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s cubic-bezier(.25, .1, .25, 1), transform .6s cubic-bezier(.25, .1, .25, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* réguas que se desenham */
.draw-rule {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s cubic-bezier(.6, 0, .2, 1) .15s;
}
.draw-rule.is-visible { transform: scaleX(1); }

/* SVG técnico que se desenha ao carregar */
.draw-svg .draw {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    animation: drawline 1.6s cubic-bezier(.5, 0, .3, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
.draw-svg .fade-el {
    opacity: 0;
    animation: fadein .7s ease forwards;
    animation-delay: var(--d, .8s);
}
@keyframes fadein { to { opacity: 1; } }

/* -------------------------------------------------------------------------
   23. Responsivo
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero h1 { max-width: 18ch; }
    .sec-head { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
    .bp-feature { grid-template-columns: 1fr; }
    .bp-feature .bp-actions { flex-direction: row; flex-wrap: wrap; }
    .fig-duo { grid-template-columns: 1fr; }
    .method-strip { grid-template-columns: 1fr 1fr; }
    .method-step:nth-child(2) { border-right: 0; }
    .method-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .method-step .m-arrow { display: none; }
    .board-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
    .board-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .catalog-row { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
    .catalog-row p { grid-column: 2 / -1; margin-top: -.4rem; }
    .sheet-row { grid-template-columns: 1fr; gap: 1.75rem; }
    .cell-grid, .bp-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .duo-grid { grid-template-columns: 1fr; }
    .sheet-row.flip .sheet-fig { order: 0; }
    .doc-register .dr-head { display: none; }
    .doc-register a.dr-row { grid-template-columns: 4.5rem minmax(0, 1fr) 3rem; }
    .dr-row .dr-desc { grid-column: 2; }
    .dr-row .dr-rev { display: none; }
    .nota-box { grid-template-columns: 1fr; }
    .nota-box .nota-actions { justify-content: flex-start; }
    .titleblock { grid-template-columns: 1fr 1fr; }
    .titleblock .tb-cell:nth-child(5n) { border-right: 1px solid var(--line); }
    .titleblock .tb-cell:nth-child(2n+1) { border-right: 0; }
    .titleblock .tb-brand { grid-column: 1 / -1; grid-row: auto; border-right: 0 !important; }
}

@media (max-width: 760px) {
    body { font-size: 15.5px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: var(--paper);
        border: 1px solid var(--ink);
        outline: 1px solid var(--line);
        outline-offset: 4px;
        flex-direction: column;
        align-items: stretch;
        padding: .9rem;
        gap: .15rem;
        display: none;
        box-shadow: var(--shadow-plate);
    }
    .main-nav.is-open { display: flex; }
    .main-nav > a { padding: .8rem .9rem; }
    .main-nav > a::after { display: none; }
    .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: flex; }
    .lang-switch { margin: .5rem 0 0; justify-content: center; }
    .nav-portal { margin: .35rem 0 0; text-align: center; }

    .form-plate .form-grid { grid-template-columns: 1fr; }
    .spec-list > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; }
    .cell-grid, .bp-grid { grid-template-columns: 1fr; }
    .fig-strip { grid-template-columns: 1fr 1fr; }
    .method-strip { grid-template-columns: 1fr; }
    .method-step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .method-step:last-child { border-bottom: 0; }
    .board-grid { grid-template-columns: 1fr 1fr; }
    .board-cell { padding-right: .5rem; }
    .catalog-row { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; }
    .catalog-row .go { display: none; }
    .catalog-row p { grid-column: 2; }
    .catalog-row.open-row { padding-left: 1rem; padding-right: 1rem; margin-inline: -1rem; }
    .bp-feature { padding: 2rem 1.5rem; }
    .nota-box { padding: 2rem 1.5rem; }
    .stamp { width: 84px; height: 84px; top: -14px; right: -8px; }
    .dim-line { max-width: 100%; }
    .titleblock { grid-template-columns: 1fr; }
    .titleblock .tb-cell { border-right: 0 !important; }
    .hero-plate .plate-inner { padding: .9rem; }
    .plate-block { grid-template-columns: 1fr auto; }
    .plate-block > div:nth-child(3) { display: none; }
}

/* -------------------------------------------------------------------------
   24. Movimento reduzido e impressão
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal, .draw-rule { opacity: 1; transform: none; }
    .draw-svg .draw { stroke-dashoffset: 0; }
    .draw-svg .fade-el { opacity: 1; }
}

@media print {
    body::after, .site-header, .statusbar, .sheet-rails, .nota-box .nota-actions, form { display: none !important; }
    body { background: white; color: black; padding-bottom: 0; }
    .blueprint { background: white; color: black; border: 1px solid black; }
}
