/* ---------- Tokens ---------- */
:root {
  /* só tema claro: o navegador não deve escurecer/inverter as cores do site */
  color-scheme: only light;
  /* Marca Meninos da Vila Santos Academy */
  --black: #000000;        /* preto da marca, base escura das seções */
  --black-soft: #161616;   /* preto suavizado, apoio para blocos escuros alternados */
  --yellow: #fcd048;       /* amarelo da marca, acento sobre fundo escuro e cor de ação */
  --gold-deep: #7a5c00;    /* amarelo escurecido, legível sobre fundo claro */
  --white: #ffffff;        /* branco da marca */
  --off-white: #ffffff;
  --off-white-soft: #fff6d6;
  --steel: #6b6b6b;
  --whatsapp: #25D366;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-serif: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-utility: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --navbar-h: 88px;
}

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Raleway (fonte variável) para texto corrido */
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/raleway/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../assets/fonts/raleway/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}
html { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.wrap { width: min(92%, 1200px); margin-inline: auto; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--yellow); color: var(--black); }

/* ---------- Section color themes ---------- */
.section-dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .68);
  --card-bg: var(--black-soft);
  --card-border: rgba(255, 255, 255, .12);
  --accent: var(--yellow);
  background: var(--bg);
  color: var(--fg);
}
.section-dark-soft {
  --bg: var(--black-soft);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .68);
  --card-bg: var(--black);
  --card-border: rgba(255, 255, 255, .12);
  --accent: var(--yellow);
  background: var(--bg);
  color: var(--fg);
}
.section-white {
  --bg: var(--white);
  --fg: var(--black);
  --muted: #5a5a5a;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, .1);
  --accent: var(--gold-deep);
  background: var(--bg);
  color: var(--fg);
}
.section-accent {
  /* bloco de destaque no amarelo da marca, com cards claros por cima */
  --bg: var(--yellow);
  --fg: var(--black);
  --muted: rgba(0, 0, 0, .75);
  --card-bg: var(--white);
  --card-border: rgba(0, 0, 0, .12);
  --accent: var(--black);
  background: var(--bg);
  color: var(--fg);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.starfield { position: relative; }
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 20%, rgba(255, 255, 255, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 65%, rgba(255, 255, 255, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 15%, rgba(255, 255, 255, .45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 80%, rgba(255, 255, 255, .3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 35%, rgba(255, 255, 255, .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 60%, rgba(255, 255, 255, .35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 25%, rgba(255, 255, 255, .45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 88%, rgba(255, 255, 255, .3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 45%, rgba(255, 255, 255, .4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 92%, rgba(255, 255, 255, .3) 50%, transparent 51%);
  background-repeat: repeat;
  background-size: 480px 480px;
}
.starfield > * { position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}
h1, h2, h3 { font-weight: 500; }
h1 strong, h2 strong, h3 strong,
h1 .text-yellow, h1 .text-yellow-bright {
  font-weight: 700;
  font-style: italic;
}
h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: .98;
}
h3 { font-size: 1.35rem; line-height: 1.15; }
.lead {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}
.text-yellow { color: var(--yellow); }
.text-yellow-bright { color: var(--yellow); }

.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.section-head--left { margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  padding: .95rem 1.6rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: #f5c22e; }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--fg); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--outline-dark { border-color: rgba(0, 0, 0, .25); color: var(--black); }
.btn--outline-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--off-white-soft); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #222222; }
.btn--lg { padding: 1.2rem 2rem; font-size: .95rem; }

/* ---------- Navbar (lives inside the hero only, scrolls away with it) ---------- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
  padding-block: 1.1rem;
}
.navbar__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand__logo { height: 170px; width: auto; }
.footer .brand__logo { height: 140px; }

/* a navbar passa por cima da bandeira preta e do amarelo da arte ao mesmo
   tempo; a pílula preta mantém os links legíveis nos dois fundos */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--black);
}
.nav-links a {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .85);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--yellow); }

@media (min-width: 992px) {
  /* mesma calha lateral do texto do hero: a logo encosta mais à esquerda,
     longe da cabeça dos alunos, e o menu alinha com o bloco de texto */
  .navbar__inner {
    justify-content: space-between;
    width: 100%;
    /* a logo fica sempre colada na borda esquerda (como a arte, que também
       começa na borda), e o menu acompanha a calha do texto à direita */
    padding-left: 2vw;
    padding-right: max(4vw, calc((100vw - 1400px) / 2));
  }
  .nav-links { display: flex; }
}

/* ---------- Menu: animações ---------- */
/* a pílula desce do topo e ganha uma borda amarela girando (--ang e
   spin-border ficam na seção "Como é a aula") */
.nav-links {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    conic-gradient(from var(--ang), var(--yellow), rgba(252, 208, 72, 0) 25%, rgba(252, 208, 72, 0) 50%, var(--yellow) 75%, rgba(252, 208, 72, 0)) border-box;
  animation:
    nav-drop .9s cubic-bezier(.22, 1, .36, 1) .15s both,
    spin-border 6s linear infinite;
}
@keyframes nav-drop {
  from { opacity: 0; translate: 0 -36px; scale: .9; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* links aparecendo um a um */
.nav-links a {
  position: relative;
  z-index: 1;
  animation: nav-link-in .5s cubic-bezier(.22, 1, .36, 1) both;
  transition: color .25s ease;
}
.nav-links a:nth-of-type(1) { animation-delay: .45s; }
.nav-links a:nth-of-type(2) { animation-delay: .51s; }
.nav-links a:nth-of-type(3) { animation-delay: .57s; }
.nav-links a:nth-of-type(4) { animation-delay: .63s; }
.nav-links a:nth-of-type(5) { animation-delay: .69s; }
.nav-links a:nth-of-type(6) { animation-delay: .75s; }
.nav-links a:nth-of-type(7) { animation-delay: .81s; }
.nav-links a:nth-of-type(8) { animation-delay: .87s; }
@keyframes nav-link-in {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}

/* destaque amarelo que desliza até o link apontado (posição via js/main.js) */
.nav-links__pill {
  position: absolute;
  z-index: 0;
  top: .45rem;
  bottom: .45rem;
  left: 0;
  translate: var(--pill-x, 0) 0;
  width: var(--pill-w, 0);
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0;
  transition: translate .35s cubic-bezier(.22, 1, .36, 1), width .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
}
.nav-links.has-pill .nav-links__pill { opacity: 1; }
.nav-links a.is-hover { color: var(--black); }

/* reflexo atravessando o menu de tempos em tempos */
.nav-links::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: shine-sweep 7s ease-in-out 2s infinite;
}

/* ---------- Hero pin (desktop: next section slides up and covers the hero) ---------- */
.hero-pin { position: relative; }
.hero-pin__inner { position: relative; }

.hero-cover { position: relative; z-index: 2; }

/* ---------- Seções empilhadas ----------
   Só em dois pontos: o hero (abertura) e a Localização (fechamento), marcados
   com data-stack-pin no HTML. O js/main.js prende esse bloco (sticky) quando o
   rodapé dele encosta no rodapé da tela, e a seção seguinte (.stack-cover)
   sobe por cima. As demais seções ficam num plano acima do bloco preso, para
   cobri-lo até o fim do <main>. */
main > * { position: relative; z-index: 2; }
main > .stack-pin { position: sticky; z-index: 1; }
.stack-cover {
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -28px 60px -24px rgba(0, 0, 0, .55);
}
@media (max-width: 767px) {
  .stack-cover { border-radius: 1.25rem 1.25rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__banner { display: block; width: 100%; height: auto; }

/* Arte de hero da escola, em duas versões. No mobile a arte fala sozinha e fica
   só o CTA no rodapé; no desktop os alunos ficam à esquerda e o texto ocupa a
   faixa livre à direita. O background-color é o mesmo amarelo da arte, então a
   emenda entre imagem e fundo não aparece. Como o fundo é amarelo, o texto do
   hero é preto. */
.hero--crest {
  background-color: var(--yellow);
  background-image: url("../assets/bg-hero/hero-meninos-da-vila-mobile.jpg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  /* o container tem a proporção exata do arquivo (1080x1800), então a arte
     aparece inteira, sem corte e sem sobra de fundo */
  aspect-ratio: 1080 / 1800;
  padding-block: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--black);
}

@media (min-width: 992px) {
  .hero--crest {
    background-image: url("../assets/bg-hero/hero-meninos-da-vila-desktop.jpg");
    background-position: center;
    background-size: cover;
    /* mesma proporção da arte: nada é cortado e os alunos ficam sempre
       nos mesmos 62% da esquerda, o que garante espaço livre à direita */
    aspect-ratio: 2560 / 1080;
    min-height: 0;
    justify-content: center;
  }
}

.crest {
  position: relative;
  z-index: 1;
  width: min(92%, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 0 clamp(1.75rem, 6vw, 2.75rem);
}
.crest__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 34rem;
}
.crest__headline { display: flex; flex-direction: column; align-items: center; }

.crest__title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(2.9rem, 11vw, 4.4rem);
  line-height: .95;
  color: var(--black);
}
.crest__title strong { font-weight: 800; font-style: italic; }

.crest__lead {
  margin-top: 1.1rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, .82);
}
.crest__lead strong { color: var(--black); }

.crest__cta { margin-top: 1.6rem; }

.crest__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem .75rem;
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--black);
}
.crest__meta li { display: flex; align-items: center; gap: .75rem; }
.crest__meta li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
}

@media (min-width: 992px) {
  /* o texto ocupa a faixa livre à direita da arte; a largura em % acompanha a
     viewport, que é onde os alunos também estão ancorados */
  .crest {
    width: 100%;
    max-width: none;
    padding-inline: max(4vw, calc((100vw - 1400px) / 2));
    padding-block: 0;
    align-items: stretch;
  }
  .crest__copy {
    width: min(34%, 30rem);
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
    max-width: none;
  }
  .crest__meta { justify-content: flex-end; }
  .crest__lead { font-size: 1.05rem; }
  /* reserva a altura da navbar para o título não encostar na pílula do menu */
  .crest { padding-top: min(118px, 8.2vw); }
  /* o hero encolhe junto com a tela (proporção da arte): o texto acompanha,
     senão em notebooks (1280px) o título quebra e empurra o botão para fora */
  .crest__title { font-size: clamp(2.4rem, 4.9vw, 4.4rem); }
  .crest__lead { font-size: clamp(.82rem, 1.15vw, 1.05rem); margin-top: min(1.1rem, 1.2vw); }
  .crest__meta { font-size: clamp(.64rem, .9vw, .78rem); margin-top: min(1.25rem, 1.3vw); }
  .crest__cta { margin-top: min(1.6rem, 1.8vw); }
  /* a arte nova traz os alunos mais à esquerda e mais altos: logo um pouco
     menor para não encostar na cabeça do primeiro aluno */
  /* acompanha a largura da tela, como a arte: mantém a mesma distância
     dos alunos em qualquer desktop (124px a partir de 1440px) */
  .brand__logo { height: min(8.6vw, 124px); }
}

/* Mobile: logo menor no navbar libera altura para o título, o texto e a
   lista de categorias caberem no espaço vazio acima da foto; o botão
   continua ancorado embaixo, logo acima da faixa rolante. */
@media (max-width: 991px) {
  .brand__logo { height: 104px; }

  .crest { height: 100%; padding-top: 128px; }
  .crest__copy { height: 100%; }
  .crest__headline { width: 100%; }
  .crest__title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
  .crest__lead { margin-top: .7rem; font-size: clamp(.86rem, 3.6vw, .95rem); line-height: 1.4; }
  .crest__meta { margin-top: .55rem; font-size: clamp(.66rem, 2.8vw, .74rem); gap: .25rem .5rem; }
  /* botão preso na base do hero (sobre os shorts, longe dos rostos), sem
     depender de altura em % — que o Safari do iPhone não calcula aqui */
  .crest { position: static; }
  .crest__cta {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: clamp(1.75rem, 6vw, 2.75rem);
    translate: -50% 0;
    margin: 0;
  }
}
/* celulares estreitos: logo menor para o texto maior caber acima da bandeira */
@media (max-width: 400px) {
  .brand__logo { height: 84px; }
  .crest { padding-top: 104px; }
  .crest__lead { margin-top: .5rem; line-height: 1.35; }
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.badges li {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  color: rgba(0, 0, 0, .85);
}
/* variante para fundos escuros (section-dark, section-dark-soft) */
.badges--light li {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

/* ---------- Marquee ---------- */
.marquee {
  /* faixa preta logo abaixo do hero: fecha a arte amarela e repete o preto da bandeira */
  background: var(--black);
  overflow: hidden;
  padding-block: .9rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.3rem);
  padding-inline: 1.5rem;
  white-space: nowrap;
  color: var(--yellow);
}
.marquee__item i { width: 8px; height: 8px; border-radius: 999px; background: var(--white); display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0, rgba(255, 255, 255, .045) 2px, transparent 2px, transparent 14px);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  min-height: 220px;
}
.photo-placeholder span {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  color: var(--steel);
  text-align: center;
  padding: 0 1.5rem;
  line-height: 1.6;
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.benefits-grid__photo { position: relative; border-radius: 1.25rem; overflow: hidden; min-height: 280px; }
/* o card muda de proporção entre mobile (bem mais largo que alto) e desktop
   (bem mais alto que largo); nenhuma foto única encaixa nos dois sem cortar
   gente, então trocamos a imagem: retrato de time (paisagem) no mobile,
   comissão técnica com o troféu (retrato) no desktop, cada uma enquadrada
   para a proporção em que vai aparecer. */

.benefits-grid__photo .photo-placeholder { position: absolute; inset: 0; }
.benefits-grid__photo-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-transform: none;
  line-height: 1.2;
}

.benefit-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--card-border);
  transition: transform .3s ease, box-shadow .3s ease;
  transform-origin: center;
}
/* o hover usa translate/scale (propriedades próprias) para não brigar com o
   "transform" da animação de entrada (.reveal) */
.benefit-card:hover { translate: 0 -6px; scale: 1.03; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .45); }
.benefit-card h3 { margin-bottom: .85rem; }
.benefit-card p { font-size: .92rem; line-height: 1.55; }

.benefit-card--dark { background: var(--black); color: #fff; }
.benefit-card--dark p { color: rgba(255, 255, 255, .65); }
.benefit-card--light { background: #fff; color: var(--black); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .35); }
.benefit-card--light p { color: #555555; }
.benefit-card--accent { background: var(--yellow); color: var(--black); }
.benefit-card--accent p { color: rgba(0, 0, 0, .75); }

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
}
.benefit-card--dark .benefit-card__icon { background: rgba(255, 255, 255, .15); color: #fff; }
.benefit-card--accent .benefit-card__icon { background: rgba(0, 0, 0, .12); color: var(--black); }
.benefit-card--light .benefit-card__icon { background: var(--off-white-soft); color: var(--gold-deep); }

/* Os PNGs dos ícones são traços pretos sobre fundo transparente: sobre os
   cards claros e sobre o card amarelo o traço preto já funciona sem filtro;
   só o card escuro precisa do ícone em branco. */
.benefit-card__icon img { width: 22px; height: 22px; object-fit: contain; }
.benefit-card--dark .benefit-card__icon img { filter: invert(1); }

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid__photo { grid-column: span 2; }
}
/* desktop: a foto grande (vertical) ocupa a 1ª coluna nas duas linhas e os
   6 cards (agora com foto) ficam em 3 colunas ao lado */
@media (min-width: 992px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid__photo { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .benefit-card { grid-column: span 1; padding: 1.5rem; }
  .benefit-card__photo { aspect-ratio: 4 / 3; }
}

/* ---------- Benefícios: animações ---------- */
/* marca-texto amarelo que pinta por trás da palavra em destaque */
.hl {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 0% 32%;
  padding-inline: .06em;
  transition: background-size .9s cubic-bezier(.22, 1, .36, 1) .45s;
}
.reveal.is-visible .hl { background-size: 100% 32%; }

/* entrada em sequência com um leve "pop" (o --delay de cada card vem do HTML) */
.benefit-card.reveal {
  /* sem overflow: hidden, que mudaria a largura das colunas da grade e
     achataria os ícones; a luz é recortada pelo border-radius do ::before */
  position: relative;
  isolation: isolate;
  transform: translateY(44px) scale(.9);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1) var(--delay, 0s),
    transform .9s cubic-bezier(.34, 1.56, .64, 1) var(--delay, 0s),
    translate .35s ease, scale .35s ease, box-shadow .35s ease;
}
.benefit-card.reveal.is-hidden-down { transform: translateY(44px) scale(.9); }

/* luz que acompanha o mouse dentro do card (--mx/--my via js/main.js) */
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(252, 208, 72, .3)), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card--dark { --spot: rgba(252, 208, 72, .28); }
.benefit-card--accent { --spot: rgba(255, 255, 255, .55); }
.benefit-card--light { --spot: rgba(252, 208, 72, .32); }

/* ícones flutuando devagar, cada um defasado pelo --i do card */
.benefit-card__icon {
  animation: icon-float 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.5s);
  transition: background .3s ease;
}
@keyframes icon-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}
.benefit-card--light:hover .benefit-card__icon { background: var(--yellow); }
.benefit-card:hover .benefit-card__icon img { animation: icon-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes icon-pop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.35) rotate(-14deg); }
  70%  { transform: scale(.95) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

/* fundo vivo: duas manchas amarelas suaves flutuando atrás da grade */
#beneficios { overflow: clip; }
#beneficios > .wrap { position: relative; z-index: 1; }
#beneficios::before,
#beneficios::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(280px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 208, 72, .38), rgba(252, 208, 72, 0) 68%);
  pointer-events: none;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
#beneficios::before { top: 8%; left: -8%; }
#beneficios::after { bottom: 4%; right: -10%; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes blob-drift {
  0%   { translate: 0 0; scale: 1; }
  50%  { translate: 6vw 4vh; scale: 1.15; }
  100% { translate: -3vw 8vh; scale: .95; }
}

/* onda de destaque: um contorno amarelo e um pulo do ícone passam de card em
   card, sem parar (cada card entra na vez pelo seu --i) */
.benefit-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 3px var(--yellow), 0 18px 40px -18px rgba(252, 208, 72, .7);
  opacity: 0;
  pointer-events: none;
  animation: card-wave 7.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.2s);
}
.benefit-card--accent::after { box-shadow: 0 0 0 3px var(--black), 0 18px 40px -18px rgba(0, 0, 0, .45); }
@keyframes card-wave {
  0%, 18%, 100% { opacity: 0; }
  6%, 11%       { opacity: 1; }
}
.benefit-card__icon {
  animation:
    icon-float 3.2s ease-in-out calc(var(--i, 0) * -.5s) infinite,
    icon-wave 7.2s ease-in-out calc(var(--i, 0) * 1.2s) infinite;
}
@keyframes icon-wave {
  0%, 14%, 100% { scale: 1; rotate: 0deg; }
  5%  { scale: 1.3; rotate: -12deg; }
  9%  { scale: .95; rotate: 6deg; }
}

/* foto: slideshow estilo stories, com zoom lento na foto ativa */
.benefits-slides img {
  opacity: 0;
  transition: opacity 1s ease;
}
.benefits-slides img.is-active {
  opacity: 1;
  animation: ken-burns 6s ease-out forwards;
}
.benefits-slides__bar {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: .35rem;
}
.benefits-slides__bar span {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .4);
}
.benefits-slides__bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}
.benefits-slides__bar span.is-done::after { transform: scaleX(1); }
.benefits-slides__bar span.is-active::after { animation: story-fill var(--slide-ms, 4500ms) linear forwards; }
@keyframes story-fill { to { transform: scaleX(1); } }

/* legenda subindo na entrada */
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1.5%); }
}
.benefits-grid__photo-caption {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease .5s, transform .8s cubic-bezier(.22, 1, .36, 1) .5s;
}
.benefits-grid__photo-caption::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: .7rem;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1) .9s;
}
.reveal.is-visible .benefits-grid__photo-caption { opacity: 1; transform: none; }
.reveal.is-visible .benefits-grid__photo-caption::before { transform: scaleX(1); }
/* fotos nos cards de benefícios (mobile e desktop): o card deixa de ser
   quadrado e cresce para caber a foto, que fica sempre na base */
.benefit-card { aspect-ratio: auto; justify-content: flex-start; }
.benefit-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: auto;
  border-radius: .85rem;
  transition: transform .5s ease;
}
.benefit-card p { margin-bottom: 1.1rem; }
.benefit-card:hover .benefit-card__photo { transform: scale(1.03); }
/* ---------- Methodology ---------- */
.methodology__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
  transform-origin: center;
}
/* translate/scale próprios: o "transform" fica livre para a entrada (.reveal) */
.pillar:hover { translate: 0 -6px; scale: 1.02; box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .4); }
.pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--off-white-soft);
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.pillar p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
/* descrições da Metodologia em maiúsculas: fonte um pouco menor e mais
   espaçada para continuar fácil de ler */
.pillar:not(.pillar--cta) p { text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; line-height: 1.6; }

@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
/* variante com só 2 cards: mantém 2 colunas também no desktop, em vez de
   sobrar um terceiro espaço vazio na grade de 3 */
.pillars--2col { max-width: 46rem; margin-inline: auto; }
@media (min-width: 992px) { .pillars--2col { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Metodologia: animações ---------- */
.method { overflow: clip; }
.method .wrap { position: relative; z-index: 1; }

/* campo de futebol ao fundo: cada linha tem pathLength="1", então o traço vai
   de 0 a 1 e "desenha" a linha quando a seção entra na tela */
.method-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: none !important;
}
.method-field svg { width: 100%; height: 100%; }
/* container: as bolas animam com translate em cqw/cqh (sem recalcular layout) */
.method-field { container-type: size; }
.method-field svg * {
  fill: none;
  stroke: rgba(0, 0, 0, .13);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s cubic-bezier(.65, 0, .35, 1);
}
.method-field svg *:nth-child(2) { transition-delay: .3s; }
.method-field svg *:nth-child(3) { transition-delay: .6s; }
.method-field svg *:nth-child(n+4) { transition-delay: .9s; }
.method-field.is-visible svg * { stroke-dashoffset: 0; }
/* no celular a seção é bem mais alta que o desenho, que é ampliado para
   cobri-la; o traço precisa ser mais fino para não engrossar junto */
@media (max-width: 767px) {
  .method-field svg * { stroke-width: 1; }
}

/* bola girando devagar no círculo central */
.method-field__ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(70px, 9vw, 120px);
  aspect-ratio: 1;
  margin: calc(clamp(70px, 9vw, 120px) / -2) 0 0 calc(clamp(70px, 9vw, 120px) / -2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-opacity='.16' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5 15.5 10l-1.3 4H9.8L8.5 10Z'/%3E%3Cpath d='M12 7.5V4M15.5 10l3-1M14.2 14l1.8 2.8M9.8 14 8 16.8M8.5 10l-3-1'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: ball-spin 24s linear infinite;
}
@keyframes ball-spin { to { rotate: 360deg; } }

/* marca-texto branco (o amarelo some sobre o fundo amarelo) */
.hl--light { background-image: linear-gradient(var(--white), var(--white)); }

/* selos entrando um a um com um pulinho */
.badges--pop li {
  opacity: 0;
  transform: translateY(14px) scale(.8);
  transition: opacity .5s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1), background .25s ease, color .25s ease;
}
.badges--pop li:nth-child(1) { transition-delay: .25s; }
.badges--pop li:nth-child(2) { transition-delay: .37s; }
.badges--pop li:nth-child(3) { transition-delay: .49s; }
.badges--pop.is-visible li { opacity: 1; transform: none; }
.badges--pop li:hover { background: var(--black); color: var(--yellow); }

/* --- Metodologia: animação slim ---
   Entrada suave (sobe e aparece), número em contorno fino, uma linha de 2px
   que percorre os cards um de cada vez e hover discreto. */
.pillars { counter-reset: pillar; }
.pillar.reveal {
  position: relative;
  counter-increment: pillar;
  transform: translateY(18px);
  transition:
    opacity .7s ease var(--delay, 0s),
    transform .8s cubic-bezier(.22, 1, .36, 1) var(--delay, 0s),
    translate .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pillar.reveal.is-hidden-down { transform: translateY(18px); }
.pillar:hover { translate: 0 -4px; scale: 1; box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .35); border-color: rgba(0, 0, 0, .18); }

/* número só em contorno fino; escurece levemente no hover */
.pillar::after {
  content: counter(pillar, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .14);
  transition: -webkit-text-stroke-color .35s ease;
}
.pillar:hover::after { -webkit-text-stroke-color: rgba(0, 0, 0, .45); }

/* linha fina na base: no hover e na "onda" (um card por vez) */
.pillar::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: -1px;
  height: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.pillar:hover::before { transform: scaleX(1); }

/* ícone: só troca de cor no hover */
.pillar__icon { transition: background .35s ease, color .35s ease; }
.pillar:hover .pillar__icon { background: var(--yellow); color: var(--black); }

/* "Entre em contato": card preto clicável */
.pillar--cta { display: block; background: var(--black); border-color: var(--black); color: var(--white); }
.pillar--cta h3 { color: var(--yellow); }
.pillar--cta p { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.pillar--cta .pillar__icon { background: var(--yellow); color: var(--black); }
.pillar--cta::after { -webkit-text-stroke-color: rgba(255, 255, 255, .18); }
.pillar--cta:hover::after { -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
.pillar--cta::before { background: var(--yellow); }
.pillar--cta:hover { border-color: var(--black); }
.pillar--cta .pillar__phones { display: flex; flex-direction: column; gap: .35rem; font-size: 1.35rem; }
.pillar__phones small {
  display: block;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.pillar__cta-hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow);
}
.pillar__cta-hint::after { content: "→"; transition: translate .3s ease; }
.pillar--cta:hover .pillar__cta-hint::after { translate: 5px 0; }

/* anel fino pulsando em volta do telefone */
.pillar--cta .pillar__icon { position: relative; }
.pillar--cta .pillar__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  animation: icon-ring 2.6s ease-out infinite;
}
@keyframes icon-ring {
  0%   { scale: 1; opacity: .8; }
  100% { scale: 1.6; opacity: 0; }
}

/* onda: a linha fina percorre um card por vez (6 cards x 1,5 s, sem sobrepor) */
.pillars .pillar:nth-child(1) { --n: 0; }
.pillars .pillar:nth-child(2) { --n: 1; }
.pillars .pillar:nth-child(3) { --n: 2; }
.pillars .pillar:nth-child(4) { --n: 3; }
.pillars .pillar:nth-child(5) { --n: 4; }
.pillars .pillar:nth-child(6) { --n: 5; }
.pillars .pillar::before { animation: pillar-line 9s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1.5s); }
@keyframes pillar-line {
  0%        { transform: scaleX(0); transform-origin: left; }
  6%        { transform: scaleX(1); transform-origin: left; }
  10%       { transform: scaleX(1); transform-origin: right; }
  15%, 100% { transform: scaleX(0); transform-origin: right; }
}
.pillars .pillar:hover::before { animation: none; }
/* ---------- Vivências (fotos com legenda sobre fundo escuro) ---------- */
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
.exp-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--black-soft);
  border: 1px solid var(--card-border);
}
.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.exp-card:hover img { transform: scale(1.05); }
.exp-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  padding-top: 4.5rem;
  /* base bem escura para o título amarelo e o texto ficarem legíveis sobre a foto */
  background: linear-gradient(to top, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .88) 50%, rgba(0, 0, 0, 0) 100%);
}
.exp-card__body h3 { color: var(--yellow); margin-bottom: .45rem; }
.exp-card__body p { font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }

@media (min-width: 640px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .exp-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Vivências: animações ("álbum de fotos") ---------- */
/* estrelas do fundo piscando e derivando devagar */
.vivencias.starfield::before {
  animation: twinkle 3.5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }


/* brilho correndo pelas letras de "Santos" */
.shimmer {
  padding-right: .08em;
  background: linear-gradient(100deg, var(--yellow) 25%, #ffffff 45%, var(--yellow) 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -150% 0; }
}

/* cada foto "cai na mesa" girada (--throw) e assenta levemente inclinada
   (--tilt); depois fica balançando devagar, como foto pendurada no varal */
.exp-card:nth-child(1) { --throw: -14deg; --tilt: -2deg; }
.exp-card:nth-child(2) { --throw: 11deg;  --tilt: 1.6deg; }
.exp-card:nth-child(3) { --throw: -9deg;  --tilt: -1.2deg; }
.exp-card:nth-child(4) { --throw: 13deg;  --tilt: 2deg; }
.exp-card.reveal {
  rotate: var(--tilt, 0deg);
  transform: translateY(-70px) rotate(var(--throw, 0deg)) scale(1.12);
  transition:
    opacity .5s ease var(--delay, 0s),
    transform 1s cubic-bezier(.34, 1.3, .64, 1) var(--delay, 0s),
    rotate .45s ease, scale .45s ease, box-shadow .45s ease;
  animation: exp-bob 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.25s);
}
.exp-card.reveal.is-hidden-down { transform: translateY(-70px) rotate(var(--throw, 0deg)) scale(1.12); }
@keyframes exp-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}
.exp-card:hover {
  z-index: 2;
  rotate: 0deg;
  scale: 1.05;
  box-shadow: 0 0 0 3px var(--yellow), 0 30px 60px -25px rgba(252, 208, 72, .45);
}

/* flash de câmera no momento em que a foto assenta */
.exp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}
.exp-card.is-visible::after { animation: camera-flash .7s ease-out calc(var(--delay, 0s) + .55s) both; }
@keyframes camera-flash {
  0%   { opacity: 0; }
  12%  { opacity: .85; }
  100% { opacity: 0; }
}

/* etiqueta amarela no canto, aparece com um "pop" depois que a foto assenta */
.exp-card__tag {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-utility);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  rotate: -4deg;
  scale: 0;
  transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--delay, 0s) + .9s);
}
.exp-card.is-visible .exp-card__tag { scale: 1; }
.exp-card__body h3 { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
/* ---------- Oferta (semana experimental e matrícula grátis) ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 52rem; margin: 0 auto 3.5rem; }
.offer {
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background: var(--yellow);
  color: var(--black);
  text-align: center;
}
.offer--outline { background: transparent; color: var(--white); border: 2px solid var(--yellow); }
.offer__big {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: .9;
}
.offer--outline .offer__big { color: var(--yellow); }
.offer p { margin-top: .75rem; font-size: .95rem; line-height: 1.5; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About (Quem somos) ---------- */
/* o .reveal fica no invólucro (.about-card-wrap); o card em si recebe a
   inclinação 3D que segue o mouse (variáveis --rx/--ry, via js/main.js) */
.about-card-wrap { perspective: 1400px; }
.about-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}
.about-card.is-tilting { transition: transform .12s linear, box-shadow .5s ease; }
.about-card:hover { box-shadow: 0 40px 80px -30px rgba(252, 208, 72, .28), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.about-card__text {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.25rem);
  max-width: 34rem;
}
.about-card__eyebrow { color: var(--steel); }
.about-card h2 { font-style: normal; }
.about-card .lead { color: #555555; }
.about-card__text .btn { margin-top: 1.75rem; }

/* entrada em cascata: cada peça do texto sobe com um atraso (--i) quando o
   card entra na tela, e volta ao estado inicial quando sai */
.about-card__in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(.15s + var(--i, 0) * .11s);
}
.reveal.is-visible .about-card__in { opacity: 1; transform: none; }
.about-card__text .btn.about-card__in { display: inline-flex; }

/* números rápidos */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.about-stats li { display: flex; flex-direction: column; gap: .2rem; }
.about-stats strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
/* sublinhado amarelo que "pinta" da esquerda para a direita na entrada */
.about-stats strong::after {
  content: "";
  display: block;
  height: 4px;
  margin-top: .35rem;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1) .9s;
}
.reveal.is-visible .about-stats strong::after { transform: scaleX(1); }
.about-stats span:not([data-count-to]):not([data-count-since]) {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--steel);
}

/* bandeira da escola: preenche todo o lado direito do card, centralizada no
   escudo. Entra com uma cortina e depois fica "tremulando" devagar. */
.about-card__graphic {
  position: relative;
  min-height: 260px;
  background: var(--black);
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1) .1s;
}
.reveal.is-visible .about-card__graphic { clip-path: inset(0 0 0 0); }
.about-card__graphic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: flag-wave 9s ease-in-out infinite alternate;
}
@keyframes flag-wave {
  0%   { transform: scale(1.06) translate(0, 0) rotate(0deg); }
  50%  { transform: scale(1.1) translate(-1.2%, .8%) rotate(-.6deg); }
  100% { transform: scale(1.07) translate(1%, -.6%) rotate(.5deg); }
}
/* brilho amarelo pulsando atrás do escudo */
.about-card__glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 44%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 208, 72, .38), rgba(252, 208, 72, 0) 65%);
  pointer-events: none;
  animation: glow-pulse 3.6s ease-in-out infinite;
}
.about-card__graphic img { z-index: 0; }
@keyframes glow-pulse {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.9); }
  50%      { opacity: .9;  transform: translate(-50%, -50%) scale(1.08); }
}
/* faixa de luz que atravessa o tecido de tempos em tempos */
.about-card__shine {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: shine-sweep 6s ease-in-out infinite 1.5s;
}
@keyframes shine-sweep {
  0%   { background-position: 150% 0; }
  40%, 100% { background-position: -50% 0; }
}

/* botão com reflexo passando, chama atenção sem piscar */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btn-shine 4.5s ease-in-out infinite 2s;
}
@keyframes btn-shine {
  0%   { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}

@media (max-width: 479px) {
  .about-stats { gap: 1.1rem; }
  .about-stats span:not([data-count-to]):not([data-count-since]) { font-size: .62rem; }
}
@media (min-width: 768px) {
  .about-card { flex-direction: row; align-items: stretch; }
  /* o texto tem largura máxima própria, então o gráfico ocupa todo o resto do card */
  .about-card__text { flex: 0 1 auto; }
  .about-card__graphic { flex: 1 1 42%; min-width: 0; }
}

/* ---------- Stages (Turmas) ---------- */
.stages { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.stages__line { display: none; }
.stage__dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(252, 208, 72, .25);
  margin-bottom: 1.1rem;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.stage h3 { margin-bottom: .6rem; }
.stage p { font-size: .92rem; color: var(--muted); max-width: 20rem; line-height: 1.55; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(252, 208, 72, .25); }
  50% { box-shadow: 0 0 0 8px rgba(252, 208, 72, .12); }
}

.consult-bar {
  margin-top: 3.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}
.consult-bar p { font-size: 1.05rem; color: var(--fg); max-width: 32rem; }

@media (min-width: 768px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stages__line {
    display: block;
    position: absolute;
    top: 6px; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, .4), transparent);
  }
  .consult-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Como é a aula: animações ----------
   O js/main.js avança uma etapa a cada 2,2 s: marca a etapa e a palavra do
   título com .is-active e grava o número em data-step no .stages, que leva a
   bola até a etapa certa. Aqui ficam só as transições. */
/* .stages .stage (2 classes) para vencer o "transition" do .reveal, que vem
   depois no arquivo */
.stages .stage {
  position: relative;
  padding: 1rem;
  margin: -1rem;
  border-radius: 1rem;
  background-color: rgba(252, 208, 72, 0);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1) var(--delay, 0s),
    transform .7s cubic-bezier(.22, 1, .36, 1) var(--delay, 0s),
    background-color .5s ease,
    translate .5s ease;
}
.stage.is-active { background-color: rgba(252, 208, 72, .18); translate: 0 -4px; }
.stage .stage__dot { transition: scale .4s cubic-bezier(.34, 1.56, .64, 1), background .4s ease; }
.stage.is-active .stage__dot { scale: 1.5; background: var(--black); }

/* marca-texto que acende "começo", "meio" e "fim" junto com a etapa */
.seq {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 0% 32%;
  transition: background-size .6s cubic-bezier(.22, 1, .36, 1);
}
.seq.is-active { background-size: 100% 32%; }

/* bola rolando pela linha (só a partir de 768px, onde a linha existe) */
.stages__ball { display: none; }
@media (min-width: 768px) {
  .stages__line { transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
  .stages:has(.stage.is-visible) .stages__line { transform: scaleX(1); }

  /* cada coluna começa em k * (100% + gap) / 3; o gap das .stages é 2,5rem */
  .stages__ball {
    --k: 0;
    display: block;
    position: absolute;
    z-index: 2;
    top: -6px;
    left: -6px;
    translate: calc((100cqw + 2.5rem) / 3 * var(--k)) 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5 15.5 10l-1.3 4H9.8L8.5 10Z' fill='%23000'/%3E%3Cpath d='M12 7.5V2M15.5 10l5.5-1.5M14.2 14l3 5M9.8 14l-3 5M8.5 10 3 8.5'/%3E%3C/svg%3E") center / 100% no-repeat;
    box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .45);
    rotate: calc(var(--k) * 360deg);
    transition: translate .9s cubic-bezier(.45, 0, .2, 1), rotate .9s cubic-bezier(.45, 0, .2, 1);
  }
  .stages { container-type: inline-size; }
  .stages[data-step="1"] .stages__ball { --k: 1; }
  .stages[data-step="2"] .stages__ball { --k: 2; }
}
/* barra do WhatsApp: borda amarela girando em volta */
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.consult-bar--glow {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    conic-gradient(from var(--ang), var(--yellow), rgba(252, 208, 72, .12) 22%, rgba(252, 208, 72, .12) 50%, var(--yellow) 72%, rgba(252, 208, 72, .12)) border-box;
  animation: spin-border 5s linear infinite;
}
@keyframes spin-border { to { --ang: 360deg; } }
/* ---------- Gallery ticker ---------- */
.gallery-ticker {
  overflow: hidden;
  margin-top: 2.5rem;
}
.gallery-ticker__track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee 40s linear infinite reverse;
}
.gallery-ticker__item {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 1.1rem;
  overflow: hidden;
}
.gallery-ticker__item .photo-placeholder { width: 100%; height: 100%; transition: transform .35s ease; }
.gallery-ticker__item:hover .photo-placeholder { transform: scale(1.06); }
.gallery__note { margin-top: 3rem; font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin-inline: auto; text-align: center; line-height: 1.6; }

/* ---------- Locação de campo society ---------- */
.society-card {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .5);
}
.society-card__media { position: relative; min-height: 240px; overflow: hidden; }
.society-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transition: transform .8s ease;
}
.society-card:hover .society-card__media img { transform: scale(1.05); }
.society-card__body {
  padding: clamp(1.75rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.society-card__tag {
  font-family: var(--font-utility);
  font-weight: 800;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--black);
  background: var(--yellow);
  padding: .35rem .8rem;
  border-radius: 999px;
}
.society-card h3 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: .95; }
.society-card h3 strong { color: var(--yellow); }
.society-card__body p:not(.society-card__tag) { color: rgba(255, 255, 255, .75); line-height: 1.6; max-width: 32rem; }
.society-card__body .btn { margin-top: .5rem; }

@media (min-width: 768px) {
  .society-card { grid-template-columns: 1fr 1.15fr; }
  .society-card__media { min-height: 340px; }
}
/* ---------- Locação do campo society: animações ---------- */
/* entrada: a foto se revela da esquerda para a direita com um leve zoom;
   o texto chega pela direita, peça por peça (--i) */
.society-card__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1) .15s; }
.reveal.is-visible .society-card__media { clip-path: inset(0 0 0 0); }
.society-card__media img { scale: 1.2; transition: transform .8s ease, scale 1.6s cubic-bezier(.22, 1, .36, 1) .15s; }
.reveal.is-visible .society-card__media img { scale: 1; }
.society-card__in {
  opacity: 0;
  translate: 32px 0;
  transition: opacity .6s ease, translate .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(.45s + var(--i, 0) * .11s);
}
.reveal.is-visible .society-card__in { opacity: 1; translate: 0 0; }

/* etiqueta com bolinha pulsando, como um "disponível agora" */
.society-card__tag { display: inline-flex; align-items: center; gap: .45rem; }
.society-card__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
  animation: tag-pulse 1.6s ease-out infinite;
}
@keyframes tag-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, .45); }
  100% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); }
}
/* o .shimmer precisa vencer a cor amarela fixa do strong */
.society-card h3 strong.shimmer { color: transparent; }

/* selos entrando um a um */
.society-card__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.society-card__chips li {
  padding: .4rem .85rem;
  border: 1px solid rgba(252, 208, 72, .45);
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  scale: .6;
  opacity: 0;
  transition: scale .5s cubic-bezier(.34, 1.56, .64, 1), opacity .4s ease, background .25s ease, color .25s ease;
}
.society-card__chips li:nth-child(1) { transition-delay: .9s; }
.society-card__chips li:nth-child(2) { transition-delay: 1.02s; }
.society-card__chips li:nth-child(3) { transition-delay: 1.14s; }
.reveal.is-visible .society-card__chips li { scale: 1; opacity: 1; }
.society-card__chips li:hover { background: var(--yellow); color: var(--black); transition-delay: 0s; }

/* brilho dos refletores: acende e pisca de leve */
.society-card__flare {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: clamp(60px, 8vw, 110px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 6%, rgba(255, 244, 200, .55) 18%, rgba(252, 208, 72, 0) 65%);
  pointer-events: none;
  animation: flare 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes flare {
  0%, 100% { opacity: .55; scale: .85; }
  45%      { opacity: 1;   scale: 1.15; }
  50%      { opacity: .7;  scale: 1.05; }
  55%      { opacity: 1;   scale: 1.12; }
}

/* bola atravessando o gramado de tempos em tempos, quicando e girando */
.society-card__ball {
  position: absolute;
  z-index: 1;
  bottom: 14%;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5 15.5 10l-1.3 4H9.8L8.5 10Z' fill='%23000'/%3E%3Cpath d='M12 7.5V2M15.5 10l5.5-1.5M14.2 14l3 5M9.8 14l-3 5M8.5 10 3 8.5'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 8px 10px -6px rgba(0, 0, 0, .6);
  animation:
    ball-cross 7s cubic-bezier(.3, .1, .4, 1) infinite 1.5s,
    ball-hop .45s ease-in infinite alternate,
    ball-spin .7s linear infinite;
}
.society-card__media { container-type: inline-size; }
@keyframes ball-cross {
  0%        { transform: translateX(-8cqw); }
  50%, 100% { transform: translateX(108cqw); }
}
@keyframes ball-hop {
  from { translate: 0 0; }
  to   { translate: 0 -16px; }
}
/* ---------- Estrutura (galeria): animações discretas ---------- */
/* sublinhado fino que se desenha sob a palavra em destaque */
.underline-draw {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 0% 3px;
  padding-bottom: .04em;
  transition: background-size 1s cubic-bezier(.22, 1, .36, 1) .4s;
}
.reveal.is-visible .underline-draw { background-size: 100% 3px; }

/* fotos esmaecem nas laterais em vez de serem cortadas secas */
.gallery-ticker {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  padding-block: 12px; /* espaço para a onda não cortar os cards */
}

/* onda leve: cada card sobe e desce poucos pixels, defasado do vizinho */
.gallery-ticker__item {
  position: relative;
  animation: gallery-wave 6s ease-in-out infinite;
  transition: opacity .4s ease, filter .4s ease;
}
.gallery-ticker__item:nth-child(6n+2) { animation-delay: -1s; }
.gallery-ticker__item:nth-child(6n+3) { animation-delay: -2s; }
.gallery-ticker__item:nth-child(6n+4) { animation-delay: -3s; }
.gallery-ticker__item:nth-child(6n+5) { animation-delay: -4s; }
.gallery-ticker__item:nth-child(6n+6) { animation-delay: -5s; }
@keyframes gallery-wave {
  0%, 100% { translate: 0 6px; }
  50%      { translate: 0 -6px; }
}

/* foco no hover: a faixa pausa, as outras fotos apagam um pouco e a foto
   apontada ganha uma linha amarela fina na base */
.gallery-ticker__track:hover { animation-play-state: paused; }
.gallery-ticker__track:hover .gallery-ticker__item:not(:hover) { opacity: .55; filter: grayscale(.5); }
.gallery-ticker__item::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.gallery-ticker__item:hover::after { transform: scaleX(1); }
/* ---------- Nossa unidade (30 anos + estrutura), estilo slim ---------- */
.unit__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.unit .section-head { margin-bottom: 2rem; }
.unit h2 strong { color: var(--yellow); }

/* selo dos 30 anos: anel fino que se desenha + anel tracejado girando devagar */
.unit__badge { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin-inline: auto; }
.unit__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.unit__ring circle { fill: none; stroke: var(--yellow); stroke-width: 1.5; }
.unit__ring circle:first-child {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 2s cubic-bezier(.65, 0, .35, 1) .2s;
}
.unit__badge.is-visible .unit__ring circle:first-child { stroke-dashoffset: 0; }
.unit__ring-dash {
  stroke: rgba(255, 255, 255, .25) !important;
  stroke-width: 1 !important;
  stroke-dasharray: 2 7;
  transform-origin: center;
  animation: ring-spin 40s linear infinite;
}
@keyframes ring-spin { to { rotate: 360deg; } }
.unit__years {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.unit__years strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(5rem, 14vw, 7.5rem);
  line-height: .85;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.unit__years span {
  margin-top: .5rem;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--yellow);
}

/* lista em linhas finas: cada item sobe e a linha de baixo se desenha */
.unit__list { border-top: 1px solid rgba(255, 255, 255, .1); }
.unit__list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem .25rem;
  opacity: 0;
  translate: 0 14px;
  transition: opacity .6s ease, translate .7s cubic-bezier(.22, 1, .36, 1), padding .3s ease;
  transition-delay: calc(.2s + var(--i, 0) * .12s);
}
.unit__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), background .3s ease;
  transition-delay: calc(.35s + var(--i, 0) * .12s);
}
.unit__list.is-visible li { opacity: 1; translate: 0 0; }
.unit__list.is-visible li::after { transform: scaleX(1); }
.unit__list li:hover { padding-left: .75rem; transition-delay: 0s; }
.unit__list li:hover::after { background: var(--yellow); transition-delay: 0s; }
.unit__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(252, 208, 72, .45);
  color: var(--yellow);
  transition: background .3s ease, color .3s ease;
}
.unit__icon svg { width: 22px; height: 22px; }
.unit__list li:hover .unit__icon { background: var(--yellow); color: var(--black); }
.unit__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.unit__list span:not(.unit__icon) { font-size: .88rem; color: var(--muted); }

/* --- Nossa unidade: movimento contínuo --- */
.unit h2 strong.shimmer { color: transparent; }

/* ondas finas saindo do selo */
.unit__ripple {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(252, 208, 72, .5);
  pointer-events: none;
  animation: unit-ripple 4s ease-out infinite;
}
@keyframes unit-ripple {
  0%   { scale: 1; opacity: .7; }
  100% { scale: 1.35; opacity: 0; }
}

/* halo amarelo pulsando atrás do número */
.unit__glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 208, 72, .22), rgba(252, 208, 72, 0) 70%);
  animation: glow-breathe 3.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { scale: .9; opacity: .6; }
  50%      { scale: 1.15; opacity: 1; }
}

/* bolinha em órbita sobre o anel amarelo (raio 92 de 200 = 46%) */
.unit__orbit {
  position: absolute;
  inset: 4%;
  pointer-events: none;
  animation: ring-spin 9s linear infinite;
}
.unit__orbit i {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5 15.5 10l-1.3 4H9.8L8.5 10Z' fill='%23000'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 0 12px 2px rgba(252, 208, 72, .6);
  opacity: 0;
  transition: opacity .5s ease 2s;
}
.unit__badge.is-visible .unit__orbit i { opacity: 1; }

/* destaque em sequência: um item por vez acende, em loop de 8 s */
.unit__list li .unit__icon { animation: unit-icon-on 8s ease-in-out infinite; animation-delay: calc(2.5s + var(--i, 0) * 2s); }
.unit__list li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  animation: unit-line-on 8s ease-in-out infinite;
  animation-delay: calc(2.5s + var(--i, 0) * 2s);
}
@keyframes unit-icon-on {
  0%, 25%, 100% { background: transparent; color: var(--yellow); scale: 1; }
  5%, 20%       { background: var(--yellow); color: var(--black); scale: 1.08; }
}
@keyframes unit-line-on {
  0%        { transform: scaleX(0); transform-origin: left; }
  10%       { transform: scaleX(1); transform-origin: left; }
  20%       { transform: scaleX(1); transform-origin: right; }
  25%, 100% { transform: scaleX(0); transform-origin: right; }
}
@media (min-width: 992px) {
  .unit__grid { grid-template-columns: 360px 1fr; gap: 5rem; }
}
/* ---------- Localização: animações ("caminho até a escola") ---------- */
.loc { position: relative; overflow: clip; }
.loc > .wrap { position: relative; z-index: 1; }

/* rota tracejada: a máscara (traço sólido animado) revela o tracejado aos poucos */
.loc-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: none !important;
  opacity: 1 !important;
}
.loc-route path {
  fill: none;
  stroke: rgba(0, 0, 0, .14);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .006 .012;
  vector-effect: non-scaling-stroke;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2.6s cubic-bezier(.65, 0, .35, 1) .2s;
}
.loc-route.is-visible path { clip-path: inset(0 0 0 0); }
/* pino no fim da rota, quicando */
.loc-route__pin {
  position: absolute;
  z-index: 0;
  left: calc(1290 / 1440 * 100%);
  top: calc(190 / 700 * 100%);
  width: 22px;
  height: 22px;
  margin: -22px 0 0 -11px;
  border-radius: 50% 50% 50% 0;
  background: var(--yellow);
  box-shadow: inset 0 0 0 6px var(--black);
  rotate: -45deg;
  opacity: 0;
  transition: opacity .4s ease 2.6s;
  animation: pin-bounce 1.8s ease-in-out infinite;
}
.loc:has(.loc-route.is-visible) .loc-route__pin { opacity: 1; }
@keyframes pin-bounce {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@media (max-width: 767px) { .loc-route, .loc-route__pin { display: none; } }

/* abas das unidades: pílula amarela desliza até a unidade escolhida */
.loc-tabs {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.75rem;
  padding: .3rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: var(--white);
}
.loc-tabs.reveal { transform: none; }
.loc-tab {
  position: relative;
  z-index: 1;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(0, 0, 0, .55);
  transition: color .3s ease;
}
.loc-tab:hover { color: var(--black); }
.loc-tab.is-active { color: var(--black); }
.loc-tabs__pill {
  position: absolute;
  z-index: 0;
  top: .3rem;
  bottom: .3rem;
  left: 0;
  width: var(--tab-w, 0);
  translate: var(--tab-x, 0) 0;
  border-radius: 999px;
  background: var(--yellow);
  transition: translate .45s cubic-bezier(.22, 1, .36, 1), width .45s cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 400px) { .loc-tab { padding: .65rem 1rem; font-size: .74rem; } }
/* entrada do card: info vem da esquerda, mapa se revela da direita */
.location-card.reveal { transform: none; }
.location-card__info { transition: translate .9s cubic-bezier(.22, 1, .36, 1), opacity .7s ease; translate: -40px 0; opacity: 0; }
.location-card__map { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1) .25s; position: relative; }
.location-card.is-visible .location-card__info { translate: 0 0; opacity: 1; }
.location-card.is-visible .location-card__map { clip-path: inset(0 0 0 0); }

/* endereço linha a linha */
.loc-address span {
  display: block;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .5s ease, translate .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(.6s + var(--i, 0) * .12s);
}
.location-card.is-visible .loc-address span { opacity: 1; translate: 0 0; }

/* radar pulsando sobre o marcador (o mapa é centrado no endereço) */
.loc-radar {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.loc-radar i {
  position: absolute;
  left: -60px;
  top: -75px; /* um pouco acima do centro: a ponta do pino do Google fica no centro */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(252, 208, 72, .9);
  background: rgba(252, 208, 72, .12);
  scale: .1;
  opacity: 0;
  animation: radar 3s ease-out infinite;
}
.loc-radar i:nth-child(2) { animation-delay: 1s; }
.loc-radar i:nth-child(3) { animation-delay: 2s; }
@keyframes radar {
  0%   { scale: .1; opacity: 1; }
  100% { scale: 1.6; opacity: 0; }
}

/* botão de rota: seta deslizando no hover */
.btn--route::after { content: "→"; transition: translate .3s ease; }
.btn--route:hover::after { translate: 5px 0; }
/* ---------- Como agendar: animações slim ---------- */
/* card amarelo: reflexo de luz atravessando de tempos em tempos */
.offer { position: relative; overflow: hidden; }
.offer--sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: offer-sweep 4.5s ease-in-out 1.2s infinite;
}
@keyframes offer-sweep {
  0%        { background-position: 100% 0; }
  45%, 100% { background-position: 0% 0; }
}
/* card de contorno: borda com uma luz girando (--ang / spin-border já existem) */
.offer--spin {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    conic-gradient(from var(--ang), var(--yellow), rgba(252, 208, 72, .2) 25%, rgba(252, 208, 72, .2) 50%, var(--yellow) 75%, rgba(252, 208, 72, .2)) border-box;
  animation: spin-border 5s linear infinite;
}
.offer__big { transition: scale .4s cubic-bezier(.34, 1.56, .64, 1); }
.offer:hover .offer__big { scale: 1.05; }

/* passos: números em contorno que acendem quando a bola chega */
.steps--walk { position: relative; }
.steps--walk .step__n {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  animation: step-on 6.6s ease-in-out infinite;
  animation-delay: calc(var(--s, 0) * 2.2s);
}
@keyframes step-on {
  0%, 33.4%, 100% { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, .28); }
  5%, 28%         { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); }
}
.steps__rail { display: none; }
@media (min-width: 768px) {
  .steps--walk { padding-top: 2rem; }
  .steps__rail {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 14px);
  }
  /* cada coluna começa em k * (100% + 2,5rem) / 3; a bola para acima do número */
  .steps--walk { container-type: inline-size; }
  .steps__rail span {
    position: absolute;
    top: -7px;
    left: .9rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(252, 208, 72, .18), 0 0 14px rgba(252, 208, 72, .6);
    animation: rail-walk 6.6s cubic-bezier(.45, 0, .2, 1) infinite;
  }
  @keyframes rail-walk {
    0%, 24%    { translate: 0 0; opacity: 1; }
    33.3%, 57% { translate: calc((100cqw + 2.5rem) / 3) 0; opacity: 1; }
    66.6%, 90% { translate: calc((100cqw + 2.5rem) / 3 * 2) 0; opacity: 1; }
    95%        { translate: calc((100cqw + 2.5rem) / 3 * 2) 0; opacity: 0; }
    96%        { translate: 0 0; opacity: 0; }
    100%       { translate: 0 0; opacity: 1; }
  }
}
/* ---------- Nosso ambiente (vídeo aéreo) ---------- */
.ambiente .section-head { margin-bottom: 2.5rem; }
.ambiente__frame {
  position: relative;
  max-width: 64rem;
  margin-inline: auto;
  aspect-ratio: 832 / 464;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--black-soft);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
/* moldura fina com uma luz amarela girando em volta */
.ambiente__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), var(--yellow), rgba(252, 208, 72, 0) 25%, rgba(252, 208, 72, 0) 50%, var(--yellow) 75%, rgba(252, 208, 72, 0));
  -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);
  pointer-events: none;
  animation: spin-border 6s linear infinite;
}
.ambiente__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* entrada: o vídeo abre como uma cortina do centro para fora */
.ambiente__frame.reveal { transform: none; clip-path: inset(0 12% round 1.5rem); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), opacity .6s ease; }
.ambiente__frame.reveal.is-visible { clip-path: inset(0 0 round 1.5rem); }

/* etiqueta fina e discreta */
.ambiente__tag {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.ambiente__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: tag-pulse-y 1.6s ease-out infinite; }
@keyframes tag-pulse-y {
  0%   { box-shadow: 0 0 0 0 rgba(252, 208, 72, .6); }
  100% { box-shadow: 0 0 0 7px rgba(252, 208, 72, 0); }
}
@media (max-width: 767px) {
  .ambiente__frame, .ambiente__frame::before { border-radius: 1rem; }
  .ambiente__frame.reveal { clip-path: none; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Categorias (ticker de cards) ----------
   Os cards ficam lado a lado numa trilha que rola sozinha, sem parar, em loop
   infinito (mesmo truque do .marquee: a trilha é duplicada e anima de 0 a
   -50%, então quando o primeiro conjunto some o segundo já está encostado). */
.cat-head {
  display: flex;
  justify-content: center;
}
.cat-head .section-head { margin-bottom: 0; }

.cat-carousel { margin-top: 3rem; overflow: hidden; }

.cat-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  /* espaço para a sombra dos cards não ser cortada */
  padding-block: .5rem 1.5rem;
  animation: marquee 48s linear infinite;
}
.cat-track:hover { animation-play-state: paused; }

.cat-card {
  flex: 0 0 clamp(255px, 74vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 45px -30px rgba(0, 0, 0, .55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 55px -28px rgba(0, 0, 0, .6);
}

/* flex: 0 0 auto + min-height: 0 impedem que uma foto quadrada estique o card:
   sem isso o mínimo automático do flex passa por cima do aspect-ratio */
.cat-card__media {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--off-white-soft);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.cat-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .9;
  font-size: clamp(2.5rem, 6vw, 3rem);
  color: var(--gold-deep);
}
.cat-card__age {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: var(--steel);
}
.cat-card__desc {
  margin-top: .35rem;
  font-size: .92rem;
  line-height: 1.55;
  color: #555555;
}
/* empurra o botão para o rodapé, deixando todos alinhados entre os cards */
.cat-card__btn { margin-top: auto; padding-top: 1.25rem; }
.cat-card__btn .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .cat-card:hover { transform: none; }
}

/* ---------- Categorias: animações slim ---------- */
/* cards esmaecem nas laterais em vez de serem cortados secos */
.cat-carousel {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.cat-track { padding-block: 1.25rem 2rem; }

/* onda leve: cada card sobe e desce poucos pixels, defasado do vizinho */
.cat-card { animation: gallery-wave 6s ease-in-out infinite; transition: transform .3s ease, box-shadow .3s ease, opacity .4s ease, filter .4s ease; }
.cat-card:nth-child(6n+2) { animation-delay: -1s; }
.cat-card:nth-child(6n+3) { animation-delay: -2s; }
.cat-card:nth-child(6n+4) { animation-delay: -3s; }
.cat-card:nth-child(6n+5) { animation-delay: -4s; }
.cat-card:nth-child(6n+6) { animation-delay: -5s; }

/* hover: os outros apagam um pouco; o apontado ganha zoom na foto, linha
   amarela fina no topo do texto e a faixa etária em amarelo escuro */
.cat-track:hover .cat-card:not(:hover) { opacity: .55; filter: grayscale(.45); }
.cat-card__media { overflow: hidden; }
.cat-card__media img { transition: transform .6s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { position: relative; }
.cat-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.cat-card:hover .cat-card__body::before { transform: scaleX(1); }
.cat-card__age { transition: color .3s ease, letter-spacing .4s ease; }
.cat-card:hover .cat-card__age { color: var(--gold-deep); letter-spacing: .22em; }
/* ---------- Steps (Como agendar) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
.step__n { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; line-height: 1; color: rgba(255, 255, 255, .08); }
.step h3 { margin-top: .5rem; position: relative; margin-bottom: .7rem; font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--muted); max-width: 20rem; line-height: 1.55; }
/* descrições dos passos em maiúsculas, menores e mais espaçadas */
.step p { text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; line-height: 1.65; }
.center-cta { text-align: center; margin-top: 3.5rem; }

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

/* ---------- Location ---------- */
.location-card {
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .68);
  --accent: var(--yellow);
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr;
}
.location-card__info { padding: clamp(1.75rem, 5vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; color: #fff; }
.location-card__info h3 { font-size: 1.5rem; line-height: 1.2; }
.location-card__info h3 span { display: block; color: var(--yellow); }
.location-card__info address { margin-top: 1.4rem; color: rgba(255, 255, 255, .75); line-height: 1.7; }
.location-card__actions { display: flex; flex-direction: column; gap: .75rem; }
.location-card__actions .btn { width: 100%; }
.location-card__ig { text-align: center; padding: .5rem; font-family: var(--font-utility); font-weight: 700; font-size: .85rem; color: rgba(255, 255, 255, .7); transition: color .2s ease; }
.location-card__ig:hover { color: var(--yellow); }
.location-card__map { min-height: 320px; }
.location-card__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (min-width: 992px) {
  .location-card { grid-template-columns: 1fr 1.2fr; }
}

/* Variante sem mapa, para quando a unidade ainda não tem endereço público */
.location-card--simple .location-card__info { color: rgba(255, 255, 255, .85); }
@media (min-width: 992px) {
  .location-card.location-card--simple {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; text-align: center; }
.final-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 5%, rgba(0, 0, 0, .74) 55%, rgba(0, 0, 0, .86));
}
.final-cta__content { position: relative; max-width: 42rem; margin-inline: auto; }
.final-cta__content p { margin-top: 1.4rem; font-size: 1.1rem; color: rgba(255, 255, 255, .85); line-height: 1.6; }
/* texto do CTA final em maiúsculas, menor e mais espaçado para seguir legível */
.final-cta__content p:not(.final-cta__micro) { text-transform: uppercase; font-size: .92rem; letter-spacing: .04em; line-height: 1.7; }
.final-cta__content .btn { margin-top: 1.8rem; }
.final-cta__micro { margin-top: 1rem !important; font-size: .9rem !important; color: rgba(255, 255, 255, .6) !important; }

/* ---------- Footer (slim, animado) ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
/* brilho amarelo correndo pela borda de cima */
.footer__beam {
  position: absolute;
  top: -1px;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  animation: footer-beam 6s ease-in-out infinite;
}
@keyframes footer-beam {
  0%   { translate: -100% 0; }
  100% { translate: 400% 0; }
}

.footer__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.footer .brand__logo { height: 120px; }
.footer__about { margin-top: 1.25rem; max-width: 20rem; font-size: .88rem; line-height: 1.6; color: rgba(255, 255, 255, .55); }

/* valores aparecendo um a um, separados por pontinhos amarelos */
.footer__values { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: 1.4rem; }
.footer__values li {
  position: relative;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--yellow);
  opacity: 0;
  translate: 0 8px;
  transition: opacity .5s ease, translate .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(.3s + var(--i, 0) * .1s);
}
.footer__values li + li::before {
  content: "";
  position: absolute;
  left: -.55rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.footer__col.is-visible .footer__values li { opacity: 1; translate: 0 0; }

.footer__label {
  font-family: var(--font-utility);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

/* links em duas colunas; um tracinho amarelo cresce na frente no hover */
.footer__links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: .7rem 2.5rem; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  transition: color .25s ease, gap .3s ease;
}
.footer__links a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width .3s ease;
}
.footer__links a:hover { color: var(--white); gap: .5rem; }
.footer__links a:hover::before { width: 14px; }

/* contatos com ícones de traço fino em círculos */
.footer__contact {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .75);
  transition: color .25s ease, translate .3s ease;
}
.footer__contact small {
  display: block;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--steel);
}
.footer__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--yellow);
  transition: background .3s ease, color .3s ease, border-color .3s ease, rotate .5s cubic-bezier(.34, 1.56, .64, 1);
}
.footer__ico svg { width: 18px; height: 18px; }
.footer__contact:hover { color: var(--white); translate: 4px 0; }
.footer__contact:hover .footer__ico { background: var(--yellow); color: var(--black); border-color: var(--yellow); rotate: -10deg; }

.footer__bottom {
  margin-top: 4rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
}

/* voltar ao topo: botão fino circular, a seta sobe no hover */
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .6);
  transition: color .25s ease;
}
.footer__top i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  font-style: normal;
  font-size: .9rem;
  transition: border-color .25s ease, background .25s ease, color .25s ease, translate .3s ease;
}
.footer__top:hover { color: var(--white); }
.footer__top:hover i { border-color: var(--yellow); background: var(--yellow); color: var(--black); translate: 0 -3px; }

/* assinatura grande só em contorno, com um brilho amarelo atravessando */
.footer__signature {
  margin-top: .5rem;
  margin-bottom: -.18em;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 13.5vw, 13rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  /* faixa de luz larga num fundo de 200%: em qualquer posição ela fica sobre
     as letras, então nunca some */
  background: linear-gradient(100deg, transparent 22%, rgba(252, 208, 72, .9) 50%, transparent 78%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: signature-sweep 3.2s ease-in-out infinite alternate;
  user-select: none;
}
/* a quebra "MENINOS / DA VILA" só existe no celular */
.footer__sig-br { display: none; }
/* celular: em duas linhas grandes, sem corte embaixo e acima do botão do WhatsApp */
@media (max-width: 767px) {
  .footer__signature {
    margin: 1rem 0 0;
    padding-bottom: 5.5rem;
    white-space: normal;
    font-size: 23vw;
    line-height: .88;
    -webkit-text-stroke-color: rgba(255, 255, 255, .22);
  }
  .footer__sig-br { display: inline; }
}
/* a luz vai e volta pelas letras, sem sair delas e sem pausa */
@keyframes signature-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.1fr 1fr 1.2fr; gap: 3.5rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  width: 58px; height: 58px;
  border-radius: 999px;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  isolation: isolate;
  transition: transform .2s ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .45);
  z-index: -1;
  animation: pulse-whatsapp 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse-whatsapp {
  0%        { scale: 1; opacity: 1; }
  60%, 100% { scale: 1.45; opacity: 0; }
}

/* ---------- CTA modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: min(92%, 380px);
  background: var(--off-white);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  transform: scale(.94);
  transition: transform .25s ease;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal.is-open .modal__box { transform: scale(1); }
.modal__close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--black);
  opacity: .6;
}
.modal__close:hover { opacity: 1; }
/* A logo vertical já vem quadrada e com pouca margem: entra inteira. */
.modal__logo { width: 190px; height: auto; }
.modal__text { color: var(--black); font-size: 1rem; line-height: 1.55; }
.modal__hint {
  margin-top: .25rem;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--steel);
}

/* Lista de unidades: um botão por unidade, cada um com a sua mensagem */
.modal__units {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  /* sem rolagem: as unidades cabem inteiras (sem barras laterais/verticais) */
  overflow: visible;
}
/* no hover o botão só clareia, sem crescer além da borda do pop-up */
.modal__unit:hover { transform: none; filter: brightness(1.05); }
.modal__unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding-block: .8rem;
}
.modal__unit span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  text-transform: none;
  letter-spacing: .01em;
  opacity: .82;
}

/* ---------- Pop-up: animações slim ---------- */
/* caixa sobe com leve "mola" e uma linha amarela fina se desenha no topo */
.modal__box {
  overflow: hidden;
  transform: translateY(28px) scale(.94);
  transition: transform .55s cubic-bezier(.34, 1.4, .64, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1) .25s;
}
.modal.is-open .modal__box::before { transform: scaleX(1); }
.modal__overlay { backdrop-filter: blur(0); transition: backdrop-filter .4s ease; }
.modal.is-open .modal__overlay { backdrop-filter: blur(4px); }

/* conteúdo entra em cascata */
.modal__box > :not(.modal__close) {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .45s ease, translate .55s cubic-bezier(.22, 1, .36, 1);
}
.modal.is-open .modal__box > :not(.modal__close) { opacity: 1; translate: 0 0; }
.modal.is-open .modal__logo  { transition-delay: .12s; }
.modal.is-open .modal__text  { transition-delay: .22s; }
.modal.is-open .modal__hint  { transition-delay: .3s; }
.modal.is-open .modal__units { transition-delay: .36s; }

/* logo dá um "pop" e depois flutua devagar */
.modal.is-open .modal__logo { animation: modal-logo-float 4s ease-in-out .9s infinite; }
@keyframes modal-logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-5px) rotate(-1.5deg); }
}

/* botões das unidades: entram um a um, reflexo passando e seta no hover */
.modal__unit {
  position: relative;
  overflow: hidden;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .4s ease, translate .5s cubic-bezier(.22, 1, .36, 1), filter .25s ease, box-shadow .3s ease;
}
.modal.is-open .modal__unit { opacity: 1; translate: 0 0; }
.modal.is-open .modal__unit:nth-child(1) { transition-delay: .42s, .42s, 0s, 0s; }
.modal.is-open .modal__unit:nth-child(2) { transition-delay: .52s, .52s, 0s, 0s; }
.modal__unit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-120%);
}
.modal.is-open .modal__unit::after { animation: btn-shine 3.6s ease-in-out 1.1s infinite; }
.modal.is-open .modal__unit:nth-child(2)::after { animation-delay: 1.6s; }
.modal__unit::before {
  content: "→";
  position: absolute;
  right: 1rem;
  top: 50%;
  font-size: 1.05rem;
  translate: -8px -50%;
  opacity: 0;
  transition: translate .3s ease, opacity .3s ease;
}
.modal__unit:hover::before { translate: 0 -50%; opacity: 1; }
.modal__unit:hover { box-shadow: inset 0 -3px 0 var(--black); }

/* fechar: gira no hover */
.modal__close { transition: opacity .2s ease, rotate .35s ease; }
.modal__close:hover { rotate: 90deg; }

/* ---------- Reveal on scroll (retriggers both ways) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--delay, 0s);

}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* when it exits the viewport it resets so it plays again on the way back */
.reveal.is-hidden-up { opacity: 0; transform: translateY(-24px); transition-delay: 0s; }
.reveal.is-hidden-down { opacity: 0; transform: translateY(30px); transition-delay: 0s; }

/* ---------- Ambient decoration (loops back and forth) ---------- */
.drift { animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-2%, 1.5%, 0) rotate(.6deg); }
}

/* ---------- Mobile: site travado na horizontal ----------
   Celulares (principalmente Safari do iPhone e Samsung Internet) deixam
   arrastar a página para o lado se QUALQUER coisa passar da largura da tela,
   mesmo que esteja recortada com "clip". Por isso, no mobile:
   1. html e body usam overflow-x: hidden (a trava mais compatível);
   2. o efeito de seção presa (sticky) é desligado, porque o "hidden" no body
      quebraria o sticky de qualquer forma;
   3. cada bloco também recorta o que sair pelas laterais;
   4. animações que entravam pela lateral passam a entrar só de baixo. */
@media (max-width: 991px) {
  html, body { overflow-x: hidden !important; max-width: 100%; }
  body { position: relative; }
  html { touch-action: pan-y pinch-zoom; }
  main, main > *, .footer, .hero-pin__inner, .wrap { max-width: 100%; }
  main > *, .footer, .hero-pin__inner { overflow-x: hidden; }
  main > .stack-pin { position: relative !important; top: auto !important; }

  /* entradas sem deslocamento lateral */
  .exp-card.reveal,
  .exp-card.reveal.is-hidden-down { transform: translateY(40px); rotate: 0deg; }
  .exp-card.reveal.is-visible { transform: none; }
  .location-card__info { translate: 0 0; }
  .society-card__in { translate: 0 0; }
  .about-card { transform: none !important; }
  .unit__ripple { inset: 10%; }
  .footer__beam { width: 100%; }
}
/* textos em maiúsculas (pedido do cliente): menores e mais espaçados para
   continuar legíveis */
#unidade .lead,
#ambiente .lead,
.society-card__body p:not(.society-card__tag),
.stage p,
.consult-bar p,
.pillar:not(.pillar--cta) p {
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.65;
}
#unidade .lead, #ambiente .lead { font-size: .95rem; }
.society-card__body p:not(.society-card__tag) { font-size: .82rem; }
.stage p, .pillar:not(.pillar--cta) p { font-size: .78rem; }
.consult-bar p { font-size: .88rem; }
/* ---------- Desempenho ----------
   Blocos fora da tela (js/main.js marca com .is-offscreen) pausam todas as
   animações, e o navegador pula a pintura dos que estão longe. */
.is-offscreen,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .drift, .whatsapp-float, .whatsapp-float::before, .stage__dot, .about-card__graphic img, .about-card__glow, .about-card__shine, .btn--shine::after, .benefit-card__icon, .benefits-slides img.is-active, .benefit-card::after, #beneficios::before, #beneficios::after, .vivencias.starfield::before, .shimmer, .consult-bar--glow, .ambiente__frame::before, .ambiente__tag i, .cat-card, .pillars .pillar::before, .pillar--cta .pillar__icon::after, .offer--sweep::after, .offer--spin, .steps--walk .step__n, .steps__rail span, .unit__ripple, .unit__glow, .unit__orbit, .unit__list li .unit__icon, .unit__list li::before, .footer__beam, .footer__signature, .loc-route__pin, .loc-radar i, .unit__ring-dash, .gallery-ticker__item, .nav-links, .nav-links a, .nav-links::after, .society-card__tag i, .society-card__flare, .society-card__ball, .exp-card.reveal, .exp-card.is-visible::after, .method-field__ball, .gallery-ticker__track, .cat-track { animation: none !important; }
  .reveal, .reveal.is-hidden-up, .reveal.is-hidden-down { opacity: 1; transform: none; transition: none; }
  .about-card__in, .about-card__graphic { opacity: 1; transform: none; clip-path: none; transition: none; }
  .about-stats strong::after { transform: none; transition: none; }
  .benefit-card.reveal, .benefit-card.reveal.is-hidden-down, .benefits-grid__photo-caption { opacity: 1; transform: none; }
  .hl, .benefits-grid__photo-caption::before { transition: none; }
  .hl { background-size: 100% 32%; }
  .ambiente__frame.reveal { clip-path: none; transition: none; }
  .modal__box, .modal__box > *, .modal__unit, .modal__box::before { transition: none !important; transform: none; opacity: 1; translate: 0 0; }
  .modal__logo, .modal__unit::after { animation: none !important; }
  .underline-draw { background-size: 100% 3px; transition: none; }
  .footer__values li { opacity: 1; translate: 0 0; transition: none; }
  .loc-route path, .location-card__map { clip-path: none; transition: none; }
  .location-card__info, .loc-address span { opacity: 1; translate: 0 0; transition: none; }
  .loc-route__pin { opacity: 1; }
  .unit__ring circle, .unit__list li, .unit__list li::after { opacity: 1; translate: 0 0; stroke-dashoffset: 0; transform: none; transition: none; }
  .society-card__media { clip-path: none; transition: none; }
  .society-card__media img { scale: 1; }
  .society-card__in, .society-card__chips li { opacity: 1; translate: 0 0; scale: 1; transition: none; }
  .society-card__ball { display: none; }
  .exp-card.reveal, .exp-card.reveal.is-hidden-down { transform: none; transition: none; }
  .exp-card__tag { scale: 1; transition: none; }
  .method-field svg * { stroke-dashoffset: 0; transition: none; }
  .badges--pop li, .pillar.reveal, .pillar.reveal.is-hidden-down { opacity: 1; transform: none; transition: none; }
  .benefits-grid__photo-caption::before { transform: none; }
}
