/* =========================================================
   A.P.C.H — Soluções em Arquitetura e Engenharia Civil
   Sistema visual baseado no layout RealtyFlow (Divi) com a
   identidade A.P.C.H: teal do logótipo + antracite.
   ========================================================= */

:root {
  --teal: #007a99;
  --teal-600: #066a85;
  --teal-700: #0b5c72;
  --teal-900: #0f3f4d;
  --teal-50: #e9f4f7;
  --ink: #0b0f11;
  --ink-2: #16191b;
  --black: #000;
  --text: #5b5b5b;
  --text-2: #7a7a7a;
  --heading: #0a0a0a;
  --soft: #f5f5f5;
  --soft-2: #e9e9e9;
  --line: #e2e2e2;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 10px;
  --pill: 40px;
  --shadow: 0 2px 5px rgba(0, 0, 0, .1);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, .35);
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* grão do vidro glacial (feTurbulence em mosaico): --frost = pontos teal escuros para vidro claro,
     --frost-ice = geada branca fina para vidro teal */
  --frost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .2 0 0 0 0 .26 2.4 0 0 0 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  --frost-ice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.4 0 0 0 -1.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  --container: 1180px;
  --container-wide: 1320px;
  --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
svg[aria-hidden="true"] { width: 20px; height: 20px; flex: 0 0 auto; }
.stat .ic svg, .sgrid .cell a.more svg { width: 14px; height: 14px; }
.stat .ic svg { width: 22px; height: 22px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-soft { background: var(--soft); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

/* ---------- Tipografia ---------- */
.h-display { font-size: clamp(38px, 4.4vw, 56px); }
.h1 { font-size: clamp(34px, 4vw, 52px); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.h4 { font-size: 22px; font-weight: 500; }
.h5 { font-size: 19px; font-weight: 500; }
.lead { font-size: 17px; line-height: 1.6; }
.small { font-size: 13px; }
.muted { color: var(--text-2); }
.white { color: #fff; }
.teal { color: var(--teal); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px; border: 1px solid var(--line); border-radius: var(--pill);
  font-size: 14px; font-weight: 500; color: var(--heading); background: #fff;
  margin-bottom: 22px;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--teal); }
.eyebrow.on-dark { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; }
.eyebrow.on-dark svg { color: #fff; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.section-head .side { padding-bottom: 6px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head.center .h2 { max-width: 720px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 30px; border-radius: var(--pill); border: 0; cursor: pointer;
  font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  background: var(--teal); color: #fff;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25), transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 122, 153, .7); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }
.btn-light { background: #fff; color: var(--teal); }
.btn-ghost { background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-outline { background: transparent; color: var(--heading); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--heading); box-shadow: none; }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 500; font-size: 17px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: transform .35s var(--ease), background .3s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { transform: rotate(45deg); background: var(--black); }
.icon-btn.dark { background: var(--ink); }
.icon-btn.light { background: #fff; color: var(--teal); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader svg { width: 150px; height: auto; }
.preloader .mark path, .preloader .mark rect { stroke: var(--teal); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards; }
.preloader .mark .dark { stroke: #fff; animation-delay: .25s; }
.preloader .word { color: #fff; font-size: 26px; letter-spacing: .32em; font-weight: 300; opacity: 0; animation: fadeUp .8s .6s var(--ease) forwards; }
.preloader .word b { font-weight: 600; }
.preloader .bar { width: 160px; height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 2px; }
.preloader .bar i { display: block; height: 100%; width: 100%; background: var(--teal); transform: translateX(-100%); animation: load 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes load { to { transform: translateX(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--teal), #35b3d2); z-index: 1200; transition: width .1s linear; }

/* ---------- Cabeçalho ---------- */
.header { position: absolute; top: 24px; left: 0; right: 0; z-index: 900; }
.header .bar {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter);
}
.header .pill {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(245, 245, 245, .96); backdrop-filter: blur(10px); border-radius: 60px; padding: 10px 14px 10px 26px;
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .45);
  transition: box-shadow .3s, background .3s;
}
.header.fixed { position: fixed; top: 0; animation: headerIn .5s var(--ease); }
.header.fixed .bar { padding-top: 12px; }
.header.fixed .pill { background: rgba(255, 255, 255, .95); box-shadow: 0 10px 40px -14px rgba(0, 0, 0, .35); }
.header.hidden { transform: translateY(-120%); transition: transform .4s var(--ease); }
@keyframes headerIn { from { transform: translateY(-110%); } to { transform: none; } }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-size: 15.5px; font-weight: 500; color: var(--heading); border-radius: 30px;
  transition: color .2s, background .2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--teal); }
.nav > li > a svg { width: 10px; height: 10px; opacity: .7; transition: transform .3s; }
.nav > li:hover > a svg { transform: rotate(180deg); }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 10;
}
.nav > li:hover .sub { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav .sub a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--heading); }
.nav .sub a:hover { background: var(--soft); color: var(--teal); }
.nav .sub .grp { padding: 8px 14px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.header .actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }

/* menu mobile */
.mobile-nav { position: fixed; inset: 0; z-index: 950; background: var(--ink); color: #fff; padding: 110px 30px 40px; overflow: auto; transform: translateY(-100%); transition: transform .5s var(--ease); }
.mobile-nav.open { transform: none; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 26px; font-weight: 400; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-nav .sub a { font-size: 17px; padding: 10px 0 10px 18px; color: rgba(255, 255, 255, .75); border: 0; }
.mobile-nav .close { position: absolute; top: 28px; right: 30px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); border: 0; display: flex; align-items: center; justify-content: center; }
.mobile-nav .close svg { width: 18px; height: 18px; }
.mobile-nav .contact { margin-top: 30px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.mobile-nav .contact b { color: #fff; font-size: 18px; display: block; }

/* ---------- Hero (início) — réplica da hero Homevia ----------
   Camadas: fundo liso (--sky, cor do zénite) → imagem com céu → palavra gigante → a mesma imagem com o céu recortado
   → sombra inferior → conteúdo. Medidas, tempos e curvas copiados da hero Homevia (desktop ≥1200, tablet ≥768, telemóvel). */
.hero {
  --ease-fr: cubic-bezier(.44, 0, .56, 1); /* curva das animações do Framer */
  --word-top: 105px;
  position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: center; padding: 120px 30px 40px;
  background: linear-gradient(180deg, var(--sky, #024667) 0%, var(--sky, #024667) 38%, var(--ink) 72%);
  color: #fff; container-type: inline-size;
}
/* a imagem original começa a ~41% da altura da palavra; o céu prolongado (260/1672 = 15.55% da largura) fica por cima */
.hero-media {
  position: absolute; left: 0; width: 100%; aspect-ratio: 1672 / 1201; z-index: 1; pointer-events: none;
  top: calc(var(--word-top) - 6.86vw); top: calc(var(--word-top) - 6.86cqw);
  animation: heroScale 1.4s .2s var(--ease-fr) both, heroFade 1.4s .2s var(--ease-fr) both;
}
.hero-media--front { z-index: 3; animation-name: heroScale, heroFadeFront; }
/* o fundo da imagem esbate-se: nunca há linha de corte quando o ecrã é mais alto do que a imagem */
.hero-media:not(.hero-media--front) { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-media img.is-active, .hero-thumb img.is-active { opacity: 1; }
.hero-word {
  position: absolute; z-index: 2; top: var(--word-top); left: 5%; width: 90%; margin: 0; line-height: 0; pointer-events: none;
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.hero-word svg { width: 100%; height: auto; }
.hero-word text { font-family: var(--font); font-size: 1000px; font-weight: 500; letter-spacing: -20px; }
.hero-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 274px; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(11, 15, 17, 0), var(--ink)); } /* termina na cor da secção seguinte */
.hero-inner {
  position: relative; z-index: 5; width: 100%; max-width: 1080px;
  display: grid; grid-template-columns: minmax(0, 334px) 1fr auto 1fr 229px; grid-template-areas: ". . . . thumbs" "desc . proof . card";
  align-items: end; row-gap: 10px;
}
.hero-thumbs { grid-area: thumbs; display: flex; flex-direction: column; gap: 8px; padding: 7px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px; animation: heroUp .6s .1s var(--ease-fr) both; }
.hero-thumb { position: relative; display: block; width: 213px; height: 100px; padding: 0; border: 1px solid #fff; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .1); cursor: pointer; }
.hero-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-thumb:focus-visible, .hero-card-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-desc { grid-area: desc; margin: 0; font-size: 16px; line-height: 24px; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.hero-proof { grid-area: proof; display: flex; align-items: center; gap: 10px; }
.hero-avatars { display: flex; flex: none; }
.hero-avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, .85); margin-left: -11px; }
.hero-avatars img:first-child { margin-left: 0; }
.hero-proof p { margin: 0; font-size: 14px; line-height: 14px; letter-spacing: -.02em; color: #fff; }
.hero-proof b { font-weight: 400; }
.hero-card { grid-area: card; display: flex; flex-direction: column; gap: 15px; padding: 16px; background: #fff; border-radius: 12px; }
.hero-card-text { display: flex; flex-direction: column; gap: 4px; }
.hero-card-title { margin: 0; font-size: 16px; line-height: 24px; letter-spacing: -.01em; color: #000; }
.hero-card-loc { margin: 0; font-size: 14px; line-height: 14px; letter-spacing: -.02em; color: rgba(0, 0, 0, .6); }
.hero-card-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 10px 20px; border-radius: 10px; background: #222; color: #fff; font-size: 16px; line-height: 24px; letter-spacing: -.01em; overflow: hidden; }
/* texto que "rola" ao passar o rato (0.4s linear, como no Homevia) */
.hero-card-btn span { display: block; transition: transform .4s linear, opacity .4s linear; }
.hero-card-btn .t2 { position: absolute; left: 0; right: 0; top: 10px; text-align: center; transform: translateY(34px); opacity: 0; }
.hero-card-btn:hover .t1 { transform: translateY(-34px); opacity: 0; }
.hero-card-btn:hover .t2 { transform: none; opacity: 1; }
.hero-desc, .hero-proof, .hero-card { animation: heroUp .6s .2s var(--ease-fr) both; }
/* a entrada (zoom para trás 1.15 → 1) espera pelo fim do preloader e pela 1.ª imagem descodificada (classe is-in, main.js) */
.hero:not(.is-in) .hero-media, .hero:not(.is-in) .hero-thumbs, .hero:not(.is-in) .hero-desc, .hero:not(.is-in) .hero-proof, .hero:not(.is-in) .hero-card { animation-play-state: paused; }
@keyframes heroScale { from { scale: 1.15; } to { scale: 1; } }
@keyframes heroFade { from { opacity: .2; } to { opacity: 1; } }
@keyframes heroFadeFront { 0%, 45% { opacity: 0; } to { opacity: 1; } }
@keyframes heroUp { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Banda 2 */
/* sem foto: fundo antracite com brilhos teal/gelo por trás dos retângulos em vidro fosco */
.band { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--ink); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 60% at 76% 42%, rgba(0, 122, 153, .55), transparent 70%),
    radial-gradient(22% 42% at 93% 80%, rgba(150, 220, 236, .2), transparent 70%),
    radial-gradient(34% 70% at 10% 105%, rgba(0, 122, 153, .3), transparent 70%);
}
.band .container-wide { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 110px; }
.band .h2 { color: #fff; max-width: 560px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 24px; text-align: center;
  background: linear-gradient(145deg, rgba(214, 240, 247, .2), rgba(214, 240, 247, .05));
  border: 1px solid rgba(214, 240, 247, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 30px 60px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.stat-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 42%); }
.stat-card .lbl { position: relative; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.stat-card .val { position: relative; font-size: 44px; color: #a8e4f2; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; }
.stat-card .val small { font-size: 18px; }

/* Cartões de características */
.features { margin-top: -70px; position: relative; z-index: 3; }
.features .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.feature { background: var(--soft); border-radius: var(--radius); padding: 28px 18px 26px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: #fff; }
.feature .ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: var(--shadow); color: var(--teal); transition: background .3s, color .3s; }
.feature:hover .ic { background: var(--teal); color: #fff; }
.feature .ic svg { width: 26px; height: 26px; }
.band + .features .feature {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(233, 244, 247, .74), rgba(233, 244, 247, .5));
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 122, 153, .1), 0 26px 50px -28px rgba(11, 15, 17, .5);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
.band + .features .feature:hover { background: rgba(255, 255, 255, .9); }
.feature h4 { font-size: 17px; font-weight: 500; line-height: 1.3; }

/* ---------- Sobre (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: end; }
.bento .card { border-radius: var(--radius); padding: 12px; color: #fff; position: relative; overflow: hidden; }
.bento .card.dark { background: var(--ink); }
.bento .card.teal { background: var(--teal); padding: 26px 22px; }
.bento .card img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; }
.bento .card .body { padding: 18px 12px 12px; }
.bento .card h4 { color: #fff; font-size: 21px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.bento .card p { font-size: 13px; color: rgba(255, 255, 255, .75); }
.bento .card .big { font-size: 60px; font-weight: 300; line-height: .95; letter-spacing: -.03em; color: #fff; }
.bento .card .big-lbl { font-size: 18px; color: #fff; margin: 8px 0 8px; }
.bento .card blockquote { margin: 0; padding: 14px 12px 12px; font-size: 14px; color: #fff; line-height: 1.55; }
.bento .card .who { padding: 0 12px 16px; font-size: 13px; }
.bento .card .who b { display: block; font-weight: 500; color: #fff; }
.bento .card .who span { color: rgba(255, 255, 255, .6); font-size: 12px; }
.bento .card.teal p { color: #fff; font-size: 18px; line-height: 1.35; margin-bottom: 44px; }
.bento .card.teal .big { font-size: 68px; }
.bento .card.h1x { min-height: 230px; }

/* Marquee gigante */
.marquee { overflow: hidden; white-space: nowrap; padding: 30px 0; user-select: none; }
.marquee .track { display: inline-flex; gap: 40px; align-items: center; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { font-size: clamp(48px, 7vw, 104px); font-weight: 300; color: var(--text); letter-spacing: -.03em; line-height: 1.1; display: inline-flex; align-items: center; gap: 40px; }
.marquee .item svg { width: .5em; height: .5em; color: var(--teal); }
.marquee.dark .item { color: rgba(255, 255, 255, .8); }
.marquee.small .item { font-size: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; gap: 24px; }
.marquee.small .item svg { width: 10px; height: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Serviços (fundo escuro) ---------- */
.services-dark { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.services-dark .bg { position: absolute; inset: 0; }
.services-dark .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.services-dark .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 12, .8), rgba(5, 10, 12, .55)); }
.services-dark .container-wide { position: relative; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sgrid .cell { padding: 34px 28px 28px; border: 1px dashed rgba(255, 255, 255, .35); position: relative; min-height: 250px; display: flex; flex-direction: column; transition: background .3s; }
.sgrid .cell:hover { background: rgba(255, 255, 255, .06); }
.sgrid .cell.intro { border: 0; padding-left: 20px; justify-content: center; }
.sgrid .cell.intro .h2 { color: #fff; }
.sgrid .cell h5 { color: #fff; font-size: 21px; font-weight: 500; margin-bottom: auto; padding-bottom: 40px; line-height: 1.3; }
.sgrid .cell p { font-size: 13.5px; color: rgba(255, 255, 255, .8); max-width: 300px; padding-right: 60px; margin: 0; }
.sgrid .cell .n { position: absolute; right: 26px; bottom: 26px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sgrid .cell .ic { position: absolute; top: 28px; right: 26px; width: 40px; height: 40px; color: var(--teal); opacity: .9; }
.sgrid .cell .ic svg { width: 100%; height: 100%; }
.sgrid .cell a.more { margin-top: 18px; font-size: 13px; color: #fff; display: inline-flex; gap: 6px; align-items: center; opacity: .8; }
.sgrid .cell a.more:hover { opacity: 1; color: var(--teal); }

/* ---------- Projetos (cards) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
/* Vidro glacial: a capa do projeto (miniatura clareada e refletida em --amb, gerada por prepare_glass.py)
   passa por baixo de um véu gelo com grão; ::after = aresta de luz, ::before = brilho que segue o cursor (main.js).
   O levantar usa `translate` porque `.reveal.in` fixa `transform: none`. */
.pcard {
  position: relative; isolation: isolate; border-radius: var(--radius); padding: 10px 10px 14px; display: flex; flex-direction: column;
  background:
    var(--frost),
    linear-gradient(180deg, rgba(247, 251, 252, .5), rgba(238, 247, 250, .66)),
    var(--amb, linear-gradient(160deg, #d3ebf1, #eef6f8)) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(11, 15, 17, .05), 0 26px 50px -32px rgba(6, 52, 66, .55);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
.pcard.reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), translate .45s var(--ease), box-shadow .45s var(--ease); }
.pcard::before, .mini::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.pcard::after, .mini::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pcard::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 80%), rgba(255, 255, 255, .6), transparent 70%); }
.pcard::after { background: linear-gradient(155deg, #fff, rgba(255, 255, 255, .5) 38%, rgba(255, 255, 255, .15) 68%, rgba(255, 255, 255, .75)); }
.pcard:hover { translate: 0 -6px; box-shadow: 0 0 0 1px rgba(11, 15, 17, .05), 0 34px 60px -30px rgba(6, 52, 66, .6); }
.pcard:hover::before, .mini:hover::before { opacity: 1; }
.pcard .media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 2.7; box-shadow: 0 10px 24px -16px rgba(6, 40, 52, .55); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .media img { transform: scale(1.06); }
.pcard .tag {
  position: absolute; top: 12px; left: 12px; border-radius: 30px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--heading);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 6px 18px -8px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
}
.pcard .tag.real { background: rgba(0, 92, 116, .78); border-color: rgba(168, 228, 242, .4); color: #fff; box-shadow: inset 0 1px 0 rgba(168, 228, 242, .45), 0 6px 18px -8px rgba(0, 0, 0, .5); }
.pcard .body { padding: 16px 10px 4px; }
.pcard h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.pcard .loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #45535a; }
.pcard .loc svg { width: 14px; height: 14px; color: var(--teal); }
.pcard .meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(6, 52, 66, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); font-size: 13px; color: #45535a; }
.pcard .meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard .meta svg { width: 15px; height: 15px; color: var(--teal); }
.pcard .meta .icon-btn { margin-left: auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 20px -10px rgba(0, 95, 120, .8); }
.pcard .meta .icon-btn svg { color: #fff; width: 16px; height: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filters button { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .25s; }
.filters button:hover, .filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-row { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }

/* ---------- Porquê nós ---------- */
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.why .visual { position: relative; padding-bottom: 130px; padding-right: 60px; }
.why .visual > img { border-radius: var(--radius); aspect-ratio: 3 / 3.2; object-fit: cover; width: 100%; }
.skills { position: absolute; right: 0; bottom: 0; width: 300px; background: var(--soft); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-lg); }
.skills h4 { font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.skill { margin-bottom: 14px; }
.skill .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--heading); margin-bottom: 6px; }
.skill .lbl b { font-weight: 500; }
.skill .bar { height: 5px; background: #d9d9d9; border-radius: 5px; overflow: hidden; }
.skill .bar i { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.in-view .skill .bar i { transform: scaleX(1); }
.why .h2 { margin-bottom: 18px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
/* Gelo teal: luz ciano a entrar pelo canto, grão de gelo, aresta de luz e brilho que segue o cursor
   (partilha ::before/::after com .pcard). A zona do texto fica em teal escuro: branco mantém contraste AA. */
.mini {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; padding: 24px 16px; text-align: center; color: #fff;
  background:
    var(--frost-ice),
    linear-gradient(118deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, 0) 31%),
    radial-gradient(110% 80% at 8% -10%, rgba(140, 222, 240, .7), transparent 60%),
    radial-gradient(95% 75% at 108% 112%, rgba(2, 44, 58, .6), transparent 66%),
    linear-gradient(165deg, #078aab, var(--teal) 48%, #006883);
  box-shadow: inset 0 -1px 0 rgba(0, 38, 50, .3), 0 20px 36px -22px rgba(0, 86, 110, .8);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.mini.reveal { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), translate .35s var(--ease), box-shadow .35s var(--ease); }
.mini::before { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 30%), rgba(190, 238, 250, .22), transparent 70%); }
.mini::after { background: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .2) 40%, rgba(255, 255, 255, .06) 70%, rgba(255, 255, 255, .35)); }
.mini:hover { translate: 0 -4px; box-shadow: inset 0 -1px 0 rgba(0, 38, 50, .3), 0 28px 44px -22px rgba(0, 86, 110, .85); }
.mini .ic {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--teal);
  background: linear-gradient(160deg, #fff 30%, #d9eff5);
  box-shadow: inset 0 -2px 6px rgba(0, 122, 153, .16), 0 10px 20px -10px rgba(0, 30, 40, .6);
}
.mini .ic svg { width: 24px; height: 24px; }
.mini span { font-size: 15px; font-weight: 500; line-height: 1.3; display: block; }
.divider { height: 1px; background: var(--line); margin: 30px 0; }
.call-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.call { display: flex; align-items: center; gap: 12px; }
.call .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.call .ic svg { width: 20px; height: 20px; }
.call small { display: block; color: var(--teal); font-size: 14px; }
.call b { font-size: 18px; font-weight: 500; color: var(--heading); }

/* ---------- CTA vídeo ---------- */
.cta-video { position: relative; padding: 0 0 70px; }
.cta-video::before { content: ""; position: absolute; left: 0; right: 0; bottom: 70px; height: 190px; background: var(--soft-2); border-radius: var(--radius); }
.cta-video .box { position: relative; margin: 0 auto; max-width: 940px; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--ink); min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 30px; }
.cta-video .box img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; }
/* efeitos de scroll da CTA da RealtyFlow (main.js): zoom 70% → 100% e fundo em parallax a 30% */
.cta-video .box[data-cta-zoom] { transform: scale(var(--cta-s, 1)); transition: transform .2s linear; }
.cta-video .box[data-cta-zoom] img { height: calc(100% + var(--cta-pv, 0px)); transform: translate3d(0, var(--cta-py, 0px), 0); }
.cta-video .box::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.cta-video .inner { position: relative; z-index: 2; max-width: 680px; }
.cta-video .h2 { color: #fff; margin: 26px 0 30px; }
.badge { width: 110px; height: 110px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--teal); }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 15s linear infinite; }
.badge svg.ring text { font-size: 11.5px; letter-spacing: .2em; font-weight: 500; fill: var(--ink); text-transform: uppercase; }
.badge .core { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; }
.badge .core svg { width: 18px; height: 18px; }
.badge.dark { background: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Testemunhos ---------- */
.tslider { overflow: hidden; }
.tslider .track { display: flex; gap: 22px; transition: transform .7s var(--ease); }
.tcard { flex: 0 0 calc((100% - 44px) / 3); background: var(--soft); border-radius: var(--radius); padding: 30px 28px 26px; display: flex; flex-direction: column; }
.tcard .stars { display: flex; gap: 3px; color: var(--heading); margin-bottom: 18px; }
.tcard .stars svg { width: 15px; height: 15px; fill: currentColor; }
.tcard blockquote { margin: 0 0 26px; font-size: 14px; line-height: 1.7; flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.tcard .av { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.tcard .who b { display: block; font-weight: 500; color: var(--heading); font-size: 15px; }
.tcard .who span { font-size: 12px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #d5d5d5; cursor: pointer; padding: 0; transition: all .3s; }
.dots button.active { background: var(--teal); width: 22px; border-radius: 6px; }

/* ---------- Pacotes ---------- */
.plans { display: grid; gap: 22px; }
.plan { position: relative; background: var(--soft); border-radius: var(--radius); padding: 10px; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; align-items: center; transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan .info { padding: 24px 22px; }
.plan h3 { font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.plan .price { font-size: 44px; color: var(--teal); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; }
.plan .price small { display: block; font-size: 13px; color: var(--text); letter-spacing: 0; margin-top: 4px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 12px; }
.plan ul li svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; margin-top: 3px; }
.plan .media { border-radius: 14px; overflow: hidden; height: 100%; min-height: 240px; }
.plan .media img { width: 100%; height: 100%; object-fit: cover; }
.plan.featured { outline: 1px solid rgba(0, 122, 153, .3); outline-offset: -1px; } /* o destaque vem do beam; sem movimento volta o contorno teal */
.plan .ribbon { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }

/* Beam: feixe de luz que percorre o contorno do cartão. Porte em CSS puro do preset "md"
   do border-beam 1.4.1 (libraries.dev/beam, MIT © 2026 Jakub Antalik), paleta "colorful",
   strength .7. ::before = brilho interior (faixa de 28 px junto às arestas), ::after = traço
   de 1 px, .beam-bloom = cabeça do feixe. Ajustes ao cartão claro e largo: as manchas de cor
   passam de px a % (medidas no cartão de 348×122 da demo, a cobertura mantém-se em qualquer
   tamanho) e as opacidades sobem (o tema claro original fica invisível sobre --soft). O bloom
   original leva blur(8px), mas o filtro corre antes da máscara de 1 px e só lhe tira ~½ da
   opacidade: aqui fica sem filtro a .17 (diferença medida ≤ 3/255), sem desfocar o cartão a cada quadro.
   Roda sempre no cartão em destaque; nos outros acende no hover/foco. main.js pausa-o fora do ecrã. */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
@property --beam-opacity { syntax: "<number>"; initial-value: 0; inherits: true; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }
@keyframes beam-hue {
  0%, 100% { filter: hue-rotate(-30deg) brightness(1.3) saturate(1.5); }
  50% { filter: hue-rotate(30deg) brightness(1.3) saturate(1.5); }
}
.beam {
  --beam-r: var(--radius);
  --beam-strength: .7;
  --beam-stroke: 1; --beam-inner: .7; --beam-bloom: .17;
  --beam-angle: 0deg; --beam-opacity: 0; /* valores explícitos para browsers sem @property */
  --beam-play: paused;
  --beam-arc: conic-gradient(from var(--beam-angle), transparent 0% 30%, rgba(255, 255, 255, .1) 36%, rgba(255, 255, 255, .35) 44%, #fff 52% 80%, rgba(255, 255, 255, .35) 86%, rgba(255, 255, 255, .1) 92%, transparent 95%);
  position: absolute; inset: 0; isolation: isolate; pointer-events: none;
  animation: beam-spin 1.96s linear infinite; animation-play-state: var(--beam-play);
  transition: --beam-opacity .5s ease;
}
.beam::before, .beam::after, .beam-bloom { content: ""; position: absolute; inset: 0; clip-path: inset(0 round var(--beam-r)); }
.beam::before, .beam::after { animation: beam-hue 12s ease-in-out infinite; animation-play-state: var(--beam-play); }
.beam::before {
  z-index: 1; border-radius: var(--beam-r);
  background:
    radial-gradient(ellipse 18.1% 29.5% at 33% -7.4%, rgba(255, 50, 100, .45), transparent),
    radial-gradient(ellipse 15.5% 25.8% at 12% -5%, rgba(40, 140, 255, .45), transparent),
    radial-gradient(ellipse 10.3% 51.6% at 2.1% 68.3%, rgba(50, 200, 80, .45), transparent),
    radial-gradient(ellipse 5.2% 25.8% at 2.1% 68.3%, rgba(30, 185, 170, .45), transparent),
    radial-gradient(ellipse 46.5% 23.6% at 74.4% 100%, rgba(100, 70, 255, .45), transparent),
    radial-gradient(ellipse 22% 19.2% at 55% 100%, rgba(40, 140, 255, .45), transparent),
    radial-gradient(ellipse 19.1% 23.6% at 93.9% 0%, rgba(255, 120, 40, .45), transparent),
    radial-gradient(ellipse 6.7% 31% at 100% 27.1%, rgba(240, 50, 180, .45), transparent),
    radial-gradient(ellipse 13.4% 35.4% at 100% 27.1%, rgba(180, 40, 240, .45), transparent);
  box-shadow: inset 0 0 9px 1px rgba(0, 0, 0, .14);
  -webkit-mask-image: var(--beam-arc), linear-gradient(#fff, transparent 28px, transparent calc(100% - 28px), #fff), linear-gradient(to right, #fff, transparent 28px, transparent calc(100% - 28px), #fff);
  -webkit-mask-composite: source-in, source-over;
  mask-image: var(--beam-arc), linear-gradient(#fff, transparent 28px, transparent calc(100% - 28px), #fff), linear-gradient(to right, #fff, transparent 28px, transparent calc(100% - 28px), #fff);
  mask-composite: intersect, add;
  opacity: calc(var(--beam-opacity) * var(--beam-inner) * var(--beam-strength));
}
.beam::after {
  z-index: 2; padding: 1px; border-radius: calc(var(--beam-r) - 1px);
  background:
    conic-gradient(from var(--beam-angle), transparent 0% 54%, rgba(0, 0, 0, .08) 57%, rgba(0, 0, 0, .2) 60%, rgba(0, 0, 0, .4) 63%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .4) 69%, rgba(0, 0, 0, .2) 72%, rgba(0, 0, 0, .08) 75%, transparent 78%),
    radial-gradient(ellipse 20.1% 32.8% at 33% -7.4%, rgb(255, 50, 100), transparent),
    radial-gradient(ellipse 17.2% 28.7% at 12% -5%, rgb(40, 140, 255), transparent),
    radial-gradient(ellipse 11.5% 57.4% at 2.1% 68.3%, rgb(50, 200, 80), transparent),
    radial-gradient(ellipse 5.7% 28.7% at 2.1% 68.3%, rgb(30, 185, 170), transparent),
    radial-gradient(ellipse 51.7% 26.2% at 74.4% 100%, rgb(100, 70, 255), transparent),
    radial-gradient(ellipse 24.4% 21.3% at 55% 100%, rgb(40, 140, 255), transparent),
    radial-gradient(ellipse 21.3% 26.2% at 93.9% 0%, rgb(255, 120, 40), transparent),
    radial-gradient(ellipse 7.5% 34.4% at 100% 27.1%, rgb(240, 50, 180), transparent),
    radial-gradient(ellipse 14.9% 39.3% at 100% 27.1%, rgb(180, 40, 240), transparent);
  -webkit-mask: var(--beam-arc), linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: var(--beam-arc), linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  opacity: calc(var(--beam-opacity) * var(--beam-stroke) * var(--beam-strength));
}
.beam-bloom {
  z-index: 3; padding: 1px; border-radius: calc(var(--beam-r) - 1px);
  background: conic-gradient(from var(--beam-angle), transparent 0% 58%, rgba(0, 0, 0, .02) 62%, rgba(0, 0, 0, .08) 65%, rgba(0, 0, 0, .2) 67%, rgba(0, 0, 0, .4) 69%, rgba(0, 0, 0, .6) 70% 70.5%, rgba(0, 0, 0, .4) 71.5%, rgba(0, 0, 0, .2) 73%, rgba(0, 0, 0, .08) 75%, rgba(0, 0, 0, .02) 78%, transparent 82%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: calc(var(--beam-opacity) * var(--beam-bloom) * var(--beam-strength));
}
.plan.featured .beam, .plan:hover .beam, .plan:focus-within .beam { --beam-opacity: 1; --beam-play: running; transition-duration: .6s; }
.plan .beam.is-off { --beam-play: paused; }
.static .beam { --beam-angle: 200deg; animation: none; transition: none; }
.static .beam::before, .static .beam::after { animation: none; filter: brightness(1.3) saturate(1.5); }
@media (prefers-reduced-motion: reduce) {
  .beam { display: none; }
  .plan.featured { outline: 2px solid var(--teal); outline-offset: 0; }
}

/* ---------- Contacto ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; }
.contact-split .visual { position: relative; min-height: 520px; }
.contact-split .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-split .overlay { position: absolute; right: 30px; bottom: 30px; left: 30px; background: rgba(10, 14, 16, .78); backdrop-filter: blur(8px); border-radius: 12px; padding: 24px; color: #fff; display: grid; gap: 18px; max-width: 420px; margin-left: auto; }
.contact-split .overlay .row { display: flex; align-items: center; gap: 14px; }
.contact-split .overlay .ic { width: 48px; height: 48px; background: #fff; color: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-split .overlay .ic svg { width: 20px; height: 20px; }
.contact-split .overlay small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.contact-split .overlay b { font-weight: 500; font-size: 18px; }
.contact-split .formwrap { background: var(--soft); padding: 70px 60px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select { width: 100%; padding: 14px 16px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 14px; outline: none; transition: border .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 122, 153, .12); }
.form textarea { min-height: 130px; resize: vertical; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .note { font-size: 12px; color: var(--text-2); }
.form-success { display: none; background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--line); }
.form-success.show { display: block; }

/* ---------- Blog ---------- */
.bcard { display: flex; flex-direction: column; }
.bcard .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 2.4; margin-bottom: 18px; }
.bcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bcard:hover .media img { transform: scale(1.05); }
.bcard .date { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.bcard .date svg { width: 14px; height: 14px; color: var(--teal); }
.bcard h3 { font-size: 20px; font-weight: 500; line-height: 1.3; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex: 1; }
.bcard .more { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--heading); }
.bcard .more .icon-btn { width: 32px; height: 32px; }
.bcard .more .icon-btn svg { width: 13px; height: 13px; }

/* ---------- Rodapé ---------- */
.footer { padding: 40px 0 30px; }
.footer .box { background: var(--ink); color: #fff; border-radius: 26px; padding: 70px 70px 40px; position: relative; overflow: hidden; }
.footer .box::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 122, 153, .35), transparent 65%); pointer-events: none; }
.footer .top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-bottom: 40px; }
.footer .top .giant { grid-column: 2; text-align: center; }
.footer .top > a { grid-column: 3; justify-self: end; }
.footer .giant { font-size: clamp(60px, 9vw, 130px); font-weight: 300; letter-spacing: -.03em; line-height: 1; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer .grid { display: grid; grid-template-columns: 1.3fr 1px .7fr .9fr; gap: 50px; align-items: start; }
.footer .vline { background: rgba(255, 255, 255, .18); height: 100%; min-height: 220px; }
.footer .logo img { height: 56px; width: auto; margin-bottom: 22px; }
.footer p { font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 480px; }
.subscribe { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 40px; padding: 5px 5px 5px 20px; max-width: 460px; margin: 26px 0 26px; }
.subscribe input { flex: 1; background: transparent; border: 0; color: #fff; outline: none; font-size: 14px; }
.subscribe input::placeholder { color: rgba(255, 255, 255, .55); }
.footer h5 { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 20px; }
.footer .links a { display: block; font-size: 15px; color: rgba(255, 255, 255, .8); padding: 6px 0; transition: color .2s, transform .3s var(--ease); }
.footer .links a:hover { color: var(--teal); transform: translateX(4px); }
.footer .cline { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); margin-bottom: 12px; }
.footer .cline svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; margin-top: 4px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.socials a { border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; padding: 5px 12px; font-size: 12.5px; color: #fff; transition: all .25s; }
.socials a:hover { background: var(--teal); border-color: var(--teal); }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: rgba(255, 255, 255, .6); flex-wrap: wrap; }
.footer .bottom a:hover { color: #fff; }
/* assinatura abracciostudio.com em versão compacta (componente no fim da folha): último elemento da linha;
   a partir de 1280 px fica ao centro, entre a tagline e os links; abaixo disso desce para uma linha própria */
.footer .bottom .abr-sig-wrap { flex-basis: 100%; padding: 0; margin: 0; }
.footer .bottom .abr-sig { gap: 8px; padding: 2px 12px 2px 3px; color: #fff; font-size: 10.5px; letter-spacing: .12em; }
.footer .bottom .abr-sig-mark { width: 24px; height: 24px; }
.footer .bottom .abr-sig-mark img { width: 18px; }
.footer .bottom .abr-sig-ring::after { inset: -4px; }
.footer .bottom .abr-sig-text { flex-wrap: wrap; justify-content: center; }
.footer .bottom .abr-sig-name::after { bottom: -4px; }
@media (min-width: 1280px) {
  .footer .bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .footer .bottom > span + span { grid-column: 3; }
  .footer .bottom .abr-sig-wrap { grid-column: 2; grid-row: 1; }
}
.to-top { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 800; opacity: 0; visibility: hidden; transition: all .35s var(--ease); box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .5); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; }
.wa-float { position: fixed; left: 26px; bottom: 26px; z-index: 800; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; border-radius: 40px; padding: 8px 18px 8px 10px; font-weight: 500; font-size: 14px; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .pulse { position: absolute; inset: 0; border-radius: 40px; border: 2px solid #25d366; animation: pulse 2s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Título de página (interiores) ---------- */
.page-hero { position: relative; padding: 190px 0 110px; background: var(--ink); color: #fff; text-align: center; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 12, .55), rgba(5, 10, 12, .75)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); font-weight: 400; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 14px auto 0; font-size: 16px; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 22px; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px; padding: 6px 16px; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; opacity: .8; }
.crumbs b { color: #fff; font-weight: 500; }

/* ---------- Sobre: processo / valores ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--soft); border-radius: var(--radius); padding: 10px; }
.step .media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 2.6; position: relative; }
.step .media img { width: 100%; height: 100%; object-fit: cover; }
.step .media .n { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; }
.step .body { padding: 18px 12px 10px; }
.step h4 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 13.5px; }
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { background: var(--soft); border-radius: var(--radius); padding: 30px 26px; }
.stat .val { font-size: 52px; letter-spacing: -.03em; line-height: 1; color: var(--teal); }
.stat .val small { font-size: 22px; }
.stat h4 { font-size: 18px; font-weight: 500; margin: 12px 0 6px; }
.stat p { font-size: 13.5px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; transition: border-color .3s, transform .3s var(--ease); }
.value:hover { border-color: var(--teal); transform: translateY(-3px); }
.value .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-50); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.value .ic svg { width: 24px; height: 24px; }
.value h4 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.value p { font-size: 13.5px; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mvv .card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px 30px; }
.mvv .card.teal { background: var(--teal); }
.mvv .card h4 { color: #fff; font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.mvv .card p { color: rgba(255, 255, 255, .8); font-size: 14px; }
.mvv .card ul li { font-size: 14px; color: rgba(255, 255, 255, .85); padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mvv .card ul li b { color: #fff; font-weight: 500; }

/* Mapa de Angola */
.map-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.angola { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.angola svg { width: 100%; height: auto; display: block; }
.angola path.land { fill: #eef4f6; stroke: var(--teal); stroke-width: 1.5; }
.angola .city circle.dot { fill: var(--teal); }
.angola .city circle.ring { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0; transform-origin: center; transform-box: fill-box; animation: ring 2.4s ease-out infinite; }
.angola .city:nth-child(2) circle.ring { animation-delay: .5s; }
.angola .city:nth-child(3) circle.ring { animation-delay: 1s; }
.angola .city:nth-child(4) circle.ring { animation-delay: 1.5s; }
.angola .city:nth-child(5) circle.ring { animation-delay: 2s; }
.angola .city text { font-size: 15px; font-weight: 500; fill: var(--heading); }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.prov-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.prov-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--heading); font-weight: 500; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.prov-list li i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }

/* ---------- Equipa ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { background: var(--soft); border-radius: var(--radius); padding: 10px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member .media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 4.6; background: #dfe6e8; }
.member .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.member:hover .media img { transform: scale(1.04); }
.member .body { padding: 18px 10px 12px; }
.member h3 { font-size: 20px; font-weight: 500; }
.member .role { color: var(--teal); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.member .soc { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.member .soc a { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--heading); transition: all .25s; }
.member .soc a:hover { background: var(--teal); color: #fff; }
.member .soc svg { width: 14px; height: 14px; }
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.profile .photo { border-radius: var(--radius); overflow: hidden; position: sticky; top: 110px; }
.profile .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.profile .role { color: var(--teal); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; display: block; }
.profile .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.profile .facts li { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.profile .facts li small { display: block; font-size: 12px; color: var(--text-2); }
.profile .facts li b { font-weight: 500; color: var(--heading); }

/* ---------- Serviços (lista) ---------- */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard { background: var(--soft); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scard .media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 2.6; position: relative; }
.scard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.scard:hover .media img { transform: scale(1.06); }
.scard .media .ic { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.scard .media .ic svg { width: 24px; height: 24px; }
.scard .body { padding: 20px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.scard h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.scard p { font-size: 13.5px; flex: 1; }
.scard .link-arrow { font-size: 15px; margin-top: 16px; }
.service-single { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.service-single .main img.cover { border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; width: 100%; margin-bottom: 30px; }
.service-single .main h2 { font-size: 30px; margin: 30px 0 12px; }
.service-single .main h3 { font-size: 22px; font-weight: 500; margin: 26px 0 10px; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--heading); }
.checks li svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; margin-top: 3px; }
.checks.two { grid-template-columns: 1fr 1fr; }
.aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.aside .box { background: var(--soft); border-radius: var(--radius); padding: 26px 24px; }
.aside .box h4 { font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.aside .list a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border-radius: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--heading); transition: all .25s; }
.aside .list a:hover, .aside .list a.active { background: var(--teal); color: #fff; }
.aside .list a svg { width: 14px; height: 14px; }
.aside .box.dark { background: var(--ink); color: #fff; }
.aside .box.dark h4 { color: #fff; }
.aside .box.dark p { color: rgba(255, 255, 255, .75); font-size: 13.5px; }
.aside .cl { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aside .cl .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.aside .cl .ic svg { width: 18px; height: 18px; }
.aside .cl small { display: block; font-size: 12px; color: var(--text-2); }
.aside .cl b { font-weight: 500; color: var(--heading); font-size: 15px; }
.aside .box.dark .cl small { color: rgba(255, 255, 255, .6); }
.aside .box.dark .cl b { color: #fff; }
.process { counter-reset: p; display: grid; gap: 14px; }
.process li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--soft); border-radius: 12px; }
.process li::before { counter-increment: p; content: "0" counter(p); width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; }
.process li b { display: block; color: var(--heading); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.process li p { font-size: 13.5px; }

/* ---------- Projeto (detalhe) ---------- */
.gallery-hero { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 560px; }
.gallery-hero a { border-radius: 16px; overflow: hidden; position: relative; display: block; }
.gallery-hero a:first-child { grid-row: 1 / 3; }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-hero a:hover img { transform: scale(1.05); }
.gallery-hero .more { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; }
.project { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.project .main h2 { font-size: 32px; margin-bottom: 14px; }
.project .main h3 { font-size: 24px; font-weight: 500; margin: 34px 0 12px; }
.project .main p { font-size: 15px; }
.specs { background: var(--soft); border-radius: var(--radius); padding: 26px 24px; }
.specs h4 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.specs .loc { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 18px; }
.specs .loc svg { width: 14px; height: 14px; color: var(--teal); }
.specs ul { display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs ul li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs ul li b { font-weight: 500; color: var(--heading); text-align: right; }
.specs .price { font-size: 30px; color: var(--teal); margin: 18px 0 6px; letter-spacing: -.02em; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.thumbs a { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.thumbs a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumbs a:hover img { transform: scale(1.06); }

/* Antes / depois */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; user-select: none; background: #111; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba .handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.ba .handle i svg { width: 18px; height: 18px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .lbl { position: absolute; top: 16px; padding: 6px 12px; border-radius: 30px; font-size: 12px; font-weight: 500; background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(4px); pointer-events: none; }
.ba .lbl.l { left: 16px; }
.ba .lbl.r { right: 16px; background: var(--teal); }

/* Linha do tempo da obra */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.timeline .sticky { position: sticky; top: 110px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: #111; }
.timeline .sticky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.06); }
.timeline .sticky img.active { opacity: 1; transform: scale(1); }
.timeline .sticky .cap { position: absolute; left: 18px; bottom: 18px; background: rgba(0, 0, 0, .6); color: #fff; padding: 8px 14px; border-radius: 30px; font-size: 13px; backdrop-filter: blur(4px); }
.timeline .phases { display: grid; gap: 0; }
.phase { padding: 40px 0 40px 34px; border-left: 2px solid var(--line); position: relative; transition: border-color .4s; }
.phase::before { content: ""; position: absolute; left: -9px; top: 48px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: all .4s; }
.phase.active { border-color: var(--teal); }
.phase.active::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(0, 122, 153, .15); }
.phase small { color: var(--teal); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.phase h4 { font-size: 24px; font-weight: 500; margin: 6px 0 10px; }
.phase p { font-size: 14.5px; }
.phase img { display: none; }

/* Reel vertical (telemóvel) */
.reel { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.phone { width: 300px; aspect-ratio: 9 / 18.5; border-radius: 40px; background: #111; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); position: relative; margin: 0 auto; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #111; border-radius: 20px; z-index: 3; }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; position: relative; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .tabs { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.phone .tabs button { width: 30px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.phone .tabs button.active { background: #fff; }
.phone .mute { position: absolute; right: 14px; top: 54px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.phone .mute svg { width: 16px; height: 16px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 8, 10, .94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 90vw; max-height: 84vh; border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb .cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(255, 255, 255, .1); padding: 8px 16px; border-radius: 30px; }
.lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--teal); }
.lb button svg { width: 20px; height: 20px; }
.lb .close { top: 26px; right: 26px; }
.lb .prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-wrap .side { position: sticky; top: 110px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px 34px; }
.faq-wrap .side h3 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.faq-wrap .side p { color: rgba(255, 255, 255, .75); font-size: 14.5px; margin-bottom: 24px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--heading); }
.acc-item button i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: all .3s; }
.acc-item button i svg { width: 14px; height: 14px; transition: transform .3s; }
.acc-item.open button i { background: var(--teal); border-color: var(--teal); color: #fff; }
.acc-item.open button i svg { transform: rotate(45deg); }
.acc-item .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.open .panel { grid-template-rows: 1fr; }
.acc-item .panel p { min-height: 0; overflow: hidden; margin: 0; padding: 0 60px 0 0; font-size: 14.5px; }
.acc-item.open .panel p { padding-bottom: 22px; }

/* ---------- Simulador de projeto ---------- */
.sim { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; position: relative; overflow: hidden; }
.sim::before { content: ""; position: absolute; left: -100px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 122, 153, .45), transparent 65%); pointer-events: none; }
.sim h3 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.sim > div { position: relative; }
.sim .q { margin-top: 26px; }
.sim .q small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.sim .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sim .opts button { padding: 9px 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; font-size: 14px; transition: all .25s; }
.sim .opts button:hover { border-color: #fff; }
.sim .opts button.active { background: var(--teal); border-color: var(--teal); }
.sim .result { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 30px; min-height: 100%; }
.sim .result h4 { color: #fff; font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.sim .result .pkg { color: var(--teal); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.sim .result ul { margin: 18px 0 24px; display: grid; gap: 8px; }
.sim .result ul li { display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.sim .result ul li svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; margin-top: 3px; }
.sim .result .empty { color: rgba(255, 255, 255, .55); font-size: 14px; }

/* ---------- Blog (artigo) ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .meta { display: flex; gap: 18px; font-size: 13px; margin-bottom: 26px; }
.article .meta span { display: inline-flex; gap: 6px; align-items: center; }
.article .meta svg { width: 14px; height: 14px; color: var(--teal); }
.article img.cover { border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; width: 100%; margin-bottom: 36px; }
.article h2 { font-size: 28px; margin: 36px 0 12px; }
.article h3 { font-size: 22px; font-weight: 500; margin: 28px 0 10px; }
.article p, .article li { font-size: 16px; line-height: 1.75; }
.article ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.article ol { padding-left: 22px; margin-bottom: 1em; }
.article blockquote { margin: 26px 0; padding: 22px 26px; border-left: 3px solid var(--teal); background: var(--soft); border-radius: 0 12px 12px 0; font-size: 17px; color: var(--heading); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.tags a { border: 1px solid var(--line); padding: 5px 12px; border-radius: 30px; font-size: 12.5px; color: var(--heading); }
.tags a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.notfound .giant { font-size: clamp(120px, 24vw, 300px); font-weight: 300; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { color: #fff; font-size: 32px; margin: 10px 0 14px; }
.notfound p { color: rgba(255, 255, 255, .7); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.down { transform: translateY(-34px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }
.split-lines .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-lines .w i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * .06s); }
.split-lines.in .w i { transform: none; }
.tilt { transform-style: preserve-3d; transition: transform .4s var(--ease); }
.cursor-dot { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); pointer-events: none; z-index: 3000; transform: translate(-50%, -50%); transition: width .3s, height .3s, opacity .3s; mix-blend-mode: difference; opacity: 0; }
.cursor-ring { position: fixed; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--teal); pointer-events: none; z-index: 3000; transform: translate(-50%, -50%); transition: width .35s var(--ease), height .35s var(--ease), opacity .3s, border-color .3s; opacity: 0; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: rgba(0, 122, 153, .5); }
@media (hover: none), (max-width: 1024px) { .cursor-dot, .cursor-ring { display: none; } }
/* modo de captura (?static=1): alturas em vh passam a px para screenshots de página inteira */
.static .hero { height: 900px; min-height: 0; }
.static .hero-media, .static .hero-thumbs, .static .hero-desc, .static .hero-proof, .static .hero-card { animation: none; }
.static .notfound { min-height: 900px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero: tablet e telemóvel (breakpoints do Homevia) ---------- */
@media (max-width: 1199.98px) {
  .hero { --word-top: 110px; height: auto; min-height: 0; padding: 180px 30px 40px; }
  .hero-inner { grid-template-columns: minmax(0, 334px) 1fr auto 1fr 164px; }
  .hero-thumb { width: 148px; height: 70px; }
  .hero-card { padding: 12px; gap: 12px; }
  .static .hero { height: auto; }
}
@media (max-width: 767.98px) {
  .hero { --word-top: 102px; padding: 120px 20px 40px; }
  .hero-media { top: 100px; bottom: 0; aspect-ratio: auto; }
  .hero-inner { padding-top: 86px; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "thumbs card" "desc desc" "proof proof"; column-gap: 12px; row-gap: 12px; }
  .hero-thumb { width: 95px; height: 50px; }
  .hero-card { align-self: stretch; justify-content: center; }
  .hero-proof { margin-top: -2px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .features .grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .sgrid { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1px 1fr 1fr; gap: 30px; }
  .footer .box { padding: 50px 40px 30px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header .actions .btn { display: none; }
  .band .container-wide { grid-template-columns: 1fr; padding-bottom: 130px; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why .visual { max-width: 560px; }
  .cards-3, .scards, .team, .steps, .tcard { grid-template-columns: repeat(2, 1fr); }
  .tcard { flex-basis: calc((100% - 22px) / 2); }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .contact-split .visual { min-height: 420px; }
  .contact-split .formwrap { padding: 50px 30px; }
  .service-single, .project, .profile, .faq-wrap, .map-wrap, .timeline, .reel, .sim { grid-template-columns: 1fr; }
  .profile .photo, .aside, .faq-wrap .side, .timeline .sticky { position: relative; top: 0; }
  .footer .grid { grid-template-columns: 1fr; }
  .footer .vline { display: none; }
  .footer .top { grid-template-columns: 1fr; justify-items: center; }
  .footer .top .giant, .footer .top > a { grid-column: 1; justify-self: center; }
  .plan { grid-template-columns: 1fr 1fr; }
  .plan .media { grid-column: 1 / -1; min-height: 200px; }
  .mvv { grid-template-columns: 1fr; }
  .gallery-hero { height: 420px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .timeline .sticky { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .section { padding: 70px 0; }
  .features .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature { padding: 20px 12px; }
  .bento { grid-template-columns: 1fr; }
  .sgrid { grid-template-columns: 1fr; }
  .cards-3, .cards-2, .scards, .team, .steps, .values, .stats-4, .mini-cards, .prov-list, .checks.two, .thumbs, .form { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .tcard { flex-basis: 100%; }
  .why .visual { padding-right: 0; padding-bottom: 0; }
  .skills { position: relative; width: auto; margin-top: -60px; margin-left: 20px; }
  .cta-video .box { min-height: 440px; padding: 40px 20px; }
  .plan { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer .box { padding: 40px 22px 24px; border-radius: 18px; }
  .page-hero { padding: 150px 0 80px; }
  .gallery-hero { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery-hero a { aspect-ratio: 4 / 3; }
  .gallery-hero a:first-child { grid-row: auto; }
  .gallery-hero a:nth-child(3) { display: none; }
  .sim { padding: 30px 22px; }
  .contact-split .overlay { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
  .marquee .item { gap: 20px; }
  .header .pill { padding: 8px 8px 8px 16px; }
  .brand img { height: 38px; }
  .wa-float span { display: none; }
  .wa-float { padding: 10px; border-radius: 50%; }
  .phase { padding: 26px 0 26px 26px; }
  .phase img { display: block; border-radius: 12px; margin-top: 14px; }
  .timeline .sticky { display: none; }
}

/* ==== abraccio-signature — "Feito pela abracciostudio.com" (self-contained, no JS) ==== */
.abr-sig-wrap{display:flex;justify-content:center;padding:28px 0 6px;margin-top:8px}
.abr-sig{--abr-gold:#f2bc1b;--abr-gold-2:#ffd75e;position:relative;display:inline-flex;align-items:center;gap:14px;padding:10px 18px 10px 12px;border-radius:999px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);color:inherit;text-decoration:none;font:500 12px/1 ui-monospace,"JetBrains Mono","SF Mono",Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;isolation:isolate;overflow:hidden;transition:border-color .4s,transform .5s cubic-bezier(.22,1,.36,1)}
.abr-sig::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,color-mix(in srgb,var(--abr-gold) 22%,transparent) 50%,transparent 70%);transform:translateX(-120%);animation:abr-sweep 5.5s cubic-bezier(.4,0,.2,1) infinite;z-index:-1}
.abr-sig:hover{border-color:var(--abr-gold);transform:translateY(-2px)}
.abr-sig-mark{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none}
.abr-sig-mark img{width:22px;height:auto;display:block;filter:drop-shadow(0 0 0 rgba(242,188,27,0));animation:abr-breathe 3.2s ease-in-out infinite;transform-origin:50% 60%}
.abr-sig-ring{position:absolute;inset:0;border-radius:50%;border:1px solid var(--abr-gold);opacity:0;animation:abr-hug 3.2s cubic-bezier(.22,1,.36,1) infinite}
.abr-sig-ring::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid var(--abr-gold);opacity:.5}
.abr-sig-text{display:inline-flex;align-items:baseline;gap:.7em;white-space:nowrap}
.abr-sig-pre{opacity:.55}
.abr-sig-name{position:relative;color:var(--abr-gold);background:linear-gradient(90deg,var(--abr-gold) 0%,var(--abr-gold-2) 45%,#fff2b8 50%,var(--abr-gold-2) 55%,var(--abr-gold) 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:abr-shine 5.5s cubic-bezier(.4,0,.2,1) infinite;font-weight:700}
.abr-sig-name i{font-style:normal;font-weight:500}
.abr-sig-name::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1px;background:var(--abr-gold);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.abr-sig:hover .abr-sig-name::after{transform:scaleX(1)}
.abr-sig:hover .abr-sig-mark img{animation:abr-wave .7s cubic-bezier(.34,1.56,.64,1) 1}
@keyframes abr-sweep{0%,55%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
@keyframes abr-shine{0%,55%{background-position:120% 0}85%,100%{background-position:-120% 0}}
@keyframes abr-breathe{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(242,188,27,0))}50%{transform:scale(1.08);filter:drop-shadow(0 0 8px rgba(242,188,27,.75))}}
@keyframes abr-hug{0%{transform:scale(.55);opacity:0}25%{opacity:.9}70%,100%{transform:scale(1.35);opacity:0}}
@keyframes abr-wave{0%{transform:rotate(0)}35%{transform:rotate(-14deg) scale(1.15)}70%{transform:rotate(10deg) scale(1.1)}100%{transform:rotate(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.abr-sig::before,.abr-sig-ring,.abr-sig-name,.abr-sig-mark img{animation:none!important}.abr-sig-name{-webkit-text-fill-color:var(--abr-gold)}}
/* ==== /abraccio-signature ==== */
