/* APICE — estilo polido (megamenu, bg foto, hero rico, secções dark) */
:root {
  /* Paleta oficial (brand sheet): Midnight Navy, Champagne Gold, Subtle Teal, Cool Gray, Soft White */
  --navy: #0B1D33;
  --navy-2: #14304F;
  --navy-3: #071322;
  --gold: #C9A15A;
  --gold-2: #B08A45;
  --gold-soft: #E8D9B0;
  --gold-glow: rgba(201,161,90,.40);
  --teal: #0F6B6D;
  --teal-soft: rgba(15,107,109,.12);

  --ink: #15181F;
  --ink-mid: #3D4660;
  --muted: #6A7488;
  --line: #E9ECF2;
  --line-strong: #DDE0E8;

  --bg: #FFFFFF;
  --bg-soft: #F7F8FC;
  --bg-cream: #FAF6EE;

  --radius: 12px;
  --radius-lg: 18px;
  --container: 1220px;

  --shadow-xs: 0 1px 2px rgba(11,29,51,.05);
  --shadow-sm: 0 2px 6px rgba(11,29,51,.06), 0 8px 22px rgba(11,29,51,.05);
  --shadow-md: 0 10px 30px rgba(11,29,51,.08);
  --shadow-lg: 0 24px 60px rgba(11,29,51,.14);

  /* Imagens de fundo: valores por defeito; o site aplica as definidas no
     backoffice (Definições → Imagens do site) por cima destas. */
  --photo-global: url("../img/team-group.jpg");
  --photo-hero:   url("../img/team-walk.jpg");
  --photo-dark:   url("../img/team-celebrate.jpg");
  --photo-page:   url("../img/team-group.jpg");
  --photo-cta:    url("../img/team-celebrate.jpg");

  --font-serif: 'Sora', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;   /* títulos (sans geométrica) */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-cinematic: cubic-bezier(.65,.05,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--navy); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar personalizada (WebKit) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--navy-2); border-radius: 8px;
  border: 3px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy); margin: 0 0 .5em;
  line-height: 1.1; font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 3.9vw, 3.15rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-mid); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-2); font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}

/* ===========================================================
   FUNDO decorativo
   =========================================================== */
.bg-photo {
  position: fixed; inset: 0; z-index: -11; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.96) 60%, rgba(255,255,255,1)),
    var(--photo-global);
  background-size: cover; background-position: center top;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.1);
  opacity: .55;
}
.bg-aurora { position: fixed; inset: 0; z-index: -9; pointer-events: none; overflow: hidden; }
.bg-aurora .orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .14; will-change: transform; }
.bg-aurora .orb--1 {
  width: 45vw; height: 45vw; left: -10vw; top: -20vw;
  background: radial-gradient(circle, rgba(201,161,90,.55), transparent 70%);
  animation: orb1 22s ease-in-out infinite alternate;
}
.bg-aurora .orb--2 {
  width: 40vw; height: 40vw; right: -10vw; top: 60vh;
  background: radial-gradient(circle, rgba(11,29,51,.18), transparent 70%);
  animation: orb2 26s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0,0); } to { transform: translate(8vw, 6vh); } }
@keyframes orb2 { from { transform: translate(0,0); } to { transform: translate(-10vw, -4vh); } }

/* ===========================================================
   SECÇÕES
   =========================================================== */
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section--dark {
  background:
    linear-gradient(135deg, rgba(11,29,51,.92) 0%, rgba(26,42,92,.88) 60%, rgba(10,20,48,.95) 100%),
    var(--photo-dark) center/cover no-repeat;
  color: #fff; overflow: hidden; position: relative;
}
.section--dark::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(201,161,90,.16), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(255,255,255,.05), transparent 60%);
  pointer-events: none;
}
.section--dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(201,161,90,.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(720px 380px at 50% 55%, #000, transparent);
          mask-image: radial-gradient(720px 380px at 50% 55%, #000, transparent);
}
.section--dark > * { position: relative; z-index: 1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 64px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head .eyebrow { justify-content: center; }

/* ===========================================================
   BOTÕES
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  letter-spacing: .01em; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1; white-space: nowrap; position: relative;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
}
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy); box-shadow: 0 6px 22px rgba(201,161,90,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,161,90,.40); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .arrow { transition: transform .2s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===========================================================
   HEADER + MEGAMENU full-width (estilo Mundi)
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(11,29,51,.04);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-weight: 500; font-size: .94rem; color: #3D4660;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-item > a:hover, .nav-item.is-open > a { color: var(--navy); background: var(--bg-soft); }
.nav-item.active > a { color: var(--navy); font-weight: 600; }
.nav-item.active > a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); transform: translateX(-50%);
}
.nav-item .caret { font-size: .7rem; opacity: .55; transition: transform .2s var(--ease); }
.nav-item:hover .caret, .nav-item.is-open .caret { transform: rotate(180deg); opacity: 1; }

#megamenu-host { position: relative; }
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11,29,51,.10);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  z-index: 60;
}
.megamenu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.megamenu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.megamenu__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.megamenu__col {
  position: relative; padding: 28px 32px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: background .3s var(--ease);
  cursor: pointer;
}
.megamenu__col:focus { outline: 2px solid var(--gold); outline-offset: -4px; }
.megamenu__col:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.megamenu__col:last-child { border-right: 0; }
.megamenu__col .mm-eyebrow { font-size: .8rem; color: var(--muted); margin-bottom: 22px; font-weight: 400; }
.megamenu__col h3 {
  font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.2;
  color: var(--gold-2); margin: 0 0 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
  transition: color .3s var(--ease);
}
.megamenu__col .mm-sublist { list-style: none; padding: 0; margin: 0; }
.megamenu__col .mm-sublist li { margin-bottom: 8px; }
.megamenu__col .mm-sublist a {
  font-size: .95rem; line-height: 1.35;
  color: var(--ink); font-weight: 600;
  display: inline-block; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-bottom-color .2s var(--ease);
}
.megamenu__col .mm-sublist a:hover { border-bottom-color: var(--gold); color: var(--gold-2); }
.megamenu__col .mm-foot { font-size: .76rem; color: var(--muted); }
.megamenu__col .mm-arrow { color: var(--gold-2); transition: transform .2s var(--ease); display: inline-block; }
.megamenu__col:hover .mm-arrow { transform: translateX(4px); }

/* Coluna em hover — fundo navy */
.megamenu__col:hover { background: var(--navy); }
.megamenu__col:hover h3 { color: var(--gold-soft); }
.megamenu__col:hover .mm-sublist a { color: rgba(255,255,255,.92); }
.megamenu__col:hover .mm-sublist a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.megamenu__col:hover .mm-foot { color: rgba(255,255,255,.55); }

/* Realce do destino de um link do menu (deep-link) */
@keyframes anchorFlash {
  0%, 60% { box-shadow: 0 0 0 3px rgba(201,161,90,.55), var(--shadow-md); }
  100%    { box-shadow: 0 0 0 3px rgba(201,161,90,0), var(--shadow-sm); }
}
.anchor-flash { animation: anchorFlash 2.2s var(--ease) both; border-radius: var(--radius); }

.lang-switch { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; font-family: inherit;
  transition: all .15s var(--ease);
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s; }

/* Barra de progresso de scroll (no fundo do header) */
.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  z-index: 110;
  box-shadow: 0 0 12px rgba(201,161,90,.55);
  transition: width .08s linear;
}

/* Botão voltar ao topo (canto inferior direito) */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), background .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px) scale(1); }
.to-top__arrow { font-size: 1.2rem; font-weight: 700; line-height: 1; position: relative; z-index: 2; }
.to-top__circle {
  position: absolute; inset: 0; pointer-events: none;
}
.to-top__circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__circle circle {
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-dasharray: 100.5; /* 2π*16 */
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset .1s linear;
}

@media (max-width: 540px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ===========================================================
   HERO rico
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 64px;
  isolation: isolate;
}
.hero::before {
  /* Imagem nítida, alinhada ao topo para mostrar os rostos;
     o véu à esquerda garante a legibilidade do texto */
  content: ''; position: absolute; inset: 0; z-index: -3;
  background: var(--photo-hero) right 12% / cover no-repeat;
  filter: saturate(1.05);
}
.hero::after {
  /* Véu branco gradiente + fade inferior */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, transparent 70%, rgba(255,255,255,.92) 100%),
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.86) 38%, rgba(255,255,255,.38) 66%, rgba(255,255,255,.04) 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
/* Aurora gold suave em cima da imagem */
.hero > .container::before {
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 600px; height: 600px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(201,161,90,.20), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.hero h1 { margin-bottom: 16px; font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
.hero h1 .accent { color: var(--gold-2); }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 540px; line-height: 1.65; text-wrap: pretty; }
.hero__cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
}
.hero__trust .label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.hero__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .5; } }

.hero__visual {
  position: relative;
  align-self: stretch; min-height: 100%;
  margin-left: auto; width: 100%;
}
/* A fotografia de fundo é o visual do hero: esconde-se a caixa com o logo
   e ficam apenas os chips flutuantes sobre a imagem. */
.hero__visual-bg, .hero__visual > img { display: none; }
.hero__chip--top { top: 4%; left: 6%; }
.hero__chip--bot { bottom: 6%; right: 0; }
.hero__visual-bg {
  position: absolute; inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__visual-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(500px 250px at 50% 0%, rgba(201,161,90,.30), transparent 60%),
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: auto, 24px 24px;
}
.hero__visual-bg::after {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(201,161,90,.26) 88%, transparent 100%);
  filter: blur(45px); animation: spinSlow 16s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero__visual img { position: relative; z-index: 2; max-width: 76%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.45)); }

.hero__chip {
  position: absolute; z-index: 3;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.hero__chip strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.2; font-weight: 600; }
.hero__chip span { display: block; color: var(--muted); font-size: .76rem; font-family: var(--font-mono); letter-spacing: .04em; }
.hero__chip .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy); font-size: 1.1rem; font-weight: 700;
}
.hero__chip--top { top: 6%; left: -8%; animation: float 6s ease-in-out infinite; }
.hero__chip--bot { bottom: 8%; right: -6%; animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* HERO compacto outras páginas */
.page-hero {
  padding: 110px 0 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% 0%, rgba(201,161,90,.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 56%;
  background: var(--photo-page) center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
  opacity: .38; filter: saturate(1.05);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero h1 .accent, .hero h1 .accent { color: var(--gold-2); }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; }

/* ===========================================================
   CARDS — limpos, com tira gold no hover
   =========================================================== */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 50%; right: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: left .4s var(--ease), right .4s var(--ease); opacity: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,161,90,.30); }
.card:hover::before { left: 0; right: 0; opacity: 1; }

.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-cream), #fff);
  border: 1px solid rgba(201,161,90,.22);
  color: var(--gold-2); display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 22px;
  transition: transform .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.06); }
.card__icon svg { width: 24px; height: 24px; }

/* Pilares de serviços: "O que fazemos" / "O que entregamos" */
.pillar-label {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
  margin: 18px 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.pillar-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,161,90,.35), transparent); }
.deliverables { display: flex; flex-wrap: wrap; gap: 8px; }
.deliverables span {
  font-size: .8rem; font-weight: 600; color: var(--ink-mid);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.card:hover .deliverables span { border-color: rgba(201,161,90,.4); }
.card__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,161,90,.40);
  pointer-events: none;
  transition: color .35s var(--ease);
}
.card:hover .card__num { color: rgba(201,161,90,.30); }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 600; color: var(--navy); font-size: .88rem;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.card__link::after { content: '→'; transition: transform .2s var(--ease); }
.card__link:hover { color: var(--gold-2); }
.card__link:hover::after { transform: translateX(4px); }

/* ===========================================================
   STATS (em secção dark)
   =========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stat { padding: 24px 28px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.10); }
.stat__value {
  font-family: var(--font-serif); font-size: 3rem;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 12px; font-weight: 700;
}
.stat__label { color: rgba(255,255,255,.72); font-size: .82rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

/* ===========================================================
   SPLIT
   =========================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split__media {
  position: relative;
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: grid; place-items: center; padding: 50px;
  box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(201,161,90,.26), transparent 60%);
}
.split__media::after {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 90deg, transparent 70%, rgba(201,161,90,.22) 80%, transparent 90%);
  filter: blur(45px); animation: spinSlow 14s linear infinite;
}
.split__media img { position: relative; z-index: 2; max-width: 280px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.35)); }
.split__media-badge {
  position: absolute; bottom: 22px; right: 22px; z-index: 3;
  background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px; padding: 10px 18px; font-size: .8rem; font-weight: 600;
  color: var(--navy); display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.split__media-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.20); animation: pulseDot 1.8s ease-in-out infinite; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { padding: 10px 0 10px 36px; position: relative; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy); display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(201,161,90,.30);
}

/* VALUES */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value {
  padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value h3 { font-family: var(--font-sans); font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ===========================================================
   TEAM
   =========================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member { text-align: center; }
.member__photo {
  aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  margin: 0 auto 18px; max-width: 200px;
  display: grid; place-items: center; color: var(--gold);
  font-family: var(--font-serif); font-size: 3rem; font-weight: 600;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.member:hover .member__photo { transform: scale(1.05); box-shadow: var(--shadow-md); }
.member__photo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(201,161,90,.18);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.12rem; margin-bottom: 4px; }
.member__role {
  color: var(--gold-2); font-size: .82rem; margin-bottom: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-mono);
}
.member__bio { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ===========================================================
   PORTFOLIO
   =========================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.proj {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.proj::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,90,.10), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.proj:hover { transform: translateY(-4px); border-color: rgba(201,161,90,.30); box-shadow: var(--shadow-md); }
.proj:hover::after { opacity: 1; }
.proj__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: .76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-mono);
}
.proj__meta .year { color: var(--gold-2); }
.proj h3 { margin-bottom: 10px; font-size: 1.4rem; }
.proj p { color: var(--muted); margin-bottom: 20px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .72rem; padding: 5px 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; color: var(--navy); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono);
}

/* ===========================================================
   PROCESS
   =========================================================== */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
  font-family: var(--font-serif); font-size: 3rem;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 14px; font-weight: 700;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step + .step::before {
  content: ''; position: absolute; left: -16px; top: 56px; height: 2px; width: 14px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .55;
}

/* ===========================================================
   CTA BANNER
   =========================================================== */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(11,29,51,.95) 0%, rgba(26,42,92,.92) 60%, rgba(10,20,48,.96) 100%),
    var(--photo-cta) center/cover no-repeat;
  color: #fff; text-align: center; border-radius: var(--radius-lg);
  padding: 80px 32px; margin: 0; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 350px at 50% 0%, rgba(201,161,90,.30), transparent 65%);
  box-shadow: inset 0 0 0 1px rgba(201,161,90,.28);
  border-radius: var(--radius-lg);
}
.cta-banner::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: shimmer 7s var(--ease) infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  50%  { left: 110%; }
  100% { left: 110%; }
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 30px; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ===========================================================
   CONTACTO
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: .72rem;
  color: var(--muted); margin-bottom: 7px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
}
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 1rem;
  background: #fff; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,161,90,.18);
  background: #FFFCF5;
}
.field textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-size: .94rem; }
.alert--ok { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.alert--err { background: #FDECEA; color: #8A1C12; border: 1px solid #F5C6C0; }

.contact-info {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--radius); padding: 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-info::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,90,.22), transparent 70%);
}
.contact-info > * { position: relative; }
.contact-info h3 { color: #fff; margin-bottom: 22px; }
.contact-info p, .contact-info a { color: rgba(255,255,255,.85); }
.contact-info a:hover { color: var(--gold); }
.contact-info .row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-info .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(201,161,90,.18); color: var(--gold);
  border: 1px solid rgba(201,161,90,.22);
  display: grid; place-items: center; font-size: 1rem; flex: 0 0 38px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--navy-3);
  color: rgba(255,255,255,.72); padding: 80px 0 28px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1000px 400px at 50% 0%, rgba(201,161,90,.08), transparent 70%);
  pointer-events: none;
}
/* Marca de água editorial */
.site-footer::after {
  content: 'ÁPICE';
  position: absolute; right: -0.04em; bottom: -0.34em;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(120px, 17vw, 240px); line-height: 1;
  letter-spacing: .04em;
  color: rgba(255,255,255,.028);
  pointer-events: none; user-select: none;
}
.site-footer > * { position: relative; }
.site-footer h4 {
  color: #fff; font-family: var(--font-mono); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .2em; margin-bottom: 18px;
  font-weight: 500;
}
.site-footer a {
  color: rgba(255,255,255,.65); display: block; padding: 5px 0; font-size: .94rem;
  transition: color .15s var(--ease);
}
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid .brand img { height: 50px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); letter-spacing: .06em;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
  padding: 0; display: grid; place-items: center; color: rgba(255,255,255,.85);
  text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  font-family: var(--font-mono);
  transition: all .25s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-2px); }

/* ===========================================================
   REVEAL + transições
   =========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease-cinematic), transform .65s var(--ease-cinematic); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

#view { transition: opacity .25s var(--ease); }
#view.page-leave { opacity: 0; transform: translateY(8px); }
#view.page-enter { animation: pageIn .5s var(--ease-cinematic) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fadeup { animation: fadeUp .8s var(--ease-cinematic) both; }
.fadeup--d1 { animation-delay: .12s; }
.fadeup--d2 { animation-delay: .24s; }
.fadeup--d3 { animation-delay: .36s; }
.fadeup--d4 { animation-delay: .48s; }

/* ===========================================================
   RESPONSIVO
   =========================================================== */
@media (max-width: 1080px) {
  .megamenu__inner { grid-template-columns: repeat(3, 1fr); }
  .megamenu__col { padding: 32px 24px; }
}
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .hero { padding: 70px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat + .stat { border-left: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .step + .step::before { display: none; }
  .hero__chip { display: none; }

  .menu-toggle { display: block; }
  /* O backdrop-filter do header tornaria o menu fixed relativo ao header
     (altura 72px) e invisível; em mobile usa-se fundo sólido sem blur. */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed; top: 72px; right: 0; bottom: 0; width: min(86vw, 340px);
    z-index: 120;
    background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 22px 18px 32px; gap: 2px; transform: translateX(110%);
    transition: transform .28s var(--ease);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(11,29,51,.10);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-item > a {
    width: 100%; justify-content: space-between;
    padding: 16px 18px; font-size: 1.05rem;
    border-radius: 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav-item:last-child > a { border-bottom: 0; }
  .nav-item .caret { display: none; }
  /* Em mobile o megamenu full-width não faz sentido — escondemos */
  #megamenu-host { display: none; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .cta-banner { padding: 56px 24px; }
  .container { padding: 0 22px; }
}

/* ===========================================================
   POLISH: fundo de partículas, ticker de sectores e micro-animações
   =========================================================== */

/* Rede de partículas (atrás de tudo, sobre a foto de fundo) */
#bg-canvas {
  position: fixed; inset: 0; z-index: -8;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .5;
}

/* Faixa contínua de sectores */
.ticker {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-cream);
  overflow: hidden;
}
.ticker__label {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 18px 28px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy); background: #fff;
  border-right: 1px solid var(--line);
  position: relative; z-index: 2;
  box-shadow: 8px 0 18px -10px rgba(11,29,51,.15);
}
.ticker__viewport {
  flex: 1 1 auto; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
  will-change: transform;
}
.ticker__track > * { margin-right: 34px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600;
  color: var(--ink-mid); letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.ticker__item:hover { color: var(--gold-2); }
.ticker__sep { color: var(--gold); font-size: .55rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Botão primário: brilho a atravessar no hover */
.btn--primary { overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 130%; }

/* Ícones dos cards: leve rotação junto com a escala */
.card:hover .card__icon { transform: scale(1.1) rotate(-4deg); }

/* Etapas do processo: elevação e realce do número */
.step {
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(201,161,90,.35); box-shadow: var(--shadow-md); }
.step__num { transition: transform .3s var(--ease); transform-origin: left bottom; }
.step:hover .step__num { transform: scale(1.08); }

/* Valores: barra lateral engrossa no hover */
.value::before { transition: width .3s var(--ease); }
.value:hover::before { width: 6px; }

/* Megamenu: entrada das colunas em cascata */
.megamenu__col { opacity: 0; transform: translateY(10px); }
.megamenu.open .megamenu__col {
  opacity: 1; transform: translateY(0);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease);
}
.megamenu.open .megamenu__col:nth-child(1) { transition-delay: .03s; }
.megamenu.open .megamenu__col:nth-child(2) { transition-delay: .09s; }
.megamenu.open .megamenu__col:nth-child(3) { transition-delay: .15s; }

/* Links do rodapé: deslizam suavemente para a direita */
.site-footer a { transition: color .2s var(--ease), transform .2s var(--ease); }
.site-footer .footer-grid a:hover { transform: translateX(4px); }

/* Chips do hero: sombra dourada suave */
.hero__chip { transition: box-shadow .3s var(--ease); }
.hero__chip:hover { box-shadow: 0 24px 60px rgba(201,161,90,.28); }

/* Fotos da equipa: anel dourado ganha vida no hover */
.member__photo::after { transition: box-shadow .3s var(--ease); }
.member:hover .member__photo::after { box-shadow: inset 0 0 0 4px rgba(201,161,90,.55); }

/* Tags do portfólio: tom dourado no hover do projecto */
.tag { transition: background .25s var(--ease), border-color .25s var(--ease); }
.proj:hover .tag { background: var(--bg-cream); border-color: rgba(201,161,90,.35); }

/* Split media com fotografia real */
.split__media--photo { padding: 0; }
.split__media--photo::before, .split__media--photo::after { display: none; }
.split__media--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none; filter: none;
}

/* Mensagem da fundadora */
.founder {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center;
}
.founder__photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--shadow-lg);
}
.founder__photo::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(201,161,90,.35);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__quote {
  margin: 0 0 22px; padding: 0 0 0 24px;
  border-left: 3px solid var(--gold);
  font-size: 1.08rem; line-height: 1.75; color: var(--ink-mid);
  text-wrap: pretty;
}
.founder__quote::before { content: '“'; font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold); line-height: 0; margin-right: 4px; vertical-align: -0.35em; }
.founder__quote::after  { content: '”'; font-family: var(--font-serif); font-size: 2.2rem; color: var(--gold); line-height: 0; margin-left: 4px; vertical-align: -0.35em; }
.founder__name { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.founder__role {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-2); margin-top: 4px;
}

/* Grelha de sectores */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector {
  display: flex; align-items: baseline; gap: 14px;
  padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--navy); line-height: 1.4;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.sector:hover { transform: translateY(-3px); border-color: rgba(15,107,109,.35); box-shadow: var(--shadow-md); }
.sector__num {
  font-family: var(--font-mono); font-size: .78rem; color: var(--teal);
  letter-spacing: .06em; flex: 0 0 auto;
}

/* Insights (Reflita connosco) — acentos teal (dados/inovação) */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 980px; margin: 0 auto; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.post::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--teal), rgba(15,107,109,.35));
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(15,107,109,.30); }
.post__image {
  margin: -30px -30px 20px; /* cobre o padding do card */
  aspect-ratio: 16/8; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__image img { transform: scale(1.04); }
.post__file {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; font-weight: 600; font-size: .88rem; color: var(--navy);
}
.post__file:hover { color: var(--teal); }
.post__file-ic {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; padding: 4px 8px; border-radius: 6px;
  background: var(--teal-soft); color: var(--teal);
  border: 1px solid rgba(15,107,109,.25);
}
.post__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* Filtro por etiqueta + acções do post */
.tag-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tag-chip {
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; font-family: inherit;
  font-size: .84rem; font-weight: 600; color: var(--ink-mid);
  transition: all .2s var(--ease);
}
.tag-chip:hover { border-color: var(--teal); color: var(--teal); }
.tag-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.post__actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.post__actions .post__file { margin-top: 0; }
.post__more {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: .88rem; font-weight: 700; color: var(--teal);
  transition: color .2s var(--ease);
}
.post__more:hover { color: var(--navy); }

/* Leitor de artigo */
.post-reader { overflow-y: auto; padding: 28px 34px 40px; }
.post-reader__image { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.post-reader h2 { margin: 6px 0 16px; }
.post-reader__body { color: var(--ink-mid); line-height: 1.8; font-size: 1rem; }

/* Visualizador de PDF embutido */
.pdf-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,19,34,.78);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: pageIn .25s var(--ease) both;
}
.pdf-modal__box {
  width: min(1000px, 100%); height: min(86vh, 100%);
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.pdf-modal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.pdf-modal__bar strong { color: var(--navy); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-modal__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.pdf-modal__actions a { font-size: .85rem; font-weight: 600; color: var(--teal); }
.pdf-modal__close {
  border: 0; background: var(--navy); color: #fff; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: .9rem;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.pdf-modal__close:hover { background: var(--gold-2); }
.pdf-modal iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 640px) {
  .pdf-modal { padding: 10px; }
  .pdf-modal__box { height: 92vh; }
}
.post__tag {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft);
  padding: 4px 10px; border-radius: 999px;
}
.post__date { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.post h3 { margin-bottom: 10px; }
.post__body { color: var(--ink-mid); font-size: .96rem; line-height: 1.7; }
.insights-empty {
  text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  color: var(--muted);
}
.insights-empty__icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--teal-soft); color: var(--teal);
}

@media (max-width: 980px) {
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder__photo { max-width: 300px; }
  .sector-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ticker__label { padding: 14px 18px; }
  .ticker__item { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bg-photo, .bg-aurora, #bg-canvas { display: none; }
  .megamenu__col { opacity: 1; transform: none; }
}
