/* =====================================================================
   Proposta v8 (local, ramo proposta-v8). Carrega em TODAS as páginas,
   sempre em último lugar, depois do tmi.css (identidade v2).

   O que faz: veste o site com a identidade v2 (tmi/identidade-v2/
   00-fundacao/DESIGN.md) sem mexer na estrutura nem no conteúdo da v7.
   · Tudo nasce do logo: o Ponto (camel, um por ecrã), a Diagonal a 63
     graus e o Canto. Nenhum outro grafismo.
   · Raio 0 em tudo; só o Ponto é círculo. Sem sombras, vidro, grão,
     brilhos nem linha fluida.
   · Mundo escuro contínuo (carvão) com superfícies claras onde ajudam a
     ler: o capítulo Make e o contacto na página inicial, as faixas de
     fecho nas páginas interiores, o corpo dos artigos do blog.
   · Legibilidade: o chão de 400 em texto pequeno vive na própria fonte
     (styles.css); o secundário sobre carvão é #9A9A9A (6,3:1).
   · Movimento: na direção da Diagonal, durações múltiplas de 160 ms, o
     Ponto pousa por último; "reduzir movimento" passa a fade curto.

   Organização: 1 superfícies e papéis · 2 base · 3 tipografia ·
   4 elementos · 5 componentes · 6 cabeçalho, rodapé e flutuantes ·
   7 páginas interiores · 8 página inicial · 9 movimento · 10 telemóvel
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. SUPERFÍCIES E PAPÉIS
   Os papéis da v2 (--tmi-*) mudam por superfície. As folhas antigas
   (styles, v3, v4, v4-site) leem outros nomes (--ink, --muted, --v3-*):
   a ponte volta a calculá-los em cada superfície, senão uma secção clara
   herdava o texto claro do carvão.
   --------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1199px) {
  :root { --tmi-margem: 32px; }
}

body.v8,
body.v8 :is(.v8-escuro, .post-cta, .cookie, .work-next, .v8-barra) {
  --tmi-fundo: #181818;
  --tmi-superficie: #333333;
  --tmi-texto: #E5E5E5;
  --tmi-texto-forte: #FFFFFF;
  --tmi-texto-2: #9A9A9A;
  --tmi-linha: #333333;
  --tmi-botao-fundo: #E5E5E5;
  --tmi-botao-texto: #181818;
  --v8-botao-hover-fundo: #FFFFFF;
  --v8-botao-hover-texto: #181818;
  --v8-seta-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23E5E5E5' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --v8-visto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

body.v8 :is(.tmi-claro, .post-body, .v8-form) {
  --tmi-fundo: #FFFFFF;
  --tmi-superficie: #E5E5E5;
  --tmi-texto: #181818;
  --tmi-texto-forte: #181818;
  --tmi-texto-2: #5C5C5C;
  --tmi-linha: #E5E5E5;
  --tmi-botao-fundo: #181818;
  --tmi-botao-texto: #FFFFFF;
  --v8-botao-hover-fundo: #181818;
  --v8-botao-hover-texto: #E5E5E5;
  --v8-seta-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23181818' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --v8-visto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

body.v8 :is(.tmi-nevoa, .section--deep:not(.work-hero), .related-posts, .tmi-modal__panel, .v8-raiox__folha, .v3-rule) {
  --tmi-fundo: #E5E5E5;
  --tmi-superficie: #FFFFFF;
  --tmi-texto: #181818;
  --tmi-texto-forte: #181818;
  --tmi-texto-2: #5C5C5C;
  --tmi-linha: #CFCFCF;
  --tmi-botao-fundo: #181818;
  --tmi-botao-texto: #FFFFFF;
  --v8-botao-hover-fundo: #181818;
  --v8-botao-hover-texto: #E5E5E5;
  --v8-seta-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23181818' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --v8-visto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* A ponte, recalculada em cada superfície (mesma lista das três regras acima) */
body.v8,
body.v8 :is(.v8-escuro, .post-cta, .cookie, .work-next, .v8-barra,
            .tmi-claro, .post-body, .v8-form,
            .tmi-nevoa, .section--deep:not(.work-hero), .related-posts, .tmi-modal__panel, .v8-raiox__folha, .v3-rule) {
  --ink: var(--tmi-texto);
  --paper: var(--tmi-fundo);
  --mist: var(--tmi-fundo);
  --line: var(--tmi-linha);
  --gray: var(--tmi-linha);
  --muted: var(--tmi-texto);
  --muted-2: var(--tmi-texto-2);
  --muted-dark: var(--tmi-texto-2);
  --gray-type: var(--tmi-texto-2);
  --camel-ink: var(--tmi-texto-2);
  --camel-text: var(--tmi-texto-forte);
  --fluid-stroke: transparent;
  --flow-bg: var(--tmi-fundo);
  --v3-bg: var(--tmi-fundo);
  --v3-bg-2: var(--tmi-fundo);
  --v3-bg-3: var(--tmi-fundo);
  --v3-line: var(--tmi-linha);
  --v3-text: var(--tmi-texto);
  --v3-muted: var(--tmi-texto);
  --v3-muted-2: var(--tmi-texto-2);
  color: var(--tmi-texto);
}
body.v8 :is(.v8-escuro, .post-cta, .cookie, .work-next, .v8-barra,
            .tmi-claro, .post-body, .v8-form,
            .tmi-nevoa, .section--deep:not(.work-hero), .related-posts, .tmi-modal__panel, .v8-raiox__folha, .v3-rule) {
  background: var(--tmi-fundo);
}


/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */

body.v8 {
  --v8-display: 'TMI Display', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tmi-fonte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: var(--tmi-margem);
  --v8-cabecalho: 72px;
  margin: 0;
  background: #181818;
  font-family: var(--tmi-fonte);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  caret-color: currentColor;
  accent-color: #E5E5E5;
}
html:has(body.v8) { scrollbar-color: #333333 #181818; scrollbar-width: thin; }

/* O ângulo reto é regra: nada arredondado, nada com sombra ou vidro.
   Só o Ponto é círculo (exceção logo abaixo). */
body.v8 *,
body.v8 *::before,
body.v8 *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.v8 .tmi-ponto { border-radius: 50% !important; }

/* O v1 sai inteiro: linha fluida, brilhos e faixas decorativas */
body.v8 :is(.fluid, .fluid-band, .scroll-cue, .rule, .v4-thread, .v3-rule > svg, .v3-fork svg) { display: none !important; }

body.v8 :is(.v8-hero__pecas, .v8-caso__img, .v8-fundador, .v4-fan, .work-pieces) img { height: auto; }
body.v8 svg { display: inline-block; }

body.v8 ::selection { background: #E5E5E5; color: #181818; }
body.v8 :is(.tmi-claro, .tmi-nevoa, .post-body, .section--deep:not(.work-hero)) ::selection { background: #181818; color: #FFFFFF; }

body.v8 :focus-visible {
  outline: 2px solid var(--tmi-texto-forte);
  outline-offset: 3px;
}

body.v8 .container {
  max-width: calc(1280px + 2 * var(--tmi-margem));
  padding-left: var(--tmi-margem);
  padding-right: var(--tmi-margem);
}
body.v8 :is(section[id], .metodo-label[id], div[id]) { scroll-margin-top: calc(var(--v8-cabecalho) + 16px); }

/* Composições alinhadas à esquerda, pela mesma vertical (Canto como âncora) */
body.v8 :is(.center, .sec-head, .cta-band, .hero, .blog-hero, .origin, .metodo-label, .banner, .closing, .post-cta, .related-posts .sec-head, .v3-rule) { text-align: left; }
body.v8 :is(.sec-head.center, .related-posts .sec-head, .mxauto, .founders--solo) { margin-left: 0; margin-right: 0; }
body.v8 :is(.hero__cta, .blog-filters, .post-share) { justify-content: flex-start; }
body.v8 :is(.hero__title, .hero__sub, .blog-hero h1, .blog-hero p, .cta-band .lead, .metodo-label p, .origin, .v3-rule .t2, .v3-rule .sub) { margin-left: 0; margin-right: 0; }
body.v8 :is(.about-hero, .svc-hero) :is(.h1, .lead) { margin-left: 0; margin-right: 0; }

body.v8 .skip {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 14px 20px;
  background: #E5E5E5; color: #181818;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: top 160ms var(--tmi-curva-decisao);
}
body.v8 .skip:focus { top: 16px; }


/* ---------------------------------------------------------------------
   3. TIPOGRAFIA
   Headline fina (300) com a palavra de força a 600; o itálico sai dos
   títulos. Nada abaixo de 400 em texto pequeno (garantido pela fonte).
   --------------------------------------------------------------------- */

body.v8 :is(h1, h2, .h1, .h2, .t2, .post-title) {
  font-family: var(--v8-display);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--tmi-texto-forte);
  text-wrap: balance;
}
body.v8 :is(h1, h2, h3, .h1, .h2, .t2, .post-title) :is(em, b, strong) {
  font-style: normal;
  font-weight: 600;
  color: inherit;
}
body.v8 :is(h3, h4, .h3) {
  font-family: var(--tmi-fonte);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--tmi-texto-forte);
}
body.v8 .h-display {
  font-family: var(--v8-display);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--tmi-texto-forte);
}
body.v8 :is(.hero__title .d, .h2 .d) { color: var(--tmi-texto-2); font-weight: inherit; }
body.v8 .hero__title .gray { color: var(--tmi-texto-2); }
body.v8 .pillar .pillar__t {
  font-family: var(--v8-display);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--tmi-texto-forte);
}

body.v8 :is(p, li, dd, dt, td, th, label, summary, small, figcaption, blockquote) { color: inherit; }
body.v8 :is(.lead, .sub, .hero__baseline) { color: var(--tmi-texto); font-weight: 400; }
body.v8 em { font-style: italic; }

/* Eyebrow: etiqueta por cima do título, marcada pelo Canto em esquina */
body.v8 :is(.eyebrow, .v8-eyebrow) {
  display: flex;
  align-items: flex-start;
  gap: .9em;
  margin: 0 0 24px;
  font-family: var(--tmi-fonte);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tmi-texto-2);
  text-align: left;
}
body.v8 :is(.eyebrow, .v8-eyebrow)::before {
  content: "";
  flex: none;
  width: calc(.95em / .545);
  height: .95em;
  background: var(--tmi-texto-forte);
  clip-path: polygon(0 0, 100% 0, 100% 38.17%, 18.25% 38.17%, 18.25% 100%, 0 100%);
  transform: translateY(-.3em);
}
/* Rótulos pequenos sem Canto (setor de um caso, passos numerados) */
body.v8 :is(.work-num, .post-card__cat, .post-meta .cat, .blog-hero .eyebrow) {
  font-family: var(--tmi-fonte);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tmi-texto-2);
}

/* Ligações de texto */
body.v8 :is(.tmi-link, .v3-link, .more, .origin__more, .case-back) {
  color: var(--tmi-texto-forte);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  border: 0;
  padding-bottom: 0;
  transition: text-decoration-thickness 160ms var(--tmi-curva-decisao);
}
body.v8 :is(.tmi-link, .v3-link, .more, .origin__more, .case-back):hover { text-decoration-thickness: 2px; color: var(--tmi-texto-forte); }
body.v8 :is(.prose, .post-body, .consent, .cookie, .v8-contacto__alt, .v8-setores__nota, .v3-soon) a {
  color: var(--tmi-texto-forte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
body.v8 :is(.prose, .post-body, .consent, .cookie) a:hover { text-decoration-thickness: 2px; }


/* ---------------------------------------------------------------------
   4. ELEMENTOS DA MARCA
   --------------------------------------------------------------------- */

/* Degrau a 63 graus entre o carvão e uma superfície clara. Fica sempre
   num div próprio (nunca por baixo de texto). */
body.v8 .v8-degrau {
  --tmi-diagonal-altura: 96px;
  --tmi-diagonal-posicao: 58%;
  position: relative;
  z-index: 1;
  margin: 0;
}
body.v8 .v8-degrau--branco { --tmi-diagonal-cor: #FFFFFF; }
/* 1px de sobreposição: sem isto o arredondamento dos píxeis deixava um fio entre o degrau e a secção */
body.v8 .v8-degrau:not(.tmi-diagonal--baixo) { margin-bottom: -1px; }
body.v8 .v8-degrau.tmi-diagonal--baixo { margin-top: -1px; }
body.v8 .v8-degrau--nevoa { --tmi-diagonal-cor: #E5E5E5; }

/* As faixas de fecho das páginas interiores (névoa) abrem com o mesmo degrau:
   o carvão entra pela esquerda e é cortado a 63 graus. */
body.v8 .section--deep:not(.work-hero) {
  position: relative;
  padding-top: calc(96px + 80px);
  border-top: 0;
}
body.v8 .section--deep:not(.work-hero)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 80px;
  background: #181818;
  clip-path: polygon(0 0, calc(42% + 80px * .51) 0, 42% 100%, 0 100%);
}

/* Fotografia: preto e branco, cantos retos */
body.v8 :is(.tmi-foto, .founder__photo img, .post-card__cover img, .post-cover img, .v3-founder img) {
  filter: grayscale(1) contrast(1.02);
}


/* ---------------------------------------------------------------------
   5. COMPONENTES
   --------------------------------------------------------------------- */

/* Botões: retângulo, rótulo em maiúsculas, seta horizontal que avança no hover */
body.v8 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--tmi-botao-fundo);
  background: var(--tmi-botao-fundo);
  color: var(--tmi-botao-texto);
  font-family: var(--tmi-fonte);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  transition:
    background-color 160ms var(--tmi-curva-decisao),
    color 160ms var(--tmi-curva-decisao),
    border-color 160ms var(--tmi-curva-decisao);
}
body.v8 .btn:is(:hover, :active) { transform: none; }
body.v8 .btn--primary:hover {
  background: var(--v8-botao-hover-fundo);
  border-color: var(--v8-botao-hover-fundo);
  color: var(--v8-botao-hover-texto);
}
body.v8 .btn--primary::after {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h18M13.5 5.5 20 12l-6.5 6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12h18M13.5 5.5 20 12l-6.5 6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms var(--tmi-curva-decisao);
}
body.v8 .btn--primary:is(:hover, :focus-visible)::after { transform: translateX(.2em); }
body.v8 .btn--ghost {
  background: transparent;
  border-color: var(--tmi-texto-forte);
  color: var(--tmi-texto-forte);
}
body.v8 .btn--ghost:hover {
  background: var(--tmi-texto-forte);
  border-color: var(--tmi-texto-forte);
  color: var(--tmi-fundo);
}
body.v8 .btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: .12em;
}
body.v8 .btn[disabled] { background: transparent; color: var(--tmi-texto-2); border-color: var(--tmi-linha); cursor: not-allowed; }
body.v8 .v8-acoes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; }

/* Etiquetas: contorno de 1px, cantos retos */
body.v8 :is(.tmi-etiqueta, .work-chips span, .tool__state, .tool li, .v3-chips span, .blog-filter, .post-share a) {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--tmi-linha);
  background: transparent;
  color: var(--tmi-texto);
  font-family: var(--tmi-fonte);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.v8 .tmi-etiqueta { border-color: currentColor; color: var(--tmi-texto-forte); }
body.v8 :is(.tmi-etiqueta--cheia, .tool__state.on, .blog-filter.active, .blog-filter:hover, .post-share a:hover) {
  background: var(--tmi-texto-forte);
  border-color: var(--tmi-texto-forte);
  color: var(--tmi-fundo);
}
body.v8 .tmi-etiqueta--suave { border-color: var(--tmi-linha); color: var(--tmi-texto-2); }
body.v8 .blog-filter { min-height: 44px; cursor: pointer; transition: background-color 160ms var(--tmi-curva-decisao), color 160ms var(--tmi-curva-decisao); }
body.v8 .post-share a { min-height: 44px; }

/* Cartões: superfície da secção com fio de 1px; sem levantar nem sombra */
body.v8 :is(.card, .svc2__card, .tool, .founder, .post-card, .v3-pains article) {
  background: var(--tmi-fundo);
  border: 1px solid var(--tmi-linha);
  transform: none !important;
  transition: border-color 160ms var(--tmi-curva-decisao);
}
body.v8 :is(.card, .svc2__card, .post-card):hover { border-color: var(--tmi-texto-forte); }
body.v8 .card { padding: 32px; }
body.v8 .card :is(p) { color: var(--tmi-texto); font-size: 16px; }
body.v8 :is(.card .num, .flow .num) {
  font-family: var(--v8-display);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--tmi-texto-forte);
  font-variant-numeric: tabular-nums;
}
body.v8 .flow::before { background: var(--tmi-linha); opacity: 1; height: 1px; }
body.v8 .flow p { color: var(--tmi-texto); }

/* Listas: o traço curto em vez do ponto (o Ponto não é bala) */
body.v8 :is(.prose li, .deliver li, .svc2__list li)::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 10px;
  height: 2px;
  background: var(--tmi-texto-2);
  color: transparent;
}
body.v8 :is(.prose li, .deliver li, .svc2__list li) { padding-left: 24px; color: var(--tmi-texto); }
body.v8 .next-steps li::before {
  background: var(--tmi-texto-forte);
  color: var(--tmi-fundo);
  font-weight: 700;
}

/* Perguntas nas páginas interiores: lista com fios, sinal desenhado */
body.v8 .faq { gap: 0; }
body.v8 .faq__item {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--tmi-linha);
  padding: 0;
}
body.v8 .faq__item:first-child { border-top: 1px solid var(--tmi-linha); }
body.v8 .faq__item summary { padding: 24px 0; font-size: 18px; font-weight: 600; color: var(--tmi-texto-forte); }
body.v8 .faq__item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
}
body.v8 .faq__item[open] summary::after {
  content: "";
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat;
}
body.v8 .faq__item p { color: var(--tmi-texto); font-size: 16px; max-width: 64ch; }

/* Formulários: campo retangular, rótulo em maiúsculas, erro sem cor nova */
body.v8 .field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tmi-texto-forte);
}
body.v8 .field :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--tmi-texto-2);
  background: var(--tmi-fundo);
  color: var(--tmi-texto-forte);
  font: 400 16px/1.4 var(--tmi-fonte);
  transition: border-color 160ms var(--tmi-curva-decisao);
}
body.v8 .field :is(input, select, textarea)::placeholder { color: var(--tmi-texto-2); opacity: 1; }
body.v8 .field :is(input, select, textarea):focus {
  outline: 1px solid var(--tmi-texto-forte);
  outline-offset: -2px;
  border-color: var(--tmi-texto-forte);
}
body.v8 .field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background: var(--tmi-fundo) var(--v8-seta-select) right 16px center / 16px 16px no-repeat;
  cursor: pointer;
}
body.v8 .field textarea { min-height: 128px; resize: vertical; }
body.v8 .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tmi-texto);
  cursor: pointer;
}
body.v8 .consent input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--tmi-texto-2);
  background: var(--tmi-fundo) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 160ms var(--tmi-curva-decisao), border-color 160ms var(--tmi-curva-decisao);
}
body.v8 .consent input:checked {
  background-color: var(--tmi-texto-forte);
  border-color: var(--tmi-texto-forte);
  background-image: var(--v8-visto);
}
body.v8 :is(.field--error input, .field--error textarea, .field--error select) {
  border: 2px solid var(--tmi-texto-forte) !important;
}
body.v8 .field__error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tmi-texto-forte);
}
body.v8 .field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--tmi-texto-forte);
  color: var(--tmi-fundo);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
body.v8 .consent.field--error { color: var(--tmi-texto-forte); }

/* Janela de sucesso ou erro do formulário */
body.v8 .tmi-modal__backdrop { background: rgba(24, 24, 24, .86); }
body.v8 .tmi-modal__panel { text-align: left; padding: 48px 32px 32px; border: 0; }
body.v8 .tmi-modal__icon {
  width: 48px; height: 48px; margin: 0 0 24px;
  background: #181818; color: #FFFFFF;
  font-size: 22px; font-weight: 700;
}
body.v8 .tmi-modal__title { font-size: 24px; font-weight: 600; color: var(--tmi-texto-forte); }
body.v8 .tmi-modal__body { color: var(--tmi-texto); font-size: 16px; }
body.v8 .tmi-modal__actions { justify-content: flex-start; }
body.v8 .tmi-modal__close { color: var(--tmi-texto); min-width: 44px; min-height: 44px; }


/* ---------------------------------------------------------------------
   6. CABEÇALHO, RODAPÉ, COOKIES, WHATSAPP
   --------------------------------------------------------------------- */

body.v8 .header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: #181818;
  border-bottom: 1px solid #333333;
  pointer-events: auto;
}
body.v8 .header .nav {
  height: var(--v8-cabecalho);
  width: auto;
  max-width: calc(1280px + 2 * var(--tmi-margem));
  margin: 0 auto;
  padding: 0 var(--tmi-margem);
}
body.v8 .nav__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #E5E5E5;
}
body.v8 .nav__logo .tmi-logo-svg { display: block; height: 28px; width: auto; }
body.v8 .nav__menu { gap: 32px; }
body.v8 .nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: #E5E5E5;
  opacity: 1;
  text-decoration: none;
  text-underline-offset: .5em;
  text-decoration-thickness: 1px;
}
body.v8 .nav__menu a:hover { opacity: 1; color: #FFFFFF; text-decoration-line: underline; }
body.v8 .nav__menu .nav__lang { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: #9A9A9A; }
body.v8 .nav__right { gap: 16px; }
body.v8 .nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
body.v8 .nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #E5E5E5;
  transition: transform 160ms var(--tmi-curva-decisao);
}
/* Fechar: as duas barras cruzam-se a 63 graus, o ângulo da Diagonal */
body.v8 .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(63deg); }
body.v8 .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-63deg); }

body.v8 .footer {
  background: #181818;
  border-top: 1px solid #333333;
  color: #9A9A9A;
  padding: 80px 0 32px;
}
body.v8 .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px 24px; }
body.v8 .footer .footer__logo { display: inline-flex; margin: 0 0 24px; color: #E5E5E5; }
body.v8 .footer .footer__logo .tmi-logo-svg { display: block; height: 32px; width: auto; }
body.v8 .footer :is(a, p) { font-size: 14px; font-weight: 400; color: #9A9A9A; margin-bottom: 12px; }
body.v8 .footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: .3em; }
body.v8 .footer .footer__h {
  margin: 0 0 16px;
  font-family: var(--tmi-fonte);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #E5E5E5;
}
body.v8 .footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #333333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 13px;
}
body.v8 .footer__assinatura { font-size: 12px; font-weight: 500; letter-spacing: .32em; color: #E5E5E5; }
body.v8 .footer__social { gap: 8px 24px; }
body.v8 .footer__social a { margin: 0; font-size: 13px; }

/* À direita: à esquerda ficam o texto e o botão do topo, que o aviso tapava. */
body.v8 .cookie {
  left: auto; right: var(--tmi-margem); bottom: 16px;
  width: calc(100% - 2 * var(--tmi-margem));
  max-width: 560px;
  margin: 0;
  padding: 24px;
  border: 1px solid #333333;
}
body.v8 .cookie p { font-size: 14px; font-weight: 400; line-height: 1.55; color: #E5E5E5; margin-bottom: 16px; }
body.v8 .cookie__curto { display: none; }
body.v8 .cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
body.v8 .cookie .btn { min-height: 44px; padding: 0 16px; font-size: 12px; white-space: nowrap; }
body.v8 .cookie .btn::after { display: none; }
body.v8 .cookie:not(.is-expanded) .cookie__save,
body.v8 .cookie.is-expanded .cookie__customize { display: none; }
body.v8 .cookie__toggles { background: transparent; border: 1px solid #333333; padding: 16px; gap: 16px; }
body.v8 .cookie__row label { font-size: 14px; font-weight: 600; color: #FFFFFF; }
body.v8 .cookie__row small { font-size: 13px; font-weight: 400; color: #9A9A9A; }
body.v8 .cookie__row input[type="checkbox"] {
  width: 40px; height: 24px;
  background: transparent;
  border: 1px solid #9A9A9A;
}
body.v8 .cookie__row input[type="checkbox"]::before {
  left: 3px; top: 3px; width: 16px; height: 16px;
  background: #9A9A9A;
  transition: transform 160ms var(--tmi-curva-decisao), background-color 160ms var(--tmi-curva-decisao);
}
body.v8 .cookie__row input[type="checkbox"]:checked { background: #E5E5E5; border-color: #E5E5E5; }
body.v8 .cookie__row input[type="checkbox"]:checked::before { background: #181818; transform: translateX(16px); }
body.v8 .cookie { transform: translateY(24px); transition: opacity 320ms var(--tmi-curva-decisao), transform 320ms var(--tmi-curva-decisao), display 320ms allow-discrete; }
body.v8 .cookie.show { transform: none; }

body.v8 .wa-float {
  width: 52px; height: 52px;
  background: #E5E5E5;
  color: #181818;
  border: 1px solid #181818;
  transform: none;
  transition: background-color 160ms var(--tmi-curva-decisao), bottom 320ms var(--tmi-curva-decisao);
}
body.v8 .wa-float:hover { background: #FFFFFF; transform: none; }
body.v8 .wa-float svg { width: 26px; height: 26px; fill: currentColor; }
body.v8 .wa-float__label {
  right: 64px;
  padding: 8px 12px;
  background: #181818;
  border: 1px solid #333333;
  font-size: 13px;
}


/* ---------------------------------------------------------------------
   7. PÁGINAS INTERIORES
   --------------------------------------------------------------------- */

body.v8 .section { padding: 128px 0; }
body.v8 :is(.section--mist, .section--dark) { background: #181818; border-top: 1px solid #333333; }
body.v8 .section--band { padding: 96px 0; }
body.v8 .sec-head { max-width: 760px; margin-bottom: 64px; }
body.v8 .sec-head .h2 + .lead,
body.v8 .sec-head .h1 + .lead { margin-top: 24px; }
body.v8 .lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 60ch; }

/* Topos das páginas de serviço e da página Sobre */
body.v8 :is(.about-hero, .svc-hero) { padding-top: 96px; padding-bottom: 96px; }
body.v8 :is(.about-hero, .svc-hero) .h1 { font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; }
body.v8 :is(.about-hero, .svc-hero) .lead { margin-top: 32px; max-width: 58ch; }
body.v8 .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* Página inicial em inglês (estrutura antiga): só a pele */
body.v8 .hero { padding-top: 96px; padding-bottom: 96px; }
body.v8 .hero__title { font-size: clamp(56px, 9vw, 128px); line-height: .94; }
body.v8 .pillar { border-top: 1px solid #333333; }
body.v8 .banner { border-top: 1px solid #333333; background: none; padding: 48px 0 0; }
body.v8 .banner .big { font-family: var(--v8-display); font-weight: 300; color: #FFFFFF; }

/* Cartões de serviço */
body.v8 .svc2 { gap: 24px; }
body.v8 .svc2__card { padding: 48px 40px; }
body.v8 .svc2__card h3,
body.v8 .svc2__card .h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; }
body.v8 .svc2__tag { color: var(--tmi-texto-forte); font-weight: 500; font-size: 18px; }
body.v8 .svc2__card > p { color: var(--tmi-texto); font-size: 16px; }
body.v8 .svc2__list li { font-size: 15px; }
body.v8 .svc2__card .more::after { display: block; }

/* Sobre */
body.v8 .origin p { color: var(--tmi-texto); font-size: 18px; }
body.v8 .origin p.first { color: #FFFFFF; font-size: 22px; }
body.v8 .founder { padding: 32px; gap: 24px; }
/* A fotografia é quadrada: a caixa também, para se ver inteira (a caixa alta deixava
   uma faixa cinzenta por baixo, que parecia um corte). */
body.v8 .founder__photo { width: 160px; height: 160px; background: #333333; }
body.v8 .founder__photo picture { display: block; width: 100%; height: 100%; }
body.v8 .founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.v8 .founder .role { color: var(--tmi-texto-2); letter-spacing: .28em; font-size: 12px; }
body.v8 .founder p { color: var(--tmi-texto); font-size: 16px; }
body.v8 .founder:hover .founder__photo img { filter: grayscale(1) contrast(1.02); }
body.v8 .signal { border-top: 1px solid var(--tmi-linha); padding-top: 24px; }
body.v8 .signal strong { color: var(--tmi-texto-forte); font-size: 18px; }
body.v8 .signal span { color: var(--tmi-texto); font-size: 15px; }

/* Faixa de fecho (névoa) */
body.v8 .cta-band .h2 { color: var(--tmi-texto-forte); max-width: 20ch; }
body.v8 .cta-band .lead { color: var(--tmi-texto); margin-top: 24px; margin-bottom: 32px; }

/* Trabalho e casos */
body.v8 .work-hero { padding: 96px 0 128px; background: #181818; }
body.v8 .work-hero .h1 { color: #FFFFFF; font-weight: 300; }
body.v8 .work-hero .lead { color: #E5E5E5; }
body.v8 .v8-trabalho-lista { padding-top: 64px; }
body.v8 .work-band { border-top-color: var(--tmi-linha); }
body.v8 .work-band h2 { font-weight: 300; }
body.v8 .work-band p { color: var(--tmi-texto); font-weight: 400; }
body.v8 .work-pieces figure { background: var(--tmi-superficie); }
body.v8 .work-next { padding: 64px 48px; margin: 32px 0 96px; }
body.v8 .work-next h2 { color: #FFFFFF; font-weight: 300; }
body.v8 .work-next p { color: #E5E5E5; }
body.v8 .tool { padding: 32px; }
body.v8 .tool h3 { font-weight: 600; }
body.v8 .tool p { color: var(--tmi-texto); }
body.v8 .tool li { color: var(--tmi-texto-2); }
body.v8 :is(.tools-note, .tools-extra) { color: var(--tmi-texto); }
body.v8 .case-step h2 { font-weight: 300; }
body.v8 .case-step p { color: var(--tmi-texto); }

/* Blog */
body.v8 .blog-hero { padding-top: 96px; padding-bottom: 64px; border-bottom: 0; }
body.v8 .blog-hero h1 { font-weight: 300; }
body.v8 .blog-hero p { color: #E5E5E5; max-width: 60ch; }
body.v8 .posts-grid { gap: 24px; }
body.v8 .post-card__cover { background: #333333; }
body.v8 .post-card__cover img,
body.v8 .post-card:hover .post-card__cover img { transform: none; transition: none; }
body.v8 .post-card__body { padding: 24px; }
body.v8 .post-card__title { font-size: 20px; font-weight: 600; color: var(--tmi-texto-forte); line-height: 1.3; }
body.v8 .post-card__excerpt { font-size: 15px; color: var(--tmi-texto); }
body.v8 .post-card__meta { color: var(--tmi-texto-2); font-size: 13px; }
body.v8 .post-card__meta .more,
body.v8 .post-card:hover .post-card__meta .more { color: var(--tmi-texto-forte); }
body.v8 .breadcrumbs,
body.v8 .breadcrumbs a,
body.v8 .post-meta { color: #9A9A9A; }
body.v8 .post-title { font-weight: 300; line-height: 1.06; letter-spacing: -.03em; }
body.v8 .post-lead { color: #E5E5E5; }
body.v8 .post-cover { background: #333333; }

/* O corpo dos artigos lê-se em branco: frases longas, carvão sobre branco */
body.v8 .post-body { padding: 96px 0 128px; }
body.v8 .post-body .prose p,
body.v8 .post-body .prose li { color: #181818; font-size: 18px; line-height: 1.7; }
body.v8 .post-body .prose :is(h2, h3) { color: #181818; }
body.v8 .post-body .prose blockquote {
  border-left: 1px solid #181818;
  padding-left: 24px;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #181818;
}
body.v8 .post-cta { padding: 48px 40px; }
body.v8 .post-cta h3 { font-family: var(--v8-display); font-size: 32px; font-weight: 300; color: #FFFFFF; }
body.v8 .post-cta p { color: #E5E5E5; }
body.v8 .related-posts { padding: 96px 0; }
body.v8 .related-posts .post-card { background: #FFFFFF; border-color: #FFFFFF; }
body.v8 .related-posts .post-card:hover { border-color: #181818; }

/* Texto legal e tabelas */
body.v8 .page-hero { border-bottom: 1px solid #333333; }
body.v8 .prose :is(h2, h3) { font-family: var(--tmi-fonte); font-weight: 600; letter-spacing: -.015em; color: var(--tmi-texto-forte); }
body.v8 .prose h2 { font-size: 24px; }
body.v8 .prose p { color: var(--tmi-texto); }
body.v8 .prose strong { color: var(--tmi-texto-forte); }
body.v8 .prose code { color: var(--tmi-texto-2); font-size: .92em; }
body.v8 .cookie-table { font-size: 14px; }
body.v8 .cookie-table th {
  background: transparent;
  color: var(--tmi-texto-forte);
  border: 0;
  border-bottom: 2px solid var(--tmi-texto-forte);
  font-weight: 600;
}
body.v8 .cookie-table td { border: 0; border-bottom: 1px solid var(--tmi-linha); color: var(--tmi-texto); }

/* Clínicas (estrutura v3): só a pele */
body.v8 .v3-cl-hero { padding-top: 96px; padding-bottom: 64px; }
body.v8 .v3-cl-hero h1 { font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
body.v8 .v3 .sub,
body.v8 .sub { color: var(--tmi-texto); font-weight: 400; }
body.v8 .v3-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
body.v8 .v3-hero__note { color: #9A9A9A; }
body.v8 .v3-chips { gap: 8px; }
body.v8 .v3-pains { gap: 24px; }
body.v8 .v3-pains article { padding: 32px; }
body.v8 .v3-pains p,
body.v8 .v3-do p { color: var(--tmi-texto); font-weight: 400; }
body.v8 .v3-xray__list .n {
  font-family: var(--v8-display);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
body.v8 .v3-xray__list p { color: var(--tmi-texto); }
body.v8 .v3-xray__note { color: #9A9A9A; }
body.v8 .v3-soon { color: var(--tmi-texto); }
body.v8 .v3-soon b {
  padding: 8px 12px;
  background: #FFFFFF;
  color: #181818;
  font-size: 12px;
  letter-spacing: .2em;
}
body.v8 .v3-rule { padding: 96px 64px; border: 0; }
body.v8 .v3-rule .t2 { max-width: 18ch; color: #181818; }
body.v8 .v3-rule .sub { margin-top: 24px; color: #181818; }
body.v8 .v3 .v3-sec { padding-top: 128px; padding-bottom: 128px; }


/* ---------------------------------------------------------------------
   8. PÁGINA INICIAL
   Grelha de 12 colunas, medianiz de 24 px, tudo em múltiplos de 16.
   --------------------------------------------------------------------- */

body.v8 .v8-hero,
body.v8 .v8-setores,
body.v8 .v8-cap,
body.v8 .v8-fundador,
body.v8 .v8-regra,
body.v8 .v8-faq,
body.v8 .v8-contacto { position: relative; }

/* 8.1 Primeiro ecrã */
body.v8 .v8-hero { padding: 64px 0 96px; }
body.v8 .v8-hero .eyebrow { margin-bottom: 32px; }
body.v8 .v8-hero__tese {
  margin: 0;
  font-size: clamp(44px, 6.7vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: #FFFFFF;
  text-wrap: initial;
}
body.v8 .v8-hero__tese > span { display: block; padding-bottom: .04em; }
body.v8 .v8-hero__tese em { font-weight: 600; }
body.v8 .v8-hero__linha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  margin-top: 56px;
}
/* O texto começa à altura do topo das peças: a linha de prova fica ao nível da prova */
body.v8 .v8-hero__texto { grid-column: 1 / span 4; }
body.v8 .v8-hero__prova {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #FFFFFF;
}
body.v8 .v8-hero__sub {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #E5E5E5;
  max-width: 40ch;
}
body.v8 .v8-hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
body.v8 .v8-hero__nota { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: #9A9A9A; max-width: 44ch; }
body.v8 .v8-hero__nota b { color: #E5E5E5; font-weight: 600; }
body.v8 .v8-hero__pecas {
  grid-column: 5 / -1;
  padding-left: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  list-style: none;
}
body.v8 .v8-hero__pecas a { display: block; color: inherit; text-decoration: none; }
body.v8 .v8-hero__pecas img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #333333; }
body.v8 .v8-legenda { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 14px; line-height: 1.35; color: #E5E5E5; }
body.v8 .v8-legenda b { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #9A9A9A; }
body.v8 .v8-hero__pecas a:hover .v8-legenda { color: #FFFFFF; text-decoration: underline; text-underline-offset: .3em; }

/* 8.2 Setores */
body.v8 .v8-setores { padding: 80px 0 112px; border-top: 1px solid #333333; }
body.v8 .v8-setores__titulo { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; max-width: 24ch; }
body.v8 .v8-setores__lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #333333;
}
body.v8 .v8-setores__lista li + li { border-left: 1px solid #333333; }
body.v8 .v8-setores__lista a { display: block; padding: 32px 24px 8px; color: inherit; text-decoration: none; }
body.v8 .v8-setores__lista li:first-child a { padding-left: 0; }
body.v8 .v8-setores__lista b {
  display: inline-block;
  font-family: var(--v8-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  transition: text-decoration-color 160ms var(--tmi-curva-decisao);
}
body.v8 .v8-setores__lista a:is(:hover, :focus-visible) b { text-decoration-color: currentColor; }
body.v8 .v8-setores__lista span { display: block; margin-top: 12px; font-size: 14px; color: #9A9A9A; }
body.v8 .v8-setores__nota { margin: 40px 0 0; font-size: 16px; color: #E5E5E5; }

/* 8.3 Capítulos: a palavra de força fica presa, a prova passa */
body.v8 .v8-cap { padding: 128px 0; border-top: 1px solid #333333; }
body.v8 .v8-cap--claro { border-top: 0; padding: 48px 0 96px; }
body.v8 .v8-cap__grelha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
body.v8 .v8-cap__rail { grid-column: 1 / span 5; position: sticky; top: calc(var(--v8-cabecalho) + 48px); align-self: start; }
body.v8 .v8-cap__palavra {
  margin: 0;
  font-family: var(--v8-display);
  font-size: clamp(64px, 7.4vw, 112px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--tmi-texto-forte);
}
body.v8 .v8-cap__corpo { grid-column: 6 / -1; min-width: 0; }
body.v8 .v8-cap__corpo > h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; max-width: 20ch; }
/* A palavra de força vai sempre para a segunda linha: o equilíbrio automático
   partia "perceber o / que tens" e deixava uma palavra forte órfã. */
body.v8 :is(.v8-cap__corpo > h2, .v8-contacto h2, .v8-setores__titulo) em { display: block; }
body.v8 .v8-cap__lead { margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: var(--tmi-texto); max-width: 52ch; }

body.v8 .v8-servico {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--tmi-linha);
}
body.v8 .v8-servico h3 { margin: 0; font-size: 24px; letter-spacing: -.015em; }
body.v8 .v8-servico__lead { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: var(--tmi-texto); }
body.v8 .v8-servico ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tmi-linha); }
body.v8 .v8-servico li { padding: 12px 0; border-bottom: 1px solid var(--tmi-linha); font-size: 16px; line-height: 1.5; }
body.v8 .v8-servico__pe {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  margin: 0;
  font-size: 14px;
  color: var(--tmi-texto-2);
}

/* Raio-X: a oferta de entrada, enquadrada pelos dois Cantos */
body.v8 .v8-raiox {
  --tmi-moldura-tamanho: 48px;
  --tmi-moldura-folga: 16px;
  --tmi-moldura-cor: #E5E5E5;
  margin-top: 112px;
}
body.v8 .v8-raiox__folha { padding: 48px; }
body.v8 .v8-raiox h3 {
  margin: 0;
  font-family: var(--v8-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
}
body.v8 .v8-raiox__folha > p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; max-width: 50ch; }
body.v8 .v8-raiox ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
body.v8 .v8-raiox li { padding-top: 16px; border-top: 2px solid #181818; }
body.v8 .v8-raiox li b { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: #181818; }
body.v8 .v8-raiox li span { display: block; font-size: 15px; line-height: 1.55; color: #181818; }
body.v8 .v8-raiox__acao { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
body.v8 .v8-raiox__acao small { font-size: 14px; line-height: 1.5; color: #5C5C5C; max-width: 44ch; }

/* Make: casos em grelha, a primeira peça cortada pela Diagonal */
body.v8 .v8-casos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 24px;
  margin-top: 56px;
}
body.v8 .v8-casos a { display: block; color: inherit; text-decoration: none; }
body.v8 .v8-caso__img { overflow: hidden; background: #E5E5E5; }
body.v8 .v8-caso__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
body.v8 .v8-casos a:first-child .v8-caso__img {
  --corte: 64px;
  clip-path: polygon(var(--corte) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--corte) * 1.96));
}
body.v8 .v8-caso__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
body.v8 .v8-caso__meta b { display: inline-flex; align-items: center; gap: .5em; font-size: 18px; font-weight: 600; color: var(--tmi-texto-forte); }
body.v8 .v8-caso__meta b .tmi-seta { font-size: 16px; opacity: 0; transform: translate(-4px, 4px); transition: opacity 160ms var(--tmi-curva-decisao), transform 160ms var(--tmi-curva-decisao); }
body.v8 .v8-casos a:is(:hover, :focus-visible) .tmi-seta { opacity: 1; transform: none; }
body.v8 .v8-casos a:is(:hover, :focus-visible) b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
body.v8 .v8-caso__meta i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--tmi-texto-2); white-space: nowrap; }
body.v8 .v8-casos p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--tmi-texto); max-width: 40ch; }
body.v8 .v8-mais { margin: 56px 0 0; }

/* Impact: ferramentas próprias, em lista */
body.v8 .v8-ferramentas { margin-top: 112px; }
body.v8 .v8-ferramentas h3 {
  margin: 0;
  font-family: var(--v8-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 22ch;
}
body.v8 .v8-ferramentas > p { margin: 16px 0 0; font-size: 17px; max-width: 50ch; }
body.v8 .v8-ferramentas dl { margin: 32px 0 0; border-top: 1px solid #333333; }
body.v8 .v8-ferramentas dl > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid #333333;
}
body.v8 .v8-ferramentas dt { font-size: 18px; font-weight: 600; line-height: 1.3; color: #FFFFFF; }
body.v8 .v8-ferramentas dd { margin: 0; font-size: 15px; line-height: 1.55; }
body.v8 .v8-ferramentas dd.tmi-etiqueta { justify-self: end; align-self: center; font-size: 12px; letter-spacing: .16em; padding: 6px 10px; }
body.v8 .v8-ia { margin: 32px 0 0; font-size: 15px; line-height: 1.6; color: #9A9A9A; max-width: 62ch; }

/* 8.4 Fundador */
body.v8 .v8-fundador { padding: 128px 0; border-top: 1px solid #333333; }
body.v8 .v8-fundador__grelha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
body.v8 .v8-fundador figure {
  --tmi-moldura-cor: #E5E5E5;
  --tmi-moldura-tamanho: 48px;
  grid-column: 1 / span 4;
  margin: 0;
}
body.v8 .v8-fundador figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
body.v8 .v8-fundador__texto { grid-column: 6 / -1; }
body.v8 .v8-fundador h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; }
body.v8 .v8-fundador__texto > p:not(.eyebrow) { margin: 24px 0 0; font-size: 17px; line-height: 1.65; max-width: 52ch; }
body.v8 .v8-citacao {
  margin: 40px 0 0;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FFFFFF;
  max-width: 34em;
}
body.v8 .v8-citacao b { font-weight: 700; }
body.v8 .v8-citacao cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  color: #9A9A9A;
}
body.v8 .v8-fundador__texto > .v8-fundador__link { margin-top: 32px; font-size: 16px; }

/* 8.5 Regra da casa */
body.v8 .v8-regra { padding: 128px 0; border-top: 1px solid #333333; overflow: hidden; }
body.v8 .v8-regra__grelha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
}
body.v8 .v8-regra__grelha > div { grid-column: 1 / span 9; }
body.v8 .v8-regra h2 { margin: 0; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
body.v8 .v8-regra p { margin: 32px 0 0; font-size: 18px; line-height: 1.6; max-width: 50ch; }
body.v8 .v8-regra__traco {
  grid-column: 11 / -1;
  justify-self: end;
  --tmi-traco-altura: 256px;
  --tmi-traco-espessura: 48px;
  --tmi-traco-cor: #E5E5E5;
}

/* 8.6 Perguntas */
body.v8 .v8-faq { padding: 128px 0 160px; border-top: 1px solid #333333; }
body.v8 .v8-faq__grelha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
body.v8 .v8-faq__grelha > div:first-child { grid-column: 1 / span 5; }
body.v8 .v8-faq__lista { grid-column: 6 / -1; }
body.v8 .v8-faq h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; max-width: 14ch; }
body.v8 .v8-faq details { border-bottom: 1px solid #333333; interpolate-size: allow-keywords; }
body.v8 .v8-faq details:first-child { border-top: 1px solid #333333; }
body.v8 .v8-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
  list-style: none;
  cursor: pointer;
}
body.v8 .v8-faq summary::-webkit-details-marker { display: none; }
body.v8 .v8-mais-menos { position: relative; flex: none; width: 16px; height: 16px; }
body.v8 .v8-mais-menos::before,
body.v8 .v8-mais-menos::after { content: ""; position: absolute; background: currentColor; }
body.v8 .v8-mais-menos::before { left: 0; right: 0; top: 7px; height: 2px; }
body.v8 .v8-mais-menos::after { top: 0; bottom: 0; left: 7px; width: 2px; transition: transform 160ms var(--tmi-curva-decisao); }
body.v8 .v8-faq details[open] .v8-mais-menos::after { transform: scaleY(0); }
body.v8 .v8-faq details p { margin: 0; padding: 0 0 24px; font-size: 16px; line-height: 1.65; max-width: 60ch; }
body.v8 .v8-faq details::details-content {
  height: 0;
  overflow: clip;
  transition: height 320ms var(--tmi-curva-decisao), content-visibility 320ms allow-discrete;
}
body.v8 .v8-faq details[open]::details-content { height: auto; }

/* 8.7 Contacto (névoa) */
body.v8 .v8-contacto { padding: 48px 0 128px; }
body.v8 .v8-contacto__grelha {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
body.v8 .v8-contacto__texto { grid-column: 1 / span 5; }
body.v8 .v8-contacto h2 { margin: 0; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
body.v8 .v8-contacto__texto > p:not(.eyebrow):not(.v8-contacto__alt) { margin: 24px 0 32px; font-size: 18px; line-height: 1.6; max-width: 36ch; }
body.v8 .v8-contacto__alt { margin: 32px 0 0; font-size: 15px; line-height: 1.9; color: #5C5C5C; }
body.v8 .v8-form { grid-column: 7 / -1; display: grid; gap: 24px; padding: 40px; }
body.v8 .v8-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.v8 .v8-form .btn { width: 100%; justify-content: space-between; }

/* 8.8 Barra do telemóvel (só abaixo de 900 px) */
body.v8 .v8-barra { display: none; }


/* ---------------------------------------------------------------------
   9. MOVIMENTO
   Direção da Diagonal: x = -0,51 × y. Durações 160, 320, 480, 800 ms.
   Primeiro a estrutura, depois a ação, por fim o Ponto.
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* O primeiro ecrã entra uma vez, ao carregar */
  body.v8 .v8-in {
    animation: tmi-entra var(--tmi-dur-medio) var(--tmi-curva-decisao) both;
    animation-delay: calc(var(--i, 0) * 160ms);
  }
  /* O Ponto pousa depois de tudo parar: último atraso (640) + 480 + pausa 320 */
  body.v8 .v8-ponto {
    animation: tmi-pousa var(--tmi-dur-curto) var(--tmi-curva-decisao) both;
    animation-delay: 1440ms;
    transform-origin: 50% 100%;
  }

  /* Ao descer: blocos entram pela Diagonal; fotos e palavras revelam-se
     com um bordo a 63 graus. Só existe se o script correr (v8-motion). */
  .v8-motion body.v8 [data-v8] {
    opacity: 0;
    transform: translate(calc(var(--tmi-mov-d) * -.51), var(--tmi-mov-d));
    transition: opacity var(--tmi-dur-medio) var(--tmi-curva-decisao), transform var(--tmi-dur-medio) var(--tmi-curva-decisao);
  }
  .v8-motion body.v8 [data-v8].is-in { opacity: 1; transform: none; }
  .v8-motion body.v8 [data-v8] .v8-ponto-regra { transform: scale(0); transform-origin: 50% 100%; }
  .v8-motion body.v8 [data-v8].is-in .v8-ponto-regra {
    transform: none;
    transition: transform var(--tmi-dur-curto) var(--tmi-curva-decisao) calc(var(--tmi-dur-medio) + var(--tmi-pausa-ponto));
  }
  .v8-motion body.v8 :is([data-v8-foto], [data-v8-palavra]) {
    -webkit-mask-image: linear-gradient(var(--tmi-diagonal-gradiente), #000 47%, transparent 53%);
            mask-image: linear-gradient(var(--tmi-diagonal-gradiente), #000 47%, transparent 53%);
    -webkit-mask-size: 300% 100%;
            mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
  }
  .v8-motion body.v8 [data-v8-foto].is-in { animation: tmi-revela var(--tmi-dur-medio) var(--tmi-curva-corte) both; }
  .v8-motion body.v8 [data-v8-palavra].is-in { animation: tmi-revela var(--tmi-dur-longo) var(--tmi-curva-corte) both; }

  /* Páginas interiores: o .reveal antigo passa a entrar pela Diagonal */
  @media (scripting: enabled) {
    body.v8 .reveal {
      transform: translate(calc(var(--tmi-mov-d) * -.51), var(--tmi-mov-d));
      transition: opacity var(--tmi-dur-medio) var(--tmi-curva-decisao), transform var(--tmi-dur-medio) var(--tmi-curva-decisao);
    }
    body.v8 .reveal.in { transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v8 :is(.v8-in, .v8-ponto) { animation: tmi-aparece var(--tmi-dur-instante) linear both; }
  body.v8 .v8-mais-menos::after,
  body.v8 .nav__toggle span,
  body.v8 .btn--primary::after,
  body.v8 .v8-caso__meta b .tmi-seta { transition: none; }
  body.v8 .v8-faq details::details-content { transition: none; }
}

@keyframes vt-in { from { opacity: 0; translate: -5px 10px; } }


/* ---------------------------------------------------------------------
   10. TELEMÓVEL E TABLET
   --------------------------------------------------------------------- */

@media (max-width: 899px) {
  body.v8 { --v8-cabecalho: 64px; }

  /* Menu: uma folha de carvão por baixo do cabeçalho */
  body.v8 .nav__toggle { display: flex; }
  body.v8 .nav__logo .tmi-logo-svg { height: 24px; }
  body.v8 .nav__right { gap: 8px; }
  body.v8 .nav__right .btn--sm { padding: 0 12px; }
  body.v8 .nav__menu { display: none; }
  body.v8 .nav__menu.open {
    display: flex;
    position: fixed;
    top: var(--v8-cabecalho);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--tmi-margem) 40px;
    background: #181818;
    border: 0;
    border-top: 1px solid #333333;
    overflow-y: auto;
    opacity: 1;
    transform: none;
    filter: none;
  }
  body.v8 .nav__menu.open a {
    width: auto;
    padding: 16px 0;
    border-bottom: 1px solid #333333;
    font-family: var(--v8-display);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #FFFFFF;
    text-decoration: none;
  }
  body.v8 .nav__menu.open .nav__lang {
    margin-top: 24px;
    padding: 12px 0;
    border: 0;
    font-family: var(--tmi-fonte);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .28em;
    color: #9A9A9A;
  }
  @media (prefers-reduced-motion: no-preference) {
    body.v8 .nav__menu.open a { animation: tmi-entra var(--tmi-dur-curto) var(--tmi-curva-decisao) both; }
    body.v8 .nav__menu.open a:nth-child(2) { animation-delay: 40ms; }
    body.v8 .nav__menu.open a:nth-child(3) { animation-delay: 80ms; }
    body.v8 .nav__menu.open a:nth-child(4) { animation-delay: 120ms; }
    body.v8 .nav__menu.open a:nth-child(5) { animation-delay: 160ms; }
  }

  body.v8 .footer { padding: 56px 0 104px; }
  body.v8 .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  body.v8 .footer__top > div:first-child,
  body.v8 .footer__top > div:last-child { grid-column: 1 / -1; }
  body.v8 .footer__bottom { margin-top: 40px; flex-direction: column; align-items: flex-start; }

  body.v8 .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 12px 14px; }
  body.v8 .cookie p { font-size: 12.5px; line-height: 1.45; margin-bottom: 10px; }
  body.v8 .cookie__longo { display: none; }
  body.v8 .cookie__curto { display: inline; }
  /* Aceitar e Rejeitar lado a lado, com o mesmo peso; Personalizar é uma
     ligação por baixo. Assim o aviso fica baixo e não tapa o botão do topo. */
  body.v8 .cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body.v8 .cookie__btns [data-cookie="accept"] { order: 1; }
  body.v8 .cookie__btns [data-cookie="reject"] { order: 2; }
  body.v8 .cookie__btns :is(.cookie__customize, .cookie__save) { order: 3; grid-column: 1 / -1; }
  body.v8 .cookie .btn { width: 100%; padding: 0 8px; }
  body.v8 .cookie .cookie__customize { min-height: 32px; background: transparent; border: 0; color: #E5E5E5;
    text-decoration: underline; text-underline-offset: 3px; letter-spacing: .06em; }

  body.v8 .section { padding: 64px 0; }
  body.v8 .section--deep:not(.work-hero) { padding-top: calc(48px + 48px); }
  body.v8 .section--deep:not(.work-hero)::before { height: 48px; clip-path: polygon(0 0, calc(42% + 48px * .51) 0, 42% 100%, 0 100%); }
  body.v8 .sec-head { margin-bottom: 40px; }
  body.v8 :is(.about-hero, .svc-hero, .v3-cl-hero, .hero) { padding-top: 48px; padding-bottom: 56px; }
  body.v8 .blog-hero { padding-top: 56px; padding-bottom: 40px; }
  body.v8 .svc2__card { padding: 32px 24px; }
  body.v8 .work-hero { padding: 56px 0 64px; }
  body.v8 .work-next { padding: 40px 24px; }
  body.v8 .post-body { padding: 56px 0 72px; }
  body.v8 .post-body .prose p,
  body.v8 .post-body .prose li { font-size: 17px; }
  body.v8 .post-cta { padding: 32px 24px; }
  body.v8 .v3-rule { padding: 48px 24px; }
  body.v8 .v3 .v3-sec { padding-top: 64px; padding-bottom: 64px; }

  /* Página inicial */
  body.v8 .v8-degrau { --tmi-diagonal-altura: 48px; }
  body.v8 .v8-hero { padding: 24px 0 56px; }
  body.v8 .v8-hero .eyebrow { margin-bottom: 16px; }
  body.v8 .v8-hero__tese { font-size: clamp(40px, 11.4vw, 64px); line-height: 1.02; }
  body.v8 .v8-hero__linha { display: block; margin-top: 24px; }
  body.v8 .v8-hero__prova { font-size: 20px; }
  /* No telemóvel o botão sobe para logo depois da frase de benefício, para ficar
     à vista no primeiro ecrã mesmo com o aviso de cookies aberto. A explicação
     longa desce para depois da nota do Raio-X. Só muda a ordem visual. */
  body.v8 .v8-hero__texto { display: flex; flex-direction: column; }
  body.v8 .v8-hero__acoes { order: 1; }
  body.v8 .v8-hero__nota { order: 2; }
  body.v8 .v8-hero__sub { order: 3; font-size: 17px; margin-top: 24px; }
  body.v8 .v8-hero__acoes { flex-wrap: nowrap; align-items: center; gap: 12px; margin-top: 16px; }
  body.v8 .v8-hero__acoes .btn--primary { flex: 1 1 auto; min-width: 0; padding: 0 16px; justify-content: space-between; }
  body.v8 .v8-hero__acoes .btn--ghost {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .4em;
    letter-spacing: .1em;
  }
  body.v8 .v8-hero__pecas { gap: 8px; margin-top: 32px; padding-left: 0; }
  body.v8 .v8-legenda { margin-top: 8px; }
  body.v8 .v8-legenda b { font-size: 12px; letter-spacing: .16em; }
  /* O nome do cliente sai de vista no telemóvel (não cabe), mas continua a ser lido */
  body.v8 .v8-legenda__nome { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  body.v8 .v8-setores { padding: 48px 0 56px; }
  body.v8 .v8-setores__titulo { font-size: 28px; }
  body.v8 .v8-setores__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  body.v8 .v8-setores__lista li + li { border-left: 0; }
  body.v8 .v8-setores__lista li:nth-child(even) { border-left: 1px solid #333333; }
  body.v8 .v8-setores__lista li:nth-child(n+3) { border-top: 1px solid #333333; }
  body.v8 .v8-setores__lista a { padding: 20px 16px 20px; }
  body.v8 .v8-setores__lista li:nth-child(odd) a { padding-left: 0; }
  body.v8 .v8-setores__lista b { font-size: 26px; }
  body.v8 .v8-setores__lista span { margin-top: 6px; font-size: 13px; }
  body.v8 .v8-setores__nota { margin-top: 24px; font-size: 15px; }

  body.v8 .v8-cap { padding: 64px 0; }
  body.v8 .v8-cap--claro { padding: 24px 0 56px; }
  body.v8 .v8-cap__grelha { display: block; }
  body.v8 .v8-cap__rail { position: static; margin-bottom: 24px; }
  body.v8 .v8-cap__palavra { font-size: clamp(64px, 20vw, 88px); }
  body.v8 .v8-cap__corpo > h2 { font-size: 32px; }
  body.v8 .v8-cap__lead { font-size: 17px; margin-top: 16px; }
  body.v8 .v8-servico { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; }
  body.v8 .v8-raiox { margin-top: 64px; --tmi-moldura-tamanho: 32px; --tmi-moldura-folga: 8px; }
  body.v8 .v8-raiox__folha { padding: 32px 20px; }
  body.v8 .v8-raiox ul { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  body.v8 .v8-raiox__acao .btn { width: 100%; justify-content: space-between; }

  body.v8 .v8-casos {
    display: flex;
    gap: 16px;
    margin: 32px calc(var(--tmi-margem) * -1) 0;
    padding: 0 var(--tmi-margem) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--tmi-margem);
    scrollbar-width: none;
  }
  body.v8 .v8-casos::-webkit-scrollbar { display: none; }
  body.v8 .v8-casos a { flex: 0 0 80%; scroll-snap-align: start; }
  body.v8 .v8-casos a:first-child .v8-caso__img { --corte: 40px; }
  body.v8 .v8-caso__meta b .tmi-seta { opacity: 1; transform: none; }
  body.v8 .v8-mais { margin-top: 32px; }

  body.v8 .v8-ferramentas { margin-top: 64px; }
  body.v8 .v8-ferramentas dl > div { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 0; }
  body.v8 .v8-ferramentas dt { grid-column: 1; }
  body.v8 .v8-ferramentas dd.tmi-etiqueta { grid-column: 2; grid-row: 1; }
  body.v8 .v8-ferramentas dd:not(.tmi-etiqueta) { grid-column: 1 / -1; }

  body.v8 .v8-fundador { padding: 64px 0; }
  body.v8 .v8-fundador__grelha { display: block; }
  body.v8 .v8-fundador figure { width: 55%; max-width: 240px; margin: 8px 0 48px 8px; --tmi-moldura-tamanho: 32px; --tmi-moldura-folga: 8px; }
  body.v8 .v8-fundador h2 { font-size: 32px; }
  body.v8 .v8-citacao { font-size: 15px; letter-spacing: .14em; margin-top: 32px; }

  body.v8 .v8-regra { padding: 64px 0; }
  body.v8 .v8-regra__grelha { display: block; }
  body.v8 .v8-regra h2 { font-size: clamp(36px, 10vw, 48px); }
  body.v8 .v8-regra p { font-size: 17px; margin-top: 24px; }
  body.v8 .v8-regra__traco { display: none; }

  body.v8 .v8-faq { padding: 64px 0 80px; }
  body.v8 .v8-faq__grelha { display: block; }
  body.v8 .v8-faq h2 { font-size: 32px; margin-bottom: 32px; }
  body.v8 .v8-faq summary { padding: 20px 0; font-size: 17px; }

  body.v8 .v8-contacto { padding: 24px 0 72px; }
  body.v8 .v8-contacto__grelha { display: block; }
  body.v8 .v8-contacto h2 { font-size: 40px; }
  body.v8 .v8-contacto__texto .btn { width: 100%; justify-content: space-between; }
  body.v8 .v8-contacto__alt { margin-top: 24px; }
  body.v8 .v8-form { margin-top: 40px; padding: 24px 16px; gap: 20px; }
  body.v8 .v8-form .row { grid-template-columns: 1fr; gap: 20px; }

  body.v8 .v8-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    padding: 12px var(--tmi-margem) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #333333;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 320ms var(--tmi-curva-decisao), visibility 0s linear 320ms;
  }
  body.v8 .v8-barra.is-on { transform: none; visibility: visible; transition: transform 320ms var(--tmi-curva-decisao), visibility 0s; }
  body.v8 .v8-barra p { margin: 0; font-size: 13px; line-height: 1.3; color: #9A9A9A; }
  body.v8 .v8-barra p b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #FFFFFF; }
  body.v8.v8-barra-on .wa-float { bottom: 84px; }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  body.v8 .v8-barra,
  body.v8 .v8-barra.is-on { transition: none; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  body.v8 .v8-hero__texto { grid-column: 1 / span 6; }
  body.v8 .v8-hero__pecas { grid-column: 7 / -1; gap: 16px; padding-left: 0; }
  body.v8 .v8-cap__rail { grid-column: 1 / span 4; }
  body.v8 .v8-cap__corpo { grid-column: 5 / -1; }
  body.v8 .v8-raiox ul { grid-template-columns: 1fr; gap: 16px; }
  body.v8 .v8-form { grid-column: 6 / -1; }
  body.v8 .v8-contacto__texto { grid-column: 1 / span 5; }
}

/* "Raio-X" nunca parte no hífen */
body.v8 :is(.v8-raiox h3 em, .v8-contacto h2 em, .v4-xray h3 em) { white-space: nowrap; }
body.v8 .v8-nobr { white-space: nowrap; }

/* A citação em maiúsculas (página inglesa): a palavra-chave a 700, sem cor */
body.v8 :is(.section--dark, .section--band, .banner, .hero) { --camel-text: var(--tmi-texto-forte); --fluid-stroke: transparent; }
body.v8 .quote { font-weight: 400; letter-spacing: .18em; color: var(--tmi-texto-forte); text-align: left; margin-left: 0; }
body.v8 .quote em { font-style: normal; font-weight: 700; color: inherit; }
body.v8 .v8-obrigado { width: 100%; }
body.v8 .v8-obrigado > * { max-width: 680px; }

/* Com o menu do telemóvel aberto, a página por trás não desliza e o WhatsApp sai do caminho */
html:has(body.v8 .nav__menu.open) { overflow: hidden; }
body.v8:has(.nav__menu.open) :is(.wa-float, .v8-barra) { visibility: hidden; }

/* A seta das ligações de texto é a mesma dos botões: a Diagonal com o Canto na ponta */
body.v8 .v8-seta-link { margin-left: .4em; vertical-align: -.12em; font-size: 1em; }
body.v8 :is(a, .post-card):hover .v8-seta-link { transform: translate(calc(.14em * .51), -.14em); }

/* Uma âncora por página (DESIGN.md: "cada peça tem uma âncora"): nas páginas
   interiores só o primeiro bloco mostra o eyebrow com o Canto. Os outros
   eyebrows ficam no HTML (leitores de ecrã e o texto não se perdem), mas
   escondidos, como na v7. */
body.v8:not(.v8-home) main > :not(:first-child) .eyebrow { display: none; }
body.v8:not(.v8-home) main > :first-child :is(.work-next) .eyebrow { display: none; }

/* Capa do artigo: a proporção das capas v2 (16:10), para o Canto e a palavra não serem cortados */
body.v8 .post-cover { aspect-ratio: 16 / 10; max-width: 880px; }

/* ---------- v9 · revisão 3: método e terceiro serviço ---------- */
body.v8 .v8-servico + .v8-servico { margin-top: 24px; }
body.v8 .v8-metodo { list-style: none; margin: 32px 0 0; padding: 0; max-width: 52ch; }
body.v8 .v8-metodo li { padding: 16px 0; border-top: 1px solid #333333; font-size: 16px; line-height: 1.6; color: #9A9A9A; }
body.v8 .v8-metodo li:last-child { border-bottom: 1px solid #333333; }
body.v8 .v8-metodo li b { display: block; margin-bottom: 4px; font-weight: 600; color: #E5E5E5; }
body.v8 .v8-fundador__texto > .v8-citacao { margin-top: 32px; }
@media (max-width: 767px) {
  body.v8 .v8-metodo { margin-top: 24px; }
  body.v8 .v8-metodo li { padding: 12px 0; font-size: 15px; }
}
@media (min-width: 1024px) { body.v8 .svc2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { body.v8 .svc2 { grid-template-columns: 1fr; } }

body.v8 .v8-mais + .v8-setores__nota { margin-top: 24px; font-size: 15px; color: #5C5C5C; }
@media (max-width: 767px) {
  /* distill: no telemóvel, cada serviço mostra o nome, o benefício e o caminho para a página */
  body.v8 .v8-servico ul,
  body.v8 .v8-servico__pe > span,
  body.v8 .v8-ferramentas dd:not(.tmi-etiqueta),
  body.v8 .v8-fundador .v8-citacao,
  body.v8 .v8-raiox__acao small,
  body.v8 #cap-think ~ .v8-cap__lead,
  body.v8 #cap-impact ~ .v8-cap__lead { display: none; }
  body.v8 .v8-fundador figure { width: 42%; max-width: 180px; margin-bottom: 32px; }
}
@media (max-width: 767px) {
  body.v8 .v8-raiox__folha li > span { display: none; }
  body.v8 .v8-regra { padding-top: 48px; padding-bottom: 48px; }
}

/* v9 · revisão 4 · marcação com menos fricção.
   A agenda é o caminho principal (três passos à vista); o formulário fica recolhido como alternativa,
   dentro do mesmo painel. O painel é que ocupa a grelha: o <details> deixou de ser filho da grelha,
   que era o que partia a caixa no Safari. */
body.v8 .v8-marcar { grid-column: 7 / -1; padding: 40px; background: var(--tmi-branco, #FFFFFF); color: #181818; }
body.v8 .v8-marcar__t { margin: 0 0 24px; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
body.v8 .v8-marcar__passos { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: passo; }
body.v8 .v8-marcar__passos li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid #DADADA; font-size: 16px; line-height: 1.5; color: #4A4A4A; counter-increment: passo; }
body.v8 .v8-marcar__passos li:last-child { border-bottom: 1px solid #DADADA; }
body.v8 .v8-marcar__passos li::before { content: counter(passo); position: absolute; left: 0; top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.75; color: #181818; font-variant-numeric: tabular-nums; }
body.v8 .v8-marcar__passos b { font-weight: 600; color: #181818; }
body.v8 .v8-marcar__btn { width: 100%; justify-content: space-between; }
body.v8 .v8-form-caixa { margin-top: 28px; border-top: 1px solid #DADADA; }
body.v8 .v8-form-caixa > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 0; min-height: 44px; font-size: 15px; font-weight: 600; color: #181818; cursor: pointer; list-style: none; }
body.v8 .v8-form-caixa > summary::-webkit-details-marker { display: none; }
body.v8 .v8-form-caixa > summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
body.v8 .v8-form-caixa[open] > summary::after { content: "\2212"; }
body.v8 .v8-form-caixa > summary:focus-visible { outline: 2px solid #181818; outline-offset: 4px; }
body.v8 .v8-form-caixa .v8-form { padding: 24px 0 0; background: transparent; }
@media (min-width: 768px) and (max-width: 1023px) { body.v8 .v8-marcar { grid-column: 6 / -1; } }
@media (max-width: 767px) {
  body.v8 .v8-marcar { margin-top: 32px; padding: 24px 20px; }
  body.v8 .v8-marcar__t { font-size: 20px; }
  body.v8 .v8-form-caixa .v8-form { padding: 20px 0 0; margin-top: 0; }
}

/* v9 · revisão 4 · os botões perdem a seta: o rótulo ("Marcar Raio-X", "Enviar mensagem") já diz tudo,
   e qualquer seta se lia como "sai do site". */
body.v8 .btn::after { content: none !important; display: none !important; }
body.v8 .btn { justify-content: center; }
body.v8 :is(.v8-marcar__btn, .v8-form .btn, .v8-contacto__texto .btn) { justify-content: center; }

body.v8 a.btn, body.v8 button.btn { justify-content: center !important; }
body.v8 .v8-marcar__nota { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #5C5C5C; }
/* Agenda embutida (home). A moldura só aparece quando a agenda responde com a altura;
   as margens negativas alinham o conteúdo dela com o padding da caixa. */
body.v8 .v8-marcar__moldura { height: 0; margin: 0 -40px; overflow: hidden; }
/* Escondida por altura, não por display: none. Numa moldura sem layout o browser não calcula
   alturas, e a agenda nunca teria nada para enviar. */
body.v8 .v8-marcar.is-agenda .v8-marcar__moldura { height: auto; margin-top: -16px; }
body.v8 .v8-marcar.is-agenda .v8-marcar__passos-caixa { display: none; }
body.v8 .v8-marcar__moldura iframe { display: block; width: 100%; height: 0; border: 0; background: #FFFFFF; transition: height .3s var(--tmi-curva-decisao, ease); }
body.v8 .v8-marcar__abrir { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #5C5C5C; }
@media (max-width: 767px) { body.v8 .v8-marcar__moldura { margin: -8px -20px 0; } }
@media (prefers-reduced-motion: reduce) { body.v8 .v8-marcar__moldura iframe { transition: none; } }

/* v9 · revisão 4 · movimento (plano 001): botão afunda ao clicar, o formulário recolhível abre com
   altura animada (mesmo padrão das perguntas frequentes) e o Ponto pousa na página de obrigado. */
@media (prefers-reduced-motion: no-preference) {
  body.v8 .btn {
    transition:
      background-color 160ms var(--tmi-curva-decisao),
      color 160ms var(--tmi-curva-decisao),
      border-color 160ms var(--tmi-curva-decisao),
      transform 160ms var(--tmi-curva-decisao);
  }
  body.v8 .btn:active { transform: scale(0.97); }
  body.v8 .v8-form-caixa { interpolate-size: allow-keywords; }
  body.v8 .v8-form-caixa::details-content {
    height: 0;
    overflow: clip;
    transition: height 320ms var(--tmi-curva-decisao), content-visibility 320ms allow-discrete;
  }
  body.v8 .v8-form-caixa[open]::details-content { height: auto; }
  body.v8 .v8-ponto--cedo { animation-delay: 480ms; }
}

/* ---------------------------------------------------------------------
   Correções da auditoria de 2026-10-02
   --------------------------------------------------------------------- */
/* Botão do fecho dos artigos: o fundo já invertia para névoa, o texto ficava branco (1,25:1). */
body.v8 .post-cta .btn--primary { color: var(--tmi-fundo); }
/* Texto das capas sem imagem nos artigos relacionados: charcoal sobre #333 (1,4:1). */
body.v8 .post-card__cover-text { color: #E5E5E5; }
/* Páginas de caso no telemóvel: a tira de peças sangrava 24px numa margem de 16px e a página ganhava 8px de largura. */
@media (max-width: 900px) {
  body.v8 .work-pieces { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
}
/* Legenda da tabela de cookies: #6f6e6a sobre charcoal (3,5:1). */
body.v8 caption { color: var(--tmi-texto-2); }
