/* ═══════════════════════════════════════════════════════════
   FONTS · self-hosted WOFF2 (latin subset)

   Inter v4 Variable — 1 ficheiro com wght 100-900 + opsz display
     · Idêntico ao que o Google Fonts serve dinamicamente
     · Substitui os 7 ficheiros estáticos do Inter v3 (~30 KB cada)
     · Activa opsz "display" automaticamente em tamanhos grandes,
       o que devolve aos títulos hero o peso "Black mais grosso"
   IBM Plex Mono × 5 pesos (400/400i/500/600/700) — estáticos
   font-display: swap → texto visível imediatamente com fallback
   ═══════════════════════════════════════════════════════════ */

/* Inter Variable (roman) — wght 100-900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;            /* range — granularidade total */
  font-display: swap;
  src: url('../fonts/woff2/InterVariable.woff2') format('woff2-variations'),
       url('../fonts/woff2/InterVariable.woff2') format('woff2');
}
/* Inter Variable (italic) — wght 100-900 */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/woff2/InterVariable-Italic.woff2') format('woff2-variations'),
       url('../fonts/woff2/InterVariable-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/woff2/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/woff2/IBMPlexMono-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/woff2/IBMPlexMono-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/woff2/IBMPlexMono-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/woff2/IBMPlexMono-Bold.woff2') format('woff2');
}

/* ─── Fallback fonts ajustadas (zero CLS no swap) ───
   Quando o web font ainda está a carregar, o browser usa estes fallbacks
   sintéticos baseados em fontes locais (Arial/Courier New) com ajustes
   métricos para imitar as proporções de Inter/IBM Plex Mono.
   Resultado: o swap web→local não causa layout shift.
   Valores via Capsize / web.dev font-fallback recommendations.
   ────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica Neue');
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
  size-adjust: 107.18%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback';
  src: local('Courier New'), local('Liberation Mono'), local('Menlo');
  ascent-override: 84%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 119%;
}

:root {
  --black: #1e1e1e;
  --black-soft: #1e1e1e;
  --black-medium: #1e1e1e;
  --rosa: #ff277a;          /* magenta marca | AA-large (3.61:1 on white)  */

  /* ─ Brutalist palette (páginas v2 editorial) ───────────────── */
  --brut-bg: #ffffff;
  --brut-ink: #0a0a0a;       /* 19.8:1 AAA */
  --brut-line: #0a0a0a;
  --brut-line-soft: rgba(10, 10, 10, 0.14); /* decorativo apenas (separators visuais sem função) */
  --brut-line-ui: rgba(10, 10, 10, 0.45);   /* UI components — WCAG 1.4.11 (≥3:1) */
  --brut-muted: #6a6a6a;     /* 5.4:1 AA */
  --brut-soft: #f4f4f4;
  --brut-dark: #1e1e1e;
  --brut-mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback', 'Courier New', monospace;
  --rosa-light: #ff5c9a;
  --rosa-dark: #d91e63;      /* 4.87:1 AA — usar quando rosa for texto <18px sobre branco */
  --rosa-accessible: #c91960; /* 5.5:1 AA — alternativa para texto pequeno crítico */
  --white: #ffffff;
  --white-warm: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;

  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  /* --text-base cresce até 1.55rem em ecrãs muito largos — ver media query no fim do ficheiro */
  --text-xl: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 2rem + 6vw, 6rem);

  /* Lead paragraph: emphasised intro text used after section titles */
  --text-lead: clamp(1.25rem, 2.5vw, 1.75rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;

  --container-max: 1500px;
  --container-narrow: 900px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-2xl: 60px;
  --radius-full: 9999px;
  --navbar-bottom-offset: 0px;
  --sb-status-h: 56px;
}

@media (min-width: 720px) {
  :root { --sb-status-h: 64px; }
}
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}
@keyframes vt-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--navbar-bottom-offset);
  /* font-smoothing: auto (default) preserva subpixel rendering no macOS,
     o que devolve aos títulos ~10% do peso visual perdido na migração
     Google Fonts (Variable wght 900) → self-host (Inter Black estático). */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.5;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: var(--navbar-bottom-offset);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, #2e2e2e 0%, var(--black) 70%);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--rosa);
  color: var(--white);
}

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

/* ─ Skip-link global (WCAG 2.4.1 · Bypass Blocks) ────────────────
   Visualmente fora do ecrã até receber foco; aparece ao tab inicial */
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 99999;
  padding: 0.85rem 1.4rem;
  background: var(--brut-ink, #0a0a0a);
  color: var(--white, #fff);
  font-family: var(--brut-mono, monospace);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--rosa, #ff277a);
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: none;
}
main[tabindex="-1"]:focus { outline: none; }

/* ─ Progressive enhancement fallback nav/footer ─
   Escondido por defeito (JS substitui o slot antes do paint).
   <noscript> activa display:block se o utilizador não tiver JS,
   garantindo navegação + landmarks (banner, navigation, contentinfo). */
.sb-fallback,
.ft-fallback {
  display: none;
}
/* Estilo mínimo legível quando fallback é mostrado (no-JS) */
.sb-fallback {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #0a0a0a;
  background: #fff;
  font-family: 'IBM Plex Mono', 'IBM Plex Mono Fallback', 'Courier New', monospace;
  font-size: 0.85rem;
}
.sb-fallback__brand {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  text-decoration: none;
  margin-right: 1.5rem;
}
.sb-fallback__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-fallback__list a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sb-fallback__list a:hover,
.sb-fallback__list a:focus-visible {
  color: #ff277a;
}
.ft-fallback {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid #0a0a0a;
  background: #fff;
  font-family: 'IBM Plex Mono', 'IBM Plex Mono Fallback', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #0a0a0a;
}
.ft-fallback p { margin: 0 0 0.5rem; }
.ft-fallback a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ft-fallback a:hover,
.ft-fallback a:focus-visible {
  color: #ff277a;
}
.ft-fallback nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}

/* ─ Reserved slots for async animations (Lottie / Spline / 3D) ─
   Containers reusáveis com aspect-ratio para evitar CLS quando o JSON
   da animação ou o canvas Spline são injectados após o paint inicial.
   Use estas classes em qualquer container que vai receber animação lazy. */
.lottie-frame,
.b-blob,
.hp-lottie {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  contain: layout paint; /* isola repaint do resto da página */
}
.lottie-frame--landscape,
.b-blob--landscape,
.hp-lottie--landscape {
  aspect-ratio: 16 / 9;
}
.lottie-frame--portrait,
.b-blob--portrait,
.hp-lottie--portrait {
  aspect-ratio: 4 / 5;
}

/* ─ Back-to-top ─ aparece via JS após 600px scroll (desktop apenas) */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--brut-ink, #0a0a0a);
  color: var(--brut-bg, #ffffff);
  border: 1px solid var(--brut-ink, #0a0a0a);
  border-radius: 0;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  font: inherit;
}
.back-to-top.is-visible {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--rosa, #ff277a);
  color: #ffffff;
  border-color: var(--rosa, #ff277a);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--brut-ink, #0a0a0a);
  outline-offset: 2px;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* Mobile: navbar pinned bottom — back-to-top desnecessário (gesto de scroll) */
@media (max-width: 1023px) {
  .back-to-top { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s ease;
    transform: none;
  }
}

/* ─ Hook / gancho das singles equipa (kicker acima do nome) ──── */
.mb-hero__hook {
  margin: 0 0 0.6rem;
  font-family: var(--brut-mono, monospace);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--brut-muted, #6a6a6a);
  max-width: 32ch;
}
.mb-hero__hook em {
  font-style: normal;
  color: var(--rosa, #ff277a);
}

/* ─ Honra prefers-reduced-motion globalmente (WCAG 2.3.3) ──────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

.accent {
  color: var(--rosa);
}

.serif {
  font-family: var(--font-sans);
  font-style: italic;
}

/* Wrapper #site-header — passa a controlar a posição sticky, para que
   o "scroll-up to reveal" funcione bem com transform/translateY */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sb-status {
  --sb-bg: #ffffff;
  --sb-fg: #1e1e1e;
  --sb-line: rgba(30, 30, 30, 0.14);
  --sb-muted: rgba(30, 30, 30, 0.55);
  --sb-rosa: var(--rosa, #ff277a);
  --sb-lettering-invert: 0;

  background: var(--sb-bg);
  color: var(--sb-fg);
  border-bottom: 1px solid var(--sb-line);
  padding: 10px clamp(0.9rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Scroll-up to reveal: o wrapper desliza para fora do viewport */
#site-header.is-nav-hidden {
  transform: translateY(-100%);
}
/* Drawer mobile aberto: força visível */
#site-header.is-drawer-open {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #site-header { transition: none; }
  #site-header.is-nav-hidden { transform: none; }
}

/* Tema escuro — quando o hero/1ª secção é #1e1e1e */
.sb-status.is-dark {
  --sb-bg: #1e1e1e;
  --sb-fg: #ffffff;
  --sb-line: rgba(255, 255, 255, 0.18);
  --sb-muted: rgba(255, 255, 255, 0.55);
  --sb-lettering-invert: 1;
  /* Sem linha visível para fundir com o hero escuro */
  border-bottom-color: transparent;
}

/* Brand (logo + lettering) — sempre visível */
.sb-status__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.sb-status__brand:hover,
.sb-status__brand:focus-visible { opacity: 0.78; outline: none; }

.sb-status__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.sb-status__logo-lottie {
  display: block;
  width: 100%;
  height: 100%;
  /* CLS: reserva quadrado caso o lottie-data.js carregue depois do parent */
  aspect-ratio: 1 / 1;
}
/* Força o blob Lottie a ser sempre magenta, independente do tema da navbar */
.sb-status__logo-lottie svg path,
.sb-status__logo-lottie svg g,
.sb-status__logo-lottie svg rect,
.sb-status__logo-lottie svg ellipse,
.sb-status__logo-lottie svg circle,
.sb-status__logo-lottie svg polygon {
  fill: var(--sb-rosa) !important;
  stroke: var(--sb-rosa) !important;
}
.sb-status__lettering {
  display: block;
  height: 32px;
  width: auto;
  /* O SVG é #1e1e1e por defeito; em tema escuro invertemos para branco */
  filter: invert(var(--sb-lettering-invert));
  transition: filter 0.25s ease;
}


/* Meta e Nav — escondidos por defeito (mobile); aparecem em desktop */
.sb-status__meta,
.sb-status__nav { display: none; }

/* Ticker rotativo de frases — visível apenas em desktop */
.sb-status__ticker {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 1.4em;
  min-width: 0;
  max-width: clamp(140px, 28vw, 420px);
  color: var(--sb-muted);
}
.sb-status__ticker-text {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.48s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.32s ease;
  will-change: transform, opacity;
}
.sb-status__ticker-text.is-out {
  transform: translateY(-110%);
  opacity: 0;
}
.sb-status__ticker-text.is-in-start {
  transform: translateY(110%);
  opacity: 0;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sb-status__ticker-text { transition: none; }
}

.sb-status__menu-btn {
  --hb-w: 28px;
  --hb-h: 24px; /* WCAG 2.5.8 AA: target ≥24×24 */
  --hb-thick: 2.5px;
  --hb-gap: 9px;

  margin-left: auto;
  width: var(--hb-w);
  height: var(--hb-h);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.sb-status__menu-btn:focus-visible {
  outline: 2px solid var(--sb-rosa);
  outline-offset: 4px;
}

.sb-status__menu-btn span {
  position: absolute;
  left: 0;
  width: var(--hb-w);
  height: var(--hb-thick);
  background: var(--sb-fg);
}
.sb-status__menu-btn span:nth-child(1) {
  top: 0;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.35s;
}
.sb-status__menu-btn span:nth-child(2) {
  top: var(--hb-gap);
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.3s, background 0.25s ease;
}
.sb-status__menu-btn span:nth-child(3) {
  top: calc(var(--hb-gap) * 2);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.35s;
}

/* Acento magenta subtil no traço do meio em hover */
.sb-status__menu-btn:hover span:nth-child(2),
.sb-status__menu-btn:focus-visible span:nth-child(2) { background: var(--sb-rosa); }

/* Estado aberto — morph para seta */
.sb-status__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(35deg) scaleX(0.55) translate(39px, -4.5px);
  border-radius: 50px 50px 50px 0;
}
.sb-status__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-35deg) scaleX(0.55) translate(39px, 4.5px);
  border-radius: 0 50px 50px 50px;
}
.sb-status__menu-btn[aria-expanded="true"] span:nth-child(2) {
  width: calc(var(--hb-w) - 16px);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  background: var(--sb-fg);
}

/* Links inline (apenas usados em desktop) */
.sb-status__muted { color: var(--sb-muted); }
.sb-status__nav a,
.sb-status__meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sb-status__nav a:hover,
.sb-status__nav a:focus-visible { color: var(--sb-rosa); outline: none; }
.sb-status__cta {
  color: var(--sb-rosa) !important;
  font-weight: 700;
}
.sb-status__cta:hover,
.sb-status__cta:focus-visible { color: var(--sb-fg) !important; }
.sb-status__active {
  color: var(--sb-rosa);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ─── Desktop ≥720px — restaura o layout completo ─── */
@media (min-width: 720px) {
  .sb-status {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    padding: 12px clamp(1rem, 3vw, 2rem);
  }
  .sb-status__lettering { height: 40px; }
  .sb-status__meta {
    display: inline-flex;
    gap: clamp(0.6rem, 1.4vw, 1rem);
    align-items: center;
    /* alinhado à esquerda, logo a seguir ao brand */
    margin-left: clamp(0.4rem, 1vw, 1rem);
  }
  .sb-status__nav {
    display: inline-flex;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    align-items: center;
    flex-wrap: wrap;
    /* empurra a navegação até à direita */
    margin-left: auto;
  }
  .sb-status__menu-btn { display: none; }
}

/* ─────────────────────────────────────────────────────────
   DRAWER MOBILE — menu fullscreen
   ───────────────────────────────────────────────────────── */
.sb-drawer {
  position: fixed;
  inset: 0;
  background: #ffffff;
  color: #1e1e1e;
  z-index: 999;
  padding: clamp(4.5rem, 14vh, 6.5rem) clamp(1.5rem, 6vw, 2.5rem) clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.42s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sb-drawer.is-open { transform: translateY(0); }
.sb-drawer[hidden] { display: none; }

.sb-drawer__nav {
  display: flex;
  flex-direction: column;
}
.sb-drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #1e1e1e;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(30, 30, 30, 0.12);
  transition: color 0.2s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sb-drawer__link:hover,
.sb-drawer__link:focus-visible {
  color: var(--rosa, #ff277a);
  padding-left: 0.5rem;
  outline: none;
}
.sb-drawer__num {
  font-size: 0.42em;
  letter-spacing: 0.15em;
  color: rgba(30, 30, 30, 0.4);
  font-weight: 500;
  flex-shrink: 0;
  width: 2.2em;
}
.sb-drawer__link:hover .sb-drawer__num,
.sb-drawer__link:focus-visible .sb-drawer__num { color: var(--rosa, #ff277a); }
.sb-drawer__text { flex: 1; }
.sb-drawer__link--cta { color: var(--rosa, #ff277a); }
.sb-drawer__link--cta .sb-drawer__num { color: rgba(255, 39, 122, 0.5); }
.sb-drawer__link--active { color: var(--rosa, #ff277a); }
.sb-drawer__link--active .sb-drawer__num { color: var(--rosa, #ff277a); }

.sb-drawer__foot {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30, 30, 30, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 30, 30, 0.12);
}
.sb-drawer__foot a {
  color: #1e1e1e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.sb-drawer__foot a:hover,
.sb-drawer__foot a:focus-visible { color: var(--rosa, #ff277a); }
.sb-drawer__coords { color: rgba(30, 30, 30, 0.45); }

body.sb-drawer-open { overflow: hidden; }

@media (min-width: 720px) {
  .sb-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-drawer { transition: none; }
  .sb-status__menu-btn span { transition: none; }
}

/* Esconde a antiga navbar (.header) em todas as páginas — substituída pelo .sb-status */
.header { display: none !important; }
.mobile-menu { display: none !important; }

/* Esconde a CTA antiga (com .section--cta) — substituída pela .sb-cta global */

/* ─────────────────────────────────────────────────────────
   CTA brutalista global — injetado antes do footer
   ───────────────────────────────────────────────────────── */
.sb-cta {
  --sbc-bg: #ffffff;
  --sbc-ink: #1e1e1e;
  --sbc-muted: rgba(30, 30, 30, 0.75); /* WCAG 2.1 AA: 7.39:1 ✓ (era 0.55 = 3.75:1 ✗) */
  --sbc-line: rgba(30, 30, 30, 0.14);
  --sbc-rosa: var(--rosa, #ff277a);

  background: var(--sbc-bg);
  color: var(--sbc-ink);
  padding: clamp(4rem, 12vh, 10rem) clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--sbc-line);
  border-bottom: 1px solid var(--sbc-line);
  font-family: var(--font-sans);
}
.sb-cta__text {
  font-size: clamp(2.2rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--sbc-ink);
}
.sb-cta__text a {
  color: var(--sbc-ink);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.sb-cta__text a:hover,
.sb-cta__text a:focus-visible {
  color: var(--sbc-rosa);
  outline: none;
}
.sb-cta__text a::after {
  content: '↗';
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.1em;
}
.sb-cta__meta {
  margin-top: clamp(2rem, 5vh, 4rem);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbc-muted);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .sb-cta__meta { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.sb-cta__meta a {
  color: var(--sbc-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.sb-cta__meta a:hover,
.sb-cta__meta a:focus-visible { color: var(--sbc-rosa); outline: none; }
.sb-cta__meta .label {
  display: block;
  color: var(--sbc-muted);
  margin-bottom: 0.4rem;
}

/* ── Header (legado, mantido por compatibilidade) ── */

.header.is-hidden {
  transform: translateY(calc(-100% - 20px));
}

/* ── Mobile: pin header to the bottom of the viewport ── */
@media (max-width: 1023px) {
  .header {
    top: auto;
    bottom: 0;
    /* Respect iOS home-indicator safe area */
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* When hidden on scroll, slide DOWN out of the viewport */
  .header.is-hidden {
    transform: translateY(calc(100% + 20px));
  }
}

.header.is-compact {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 8px 14px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  transition: padding 0.45s var(--ease-out),
              background 0.45s var(--ease-out),
              gap 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.header.is-compact .header__bar {
  padding: 6px 8px 6px 12px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ── Logo ── */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  border-radius: 50%;
  transition: box-shadow 1.5s ease, transform 0.3s var(--ease-out);
}
.header__logo:hover {
  transform: scale(1.06);
}
.header__logo:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 6px;
}

.header__logo-lottie {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1; /* reserva slot até o lottie carregar */
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out);
}

@media (min-width: 768px) {
  .header__logo-lottie {
    width: 46px;
    height: 46px;
  }
}

.header.is-compact .header__logo-lottie {
  width: 36px;
  height: 36px;
}

@media (min-width: 768px) {
  .header.is-compact .header__logo-lottie {
    width: 40px;
    height: 40px;
  }
}

/* ── Desktop nav ── */
.header__nav {
  display: none;
  align-items: center;
  gap: 4px;
  position: relative;
  margin: 0 8px;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

/* Sliding indicator (underline magenta) */
.header__indicator {
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 0;
  background: var(--rosa);
  pointer-events: none;
  opacity: 0;
  will-change: left, width, opacity;
}

.header__link {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.6;
  padding: 10px 12px;
  border-radius: 0;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s var(--ease-out),
              color 0.25s var(--ease-out);
  white-space: nowrap;
}

.header__link:hover {
  opacity: 1;
}

.header__link:focus-visible {
  opacity: 1;
  outline: 2px solid var(--rosa);
  outline-offset: -1px;
}

.header__link--active {
  opacity: 1;
}

/* ── Contactos: link mono inline magenta (sem seta, brutalist) ── */
.header__cta {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rosa-dark); /* WCAG 1.4.3 — 4.87:1 sobre branco (em vez de --rosa 3.60:1) */
  background: transparent;
  padding: 10px 12px;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.header__cta:hover {
  color: var(--rosa-light);
}

.header__cta:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: -1px;
}

/* ── Language switcher ── */
.header__lang {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  margin-left: 4px;
  margin-right: 4px;
}

@media (min-width: 1024px) {
  .header__lang {
    display: flex;
  }
}

.lang-btn {
  padding: 8px 8px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 0;
}

.lang-btn:hover,
.lang-btn.is-active {
  opacity: 1;
}

.lang-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
  border-radius: 4px;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 300;
  user-select: none;
  margin: 0 -2px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── Hamburger, two asymmetric lines ── */
.header__menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  transition: background 0.3s;
}

.header__menu-btn:hover {
  background: rgba(255, 39, 122, 0.12);
}
.header__menu-btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
  background: rgba(255, 39, 122, 0.12);
}

@media (min-width: 1024px) {
  .header__menu-btn {
    display: none;
  }
}

.header__menu-icon {
  width: 22px;
  height: 0;
  position: relative;
}

.header__menu-line {
  position: absolute;
  left: 50%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out),
              width 0.4s var(--ease-out),
              opacity 0.3s;
}

.header__menu-line--top {
  width: 16px;
  top: -4px;
  transform: translateX(-50%);
}

.header__menu-line--bottom {
  width: 22px;
  top: 4px;
  transform: translateX(-50%);
}

/* Open state */
.header__menu-btn[aria-expanded="true"] .header__menu-line--top {
  width: 22px;
  transform: translateX(-50%) translateY(4px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-line--bottom {
  transform: translateX(-50%) translateY(-4px) rotate(-45deg);
}


.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  overflow: hidden;
}

body[data-page="home"] .hero {
  min-height: calc(100svh - var(--sb-status-h));
  min-height: calc(100dvh - var(--sb-status-h));
}

.hero__blob {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  /* NÃO adicionar aspect-ratio aqui — o inset:0 + position:absolute
     já dimensiona o blob pelo parent. Forçar aspect 1:1 quebra o layout
     do hero (parent não é quadrado, blob não pode ser). */
}

.hero__blob spline-viewer {
  width: 100%;
  height: 100%;
}

/* WCAG 2.3.3 — utilizadores com prefers-reduced-motion vêem o <picture> fallback
   (blob-insurgente-fallback). O Spline 3D nem chega a ser carregado pelo JS gating.
   Esta regra é defensiva: garante que mesmo que o spline-viewer apareça no DOM,
   fica escondido em reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  .hero__blob spline-viewer {
    display: none !important;
  }
  .hero__blob-fallback {
    opacity: 1 !important;
  }
}

/* Fallback picture — fica por baixo do Spline em desktop, ou é a única coisa
   visível em mobile e reduced-motion. */
.hero__blob-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__blob-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__blob spline-viewer {
  position: relative;
  z-index: 1;
}

/* Tiago ajuda-me nisto depois, não consigo tirar o logo do Spline */
spline-viewer #logo,
spline-viewer [id*="logo"],
spline-viewer a[href*="spline"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero__content {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xl);
  /* Acomoda o descender do "g" no italic 900 sem alterar o line-height */
  padding-bottom: 0.12em;
  /* Nunca partir uma palavra a meio */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Mobile: reduz tamanho do título para que "A alma é o segredo"
   caiba numa linha (com a quebra natural antes de "do negócio.") */
@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    letter-spacing: -0.025em;
  }
}

.hero__title strong {
  font-weight: 900;
}

.hero__title--serif {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 900;
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: end;
  }
}

.hero__tagline {
  font-family: var(--brut-mono);
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero__tagline {
    color: var(--gray-400);
  }
}

.hero__description {
  max-width: 540px;
}

.hero__description p {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  color: var(--gray-200);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* ─── Hero · ecrãs muito largos (6K externos, 2 vezes mais espaço) ───
   Sobe o conteúdo (deixa de estar colado em baixo), aumenta tipografia
   e CTA, reduz o padding-top para não deixar tanto vazio em cima. */
@media (min-width: 1800px) {
  .hero__content {
    justify-content: center;
    max-width: 2000px;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
  .hero__title {
    font-size: clamp(7rem, 9vw, 11.5rem);
    line-height: 1.02;
    margin-bottom: var(--space-3xl);
    max-width: none;
    white-space: nowrap;
  }
  .hero__title--serif { white-space: normal; }
  .hero__tagline {
    letter-spacing: 0.14em;
  }
  .hero__description {
    max-width: 720px;
  }
  .hero__description p {
    font-size: clamp(1.2rem, 1.05vw, 1.55rem);
    line-height: 1.55;
  }
  .hero__ctas .btn {
    padding: 1.15rem 2.4rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
}


/* Botão base desalinhado */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: none;
  border: none;
  color: var(--white);
  padding: var(--space-xs) var(--space-lg);
  transition: color 0.35s ease;
  text-decoration: none;
}

/* Two offset rectangles, clearly separated at opposite corners */
.btn::before,
.btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease;
}

/* Default: ambos preenchem o retângulo (botão limpo) */
.btn::before,
.btn::after {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
}

/* Hover: ::before desloca-se para cima/esquerda */
.btn:hover::before {
  top: 0;
  left: 0;
  right: 20px;
  bottom: 8px;
  background-color: var(--rosa);
}

/* Hover: ::after desloca-se para baixo/direita */
.btn:hover::after {
  top: 8px;
  left: 20px;
  right: 0;
  bottom: 0;
  background-color: var(--rosa);
}

.btn:hover {
  color: var(--white);
}

.btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 6px;
}

.btn--primary::before { background-color: var(--white); }
.btn--primary::after  { background-color: var(--white); }
.btn--primary { color: var(--black); }

.btn--primary:hover::before,
.btn--primary:hover::after { background-color: var(--rosa); }
.btn--primary:hover { color: var(--white); }

/* CTA secundário em hero (versão "ghost" — só underline, sem caixa) */

/* Botão só com texto e seta */

/* .btn--large removed, all buttons now use uniform base padding */

.btn--dark::before { background-color: var(--black); }
.btn--dark::after  { background-color: var(--black); }
.btn--dark { color: var(--white); }

.btn--dark:hover::before,
.btn--dark:hover::after {
  background-color: var(--rosa);
}

/* ── Reduced motion, keep offset, remove animation ── */
@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .btn::after {
    transition: none !important;
  }
}


.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

.section--dark {
  background: transparent;
  color: var(--white);
}


.section--dark p,
.section--dark li {
  color: var(--gray-300);
}

.section--dark strong {
  color: var(--white);
}

.section--dark em {
  color: var(--gray-200);
}

.section--light {
  background: transparent;
  color: var(--white);
}


/* =================================================
   Canonical H2 / section title style.
   Same scale and weight as .hp-statement__text and
   .project-text__title, editorial, light-weight,
   generous line-height, capped width for readability.
   Variants below share these typography props.
   ================================================= */
.section-title {
  font-size: clamp(1.75rem, 3.8vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  max-width: 1100px;
}

.section-title .serif {
  font-style: italic;
}

.section-title--light {
  font-weight: 300;
}

/* Wider variant for hero contexts where extra spacing reads better */

/* .statement__eyebrow removed, replaced by canonical .section-eyebrow */

.statement__title {
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.statement__title strong {
  font-weight: 700;
}

/* problem-section__title: uniform 1.5rem, no desktop bump */

/* approach btn inherits from .btn--outline (white solid) */

/* approach__title: uniform 1.5rem, no desktop bump */

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .mosaic {
    grid-template-columns: 1.4fr 0.6fr 1fr;
    grid-template-rows: 250px 250px;
    gap: var(--space-lg);
  }
}

/* clients-section__title: uniform 1.5rem, no desktop bump */

/* Light section client logos */

/* Offset image that overlaps sections */


.process-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

.process-card {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--gray-700);
}

.section--light .process-card {
  border-color: var(--gray-700);
}

.work-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-800);
}

.work-card__link {
  display: block;
  height: 100%;
  position: relative;
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-card__overlay,
.work-card:focus-within .work-card__overlay {
  opacity: 1;
}

.work-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.work-card:hover .work-card__content,
.work-card:focus-within .work-card__content {
  transform: translateY(0);
  opacity: 1;
}

.work-card__link:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

/* Photo placeholder for work cards */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

/* Grid for 5 members */

.cta__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

/* ===== Letter CTA Animation ===== */
/* ═══════════════════════════════════════
   HOMEPAGE CTA, Split layout + glass card
   ═══════════════════════════════════════ */
.hp-cta {
  padding: var(--space-3xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* ── Layout ── */
.hp-cta__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hp-cta__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

@media (min-width: 1024px) {
  .hp-cta__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-4xl);
  }
}

/* ── Left column: headline ── */
.hp-cta__eyebrow {
  margin-bottom: var(--space-xs);
}

.hp-cta__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hp-cta__title .serif {
  color: var(--rosa);
}

.hp-cta__text {
  font-size: var(--text-lg);
  color: var(--gray-400);
  line-height: 1.5;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: var(--space-xl);
}

/* Trust badges */
.hp-cta__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hp-cta__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-weight: 300;
}

.hp-cta__trust-item svg {
  color: var(--rosa);
  flex-shrink: 0;
}

/* ── Right column: glass form card ──
   Performance: blur(18px) é o sweet spot visual (era 24px). Promoção a
   composite layer dedicada (translateZ + contain + isolation) garante
   que o backdrop-filter não trigger paints em scroll/hover noutros nós. */
.hp-cta__card {
  position: relative;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255, 39, 122, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1);
  /* GPU layer promotion + isolation: backdrop-filter fica composited e
     desliga-se do paint tree do resto da página. */
  transform: translateZ(0);
  will-change: backdrop-filter;
  contain: layout paint;
  isolation: isolate;
}

/* Hosts com prefers-reduced-transparency (sistemas com transparências
   desactivadas) recebem fundo sólido — zero blur, zero composite. */
@media (prefers-reduced-transparency: reduce) {
  .hp-cta__card {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: auto;
  }
}

@media (min-width: 768px) {
  .hp-cta__card {
    padding: var(--space-2xl);
  }
}

/* Rosa edge glow */
.hp-cta__card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(255, 39, 122, 0.15) 90deg,
    transparent 180deg,
    rgba(255, 39, 122, 0.08) 270deg,
    transparent 360deg
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s var(--ease-out);
  filter: blur(20px);
  animation: ctaGlowPulse 4s ease-in-out infinite;
}

.hp-cta__card:hover .hp-cta__card-glow {
  opacity: 1;
}

@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* ── Form ── */
.hp-cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hp-cta__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-cta__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}

.hp-cta__input {
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: var(--text-base);
  font-family: inherit;
  font-weight: 300;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-700);
  border-radius: 0;
  transition: border-color 0.35s var(--ease-out);
  -webkit-appearance: none;
}

.hp-cta__input:hover {
  border-bottom-color: var(--gray-500);
}

.hp-cta__input:focus {
  outline: none;
  border-bottom-color: var(--rosa);
  box-shadow: 0 1px 0 0 var(--rosa);
}

.hp-cta__input::placeholder {
  color: var(--gray-600);
  font-weight: 300;
}

.hp-cta__textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Alert ── */
.hp-cta__alert {
  display: none;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
}

.hp-cta__alert.is-visible {
  display: block;
}

/* ── Submit ── */
.hp-cta__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--rosa);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  margin-top: var(--space-sm);
}

.hp-cta__submit:hover {
  background: var(--rosa-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 39, 122, 0.3);
}

.hp-cta__submit:active {
  transform: translateY(0);
}

.hp-cta__submit:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.hp-cta__submit svg {
  transition: transform 0.35s var(--ease-out);
}

.hp-cta__submit:hover svg {
  transform: translateX(4px);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hp-cta__card-glow {
    animation: none;
    opacity: 0.5;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER · compacto brutalist
   3 rows: brand+social · institucional · legal thin
   ═══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  isolation: isolate;
  color: #fff;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  overflow: hidden;
  /* Rosa Insurgente com gradiente vivo a mexer */
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(255, 90, 160, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 85%, rgba(190, 0, 80, 0.95) 0%, transparent 60%),
    linear-gradient(135deg, #ff277a 0%, #d6005e 50%, #c91960 100%);
  background-size: 200% 200%, 200% 200%, 300% 300%;
  background-position: 0% 0%, 100% 100%, 0% 50%;
  animation: footer-gradient 18s ease-in-out infinite;
}
@keyframes footer-gradient {
  0%   { background-position: 0% 0%,   100% 100%, 0% 50%; }
  50%  { background-position: 60% 40%, 40% 60%,   100% 50%; }
  100% { background-position: 0% 0%,   100% 100%, 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer { animation: none; }
}
/* Glow noise overlay sutil para reforçar o movimento */
.footer__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: footer-glow 22s ease-in-out infinite;
}
@keyframes footer-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__glow { animation: none; }
}

/* ── Row 1: brand (blob + lettering) + social ── */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: clamp(2rem, 5vh, 3rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
@media (min-width: 700px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
  transition: opacity 0.2s ease;
}
.footer__brand:hover,
.footer__brand:focus-visible { opacity: 0.85; outline: none; }
.footer__brand-mark {
  display: block;
  height: clamp(96px, 14vw, 160px);
  width: auto;
  flex-shrink: 0;
}
.footer__brand-tag {
  font-family: var(--brut-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 0.7rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 0.3rem;
}

.footer__social {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 9px 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: var(--brut-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__social a:hover,
.footer__social a:focus-visible {
  background: #fff;
  color: var(--rosa);
  border-color: #fff;
  outline: none;
}
.footer__social svg { flex-shrink: 0; }

/* ── Row 2: institucional ── */
.footer__inst {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
@media (min-width: 700px) {
  .footer__inst { grid-template-columns: auto 1fr auto; align-items: center; }
}
.footer__inst-cell {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 3.5vh, 2rem) clamp(1.25rem, 3vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
@media (min-width: 700px) { .footer__inst-cell { border-bottom: 0; } }
.footer__inst-cell:last-child { border-right: 0; }
.footer__inst-cell:hover,
.footer__inst-cell:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.footer__inst-label {
  font-family: var(--brut-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.footer__inst-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  align-self: flex-start;
}
.footer__inst-cell--reclam {
  align-items: center;
  justify-content: center;
}
.footer__inst-cell--reclam .footer__inst-logo {
  align-self: center;
  height: 44px;
}
.footer__inst-cell--prr {
  align-items: stretch;
  justify-content: center;
}
.footer__inst-prr {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  align-self: center;
  justify-self: center;
}
.footer__inst-cell--link {
  text-align: left;
}
.footer__inst-value {
  font-family: var(--brut-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer__inst-cell--link:hover .footer__inst-value,
.footer__inst-cell--link:focus-visible .footer__inst-value {
  color: var(--brut-ink);
  transform: translateX(2px);
}

/* ── Row 3: legal thin ── */
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vh, 1.4rem) clamp(1rem, 3vw, 2rem);
  font-family: var(--brut-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
@media (min-width: 700px) {
  .footer__legal {
    flex-direction: row;
    align-items: center;
  }
}
.footer__legal-copy { line-height: 1.5; }
.footer__legal-updated {
  font-family: var(--brut-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.footer__legal-updated time { font-weight: 700; }
.footer__legal-links { display: inline-flex; gap: 0.6rem; align-items: center; }
.footer__legal-links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  color: var(--brut-ink);
  text-decoration-color: var(--brut-ink);
  outline: none;
}
.footer__legal-sep { color: rgba(255, 255, 255, 0.5); }



/* ═══════════════════════════════════════════════════════════
   EQUIPA · Devaneios (lista de posts do diário por membro)
   Partilhado entre todas as singles em /equipa/
   ═══════════════════════════════════════════════════════════ */
.mb-diary {
  padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--brut-line);
  background: var(--brut-bg);
}
.mb-diary__head {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: clamp(1.8rem, 4vh, 2.5rem);
  max-width: 30ch;
}
.mb-diary__chapter {
  display: block;
  font-family: var(--brut-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brut-muted);
}
.mb-diary__chapter b { color: var(--rosa-dark); font-weight: 700; }
.mb-diary__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.mb-diary__title em { font-style: normal; color: var(--rosa); }

.mb-diary__list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1.5px solid var(--brut-ink);
}
.mb-diary__list li { border-bottom: 1px solid var(--brut-line); }
.mb-diary__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: clamp(1.2rem, 3vh, 1.8rem) 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.25s ease;
  position: relative;
}
@media (min-width: 720px) {
  .mb-diary__item {
    grid-template-columns: 200px 1fr auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: baseline;
  }
}
.mb-diary__item:hover,
.mb-diary__item:focus-visible {
  padding-left: 0.6rem;
  outline: none;
}
.mb-diary__item:hover .mb-diary__item-title,
.mb-diary__item:focus-visible .mb-diary__item-title { color: var(--rosa); }
.mb-diary__item:hover .mb-diary__item-cta,
.mb-diary__item:focus-visible .mb-diary__item-cta { color: var(--rosa); }
.mb-diary__item:hover .mb-diary__item-cta svg,
.mb-diary__item:focus-visible .mb-diary__item-cta svg { transform: translateX(4px); }

.mb-diary__item-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--brut-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brut-muted);
}
.mb-diary__item-meta time { color: var(--rosa-dark); font-weight: 700; }
.mb-diary__item-cat {
  padding: 3px 7px;
  border: 1px solid var(--brut-line);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.mb-diary__item-title {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--brut-ink);
  transition: color 0.2s ease;
}
.mb-diary__item-title em { font-style: normal; color: var(--rosa); }
.mb-diary__item-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--brut-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brut-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.mb-diary__item-cta svg { transition: transform 0.25s ease; }

/* Estado vazio: editorial, com ar de revista */
.mb-diary--empty .mb-diary__empty {
  margin: 0;
  padding: clamp(1.5rem, 4vh, 2.2rem) 0;
  border-top: 1.5px solid var(--brut-ink);
  border-bottom: 1px solid var(--brut-line);
  font-family: var(--brut-mono);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: var(--brut-muted);
  max-width: 56ch;
}
.mb-diary--empty .mb-diary__empty em {
  font-style: normal;
  color: var(--rosa);
  font-weight: 700;
}

/* ── Mobile Menu (GSAP-driven animations) ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
}

.mobile-menu__slash {
  position: absolute;
  top: 50%;
  left: 10%; right: 10%;
  height: 1px;
  background: var(--rosa);
  transform: scaleX(0);
  opacity: 0.4;
  pointer-events: none;
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.mobile-menu__link {
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--white);
  transition: color 0.3s;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--rosa);
}

.mobile-menu__link--active {
  color: var(--rosa);
}

.mobile-menu__link--cta {
  margin-top: var(--space-md);
  font-size: var(--text-xl);
  background: var(--rosa);
  padding: var(--space-sm) var(--space-2xl);
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--white);
  transition: background 0.3s, color 0.3s;
}

.mobile-menu__link--cta:hover {
  color: var(--white);
  background: var(--rosa-light);
}

.mobile-menu__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-md);
}

.mobile-menu__lang .lang-btn {
  font-size: var(--text-sm);
  min-width: 48px;
  min-height: 48px;
}

.mobile-menu__footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-lg) var(--space-xl);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.mobile-menu__contact a {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-sm);
  transition: color 0.3s;
}

.mobile-menu__contact a:hover { color: var(--white); }

.mobile-menu__social {
  display: flex;
  gap: var(--space-md);
}

.mobile-menu__social a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s;
}

.mobile-menu__social a:hover { color: var(--white); }


/* Legacy bottom-nav is no longer rendered. Kept hidden for any stale markup. */
.bottom-nav {
  display: none !important;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.bottom-nav__item svg {
  transition: transform 0.25s, color 0.25s;
}

.bottom-nav__item.is-active {
  color: var(--rosa);
}

.bottom-nav__item.is-active svg {
  transform: translateY(-1px);
}

.bottom-nav__item:active {
  color: var(--rosa);
}

.bottom-nav__item:active svg {
  transform: scale(0.9);
}


body.menu-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
}


.steps-accordion {
  display: flex;
  gap: 0;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.steps-accordion__item {
  flex: 1;
  position: relative;
  background: var(--gray-100);
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.5s var(--ease-out);
  min-width: 0;
  border-right: 1px solid var(--gray-200);
}

.steps-accordion__item:last-child {
  border-right: none;
}

/* Number, always top-left */
.steps-accordion__number {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--black);
  z-index: 4;
  transition: left 0.5s var(--ease-out);
}

.steps-accordion__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rosa);
  flex-shrink: 0;
}


.steps-accordion__title {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, var(--text-lg));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--black);
  white-space: nowrap;
  transform-origin: 0% 100%;
  transform: rotate(-90deg);
  transition: transform 0.5s var(--ease-out), font-size 0.5s var(--ease-out), bottom 0.5s var(--ease-out), left 0.5s var(--ease-out), white-space 0.3s;
  z-index: 4;
}


.steps-accordion__body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-xl);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s var(--ease-out);
  z-index: 3;
  pointer-events: none;
}

.steps-accordion__body p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
  max-width: 420px;
}

/* ---- Expanded state ---- */
.steps-accordion__item.is-expanded {
  flex: 4;
}

.steps-accordion__item.is-expanded .steps-accordion__number {
  left: var(--space-xl);
}

.steps-accordion__item.is-expanded .steps-accordion__title {
  transform: rotate(0deg);
  bottom: auto;
  top: calc(var(--space-lg) + 2rem);
  left: var(--space-xl);
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
  white-space: normal;
  max-width: calc(100% - var(--space-xl) * 2);
}

.steps-accordion__item.is-expanded .steps-accordion__body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.steps-accordion__item:not(.is-expanded) .steps-accordion__body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s, transform 0.15s;
}


@media (max-width: 767px) {
  .steps-accordion {
    flex-direction: column;
    min-height: auto;
  }

  .steps-accordion__item {
    display: block !important;
    position: relative !important;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    min-height: 64px;
    padding: var(--space-md) var(--space-lg);
    transition: min-height 0.3s var(--ease-out);
    overflow: visible !important;
  }

  .steps-accordion__item:last-child {
    border-bottom: none;
  }

  /* Número fica em fluxo natural à esquerda; o título seguinte fica inline a seguir. */
  .steps-accordion__number {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    margin: 0 var(--space-md) 0 0 !important;
    vertical-align: baseline;
    width: auto !important;
    transform: none !important;
  }

  .steps-accordion__title {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    font-size: var(--text-base) !important;
    white-space: normal !important;
    display: inline !important;
    margin: 0 !important;
    vertical-align: baseline;
    width: auto !important;
    max-width: none !important;
  }

  /* Body em block, full width — quebra para nova linha depois do número+título */
  .steps-accordion__body {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none !important;
    transition: max-height 0.3s var(--ease-out), opacity 0.2s, padding 0.3s;
  }
  .steps-accordion__body p {
    max-width: 100% !important;
    width: auto;
  }

  .steps-accordion__item.is-expanded {
    flex: none;
  }

  .steps-accordion__item.is-expanded .steps-accordion__title {
    top: auto;
    font-size: var(--text-base);
    max-width: none;
  }

  .steps-accordion__item.is-expanded .steps-accordion__body {
    opacity: 1;
    max-height: 200px;
    padding: var(--space-sm) 0 0;
  }

  .steps-accordion__item.is-expanded .steps-accordion__number {
    left: auto;
  }
}


[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays — mais rápidos */
[data-delay="100"] { transition-delay: 0.06s; }
[data-delay="200"] { transition-delay: 0.12s; }
[data-delay="300"] { transition-delay: 0.18s; }
[data-delay="400"] { transition-delay: 0.24s; }


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}


.cookie-consent {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - var(--space-lg));
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans);
  color: var(--white);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent.is-hiding {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.cookie-consent__text {
  font-size: var(--text-sm);
  line-height: 1.6;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
  color: var(--gray-300);
  margin-bottom: var(--space-md);
}

.cookie-consent__text a {
  color: var(--rosa-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-consent__text a:hover {
  color: var(--rosa);
}

.cookie-consent__text a:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Toggle group for cookie categories */
.cookie-consent__toggles {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.cookie-consent__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.cookie-consent__toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-200);
  cursor: pointer;
  user-select: none;
}

.cookie-consent__toggle-label--disabled {
  color: var(--gray-400);
  cursor: default;
}

.cookie-consent__toggle-hint {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

/* Custom switch */
.cookie-consent__switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.cookie-consent__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-consent__switch-track {
  position: absolute;
  inset: 0;
  background: var(--gray-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-consent__switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track {
  background: var(--rosa);
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track::after {
  transform: translateX(20px);
}

.cookie-consent__switch input:focus-visible + .cookie-consent__switch-track {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.cookie-consent__switch input:disabled + .cookie-consent__switch-track {
  background: var(--gray-700);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Buttons */
.cookie-consent__actions {
  display: flex;
  gap: 0.625rem;
}

.cookie-consent__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-align: center;
  line-height: 1.2;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.cookie-consent__btn:active {
  transform: scale(0.97);
}

/* GDPR — Recusar e Aceitar tudo devem ter IGUAL PROMINENCE.
   CNIL Délibération SAN-2021-024 + AEPD Guía cookies 2023:
   "consentimento livre" exige que o utilizador possa recusar tão facilmente
   quanto aceitar — mesmo tamanho, mesmo peso visual, mesma proeminência.
   Diferenciamos apenas pela cor (rosa marca vs branco neutro); fundo sólido
   nos dois, sem variantes "fracas" (transparente, cinzento claro). */
.cookie-consent__btn--accept {
  background: var(--rosa);
  color: var(--white);
  border: 1px solid var(--rosa);
}
.cookie-consent__btn--accept:hover {
  background: var(--rosa-dark);
  border-color: var(--rosa-dark);
}

.cookie-consent__btn--reject {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.cookie-consent__btn--reject:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
}

.cookie-consent__btn--save {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.cookie-consent__btn--save:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
}

/* Preferences expanded state */
.cookie-consent__prefs-toggle {
  background: none;
  border: none;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: 0;
  margin-top: 0.625rem;
  text-align: center;
  width: 100%;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.cookie-consent__prefs-toggle:hover {
  color: var(--white);
}

.cookie-consent__prefs-toggle:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
  border-radius: 2px;
}

.cookie-consent__prefs-toggle svg {
  transition: transform 0.25s var(--ease-out);
}

.cookie-consent__prefs-toggle.is-open svg {
  transform: rotate(180deg);
}

.cookie-consent__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), margin 0.35s var(--ease-out);
  margin-top: 0;
}

.cookie-consent__details.is-open {
  max-height: 300px;
  margin-top: var(--space-sm);
}

/* Mobile: lift cookie banner above the bottom-pinned header */
@media (max-width: 1023px) {
  .cookie-consent {
    bottom: calc(var(--navbar-bottom-offset) + var(--space-sm));
    left: var(--space-sm);
    width: calc(100% - var(--space-md));
    max-width: none;
    padding: var(--space-md);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: none;
  }
  .cookie-consent__details {
    transition: none;
  }
  .cookie-consent__switch-track::after {
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   BRUTALIST UTILITIES (.b-*)
   Classes partilhadas pelas páginas v2 editorial.
   Aplica-se a body com class="b-page" + data-page="X".
   ═══════════════════════════════════════════════════════════ */

/* ── Body modifier ── */
.b-page {
  background: var(--brut-bg);
  color: var(--brut-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.b-page::before { display: none !important; }

/* ── Utilidades tipográficas ── */
.b-mono { font-family: var(--brut-mono); }

/* ── Chapter marker (eyebrow mono com b magenta) ── */
.b-chapter {
  display: block;
  font-family: var(--brut-mono);
  font-size: clamp(13px, 1vw, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brut-muted);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.b-chapter b { color: var(--rosa-dark); font-weight: 700; }
.b-chapter--on-dark { color: rgba(255, 255, 255, 0.55); }
.b-chapter--on-dark b { color: var(--rosa); }

/* ── Hero (padrão claro) ── */
.b-hero {
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 6vh, 5rem);
}
.b-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .b-hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }
}
.b-hero__title {
  font-size: clamp(2.6rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 22ch;
  text-transform: uppercase;
  color: var(--brut-ink);
  /* Nunca sair do ecrã: palavras longas quebram, sem partir a meio se possível */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* Mobile: encolhe o tamanho para que palavras longas (CONCRETAMENTE, FAZEMOS)
   caibam na largura do ecrã sem cortar */
@media (max-width: 600px) {
  .b-hero__title {
    font-size: clamp(1.9rem, 9.5vw, 3.2rem);
    letter-spacing: -0.035em;
  }
}
.b-hero__title em {
  font-style: normal;
  color: var(--rosa);
  font-weight: 900;
}
.b-hero__title--narrow { max-width: 18ch; }
.b-hero__lead {
  font-family: var(--brut-mono);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--brut-muted);
  margin: 0;
  max-width: 42ch;
  letter-spacing: -0.005em;
}
.b-hero__lead strong { color: var(--brut-ink); font-weight: 700; }

/* Hero variant: full-dark (#1e1e1e) */
.b-hero--dark {
  color: #fafafa;
}
.b-hero--dark .b-chapter { color: rgba(255, 255, 255, 0.55); }
.b-hero--dark .b-chapter b { color: var(--rosa); }
.b-hero--dark .b-hero__title { color: #fff; }
.b-hero--dark .b-hero__title em { color: var(--rosa); }
.b-hero--dark .b-hero__lead { color: rgba(255, 255, 255, 0.65); }
.b-hero--dark .b-hero__lead strong { color: #fff; }

/* ── Section (genérica: chapter + head grid + body) ── */
.b-section {
  border-bottom: 1px solid var(--brut-line);
  padding: clamp(3rem, 8vh, 6rem) 0 0;
}
.b-section__head {
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .b-section__head {
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
  }
}
.b-section__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  max-width: 18ch;
  color: var(--brut-ink);
}
.b-section__title em { font-style: normal; color: var(--rosa); }
.b-section__lead {
  font-family: var(--brut-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--brut-muted);
  max-width: 60ch;
  margin: 0;
}
.b-section--dark {
  background: #0a0a0a;
  color: #fafafa;
}
.b-section--dark .b-chapter { color: rgba(255, 255, 255, 0.55); }
.b-section--dark .b-chapter b { color: var(--rosa); }
.b-section--dark .b-section__title { color: #fafafa; }
.b-section--dark .b-section__lead { color: rgba(255, 255, 255, 0.6); }

/* ── Index editorial (tabela de links com hover preto) ── */
.b-index { border-bottom: 1px solid var(--brut-line); }
.b-index__row {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3vh, 2rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--brut-line-soft);
  text-decoration: none;
  color: var(--brut-ink);
  transition: background 0.3s ease, padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.b-index__row:last-child { border-bottom: 1px solid var(--brut-line); }
@media (min-width: 768px) {
  .b-index__row {
    grid-template-columns: 110px 1fr 60px;
    gap: 2rem;
  }
}
.b-index__num {
  font-family: var(--brut-mono);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.08em;
  color: var(--brut-muted);
  transition: color 0.3s ease;
}
.b-index__name {
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-transform: uppercase;
  margin: 0;
  color: var(--brut-ink);
  transition: color 0.3s ease;
}
.b-index__name em { font-style: normal; color: var(--rosa); }
.b-index__arrow {
  justify-self: end;
  font-family: var(--brut-mono);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--brut-muted);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.b-index__row:hover,
.b-index__row:focus-visible {
  background: var(--brut-ink);
  color: #fff;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  outline: none;
}
.b-index__row:hover .b-index__num,
.b-index__row:focus-visible .b-index__num { color: rgba(255, 255, 255, 0.55); }
.b-index__row:hover .b-index__name,
.b-index__row:focus-visible .b-index__name { color: #fff; }
.b-index__row:hover .b-index__name em,
.b-index__row:focus-visible .b-index__name em { color: var(--rosa); }
.b-index__row:hover .b-index__arrow,
.b-index__row:focus-visible .b-index__arrow {
  color: var(--rosa);
  transform: translate(6px, -6px);
}

/* ── Spread full-bleed (foto cinematográfica entre blocos) ── */
.b-spread {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid var(--brut-line);
  aspect-ratio: 21 / 9;
}
@media (max-width: 700px) { .b-spread { aspect-ratio: 4 / 3; } }
.b-spread img,
.b-spread video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Variante preto-e-branco editorial */
.b-spread--bw img,
.b-spread--bw video {
  filter: grayscale(1) contrast(1.05);
}

/* ── Watermark vertical lateral ── */
.b-watermark {
  position: fixed;
  right: 4px;
  bottom: 50%;
  transform: rotate(-90deg);
  transform-origin: bottom right;
  font-family: var(--brut-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brut-muted);
  z-index: 9999;
  pointer-events: none;
}
@media (max-width: 768px) { .b-watermark { display: none; } }

/* ─── Ecrãs muito largos (6K externos) ─────────────────────────────
   Override só para >= 1800px:
   - --text-base cresce até 1.55rem (sem salto visual em 1800px)
   - --container-max sobe para 2000px (mais ar lateral em ecrãs grandes) */
@media (min-width: 1800px) {
  :root {
    --text-base: clamp(1.125rem, 1vw, 1.55rem);
    --container-max: 2000px;
  }
  .sb-cta__meta {
    font-size: clamp(13px, 0.85vw, 17px);
    letter-spacing: 0.10em;
  }
  .sb-cta__meta .label {
    margin-bottom: 0.5rem;
  }
  .hp-timeline__list {
    font-size: clamp(12px, 0.7vw, 15px);
  }
}

/* ────────────────────────────────────────────────────────────────
   Performance: reduzir blurs pesados em mobile / coarse-pointer
   Justificação: backdrop-filter blur(>=20px) e filter blur(>=20px)
   custam muito GPU (especialmente iOS Safari) e em hot paths
   degradam INP/scrolling. Em desktop o efeito mantém-se intacto.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px), (pointer: coarse) and (hover: none) {
  /* Status bar — manter algum blur (10px) para affordance, mas leve */
  .header__bar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* CTA glass card no index (form + glow) */
  .hp-cta__card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .hp-cta__card-glow {
    filter: blur(8px);
  }
  /* Footer halo decorativo */
  .footer__glow {
    filter: blur(8px);
  }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLESHEET
   - esconde UI (navbar fixed, drawer, footer-glow, Spline, Lottie,
     vídeos autoplay, iframes Maps/YouTube, cookies banner, cursores)
   - reset cores: preto sobre branco (não desperdiçar toner com magenta)
   - revela URL após links externos
   - headings sem partir entre páginas
   - tipografia legível em corpo (12pt + line-height 1.45)
   ═══════════════════════════════════════════════════════════ */
@media print {
  /* ─── Reset cores: preto sobre branco ─── */
  :root {
    --brut-bg: #ffffff;
    --brut-ink: #000000;
    --brut-muted: #444444;
    --rosa: #000000;
    --rosa-dark: #000000;
    --rosa-light: #000000;
  }
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.45;
    width: auto;
    margin: 0;
    padding: 0;
  }
  body::before { display: none !important; }

  /* ─── Page setup ─── */
  @page {
    margin: 18mm 16mm 20mm;
  }
  @page :first {
    margin-top: 14mm;
  }

  /* ─── Esconder elementos que não fazem sentido em papel ─── */
  .skip-link,
  .sb-status,
  .header,
  .header__bar,
  .sb-drawer,
  #sb-drawer,
  #site-header,
  #site-mobile-menu,
  .header__menu-btn,
  .cursor,
  .scroll-progress,
  .cookie-consent,
  .footer__glow,
  .hero__blob,
  .hp-cta__card-glow,
  .hp-svc__lottie,
  .sb-status__logo-lottie,
  .header__logo-lottie,
  .b-cta,
  .b-cta-section,
  .hp-cta,
  .ct-map,
  .ct-map__placeholder,
  .b-newsletter,
  .b-page::before,
  .mf-outro,
  spline-viewer,
  video,
  iframe,
  [aria-hidden="true"]:not(.b-chapter):not(h1):not(h2):not(h3):not(figure) {
    display: none !important;
  }

  /* ─── Hero, footer e navbar layout reset ─── */
  #site-footer,
  .footer {
    border-top: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
    padding: 12pt 0 !important;
  }
  main,
  #main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* ─── Tipografia readable ─── */
  h1, h2, h3 {
    color: #000 !important;
    page-break-after: avoid;
    break-after: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    letter-spacing: -0.01em !important;
  }
  h1 { font-size: 24pt !important; line-height: 1.15 !important; margin-top: 0; }
  h2 { font-size: 18pt !important; line-height: 1.2 !important; }
  h3 { font-size: 14pt !important; line-height: 1.25 !important; }
  p, li, dd, dt {
    font-size: 12pt !important;
    line-height: 1.45 !important;
    color: #000 !important;
    orphans: 3;
    widows: 3;
  }
  em { font-style: italic !important; color: #000 !important; }
  strong, b { font-weight: 700 !important; color: #000 !important; }

  /* Acrescenta a URL depois de cada link externo ─── */
  a, a:link, a:visited {
    color: #000 !important;
    text-decoration: underline;
    word-wrap: break-word;
  }
  a[href^="http"]:not([href*="insurgente.pt"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555 !important;
  }

  /* ─── Imagens: limitar dimensão, não cortar ─── */
  img, picture, figure {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
    print-color-adjust: economy;
    -webkit-print-color-adjust: economy;
  }
  figure {
    margin: 0.5em 0 !important;
  }
  figcaption {
    font-size: 10pt !important;
    color: #444 !important;
    margin-top: 0.3em;
  }

  /* ─── Listas, citações ─── */
  ul, ol {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  blockquote {
    border-left: 2pt solid #000 !important;
    padding-left: 10pt !important;
    margin: 0.8em 0 !important;
    font-style: italic;
    page-break-inside: avoid;
  }

  /* ─── Tables ─── */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  /* ─── Page break helpers (utilities) ─── */
  
  [data-print="hide"] {
    display: none !important;
  }
  
  [data-print="break"] {
    page-break-before: always;
    break-before: page;
  }
}
