/* ============================================================
   MP CAR DETAIL · HOME (menu + hero)
   Conceito v2 · Chrome Noir / HUD · Minimalista + Futurista
   Ponte de Lima · Portugal
   ============================================================ */

/* ---------- Fonte Brink (ficheiros locais .otf, nome com espaço) ---------- */
@font-face {
  font-family: "Brink";
  src: url("../assets/fonts/Brink%20Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brink";
  src: url("../assets/fonts/Brink%20Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --c-bg-void: #000000;
  /* Fundo cinza-grafite do site — centro esclarecido, bordas escuras */
  --bg-studio: radial-gradient(ellipse 82% 74% at 50% 40%, #262a30 0%, #1c1f24 44%, #141619 76%, #0c0d10 100%);
  --c-bg-deep: #060709;
  --c-bg-raised: #0d0f12;

  --c-text-primary: #f4f6f8;
  --c-text-secondary: rgba(244,246,248,.52);
  --c-text-muted: rgba(244,246,248,.26);

  /* Acento frio / chrome (substitui o dourado) */
  --c-ice: #bcd5e6;
  --c-ice-light: #eaf5ff;
  --c-ice-glow: rgba(168,206,232,.22);

  --c-surface-1: rgba(255,255,255,.035);
  --c-surface-2: rgba(255,255,255,.08);
  --c-surface-3: rgba(255,255,255,.16);
  --c-line: rgba(255,255,255,.07);

  --font-display: "Brink", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 78px;
  --gutter: clamp(20px, 5vw, 80px);
  --max-w: 1480px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text-primary);
  background: var(--c-bg-void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow: hidden; /* app de abas: sem scroll global */
}
a { color: inherit; text-decoration: none; }

/* Grão global */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   HUD — molduras de canto
   ============================================================ */
.hud { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.hud__corner {
  position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--c-surface-3);
  opacity: 0; animation: hudIn .8s var(--ease-out) 1.1s forwards;
}
.hud__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
@keyframes hudIn { to { opacity: 1; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4,5,6,.66);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--c-line);
}
.nav__inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Marca */
.brand { display: flex; align-items: center; gap: 15px; }
/* Logótipo da nav (branco) recortado da margem transparente (conteúdo 891×414 em 1500²) */
.brand__logo {
  --logo-h: 34px;
  display: block; position: relative; overflow: hidden;
  height: var(--logo-h); width: calc(var(--logo-h) * 891 / 414);
}
.brand__logo img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: calc(var(--logo-h) * 1500 / 414); width: auto;
}
.brand__rule { width: 1px; height: 22px; background: var(--c-surface-2); }
.brand__label {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Links */
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 7px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-text-secondary);
  padding: 6px 0;
  transition: color .3s var(--ease-out);
}
.nav__idx {
  font-size: .52rem; letter-spacing: .05em;
  color: var(--c-ice); opacity: .55;
  transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--c-ice-light), transparent);
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { color: var(--c-text-primary); }
.nav__link:hover .nav__idx { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--c-text-primary); }
.nav__link.is-active .nav__idx { opacity: 1; }

/* Actions */
.nav__actions { display: flex; align-items: center; gap: 16px; }

/* Botão */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 100px;
  cursor: pointer; border: 1px solid var(--c-surface-3);
  background: rgba(255,255,255,.02);
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s, background .3s;
}
.btn--primary { color: var(--c-text-primary); }
.btn--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(188,213,230,.5);
  box-shadow: 0 0 36px var(--c-ice-glow);
  background: rgba(188,213,230,.06);
}
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-ice-light);
  box-shadow: 0 0 10px var(--c-ice-light);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn--primary .btn__wa { width: 15px; height: 15px; color: var(--c-ice-light); flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Bolinha de ícone (ex.: Instagram ao lado do CTA de orçamento) */
.iconbtn {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-surface-3);
  background: rgba(255,255,255,.02);
  color: var(--c-ice-light);
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s, background .3s;
}
.iconbtn:hover {
  transform: translateY(-2px);
  border-color: rgba(188,213,230,.5);
  box-shadow: 0 0 24px var(--c-ice-glow);
  background: rgba(188,213,230,.06);
}
.iconbtn svg { width: 18px; height: 18px; }

/* Toggle mobile */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--c-surface-2); border-radius: 7px; cursor: pointer;
}
.nav__toggle span { width: 18px; height: 1.5px; background: var(--c-text-primary); transition: .3s; }
.nav__toggle.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle.is-open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; height: 100dvh;
  padding: calc(var(--nav-h) + clamp(10px, 2.4vh, 26px)) var(--gutter) clamp(18px, 3vh, 30px);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg-studio);
}

/* ============================================================
   ESTÚDIO — fundo construído em CSS (cyclorama / infinity cove)
   ============================================================ */
.studio { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Luz principal — holofote que orbita o carro (posição/escala/opacidade vêm do JS) */
.studio__glow {
  position: absolute; left: 50%; top: 63%;
  width: min(1180px, 96vw); height: min(680px, 76vh);
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(206,226,244,.2), transparent 60%),
    radial-gradient(ellipse 70% 62% at 50% 56%, rgba(120,150,182,.09), transparent 70%);
  filter: blur(28px);
  opacity: var(--op, .9);
  transform: translate(-50%, -50%) translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--sc, 1));
  will-change: transform, opacity;
}
/* Poça de luz no chão + linha de horizonte do estúdio */
.studio__floor {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 140vw; height: 42vh;
  background:
    radial-gradient(ellipse 44% 90% at 50% 0%, rgba(176,200,224,.1), transparent 62%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.55) 70%);
}
/* Grelha técnica muito ténue (toque futurista, sem competir com o estúdio) */
.studio__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--c-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-line) 1px, transparent 1px);
  background-size: clamp(54px, 7vw, 104px) clamp(54px, 7vw, 104px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 44%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 44%, #000 0%, transparent 72%);
  opacity: .35;
}
/* Vinheta que fecha os cantos */
.studio__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 78% 80% at 50% 44%, transparent 46%, rgba(0,0,0,.62) 100%);
}

/* Luz subtil que segue o cursor — full-viewport, sem bordas (não cria quadrado) */
.spotlight {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease-out);
  mix-blend-mode: screen;
  --gx: 50%; --gy: 50%;
  background: radial-gradient(circle 300px at var(--gx) var(--gy), rgba(214,234,255,.055), transparent 60%);
}
.hero.is-revealing .spotlight { opacity: 1; }

/* Contorno do logótipo MP em LED, atrás do carro (linhas finas a percorrer) */
.walllogo {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  width: clamp(430px, 48vw, 780px); aspect-ratio: 1 / 1;
  z-index: 0; pointer-events: none; opacity: .85;
}
.walllogo__svg { width: 100%; height: 100%; display: block; }

.hero__head { position: relative; z-index: 3; text-align: center; flex: none; }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: .6rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--c-text-secondary);
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-ice-light); box-shadow: 0 0 8px var(--c-ice-light);
}
.eyebrow__text { white-space: nowrap; }
.eyebrow__line { width: clamp(26px, 8vw, 96px); height: 1px; background: linear-gradient(90deg, transparent, var(--c-surface-3)); }
.eyebrow__line:last-child { background: linear-gradient(90deg, var(--c-surface-3), transparent); }

/* Headline cromo */
.headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem);
  line-height: .92; letter-spacing: .02em; text-transform: uppercase;
  margin: clamp(8px, 1.4vh, 14px) 0 clamp(8px, 1.2vh, 13px);
}
.headline__line { display: block; }
.chrome {
  background: linear-gradient(180deg,
    #5e6266 0%, #cdd4da 16%, #f8fbff 34%, #ffffff 50%,
    #9aa1a8 64%, #e6ecf2 82%, #50545a 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 34px rgba(220,235,255,.1));
  animation: chromeSheen 7s ease-in-out infinite;
}
.headline__line:last-child { animation-delay: .25s; }
@keyframes chromeSheen {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

/* Subtítulo descritivo */
.subhead {
  max-width: 48ch; margin: 0 auto;
  font-size: clamp(.86rem, 1.35vw, 1.02rem);
  line-height: 1.55; letter-spacing: .01em;
  color: var(--c-text-secondary);
  text-wrap: balance;
}

/* CTA WhatsApp */
.hero__cta { margin-top: clamp(14px, 2.4vh, 22px); display: flex; justify-content: center; }
/* Botão de orçamento do hero — só aparece no mobile (ver media query) */
.hero__cta-row { display: none; }
.btn--cta {
  color: var(--c-text-primary);
  padding: 14px 26px;
  border-color: rgba(188,213,230,.32);
  background: rgba(255,255,255,.03);
}
.btn--cta .btn__wa { width: 16px; height: 16px; color: #ffffff; flex: none; }
.btn--cta:hover {
  transform: translateY(-2px);
  border-color: rgba(188,213,230,.5);
  box-shadow: 0 0 34px var(--c-ice-glow);
  background: rgba(188,213,230,.06);
}

/* ============================================================
   VEÍCULO — recortado, centrado sobre chão de vidro, revelado pelo cursor
   --ground: linha de contacto das rodas dentro da moldura (ajuste fino do reflexo)
   ============================================================ */
.car {
  position: absolute; left: 50%; top: 73%;
  transform: translate(-50%, -50%);
  width: min(1280px, 80vw); z-index: 1;
  --ground: 64.1%; /* linha de contacto real das rodas (medida no PNG) */
  --lum: .46;      /* brilho ambiente do carro — modulado pela luz orbital (JS) */
  /* foco do spotlight (atualizado por JS) */
  --mx: 50%; --my: 50%; --r: 220px;
}
.car__stack { position: relative; width: 100%; }
.car__stack img {
  display: block; width: 100%; height: auto;
  user-select: none; -webkit-user-drag: none;
}
/* Estado de repouso: veículo na penumbra do estúdio (brilho segue a luz orbital) */
.car__base { position: relative; z-index: 2; filter: brightness(var(--lum, .46)) contrast(1.05) saturate(.92); }
/* Camada iluminada, revelada apenas sob o foco do cursor */
.car__lit {
  position: absolute; inset: 0; z-index: 3; opacity: 0;
  transition: opacity .55s var(--ease-out);
  /* núcleo de revelação igual ao atual (0–50%); cauda longa p/ o bordo do círculo desaparecer */
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.2) 72%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.2) 72%, transparent 100%);
}
.hero.is-revealing .car__lit { opacity: 1; }

/* Sombra de contacto — assenta o carro no chão de vidro e funde roda↔reflexo */
.car__shadow {
  position: absolute; left: 50%; top: var(--ground); z-index: 1;
  width: 66%; height: 10%; transform: translate(-50%, -46%);
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,0,0,.92), transparent 72%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0,0,0,.5), transparent 75%);
  filter: blur(7px); pointer-events: none;
}
/* Reflexo no chão de vidro — espelhado na linha das rodas (--ground) */
.car__reflection {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transform-origin: 50% var(--ground);
  transform: scaleY(-1);
  opacity: .3; filter: brightness(calc(var(--lum, .46) * .82)) blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, rgba(0,0,0,.45) 46%, #000 var(--ground));
          mask-image: linear-gradient(to bottom, transparent 6%, rgba(0,0,0,.45) 46%, #000 var(--ground));
}

/* ---------- Chão de vidro: gloss + linha de horizonte na linha das rodas ---------- */
/* poça de luz glossy sob o veículo */
.car__stack::before {
  content: ""; position: absolute; left: 50%; top: var(--ground); z-index: 0;
  width: 84%; height: 16%; transform: translate(-50%, -28%);
  background: radial-gradient(ellipse at center, rgba(172,200,226,.06), transparent 72%);
  filter: blur(9px); pointer-events: none;
}

/* Balão flutuante (usado nos números do Sobre) */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Rodapé do hero ---------- */
.hero__foot {
  position: relative; z-index: 3; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.hero__meta {
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero__meta-k { color: var(--c-ice); opacity: .7; margin-right: 3px; }
.hero__meta-sep { margin: 0 8px; color: var(--c-surface-3); }

/* Ticker */
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__track { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; animation: tickerMove 32s linear infinite; }
.ticker__track span:not(.dot) {
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-text-secondary);
}
.ticker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-ice); flex: none; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* Social */
.social { display: flex; align-items: center; gap: 8px; }
.social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--c-surface-2); border-radius: 8px;
  color: var(--c-text-secondary);
  transition: color .3s, border-color .3s, transform .4s var(--ease-spring);
}
.social a:hover { color: var(--c-ice-light); border-color: rgba(188,213,230,.45); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }

/* ============================================================
   SOBRE NÓS
   ============================================================ */
.about {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) var(--gutter) clamp(28px, 5vh, 56px);
  display: flex; align-items: center; overflow: hidden;
  background: var(--bg-studio);
}

/* Fundo */
.about__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.about__glow {
  position: absolute; right: -6%; top: 46%; transform: translateY(-50%);
  width: min(920px, 72vw); height: min(700px, 82vh);
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(188,213,230,.1), transparent 62%),
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(120,150,182,.06), transparent 70%);
  filter: blur(20px);
}
.about__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--c-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-line) 1px, transparent 1px);
  background-size: clamp(54px, 7vw, 104px) clamp(54px, 7vw, 104px);
  mask-image: radial-gradient(ellipse 85% 80% at 62% 50%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 62% 50%, #000 0%, transparent 74%);
  opacity: .28;
}
.about__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 92% 92% at 50% 46%, transparent 50%, rgba(0,0,0,.6) 100%);
}
.about__ghost {
  position: absolute; right: 1%; top: 47%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(16rem, 42vw, 44rem); line-height: 1;
  color: rgba(255,255,255,.022); letter-spacing: .02em;
  user-select: none; pointer-events: none;
}

/* Grelha de conteúdo */
.about__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
}

/* ---- Copy ---- */
.about__copy { position: relative; z-index: 2; }
.about__copy .eyebrow { justify-content: flex-start; }
.about__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: .96;
  text-transform: uppercase; letter-spacing: .01em;
  margin: clamp(16px, 2.4vh, 26px) 0 clamp(18px, 2.6vh, 28px);
}
.about__title span { display: block; }
.about__lead {
  max-width: 44ch;
  font-size: clamp(.95rem, 1.05vw, 1.08rem); line-height: 1.62;
  color: var(--c-text-primary); opacity: .92;
}
.about__text {
  max-width: 46ch; margin-top: clamp(12px, 1.8vh, 18px);
  font-size: clamp(.84rem, .95vw, .96rem); line-height: 1.62;
  color: var(--c-text-secondary);
}
.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(20px, 3vh, 34px);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-text-primary);
  padding-bottom: 7px; border-bottom: 1px solid var(--c-surface-3);
  transition: gap .3s var(--ease-out), border-color .3s, color .3s;
}
.link-cta__arrow { color: var(--c-ice); transition: transform .3s var(--ease-out); }
.link-cta:hover { gap: 16px; border-color: rgba(188,213,230,.6); }
.link-cta:hover .link-cta__arrow { transform: translateX(5px); }

/* ---- Produtos a flutuar (com reflexo) ---- */
.about__visual { position: relative; z-index: 1; height: min(66vh, 580px); }
.prod { position: absolute; }
.prod__stack { position: relative; width: 100%; }
.prod__stack img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.prod__img { position: relative; z-index: 2; filter: drop-shadow(0 28px 46px rgba(0,0,0,.55)); }
.prod__reflection {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transform-origin: 50% var(--ground, 99%);
  transform: scaleY(-1);
  opacity: .2; filter: brightness(.5) blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.4) 46%, #000 var(--ground, 99%));
          mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.4) 46%, #000 var(--ground, 99%));
}
/* Veículo em destaque, centrado na zona visual (float no stack p/ não pisar a centragem) */
.prod--feature { left: 50%; top: 47%; transform: translate(-50%, -50%); width: 92%; }
.prod--feature .prod__stack { animation: float 7s ease-in-out infinite; will-change: transform; }

/* ---- Balões flutuantes (números, com ícone) ---- */
.stats { position: absolute; inset: 0; list-style: none; z-index: 3; }
.stat {
  position: absolute; pointer-events: auto;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 16px 8px 9px; border-radius: 100px;
  border: 1px solid var(--c-surface-2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
  transition: border-color .3s, box-shadow .4s, transform .4s var(--ease-spring);
  animation: float 6s ease-in-out infinite;
}
.stat:hover {
  border-color: rgba(188,213,230,.45);
  box-shadow: 0 0 28px var(--c-ice-glow);
  transform: translateY(-3px);
}
.stat__icon {
  flex: none; display: grid; place-items: center;
  width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid var(--c-surface-2); background: rgba(255,255,255,.04);
}
.stat__icon svg { width: 15px; height: 15px; fill: none; stroke: var(--c-ice); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stat__txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.12; }
.stat__txt b {
  font-family: var(--font-display); font-weight: 900;
  font-size: .92rem; letter-spacing: .03em; color: var(--c-text-primary);
}
.stat__txt span {
  font-size: .52rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-muted); white-space: nowrap;
}
.stat--1 { top: 1%;  left: 4%;  animation-delay: 0s; }
.stat--2 { top: -1%; right: 2%; animation-delay: -1.5s; }
.stat--3 { bottom: 4%; right: -2%; animation-delay: -3s; }
.stat--4 { bottom: -1%; left: 2%; animation-delay: -4.5s; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + clamp(16px, 3vh, 34px)) var(--gutter) clamp(18px, 3vh, 34px);
  /* Sem align-items:center (que escondia o topo atrás da logo quando a aba/
     grelha é mais alta que o ecrã). A centralização vertical é feita por
     margin:auto no .services__inner — que centraliza quando há espaço mas
     permite rolar correctamente até ao topo quando o conteúdo transborda. */
  display: flex; overflow-x: hidden; overflow-y: auto;
  background: var(--bg-studio);
}
.services__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: auto;
  display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 22px);
}

/* Cabeçalho */
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.services__head .eyebrow { justify-content: flex-start; }
.services__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.04; text-transform: uppercase;
  letter-spacing: .01em; margin-top: clamp(8px, 1.2vh, 13px);
}
.services__sub {
  margin-top: 7px; max-width: 52ch;
  font-size: clamp(.8rem, .95vw, .92rem); line-height: 1.45; color: var(--c-text-secondary);
}
.services__head .btn--cta { flex: none; align-self: flex-end; padding: 11px 20px; }

/* ---- Separadores de categoria (segmented control) ---- */
.svc-tabs {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 100px;
  border: 1px solid var(--c-surface-2);
  background: rgba(255,255,255,.03); backdrop-filter: blur(10px);
}
.svc-tab {
  border: none; background: none; cursor: pointer;
  padding: 9px 18px; border-radius: 100px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; color: var(--c-text-secondary); white-space: nowrap;
  transition: color .3s, background .3s;
}
.svc-tab:hover { color: var(--c-text-primary); }
.svc-tab.is-active { background: var(--c-ice); color: var(--c-bg-void); font-weight: 700; }
.svc-tab--icon { padding: 8px 12px; display: grid; place-items: center; }
.svc-tab--icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Painéis (mostra só a categoria ativa) ---- */
.svc-panels { position: relative; }
.svc-panel { display: none; }
.svc-panel.is-active { display: block; animation: svcFade .4s var(--ease-out); }
@keyframes svcFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-panel.is-active { animation: none; } }

/* ---- Grelha de cards por categoria ---- */
.services__grid {
  --svc-gap: clamp(11px, 1.2vw, 17px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--svc-gap);
}
/* Motas: 1 card — mantém a largura de card, encostado à esquerda */
.services__grid--solo { grid-template-columns: repeat(3, 1fr); }

.svc {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(13px, 1.3vw, 19px);
  border-radius: 16px;
  border: 1px solid var(--c-surface-2);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(188,213,230,.06), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(188,213,230,.42);
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 0 30px var(--c-ice-glow);
}
.svc__no {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  color: rgba(255,255,255,.07); letter-spacing: .05em;
}
.svc__icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--c-surface-2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  margin-bottom: 10px;
}
.svc__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--c-ice); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(.92rem, 1.1vw, 1.1rem); text-transform: uppercase; letter-spacing: .03em;
}
.svc__tag { margin-top: 3px; font-size: .72rem; letter-spacing: .02em; color: var(--c-ice); }
.svc__list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.svc__list li {
  position: relative; padding-left: 17px;
  font-size: .76rem; line-height: 1.3; color: var(--c-text-secondary);
}
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: .4em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-ice); box-shadow: 0 0 8px var(--c-ice-glow);
}

/* Rodapé: preço (com variante SUV) + duração */
.svc__deal {
  margin-top: auto;                       /* encosta na base do card */
  padding-top: clamp(11px, 1.5vh, 15px);
  border-top: 1px solid var(--c-line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.svc__price {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-display); font-weight: 900; line-height: 1;
  font-size: clamp(1.15rem, 1.5vw, 1.42rem); letter-spacing: .01em;
  color: var(--c-text-primary);
}
.svc__suv {
  font-family: var(--font-body); font-weight: 500;
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-secondary);
}
.svc__dur {
  flex: none; align-self: center;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 100px;
  background: rgba(188,213,230,.09);
  border: 1px solid var(--c-surface-2);
  font-size: .62rem; font-weight: 600; letter-spacing: .04em;
  color: var(--c-ice);
}
.svc__dur svg {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* No card em destaque a duração ganha um toque de brilho gelo */
.svc--featured .svc__dur {
  background: rgba(188,213,230,.14); border-color: rgba(188,213,230,.3);
  color: var(--c-ice-light);
}

/* Card em destaque */
.svc--featured {
  border-color: rgba(188,213,230,.42);
  background:
    radial-gradient(130% 92% at 50% 0%, rgba(188,213,230,.13), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 42px var(--c-ice-glow);
}
.svc--featured .svc__no { display: none; }
.svc__badge {
  position: absolute; top: 13px; right: 14px;
  font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--c-bg-void); background: var(--c-ice-light);
  padding: 4px 9px; border-radius: 100px;
}

/* Nota de preços */
.services__note {
  font-size: .66rem; letter-spacing: .02em; font-style: italic;
  color: var(--c-text-secondary);
}

/* ---- Preçário completo de extras (aba ⧉) ---- */
.precario__iva {
  font-size: .7rem; letter-spacing: .02em; color: var(--c-text-muted, var(--c-text-secondary));
  margin-bottom: clamp(14px, 2.2vh, 24px);
}
.precario__grid {
  columns: 2; column-gap: clamp(20px, 3vw, 46px);
}
.precat {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: clamp(18px, 2.6vh, 30px);
}
.precat__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: .01em;
  color: var(--c-text-primary); margin-bottom: clamp(8px, 1.2vh, 13px);
}
.precat__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.precat__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 15px; border-radius: 12px;
  border: 1px solid var(--c-surface-2);
  background: rgba(255,255,255,.03);
  font-size: .82rem; line-height: 1.3;
  transition: border-color .3s, background .3s;
}
.precat__list li:hover { border-color: rgba(188,213,230,.32); background: rgba(188,213,230,.05); }
.precat__list li span { color: var(--c-text-primary); font-weight: 500; }
.precat__list li b { flex: none; font-weight: 700; color: var(--c-ice); font-variant-numeric: tabular-nums; }
/* Serviços por orçamento (sem preço fixo) */
.precat__poa {
  font-weight: 600 !important; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-secondary) !important; white-space: nowrap;
}

/* ============================================================
   PROJETOS — faixa infinita (marquee)
   ============================================================ */
.projects {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + clamp(16px, 3vh, 34px)) 0 clamp(18px, 3.5vh, 40px);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(16px, 2.8vh, 34px); overflow: hidden;
  background: var(--bg-studio);
}
.projects__head {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
}
.projects__head .eyebrow { justify-content: flex-start; }
.projects__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.04; text-transform: uppercase;
  letter-spacing: .01em; margin-top: clamp(8px, 1.3vh, 14px);
}
.projects__sub {
  margin-top: 8px; font-size: clamp(.8rem, .95vw, .94rem);
  line-height: 1.45; color: var(--c-text-secondary);
}

/* Faixa */
.marquee {
  position: relative; z-index: 1; width: 100%;
  height: clamp(300px, 54vh, 500px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: inline-flex; height: 100%;
  animation: marquee 50s linear infinite; will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Card de projeto */
.pcard {
  position: relative; flex: none; height: 100%; aspect-ratio: 3 / 4;
  margin-right: clamp(12px, 1.4vw, 22px);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--c-surface-2);
  background: var(--c-bg-raised);
  transition: border-color .3s, box-shadow .4s;
}
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.pcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 38%, rgba(0,0,0,.74) 100%);
}
.pcard:hover { border-color: rgba(188,213,230,.42); box-shadow: 0 0 34px var(--c-ice-glow); }
.pcard:hover img { transform: scale(1.06); }
.pcard__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .55rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-text-primary);
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px);
  border: 1px solid var(--c-surface-2);
  padding: 5px 11px; border-radius: 100px;
}
.pcard__meta {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
}
.pcard__meta b {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(.85rem, 1vw, 1.02rem); text-transform: uppercase; letter-spacing: .02em;
  color: #fff;
}
.pcard__meta i {
  font-style: normal; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-ice-light); opacity: 0; transform: translateY(5px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.pcard:hover .pcard__meta i { opacity: 1; transform: none; }

/* ============================================================
   CONTACTO — formulário interativo + mapa noir
   ============================================================ */
.contact {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + clamp(20px, 4vh, 44px)) var(--gutter) clamp(20px, 4vh, 44px);
  display: flex; align-items: center; overflow: hidden;
  background: var(--bg-studio);
}
.contact__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 72px); align-items: center;
}

/* ---- Coluna do formulário ---- */
.contact__form-col { position: relative; z-index: 2; }
.contact__form-col .eyebrow { justify-content: flex-start; }
.contact__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; text-transform: uppercase;
  letter-spacing: .01em; margin: clamp(12px, 2vh, 20px) 0 clamp(10px, 1.6vh, 16px);
}
.contact__sub {
  max-width: 40ch; font-size: clamp(.9rem, 1.05vw, 1.04rem);
  line-height: 1.55; color: var(--c-text-secondary);
}

/* Formulário passo-a-passo */
.leadform { margin-top: clamp(22px, 3.4vh, 40px); max-width: 480px; }
.leadform__progress { display: flex; gap: 8px; margin-bottom: clamp(18px, 2.6vh, 26px); }
.leadform__progress span {
  width: 32px; height: 3px; border-radius: 3px; background: var(--c-surface-2);
  transition: background .4s, box-shadow .4s;
}
.leadform__progress span.is-on { background: var(--c-ice); box-shadow: 0 0 10px var(--c-ice-glow); }

.leadform__steps { position: relative; min-height: 104px; }
.lf-step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px);
  pointer-events: none;
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
}
.lf-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lf-step label {
  display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-ice); margin-bottom: 16px;
}
.lf-field {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--c-surface-3); padding-bottom: 11px;
  transition: border-color .3s;
}
.lf-field:focus-within { border-color: rgba(188,213,230,.55); }
.lf-field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--c-text-primary); font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: .01em;
}
.lf-field input::placeholder { color: var(--c-text-muted); }
.lf-field input.is-bad { animation: lfShake .4s; }
@keyframes lfShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

.lf-next {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--c-surface-3); background: rgba(255,255,255,.03);
  color: var(--c-text-primary); cursor: pointer; display: grid; place-items: center;
  font-size: 1.15rem; line-height: 1;
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s, background .3s;
}
.lf-next:hover {
  transform: translateY(-2px); border-color: rgba(188,213,230,.5);
  box-shadow: 0 0 26px var(--c-ice-glow); background: rgba(188,213,230,.06);
}
.lf-submit {
  width: auto; padding: 0 24px; height: 48px; border-radius: 100px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
/* Seta de voltar (aparece a partir da 2ª pergunta) */
.lf-back {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-surface-2); background: transparent;
  color: var(--c-text-secondary); cursor: pointer; display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1;
  transition: transform .4s var(--ease-spring), border-color .3s, color .3s, background .3s;
}
.lf-back:hover {
  transform: translateY(-2px); color: var(--c-text-primary);
  border-color: rgba(188,213,230,.4); background: rgba(255,255,255,.03);
}

/* Envio: setas/passo saem e entra a confirmação */
.lf-step.is-sending { animation: lfSend .42s var(--ease-out) forwards; pointer-events: none; }
@keyframes lfSend { to { opacity: 0; transform: translateY(-28px) scale(.96); filter: blur(2px); } }
.leadform__progress.is-sending { opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .35s; }
.leadform__done { animation: lfDoneIn .55s var(--ease-out) both; }
@keyframes lfDoneIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Estado final */
.leadform__done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lf-check {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; color: var(--c-bg-void); background: var(--c-ice-light);
  box-shadow: 0 0 30px var(--c-ice-glow); animation: lfPop .5s var(--ease-spring);
}
@keyframes lfPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.leadform__done p { font-size: 1rem; line-height: 1.55; color: var(--c-text-secondary); max-width: 42ch; }
.leadform__done .lf-name { color: var(--c-text-primary); }

/* ---- Mapa noir ---- */
.contact__map {
  position: relative; height: clamp(380px, 66vh, 600px);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--c-surface-2);
  background: var(--c-bg-raised);
}
.contact__frame {
  width: 100%; height: 100%; border: 0; display: block; pointer-events: none;
  filter: grayscale(.7) invert(.9) contrast(.92) brightness(.86);
}
.contact__maptint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, transparent 45%, rgba(0,0,0,.5) 100%),
    linear-gradient(180deg, rgba(10,16,22,.28), rgba(10,16,22,.42));
}
.contact__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-ice-light); box-shadow: 0 0 12px var(--c-ice-light);
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0%   { box-shadow: 0 0 0 0 rgba(188,213,230,.5), 0 0 12px var(--c-ice-light); }
  100% { box-shadow: 0 0 0 26px rgba(188,213,230,0), 0 0 12px var(--c-ice-light); }
}
.contact__card {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  max-width: 320px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--c-surface-2);
  background: linear-gradient(180deg, rgba(10,14,20,.84), rgba(10,14,20,.72));
  backdrop-filter: blur(12px);
}
.contact__addr-label { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-ice); margin-bottom: 8px; }
.contact__addr { font-size: .92rem; line-height: 1.5; color: var(--c-text-primary); margin-bottom: 12px; }
.contact__maplink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-ice-light);
  transition: gap .3s var(--ease-out);
}
.contact__maplink:hover { gap: 11px; }

/* ============================================================
   REVEAL no load
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.is-ready [data-reveal] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.is-ready [data-reveal-delay="1"] { transition-delay: .12s; }
.is-ready [data-reveal-delay="2"] { transition-delay: .24s; }
.is-ready [data-reveal-delay="3"] { transition-delay: .4s; }
.is-ready [data-reveal-delay="4"] { transition-delay: .9s; }
.is-ready [data-reveal-delay="5"] { transition-delay: 1.05s; }
.is-ready [data-reveal-delay="6"] { transition-delay: 1.2s; }
/* Os balões mantêm o hover ágil depois de revelarem */
.is-ready .stat { transition: opacity .9s var(--ease-out), border-color .3s, box-shadow .4s, transform .4s var(--ease-spring); }

/* ============================================================
   ABAS — palco + transição de sucção para cima
   ============================================================ */
main { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.view { position: absolute; inset: 0; }
.view:not(.is-active) { visibility: hidden; pointer-events: none; }

/* Saída: elementos sugados para cima (acelera + esbate + leve blur = velocidade) */
.view.is-leaving [data-reveal] {
  animation: suckUp .42s cubic-bezier(.5, 0, .85, .25) forwards;
}
.view.is-leaving [data-reveal-delay="1"] { animation-delay: .03s; }
.view.is-leaving [data-reveal-delay="2"] { animation-delay: .06s; }
.view.is-leaving [data-reveal-delay="3"] { animation-delay: .09s; }
.view.is-leaving [data-reveal-delay="4"] { animation-delay: .12s; }
.view.is-leaving [data-reveal-delay="5"] { animation-delay: .15s; }
.view.is-leaving [data-reveal-delay="6"] { animation-delay: .18s; }

/* Entrada: elementos sobem de baixo para o lugar */
.view.is-entering [data-reveal] {
  animation: riseIn .55s cubic-bezier(.16, 1, .3, 1) both;
}
.view.is-entering [data-reveal-delay="1"] { animation-delay: .06s; }
.view.is-entering [data-reveal-delay="2"] { animation-delay: .12s; }
.view.is-entering [data-reveal-delay="3"] { animation-delay: .18s; }
.view.is-entering [data-reveal-delay="4"] { animation-delay: .24s; }
.view.is-entering [data-reveal-delay="5"] { animation-delay: .30s; }
.view.is-entering [data-reveal-delay="6"] { animation-delay: .36s; }

@keyframes suckUp {
  0%   { opacity: 1; transform: translateY(0) scale(1);     filter: blur(0); }
  100% { opacity: 0; transform: translateY(-120px) scale(.96); filter: blur(3px); }
}
@keyframes riseIn {
  0%   { opacity: 0; transform: translateY(80px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MODAL · DETALHE DO SERVIÇO
   ============================================================ */
/* Card clicável (afordância — sem alterar o que já está montado) */
.svc { cursor: pointer; }
.svc:focus-visible {
  outline: none;
  border-color: rgba(188,213,230,.55);
  box-shadow: 0 0 0 2px var(--c-ice-glow), 0 18px 50px rgba(0,0,0,.42);
}
.svc__more {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--c-ice); opacity: .82; transition: gap .3s var(--ease-spring), opacity .3s;
}
.svc:hover .svc__more { opacity: 1; gap: 10px; }

/* Pontos do carrossel de serviços */
.svc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.svc-dots button {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: var(--c-surface-3); cursor: pointer;
  transition: width .3s var(--ease-out), background .3s;
}
.svc-dots button.is-on { width: 22px; border-radius: 100px; background: var(--c-ice); }

.svcmodal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .32s var(--ease-out), visibility 0s linear .32s;
}
.svcmodal.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .32s var(--ease-out);
}
.svcmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,7,9,.72); backdrop-filter: blur(7px);
}
.svcmodal__dialog {
  position: relative; z-index: 1;
  width: min(680px, 100%); max-height: min(86vh, 760px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--c-surface-2);
  background:
    radial-gradient(130% 70% at 50% 0%, rgba(188,213,230,.10), transparent 60%),
    linear-gradient(180deg, #1c2025 0%, #15171b 60%, #101216 100%);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 60px var(--c-ice-glow);
  transform: translateY(22px) scale(.97);
  transition: transform .42s var(--ease-spring);
}
.svcmodal.is-open .svcmodal__dialog { transform: translateY(0) scale(1); }

.svcmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-surface-2); background: rgba(255,255,255,.04);
  color: var(--c-text-secondary);
  transition: transform .3s var(--ease-spring), border-color .3s, color .3s, background .3s;
}
.svcmodal__close:hover {
  transform: rotate(90deg); color: var(--c-ice-light);
  border-color: rgba(188,213,230,.42); background: rgba(188,213,230,.08);
}
.svcmodal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.svcmodal__head {
  position: relative;
  /* padding-right extra reserva espaço para o botão de fechar (canto sup. direito) */
  padding: clamp(26px, 4vw, 38px) clamp(58px, 12vw, 72px) clamp(16px, 2vw, 22px) clamp(22px, 4vw, 38px);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: flex-start; gap: clamp(12px, 3vw, 22px);
}
.svcmodal__headmain { flex: 1 1 auto; min-width: 0; }
.svcmodal__no { display: none; }
.svcmodal__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem); text-transform: uppercase; letter-spacing: .03em;
}
.svcmodal__tag { margin-top: 6px; font-size: .82rem; letter-spacing: .02em; color: var(--c-ice); }

.svcmodal__body {
  padding: clamp(18px, 3vw, 28px) clamp(22px, 4vw, 38px);
  overflow-y: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 30px);
}
.svcgroup__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--c-ice);
}
.svcgroup__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-ice); box-shadow: 0 0 8px var(--c-ice-glow); flex: none;
}
.svcgroup__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.svcgroup__list li {
  position: relative; padding-left: 18px;
  font-size: .8rem; line-height: 1.35; color: var(--c-text-secondary);
}
.svcgroup__list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(188,213,230,.55);
}

.svcmodal__foot {
  padding: clamp(16px, 2.4vw, 22px) clamp(22px, 4vw, 38px) clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--c-line);
  display: flex; justify-content: center;
}
.svcmodal__foot .btn--primary { border-color: rgba(188,213,230,.42); }

@media (max-width: 620px) {
  .svcmodal__body { grid-template-columns: 1fr; gap: 20px; }
  .svcmodal__no { font-size: 2.2rem; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .car { width: min(940px, 78vw); }
}

/* Sobre Nós — empilha em ecrãs estreitos (passagem mobile completa virá depois) */
@media (max-width: 900px) {
  .about { align-items: flex-start; }
  .about__inner { grid-template-columns: 1fr; gap: clamp(20px, 4vh, 40px); }
  .about__visual { height: min(46vh, 420px); }
  .about__lead, .about__text { max-width: 60ch; }
}

/* Serviços — grelha adapta-se (mobile completo depois) */
@media (max-width: 1040px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services__head .btn--cta { align-self: flex-start; }
}
@media (max-width: 620px) {
  .services__grid { grid-template-columns: 1fr; }
  .precario__grid { columns: 1; }
}

/* Ecrãs de desktop baixos (ex.: 720p): aperta a folga vertical para caber sem rolar */
@media (min-width: 1041px) and (max-height: 760px) {
  .services { padding-top: calc(var(--nav-h) + 6px); padding-bottom: 8px; }
  .services__inner { gap: clamp(8px, 1.1vh, 15px); }
}

/* Contacto — empilha (mobile completo depois) */
@media (max-width: 900px) {
  .contact { align-items: flex-start; }
  .contact__inner { grid-template-columns: 1fr; gap: clamp(22px, 4vh, 36px); }
  .contact__map { height: clamp(260px, 38vh, 360px); }
}

@media (max-width: 880px) {
  .brand__label { display: none; }
  .nav__toggle { display: flex; }
  .nav__idx { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(4,5,6,.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--c-surface-2);
    padding: 12px var(--gutter) 24px;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .45s var(--ease-out), opacity .3s;
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__link { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: .82rem; }
  .nav__link::after { display: none; }
  .car { width: 90vw; top: 52%; }
}

@media (max-width: 560px) {
  .hero__foot { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .ticker { order: 3; flex-basis: 100%; }
  .hero__meta { font-size: .52rem; }
  .btn { padding: 12px 18px; }
  .eyebrow { gap: 10px; }
}

/* ============================================================
   MOBILE · mantém o sistema de abas (como no desktop), mas cada
   secção ganha scroll interno para o conteúdo não ficar cortado.
   O swipe só troca de aba quando já se está no limite da secção.
   Só ≤ 880px — desktop inalterado.
   ============================================================ */
@media (max-width: 880px) {
  /* Conteúdo encosta ao topo e a secção rola internamente se não couber */
  .about, .services, .contact {
    display: block;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .projects {
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  /* ---- Performance: cortar GPU pesado no mobile (evita aquecimento) ---- */
  /* backdrop-filter é dos efeitos mais caros em GPU de telemóvel */
  .nav__links { backdrop-filter: none; }
  .svc, .stat, .pcard__tag, .contact__card { backdrop-filter: none; }
  .svcmodal__backdrop { backdrop-filter: none; background: rgba(5,7,9,.86); }
  /* a luz do estúdio fica estática no mobile (loop desligado por JS) — liberta a camada */
  .studio__glow { will-change: auto; }

  /* ---- Barra minimalista e integrada (sem bloco preto sólido) ---- */
  /* Esbatimento suave de cima para baixo — liga-se à página em vez de a cortar */
  .nav {
    backdrop-filter: none; border-bottom: none;
    background: linear-gradient(180deg, rgba(8,10,12,.72) 0%, rgba(8,10,12,.26) 58%, transparent 100%);
  }
  .nav.is-scrolled {
    backdrop-filter: none; border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(8,10,12,.86) 0%, rgba(8,10,12,.34) 66%, transparent 100%);
  }

  /* ---- Enquadramento do Início no mobile ---- */
  /* Copy desce mais e ganha folga da barra */
  .hero { padding-top: calc(var(--nav-h) + clamp(34px, 8vh, 64px)); }
  /* Carro mais para baixo (transborda os lados de propósito — fica imponente) */
  .car { width: 124vw; top: 69%; }
  /* Logo MP desce com o carro, mas fica um pouco acima para assomar por cima dele */
  .walllogo { width: clamp(240px, 66vw, 390px); top: 61%; }

  /* Traços dos cantos: bonitos no desktop, mas distraem no mobile */
  .hud { display: none; }

  /* Remove a "linha de horizonte" do estúdio que dividia o ecrã em dois tons */
  .studio__floor {
    height: 34vh;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 88%);
  }

  /* ---- CTA de orçamento + Instagram no hero (só mobile) ---- */
  .hero__cta-row {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: clamp(18px, 3vh, 26px);
  }
  /* A bolinha do Instagram no hero vive só no mobile; a do nav é para desktop */
  .iconbtn--nav { display: none; }
  /* Enquanto estamos no Início, o botão grande chega — esconde o da barra... */
  body.on-hero .nav__actions .btn--primary { display: none; }
  /* ...e reaparece automaticamente nas outras abas (sem regra extra) */

  /* ---- Sobre Nós: distribuir para caber no ecrã sem rolar ---- */
  /* Baixa tudo (agora que não há rolagem, há folga para descer mais) */
  .about { padding-top: calc(var(--nav-h) + clamp(34px, 6.5vh, 56px)); padding-bottom: clamp(14px, 2.4vh, 24px); }
  /* Mais espaço entre a copy (link) e o visual (balões) */
  .about__inner { gap: clamp(22px, 4.5vh, 36px); }
  .about__title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    margin: clamp(8px, 1.4vh, 14px) 0 clamp(10px, 1.6vh, 16px);
  }
  .about__lead { font-size: .92rem; line-height: 1.5; max-width: none; }
  .about__text { font-size: .82rem; line-height: 1.5; margin-top: clamp(8px, 1.2vh, 14px); max-width: none; }
  .link-cta { margin-top: clamp(12px, 2vh, 20px); }
  /* "MP" de fundo recentrado para ficar mesmo atrás do carro */
  .about__ghost {
    left: 50%; right: auto; top: auto; bottom: 11%;
    transform: translateX(-50%);
    font-size: clamp(8rem, 52vw, 16rem);
    color: rgba(255,255,255,.04);
  }
  /* O Sobre passa a comportar-se como o Home: sem rolagem residual */
  .about { overflow: hidden; }
  /* Visual compacto; overflow hidden corta a parte de baixo do reflexo */
  .about__visual { height: min(30vh, 240px); overflow: hidden; }
  /* Carro mais pequeno e um pouco acima — o corte cai no reflexo, não no carro */
  .prod--feature { width: 76%; top: 43%; }
  .stat { padding: 6px 12px 6px 7px; gap: 8px; }
  .stat__icon { width: 26px; height: 26px; }
  .stat__icon svg { width: 13px; height: 13px; }
  .stat__txt b { font-size: .8rem; }
  .stat__txt span { font-size: .48rem; }
  /* Balões nos cantos. Os de cima ficam afastados da borda para o float (−12px)
     não os cortar contra o overflow:hidden do visual. */
  .stat--1 { top: 9%;  left: 0%; }
  .stat--2 { top: 7%;  right: 0%; }
  .stat--3 { bottom: 4%; right: 0%; }
  .stat--4 { bottom: 2%; left: 0%; }

  /* ---- Serviços: carrossel horizontal (1 card por vez) + lista que rola na vertical ---- */
  /* Antes centrava-se com overflow:hidden e cortava o cabeçalho (sob o menu) e a última
     linha da lista. Agora segue o fluxo e rola como as outras abas (herda o overflow-y:auto). */
  .services { padding-top: calc(var(--nav-h) + clamp(20px, 4.5vh, 40px)); }
  .services__inner { gap: clamp(10px, 1.8vh, 16px); }
  /* Separa a copy do card (e, por estar centrado, sobe um pouco a copy) */
  .services__head { gap: 6px; margin-bottom: clamp(16px, 3.4vh, 28px); }
  .services__title { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .services__sub { font-size: .82rem; }

  /* Cards empilham numa coluna; separadores podem rolar na horizontal */
  .services__grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .precario__grid { columns: 1; }

  /* Projetos: o marquee passa a ser controlado por JS (arrastar + auto), por isso
     desliga-se a animação CSS. touch-action: pan-y deixa o swipe vertical trocar de aba. */
  .marquee { touch-action: pan-y; cursor: grab; }
  .marquee:active { cursor: grabbing; }
  .marquee__track { animation: none; }
  /* Impede o arrasto nativo do link/imagem (que "puxava o link" em vez de mover a faixa) */
  .marquee a, .marquee img { -webkit-user-drag: none; user-select: none; }

  /* Mais folga (e segura) por baixo do menu flutuante nas tabs Projetos e Contacto */
  .projects { padding-top: calc(var(--nav-h) + clamp(30px, 6vh, 54px)); }
  .contact  { padding-top: calc(var(--nav-h) + clamp(30px, 6vh, 54px)); }

  /* Serviços Adicionais: segue o fluxo normal (a secção já rola verticalmente se precisar) */
  .services { padding-bottom: clamp(24px, 4vh, 40px); }
  .addons__list { grid-template-columns: 1fr; }
}

/* Sem cursor (toque): revela o carro de forma suave e constante, sem o gimmick */
@media (hover: none) {
  .car__base { filter: brightness(.62) contrast(1.02); }
  .car__lit { opacity: .55; -webkit-mask-image: none; mask-image: none; }
  .spotlight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hud__corner { opacity: 1; }
}
