/* ==========================================================
   VYNEX — Base: reset, tipografia, utilidades, acessibilidade
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Celulares com recorte de tela (viewport-fit=cover) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

/* Rolagem nativa suave só quando o Lenis não está ativo e o usuário não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, canvas, svg, iframe { display: block; max-width: 100%; }
iframe { border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 650; }
::selection { background: var(--c-cobalt); color: #fff; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html.is-locked { overflow: hidden; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -120px;
  z-index: 1000;
  padding: .75rem 1.1rem;
  border-radius: var(--r-chip);
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Títulos */
.h2 {
  font-family: var(--f-display);
  font-stretch: var(--stretch-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head__lead {
  color: var(--c-text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 40rem;
  text-wrap: pretty;
}

/* Palavras divididas para revelação (títulos) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w__i { display: inline-block; will-change: transform; }

/* Entrada da página: estados iniciais só enquanto a classe .intro existe.
   Sem JavaScript, nada fica escondido. */
.js.intro [data-intro] { opacity: 0; }
.js.intro .lens { --wipe: 0; }
/* Sem GSAP (CDN fora do ar, por exemplo): entrada simples só com CSS */
.js:not(.has-gsap) [data-intro] { transition: opacity .8s var(--ease-out); }
.js:not(.has-gsap) .lens { transition: --wipe 1.3s var(--ease-in-out); }

/* Movimento reduzido: sem transições longas nem animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
