::selection { background: rgba(244, 63, 94, 0.4); color: #fff; }
html { background: #15151a; scrollbar-width: thin; scrollbar-color: #3f3f46 #101015; overflow-x: clip; }
/* Grids sem grid-cols-* explícito (mobile): uma coluna que nunca cresce além do ecrã.
   Sem isto a coluna implícita "auto" estica até ao min-content (ex.: SVG do hero) e o conteúdo sai fora.
   O tailwind.css carrega depois, por isso grid-cols-* / md:* / lg:* continuam a prevalecer. */
.grid { grid-template-columns: minmax(0, 1fr); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #101015; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

/* ---------- Process number outline ---------- */
.step-number {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
  transition: -webkit-text-stroke-color 0.4s ease;
}
.group:hover .step-number { -webkit-text-stroke-color: rgba(251, 113, 133, 0.55); }

/* ---------- Form focus glow ---------- */
.field:focus {
  outline: none;
  border-color: rgba(244,63,94,0.6);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.15);
}
select.field option { background: #18181b; color: #e4e4e7; }

/* ---------- Logo blend (remove fundo preto do PNG) ---------- */
.logo-img { mix-blend-mode: screen; }

/* Logo colorido (fundo claro) — inverte para dark mode e funde o fundo */
.logo-color-img {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ---------- Google Maps em dark mode (hover revela cores reais) ---------- */
.map-dark {
  filter: invert(0.9) hue-rotate(180deg) brightness(0.92) contrast(1.05) grayscale(0.15);
  transition: filter 0.5s ease;
}
.group:hover .map-dark { filter: none; }

/* ---------- Scroll da página inteira no hover ---------- */
.site-scroll { position: relative; height: 320px; overflow: hidden; }
@media (min-width: 640px) { .site-scroll { height: 400px; } }
.site-scroll img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  transform: translateY(0);
  transition: top 6s cubic-bezier(.45,.05,.3,1), transform 6s cubic-bezier(.45,.05,.3,1);
}
.site-scroll:hover img { top: 100%; transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-scroll img { transition: none; } }

/* ---------- O que fazemos (lista editorial) ---------- */
.wd-row { position: relative; border-top: 1px solid rgba(255,255,255,0.1); transition: padding .5s cubic-bezier(.22,1,.36,1); }
.wd-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.wd-row::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, #fbbf24, #f43f5e, #38bdf8);
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
.wd-row:hover::before { width: 100%; }
.wd-row::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(244,63,94,0.07), transparent 70%);
  transition: opacity .5s ease;
}
.wd-row:hover::after { opacity: 1; }
.wd-title { transition: transform .5s cubic-bezier(.22,1,.36,1), color .4s ease; }
.wd-row:hover .wd-title { transform: translateX(14px); }
.wd-title em { font-style: normal; color: #a1a1aa; transition: color .4s ease; }
.wd-row:hover .wd-title em { color: #fb7185; }
.wd-num { transition: color .4s ease; }
.wd-row:hover .wd-num { color: #fb7185; }
.wd-arrow { transition: transform .5s cubic-bezier(.22,1,.36,1), background .4s ease, border-color .4s ease, color .4s ease; }
.wd-row:hover .wd-arrow { transform: rotate(45deg); background: #fff; border-color: #fff; color: #09090b; }

/* ---------- Paleta global mais clara (grafite em vez de preto) ---------- */
.site-lift {
  --hp-base: #15151a;
  --hp-panel: #1e1e25;
  --hp-soft: #272730;
  --hp-line: rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  background: var(--hp-base);
}
.site-lift .bg-\[\#0b0b0c\] { background-color: var(--hp-base); }
.site-lift .bg-\[\#0d0d0f\] { background-color: var(--hp-panel); }
.site-lift .border-white\/10,
.site-lift .border-white\/5 { border-color: var(--hp-line); }

/* Halo que segue o rato */
#home-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(620px circle at var(--gx, 30%) var(--gy, 12%),
    rgba(251, 191, 36, 0.10), rgba(244, 63, 94, 0.07) 38%, rgba(56, 189, 248, 0.05) 62%, transparent 78%);
}
.site-lift section { position: relative; }
.site-lift section > .max-w-7xl,
.site-lift section > .relative { z-index: 1; }

/* Auroras de cor suaves para quebrar o fundo escuro */
.hm-aurora { position: absolute; border-radius: 9999px; filter: blur(110px); pointer-events: none; }
.hm-aurora-a { background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%); animation: drift 22s ease-in-out infinite alternate; }
.hm-aurora-b { background: radial-gradient(circle, rgba(244, 63, 94, 0.3), transparent 70%); animation: drift 26s ease-in-out infinite alternate-reverse; }
.hm-aurora-c { background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%); animation: drift 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hm-aurora { animation: none; } }

/* ---------- Marquee de serviços ---------- */
.mq { padding: 2.4rem 0; }
.mq-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 34s linear infinite;
}
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track > span {
  display: inline-flex; align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  color: #fff; padding: 0 1.6rem;
}
.mq-track > span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); }
.mq-track i { font-style: normal; font-size: .5em; color: #fb7185; padding: 0 .4rem; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---------- Eyebrow de secção ---------- */
.eyebrow { display: flex; align-items: center; gap: .9rem; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #a1a1aa; }
.eyebrow b { font-weight: 700; color: #fb7185; }
.eyebrow::after { content: ''; width: 2.5rem; height: 1px; background: rgba(255,255,255,.2); }

/* ---------- Hero: estúdio ---------- */
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hs-bg .bgf { animation: bg-float 16s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes bg-float { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -26px; rotate: 1.2deg; } }
@media (prefers-reduced-motion: reduce) { .hs-bg .bgf { animation: none; } }
.rv { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rv > span { display: block; transform: translateY(108%); animation: rv 1.1s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rv { to { transform: none; } }
.fi { opacity: 0; transform: translateY(14px); animation: fi .9s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0s); }
@keyframes fi { to { opacity: 1; transform: none; } }

.hs-stage { opacity: 0; }
.hs-shape { fill-opacity: 0; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linejoin: round; }
.hs-g { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hs-ui { opacity: 0; }
.hs-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; fill: #71717a; }
.hs-step { display: flex; align-items: center; gap: .7rem; color: #52525b; transition: color .5s ease; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hs-step i { display: block; width: 1.5rem; height: 1px; background: currentColor; transition: width .6s cubic-bezier(.22,1,.36,1); }
.hs-step.on { color: #fff; }
.hs-step.on i { width: 3rem; background: #fb7185; }
@media (prefers-reduced-motion: reduce) { .rv > span, .fi { animation: none; transform: none; opacity: 1; } }

/* ---------- Contacto: formulário arquitetónico ---------- */
.cf-line { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; color: #fff; padding: 2.4rem 0 1.5rem; font-size: 1.5rem; outline: none; transition: border-color .4s ease; }
.cf-line::placeholder { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1rem; letter-spacing: .06em; color: #a1a1aa; }
.cf-line:focus { border-bottom-color: #fb7185; }
.cf-submit { position: relative; overflow: hidden; background: #fff; color: #09090b; transition: color .5s ease; }
.cf-submit::before { content: ''; position: absolute; inset: 0; background: #fb7185; transform: translateY(101%); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.cf-submit:hover::before, .cf-submit:focus-visible::before { transform: translateY(0); }
.cf-submit > * { position: relative; }
.cf-mail { background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; transition: color .4s ease, background-size .5s cubic-bezier(.22,1,.36,1); }
.cf-mail:hover { color: #fb7185; background-size: 40% 1px; }

/* ---------- Trabalhos: cartões subtis ---------- */
.sw-card { position: relative; transition: border-color .5s ease, box-shadow .5s ease, background-color .5s ease; }
.sw-card:hover, .sw-card:focus-visible { background-color: rgba(255,255,255,.035); border-color: rgba(255,255,255,.3); }

/* ---------- Contacto: linhas editoriais (como "O que fazemos") ---------- */
.cf-big { display: block; width: 100%; background: transparent; border: 0; border-radius: 0; outline: none; color: #fff; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; font-size: clamp(1.25rem, 2.6vw, 2.1rem); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.cf-big::placeholder { color: #3f3f46; font-weight: 800; transition: color .4s ease; }
.wd-row:hover .cf-big::placeholder, .wd-row:focus-within .cf-big::placeholder { color: #a1a1aa; }
.wd-row:focus-within .cf-big { transform: translateX(14px); }
.wd-row:focus-within::before { width: 100%; }
.wd-row:focus-within::after { opacity: 1; }
.wd-row:focus-within .wd-num { color: #fb7185; }
.cf-sub:disabled { cursor: wait; }

/* ---------- Animações de secção (coerentes com o hero) ---------- */
.eyebrow::after { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.22,1,.36,1) .2s; }
.eyebrow.in::after { transform: scaleX(1); }
.rvs { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.dt-card, .sw-card { position: relative; }
.dt-card::before, .sw-card::before {
  content: ''; position: absolute; inset: -4px; pointer-events: none; opacity: 0; transform: scale(.97); z-index: 3;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
  background:
    linear-gradient(#fff,#fff) 0 0 / 8px 8px no-repeat, linear-gradient(#fff,#fff) 100% 0 / 8px 8px no-repeat,
    linear-gradient(#fff,#fff) 0 100% / 8px 8px no-repeat, linear-gradient(#fff,#fff) 100% 100% / 8px 8px no-repeat;
}
.dt-card:hover::before, .sw-card:hover::before, .sw-card:focus-visible::before { opacity: 1; transform: none; }

.hl { position: relative; display: inline-block; }
.sel { position: absolute; inset: -.08em -.16em; border: 1px dashed currentColor; pointer-events: none; clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.65,0,.35,1) .7s;
  background: linear-gradient(currentColor,currentColor) 0 0 / 7px 7px no-repeat, linear-gradient(currentColor,currentColor) 100% 0 / 7px 7px no-repeat,
    linear-gradient(currentColor,currentColor) 0 100% / 7px 7px no-repeat, linear-gradient(currentColor,currentColor) 100% 100% / 7px 7px no-repeat; }
.tq.in .sel { clip-path: inset(0); }
.tq-by { transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.22,1,.36,1) .4s; }
.tq.in .tq-by { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .sel { clip-path: inset(0); transition: none; } .tq-by { transform: none; transition: none; } }

.fl { font-size: 14px; color: #a1a1aa; padding-bottom: 2px; background: linear-gradient(#fb7185,#fb7185) left bottom / 0 1px no-repeat; transition: color .3s ease, background-size .5s cubic-bezier(.22,1,.36,1); }
.fl:hover { color: #fff; background-size: 100% 1px; }

/* ---------- Leitura de artigos e projetos (UI/UX) ---------- */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #d4d4d8;
  max-width: 35rem; /* ~62-70 caracteres por linha */
  text-wrap: pretty;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }
.article-content p { margin: 1.35em 0; }
.article-content p + p { margin-top: 1.1em; }
.article-content strong { color: #fff; font-weight: 700; }
.article-content h2, .article-content h3, .article-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.25;
  text-wrap: balance; scroll-margin-top: 7rem;
}
.article-content h2 {
  font-size: 1.6rem; margin: 3em 0 1em; padding-top: 1.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-content h3 { font-size: 1.3rem; margin: 2.2em 0 0.7em; }
.article-content h4 { font-size: 1.1rem; margin: 1.9em 0 0.6em; }
.article-content a { color: #7dd3fc; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s ease; }
.article-content a:hover { color: #bae6fd; }
.article-content ul, .article-content ol { margin: 1.4em 0; padding-left: 1.4em; }
.article-content li { margin: 0 0 0.7em; padding-left: 0.35em; }
.article-content li::marker { color: #38bdf8; font-size: .9em; }
.article-content ul li { list-style: none; position: relative; }
.article-content ul li::before { content: ''; position: absolute; left: -1.05em; top: .72em; width: .4em; height: 2px; border-radius: 2px; background: #38bdf8; }
.article-content ol li::marker { color: #38bdf8; font-weight: 700; }
.article-content li > ul, .article-content li > ol { margin: .6em 0 .2em; }
.article-content blockquote { position: relative; border-left: 3px solid #38bdf8; padding: .2em 0 .2em 1.4em; margin: 2em 0; color: #e4e4e7; font-style: italic; font-size: 1.05em; }
.article-content img { border-radius: .6rem; margin: 2.2em auto; max-width: 100%; height: auto; }
.article-content pre { background: #101014; border: 1px solid rgba(255,255,255,.1); border-radius: .6rem; padding: 1.25em; overflow-x: auto; font-size: .875rem; line-height: 1.65; margin: 1.9em 0; }
.article-content code { background: rgba(255,255,255,.08); border-radius: .3rem; padding: .15em .4em; font-size: .85em; }
.article-content pre code { background: none; padding: 0; }
.article-content hr { border-color: rgba(255,255,255,.1); margin: 2.6em 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.9em 0; font-size: .95em; }
.article-content th, .article-content td { border: 1px solid rgba(255,255,255,.1); padding: .7em .9em; text-align: left; }
.article-content th { background: rgba(255,255,255,.04); color: #fff; font-weight: 700; }

/* Variante (projetos) — destaque rosa */
.article-content.ac-rose a { color: #fda4af; }
.article-content.ac-rose a:hover { color: #fecdd3; }
.article-content.ac-rose ul li::before { background: #fb7185; }
.article-content.ac-rose li::marker { color: #fb7185; }
.article-content.ac-rose blockquote { border-left-color: #fb7185; }

/* ---------- Formulário ---------- */
/* Ficha lateral de apoio */
.cf-facts { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.09); }
.cf-fact { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.cf-fact-ico {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #fda4af; transition: background-color .4s ease, border-color .4s ease, color .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.cf-fact:hover .cf-fact-ico { background: #fff; border-color: #fff; color: #0b0b0c; transform: translateY(-2px); }
.cf-fact-t { display: block; font-weight: 700; color: #fff; font-size: .95rem; letter-spacing: -.01em; }
.cf-fact-s { display: block; margin-top: .15rem; font-size: .82rem; color: #8b8b95; line-height: 1.5; }
.cf-fact-link { display: inline-block; margin-top: .35rem; font-size: .82rem; color: #fda4af; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(253,164,175,.4); transition: color .3s ease, text-decoration-color .3s ease; }
.cf-fact-link:hover { color: #fecdd3; text-decoration-color: currentColor; }

/* Cartão do formulário */
.cf-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,30,37,.92), rgba(21,21,26,.92));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 34px 90px -46px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 640px) { .cf-card { padding: 2rem 2.1rem 2.1rem; } }
.cf-card::before {
  content: ''; position: absolute; left: 2.1rem; right: 2.1rem; top: 0; height: 1px; border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,.45), rgba(244,63,94,.5), rgba(56,189,248,.45), transparent);
  opacity: .8; pointer-events: none;
}

.cf-head { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.5rem; margin-bottom: .35rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.cf-head-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .7rem; letter-spacing: .2em; color: #fb7185; padding-top: .35rem; }
.cf-head-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; color: #fff; line-height: 1.15; }
.cf-head-sub { margin-top: .3rem; font-size: .85rem; color: #8b8b95; line-height: 1.5; }

.cf-sec { margin: 1.55rem 0 1.7rem; }
.cf-label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: #8b8b95; margin-bottom: .6rem; transition: color .3s ease;
}
.cf-opt { font-size: 9px; letter-spacing: .16em; color: #5b5b66; border: 1px solid rgba(255,255,255,.1); border-radius: 9999px; padding: .2rem .5rem; }
.cf-len { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; text-transform: none; color: #5b5b66; transition: color .3s ease; }
.cf-field { margin-bottom: 1.15rem; }
.cf-field:focus-within .cf-label { color: #fda4af; }
.cf-field.ok .cf-label { color: #6ee7b7; }
.cf-field.bad .cf-label { color: #fb7185; }
.cf-field.bad .cf-len { color: #fb7185; }

.cf-in-wrap { position: relative; }
.cf-in {
  display: block; width: 100%; color: #fff; font-size: 1rem; line-height: 1.5; font-family: inherit;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.12); border-radius: .85rem;
  padding: .85rem 1rem; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.cf-in::placeholder { color: #6b6b75; }
.cf-in:hover { border-color: rgba(255,255,255,.24); }
.cf-in:focus { background: rgba(255,255,255,.055); border-color: rgba(253,164,175,.75); box-shadow: 0 0 0 4px rgba(251,113,133,.15); }
.cf-area { min-height: 7.75rem; resize: vertical; padding-right: 3rem; }
.cf-in-wrap:has(.cf-area) .cf-ok { top: 1rem; }
.cf-ok {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%) scale(.6);
  width: 1.75rem; height: 1.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.4); color: #34d399;
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.cf-ok svg { width: 1rem; height: 1rem; }
.cf-field.ok .cf-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.cf-field.ok .cf-in { border-color: rgba(52,211,153,.45); }
.cf-field.bad .cf-in { border-color: rgba(251,113,133,.65); box-shadow: 0 0 0 4px rgba(251,113,133,.12); }
.cf-err { display: none; margin-top: .5rem; font-size: 13px; color: #fb7185; }
.cf-field.bad .cf-err { display: block; }

/* Barra de progresso */
.cf-foot { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
@media (min-width: 640px) { .cf-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }
.cf-progress { flex: 1 1 auto; min-width: 0; }
.cf-progress-top { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.cf-count { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8b8b95; }
.cf-progress-bars { display: flex; gap: .3rem; }
.cf-bar { display: block; width: 2.4rem; height: 3px; border-radius: 9999px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.cf-bar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg,#fbbf24,#f43f5e,#38bdf8); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.cf-bar.on::after { transform: scaleX(1); }
.cf-note { display: inline-flex; align-items: center; gap: .4rem; margin-top: .65rem; font-size: 12px; color: #6b6b75; }
.cf-note svg { color: #8b8b95; }

/* Botão de envio */
.cf-sub { width: 100%; flex-shrink: 0; }
@media (min-width: 640px) { .cf-sub { width: auto; min-width: 15rem; } }

/* Chips */
.cf-chip { font-size: 13px; font-weight: 600; color: #a1a1aa; padding: .55rem 1.1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 9999px; transition: color .3s ease, border-color .3s ease, background-color .3s ease, transform .3s ease; }
.cf-chip:hover { color: #fff; border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.cf-chip[aria-pressed="true"] { color: #0b0b0c; background: #fff; border-color: #fff; }
.cf-chip:focus-visible { outline: 2px solid #fda4af; outline-offset: 2px; }

/* Consentimento */
.cf-consent { display: flex; align-items: flex-start; gap: .85rem; padding: .95rem 1rem; margin-top: .2rem; border: 1px solid rgba(255,255,255,.1); border-radius: .85rem; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .3s ease, background-color .3s ease; }
.cf-consent:hover { border-color: rgba(255,255,255,.24); }
.cf-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); transition: text-decoration-color .3s ease, color .3s ease; }
.cf-consent a:hover { color: #fecdd3; text-decoration-color: currentColor; }
.cf-box { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; margin-top: .1rem; border: 1px solid rgba(255,255,255,.3); border-radius: .4rem; color: #0b0b0c; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cf-box svg { width: .95rem; height: .95rem; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s cubic-bezier(.22,1,.36,1); }
.cf-consent:hover .cf-box { border-color: rgba(255,255,255,.7); }
.cf-consent:has(input:focus-visible) .cf-box { box-shadow: 0 0 0 3px rgba(251,113,133,.35); }
.cf-consent:has(input:checked) .cf-box { background: #fff; border-color: #fff; }
.cf-consent:has(input:checked) .cf-box svg { stroke-dashoffset: 0; }
.cf-consent:has(input:checked) { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.cf-cerr { display: none; }
.cf-consent.bad { border-color: rgba(251,113,133,.6); }
.cf-consent.bad .cf-box { border-color: #fb7185; }
.cf-consent.bad .cf-cerr { display: block; margin-top: .5rem; font-size: 13px; color: #fb7185; }

/* Estado de sucesso */
.cf-success { margin-top: 1.75rem; padding: 1.75rem; border: 1px solid rgba(52,211,153,.3); border-radius: 1.1rem; background: rgba(16,185,129,.06); }
@media (min-width: 640px) { .cf-success { padding: 2.5rem; } }
.cf-success-ico { width: 3.5rem; height: 3.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #34d399; }

/* Marca decorativa */
.cf-mark { width: 15rem; height: 15rem; margin-left: auto; margin-top: 2rem; overflow: visible; }
@media (min-width: 1024px) { .cf-mark { width: 18rem; height: 18rem; position: sticky; top: 8.5rem; } }
#cf-mark .cm-pc path { transition: fill-opacity .6s ease; }

.cf-sub:disabled { cursor: wait; }
.cf-sub:disabled::before { transform: translateY(101%) !important; }

/* ---------- Zimbrall Xpress ---------- */
.xp-flow::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,#fbbf24,#f43f5e,#38bdf8); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.65,0,.35,1); }
.xp-flow.in::before { transform: scaleX(1); }
.xp-node { position: absolute; top: -4px; width: 9px; height: 9px; background: #1e1e25; border: 1px solid #fff; opacity: 0; transition: opacity .4s ease var(--d, 0s); }
.xp-flow.in .xp-node { opacity: 1; }
.xp-opt { position: relative; display: block; cursor: pointer; padding: 1.1rem 1.2rem; border: 1px solid rgba(255,255,255,.12); transition: border-color .3s ease, background-color .3s ease; }
.xp-opt:hover { border-color: rgba(255,255,255,.4); }
.xp-opt:has(input:checked) { border-color: #fb7185; background: rgba(251,113,133,.06); }
.xp-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(251,113,133,.35); }
.xp-lb { display: block; margin-bottom: .6rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #a1a1aa; transition: color .3s ease; }
.xp-f:focus-within .xp-lb { color: #fb7185; }
.xp-in { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); border-radius: 0; outline: none; color: #fff; padding: .35rem 0 .7rem; font-size: 1.15rem; transition: border-color .3s ease; }
.xp-in::placeholder { color: #3f3f46; }
.xp-in:focus { border-bottom-color: #fb7185; }
.xp-f.bad .xp-in { border-bottom-color: #fb7185; }
.xp-f.bad .cf-err { display: block; }
.xp-step[hidden] { display: none; }

.fq summary::-webkit-details-marker { display: none; }
.fq-i { transition: transform .5s cubic-bezier(.22,1,.36,1), background .4s ease, color .4s ease; }
.fq[open] .fq-i { transform: rotate(45deg); background: #fff; color: #09090b; }
.fq summary:hover h3 { color: #fb7185; }
.fq summary h3 { transition: color .3s ease; }
.fq[open] .fq-a { animation: fi .6s cubic-bezier(.22,1,.36,1) both; }

/* ---------- Botões em pílula ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border-radius: 9999px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; padding: .95rem 1.8rem; font-size: .875rem; line-height: 1; transition: color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-sm { padding: .5rem .5rem .5rem 1.1rem; font-size: 13px; gap: .6rem; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.btn:hover::before { transform: translateY(0); }
.btn.btn-primary > svg, .btn.btn-ghost > svg { flex-shrink: 0; width: 2.1rem; height: 2.1rem; padding: .6rem; border-radius: 9999px; transition: transform .5s cubic-bezier(.22,1,.36,1), background-color .4s ease, color .4s ease; }
.btn.btn-sm > svg { width: 1.8rem; height: 1.8rem; padding: .5rem; }
.btn:has(> svg) { padding-right: .5rem; }
.btn:hover > svg { transform: rotate(45deg); }

.btn-primary { color: #0b0b0c; background: #fff; }
.btn-primary::before { background: #fecdd3; }
    .btn-primary > svg { background: #0b0b0c; color: #fff; }

.btn-ghost { color: #f4f4f5; border: 1px solid transparent; background: linear-gradient(#18181f, #18181f) padding-box, linear-gradient(120deg, rgba(251,113,133,.85), rgba(255,255,255,.12) 45%, rgba(251,146,60,.85)) border-box; }
.btn-ghost::before { background: #fff; }
.btn-ghost > svg { background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost:hover > svg { background: #0b0b0c; }
.btn-ghost:hover { color: #0b0b0c; }

/* ---------- Menu mobile em ecrã inteiro ---------- */
.mm { visibility: hidden; opacity: 0; clip-path: circle(0% at calc(100% - 2.5rem) 2.75rem); transition: clip-path .7s cubic-bezier(.76,0,.24,1), opacity .3s ease .1s, visibility 0s linear .7s; }
.mm.open { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 2.5rem) 2.75rem); transition: clip-path .8s cubic-bezier(.76,0,.24,1), opacity .2s ease, visibility 0s; }
.mm-link { opacity: 0; transform: translateY(32px); transition: opacity .3s ease, transform .3s ease; }
.mm.open .mm-link { opacity: 1; transform: none; transition: opacity .6s ease calc(.25s + var(--i) * .07s), transform .7s cubic-bezier(.22,1,.36,1) calc(.25s + var(--i) * .07s); }
body.mm-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mm, .mm.open, .mm-link, .mm.open .mm-link { transition: none; } }

/* ---------- Estilos partilhados com faq.html e privacy.html ---------- */
/* ---------- Ambient mesh gradients ---------- */
.mesh-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------- Cursor spotlight global (Linear.app style) ---------- */
#cursor-glow {
  background: radial-gradient(650px circle at var(--gx, 50%) var(--gy, 20%),
    rgba(244, 63, 94, 0.09), rgba(56, 189, 248, 0.045) 35%, transparent 60%);
}

/* ---------- Film grain ---------- */
.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
}

/* ---------- Floating cards ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-anim        { animation: float 6s ease-in-out infinite; }
.float-anim-slow   { animation: float 8s ease-in-out infinite; animation-delay: -2s; }
.float-anim-slower { animation: float 10s ease-in-out infinite; animation-delay: -4s; }

/* ---------- Pulsing status dot ---------- */
@keyframes ping-soft {
  0%        { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: inherit;
  animation: ping-soft 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------- Glow pulse for CTAs ---------- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(239,63,94,0.45), 0 0 60px rgba(239,63,94,0.18); }
  50%      { box-shadow: 0 0 36px rgba(239,63,94,0.65), 0 0 90px rgba(239,63,94,0.3); }
}
.glow-cta { animation: glow-pulse 3.5s ease-in-out infinite; }

/* ---------- Mini bar chart ---------- */
@keyframes bar-grow {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}
.chart-bar {
  transform-origin: bottom;
  animation: bar-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- Gradient text shimmer ---------- */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-shimmer {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

/* ---------- Product card border beam ---------- */
.product-card { position: relative; overflow: hidden; }
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--beam-a), transparent 40%, transparent 60%, var(--beam-b));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }

/* ---------- Spotlight que segue o cursor dentro dos cards ---------- */
.spot-card { position: relative; overflow: hidden; }
.spot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(244,63,94,0.13)), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.spot-card:hover::after { opacity: 1; }

/* ---------- 3D tilt (hero) ---------- */
#tilt-wrap {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ---------- Navbar: alinhada ao conteúdo; vira painel de vidro ao descer ---------- */
#nav-shell {
  position: relative;
  padding-inline: 0;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease,
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#nav-shell.nav-scrolled {
  margin-top: 0.75rem;
  padding-inline: 1rem 0.5rem;
  background: rgba(15, 15, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
/* Linha de gradiente no topo do painel: aparece quando a barra "acopla" */
#nav-shell::after {
  content: '';
  position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.7), rgba(244, 63, 94, 0.75), rgba(56, 189, 248, 0.7), transparent);
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
#nav-shell.nav-scrolled::after { opacity: 0.95; }
nav .bar-behind { padding-inline: 0; }
#nav-shell.nav-scrolled ~ .bar-behind { opacity: 0; pointer-events: none; }
/* Links com indicador deslizante */
#nav-links { position: relative; }
.nav-link { border-radius: 9999px; white-space: nowrap; }
/* Entre 1024 e 1279px: links mais juntos; o botão «Iniciar um projeto» já leva a /contacto */
@media (min-width: 1024px) and (max-width: 1279px) {
  #nav-links .nav-link { padding-inline: 0.55rem; }
  .nav-link[href="/contacto"] { display: none; }
}
.nav-link.is-active { color: #fff; }
.nav-pill {
  position: absolute; top: 50%; transform: translateY(-50%) scale(0.9);
  height: 2.25rem; border-radius: 9999px; opacity: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.nav-pill.on { opacity: 1; transform: translateY(-50%) scale(1); }
.nav-pill.pinned { transition: none; }

/* Pill em repouso fica invisível: a página atual é marcada pelo sublinhado em gradiente */
.nav-pill.pinned { background: transparent; border-color: transparent; box-shadow: none; }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 0.2rem; height: 2px; border-radius: 9999px;
  background: linear-gradient(90deg, #fbbf24, #f43f5e, #38bdf8);
}
@media (min-width: 1024px) and (max-width: 1279px) { .nav-link.is-active::after { left: 0.55rem; right: 0.55rem; } }

/* Cápsula esconde ao descer a página e volta ao subir */
.nav-shell.nav-hidden { transform: translateY(calc(-100% - 1.5rem)); }
.nav-shell.nav-hidden ~ .bar-behind { opacity: 0; }

/* Pesquisa: ícone até 1280px; com rótulo e atalho a partir daí */
.nav-search {
  display: none; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.7rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa; font-size: 12px; font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.nav-search:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
.nav-search-label, .nav-search kbd { display: none; }
@media (min-width: 1024px) { .nav-search { display: inline-flex; } }
@media (min-width: 1280px) {
  .nav-search { padding: 0 0.6rem 0 0.85rem; }
  .nav-search-label { display: inline; }
  .nav-search kbd {
    display: inline-block; padding: 0.1rem 0.4rem; border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.12); color: #a1a1aa;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; line-height: 1.4;
  }
}

/* Botão do menu mobile com área de toque de 44px */
#menu-btn { width: 2.75rem; height: 2.75rem; }

/* Skip link visível apenas com foco de teclado */
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 9999px; background: #fff; color: #0b0b0c;
  font-size: 0.875rem; font-weight: 700; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* Página atual no menu mobile */
.mobile-link[aria-current="page"] .mm-text {
  background: linear-gradient(90deg, #fbbf24, #f43f5e 55%, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Barra de progresso integrada no fundo da cápsula */
.nav-progress {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; height: 2px; border-radius: 9999px;
  background: linear-gradient(90deg, #fbbf24, #f43f5e, #38bdf8);
  transform: scaleX(0); transform-origin: left; pointer-events: none; opacity: 0.9;
  transition: opacity 0.3s ease;
}
.nav-progress.off { opacity: 0; }

/* Barra de navegação (entre a cápsula e o menu mobile) */
.bar-behind { opacity: 0; transition: opacity 0.5s ease; }
@media (min-width: 1024px) and (min-height: 640px) { .bar-behind { opacity: 1; } }

/* ---------- Painel de pesquisa rápida ---------- */
#nav-search-panel .sr-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 1.25rem; color: #d4d4d8; font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#nav-search-panel .sr-item:hover,
#nav-search-panel .sr-item.is-cur { background: rgba(255, 255, 255, 0.07); color: #fff; }
#nav-search-panel .sr-item .sr-kind {
  margin-left: auto; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #a1a1aa;
}
#nav-search-panel .sr-empty { padding: 1.25rem; text-align: center; color: #a1a1aa; font-size: 0.9rem; }

/* ---------- Vanilla-tilt glare ---------- */
.js-tilt-glare { border-radius: inherit; }

/* ---------- Testemunhos (manchetes editoriais) ---------- */
.tq-mark { position: absolute; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: .7; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.14); pointer-events: none; user-select: none; }
.scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .5s; }
.aos-animate .scribble path, .aos-animate.scribble path { stroke-dashoffset: 0; }
.tq-hl { position: relative; display: inline-block; }
.tq-hl .scribble { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .5em; overflow: visible; }
.stamp { animation: stamp-spin 40s linear infinite; }
@keyframes stamp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } .scribble path { transition: none; stroke-dashoffset: 0; } }

/* ---------- Hero editorial ---------- */
.hx-line {
  position: relative; display: block; width: max-content; max-width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.045em; line-height: .9; white-space: nowrap;
  font-size: clamp(2.9rem, 8.4vw, 8rem); color: #fff;
}
.hx-line > .hx-top { display: block; clip-path: inset(-25% -10% 52% -10%); }
.hx-line::after {
  content: attr(data-t); position: absolute; inset: 0; transform: translateX(.07em);
  clip-path: inset(50% -10% -25% -10%); pointer-events: none;
}
.hx-line::before {
  content: ''; position: absolute; left: -5%; right: -5%; top: 51%; height: 1px;
  background: rgba(255,255,255,.35); z-index: 2; pointer-events: none;
}
.hx-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.hx-accent { color: #fb7185; }
.hx-spark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hx-draw 4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes hx-draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.hx-caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.18em; background: #fb7185; animation: lb-blink2 1s steps(2, jump-none) infinite; }
@keyframes lb-blink2 { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hx-spark { animation: none; stroke-dashoffset: 0; } .hx-caret { animation: none; } }

/* ---------- Performance em mobile / ecrãs táteis (iOS Safari) ----------
   filter: blur() animado, backdrop-filter e camadas fixas com mix-blend obrigam o
   Safari a re-rasterizar áreas enormes a cada frame. Em toque desligamos o que é caro;
   os gradientes radiais já são suaves por si, o aspeto mantém-se praticamente igual. */
@media (hover: none), (max-width: 1023px) {
  .hm-aurora, .mesh-blob { filter: none; animation: none; will-change: auto; opacity: .55; }
  .noise { display: none; }
  #home-glow { display: none; }
  .hs-bg .bgf, .stamp, .float-anim, .float-anim-slow, .float-anim-slower, .glow-cta { animation: none; }
  #nav-shell.nav-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(21, 21, 26, .96); }
  #tilt-wrap { will-change: auto; transform: none !important; }
  /* hero aparece mais depressa (LCP) */
  .rv > span { animation-duration: .7s; animation-delay: calc(var(--d, 0s) * .4); }
  .fi { animation-duration: .6s; animation-delay: calc(var(--d, 0s) * .4); }
}

/* ---------- Mega menu de serviços ---------- */
.nav-mega { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(10px); transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s; pointer-events: none; z-index: 20; }
.has-mega:hover .nav-mega, .has-mega:focus-within .nav-mega, .has-mega.open .nav-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; pointer-events: auto; }
.mega-caret { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.has-mega:hover .mega-caret, .has-mega:focus-within .mega-caret, .has-mega.open .mega-caret { transform: rotate(180deg); }
.mega-item:focus-visible { outline: 1px solid rgba(255,255,255,.3); }
.mm-sub a { transition: color .3s ease, padding-left .3s ease; }
.mm-sub a:hover { color: #fff; padding-left: 1.35rem; }
/* o toggle do mega menu é sr-only: o anel de foco aparece no link visível */
.has-mega:has(#mega-toggle:focus-visible) .nav-link { outline: 2px solid #fda4af; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  /* AOS desligado em main.js — o conteúdo nunca fica escondido */
  [data-aos] { opacity: 1 !important; transform: none !important; }
  /* sem pin no scrollytelling: cópias e mockups empilham-se */
  #scrolly-stage .grid > div { grid-column: auto !important; grid-row: auto !important; }
}

