/* Fontes servidas localmente (SIL OFL): Bebas Neue e Outfit (variável, 300-600). Sem pedidos a terceiros. */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --cyan: #00e5ff;
  --magenta: #ff0066;
  --amber: #ffaa00;
  --violet: #8800ff;
  --green: #00ff88;
  --deep: #050508;
}

body {
  background: var(--deep);
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
}

/* ═══════════════════════════════════════
 MENU (faixa escura, sem luz por trás)
  ═══════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 3;
  background: var(--deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 1.5rem;
  padding: 12px 5%;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  padding: 14px 4px;
}

.nav-links a:hover {
  color: #fff;
}

.btn-primary {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 14px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.btn-primary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-secondary {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  color: #fff;
}

/* ═══════════════════════════════════════
 HERO: palco visto do meio do público
 Conteúdo primeiro; a cena (aria-hidden) vem depois no DOM e fica por trás.
 Um só relógio: 1 tempo = 0,5 s (120 BPM), 1 compasso = 2 s, ciclo = 16 compassos = 32 s,
 4 looks de 4 compassos. Tudo o que mexe usa transform/rotate/scale/translate/opacity.
  ═══════════════════════════════════════ */
.hero {
  --hdr: 68px;
  --beat: 0.5s;
  --loop: 32s;
  --cols: 4.2;
  /* unidade de figura do público: partilhada pela cena e pela reserva de espaço do texto */
  --u: max(min(34vh, 58vw), 100vw / var(--cols));
  --u: max(min(34svh, 58vw), 100vw / var(--cols));
  --rig: clamp(44px, 10vh, 120px);
  --rig: clamp(44px, 10svh, 120px);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--hdr));
  min-height: calc(100svh - var(--hdr));
  padding: 0;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

@media (min-aspect-ratio: 2/1) { .hero { --cols: 5.6; } }
@media (min-aspect-ratio: 27/10) { .hero { --cols: 7.4; } }
/* ecrãs baixos (telemóvel deitado): público mais baixo para o título e o botão caberem */
@media (max-height: 500px) {
  .hero {
    --u: min(24vh, 58vw);
    --u: min(24svh, 58vw);
    --rig: 30px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--rig) + 2vh) 5% calc(var(--u) * 0.98 + 0.75rem);
}

/* scrim: mancha escura por trás do bloco de texto, para o contraste aguentar qualquer look */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(var(--rig) - 2rem);
  bottom: calc(var(--u) * 0.85);
  width: min(100%, 64rem);
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(5, 5, 8, 0.6), rgba(5, 5, 8, 0.45) 60%, rgba(5, 5, 8, 0.18) 85%, transparent);
  pointer-events: none;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2.75rem, min(12vw, 15vh), 10rem);
  font-size: clamp(2.75rem, min(12vw, 15svh), 10rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(5, 5, 8, 0.9);
}

.hero-title .accent {
  color: var(--cyan);
  text-shadow: 0 0 2px rgba(5, 5, 8, 0.9), 0 0 30px rgba(0, 229, 255, 0.6);
}

.hero-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34em;
  margin: 1.25rem auto 0;
  text-shadow: 0 1px 10px rgba(5, 5, 8, 0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.75rem;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-ctas .btn-primary {
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(5, 5, 8, 0.35);
}

.hero-ctas .btn-secondary {
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

@media (max-height: 500px) {
  .hero-sub { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.45; }
  .hero-ctas { margin-top: 1rem; }
}

/* ═══════════════════════════════════════
 CENA (decoração)
  ═══════════════════════════════════════ */
.hero-stage {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  content-visibility: auto;
}

@supports (rotate: atan2(1px, 1px)) and (width: 1cqw) and (color: color-mix(in srgb, red, blue)) {
  .hero-stage { display: block; }
}

/* As @container não estilizam o próprio contentor: as variáveis vivem em .show */
.show {
  position: absolute;
  inset: 0;
  isolation: isolate;
  --white: #e4f4ff;
  --spread: min(45cqw, 120cqh);
  --len: 140cqh;
  --half: 3.6deg;
  --fw: clamp(32px, 3.6cqw, 74px);          /* largura de um projetor */
  --ty: max(8px, 1.6cqh);                   /* topo da truss */
  --py: calc(var(--ty) + var(--fw) * 0.86); /* pivô da cabeça = origem do feixe */
}

.show *,
.show *::before,
.show *::after {
  --ph: 0s;
  animation-duration: var(--loop);
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  animation-delay: var(--ph);
  animation-fill-mode: both;
}

/* ---------- wash atrás do público: duas paletas espelhadas que se trocam a meio do ciclo ---------- */
.amb {
  position: absolute;
  inset: 0;
}

.amb.a {
  animation-name: pal-a;
  background:
    radial-gradient(34cqw 20cqh at 50% calc(100% - var(--u) * 0.6), rgba(255, 255, 255, 0.8), transparent 72%),
    radial-gradient(58cqw 40cqh at 24% calc(100% - var(--u) * 0.62), rgba(0, 229, 255, 0.72), transparent 70%),
    radial-gradient(58cqw 40cqh at 76% calc(100% - var(--u) * 0.62), rgba(255, 0, 102, 0.7), transparent 70%),
    radial-gradient(140cqw 66cqh at 50% calc(100% - var(--u) * 0.2), rgba(136, 0, 255, 0.62), transparent 72%);
}

.amb.b {
  opacity: 0;
  animation-name: pal-b;
  background:
    radial-gradient(34cqw 20cqh at 50% calc(100% - var(--u) * 0.6), rgba(255, 244, 230, 0.8), transparent 72%),
    radial-gradient(58cqw 40cqh at 24% calc(100% - var(--u) * 0.62), rgba(255, 0, 102, 0.7), transparent 70%),
    radial-gradient(58cqw 40cqh at 76% calc(100% - var(--u) * 0.62), rgba(0, 229, 255, 0.72), transparent 70%),
    radial-gradient(140cqw 66cqh at 50% calc(100% - var(--u) * 0.2), rgba(136, 0, 255, 0.62), transparent 72%);
}

/* respiração do horizonte, um compasso por ciclo de subida e descida */
.amb.lift {
  opacity: 0.35;
  animation-name: lift;
  animation-duration: calc(var(--beat) * 8);
  background: radial-gradient(70cqw 18cqh at 50% calc(100% - var(--u) * 0.66), rgba(255, 255, 255, 0.55), transparent 72%);
}

@keyframes pal-a { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pal-b { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lift { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.75; } }

/* ---------- projetores: fontes acima do ecrã, feixes largos e suaves que se mexem ---------- */
.fx {
  position: absolute;
  top: var(--py);
  left: calc(50% + var(--i) * var(--spread));
  width: 0;
  height: 0;
  --s: 1;
}

.fx.odd { --s: -1; }

/* invólucro animado mais exterior: leva a mistura aditiva */
.eff {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  mix-blend-mode: screen;
  mix-blend-mode: plus-lighter;
  --ph: calc((var(--i) - 1) * 2s);
  animation-name: sway;
  animation-duration: calc(var(--loop) / 8);
  animation-direction: alternate;
}

@keyframes sway {
  from { rotate: -3deg; }
  to { rotate: 3deg; }
}

.pan {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  rotate: calc(var(--i) * 28deg);
  animation-name: pos;
}

.beam {
  --c: var(--ca);
  --bw: calc(2 * var(--len) * tan(var(--half) * 2.6));
  position: absolute;
  left: calc(var(--bw) / -2);
  top: 0;
  width: var(--bw);
  height: var(--len);
  background: conic-gradient(from calc(180deg - 2.6 * var(--half)) at 50% 0,
    transparent 0,
    color-mix(in srgb, var(--c) 5%, transparent) calc(0.8 * var(--half)),
    color-mix(in srgb, var(--c) 22%, transparent) calc(1.6 * var(--half)),
    color-mix(in srgb, var(--c) 40%, transparent) calc(2.2 * var(--half)),
    color-mix(in srgb, color-mix(in srgb, var(--c) 85%, #fff) 46%, transparent) calc(2.6 * var(--half)),
    color-mix(in srgb, var(--c) 40%, transparent) calc(3 * var(--half)),
    color-mix(in srgb, var(--c) 22%, transparent) calc(3.6 * var(--half)),
    color-mix(in srgb, var(--c) 5%, transparent) calc(4.4 * var(--half)),
    transparent calc(5.2 * var(--half)), transparent 360deg);
  -webkit-mask-image: linear-gradient(#000 0, rgb(0 0 0 / 0.9) 38%, rgb(0 0 0 / 0.45) 70%, transparent 100%);
  mask-image: linear-gradient(#000 0, rgb(0 0 0 / 0.9) 38%, rgb(0 0 0 / 0.45) 70%, transparent 100%);
  animation-name: pal-a;
}

/* brilho da lente, na cor da camada: troca de paleta junto com o feixe */
.beam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--fw) * 0.3);
  width: calc(var(--fw) * 1.7);
  height: calc(var(--fw) * 1.7);
  translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, #fff) 0 14%, color-mix(in srgb, var(--c) 55%, transparent) 30%, color-mix(in srgb, var(--c) 14%, transparent) 60%, transparent);
}

.fx.sharp .beam::before { width: calc(var(--fw) * 1.2); height: calc(var(--fw) * 1.2); }

.beam.b {
  --c: var(--cb);
  opacity: 0;
  animation-name: pal-b;
}

/* Folha de posições (ciclo de 32 s; 1 compasso = 6,25 %). Sempre em movimento. */
@keyframes pos {
  /* 1  convergem por baixo do público e abrem, 2 s por movimento */
  0%, 12.5% { rotate: calc(var(--i) * 28deg); }
  6.25%, 18.75% { rotate: calc(var(--i) * 12deg); }
  /* 2  o leque inteiro varre de um lado para o outro */
  25%, 37.5% { rotate: calc(var(--i) * 20deg + 12deg); }
  31.25%, 43.75% { rotate: calc(var(--i) * 20deg - 12deg); }
  /* 3  ballyhoo: vizinhos em sentidos opostos, 1 s por movimento */
  50%, 56.25%, 62.5%, 68.75% { rotate: calc(var(--i) * 20deg + var(--s) * 12deg); }
  53.125%, 59.375%, 65.625%, 71.875% { rotate: calc(var(--i) * 20deg - var(--s) * 12deg); }
  /* 4  leque a abrir para fora e a voltar */
  75%, 87.5% { rotate: calc(var(--i) * -8deg); }
  81.25%, 93.75% { rotate: calc(var(--i) * 30deg); }
  100% { rotate: calc(var(--i) * 28deg); }
}

/* feixes estreitos brancos (tipo Sharpy): só na parte forte do ciclo, em tesoura */
.fx.sharp {
  --len: 125cqh;
  --half: 0.9deg;
  --ca: var(--white);
}

.fx.sharp .eff { opacity: 0; animation: sharp-cue var(--loop) linear infinite; }
.fx.sharp .pan { rotate: calc(var(--i) * 20deg); animation-name: spos; }
.fx.sharp .beam { animation: none; }

@keyframes sharp-cue { 0%, 22% { opacity: 0; } 26%, 71% { opacity: 0.6; } 75%, 100% { opacity: 0; } }
@keyframes spos {
  0%, 25%, 31.25%, 37.5%, 43.75%, 50%, 56.25%, 62.5%, 68.75%, 75%, 100% { rotate: calc(var(--i) * 20deg + var(--s) * 16deg); }
  28.125%, 34.375%, 40.625%, 46.875%, 53.125%, 59.375%, 65.625%, 71.875% { rotate: calc(var(--i) * 20deg - var(--s) * 16deg); }
}

/* ---------- névoa: uma só folha, a deslizar exatamente um mosaico ---------- */
.smoke {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 800px);
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .009' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.6 0 0 0 -.86'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 800px 600px repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(transparent 4%, #000 34%, #000 70%, transparent 92%);
  mask-image: linear-gradient(transparent 4%, #000 34%, #000 70%, transparent 92%);
  animation-name: drift;
  animation-duration: calc(var(--loop) * 2);
  animation-timing-function: linear;
}

@keyframes drift {
  to { translate: -800px 0; }
}

/* ---------- público: figuras do tamanho da altura do hero, quantidade pela proporção ---------- */
.crowd {
  position: absolute;
  inset: 0;
}

.crowd .row {
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  --h: calc(var(--u) * var(--k));
  --p: calc(var(--u) * var(--pk));
  paint-order: stroke;
}

.crowd .rF { --k: 1.3; --pk: 0.52; --top: 0.3; fill: #020204; color: #020204; stroke: url(#cr-rimF); stroke-width: 2.2; }
.crowd .rM { --k: 0.82; --pk: 0.328; --top: 0.5; fill: #0b0613; color: #0b0613; stroke: url(#cr-rimM); stroke-width: 2.8; }
.crowd .rB { --k: 0.56; --pk: 0.246; --top: 0.64; fill: #180b2a; color: #180b2a; stroke: url(#cr-rimB); stroke-width: 3.6; }
.crowd .hh { stroke: url(#cr-rimH); }

.crowd .haze {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--u) * 0.46);
  bottom: calc(var(--u) * var(--hb));
  background: linear-gradient(to top, transparent, rgba(176, 120, 255, var(--ha, 0.2)) 50%, transparent);
}

/* chão escuro atrás das filas de trás e do meio: entre os corpos vê-se escuro, não o wash */
.crowd .ground {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--u) * var(--gt));
  background: linear-gradient(to top, var(--gc) 0, var(--gc) var(--go), transparent 100%);
}

.crowd .ground.g0 { --gt: 0.66; --go: 80%; --gc: #040206; }
.crowd .ground.gB { --gt: 0.62; --go: 70%; --gc: #0c0518; }
.crowd .ground.gM { --gt: 0.58; --go: 70%; --gc: #06020c; }
.crowd .ground.gF { --gt: 0.3; --go: 55%; --gc: #030106; }

/* escalões de densidade: visibility mantém o relógio (display: none reiniciava as animações) */
.crowd .w2, .crowd .w3, .crowd .x2, .crowd .x3 { visibility: hidden; }
@media (min-aspect-ratio: 7/8) { .crowd .w2 { visibility: visible; } }
@media (min-aspect-ratio: 6/5) { .crowd .w3 { visibility: visible; } }
@media (min-aspect-ratio: 2/1) { .crowd .x2 { visibility: visible; } }
@media (min-aspect-ratio: 27/10) { .crowd .x3 { visibility: visible; } }

/* uma figura = invólucro HTML (movimento do corpo, no compositor) + SVG inline (desenho e membros) */
.crowd .dn {
  position: absolute;
  height: var(--h);
  width: calc(var(--h) * 240 / 340);
  left: calc(50% + var(--x) * var(--p) - var(--h) * 120 / 340);
  bottom: calc(var(--u) * var(--top) - var(--h) * (0.874 * var(--sy, 1) - var(--lift, 0)));
  transform-origin: 50% 100%;
  scale: var(--sx, 1) var(--sy, 1);
  --t: calc(var(--d, 0) * var(--beat) * -1);
  animation: cr-bounce var(--beat) cubic-bezier(0.45, 0, 0.4, 1) var(--t) infinite, cr-sway calc(var(--beat) * 4) ease-in-out var(--t) infinite;
}

.crowd .dn > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes cr-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--dip, 2.4%); } }
@keyframes cr-sway { 0%, 100% { rotate: calc(var(--sw, 2.5deg) * -1); } 50% { rotate: var(--sw, 2.5deg); } }
@keyframes cr-jump {
  0% { translate: 0 2%; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  50% { translate: 0 calc(var(--jh, 9%) * -1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); }
  100% { translate: 0 2%; }
}
@keyframes cr-step { 0%, 100% { transform: translateX(-5%); } 50% { transform: translateX(5%); } }

.crowd .jump { animation-name: cr-jump, cr-sway; animation-timing-function: linear, ease-in-out; }
.crowd .step {
  animation: cr-bounce var(--beat) cubic-bezier(0.45, 0, 0.4, 1) var(--t) infinite, cr-sway calc(var(--beat) * 4) ease-in-out var(--t) infinite, cr-step calc(var(--beat) * 2) ease-in-out var(--t) infinite;
}

/* articulações: transform-origin em unidades do viewBox; anima-se a propriedade transform em <g> */
.crowd .hd { transform-origin: 120px 100px; }
.crowd .l { transform-origin: 66px 136px; }
.crowd .l > .fa { transform-origin: 66px 70px; }
.crowd .r { transform-origin: 174px 136px; }
.crowd .r > .fa { transform-origin: 174px 70px; }

.crowd .hd,
.crowd .ua,
.crowd .fa {
  transform: rotate(var(--r0, 0deg));
  animation: cr-swing calc(var(--beat) * var(--n, 1)) var(--e, ease-in-out) calc(var(--t) + var(--lag, 0) * var(--beat)) infinite alternate;
}

@keyframes cr-swing { from { transform: rotate(var(--r0, 0deg)); } to { transform: rotate(var(--r1, 0deg)); } }

.crowd .hd { --r0: -6deg; --r1: 6deg; --n: 2; }
.crowd .m-wave .l { --r0: -30deg; --r1: 10deg; }
.crowd .m-wave .r { --r0: -10deg; --r1: 30deg; }
.crowd .m-wave .fa { --r0: -14deg; --r1: 14deg; --lag: 0.18; }
.crowd .m-clap { --dip: 1.4%; }
.crowd .m-clap .ua, .crowd .m-clap .fa { --n: 0.5; --e: cubic-bezier(0.6, 0, 0.3, 1); }
.crowd .m-clap .l { --r0: -32deg; --r1: -17deg; }
.crowd .m-clap .r { --r0: 32deg; --r1: 17deg; }
.crowd .m-clap .l > .fa { --r0: 18deg; --r1: 68deg; }
.crowd .m-clap .r > .fa { --r0: -18deg; --r1: -68deg; }
.crowd .m-pump { --dip: 3.2%; }
.crowd .m-pump .ua, .crowd .m-pump .fa { --n: 0.5; --e: cubic-bezier(0.3, 0, 0.2, 1); }
.crowd .m-pump .r { --r0: 34deg; --r1: 10deg; }
.crowd .m-pump .r > .fa { --r0: -78deg; --r1: -12deg; }
.crowd .m-pump .l { --r0: -34deg; --r1: -10deg; }
.crowd .m-pump .l > .fa { --r0: 78deg; --r1: 12deg; }
.crowd .m-point .ua { --n: 0.5; }
.crowd .m-point .r { --r0: 16deg; --r1: 4deg; }
.crowd .m-point .l { --r0: -16deg; --r1: -4deg; }
.crowd .m-point .fa { --n: 0.5; --r0: -7deg; --r1: 7deg; }
.crowd .m-phone { --dip: 0.8%; --sw: 1deg; }
.crowd .m-phone .ua, .crowd .m-phone .fa { --n: 4; }
.crowd .m-phone .l { --r0: -12deg; --r1: -7deg; }
.crowd .m-phone .r { --r0: 12deg; --r1: 7deg; }
.crowd .m-phone .l > .fa { --r0: 16deg; --r1: 22deg; }
.crowd .m-phone .r > .fa { --r0: -16deg; --r1: -22deg; }
.crowd .m-roof .ua, .crowd .m-roof .fa { --n: 0.5; }
.crowd .m-roof .l { --r0: -44deg; --r1: -22deg; }
.crowd .m-roof .r { --r0: 44deg; --r1: 22deg; }
.crowd .m-roof .l > .fa { --r0: 52deg; --r1: 20deg; }
.crowd .m-roof .r > .fa { --r0: -52deg; --r1: -20deg; }
.crowd .m-jump .ua { --n: 0.5; }
.crowd .m-jump .l { --r0: -26deg; --r1: -8deg; }
.crowd .m-jump .r { --r0: 26deg; --r1: 8deg; }
.crowd .m-jump .fa { --r0: -10deg; --r1: 10deg; --n: 0.5; --lag: 0.2; }

/* fila de trás: fase e passo vêm de ciclos :nth-child primos entre si */
.crowd .rB .dn { --d: calc(var(--a, 0) + var(--b, 0) + var(--c, 0)); --sx: var(--mx, 1); }
.crowd .rB .dn:nth-child(2n) { --a: 0.5; }
.crowd .rB .dn:nth-child(3n) { --b: 0.07; }
.crowd .rB .dn:nth-child(3n+1) { --b: 0.13; }
.crowd .rB .dn:nth-child(5n+1) { --c: 1; }
.crowd .rB .dn:nth-child(5n+2) { --c: 2; }
.crowd .rB .dn:nth-child(5n+4) { --c: 3; }
.crowd .rB .dn:nth-child(7n+2), .crowd .rB .dn:nth-child(7n+5) { animation-name: cr-jump, cr-sway; animation-timing-function: linear, ease-in-out; }
.crowd .rB .dn:nth-child(4n+1) { --mx: -1.04; }
.crowd .rB .dn:nth-child(4n+2) { --mx: 0.93; }
.crowd .rB .dn:nth-child(3n+2) { --sy: 1.07; }
.crowd .rB .dn:nth-child(5n) { --sy: 0.92; }

/* filas ao longe: mosaico de silhuetas em máscara */
.crowd .far {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--u) * var(--fh));
  bottom: calc(var(--u) * var(--fb));
  --dip: 4%;
  animation: cr-bounce var(--beat) ease-in-out var(--fd, 0s) infinite;
}

.crowd .far::before,
.crowd .far::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--m) 50% 100% / auto 100% repeat-x;
  mask: var(--m) 50% 100% / auto 100% repeat-x;
}

.crowd .far::before { background: linear-gradient(var(--rim), transparent 80%); translate: 0 -2px; }
.crowd .far::after { background: var(--ink); }
.crowd .far1 { --fh: 0.25; --fb: 0.6; --ink: #40206e; --rim: #f6e4ff; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1650 300'%3E%3Cdefs%3E%3Cg id='t1'%3E%3Cpath d='M108 88V104C102 114 86 117 72 122 60 127 54 138 54 154L58 340H182L186 154C186 138 180 127 168 122 154 117 138 114 132 104V88Z'/%3E%3C/g%3E%3Cg id='ua'%3E%3Cpath d='M53 136C53 153 79 153 79 136L76 70C76 57 56 57 56 70Z'/%3E%3C/g%3E%3Cg id='fo'%3E%3Cpath d='M57 70C57 83 75 83 75 70L73 14C76 8 75-5 66-5 57-5 56 8 59 14Z'/%3E%3Cpath d='M59.500-1 56.500-16M64-4 63-22M68.500-4 69.500-22M73-1 76.500-15' fill='none' stroke='currentColor' stroke-width='4.400' stroke-linecap='round'/%3E%3Cpath d='M58 11 49.500 2' fill='none' stroke='currentColor' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg id='h6'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M96 47a10 10 0 1 1 20 0a10 10 0 1 1-20 0M124 47a10 10 0 1 1 20 0a10 10 0 1 1-20 0M95 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0M138.600 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0'/%3E%3C/g%3E%3Cg id='h1'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M95 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0M138.600 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0'/%3E%3C/g%3E%3Cg id='t3'%3E%3Cpath d='M110 88V106C106 116 94 120 82 126 70 132 62 142 62 156L70 250C70 264 66 292 62 340H178C174 292 170 264 170 250L178 156C178 142 170 132 158 126 146 120 134 116 130 106V88Z'/%3E%3C/g%3E%3Cg id='t2'%3E%3Cpath d='M104 90 102 106C94 116 78 118 64 124 52 130 46 142 46 158L50 340H190L194 158C194 142 188 130 176 124 162 118 146 116 138 106L136 90Z'/%3E%3C/g%3E%3Cg id='fr'%3E%3Cpath d='M57 70C57 83 75 83 75 70L72.500 16C79 12 78-8 66-8 54-8 53 12 59.500 16Z'/%3E%3Cpath d='M59-3 55-22M73-3 77-22' fill='none' stroke='currentColor' stroke-width='4.600' stroke-linecap='round'/%3E%3C/g%3E%3Cg id='h4'%3E%3Cpath d='M90 64a30 30 0 1 1 60 0a30 30 0 1 1-60 0'/%3E%3C/g%3E%3Cg id='ff'%3E%3Cpath d='M57 70C57 83 75 83 75 70L72.500 16C79 12 78-8 66-8 54-8 53 12 59.500 16Z'/%3E%3C/g%3E%3Cg id='h3'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M109 39a11 11 0 1 1 22 0a11 11 0 1 1-22 0M95 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0M138.600 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0'/%3E%3C/g%3E%3Cg id='h2'%3E%3Cpath d='M97 70C95 34 145 34 143 70 144 96 150 118 153 136 132 144 108 144 87 136 90 118 96 96 97 70Z'/%3E%3C/g%3E%3Cg id='h5'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M91 61C91 54 99 51 101 48 105 39 135 39 139 48 141 51 149 54 149 61 149 67 91 67 91 61Z'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='translate(-6.814 91.159) scale(1.052)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1643.186 91.159) scale(1.052)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(173.206 82.905) scale(.998)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-22 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(6 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(24 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-4 174 70)'%3E%3Cuse href='%23fo' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h1'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(326.792 97.031) scale(.889)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(-17 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(66 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(17 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-66 174 70)'%3E%3Cuse href='%23fo' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h1'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(457.924 75.023) scale(.824)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(625.318 96.174) scale(.906)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(-17 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(66 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(17 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-66 174 70)'%3E%3Cuse href='%23fo' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h1'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(777.61 70.414) scale(.826)'%3E%3Cuse href='%23t2'/%3E%3Cg transform='rotate(-38 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(46 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(36 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-40 174 70)'%3E%3Cuse href='%23fr' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(908.205 109.582) scale(.857)'%3E%3Cuse href='%23t2'/%3E%3Cg transform='rotate(-38 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(46 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(36 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-40 174 70)'%3E%3Cuse href='%23fr' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1080.916 75.851) scale(.844)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1196.319 79.305) scale(1.116)'%3E%3Cuse href='%23t3'/%3E%3Cg class='hh' transform='rotate(4 120 100)'%3E%3Cuse href='%23h2'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1373.342 103.941) scale(1.081)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(-276.658 103.941) scale(1.081)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1518.949 66.981) scale(1.062)'%3E%3Cuse href='%23t2'/%3E%3Cg class='hh' transform='rotate(-5 120 100)'%3E%3Cuse href='%23h5'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(-131.051 66.981) scale(1.062)'%3E%3Cuse href='%23t2'/%3E%3Cg class='hh' transform='rotate(-5 120 100)'%3E%3Cuse href='%23h5'/%3E%3C/g%3E%3C/g%3E%3Crect y='215' width='1650' height='85'/%3E%3C/svg%3E"); }
.crowd .far2 { --fh: 0.33; --fb: 0.53; --ink: #2a1450; --rim: #ecd2ff; --fd: -0.25s; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1350 300'%3E%3Cdefs%3E%3Cg id='t3'%3E%3Cpath d='M110 88V106C106 116 94 120 82 126 70 132 62 142 62 156L70 250C70 264 66 292 62 340H178C174 292 170 264 170 250L178 156C178 142 170 132 158 126 146 120 134 116 130 106V88Z'/%3E%3C/g%3E%3Cg id='ua'%3E%3Cpath d='M53 136C53 153 79 153 79 136L76 70C76 57 56 57 56 70Z'/%3E%3C/g%3E%3Cg id='ff'%3E%3Cpath d='M57 70C57 83 75 83 75 70L72.500 16C79 12 78-8 66-8 54-8 53 12 59.500 16Z'/%3E%3C/g%3E%3Cg id='h3'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M109 39a11 11 0 1 1 22 0a11 11 0 1 1-22 0M95 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0M138.600 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0'/%3E%3C/g%3E%3Cg id='t1'%3E%3Cpath d='M108 88V104C102 114 86 117 72 122 60 127 54 138 54 154L58 340H182L186 154C186 138 180 127 168 122 154 117 138 114 132 104V88Z'/%3E%3C/g%3E%3Cg id='fo'%3E%3Cpath d='M57 70C57 83 75 83 75 70L73 14C76 8 75-5 66-5 57-5 56 8 59 14Z'/%3E%3Cpath d='M59.500-1 56.500-16M64-4 63-22M68.500-4 69.500-22M73-1 76.500-15' fill='none' stroke='currentColor' stroke-width='4.400' stroke-linecap='round'/%3E%3Cpath d='M58 11 49.500 2' fill='none' stroke='currentColor' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg id='h6'%3E%3Cpath d='M99 68a21 25 0 1 1 42 0a21 25 0 1 1-42 0M96 47a10 10 0 1 1 20 0a10 10 0 1 1-20 0M124 47a10 10 0 1 1 20 0a10 10 0 1 1-20 0M95 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0M138.600 73a3.200 6 0 1 0 6.400 0a3.200 6 0 1 0-6.400 0'/%3E%3C/g%3E%3Cg id='t2'%3E%3Cpath d='M104 90 102 106C94 116 78 118 64 124 52 130 46 142 46 158L50 340H190L194 158C194 142 188 130 176 124 162 118 146 116 138 106L136 90Z'/%3E%3C/g%3E%3Cg id='fr'%3E%3Cpath d='M57 70C57 83 75 83 75 70L72.500 16C79 12 78-8 66-8 54-8 53 12 59.500 16Z'/%3E%3Cpath d='M59-3 55-22M73-3 77-22' fill='none' stroke='currentColor' stroke-width='4.600' stroke-linecap='round'/%3E%3C/g%3E%3Cg id='h4'%3E%3Cpath d='M90 64a30 30 0 1 1 60 0a30 30 0 1 1-60 0'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='translate(-11.494 101.084) scale(1.075)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1338.506 101.084) scale(1.075)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(145.763 105.973) scale(1.027)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(321.881 89.364) scale(1.01)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(447.221 96.514) scale(1.101)'%3E%3Cuse href='%23t2'/%3E%3Cg transform='rotate(-38 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(46 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(36 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-40 174 70)'%3E%3Cuse href='%23fr' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h4'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(612.133 104.872) scale(.93)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(782.421 69.491) scale(.957)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-50 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(18 66 70)'%3E%3Cuse href='%23ff' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(46 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-22 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(882.886 103.816) scale(.92)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-10 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(14 66 70)'%3E%3Cuse href='%23fo' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1059.645 63.737) scale(.978)'%3E%3Cuse href='%23t3'/%3E%3Cg transform='rotate(8 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-10 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(1191.808 63.417) scale(1.031)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-50 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(18 66 70)'%3E%3Cuse href='%23ff' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(46 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-22 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(-158.192 63.417) scale(1.031)'%3E%3Cuse href='%23t1'/%3E%3Cg transform='rotate(-50 66 136)'%3E%3Cuse href='%23ua' x='0'/%3E%3Cg transform='rotate(18 66 70)'%3E%3Cuse href='%23ff' x='0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(46 174 136)'%3E%3Cuse href='%23ua' x='108'/%3E%3Cg transform='rotate(-22 174 70)'%3E%3Cuse href='%23ff' x='108'/%3E%3C/g%3E%3C/g%3E%3Cg class='hh' transform='rotate(0 120 100)'%3E%3Cuse href='%23h3'/%3E%3C/g%3E%3C/g%3E%3Crect y='215' width='1350' height='85'/%3E%3C/svg%3E"); }

/* vinheta e junção sem degrau com a secção seguinte */
.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 92%, var(--deep)),
    radial-gradient(120% 95% at 50% 40%, transparent 58%, rgb(5 5 8 / 0.7) 100%);
}

/* ---------- truss e projetores desenhados no estilo do público: corpo escuro, rebordo de luz ---------- */
.truss {
  position: absolute;
  left: -2%;
  right: -2%;
  top: var(--ty);
  height: calc(var(--fw) * 0.4);
  background:
    linear-gradient(#3a3046, #15111b) 0 0 / 100% 16% no-repeat,
    linear-gradient(#251e2e, #0c0a10) 0 100% / 100% 16% no-repeat,
    repeating-linear-gradient(58deg, transparent 0 calc(var(--fw) * 0.3), #1f1828 calc(var(--fw) * 0.3) calc(var(--fw) * 0.36)),
    repeating-linear-gradient(-58deg, transparent 0 calc(var(--fw) * 0.3), #1f1828 calc(var(--fw) * 0.3) calc(var(--fw) * 0.36));
  box-shadow: 0 1px 0 rgba(230, 204, 255, 0.18);
}

.fxa {
  position: absolute;
  top: var(--py);
  left: calc(50% + var(--i) * var(--spread));
  width: 0;
  height: 0;
  --s: 1;
}

.fxa.odd { --s: -1; }

.fxa svg {
  position: absolute;
  left: calc(var(--fw) * -0.5);
  top: calc(var(--fw) * -0.6);
  width: var(--fw);
  height: calc(var(--fw) * 1.2);
  overflow: visible;
  fill: #0d0a13;
  stroke: url(#fx-rim);
  stroke-width: 1.6;
  paint-order: stroke;
}

.fxa.sharp svg { scale: 0.82; transform-origin: 50% 50%; }

/* a cabeça repete as rotações do feixe (as mesmas animações no mesmo relógio) */
.hsw,
.hpan {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.hsw {
  --ph: calc((var(--i) - 1) * 2s);
  animation-name: sway;
  animation-duration: calc(var(--loop) / 8);
  animation-direction: alternate;
}

.hpan {
  rotate: calc(var(--i) * 28deg);
  animation-name: pos;
}

.fxa.sharp .hsw { animation: none; }
.fxa.sharp .hpan { rotate: calc(var(--i) * 20deg); animation-name: spos; }

/* ---------- densidade por formato (visibility: os relógios continuam em fase) ---------- */
@container (max-width: 699px) {
  .rig .fx.n2,
  .rig .fxa.n2,
  .rig .sharp { visibility: hidden; }
  .show { --spread: 40cqw; }
}

/* ---------- ecrãs estreitos: menu em coluna ---------- */
@media (max-width: 600px) {
  .hero { --hdr: 112px; }

  .nav {
    flex-direction: column;
    padding-top: 16px;
  }

  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 340px) {
  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 16px 2px;
  }
}

/* Alto contraste e impressão: sem cena; os botões mantêm o contorno */
@media (forced-colors: active) {
  .hero-stage { display: none !important; }
  .hero-content::before { display: none; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { border: 1px solid ButtonText; }
}

@media print {
  .hero-stage { display: none !important; }
}

/* Movimento reduzido: a regra global no fim do ficheiro para as animações e fica o fotograma
   desenhado pelas regras sem animação: primeira paleta, feixes a convergir por baixo do público. */

/* ═══════════════════════════════════════
 SECTIONS
  ═══════════════════════════════════════ */
section {
  position: relative;
  padding: 100px 5%;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.section-intro {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 1.25rem auto 0;
}

.footer-tagline {
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin: -1.25rem 0 2rem;
}

/* ═══════════════════════════════════════
 SERVICES: cada cartão é um mini-palco com a sua gelatina (--gel)
  ═══════════════════════════════════════ */
.services-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: clamp(1200px, 72vw, 1680px);
  margin: 0 auto;
}

.svc {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: #07070b;
  --tint: color-mix(in srgb, var(--gel) 55%, #fff);
}

/* orla iluminada de cima, na cor do cartão */
.svc::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent);
  opacity: 0.45;
  transition: opacity 0.5s cubic-bezier(0.3, 0, 0.3, 1);
}

.svc > .sc {
  order: -1;
  opacity: 0.62;
  transition: opacity 0.5s cubic-bezier(0.3, 0, 0.3, 1);
}

/* a luz da cena cai sobre o título */
.svc-body {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 32px);
  background: radial-gradient(85% 9rem at 50% 0, color-mix(in srgb, var(--gel) 11%, transparent), transparent);
}

.svc h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.svc p {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.svc ul {
  display: grid;
  gap: 0.5rem;
  margin: 1.1rem 0 1.4rem;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.svc li {
  position: relative;
  padding-left: 1.5rem;
}

.svc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.8rem;
  height: 2px;
  background: var(--tint);
}

.svc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--tint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.svc a::after {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.3em;
  border: solid;
  border-width: 2px 2px 0 0;
  rotate: 45deg;
}

.svc a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.svc a:focus-visible { outline-color: var(--tint); }

/* preset em repouso; com hover ou foco a luz sobe e os projetores mexem. Em ecrãs de toque está sempre no ar. */
.svc:hover > .sc,
.svc:focus-within > .sc,
.svc:hover::after,
.svc:focus-within::after { opacity: 1; }

@media (hover: hover) {
  .svc:not(:hover, :focus-within) :is(.pn, .gb) { animation-play-state: paused; }
}

@media (hover: none) {
  .svc > .sc { opacity: 1; }
}

@media (min-width: 640px) and (max-width: 999px) {
  .svc {
    grid-template: none / minmax(0, 52%) 1fr;
    align-items: center;
  }

  .svc > .sc { aspect-ratio: 4 / 3; }

  .svc-body { background: radial-gradient(9rem 85% at 0 50%, color-mix(in srgb, var(--gel) 11%, transparent), transparent); }
}

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

/* Cenas desenhadas (decoração, aria-hidden). Um relógio de 8 s por cena; só transform/rotate/opacity.
   content-visibility: auto para a cena não trabalhar fora do ecrã, como o palco do hero. */
.sc {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: size;
  content-visibility: auto;
  pointer-events: none;
}

.sc * {
  position: absolute;
  animation: 8s ease-in-out infinite;
}

.sc .sv {
  inset: 0;
  width: 100%;
  height: 100%;
}

.sc .br { animation-name: sc-br; animation-duration: 4s; }
.sc .tw { animation-name: sc-tw; animation-duration: 4s; }
.sc .t1, .sc .d1 { animation-delay: -1.3s; }
.sc .t2, .sc .d2 { animation-delay: -2.7s; }
.sc .gb { animation: sc-gobo 8s linear infinite; }

@keyframes sc-br { 50% { opacity: 0.62; } }
@keyframes sc-tw { 50% { opacity: 0.45; } }
@keyframes sc-gobo { to { transform: rotate(45deg); } }
@keyframes sc-fan { 0%, 100% { rotate: calc(var(--i) * 5deg); } 50% { rotate: calc(var(--i) * 19deg); } }

/* festival: o hero em miniatura */
.sc-fest { --u: 11.5cqw; }

.sc-fest .wash {
  inset: 0;
  background:
    radial-gradient(30cqw 11cqw at 50% 80%, rgb(255 255 255 / 0.5), transparent 70%),
    radial-gradient(44cqw 26cqw at 24% 84%, color-mix(in srgb, var(--gel) 62%, transparent), transparent 70%),
    radial-gradient(44cqw 26cqw at 76% 84%, color-mix(in srgb, var(--gel2) 62%, transparent), transparent 70%);
}

.sc-fest .tr {
  left: -2%;
  right: -2%;
  top: 1.2cqw;
  height: calc(var(--u) * 0.4);
  background:
    linear-gradient(#3a3046, #15111b) 0 0 / 100% 16% no-repeat,
    linear-gradient(#251e2e, #0c0a10) 0 100% / 100% 16% no-repeat,
    repeating-linear-gradient(58deg, transparent 0 calc(var(--u) * 0.3), #1f1828 calc(var(--u) * 0.3) calc(var(--u) * 0.36)),
    repeating-linear-gradient(-58deg, transparent 0 calc(var(--u) * 0.3), #1f1828 calc(var(--u) * 0.3) calc(var(--u) * 0.36));
}

.mv {
  left: calc(50% + var(--i) * 24cqw);
  top: calc(1.2cqw + var(--u) * 0.86);
  --c: var(--gel);
}

.mv:nth-child(odd) { --c: var(--gel2); }

.mv svg {
  left: calc(var(--u) * -0.5);
  top: calc(var(--u) * -0.6);
  width: var(--u);
  height: calc(var(--u) * 1.2);
  overflow: visible;
  fill: #0d0a13;
  stroke: url(#fx-rim);
  stroke-width: 1.6;
  paint-order: stroke;
}

.pn {
  rotate: calc(var(--i) * 13deg);
  animation-name: sc-fan;
}

.pn::before {
  content: "";
  position: absolute;
  left: -18cqw;
  width: 36cqw;
  height: 64cqw;
  background: conic-gradient(from 164deg at 50% 0, transparent, color-mix(in srgb, var(--c) 22%, transparent) 7deg,
    color-mix(in srgb, color-mix(in srgb, var(--c) 82%, #fff) 50%, transparent) 16deg,
    color-mix(in srgb, var(--c) 22%, transparent) 25deg, transparent 32deg, transparent);
  -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / 0.75) 45%, transparent 96%);
  mask-image: linear-gradient(#000, rgb(0 0 0 / 0.75) 45%, transparent 96%);
}

.sc-fest .cw {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 15cqw;
  fill: #020204;
  color: #020204;
  stroke: url(#cr-rimF);
  stroke-width: 3.2;
  paint-order: stroke;
}

/* traços comuns das cenas em SVG */
.sv .ln { fill: none; stroke: #2a2118; stroke-width: 0.35; }
.sv .dk { fill: #15131d; stroke: color-mix(in srgb, var(--gel2, #e6ccff) 42%, transparent); stroke-width: 0.45; paint-order: stroke; }
.sc-corp .gb { fill: none; stroke: color-mix(in srgb, var(--gel) 62%, #fff); }

@media (forced-colors: active) {
  .sc { display: none; }
  .svc { border: 1px solid CanvasText; }
}

@media print {
  .sc { display: none; }
}

/* ═══════════════════════════════════════
 PORTFOLIO: a folha de cues. Um bloco por item; cada um com a sua gelatina (--gel).
  ═══════════════════════════════════════ */
.cues {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  max-width: clamp(1200px, 72vw, 1680px);
  margin: 0 auto;
}

.cue {
  position: relative;
  isolation: isolate;
  display: grid;
  border-radius: 14px;
  --tint: color-mix(in srgb, var(--gel) 55%, #fff);
}

/* brilho da cor do item a sair por trás, como um ecrã numa sala escura */
.cue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 clamp(28px, 5vw, 72px) color-mix(in srgb, var(--gel) 50%, transparent);
  opacity: 0.4;
  transition: opacity 0.5s cubic-bezier(0.3, 0, 0.3, 1);
}

.cue picture {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}

.cue img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transition: opacity 0.5s cubic-bezier(0.3, 0, 0.3, 1);
}

.cue:hover img,
.cue:hover::before,
.cue:focus-within::before { opacity: 1; }

.cue figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 22px);
  border-radius: 0 0 14px 14px;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.95), rgba(5, 5, 8, 0.82) 55%, transparent);
}

.cue-tag {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--tint);
}

.cue-tag::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border-radius: 2px;
  background: var(--gel);
}

.cue h3 {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.cue-main picture { aspect-ratio: 1; }

/* o quarto lugar: palco vazio com a luz de serviço acesa */
.cue-next {
  overflow: hidden;
  background: #07070b;
}

.cue-next > .sc {
  transition: opacity 0.5s cubic-bezier(0.3, 0, 0.3, 1);
  order: -1;
  aspect-ratio: 16 / 7;
}

.cue-next > div:first-child {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(20px, 3vw, 44px);
}

.cue-next h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.cue-next .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

@media (min-width: 600px) {
  .cues { grid-template-columns: 1fr 1fr; }
  .cue-main, .cue-next { grid-column: 1 / -1; }
  .cue-main picture { aspect-ratio: 3 / 2; }
  .cue:not(.cue-main) picture { aspect-ratio: 1; }
  .cue-next { grid-template-columns: 1fr 1.25fr; align-items: center; }
  .cue-next > .sc { order: 0; aspect-ratio: auto; align-self: stretch; min-height: 220px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
}

@media (min-width: 900px) {
  .cues { grid-template-columns: 1.4fr 1fr; }
  .cue-main { grid-column: 1; grid-row: 1 / 3; }
  .cue-main picture { aspect-ratio: auto; }
  .cue:not(.cue-main) picture { aspect-ratio: 3 / 2; }
}

@media (forced-colors: active) {
  .cue-next { border: 1px solid CanvasText; }
}

/* ═══════════════════════════════════════
 PASSAGENS entre secções (decoração, aria-hidden). Um relógio por cena; só transform/translate/opacity.
  ═══════════════════════════════════════ */
.pass {
  position: relative;
  height: clamp(150px, 17vw, 300px);
  overflow: hidden;
  container-type: size;
  content-visibility: auto;
  pointer-events: none;
  --T: 24s;
  --x0: -12;
  --sp: 136;
}

.pass * {
  position: absolute;
  animation: var(--T) linear infinite;
}

/* A: o load-in. O técnico empurra o flight case; cada PAR acende quando o case lhe passa por baixo. */
.pass-in .fl {
  inset: auto 0 0;
  height: 15cqh;
  background: linear-gradient(90deg, transparent, rgb(230 204 255 / 0.2) 14% 86%, transparent) 0 0 / 100% 1px no-repeat, linear-gradient(#15111b, #07060a 40%, transparent);
}

.pass-in .wk {
  inset: 0;
  background: radial-gradient(70cqw 60cqh at 50% 86%, rgb(255 170 0 / 0.09), transparent);
}

.pass-in .pp {
  inset: 6cqh 0 auto;
  height: 1.6cqh;
  background: linear-gradient(90deg, transparent, #2a2333 14% 86%, transparent);
}

.par {
  left: calc(var(--x) * 1%);
  top: 6cqh;
}

.par b {
  left: -30cqh;
  top: 7cqh;
  width: 60cqh;
  height: 80cqh;
  opacity: 0.75;
  background: conic-gradient(from 150deg at 50% 0, transparent, color-mix(in srgb, var(--c) 30%, transparent) 14deg,
    color-mix(in srgb, var(--c) 58%, transparent) 30deg, color-mix(in srgb, var(--c) 30%, transparent) 46deg, transparent 60deg, transparent);
  -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / 0.6) 60%, transparent);
  mask-image: linear-gradient(#000, rgb(0 0 0 / 0.6) 60%, transparent);
  animation-name: pass-par;
  animation-timing-function: ease-in-out;
  animation-delay: calc(var(--T) * ((var(--x) - var(--x0)) / var(--sp) - 1.085));
}

.par::after {
  content: "";
  position: absolute;
  left: -3.6cqh;
  top: 1cqh;
  width: 7.2cqh;
  height: 9cqh;
  border-radius: 18% 18% 36% 36%;
  background: linear-gradient(#332a3d, #0d0a13);
  box-shadow: 0 0.5cqh 0 color-mix(in srgb, var(--c) 70%, #fff);
}

@keyframes pass-par { 0%, 20%, 100% { opacity: 0.05; } 6%, 11% { opacity: 1; } }

.prop {
  left: calc(var(--x) * 1%);
  bottom: 14.6cqh;
  height: calc(var(--h) * 1cqh);
  translate: -50% 0;
  opacity: 0.6;
}

.sil {
  fill: #0d0a13;
  stroke: rgb(230 204 255 / 0.36);
  stroke-width: 1.2;
  paint-order: stroke;
}

.pass .led { animation: sc-tw 2s ease-in-out infinite; }

.go {
  left: 0;
  bottom: 13.4cqh;
  translate: 50cqw 0;
  animation-name: pass-go;
}

.go svg {
  left: -96cqh;
  bottom: 0;
  height: 66cqh;
  overflow: visible;
}

@keyframes pass-go { from { translate: calc(var(--x0) * 1cqw) 0; } to { translate: calc((var(--x0) + var(--sp)) * 1cqw) 0; } }

.go .sil { fill: #1a1522; }
.go .lg { transform-origin: 82px 72px; transform: rotate(16deg); animation: pass-leg 0.5s ease-in-out infinite alternate; }
.go .lg + .lg { transform: rotate(-16deg); animation-direction: alternate-reverse; }
.go .bob { animation: pass-bob 0.5s ease-in-out infinite alternate; }
.go .wh { animation: pass-wh 1s linear infinite; }

@keyframes pass-leg { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
@keyframes pass-bob { to { transform: translateY(1.6px); } }
@keyframes pass-wh { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .pass { --T: 12s; --x0: -14; --sp: 160; }
  .prop:nth-of-type(2), .prop:nth-of-type(3) { visibility: hidden; }
}

/* C: a grinalda. Uma fila de lâmpadas de lado a lado que aquece o ambiente antes do formulário */
.gar {
  position: relative;
  height: clamp(88px, 8.5vw, 160px);
  overflow: hidden;
  content-visibility: auto;
  pointer-events: none;
  background: radial-gradient(90% 100% at 50% 100%, rgb(255 170 0 / 0.13), transparent), linear-gradient(var(--deep), #0b0806);
}

.gar svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gar .ln { fill: none; stroke: #3a2c18; stroke-width: 0.5; }
.gar .sw { transform-origin: 1000px 0; animation: gar-sway 8s ease-in-out infinite alternate; }
.gar .sw + .sw { animation-direction: alternate-reverse; }
.gar .tw { animation: sc-tw 4s ease-in-out infinite; }
.gar .t1 { animation-delay: -1.3s; }
.gar .t2 { animation-delay: -2.7s; }
.gar .sw + .sw .tw { animation-duration: 8s; }

@keyframes gar-sway { from { transform: skewX(-1.6deg); } to { transform: skewX(1.6deg); } }


/* B: a névoa do hero escorre para trás do cabeçalho e um foco de seguimento pousa no título */
#services { isolation: isolate; }

/* look de cada zona: o Portfólio tinge-se de violeta, o Contacto aquece */
#portfolio { background: linear-gradient(var(--deep), #0c0718 22%, #0c0718 78%, var(--deep)); }

.sec-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  content-visibility: auto;
}

.sec-fx * { position: absolute; }

.fx-haze .hz {
  top: 0;
  left: 0;
  width: calc(100% + 800px);
  height: min(100%, 460px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.002 .011' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6  0 0 0 0 .45  0 0 0 0 1  1.5 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 800px 600px;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(transparent, #000 40%, rgb(0 0 0 / 0.5) 70%, transparent);
  mask-image: linear-gradient(transparent, #000 40%, rgb(0 0 0 / 0.5) 70%, transparent);
  animation: fx-drift 64s linear infinite;
}

/* o cone roda em torno do ponto onde pousa: quem opera o foco nunca está completamente parado */
.fx-haze .cn {
  left: 50%;
  top: 0;
  width: 520px;
  height: var(--ty);
  margin-left: -260px;
  transform-origin: 50% 100%;
  rotate: 15deg;
  background: conic-gradient(from 171deg at 50% -425px, transparent, rgb(223 234 255 / 0.14) 5deg, rgb(223 234 255 / 0.34) 9deg, rgb(223 234 255 / 0.14) 13deg, transparent 18deg, transparent);
  -webkit-mask-image: linear-gradient(transparent 25%, #000 78%, transparent);
  mask-image: linear-gradient(transparent 25%, #000 78%, transparent);
  animation: fx-spot 8s ease-in-out infinite;
}

.fx-haze :is(.cn, .sp) { transition: opacity 0.6s cubic-bezier(0.3, 0, 0.3, 1); }

.fx-haze .sp {
  left: 50%;
  top: calc(var(--ty) - 70px);
  width: min(92%, 760px);
  height: 150px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(223 234 255 / 0.2), rgb(223 234 255 / 0.08) 55%, transparent);
  animation: fx-pool 8s ease-in-out infinite;
}

.fx-haze { --ty: 195px; }

@keyframes fx-drift { to { translate: -800px 0; } }
@keyframes fx-spot { 0%, 100% { rotate: 15deg; } 50% { rotate: 12.5deg; } }
@keyframes fx-pool { 50% { opacity: 0.8; } }

@media (max-width: 600px) {
  .fx-haze { --ty: 165px; }
}

@media (forced-colors: active) {
  .pass, .gar, .sec-fx { display: none; }
}

@media print {
  .pass, .gar, .sec-fx { display: none; }
}

/* ═══════════════════════════════════════
 ANIMATIONS
  ═══════════════════════════════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* cartões e fotos entram como um cue: o conteúdo já lá está e a luz sobe */
.js .svc.reveal,
.js .cue.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.active) > .sc,
  .js .reveal:not(.active) img,
  .js .cue.reveal:not(.active)::before,
  .js .reveal:not(.active) ~ .sec-fx :is(.cn, .sp) { opacity: 0; }
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════
 CONTACTO, RODAPÉ E UTILITÁRIOS
═══════════════════════════════════════ */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* o Contacto recebe o calor que vem da grinalda: só muda o ambiente do fundo */
.contact {
  background:
    radial-gradient(90% 520px at 50% 0, rgb(255 170 0 / 0.13), transparent),
    linear-gradient(#0b0806, #0a0a0f);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form,
.field {
  display: grid;
  gap: 1.5rem;
}

.field {
  gap: 0.5rem;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
}

.btn-block {
  width: 100%;
  border-radius: 10px;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  color: var(--green);
}

.form-status.is-error {
  color: #ffb4b4;
}

.site-footer {
  padding: 50px 5%;
  background: #050508;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: #fff;
}

.footer-logo {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Foco visível para teclado */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: #050508;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 72px 5%;
  }
}

/* Menos movimento para quem o pede no sistema */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
