@import url("./tokens.css");

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   LANGUAGE TOGGLE — fixo no canto superior direito
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.6vw, 36px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(7, 19, 22, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(214, 251, 0, 0.22);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-toggle__btn {
  background: transparent;
  border: 0;
  color: rgba(236, 255, 182, 0.5);
  padding: 4px 8px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.3s var(--ease-liquid);
  border-radius: 999px;
}

.lang-toggle__btn:hover { color: var(--color-offwhite); }

.lang-toggle__btn.is-active {
  color: var(--color-lime);
  text-shadow: 0 0 12px rgba(214, 251, 0, 0.4);
}

.lang-toggle__sep {
  color: rgba(214, 251, 0, 0.35);
  pointer-events: none;
}

@media (max-width: 480px) {
  .lang-toggle {
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* ============================================================
   VIDEO SCROLL HERO — primeira tela: vídeo controlado por scroll
   Container 400vh dá curso de scroll. Sticky inside fica fixo
   e o JS faz video.currentTime = scrollProgress × duration.
   ============================================================ */
.video-scroll-hero {
  position: relative;
  width: 100%;
  height: 400vh;
  background: var(--color-ink);
  z-index: 1;
}

.video-scroll-hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.video-scroll-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: var(--color-ink);
  /* hint pra browser desenhar mais rápido */
  will-change: contents;
}

.video-scroll-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 12% 20%, rgba(214, 251, 0, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 85%, rgba(0, 84, 95, 0.28), transparent 60%);
  mix-blend-mode: screen;
}

.video-scroll-hero__vignette {
  position: absolute;
  inset: 0 0 80px 0;            /* deixa espaço pro marquee na base */
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(7, 19, 22, 0.55) 0%,
      transparent 25%,
      transparent 70%,
      rgba(7, 19, 22, 0.65) 100%);
}

.video-scroll-hero__overlay {
  position: relative;
  z-index: 4;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 6vw, 80px);
  pointer-events: none;
}

.video-scroll-hero__overlay > * { pointer-events: auto; }

.video-scroll-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-offwhite);
  opacity: 0.85;
}

.video-scroll-hero__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.4s var(--ease-liquid);
}

.video-scroll-hero__brand:hover { opacity: 0.75; }

.video-scroll-hero__brand-logo {
  display: block;
  width: clamp(320px, 28vw, 520px);
  height: clamp(160px, 14vw, 260px);
  background-color: var(--color-lime);
  -webkit-mask-image: url("/assets/logo-novace.png");
          mask-image: url("/assets/logo-novace.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: left center;
          mask-position: left center;
  -webkit-mask-size: contain;
          mask-size: contain;
  filter: drop-shadow(0 2px 18px rgba(214, 251, 0, 0.28));
  transition: background-color 0.4s var(--ease-liquid), filter 0.4s var(--ease-liquid);
}

.video-scroll-hero__brand:hover .video-scroll-hero__brand-logo {
  background-color: var(--color-offwhite);
  filter: drop-shadow(0 2px 24px rgba(236, 255, 182, 0.4));
}

.video-scroll-hero__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
}

.video-scroll-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.video-scroll-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-lime);
}

.video-scroll-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.02;
  font-weight: 400;
  color: var(--color-offwhite);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  padding-bottom: 0.06em;
  text-wrap: balance;
}

.video-scroll-hero__title em {
  font-style: italic;
  color: var(--color-lime);
}

.video-scroll-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: rgba(236, 255, 182, 0.78);
  max-width: 520px;
  margin: 0;
}

.video-scroll-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-self: center;
  opacity: 0.7;
}

.video-scroll-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-lime));
  transform-origin: top center;
  animation: vsh-scroll-pulse 2.4s var(--ease-liquid) infinite;
}

.video-scroll-hero__scroll-text {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--color-offwhite);
  opacity: 0.7;
}

@keyframes vsh-scroll-pulse {
  0%   { transform: scaleY(0.4); opacity: 0.4; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ============================================================
   AREAS MARQUEE — componente unificado (3 instâncias no site)
   1) base do hero do vídeo  (.areas-marquee dentro de .video-scroll-hero)
   2) embaixo da pill         (.areas-marquee--mid)
   3) acima do works-card     (.areas-marquee--top-works)
   ============================================================ */
.areas-marquee {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 19, 22, 0.55) 50%, rgba(7, 19, 22, 0.75) 100%);
  border-top: 1px solid rgba(214, 251, 0, 0.18);
  border-bottom: 1px solid rgba(214, 251, 0, 0.10);
  height: clamp(70px, 8vh, 100px);
}

.areas-marquee__container {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.areas-marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: areas-marquee-scroll 38s linear infinite;
  will-change: transform;
}

.areas-marquee__track--reverse {
  animation: areas-marquee-scroll-reverse 42s linear infinite;
}

.areas-marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--color-offwhite);
  font-style: italic;
  padding: 0 1rem;
}

.areas-marquee__sep {
  color: var(--color-lime);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-style: italic;
  font-family: var(--font-display);
  padding: 0 0.6rem;
  opacity: 0.85;
}

@keyframes areas-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes areas-marquee-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* === VARIANTE 1: dentro do hero do vídeo (na base, absoluto) === */
.video-scroll-hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: clamp(70px, 8vh, 100px);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 19, 22, 0.65) 30%, rgba(7, 19, 22, 0.85) 100%);
  border-top: 1px solid rgba(214, 251, 0, 0.18);
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.video-scroll-hero__marquee .marquee__container {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.video-scroll-hero__marquee .marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: areas-marquee-scroll 38s linear infinite;
  will-change: transform;
}

.video-scroll-hero__marquee .marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--color-offwhite);
  font-style: italic;
  padding: 0 1rem;
}

.video-scroll-hero__marquee .marquee__sep {
  color: var(--color-lime);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-style: italic;
  font-family: var(--font-display);
  padding: 0 0.6rem;
  opacity: 0.85;
}

/* === VARIANTE 2: embaixo da pill (separa manifesto dos cards) === */
.areas-marquee--mid {
  margin-top: 0.5rem;
  margin-bottom: 0;
  background: transparent;
  border-color: rgba(214, 251, 0, 0.14);
}

/* === VARIANTE 3: acima do works-card (preenche espaço vazio) === */
.areas-marquee--top-works {
  margin-top: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Linha de progresso fina no topo */
.video-scroll-hero__progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(236, 255, 182, 0.08);
  z-index: 5;
}

.video-scroll-hero__progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--color-lime);
  box-shadow: 0 0 12px rgba(214, 251, 0, 0.6);
  transition: width 0.08s linear;
}

/* Mobile */
@media (max-width: 768px) {
  .video-scroll-hero__title { font-size: clamp(32px, 8.5vw, 56px); line-height: 1.05; }
  .video-scroll-hero__sub { font-size: 14px; }
  .video-scroll-hero__main { max-width: 100%; }
  .video-scroll-hero { height: 350vh; }
}

/* ============================================================
   LIQUID REVEAL — slime duplo (sobe de baixo + desce de cima)
   Os dois cobrem 50vh cada → encontram no meio.
   Depois saem cada um pro seu lado (1 efeito limpo).
   ============================================================ */
.liquid-reveal {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.liquid-reveal.is-active { pointer-events: auto; }

/* Cada corpo (top/bottom) — começa em altura 0 */
.liquid-reveal__body {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: var(--color-lime);
  color: var(--color-lime);
  transition: height 1s cubic-bezier(0.65, 0, 0.35, 1),
              transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  filter: drop-shadow(0 0 32px rgba(214, 251, 0, 0.25));
}

.liquid-reveal__body--bottom { bottom: 0; }
.liquid-reveal__body--top    { top: 0; }

/* ENTRADA — os dois sobem (cada um cobre 55vh, sobreposição leve no meio) */
.liquid-reveal.is-active .liquid-reveal__body { height: 55vh; }

/* SAÍDA — cada um sai pro seu lado (efeito único, simétrico) */
.liquid-reveal.is-draining .liquid-reveal__body--bottom {
  transform: translateY(110%);
}

.liquid-reveal.is-draining .liquid-reveal__body--top {
  transform: translateY(-110%);
}

/* CLEANING — depois da saída, mata transição pra evitar rebote visual */
.liquid-reveal.is-cleaning .liquid-reveal__body {
  transition: none !important;
  height: 0 !important;
  transform: none !important;
}

/* Waves SVG — viscosidade nos topos das camadas */
.liquid-reveal__wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 80px;
  display: block;
}

/* Slime de baixo — waves no topo do corpo */
.liquid-reveal__body--bottom .liquid-reveal__wave--back {
  top: -50px;
  animation: liquid-wave-back 3s ease-in-out infinite;
  opacity: 0.7;
}

.liquid-reveal__body--bottom .liquid-reveal__wave--front {
  top: -30px;
  animation: liquid-wave-front 2.2s ease-in-out infinite;
}

/* Slime de cima — waves na base do corpo (espelhadas) */
.liquid-reveal__body--top .liquid-reveal__wave--back {
  bottom: -50px;
  top: auto;
  animation: liquid-wave-back 3s ease-in-out infinite reverse;
  opacity: 0.7;
}

.liquid-reveal__body--top .liquid-reveal__wave--front {
  bottom: -30px;
  top: auto;
  animation: liquid-wave-front 2.2s ease-in-out infinite reverse;
}

@keyframes liquid-wave-back {
  0%, 100% { transform: translateX(-3%) scaleY(1); }
  50%      { transform: translateX(3%) scaleY(1.15); }
}

@keyframes liquid-wave-front {
  0%, 100% { transform: translateX(2%) scaleY(1); }
  50%      { transform: translateX(-2%) scaleY(0.9); }
}


/* ============================================================
   WORKS SECTION — robô Spline 3D ATRÁS da pill clicável
   Fica na .works-card-wrap (a seção inteira), fora da pill
   ============================================================ */
.works-card-wrap {
  position: relative;
  isolation: isolate;
}

.works-section__spline {
  position: absolute;
  inset: 0;
  z-index: 0;                  /* atrás da pill */
  pointer-events: auto;         /* mouse interage com o robô */
  overflow: hidden;
}

.works-section__spline spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.works-section__spline-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, transparent 0%, rgba(7, 19, 22, 0.45) 70%, rgba(7, 19, 22, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 19, 22, 0.5) 0%, transparent 25%, transparent 75%, rgba(7, 19, 22, 0.6) 100%);
}

/* Pill clicável fica em primeiro plano */
.works-card-wrap .works-card {
  position: relative;
  z-index: 1;
}

/* Esconder branding "Made with Spline" */
.works-section__spline a[href*="spline.design"],
.video-scroll-hero a[href*="spline.design"] { display: none !important; }

/* ============================================================
   SPLINE HERO — DEPRECATED (substituído por video-scroll-hero)
   Mantido só pra evitar quebrar se algum estilo for referenciado
   ============================================================ */
.spline-hero {
  display: none !important;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  background: var(--color-ink);
  overflow: hidden;
  isolation: isolate;
}

/* Canvas Spline em fullscreen */
.spline-hero__viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.spline-hero__viewer spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

/* Atmosfera NOVACE: gradient teal/lima sobre o canvas */
.spline-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 12% 25%, rgba(214, 251, 0, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(0, 84, 95, 0.30), transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(7, 19, 22, 0.55) 100%);
  mix-blend-mode: screen;
}

/* Vignette pra dar foco no conteúdo */
.spline-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(7, 19, 22, 0.55) 0%,
      transparent 30%,
      transparent 70%,
      rgba(7, 19, 22, 0.85) 100%);
}

/* Overlay com texto + CTA */
.spline-hero__overlay {
  position: relative;
  z-index: 4;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 6vw, 80px);
  pointer-events: none;
}

.spline-hero__overlay > * { pointer-events: auto; }

/* TOP: brand + location */
.spline-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-offwhite);
  opacity: 0.85;
}

.spline-hero__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.4s var(--ease-liquid);
}

.spline-hero__brand:hover { opacity: 0.75; }

.spline-hero__brand-logo {
  display: block;
  width: clamp(150px, 14vw, 220px);
  height: clamp(72px, 7vw, 110px);
  background-color: var(--color-lime);
  -webkit-mask-image: url("/assets/logo-novace.png");
          mask-image: url("/assets/logo-novace.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: left center;
          mask-position: left center;
  -webkit-mask-size: contain;
          mask-size: contain;
  filter: drop-shadow(0 2px 16px rgba(214, 251, 0, 0.25));
  transition: background-color 0.4s var(--ease-liquid), filter 0.4s var(--ease-liquid);
}

.spline-hero__brand:hover .spline-hero__brand-logo {
  background-color: var(--color-offwhite);
  filter: drop-shadow(0 2px 20px rgba(236, 255, 182, 0.4));
}

/* MAIN: título central-esquerda */
.spline-hero__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
}

.spline-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.spline-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-lime);
}

.spline-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.02;
  font-weight: 400;
  color: var(--color-offwhite);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  padding-bottom: 0.06em;
  text-wrap: balance;
  overflow: visible;
}

.spline-hero__title em {
  font-style: italic;
  color: var(--color-lime);
}

.spline-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: rgba(236, 255, 182, 0.72);
  max-width: 540px;
  margin: 0 0 40px;
}

/* CTA pra descer pro hero parallax */
.spline-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--color-lime);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-lime);
  cursor: pointer;
  transition: transform 0.5s var(--ease-liquid), background 0.4s var(--ease-liquid), color 0.4s var(--ease-liquid);
  width: fit-content;
}

.spline-hero__cta:hover {
  background: transparent;
  color: var(--color-lime);
  transform: translateY(-2px);
}

.spline-hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-liquid);
}

.spline-hero__cta:hover svg {
  transform: translateY(3px);
}

/* SCROLL hint no rodapé central */
.spline-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-self: center;
  opacity: 0.7;
}

.spline-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-lime));
  transform-origin: top center;
  animation: spline-scroll-pulse 2.4s var(--ease-liquid) infinite;
}

.spline-hero__scroll-text {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--color-offwhite);
  opacity: 0.7;
}

@keyframes spline-scroll-pulse {
  0%   { transform: scaleY(0.4); opacity: 0.4; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* Esconder o branding do Spline (canto inferior direito) */
.spline-hero__viewer spline-viewer::part(logo) { display: none !important; }
.spline-hero__viewer a[href*="spline.design"] { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .spline-hero { min-height: 600px; }

  .spline-hero__atmosphere {
    background:
      radial-gradient(ellipse 100% 60% at 50% 100%, rgba(7, 19, 22, 0.85), transparent 60%),
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 84, 95, 0.45), transparent 70%);
  }

  .spline-hero__title { font-size: clamp(32px, 8.5vw, 56px); line-height: 1.05; }
  .spline-hero__sub { font-size: 14px; }
  .spline-hero__main { max-width: 100%; }

  .hide-mobile { display: none; }
}

body {
  background: var(--color-ink);
  color: var(--color-offwhite);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { all: unset; cursor: pointer; font: inherit; color: inherit; }
::selection { background: var(--color-lime); color: var(--color-ink); }

/* ====== GRAIN ====== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: var(--grain-opacity); mix-blend-mode: overlay;
}

/* ====== BG LOGO HOLOGRÁFICA (fixed, atrás de tudo) ====== */
.bg-logo {
  position: fixed;
  top: 50%; left: 50%;
  width: clamp(900px, 130vw, 1900px);
  aspect-ratio: 1856 / 2280;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 20% 30%, var(--color-offwhite) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, var(--color-teal-deep) 0%, transparent 50%),
    conic-gradient(from 0deg at 50% 50%,
      var(--color-lime),
      var(--color-offwhite) 90deg,
      var(--color-teal-deep) 180deg,
      var(--color-lime) 270deg,
      var(--color-lime));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  -webkit-mask-image: url("../assets/logo-novace.png");
          mask-image: url("../assets/logo-novace.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0;
  z-index: -1; pointer-events: none;
  filter: blur(0.5px) drop-shadow(0 0 100px rgba(214, 251, 0, 0.25));
}
.bg-logo.is-active {
  animation: bgBreath 14s ease-in-out infinite, bgShimmer 22s linear infinite;
}
@keyframes bgBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.18; }
  50%      { transform: translate(-50%, -50%) scale(1.06) rotate(1deg); opacity: 0.30; }
}
@keyframes bgShimmer {
  0%   { background-position: 0% 0%, 100% 100%, 0deg; filter: blur(0.5px) hue-rotate(0deg) drop-shadow(0 0 100px rgba(214, 251, 0, 0.25)); }
  50%  { background-position: 100% 100%, 0% 0%, 180deg; filter: blur(0.5px) hue-rotate(20deg) drop-shadow(0 0 140px rgba(214, 251, 0, 0.4)); }
  100% { background-position: 0% 0%, 100% 100%, 360deg; filter: blur(0.5px) hue-rotate(0deg) drop-shadow(0 0 100px rgba(214, 251, 0, 0.25)); }
}

/* ====== PRELOADER (gooey intro + logo reveal) ====== */
.preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--color-ink);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity 1.2s ease;
}
.preloader.is-done {
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.preloader__svg { position: absolute; width: 0; height: 0; }

.preloader__stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  filter: url(#novace-threshold);
  transition: opacity 0.9s ease;
}
.preloader__stage.is-fading { opacity: 0; }

.gooey-wrap {
  position: relative;
  width: min(94vw, 1400px);
  height: clamp(3.5rem, 9vw, 9rem);
}
.gooey {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 6rem);
  line-height: 1; letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--color-offwhite);
  font-style: italic;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  max-width: 100%;
  padding: 0 1rem;
}
.gooey--1 { opacity: 0; }
.gooey.is-lime { color: var(--color-lime); }

.preloader__logo {
  position: relative;
  width: clamp(280px, 48vw, 760px);
  aspect-ratio: 1856 / 2280;
  background:
    radial-gradient(ellipse at 20% 30%, var(--color-offwhite) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, var(--color-teal-deep) 0%, transparent 50%),
    conic-gradient(from 0deg at 50% 50%,
      var(--color-lime),
      var(--color-offwhite) 90deg,
      var(--color-teal-deep) 180deg,
      var(--color-lime) 270deg,
      var(--color-lime));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  -webkit-mask-image: url("../assets/logo-novace.png");
          mask-image: url("../assets/logo-novace.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0;
  transform: scale(0.6);
  filter: blur(0.5px) drop-shadow(0 0 80px rgba(214, 251, 0, 0.4));
  transition: opacity 1.6s var(--ease-smooth), transform 2.2s var(--ease-smooth);
  animation: bgShimmer 22s linear infinite;
}
.preloader__logo.is-revealed {
  opacity: 1;
  transform: scale(1);
}
.preloader__logo.is-fading {
  opacity: 0.18;
  transform: scale(1.6);
  transition: opacity 1.4s ease, transform 1.8s var(--ease-smooth);
}

/* ====== HERO PARALLAX 3D ====== */
.hero-parallax {
  position: relative;
  min-height: 300vh;
  padding: 8rem 0 12rem;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-parallax__logo {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(800px, 110vw, 1800px);
  aspect-ratio: 1856 / 2280;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 20% 30%, var(--color-offwhite) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, var(--color-teal-deep) 0%, transparent 50%),
    conic-gradient(from 0deg at 50% 50%,
      var(--color-lime),
      var(--color-offwhite) 90deg,
      var(--color-teal-deep) 180deg,
      var(--color-lime) 270deg,
      var(--color-lime));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  -webkit-mask-image: url("../assets/logo-novace.png");
          mask-image: url("../assets/logo-novace.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  filter: blur(0.5px) drop-shadow(0 0 120px rgba(214, 251, 0, 0.3));
  animation: bgBreath 14s ease-in-out infinite, bgShimmer 22s linear infinite;
}

.hero-parallax__header {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 1.5rem;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-parallax__rows { z-index: 1; }

/* PILL — container glass verde translúcido */
.hero-parallax__pill {
  position: relative;
  max-width: 760px;
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4.5vw, 4rem);
  background: rgba(214, 251, 0, 0.045);
  border: 1px solid rgba(214, 251, 0, 0.22);
  border-radius: clamp(36px, 5vw, 72px);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(7, 19, 22, 0.5),
    inset 0 1px 0 rgba(214, 251, 0, 0.18),
    inset 0 -1px 0 rgba(214, 251, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  isolation: isolate;
}

/* Glow lima sutil atrás da pill */
.hero-parallax__pill::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(214, 251, 0, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

.hero-parallax__index {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--color-lime);
  text-transform: uppercase;
  font-feature-settings: "tnum";
  opacity: 0.9;
}

.hero-parallax__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-offwhite);
  text-transform: none;
  margin: 0;
  text-wrap: balance;
}

.hero-parallax__title em {
  font-style: italic;
  color: var(--color-lime);
  position: relative;
  display: inline-block;
}

.hero-parallax__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 2px;
  background: var(--color-lime);
  opacity: 0.55;
}

.hero-parallax__lead {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.55;
  color: rgba(236, 255, 182, 0.82);
  margin: 0;
}

.hero-parallax__lead strong {
  color: var(--color-lime);
  font-weight: 500;
  font-style: normal;
}

.hero-parallax__signature {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(236, 255, 182, 0.5);
  text-transform: uppercase;
  border-top: 1px solid rgba(214, 251, 0, 0.22);
  padding-top: 1rem;
  margin-top: 0.4rem;
  width: fit-content;
}

.hero-parallax__rows {
  position: relative;
  display: flex; flex-direction: column;
  gap: 3rem;
  will-change: transform, opacity;
  transform-origin: top center;
  /* Estado inicial — JS controla rotateX/rotateZ/translateY/opacity */
  transform: rotateX(15deg) rotateZ(20deg) translateY(-700px);
  opacity: 0.2;
}

.hp-row {
  display: flex;
  gap: 5rem;
  will-change: transform;
}
.hp-row--reverse { flex-direction: row-reverse; }

.hp-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 30vw, 28rem);
  height: clamp(220px, 22vw, 22rem);
  border-radius: 16px;
  overflow: hidden;
  background: #0a1f24;
  display: block;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}
.hp-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hp-card__overlay {
  position: absolute; inset: 0;
  background: rgba(7, 19, 22, 0);
  pointer-events: none;
  transition: background 0.4s ease;
  z-index: 1;
}
.hp-card:hover .hp-card__overlay { background: rgba(7, 19, 22, 0.65); }
.hp-card__title {
  position: absolute;
  bottom: 1rem; left: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-offwhite);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-liquid);
  z-index: 2;
}
.hp-card:hover .hp-card__title {
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax { min-height: auto; padding: 6rem 0; }
  .hero-parallax__rows { transform: none !important; opacity: 1 !important; }
  .hp-row { transform: none !important; flex-wrap: wrap; }
}

/* ====== PRISMA HERO (legado, mantido caso volte a usar) ====== */
.prisma {
  width: 100%;
  padding: 0.5rem;
  position: relative;
  background: var(--color-ink);
}
.prisma__inner {
  position: relative;
  width: 100%; height: calc(100vh - 1rem);
  border-radius: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #0a1f24;
}
@media (min-width: 720px) {
  .prisma__inner { border-radius: 2rem; }
}
.prisma__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.prisma__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.prisma__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,19,22,0.3) 0%, transparent 30%, rgba(7,19,22,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.prisma__nav {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}
.prisma__nav-bar {
  display: flex; align-items: center;
  gap: clamp(0.75rem, 2.5vw, 3rem);
  background: var(--color-ink);
  padding: 0.65rem 1.25rem;
  border-radius: 0 0 1.25rem 1.25rem;
}
@media (min-width: 720px) {
  .prisma__nav-bar { padding: 0.75rem 2rem; border-radius: 0 0 1.75rem 1.75rem; }
}
.prisma__nav-bar a {
  font-size: clamp(0.65rem, 0.85vw, 0.85rem);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(236, 255, 182, 0.8);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.prisma__nav-bar a:hover { color: var(--color-lime); }

.prisma__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 0.5rem;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: end;
}
.prisma__headline-wrap {
  grid-column: span 12;
}
@media (min-width: 1024px) {
  .prisma__headline-wrap { grid-column: span 8; }
}
.prisma__headline {
  font-family: var(--font-display);
  font-size: clamp(20vw, 22vw, 26vw);
  line-height: 0.85; letter-spacing: -0.07em;
  font-weight: 400;
  color: var(--color-offwhite);
}
@media (min-width: 1024px) {
  .prisma__headline { font-size: clamp(15vw, 19vw, 22vw); }
}
.prisma__headline em {
  font-style: italic;
  color: var(--color-lime);
}

/* Logo no hero (substitui texto "NOVACE") */
.prisma__logo {
  display: block;
  width: 100%;
  aspect-ratio: 1856 / 2280;
  max-height: 88vh;
  background-color: var(--color-offwhite);
  -webkit-mask-image: url("../assets/logo-novace.png");
          mask-image: url("../assets/logo-novace.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: bottom left; mask-position: bottom left;
  filter: drop-shadow(0 0 60px rgba(214, 251, 0, 0.25));
  margin: 0;
}
@media (min-width: 1024px) {
  .prisma__logo {
    aspect-ratio: auto;
    height: 80vh;
    width: auto;
  }
}

.prisma__side {
  grid-column: span 12;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .prisma__side { grid-column: span 4; padding-bottom: 2.5rem; }
}
.prisma__lead {
  font-size: clamp(0.8rem, 1vw, 1.05rem);
  color: rgba(236, 255, 182, 0.78);
  line-height: 1.4;
}
.prisma__cta {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  background: var(--color-lime);
  color: var(--color-ink);
  padding: 0.3rem 0.4rem 0.3rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--fs-body-sm);
  align-self: flex-start;
  transition: gap 0.3s ease, transform 0.3s ease;
}
.prisma__cta:hover { gap: 0.8rem; transform: translateY(-2px); }
.prisma__cta-icon {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-offwhite);
  transition: transform 0.3s ease;
}
.prisma__cta:hover .prisma__cta-icon { transform: scale(1.1); }

/* ====== WORDS PULL UP ====== */
.pull-word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-delay, 0) * 80ms);
}
.pull-word.is-visible {
  opacity: 1; transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fade-delay, 0ms);
}
.fade-up.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ====== PERSPECTIVE MARQUEE ====== */
.marquee {
  background: var(--color-ink);
  padding: 5rem 0;
  perspective: 1200px;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-ink), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-ink), transparent);
}
.marquee__container {
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-28deg);
  display: flex; align-items: center;
  width: 100%;
}
.marquee__track {
  display: flex; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 1; letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--color-offwhite);
}
.marquee__sep {
  color: var(--color-lime);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-style: italic;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
}

/* ====== PASSAGE ====== */
.passage {
  position: relative;
  padding: 3rem clamp(1.5rem, 5vw, 5rem) 1rem;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s var(--ease-smooth), transform 1.4s var(--ease-smooth);
}
.passage.is-visible { opacity: 1; transform: translateY(0); }
.passage::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-lime) 50%, transparent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-smooth) 0.2s;
}
.passage.is-visible::before { transform: translateX(-50%) scaleY(1); }
.passage__label {
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.4em;
  color: var(--color-lime); opacity: 0.85;
  margin-bottom: 1.5rem;
}
.passage__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4.2vw, 4.2rem);
  line-height: 1.05; letter-spacing: 0.02em; font-weight: 400;
  text-transform: uppercase;
  max-width: 22ch; margin: 0 auto;
}
.passage__title em { font-style: normal; color: var(--color-lime); letter-spacing: 0.02em; }

/* ====== WORKS CARD (landing → trabalhos) ====== */
.works-card-wrap {
  padding: 1rem clamp(1.5rem, 5vw, 5rem) 5rem;
}

.works-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(300px, 50vh, 520px);
  border-radius: 24px;
  border: 1px solid rgba(214, 251, 0, 0.18);
  background: rgba(10, 31, 36, 0.55);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s ease, transform 0.6s var(--ease-liquid);
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(10px);
  clip-path: inset(15% 0 15% 0 round 24px);
  transition:
    opacity 1.2s var(--ease-smooth),
    transform 1.2s var(--ease-smooth),
    filter 1.2s var(--ease-smooth),
    clip-path 1.4s var(--ease-smooth),
    border-color 0.5s ease;
}
.works-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0 round 24px);
}
.works-card:hover {
  border-color: var(--color-lime);
  transform: translateY(-6px);
  transition-delay: 0s;
}

/* Background com linhas horizontais que correm no hover */
.works-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 3rem 0;
}
.works-card__line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-lime), transparent);
  opacity: 0.18;
  transform: translateX(-100%);
  transition: transform 1.4s var(--ease-smooth), opacity 0.5s ease;
}
.works-card:hover .works-card__line { opacity: 0.55; transform: translateX(0); }
.works-card:hover .works-card__line:nth-child(1) { transition-delay: 0s; }
.works-card:hover .works-card__line:nth-child(2) { transition-delay: 0.12s; }
.works-card:hover .works-card__line:nth-child(3) { transition-delay: 0.24s; }
.works-card:hover .works-card__line:nth-child(4) { transition-delay: 0.36s; }

.works-card__body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.works-card__label {
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--color-lime); opacity: 0.85;
}
.works-card__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 400;
  color: var(--color-offwhite);
}
.works-card__title em { font-style: italic; color: var(--color-lime); }
.works-card__cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem 0.8rem 1.6rem;
  border: 1px solid var(--color-lime);
  border-radius: 999px;
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--color-lime);
  transition: background 0.4s ease, color 0.4s ease, gap 0.3s ease;
}
.works-card:hover .works-card__cta {
  background: var(--color-lime);
  color: var(--color-ink);
  gap: 1.2rem;
}
.works-card__arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.works-card:hover .works-card__arrow { transform: translateX(4px); }

.case-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #0a1f24;
  border: 1px solid rgba(214, 251, 0, 0.06);
  display: block;
  isolation: isolate;
  opacity: 0;
  transform: translateY(80px) scale(0.94);
  filter: blur(14px);
  clip-path: inset(40% 0 40% 0 round 18px);
  transition:
    opacity 1.2s var(--ease-smooth),
    transform 1.2s var(--ease-smooth),
    filter 1.2s var(--ease-smooth),
    clip-path 1.4s var(--ease-smooth),
    border-color 0.6s ease;
  transition-delay: calc(var(--stagger, 0) * 140ms);
}
.case-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0 round 18px);
}
.case-card:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(214, 251, 0, 0.4);
  transition-delay: 0s;
}
.case-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  filter: grayscale(0.2) contrast(1.05) brightness(0.55);
  transition: filter 0.6s ease, transform 0.8s var(--ease-liquid);
}
.case-card:hover video { filter: grayscale(0) contrast(1.1) brightness(0.9); transform: scale(1.04); }
.case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,19,22,0.85) 100%);
  z-index: 1; pointer-events: none;
}
.case-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 2;
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
}
.case-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 0.95; letter-spacing: -0.025em; font-weight: 400;
}
.case-card__title em { font-style: italic; color: var(--color-lime); }
.case-card__meta {
  font-size: var(--fs-body-sm); text-transform: uppercase; letter-spacing: 0.2em;
  opacity: 0.65; white-space: nowrap; padding-bottom: 0.5rem;
}
.case-card__arrow {
  position: absolute; top: clamp(1.5rem, 3vw, 2.5rem); right: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-lime); color: var(--color-ink);
  display: grid; place-items: center;
  font-size: 1.4rem;
  transform: scale(0.8); opacity: 0;
  transition: transform 0.5s var(--ease-bounce), opacity 0.4s ease;
}
.case-card:hover .case-card__arrow { transform: scale(1) rotate(-45deg); opacity: 1; }

/* ====== FOUNDERS ====== */
.founders {
  padding: 4rem clamp(1.5rem, 5vw, 5rem) 8rem;
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) { .founders { grid-template-columns: 1fr; } }

.founder {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(214, 251, 0, 0.18);
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(10px);
  transition:
    opacity 1.1s var(--ease-smooth),
    transform 1.1s var(--ease-smooth),
    filter 1.1s var(--ease-smooth);
  transition-delay: calc(var(--stagger, 0) * 160ms);
}
.founder.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.founder__role {
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--color-lime); opacity: 0.7;
  margin-bottom: 1rem;
}
.founder__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1; letter-spacing: -0.03em; font-weight: 400;
  margin-bottom: 1.5rem;
}
.founder__bio {
  font-size: var(--fs-body-md); opacity: 0.78;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}
.founder__links {
  display: flex; gap: 1.5rem;
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.founder__links a {
  color: var(--color-lime); opacity: 0.85;
  padding-bottom: 0.2rem; border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.founder__links a:hover { border-color: currentColor; opacity: 1; }

/* ====== CTA + CONTACT ====== */
.cta {
  text-align: center;
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem) 3rem;
  border-top: 1px solid rgba(214, 251, 0, 0.08);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 400;
  margin-bottom: 2.5rem;
}
.cta__title em { font-style: italic; color: var(--color-lime); }

.contact__channels {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px; margin: 0 auto;
}
@media (max-width: 600px) { .contact__channels { grid-template-columns: 1fr; } }

/* Channel card consolidado (2 pills com WhatsApp+Instagram cada) */
.contact__channels--two {
  max-width: 880px;
  gap: 1.5rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem 2.2rem;
  background: rgba(214, 251, 0, 0.04);
  border: 1px solid rgba(214, 251, 0, 0.18);
  border-radius: clamp(24px, 2.5vw, 32px);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 0.5s var(--ease-liquid), background 0.5s var(--ease-liquid);
}

.channel-card:hover {
  background: rgba(214, 251, 0, 0.07);
  border-color: rgba(214, 251, 0, 0.35);
}

.channel-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--color-offwhite);
  font-style: italic;
  margin-bottom: -0.2rem;
}

.channel-card__role {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-lime);
  opacity: 0.85;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(214, 251, 0, 0.18);
}

.channel-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.channel-card__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(214, 251, 0, 0.12);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-lime);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-liquid), border-color 0.3s var(--ease-liquid);
}

.channel-card__link:last-child { border-bottom: 0; }

.channel-card__link:hover {
  color: var(--color-offwhite);
  border-color: rgba(214, 251, 0, 0.35);
}

.channel-card__detail {
  font-family: var(--font-body);
  color: rgba(236, 255, 182, 0.62);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media (max-width: 600px) {
  .contact__channels--two { grid-template-columns: 1fr; }
  .channel-card { padding: 1.5rem 1.5rem; }
}

.channel {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(214, 251, 0, 0.18);
  border-radius: 14px;
  text-align: left;
  position: relative;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.channel:hover {
  border-color: var(--color-lime);
  background: rgba(214, 251, 0, 0.04);
  transform: translateY(-3px);
}
.channel__who {
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.18em;
  opacity: 0.6;
}
.channel__where {
  font-size: var(--fs-body-md);
  color: var(--color-lime);
}
.channel__arrow {
  position: absolute; top: 50%; right: 1.5rem;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-lime);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
}
.channel:hover .channel__arrow { opacity: 1; transform: translateY(-50%) translateX(4px); }

/* ====== FOOTER ====== */
.footer {
  padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid rgba(214, 251, 0, 0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: var(--fs-body-sm);
  text-transform: uppercase; letter-spacing: 0.18em;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .case-card, .founder, .passage, .pull-water, .fade-up { opacity: 1; transform: none; filter: none; clip-path: none; }
  .preloader { display: none; }
}

/* ============================================================
   MOBILE OPTIMIZATIONS — refinos pra <=768px
   ============================================================ */
@media (max-width: 768px) {
  /* Reduzir padding das seções */
  .passage { padding: 2rem 1rem 0.5rem; }
  .cta { padding: 3rem 1rem 2.5rem; }
  .works-card-wrap { padding: 0.5rem 1rem 3rem; }
  .footer { padding: 2rem 1rem; font-size: 9px; }

  /* Hero parallax — pill mais compacta */
  .hero-parallax__header {
    padding: 1.5rem 1rem 1rem;
  }
  .hero-parallax__pill {
    padding: 1.5rem 1.4rem;
    border-radius: clamp(28px, 4vw, 40px);
    gap: 0.9rem;
  }
  .hero-parallax__title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
  .hero-parallax__lead {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* Marquees menores */
  .areas-marquee {
    height: clamp(54px, 7vh, 70px);
  }
  .areas-marquee__item,
  .areas-marquee__sep {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }
  .video-scroll-hero__marquee {
    height: clamp(54px, 7vh, 70px);
  }
  .video-scroll-hero__marquee .marquee__item,
  .video-scroll-hero__marquee .marquee__sep {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }

  /* Logo do hero menor no mobile */
  .video-scroll-hero__brand-logo {
    width: clamp(180px, 50vw, 260px);
    height: clamp(90px, 24vw, 130px);
  }

  /* Title CTA menor */
  .cta__title {
    font-size: clamp(2.2rem, 11vw, 4rem);
    margin-bottom: 2rem;
  }

  /* Channel cards mais compactos */
  .channel-card {
    padding: 1.3rem 1.4rem;
    gap: 0.9rem;
  }
  .channel-card__name { font-size: 1.4rem; }
  .channel-card__role { font-size: 9px; letter-spacing: 0.22em; }
  .channel-card__link { font-size: 0.85rem; padding: 0.5rem 0; }

  /* Spline robot ocupa menos vertical */
  .works-section__spline { opacity: 0.55; }

  /* Lang toggle mais discreto no mobile */
  .lang-toggle {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 9px;
  }
  .lang-toggle__btn { padding: 3px 6px; }
}

/* Mobile pequeno (até 480px) — ajustes finos */
@media (max-width: 480px) {
  .hero-parallax__title { font-size: clamp(1.5rem, 7.5vw, 2.1rem); }
  .hero-parallax__pill { padding: 1.2rem 1.1rem; }
  .video-scroll-hero__title { font-size: clamp(28px, 9vw, 44px); }
  .areas-marquee__item,
  .areas-marquee__sep,
  .video-scroll-hero__marquee .marquee__item,
  .video-scroll-hero__marquee .marquee__sep { font-size: 1rem; }
  .channel-card { padding: 1.1rem 1.2rem; }
}
