/* ==========================================================================
   IB PAY · Projeto Uruguai — estilos
   Estrutura:
   1. Tokens (cores, fontes, espaçamentos)  — edite aqui para mudar a identidade
   2. Base / reset
   3. Componentes (botões, pill, kicker, títulos)
   4. Preloader, cursor, nav
   5. Seções (hero → footer)
   6. Responsivo + reduced motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --navy-950: #070b14;
  --navy-900: #0b111d;
  --navy-850: #0f1626;
  --navy-800: #141d2e;   /* fundo do site atual */
  --navy-700: #1c2740;
  --line: rgba(227, 178, 53, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);

  --gold: #e3b235;
  --gold-light: #f3d27a;
  --gold-dark: #b88914;
  --gold-grad: linear-gradient(135deg, #f3d27a 0%, #e3b235 40%, #b88914 100%);
  /* gradiente com faixa de brilho — usado no efeito "shimmer" dos textos dourados */
  --gold-shine: linear-gradient(110deg, #b88914 0%, #e3b235 22%, #f3d27a 38%, #fff4c9 50%, #f3d27a 62%, #e3b235 78%, #b88914 100%);

  --text: #f2f2f2;
  --muted: #9ba4b6;
  --uy-blue: #7fb2e5;    /* azul da bandeira — usado com muita moderação */

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  --container: 1240px;
  --section-y: clamp(64px, 8vw, 112px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

/* Grão de filme sutil por cima de tudo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  transform: translateZ(0);
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--navy-950); }

main { overflow-x: clip; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* 3. COMPONENTES ----------------------------------------------------------- */
.gold {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* quando o texto é dividido em palavras, o gradiente vai para cada palavra */
.gold:has(.wi) { background: none; }
.gold .wi {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* evita corte no itálico */
}
/* brilho que atravessa os textos dourados de tempos em tempos */
/* o dourado (background-clip: text) só pinta dentro da caixa: estende a caixa até o fim das pernas das letras */
.gold .wi { padding-bottom: 0.26em; margin-bottom: -0.26em; padding-right: 0.1em; margin-right: -0.04em; }
.gold { padding-bottom: 0.12em; }
.gold, .gold .wi { background-image: var(--gold-shine); background-size: 260% 100%; background-position: 100% 0; }
/* o brilho só anima enquanto o título está na tela (economiza repaint) */
.is-live .gold:not(:has(.wi)), .is-live .gold .wi { animation: goldshine 7s var(--ease-out) infinite; }
.gold:has(.wi) { background: none; animation: none; }
@keyframes goldshine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

/* split text */
/* a máscara de cada palavra tem folga embaixo para as pernas do p, g, q do itálico não serem cortadas */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.12em 0.3em; margin: 0 -0.12em -0.3em; }
.wi { display: inline-block; will-change: transform; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; transform-origin: right; transition: transform 1s .25s var(--ease-out); }
/* a linha do kicker se desenha quando entra na tela (classe is-in vem do JS) */
.anim .kicker:not(.is-in)::before, .anim .kicker:not(.is-in)::after { transform: scaleX(0); }

.h2, .h1-like {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h1-like { font-size: clamp(2.5rem, 6vw, 5rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 56ch; margin-top: 20px; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; transform-origin: left; transition: transform 1s .25s var(--ease-out); }
.split-head { display: grid; gap: 24px; align-items: end; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(227, 178, 53, 0.06);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(227,178,53,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(227,178,53,0); } 100% { box-shadow: 0 0 0 0 rgba(227,178,53,0); } }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: box-shadow .4s var(--ease-out), background-color .3s, border-color .3s, color .3s;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
}
.btn .arrow { font-style: normal; transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold-grad); color: var(--navy-950); box-shadow: 0 10px 30px -10px rgba(227,178,53,.55); }
.btn-gold::before { /* brilho que passa no hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-gold:hover::before { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(227,178,53,.7); }
.btn-ghost { border: 1px solid rgba(255,255,255,.18); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-block { width: 100%; }
/* onda dourada no clique (criada pelo JS) */
.btn .ripple { position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; animation: ripple-out .7s var(--ease-out) forwards; }
.btn-ghost .ripple { background: rgba(227,178,53,.35); }
@keyframes ripple-out { to { transform: scale(40); opacity: 0; } }
/* ícone do WhatsApp dentro dos botões de análise */
.wa-ico {
  flex: none; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-sm .wa-ico { width: 15px; height: 15px; }
.play-ico { font-size: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; }

.link-arrow { color: var(--gold); font-weight: 600; font-size: 14px; }
.link-arrow:hover { color: var(--gold-light); }

/* 4. PRELOADER / CURSOR / NAV ---------------------------------------------- */

/* Logo oficial + brilho dourado que passa por cima (recortado no formato da logo) */
.logo-shine { position: relative; display: inline-block; line-height: 0; }
.logo-shine img { width: 100%; height: auto; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,248,220,.95) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0;
  -webkit-mask: var(--logo-mask) center / 100% 100% no-repeat;
          mask: var(--logo-mask) center / 100% 100% no-repeat;
}
.brand-logo { --logo-mask: url("../assets/img/logo/logo-ibpay.png"); }
.preloader-logo { --logo-mask: url("../assets/img/logo/logo-ib-brasao.png"); }
.logo-shine.is-shining::after, .brand:hover .logo-shine::after { animation: logoshine 1.3s var(--ease-out); }
.preloader-logo::after { animation: logoshine 1.8s .5s var(--ease-out) infinite; }
@keyframes logoshine { from { background-position: 130% 0; } to { background-position: -30% 0; } }

.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--navy-950);
}
.preloader-inner { width: min(280px, 70vw); display: grid; gap: 22px; justify-items: center; }
.preloader-logo { width: 74px; filter: drop-shadow(0 10px 40px rgba(227,178,53,.25)); }
.preloader-bar { width: 100%; height: 1px; background: var(--line-soft); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.preloader-meta { width: 100%; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.preloader-count { color: var(--gold); font-variant-numeric: tabular-nums; }
.no-js .preloader, .reduced .preloader { display: none; }

.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-dot { display: block; opacity: 0; }
  .cursor-ready .cursor, .cursor-ready .cursor-dot { opacity: 1; } /* só aparece depois do 1º movimento (antes ficava preso no canto) */
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(227,178,53,.55); border-radius: 50%;
    display: grid; place-items: center;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s;
  }
  .cursor-dot { position: fixed; top: 0; left: 0; z-index: 151; pointer-events: none; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
  .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(227,178,53,.1); }
  .cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
  .cursor-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-950); opacity: 0; transition: opacity .2s; text-align: center; line-height: 1.2; }
  .cursor.has-label .cursor-label { opacity: 1; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--gold-grad);
  transform-origin: left; transform: scaleX(0);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 18px;
  transition: transform .5s var(--ease-out), background-color .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 11, 20, .92); padding-block: 12px; border-color: var(--line-soft); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 84px; transition: width .4s var(--ease-out); }
.nav.is-scrolled .brand-logo { width: 74px; }
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(227,178,53,.08); white-space: nowrap; }
.brand-tag b { font-family: var(--font-head); font-size: 13px; letter-spacing: 0; margin-right: 2px; }
.nav-links { display: none; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line-soft); border-radius: 50%; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-950);
  display: grid; align-content: center; gap: 36px;
  padding: 100px 24px 40px;
  clip-path: circle(0% at calc(100% - 38px) 40px);
  transition: clip-path .8s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 38px) 40px); pointer-events: auto; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--font-head); font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.25; }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu .mobile-cta { font-family: var(--font-body); font-size: 15px; line-height: 1.2; white-space: normal; }

/* 5. SEÇÕES ---------------------------------------------------------------- */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--navy-950);
}
/* Mesh gradient animado (skill motion-background) */
.hero-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(35% 45% at 75% 30%, rgba(227,178,53,.20), transparent 60%),
    radial-gradient(40% 50% at 15% 80%, rgba(127,178,229,.10), transparent 60%),
    radial-gradient(45% 55% at 50% 50%, rgba(28,39,64,.9), transparent 70%),
    var(--navy-950);
  animation: meshmove 26s ease-in-out infinite;
  will-change: transform;
}
@keyframes meshmove {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero::after { /* scrim inferior para transição suave */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--navy-900));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 26px 0 0;
  max-width: 15ch;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 50ch; margin-top: 26px; }
.hero-sub strong { color: var(--gold-light); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 52px 0 0; padding-top: 28px; border-top: 1px solid var(--line-soft); max-width: 560px; }
.hero-stats dt { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--gold-light); line-height: 1.1; white-space: nowrap; }
.hero-stats dd { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

.hero-visual { position: relative; width: min(100%, 520px); justify-self: center; aspect-ratio: 4 / 5; transform-style: preserve-3d; }
.sun { position: absolute; inset: -18%; width: 136%; height: 136%; opacity: .55; pointer-events: none; }
.sun { animation: sunspin 90s linear infinite; will-change: transform; }
@keyframes sunspin { to { rotate: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-media {
  position: absolute; inset: 0; margin: 0;
  border-radius: 260px 260px 24px 24px; /* arco — remete às janelas coloniais de Montevidéu */
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.hero-media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,11,20,.75), transparent 45%); }

.float-card {
  position: absolute; z-index: 3;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 38, .9);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  font-size: 14px;
}
.float-card strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.fc-kicker { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.fc-1 { left: -6%; top: 16%; }
.fc-2 { right: -4%; bottom: 10%; display: flex; gap: 12px; align-items: center; max-width: 240px; }
.fc-flag { /* mini bandeira do Uruguai em CSS */
  flex: none; width: 34px; height: 24px; border-radius: 4px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(to bottom, #fff 0 2.67px, var(--uy-blue) 2.67px 5.33px);
}
.fc-flag::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; background: #fff; }
.fc-flag::after { content: ""; position: absolute; left: 3.5px; top: 3.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px rgba(227,178,53,.35); }

.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff; transform: translateY(-100%); animation: drip 2s var(--ease-out) infinite; }
@keyframes drip { to { transform: translateY(275%); } }

/* Selo comemorativo de 20 anos */
.seal {
  position: absolute; z-index: 4; left: -9%; bottom: 4%;
  width: clamp(118px, 13vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,22,38,.92) 58%, rgba(15,22,38,.6) 70%, transparent 71%);
  transition: transform .6s var(--ease-out);
}
.seal:hover { transform: scale(1.06); }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-ring text { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: url(#gold-grad); }
.seal-core { position: relative; display: grid; justify-items: center; line-height: 1; width: 56%; aspect-ratio: 1; place-content: center; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 30% 25%, rgba(243,210,122,.18), transparent 60%); }
.seal-core strong { font-family: var(--font-head); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seal-core small { font-size: 9px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-top: 2px; padding-left: .3em; }

/* --- MARQUEE --- */
.marquee {
  position: relative; z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--navy-850);
  padding-block: 22px;
  transform: rotate(-1.5deg) scale(1.03);
  margin-block: -10px;
}
.marquee-track { display: flex; width: max-content; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.4rem); font-style: italic; white-space: nowrap; }
.marquee b { color: var(--gold); font-size: 18px; font-weight: 400; }

/* --- 20 ANOS --- */
.anniv { overflow: hidden; background: radial-gradient(60% 70% at 25% 50%, rgba(227,178,53,.08), transparent 70%), var(--navy-900); }
.anniv-dust { contain: strict; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anniv-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.anniv-mark { position: relative; display: grid; justify-items: center; gap: 18px; }
.anniv-svg { width: min(100%, 460px); height: auto; overflow: visible; }
.anniv-svg text { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 330px; letter-spacing: -0.04em; }
.anniv-20-stroke { fill: none; stroke: url(#gold-grad); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.anniv-20-fill { fill: url(#gold-grad); }
.anniv-mark::before { content: ""; position: absolute; left: 50%; top: 45%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(227,178,53,.16), transparent 65%); pointer-events: none; }
.anniv-years { display: flex; align-items: center; gap: 14px; width: min(100%, 380px); font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.anniv-years i { flex: 1; height: 1px; background: var(--line-soft); position: relative; overflow: hidden; }
.anniv-years i b { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; }
.anniv-year { color: var(--gold-light); }
.anniv-manifesto { font-family: var(--font-head); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.45; margin-top: 24px; max-width: 34ch; color: var(--text); }
.anniv-manifesto .w { overflow: visible; }
.anniv-manifesto.is-scrub .wi { opacity: .15; transition: opacity .35s; }
.anniv-manifesto.is-scrub .wi.on { opacity: 1; }
.anniv-facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.anniv-facts li { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: rgba(15,22,38,.6); }
.anniv-facts strong { display: block; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--gold-light); line-height: 1.1; }
.anniv-facts span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* --- VÍDEO --- */
.video-grid { display: grid; gap: 40px; align-items: center; }
.video-wrap { width: 100%; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-950);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(227,178,53,.05) inset;
  will-change: transform;
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* capa do vídeo (YouTube): miniatura + botão dourado; o player entra no clique */
.vp-facade { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; align-content: center; gap: clamp(10px, 1.6vw, 16px); color: var(--text); overflow: hidden; }
.vp-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.vp-facade::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 65% at 50% 50%, rgba(7,11,20,.62), rgba(7,11,20,.82)); transition: opacity .6s; }
.vp-facade > :not(img) { position: relative; }
.vp-facade .vp-corner { position: absolute; }
.vp-facade .vp-play { margin-bottom: 0; background: rgba(7,11,20,.55); transition: background-color .4s, color .4s, transform .6s var(--ease-out); }
.vp-facade-label { font-size: clamp(10px, 1.1vw, 12px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7,11,20,.7); }
.vp-facade:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.video-placeholder { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(14px, 3vw, 32px); }
.vp-stripes { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(60% 70% at 50% 50%, rgba(227,178,53,.10), transparent 70%); }
.vp-stripes::before {
  content: ""; position: absolute; top: -40px; right: 0; bottom: 0; left: -40px;
  background: repeating-linear-gradient(-45deg, rgba(227,178,53,.05) 0 2px, transparent 2px 28px);
  animation: stripes 9s linear infinite; will-change: transform;
}
@keyframes stripes { to { transform: translate3d(39.6px, 39.6px, 0); } }
.vp-corner { position: absolute; width: 26px; height: 26px; border-color: var(--gold); border-style: solid; opacity: .8; }
.vp-corner.tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.vp-corner.tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.vp-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.vp-corner.br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }
.vp-top, .vp-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: clamp(9px, 1.1vw, 12px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-inline: clamp(8px, 2vw, 20px); }
.vp-status { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(227,178,53,.08); }
.vp-status i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.vp-timecode { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vp-center { position: relative; display: grid; justify-items: center; align-content: center; text-align: center; gap: clamp(8px, 1.4vw, 14px); }
.vp-play {
  width: clamp(56px, 9vw, 96px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(227,178,53,.5);
  color: var(--gold);
  font-size: clamp(16px, 2vw, 24px);
  position: relative;
  margin-bottom: clamp(4px, 1.2vw, 12px);
}
.vp-play::before, .vp-play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(227,178,53,.5); animation: ripple 2.6s var(--ease-out) infinite; }
.vp-play::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.vp-play span { padding-left: 4px; }
.vp-center h3 { font-family: var(--font-head); font-size: clamp(1.25rem, 3.4vw, 2.6rem); }
.vp-center p { color: var(--muted); font-size: clamp(12px, 1.4vw, 16px); max-width: 44ch; }
.vp-progress { width: min(220px, 40vw); height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.vp-progress span { display: block; width: 40%; height: 100%; background: var(--gold-grad); animation: indet 2.2s var(--ease-out) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* --- POR QUE O URUGUAI --- */
.pillars { display: grid; gap: 16px; }
.pillar { transform-style: preserve-3d; }
.pillar-inner {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-850) 60%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.9);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: border-color .4s;
}
.pillar-inner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(227,178,53,.16), transparent 70%); }
.pillar:hover .pillar-inner { border-color: rgba(227,178,53,.4); }
.pillar-num { font-family: var(--font-head); font-size: 48px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(227,178,53,.6); }
.pillar h3 { font-family: var(--font-head); font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 16px 0 10px; }
.pillar p { font-size: 15px; }
.pillar p { color: var(--muted); }
.pillar-foot { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-top: 1px solid var(--line-soft); }
.pillar p + .pillar-foot { margin-top: auto; }
.pillar-inner > p { margin-bottom: 24px; }
.pillar-foot strong { color: var(--gold-light); font-weight: 600; }
.pillar-foot span { color: var(--muted); font-size: 14px; }

/* --- JORNADA --- */
.journey { background: linear-gradient(to bottom, var(--navy-900), var(--navy-850), var(--navy-900)); }
.journey-track { --p: 0; position: relative; display: grid; gap: 40px; padding-left: 64px; }
.journey-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line-soft); border-radius: 2px; }
.journey-line span { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 18px rgba(227,178,53,.6); will-change: transform; }
.journey-step { position: relative; }
.journey-node {
  position: absolute; left: -64px; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-850);
  border: 1px solid var(--line-soft);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease-out);
}
.journey-node::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.journey-step.is-active .journey-node::after { animation: ripple 2.4s var(--ease-out) infinite; }
.journey-step.is-active .journey-node { background: var(--gold-grad); color: var(--navy-950); border-color: transparent; box-shadow: 0 0 0 8px rgba(227,178,53,.12), 0 0 30px rgba(227,178,53,.45); transform: scale(1.06); }
.journey-idx { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.journey-idx .tag { font-style: normal; display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(127,178,229,.12); color: var(--uy-blue); letter-spacing: .1em; font-size: 10px; vertical-align: 1px; }
.journey-step h3 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.journey-step p { color: var(--muted); max-width: 36ch; }
.journey-step { opacity: .45; transition: opacity .6s; }
.journey-step.is-active { opacity: 1; }
.journey-step.is-focus.is-active h3 { color: var(--gold-light); }

/* --- TAXA --- */
.rate {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  text-align: center;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, rgba(227,178,53,.12), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-950));
}
.rate::before { /* brilho que varre o card */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(243,210,122,.08) 50%, transparent 60%);
  animation: sweep 6s linear infinite; will-change: transform;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.rate .btn { margin-top: 28px; }
.rate-bg {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(227,178,53,.13);
  pointer-events: none;
}
.rate-inner { position: relative; z-index: 0; display: grid; justify-items: center; }
.rate-inner .kicker { justify-content: center; }
.rate-inner .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; transform-origin: left; transition: transform 1s .25s var(--ease-out); }
.rate-number {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-block;
  padding: 0 .06em .14em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rate-inner::before { content: ""; position: absolute; left: 50%; top: 52%; width: min(720px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(227,178,53,.14), transparent 62%); pointer-events: none; z-index: -1; }
.rate-number small { font-size: .45em; vertical-align: .9em; margin-left: .12em; }
.rate-caption { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 12px; }
.rate-caption strong { color: var(--text); font-weight: 600; }
.rate-note { color: var(--muted); font-size: 11px; line-height: 1.5; opacity: .7; max-width: 60ch; margin: 18px auto 0; text-align: center; }

/* --- SOLUÇÕES (lista compacta ao lado do vídeo) --- */
.services { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.service {
  position: relative; overflow: hidden;
  display: flex; gap: 16px; align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15,22,38,.7);
  border: 1px solid var(--line-soft);
  transition: border-color .4s, background-color .4s;
}
.service::after { /* borda dourada que gira no hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--gold-light) 78%, var(--gold) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s;
}

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.service-ico { flex: none; font-family: var(--font-head); font-size: 14px; color: var(--gold); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background-color .4s, color .4s, transform .6s var(--ease-out); }

.service h3 { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.25; }
.service p { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

/* --- EQUIPE --- */
.team-head-side { display: grid; gap: 20px; justify-items: start; }
.team-arrows { display: flex; gap: 10px; }
.team-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-light); font-size: 18px; transition: background-color .3s, color .3s, transform .4s var(--ease-out), opacity .3s; }
.team-arrow:hover { background: var(--gold); color: var(--navy-950); }
.team-arrow:disabled { opacity: .3; pointer-events: none; }
.team-track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
  cursor: grab;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.team-track.is-dragging .member { pointer-events: none; }
.team-progress { height: 2px; margin-top: 28px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.team-progress span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(.2); }
.member {
  flex: 0 0 clamp(250px, 24vw, 300px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-850);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  text-align: left;
  display: block;
  transition: border-color .4s, transform .6s var(--ease-out);
}
.member:hover, .member:focus-visible { border-color: var(--line); }
.member-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-700); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); }
.member.is-color .member-photo img, .member:focus-visible .member-photo img { filter: grayscale(0); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-950) 6%, rgba(7,11,20,.82) 30%, rgba(7,11,20,.25) 55%, transparent 72%); }
.member-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 64px; color: var(--gold); }
.member-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; }
.member-role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; line-height: 1.5; }
.member-name { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.15; }
.member-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .3s; }
.member-more i { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; transition: transform .4s var(--ease-out); }


/* modal */
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,7,13,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; }
.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  display: grid;
  border-radius: var(--radius);
  background: var(--navy-850);
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9);
  opacity: 0;
}
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(7,11,20,.7); border: 1px solid var(--line-soft); }
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-700); }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.modal-role { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.modal-body h3 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.modal-bio p { color: var(--muted); margin-bottom: 14px; font-size: 15px; }

/* --- FAQ --- */
.faq-grid { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--font-head); font-size: clamp(1.05rem, 1.6vw, 1.3rem); transition: color .3s; }
.faq-q:hover { color: var(--gold-light); }
.faq-q i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease-out), background-color .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--gold); transition: transform .5s var(--ease-out); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); background: rgba(227,178,53,.1); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* --- CTA / FORM --- */
.cta { overflow: hidden; background: linear-gradient(to bottom, var(--navy-900), var(--navy-950) 220px); }
.cta-crest { position: absolute; right: -4%; top: 50%; height: 115%; width: auto; transform: translateY(-50%); opacity: .045; pointer-events: none; filter: grayscale(.2); }
.cta-glow { will-change: transform; position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(227,178,53,.18), transparent 62%); pointer-events: none; }
.cta-grid { position: relative; display: grid; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--font-head); font-size: 1.4rem; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list .office { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.contact-list .office a, .contact-list .office p { font-family: var(--font-body); font-size: 14px; color: var(--text); line-height: 1.5; max-width: 56ch; }
.contact-list .office p { color: var(--muted); }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: rgba(15,22,38,.92); border: 1px solid var(--line); display: grid; gap: 14px; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.form h3 { font-family: var(--font-head); font-size: 1.6rem; }
.form-badge { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-950); background: var(--gold-grad); padding: 5px 11px; border-radius: 999px; }
.form-badge b { font-family: var(--font-head); font-size: 13px; letter-spacing: 0; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(7,11,20,.6);
  color: var(--text);
  font: inherit; font-size: 15px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--navy-850); }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,178,53,.12); }
.field span { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease-out), font-size .3s, color .3s; transform-origin: left top; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field span.is-static { transform: translateY(-9px); font-size: 11px; color: var(--gold); letter-spacing: .04em; }
.field.is-invalid input { border-color: #e26a5c; }
.field.is-invalid span { color: #e26a5c; }
.field.is-valid input { border-color: rgba(227,178,53,.45); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }

/* --- FOOTER --- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line-soft); padding: 64px 0 28px; overflow-x: clip; }
.footer-grid { display: grid; gap: 36px 32px; }
.footer-logo { width: 120px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-col { font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer-col h4 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-col address { font-style: normal; }
.footer-col p + p { margin-top: 6px; }
.footer-col a { color: var(--text); transition: color .3s; }
.footer-col a:hover, .footer-social a:hover { color: var(--gold-light); }
.footer-meta { margin-top: 10px; font-size: 12px; letter-spacing: .06em; }
.footer-label { color: var(--muted); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--muted); width: fit-content; }
.footer-id { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.footer-id dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-id dd { margin: 0; }
.footer-id strong { color: var(--text); font-weight: 600; }
.footer-social { display: inline-flex; gap: 20px; }
.footer-word {
  will-change: transform;
  margin-top: 48px; text-align: center; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; line-height: .9;
  font-size: clamp(2.6rem, 11vw, 10rem); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(227,178,53,.22);
  overflow: hidden;
}
.footer-word em { font-style: italic; color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; padding: 0 .12em; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 22px; font-size: 12px; color: var(--muted); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-soft); } /* linha alinhada ao conteúdo (antes vazava para o gutter) */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad); color: var(--navy-950);
  box-shadow: 0 14px 30px -8px rgba(227,178,53,.6);
  transition: transform .4s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); animation: ripple 2.8s var(--ease-out) infinite; pointer-events: none; }

/* Barra fixa de conversão no celular */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7,11,20,.96) 60%, rgba(7,11,20,0));
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.mobile-bar .btn { width: 100%; }
.mobile-bar.is-visible { transform: none; }

.to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 95;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,11,20,.9);
  color: var(--gold-light); font-size: 16px;
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.tt-track { stroke: var(--line-soft); }
.tt-ring { stroke: var(--gold); stroke-dasharray: 1; stroke-dashoffset: 1; }
.to-top:hover span { transform: translateY(-2px); }
.to-top span { transition: transform .3s var(--ease-out); }

/* 6. RESPONSIVO ------------------------------------------------------------ */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-panel { grid-template-columns: 0.85fr 1.15fr; }
  .modal-photo { aspect-ratio: auto; min-height: 100%; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav-links, .nav-cta { display: flex; }
  .nav-cta { margin-left: 12px; }
  .brand-logo { width: 96px; }
  .nav.is-scrolled .brand-logo { width: 82px; }
  .nav-toggle, .mobile-menu { display: none; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .scroll-hint { display: flex; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .anniv-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .video-grid { grid-template-columns: 0.95fr 1.05fr; gap: 64px; }
  .video-copy .services { grid-template-columns: 1fr; }
  .video-copy .h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
  .video-frame:has(.video-placeholder) { aspect-ratio: 4 / 3.4; }
  .split-head { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr 1fr .6fr; }
  .mobile-bar { display: none; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .cta-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }

  /* Jornada vira horizontal no desktop */
  .journey-track { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-left: 0; padding-top: 88px; }
  .journey-line { left: 24px; right: calc((100% - 80px) / 3 - 24px); top: 23px; bottom: auto; width: auto; height: 2px; }
  .journey-line span { transform-origin: left; transform: scaleX(0); }
  .journey-node { left: 0; top: -88px; }
}
@media (max-width: 899px) {
  /* no celular a barra fixa substitui os botões flutuantes */
  .wa-float, .to-top { display: none; }
  .footer { padding-bottom: 96px; }
  .seal { left: auto; right: -2%; bottom: auto; top: -4%; }
}
@media (max-width: 639px) {
  /* enquanto for placeholder, o quadro fica quadrado no celular (o vídeo real volta a 16:9) */
  .video-frame:has(.video-placeholder) { aspect-ratio: 1 / 1; }
  .anniv-facts { grid-template-columns: 1fr; }
  .anniv-facts li { display: flex; align-items: baseline; gap: 12px; }
  .anniv-facts span { margin-top: 0; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .footer-links h4 { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .hero-stats { gap: 10px; }
  .hero-stats dd { font-size: 11px; }
  .fc-1 { left: 2%; top: 10%; }
  .fc-2 { right: 2%; max-width: 210px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* Efeitos de hover só onde existe mouse */
@media (hover: hover) {
  .service:hover { background: rgba(20,29,46,.9); }
  .service:hover::after { opacity: 1; animation: spin-ang 4s linear infinite; }
  .service:hover .service-ico { background: var(--gold); color: var(--navy-950); transform: rotate(-12deg) scale(1.08); }
  .member:hover .member-photo img { filter: grayscale(0); transform: scale(1.1); }
  .member:hover .member-more { color: var(--gold-light); }
  .member:hover .member-more i { transform: rotate(90deg); }
  .vp-facade:hover img { transform: scale(1.04); }
  .vp-facade:hover::before { opacity: .75; }
  .vp-facade:hover .vp-play { background: var(--gold); color: var(--navy-950); transform: scale(1.08); }
}

/* Modal: no celular a foto fica em cima e o texto embaixo (sem grade, que achatava a foto) */
@media (max-width: 639px) {
  .modal-panel { display: block; }
  .modal-photo { aspect-ratio: 4 / 5; max-height: 62svh; }
  /* foto funde no fundo do painel em vez de terminar numa linha dura */
  .modal-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to top, var(--navy-850), transparent); pointer-events: none; }
  .modal-body { position: relative; margin-top: -28px; }
}

/* Celular: menos camadas pesadas para rolar liso */
@media (hover: none), (max-width: 899px) {
  body::after { display: none; }              /* grão de filme em tela cheia */
  .hero-mesh { animation: none; }
  .member-photo img { transition: filter 1s var(--ease-out); transform: none; }
  .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4,7,13,.9); }
  .service::after { display: none; }
}

/* Animações contínuas pausam fora da tela (classe .is-off vem do JS) */
.is-off .sun, .is-off .hero-mesh, .is-off .vp-stripes::before, .is-off .rate::before,
.is-off .vp-play::before, .is-off .vp-play::after, .is-off .vp-progress span, .is-off .journey-node::after { animation-play-state: paused; }

/* Acessibilidade: usuário pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .gold, .gold .wi { animation: none; }
}
