/* ============================================
   BEE NERD — SITE v1.0
   Hero Section — Pollen → Gold
   ============================================ */

/* --- IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Primárias */
  --honey-gold: #F5C518;
  --bee-amber: #E8A200;
  --hive-black: #0F0F0F;
  --carbon: #1A1A1A;

  /* Secundárias */
  --sting-orange: #FF6B2B;
  --electric-pollen: #C8FF00;
  --digital-mint: #00D4AA;

  /* Neutros */
  --wax-white: #F5F5F0;
  --smoke: #9A9A8E;
  --deep-charcoal: #2C2C2C;
  --dark-comb: #3D3D35;

  /* Gradientes */
  --grad-pollen-gold: linear-gradient(135deg, #C8FF00 0%, #F5C518 100%);
  --grad-honey-sting: linear-gradient(to bottom, var(--honey-gold) 0%, var(--sting-orange) 100%);

  /* Tipografia */
  --font-primary: 'Plus Jakarta Sans', sans-serif;

  /* Escala de tipo */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 80px;

  /* Espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Bordas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 40px rgba(245, 197, 24, 0.5);
}

/* ============================================
   SCROLLBAR CUSTOMIZADA
   Trilha escura + cursor em ouro de mel, visível em ambas as dobras
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--carbon);
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: var(--honey-gold);
  border-radius: 0;
  border: 2px solid var(--carbon);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bee-amber);
}

::-webkit-scrollbar-corner {
  background: var(--carbon);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--honey-gold) var(--carbon);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
}

body {
  background: var(--hive-black);
  color: var(--wax-white);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden !important;
  height: 100% !important;
}

main {
  position: relative;
  z-index: 2;
  background: transparent;
}

:where(a[href], button, [role="button"], .btn-hero-primary, .hamburger-btn, .hero-scroll-indicator, .floating-btn),
:where(a[href], button, [role="button"], .btn-hero-primary, .hamburger-btn, .hero-scroll-indicator, .floating-btn) *,
:where(a[href], button, [role="button"], .btn-hero-primary, .hamburger-btn, .hero-scroll-indicator, .floating-btn)::before,
:where(a[href], button, [role="button"], .btn-hero-primary, .hamburger-btn, .hero-scroll-indicator, .floating-btn)::after {
  cursor: pointer;
}

:where(button:disabled, .hero-scroll-indicator:disabled),
:where(button:disabled, .hero-scroll-indicator:disabled) * {
  cursor: default;
}

/* Lenis smooth scroll */
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;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-5) 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  will-change: transform;
}

.site-header.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.site-header.on-orange .nav-logo-svg {
  fill: var(--hive-black) !important;
}

.site-header.on-orange .nav-brand-text {
  color: var(--hive-black) !important;
}

.site-header.on-orange .hamburger-line {
  background: var(--hive-black) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Logo na navbar */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-20px);
}

.nav-logo-svg {
  width: 43.2px;
  height: 32.8px;
  fill: var(--hive-black);
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.site-header.on-hero .nav-logo-svg {
  fill: var(--hive-black);
}

.site-header:not(.on-hero) .nav-logo-svg {
  fill: var(--honey-gold);
}

.nav-brand-text {
  font-size: calc(var(--text-xl) * 0.8);
  letter-spacing: -0.025em;
  color: var(--hive-black);
  transition: color 0.3s ease;
  line-height: 1;
}

.site-header:not(.on-hero) .nav-brand-text {
  color: var(--honey-gold);
}

.nav-brand-text .bee {
  font-weight: 500;
}

.nav-brand-text .nerd {
  font-weight: 700;
}

/* Marca inline no meio do texto */
.text-logo {
  font-family: var(--font-primary);
  color: var(--honey-gold);
  letter-spacing: -0.02em;
}

.text-logo .bee {
  font-weight: 500;
}

.text-logo .nerd {
  font-weight: 700;
}

/* Hamburger Button */
.hamburger-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  opacity: 0;
  transform: translateY(-20px);
  position: relative;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.1) translateY(-20px);
}

/* quando não animado ainda */
.hamburger-btn.visible {
  transform: translateY(0);
}

.hamburger-btn.visible:hover {
  transform: scale(1.05) translateY(0);
}

.hamburger-line {
  display: block;
  height: 2px;
  border-radius: 0;
  background: var(--hive-black);
  transition: width 0.3s ease, background 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.hamburger-line:nth-child(1) {
  width: 28px;
}

.hamburger-line:nth-child(2) {
  width: 20px;
}

.hamburger-line:nth-child(3) {
  width: 14px;
}

.hamburger-btn:hover .hamburger-line:nth-child(1) {
  width: 28px;
}

.hamburger-btn:hover .hamburger-line:nth-child(2) {
  width: 28px;
}

.hamburger-btn:hover .hamburger-line:nth-child(3) {
  width: 28px;
}

.site-header:not(.on-hero) .hamburger-line {
  background: var(--honey-gold);
}

/* Estado aberto do menu (cross) */
.hamburger-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 28px;
}

.hamburger-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 28px;
}

.hamburger-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 28px;
}

/* ============================================
   HERO SECTION — Pollen → Gold
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-pollen-gold);
}

.hero-bg-video,
.hero-bg-image,
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;

  mix-blend-mode: multiply;
}

.hero-bg-video {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero-bg-canvas {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Ruído de textura sutil */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Glow radial decorativo no canto superior direito */
.hero-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Orbes decorativos */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(232, 162, 0, 0.35) 0%, transparent 70%);
  filter: blur(40px);
}

.hero-orb--2 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 20%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* Linhas decorativas da grade (inspiração editorial) */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0; /* Começa invisível para evitar piscada antes do JS carregar */
}

.hero-grid-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(15, 15, 15, 0.08);
}

.hero-grid-lines::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(15, 15, 15, 0.08);
}

/* Conteúdo da Hero */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(32px);
}

.hero-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* Frase animada no scroll da Hero */
.hero-animated-phrase {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap para diminuir espaçamento */
  z-index: 10;
  pointer-events: none;
}

.phrase-line {
  overflow: hidden;
  line-height: 1.05; /* Linha mais apertada para agrupar */
  padding-bottom: 0.2em; /* Espaço extra na máscara inferior para não cortar o cedilha */
  margin-bottom: -0.2em; /* Compensa o padding para manter o layout no lugar */
}

.phrase-text {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: var(--hive-black);
  letter-spacing: -0.03em;
  transform: translateY(110%);
  will-change: transform;
}

.hero-right-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-float-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: heroImgFloat 6s ease-in-out infinite;
}

.hero-scroll-img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity;
  opacity: 0;
  /* Começa oculto para evitar flash antes da animação GSAP */
}

.hero-interactive-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  will-change: transform;
}

.hero-interactive-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes heroImgFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .hero-main-grid {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
    align-items: center;
    gap: var(--space-8);
  }

  .hero-left-col {
    align-items: flex-start;
  }

  .hero-roulette-wrapper {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

/* Subtag acima do título */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.6);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(20px);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hive-black);
  opacity: 0.4;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.4);
  }
}

/* Logo principal na hero (grande) */
.hero-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(30px);
}

.hero-logo-svg {
  width: auto;
  height: clamp(44.8px, 6.4vw, 76.8px);
  fill: var(--hive-black);
  flex-shrink: 0;
}

.hero-brand-title {
  font-size: clamp(41.6px, 6.8vw, 86.4px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--hive-black);
  user-select: none;
}

.hero-brand-title .bee {
  font-weight: 500;
}

.hero-brand-title .nerd {
  font-weight: 700;
}

/* Área da roleta — Think. Create. Grow. */
.hero-roulette-wrapper {
  margin-bottom: var(--space-8);
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  flex-wrap: wrap;
}

.roulette-word-clip {
  overflow: hidden;
  display: inline-block;
  line-height: 1.1;
}

.roulette-word {
  display: inline-block;
  font-size: clamp(22.4px, 3.6vw, 46.4px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--hive-black);
  transform-origin: bottom center;
  will-change: transform, opacity;
  opacity: 0;
  /* Começa fora — as animações GSAP vão definir o estado inicial */
}

.roulette-word.dot {
  color: rgba(15, 15, 15, 0.35);
}

/* Ações da hero */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(24px);
}

/* Botão primário estilo hero */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--hive-black);
  background: var(--hive-black);
  color: var(--electric-pollen);
  padding: 15px var(--space-8);
  border: 2px solid var(--hive-black);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--electric-pollen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-hero-primary:hover::before {
  transform: scaleX(1);
}

.btn-hero-primary:hover {
  color: var(--hive-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 15, 15, 0.25);
}

.btn-hero-primary span {
  position: relative;
  z-index: 1;
}

.btn-hero-primary .whatsapp-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .whatsapp-icon {
  transform: scale(1.15) rotate(-10deg);
}

/* Indicador de scroll no canto inferior */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;

  /* Reset button styles */
  background: transparent;
  border: none;
  min-width: 96px;
  min-height: 96px;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  pointer-events: auto;
  touch-action: manipulation;

  /* Transition for hover micro-animation */
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.hero-scroll-indicator:disabled,
.hero-scroll-indicator.is-inactive {
  cursor: default;
  pointer-events: none;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-scroll-indicator:hover {
  transform: translateX(-50%) translateY(4px);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(15, 15, 15, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hive-black);
  opacity: 0.5;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.9;
  }

  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
}

.scroll-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.4);
}

/* Canvas mobile da hero: oculto por padrão no desktop */
.hero-mobile-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   DECORAÇÃO: partículas hexagonais (pseudo)
   ============================================ */
.hero-hex-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.hero-hex-deco svg {
  fill: rgba(15, 15, 15, 0.07);
}

.hero-hex-deco--tr {
  top: 8%;
  right: 6%;
  width: 80px;
}

.hero-hex-deco--bl {
  bottom: 12%;
  left: 5%;
  width: 55px;
  transform: rotate(30deg);
}

/* Loader do site */
.hero-loader {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

/* Visita recorrente: oculta o vídeo de intro e centraliza o loader antes do primeiro paint
   (classe adicionada por script síncrono no <head> antes do browser renderizar) */
html.skip-intro .hero-bg-video {
  display: none !important;
}

html.skip-intro .hero-loader {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

/* Visita recorrente: loader centralizado na tela (sem poster do vídeo de intro) */
.hero-loader--center {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.hero-loader .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(15, 15, 15, 0.15);
  border-top: 3px solid var(--hive-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   GRADE DE HEXÁGONOS — TRANSIÇÃO DE SCROLL
   ============================================ */
.hex_grid {
  z-index: 10;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hex-cell {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.hex-cell svg {
  width: 100%;
  height: 100%;
}

.hex-cell svg polygon {
  fill: var(--hive-black);
  stroke: var(--hive-black);
  stroke-width: 1.5px;
}

/* ============================================
   SEGUNDA DOBRA — About / Laboratório
   ============================================ */
.spacer-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: var(--hive-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  --about-gold: #D6A400;
}

.about-bg-tech {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: blur(6px);
  opacity: 0.65;
}

.about-bg-tech-svg {
  width: 100%;
  height: 100%;
}

.spacer-bg-logo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45vw;
  max-width: 500px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.spacer-bg-logo svg {
  width: 100%;
  height: auto;
  fill: var(--honey-gold);
}

.about-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 120px);
}

.about-grid,
.spacer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  width: 100%;
}

/* Segunda dobra simplificada: coluna única centralizada */
.about-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4vh, 48px);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.about-center .about-headline {
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.1;
}

.about-center .about-headline-line {
  text-align: center;
}

.about-center .about-desc {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.6;
  opacity: 0.88;
  max-width: 46ch;
  margin: 0 auto;
}

.about-left,
.spacer-left {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
  color: var(--smoke);
  text-align: left;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--about-gold);
}

.about-label-hex {
  width: 14px;
  height: auto;
  color: var(--about-gold);
  animation: aboutLabelHexPulse 3.2s ease-in-out infinite;
}

.about-section-label {
  margin-bottom: clamp(20px, 3vh, 32px);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0;
}

.about-section-label .about-brand-tag {
  font-size: var(--text-xs);
}

.about-brand-name .bee {
  font-weight: 500;
  color: var(--honey-gold);
}

.about-brand-name .nerd {
  font-weight: 600;
  color: var(--honey-gold);
}

.about-brand-name .lab {
  font-weight: 400;
  color: var(--dark-comb);
}

@keyframes aboutLabelHexPulse {
  0%, 100% { opacity: 0.55; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(12deg); }
}

.about-headline,
.spacer-left .section-title {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: transparent;
  margin: 0;
}

.about-headline-line {
  display: block;
}

.about-headline-line--white {
  color: var(--wax-white);
}

.about-headline-line--gold {
  background: var(--grad-honey-sting);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.06em;
}

.about-desc,
.spacer-left .section-desc {
  font-size: clamp(var(--text-base), 1.35vw, var(--text-lg));
  font-weight: 400;
  line-height: 1.65;
  color: var(--smoke);
  opacity: 0.8;
  max-width: 38ch;
  margin: 0;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: var(--space-2);
}

.about-pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-pillar:hover {
  transform: translateY(-3px);
}

.about-pillar-icon {
  width: 22px;
  height: 22px;
  color: var(--about-gold);
  flex-shrink: 0;
}

.about-pillar-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wax-white);
  line-height: 1.2;
}

.about-pillar-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--smoke);
  opacity: 0.75;
}

.about-right,
.spacer-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-lab {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  overflow: visible;
}

.about-lab-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.about-lab-ring {
  position: absolute;
  width: 100%;
  height: auto;
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
}

.about-lab-ring--1 { transform: scale(1); animation: aboutRingBreathe 9s ease-in-out infinite; }
.about-lab-ring--2 { transform: scale(1.1); animation: aboutRingBreathe 11s ease-in-out infinite 0.8s; }

@keyframes aboutRingBreathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.08; }
}


.about-lab-core,
.spacer-image-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  aspect-ratio: 4 / 5;
  transform: translate3d(-50%, -50%, 0);
  z-index: 4;
  will-change: transform;
  opacity: 0;
  filter:
    drop-shadow(0 0 24px rgba(214, 164, 0, 0.13))
    drop-shadow(0 0 40px rgba(214, 164, 0, 0.06));
}

.about-lab-video {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  background: var(--carbon);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.about-lab-energy {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
}

.about-lab-energy path {
  stroke: var(--about-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(214, 164, 0, 0.45));
  stroke-dasharray: 72 280;
  animation: aboutEnergyFlow 10s linear infinite;
}

.about-lab-energy--2 path {
  animation-duration: 13s;
  animation-delay: -3.5s;
}

@keyframes aboutEnergyFlow {
  to { stroke-dashoffset: -400; }
}

.about-lab-sat {
  position: absolute;
  width: clamp(52px, 12vw, 68px);
  z-index: 5;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  animation: aboutSatFloat 6s ease-in-out infinite;
}

.about-lab-sat--1 { top: 0%; right: 2%; animation-delay: 0s; }
.about-lab-sat--2 { top: 38%; left: -4%; animation-delay: -1.5s; }
.about-lab-sat--3 { bottom: 4%; right: -2%; animation-delay: -3s; }

@keyframes aboutSatFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.about-lab-sat-hex {
  width: 100%;
  height: auto;
  display: block;
}

.about-lab-sat-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--about-gold);
}

.spacer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.5s ease;
}

video.spacer-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

video.spacer-img.video-loaded {
  opacity: 1;
}

.spacer-img-fallback {
  opacity: 1;
}

.spacer-img-fallback.video-loaded {
  opacity: 0;
}

@media (max-width: 1200px) {
  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .about-grid,
  .spacer-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-lab {
    width: min(100%, 360px);
  }
}

.third-section {
  min-height: 100vh;
  height: auto;
  background: transparent;
  position: relative;
  width: 100%;
  z-index: 20;
  overflow: visible;
  /* Permitir que o conteúdo sticky funcione corretamente no mobile */
  display: flex;
  flex-direction: column;
}

.third-bg-fixed-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--honey-gold) 0%, var(--sting-orange) 100%);
}

.third-bg-canvas,
.third-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: darken;
  filter: contrast(1.35) brightness(1.02) saturate(1.08);
}

.third-bg-canvas {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.third-bg-canvas.loaded {
  opacity: 0.42;
}

.third-bg-image {
  opacity: 0.42;
  transition: opacity 0.5s ease;
}

.third-bg-image.loaded {
  opacity: 0;
}

@media (min-width: 768px) {
  .third-section {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .third-section-wrapper {
    /* margin-top negativo calculado em app.js: alinha a entrada da 3ª dobra com yPercent < 30 do .spacer-bg-logo */
    position: relative;
    z-index: 20;
  }

  .third-bg-fixed-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
  }

  .services-wrapper {
    margin-top: clamp(100px, 12vh, 130px) !important;
    padding-bottom: 80px !important;
    /* Espaço para o marquee absoluto na base */
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .services-grid {
    width: 100%;
  }

  .third-marquee-container {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding-bottom: clamp(12px, 1.8vh, 16px) !important;
    padding-top: clamp(12px, 1.8vh, 16px) !important;
    z-index: 10 !important;
  }
}

/* ============================================
   SEÇÃO DE SERVIÇOS — GRID & STACKING CARDS
   ============================================ */
.services-shell {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(32px, 6vw, 120px);
  padding-right: clamp(32px, 6vw, 120px);
}

.services-wrapper {
  margin-top: clamp(140px, 18vh, 180px);
  padding-bottom: clamp(120px, 20vh, 200px);
  /* Espaço negativo premium no final */
  position: relative;
  z-index: 2;
  flex: 1;
  /* Ocupa o espaço disponível empurrando o marquee para baixo */
}

.services-label {
  margin-bottom: clamp(20px, 3vh, 32px);
  color: var(--hive-black);
}

.services-label .about-label-hex {
  color: var(--hive-black);
}

.services-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-column-gap: var(--space-12);
  grid-row-gap: var(--space-12);
}

/* Coluna Esquerda - Sticky */
.services-left-col {
  padding-right: var(--space-6);
}

.services-sticky-content {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Ícone de estrela removido */

.services-main-title {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--hive-black);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-12);
}

.services-agency-signature {
  width: 100%;
  margin-top: var(--space-6);
}

.signature-line {
  height: 1px;
  background: rgba(15, 15, 15, 0.15);
  width: 120px;
  margin-bottom: var(--space-4);
}

.signature-details {
  display: flex;
  flex-direction: column;
}

.signature-name {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--hive-black);
  text-transform: none;
}

.signature-name .bee {
  font-weight: 500;
}

.signature-name .nerd {
  font-weight: 600;
}

.signature-name .lab {
  font-weight: 400;
  opacity: 0.55;
}

.signature-tag {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(15, 15, 15, 0.6);
}

/* Coluna Direita - Stacking Cards */
.services-right-col {
  position: relative;
}

.services-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
  width: 100%;
}

/* Wrapper que contêm cada card (Desktop) */
.services-card-wrapper {
  position: relative;
  width: 100%;
  will-change: transform, opacity;
}

/* Garante que o card subsequente empilhe na frente do anterior */
.services-card-wrapper:nth-child(1) {
  z-index: 10;
}

.services-card-wrapper:nth-child(2) {
  z-index: 20;
}

.services-card-wrapper:nth-child(3) {
  z-index: 30;
}

.services-card-wrapper:nth-child(4) {
  z-index: 40;
}

.services-card-wrapper:nth-child(5) {
  z-index: 50;
}

/* Card Real - Sólido e Reto */
.services-card {
  background: var(--hive-black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--honey-gold);
  /* Detalhe premium de colmeia */
  border-radius: 0;
  padding: var(--space-8) var(--space-10);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.services-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 24, 0.3);
}

.card-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 800;
  color: var(--wax-white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  word-spacing: 0.2em;
}

.card-number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 197, 24, 0.3);
  letter-spacing: -0.02em;
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}

.services-card:hover .card-number {
  -webkit-text-stroke: 1.5px var(--honey-gold);
  color: var(--honey-gold);
}

.card-desc {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.7);
  margin-bottom: var(--space-6);
}

.card-footer {
  display: flex;
  justify-content: flex-start;
}

.card-tag {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--honey-gold);
  background: rgba(245, 197, 24, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 197, 24, 0.15);
}

/* Breakpoint Responsivo: Tablets e Celulares (< 992px) */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-row-gap: var(--space-10);
  }

  .services-left-col {
    padding-right: 0;
  }

  .services-sticky-content {
    position: static;
  }

  .services-main-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
  }

  .services-agency-signature {
    display: none;
    /* Simplificado no mobile para focar nos cards */
  }

  .services-cards-list {
    display: flex;
    flex-direction: column;
  }

  .services-card-wrapper {
    position: static;
    /* Desativa empilhamento sticky em telas menores */
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    padding-top: 0;
    margin-bottom: var(--space-4);
  }

  .services-card {
    min-height: auto;
    padding: var(--space-6) var(--space-6);
  }
}

.third-section-wrapper {
  position: relative;
  width: 100%;
  z-index: 20;
  background: linear-gradient(135deg, var(--honey-gold) 0%, var(--sting-orange) 100%);
  clip-path: inset(0px);
}

@media (min-width: 768px) {
  .third-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--sting-orange) 100%);
    z-index: 30;
    pointer-events: none;
  }
}

.third-marquee-container {
  width: 100%;
  overflow: hidden;
  padding-bottom: clamp(12px, 1.8vh, 16px);
  padding-top: clamp(12px, 1.8vh, 16px);
  position: relative;
  white-space: nowrap;
  background: var(--honey-gold);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
}

.third-marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.third-marquee-track span {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2.2vh, 22px);
  font-weight: 700;
  line-height: 1;
  color: var(--hive-black);
  padding-right: 0 !important;
  /* Espaçamento controlado via HTML para perfeita simetria */
  display: inline-block;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  /* Apara a caixa de linha à altura das maiúsculas para padding óptico simétrico */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: visible;
  background: var(--grad-pollen-gold);
  border-top: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-10) 0;
}

.site-footer .container {
  width: 100%;
}

.footer-shell {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

/* Aramado hexagonal — sobrepõe o topo da barra sem aumentar a altura do footer */
.footer-honeycomb-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: clamp(72px, 11vw, 112px);
  transform: translate(-50%, -62%);
  pointer-events: none;
  z-index: 3;
}

.honeycomb-grid--footer-base {
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse 80% 120% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 120% at 50% 0%, #000 0%, transparent 72%);
}

/* Linhas dos hexágonos em Deep Charcoal — só contorno, sem preenchimento */
.honeycomb-grid--footer-center-shadow {
  opacity: 0.78;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="55.4256" height="96" viewBox="0 0 55.4256 96"><path d="M0,8.0 L13.86,0 M0,24.0 L0,8.0 M0,24.0 L13.86,32.0 M0,56.0 L13.86,48.0 M0,72.0 L0,56.0 M0,72.0 L13.86,80.0 M13.86,0 L27.71,8.0 M13.86,32.0 L27.71,24.0 M13.86,48.0 L13.86,32.0 M13.86,48.0 L27.71,56.0 M13.86,80.0 L27.71,72.0 M13.86,96 L13.86,80.0 M27.71,8.0 L41.57,0 M27.71,24.0 L27.71,8.0 M27.71,24.0 L41.57,32.0 M27.71,56.0 L41.57,48.0 M27.71,72.0 L27.71,56.0 M27.71,72.0 L41.57,80.0 M41.57,0 L55.43,8.0 M41.57,32.0 L55.43,24.0 M41.57,48.0 L41.57,32.0 M41.57,48.0 L55.43,56.0 M41.57,80.0 L55.43,72.0 M41.57,96 L41.57,80.0 M55.43,24.0 L55.43,8.0 M55.43,72.0 L55.43,56.0" fill="none" stroke="%230F0F0F" stroke-width="1.2" shape-rendering="geometricPrecision"/></svg>');
  -webkit-mask-image: radial-gradient(ellipse 80% 120% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 120% at 50% 0%, #000 0%, transparent 72%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo-svg {
  width: 40px;
  height: auto;
  fill: var(--hive-black);
  flex-shrink: 0;
}

.footer-brand-text {
  font-size: var(--text-base);
  letter-spacing: -0.015em;
  color: var(--hive-black);
}

.footer-brand-text .bee {
  font-weight: 600;
}

.footer-brand-text .nerd {
  font-weight: 800;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--hive-black);
  letter-spacing: 0.04em;
  opacity: 1;
}

.footer-copy strong {
  color: var(--hive-black);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--smoke);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--honey-gold);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .hero-roulette-wrapper {
    gap: 0.2em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-brand-title {
    font-size: clamp(33.6px, 9.6vw, 57.6px);
  }

  .hero-logo-svg {
    height: clamp(33.6px, 8vw, 56px);
  }
}

/* ============================================
   RESPONSIVIDADE MOBILE E CORREÇÕES (portrait <=767px + celular deitado)
   ============================================ */
@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {

  /* Ocultar cursor dot personalizado em telas mobile/touch */
  #cursor-dot {
    display: none !important;
  }

  /* Ajustar espaçamento do container no mobile para maior área útil */
  .container {
    padding: 0 var(--space-5) !important;
  }

  /* Resetar Hero para fluxo de rolagem normal (sem crop e sem pinning) */
  .hero-section {
    height: auto !important;
    min-height: 100vh;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    padding-bottom: var(--space-16) !important;
    transform: none !important;
  }

  /* Sobrepor conteúdo da Hero por cima da imagem pc_mel.png no mobile */
  .hero-main-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    min-height: 80vh;
    position: relative !important;
  }

  .hero-bg-video,
  .hero-bg-canvas {
    display: none !important;
  }

  .hero-loader {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Canvas mobile da hero: visível e com blend-mode multiply */
  .hero-mobile-canvas {
    display: block !important;
    mix-blend-mode: multiply;
  }

  .hero-left-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 70px !important;
    height: 50vh !important;
    box-sizing: border-box !important;
    align-self: flex-start !important;
    transform: none !important;
  }

  .hero-right-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
    z-index: 1 !important;
    opacity: 1 !important;
    /* Sem opacidade sutil (cor total) */
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    /* Alinhada ao bottom */
    align-self: stretch !important;
    /* Estende para a altura total da grade */
  }

  .hero-interactive-img-wrapper {
    max-width: 320px !important;
    margin-top: 0 !important;
    margin-bottom: -10px !important;
    /* Rente ao bottom */
  }

  /* Ocultar indicador de scroll (mouse/scroll wheel) no mobile */
  .hero-scroll-indicator {
    display: none !important;
  }

  .hero-bg-video,
  .hero-bg-image {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    object-fit: cover !important;
  }

  /* Ocultar grid de transição hexagonal no mobile */
  .hex_grid {
    display: none !important;
  }

  /* Resetar Segunda Dobra para fluxo de rolagem normal */
  .spacer-section {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding-top: var(--space-20) !important;
    padding-bottom: var(--space-4) !important;
    overflow: visible !important;
  }

  .about-shell,
  .services-shell {
    padding-inline: var(--space-5) !important;
  }

  .about-grid,
  .spacer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-10) !important;
  }

  .about-right,
  .spacer-right {
    order: 0;
    width: 100% !important;
  }

  .about-headline,
  .spacer-left .section-title {
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1.05 !important;
  }

  .about-desc,
  .spacer-left .section-desc {
    max-width: none !important;
  }

  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .about-lab {
    width: min(100%, 300px) !important;
  }

  .about-lab-energy {
    display: none !important;
  }

  .about-lab-ring--2,
  .about-lab-sat--3 {
    display: none !important;
  }

  .about-lab-core,
  .spacer-image-container {
    position: absolute !important;
    transform: translate(-50%, -50%) !important;
    opacity: 1 !important;
  }

  /* Ocultar logo gigante de fundo (para evitar overlap com o texto) */
  .spacer-bg-logo {
    display: none !important;
  }

  /* Terceira dobra em fluxo mobile: sem pin, com fundo e marquee controlados */
  .third-section {
    min-height: auto !important;
    padding: var(--space-20) 0 0 !important;
    overflow: hidden !important;
  }

  .third-bg-canvas,
  .third-bg-image {
    inset: auto auto 0 50%;
    width: 250vw;
    max-width: none;
    height: auto;
    min-height: 0;
    transform: translateX(-50%);
    object-fit: contain;
    filter: contrast(1.45) brightness(0.98) saturate(1.05);
  }

  .third-bg-canvas.loaded {
    opacity: 0.26;
  }

  .third-bg-image {
    opacity: 0.26;
  }

  .third-bg-image.loaded {
    opacity: 0;
  }

  .services-wrapper {
    margin-top: 0 !important;
    padding-top: var(--space-8) !important;
    padding-bottom: clamp(112px, 30vw, 136px) !important;
  }

  .services-grid {
    grid-row-gap: var(--space-8) !important;
  }

  .services-main-title {
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1.05 !important;
    margin-bottom: var(--space-6) !important;
  }

  .services-label {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: var(--space-4) !important;
    color: var(--hive-black) !important;
  }

  .services-label .about-label-hex {
    color: var(--hive-black) !important;
  }

  .services-card {
    padding: var(--space-5) !important;
    min-height: 0 !important;
  }

  .card-title {
    font-size: 15px !important;
  }

  .card-desc {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: var(--space-5) !important;
  }

  .third-marquee-container {
    position: relative !important;
    z-index: 3 !important;
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
    margin-top: 0 !important;
  }

  .third-marquee-track span {
    font-size: clamp(14px, 4.2vw, 18px) !important;
    line-height: 1 !important;
  }

  .third-bg-fixed-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .site-footer {
    position: fixed !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: var(--space-8) 0 !important;
  }

  .footer-honeycomb-bg {
    height: clamp(56px, 14vw, 88px);
    transform: translate(-50%, -58%);
  }

  .honeycomb-grid--footer-center-shadow {
    opacity: 0.7;
  }

  .fourth-section {
    min-height: 100vh !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: calc(var(--space-20) + var(--space-8)) 0 clamp(112px, 30vw, 136px) !important;
    overflow: visible !important;
  }

  /* Estilização moderna do Header/Navbar no mobile (Glassmorphism + Borda Sutil) */
  .site-header:not(.on-hero) {
    background: rgba(15, 15, 15, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(245, 197, 24, 0.15) !important;
  }
}

.site-header.on-orange {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .site-header.on-orange {
    background: rgba(245, 197, 24, 0.72) !important;
    backdrop-filter: blur(12px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
    border-bottom: 1px solid rgba(15, 15, 15, 0.12) !important;
  }
}

/* ============================================
   FLOATING ACTIONS (WhatsApp & Scroll to Top)
   ============================================ */
.floating-actions {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  gap: var(--space-3);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
  visibility: hidden;
}

.floating-actions.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.floating-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  /* Square buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
  text-decoration: none;
  outline: none;
}

.floating-btn svg {
  transition: transform 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
}

/* Color themes based on section background contrast */
.floating-actions.on-yellow .floating-btn {
  color: var(--hive-black);
}

.floating-actions.on-yellow .floating-btn:hover {
  background: var(--hive-black);
  color: var(--honey-gold);
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.4);
}

.floating-actions.on-black .floating-btn {
  color: var(--honey-gold);
}

.floating-actions.on-black .floating-btn:hover {
  background: var(--honey-gold);
  color: var(--hive-black);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
}

.floating-actions.on-footer .btn-scroll-top {
  color: var(--hive-black) !important;
}

.floating-actions.on-footer .btn-scroll-top:hover {
  background: var(--hive-black) !important;
  color: var(--honey-gold) !important;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.4);
}

/* WhatsApp Button Micro-interactions */
.btn-whatsapp:hover svg {
  transform: scale(1.15) rotate(-10deg);
}

/* Scroll to Top Button Micro-interactions */
.btn-scroll-top:hover svg {
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

.btn-scroll-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .floating-actions {
    bottom: var(--space-5);
    right: var(--space-5);
    gap: var(--space-2);
  }
}

/* ============================================
   QUARTA DOBRA — CONTATO
   ============================================ */
.fourth-section {
  min-height: 100vh;
  background: var(--hive-black);
  position: relative;
  z-index: 900 !important;
  /* Garante que fique acima da terceira seção e do pin-spacer sem cobrir o header (z-index 1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) 0;
  margin-top: -8px !important;
  /* Previne o gap de sub-pixel em qualquer nível de zoom ou dispositivo */
}

/* Background colmeia interativo */
.honeycomb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  contain: paint;
}

.honeycomb-grid {
  position: absolute;
  inset: 0;
  /* Colmeia: hexágonos pointy-top tesselação exata (2 colunas × 2 períodos) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="55.4256" height="96" viewBox="0 0 55.4256 96"><path d="M0,8.0 L13.86,0 M0,24.0 L0,8.0 M0,24.0 L13.86,32.0 M0,56.0 L13.86,48.0 M0,72.0 L0,56.0 M0,72.0 L13.86,80.0 M13.86,0 L27.71,8.0 M13.86,32.0 L27.71,24.0 M13.86,48.0 L13.86,32.0 M13.86,48.0 L27.71,56.0 M13.86,80.0 L27.71,72.0 M13.86,96 L13.86,80.0 M27.71,8.0 L41.57,0 M27.71,24.0 L27.71,8.0 M27.71,24.0 L41.57,32.0 M27.71,56.0 L41.57,48.0 M27.71,72.0 L27.71,56.0 M27.71,72.0 L41.57,80.0 M41.57,0 L55.43,8.0 M41.57,32.0 L55.43,24.0 M41.57,48.0 L41.57,32.0 M41.57,48.0 L55.43,56.0 M41.57,80.0 L55.43,72.0 M41.57,96 L41.57,80.0 M55.43,24.0 L55.43,8.0 M55.43,72.0 L55.43,56.0" fill="none" stroke="%23c8ff00" stroke-width="0.75" shape-rendering="geometricPrecision"/></svg>');
  background-repeat: repeat;
  background-size: 55.4256px 96px;
}

/* Camada base: sutil e opaca (reduzida para ficar mais escura no fundo) */
.honeycomb-grid--base {
  opacity: 0.03;
}

/* Grade estática (2ª dobra): base escura como o original */
.honeycomb-bg--static .honeycomb-grid--base {
  opacity: 0.03;
}

/* Brilho radial fixo no centro: grade visível no meio, bordas somem na cor do fundo */
.honeycomb-grid--center-glow {
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 0%, transparent 62%);
}

/* Spotlight: máscara fixa no beam, posição via transform (GPU) */
.honeycomb-spotlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.honeycomb-spotlight__beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 480px;
  will-change: transform;
  -webkit-mask-image: radial-gradient(circle 240px at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 240px at 50% 50%, #000 0%, transparent 100%);
}

/* Camada de brilho: opacidade compensa remoção do drop-shadow */
.honeycomb-grid--glow {
  inset: auto;
  left: 0;
  top: 0;
  opacity: 0.55;
  will-change: transform;
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {

  /* No mobile, spotlight fixo próximo ao título da quarta dobra */
  .honeycomb-spotlight__beam {
    width: 360px;
    height: 360px;
    -webkit-mask-image: radial-gradient(circle 180px at 50% 50%, #000 0%, transparent 100%);
    mask-image: radial-gradient(circle 180px at 50% 50%, #000 0%, transparent 100%);
  }

  .honeycomb-grid--glow {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {

  .honeycomb-spotlight__beam,
  .honeycomb-grid--glow {
    will-change: auto;
  }
}

/* Alinha a quarta dobra ao mesmo shell da 2ª e 3ª dobras.
   .fourth-section é flex (justify-content:center), então o container
   encolhe para o conteúdo; width:100% força preencher até o max-width. */
.fourth-section .container {
  width: 100%;
  max-width: 1600px;
  padding-left: clamp(32px, 6vw, 120px);
  padding-right: clamp(32px, 6vw, 120px);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}

.contact-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.15em 0.3em;
}

.contact-title span {
  display: inline-block;
}

.contact-title .word-white {
  color: var(--wax-white);
}

.contact-title .word-yellow {
  color: var(--electric-pollen);
  text-shadow: 0 0 30px rgba(200, 255, 0, 0.3);
}

.contact-desc {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--smoke);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: var(--space-10);
  opacity: 0.9;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 0 5px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(0, 0, 0, 0.6),
    -1px 0 3px rgba(0, 0, 0, 0.95),
    1px 0 3px rgba(0, 0, 0, 0.95),
    0 -1px 3px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.95),
    -1px -1px 3px rgba(0, 0, 0, 0.9),
    1px -1px 3px rgba(0, 0, 0, 0.9),
    -1px 1px 3px rgba(0, 0, 0, 0.9),
    1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Custom WhatsApp button styled elegant */
.btn-contact-whatsapp {
  padding: 18px 40px;
  font-size: var(--text-lg);
  border-radius: 0;
  border: 2px solid var(--electric-pollen);
  background: var(--electric-pollen);
  color: var(--hive-black);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 20px rgba(200, 255, 0, 0.15);
}

.btn-contact-whatsapp:hover {
  background: var(--hive-black);
  color: var(--electric-pollen);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-3px);
}

.btn-contact-whatsapp .whatsapp-icon {
  transition: transform 0.3s ease;
}

.btn-contact-whatsapp:hover .whatsapp-icon {
  transform: scale(1.15) rotate(-10deg);
}

/* ============================================
   WHATSAPP MOCKUP + CHAT
   ============================================ */

/* Mockup container */
.wa-mockup {
  width: min(268px, 85%);
  height: clamp(560px, 75vh, 680px);
  background: #0A0A0A;
  border-radius: 20px;
  border: 2px solid var(--honey-gold);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.22), 0 20px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* SVG de fundo decorativo */
.wa-mockup-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
  overflow: hidden;
}
.wa-mockup-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Header do chat */
.wa-header {
  background: #1F2C34;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--honey-gold), #FF8C00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #0F0F0F;
  flex-shrink: 0;
}
.wa-header-info { flex: 1; }
.wa-header-name {
  color: #E9EDEF;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.wa-header-status {
  color: #25D366;
  font-size: 11px;
}
.wa-header-actions {
  display: flex;
  gap: 12px;
  color: #8696A0;
}

/* Área de mensagens */
.wa-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
}
.wa-messages::-webkit-scrollbar { display: none; }

/* Chips de opções */
.wa-options {
  padding: 0 8px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
}
.wa-options::-webkit-scrollbar { display: none; }
.wa-chip {
  background: #1F2C34;
  border: 1px solid var(--honey-gold);
  color: #E9EDEF;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.3;
}
.wa-chip:hover,
.wa-chip:focus {
  background: var(--honey-gold);
  color: #0F0F0F;
  outline: none;
}
.wa-chip--selected {
  background: var(--honey-gold);
  color: #0F0F0F;
  border-color: var(--honey-gold);
}
.wa-chip--selected:hover,
.wa-chip--selected:focus {
  background: #c9a800;
  border-color: #c9a800;
  color: #0F0F0F;
}

/* Botão confirmar multi-select (fora da área que rola) */
.wa-confirm-btn {
  display: none;
  flex-shrink: 0;
  width: calc(100% - 16px);
  margin: 4px 8px 8px;
  padding: 9px 16px;
  background: var(--honey-gold);
  color: #0F0F0F;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  transition: background 0.2s, transform 0.1s;
}
.wa-confirm-btn:hover {
  background: #c9a800;
}
.wa-confirm-btn:active {
  transform: scale(0.97);
}

/* Barra de input */
.wa-input-bar {
  background: #1F2C34;
  padding: 8px 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wa-input-fake {
  background: #2A3942;
  border-radius: 24px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-input-placeholder {
  flex: 1;
  color: #8696A0;
  font-size: 13px;
}
.wa-input-real {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-real-input {
  flex: 1;
  background: #2A3942;
  border: none;
  border-radius: 20px;
  padding: 7px 12px;
  color: #E9EDEF;
  font-size: 16px;
  outline: none;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}
.wa-real-input::placeholder { color: #8696A0; }
.wa-send-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mensagens */
.wa-msg {
  display: flex;
  animation: msgFadeIn 0.3s ease forwards;
}
.wa-msg-bee { justify-content: flex-start; }
.wa-msg-user { justify-content: flex-end; }

.wa-bubble {
  max-width: 82%;
  padding: 7px 10px 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #E9EDEF;
  word-break: break-word;
}
.wa-msg-bee .wa-bubble {
  background: #1F2C34;
  border-radius: 8px 8px 8px 2px;
}
.wa-msg-user .wa-bubble {
  background: #005C4B;
  border-radius: 8px 8px 2px 8px;
}
.wa-ts {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #8696A0;
  margin-top: 2px;
}

/* Indicador de digitação */
.wa-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
}

/* CTA card */
.wa-cta-card {
  background: linear-gradient(135deg, var(--honey-gold), #FFA500);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 4px 0;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #0F0F0F;
  animation: msgFadeIn 0.3s ease forwards;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  width: 100%;
}
.wa-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.45);
}

/* Animações do chat */
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.typing-dot {
  width: 7px;
  height: 7px;
  background: #8696A0;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.2s infinite;
  flex-shrink: 0;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PRÉ-FOOTER
   ============================================ */
.pre-footer {
  background: var(--hive-black);
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 20;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.pre-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.pre-footer-col {
  display: flex;
  flex-direction: column;
}

/* Marca Bee Nerd Lab sem uppercase e com pesos corretos */
.pre-footer-brand {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  color: var(--electric-pollen);
  text-transform: none;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pre-footer-brand .bee {
  font-weight: 500;
}

.pre-footer-brand .nerd {
  font-weight: 800;
}

.pre-footer-brand .lab {
  font-weight: 400;
  color: var(--dark-comb);
}

.pre-footer-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--electric-pollen);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.pre-footer-desc {
  font-size: var(--text-base);
  color: var(--smoke);
  line-height: 1.6;
  max-width: 380px;
}

.pre-footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pre-footer-menu a {
  color: var(--wax-white);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: color 0.3s ease;
}

.pre-footer-menu a:hover {
  color: var(--electric-pollen);
}

.pre-footer-socials {
  display: flex;
  gap: var(--space-4);
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
  /* Sem borda inicial */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wax-white);
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  border-color: var(--electric-pollen);
  color: var(--electric-pollen);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 255, 0, 0.1);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Hide fixed WhatsApp button logic */
.floating-actions.whatsapp-hidden .btn-whatsapp {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0) !important;
}

/* Media Queries for pre-footer and contact section */
@media (max-width: 992px) {
  .pre-footer-inner {
    grid-template-columns: 1.2fr 1fr 0.5fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .pre-footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Oculta coluna vazia no mobile */
  .pre-footer-inner .empty-col {
    display: none;
  }

  .pre-footer-col {
    align-items: center;
    text-align: center;
  }

  .pre-footer-desc {
    max-width: 100%;
  }
}

/* ============================================
   MENU OVERLAY (HAMBURGER)
   ============================================ */
body.menu-open {
  overflow: hidden !important;
}

/* Remove o fundo e borda do header somente quando o menu está aberto */
body.menu-open .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
}

body.menu-open .site-header .nav-logo-svg {
  fill: var(--hive-black) !important;
}

body.menu-open .site-header .nav-brand-text {
  color: var(--hive-black) !important;
}

body.menu-open .site-header .hamburger-line {
  background: var(--hive-black) !important;
}

/* Oculta os botões flutuantes (WhatsApp e Scroll to Top) quando o menu está aberto */
body.menu-open .floating-actions {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  /* Fica abaixo da site-header (1000) e acima das outras seções */
  width: 100%;
  height: 100dvh;
  /* Dynamic viewport height para cobrir 100% da vertical em celulares */
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  /* No transition — visibility toggles instantly via .active class;
     the sliding .menu-background handles the visual reveal */
}

.menu-overlay.active {
  visibility: visible;
  pointer-events: auto;
}

.menu-background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bee-amber);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.menu-container {
  position: relative;
  z-index: 3;
  /* Fica acima de tudo para que os links sejam clicáveis */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Alinha à direita para afastar da abelha no canto esquerdo */
  padding: 0 var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.menu-nav {
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: flex-end;
}

.menu-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-end;
  /* Alinha os links à direita no container */
}

.menu-link-item {
  overflow: visible;
  /* Necessário para que o efeito magnético de escala não sofra clipping */
}

.menu-overlay-link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--hive-black);
  font-family: var(--font-primary);
  transition: color 0.2s ease;
  /* Remove transform para evitar conflitos com animações magnéticas GSAP */
  transform: translateX(50px);
  opacity: 0;
  will-change: transform, opacity;
}

.menu-overlay-link .menu-link-num {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--hive-black);
  opacity: 0.4;
}

.menu-overlay-link .menu-link-text {
  font-size: clamp(36px, 8.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Removido o hover CSS para dar lugar ao efeito magnético GSAP interativo */

.menu-bee-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  /* Fica acima da grade de hexágonos */
  pointer-events: none;
  width: 100%;
  max-width: 340px;
  display: block;
  /* Sempre visível no menu */
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translateX(-30px);
  will-change: transform, opacity;
}

.menu-bee-img {
  width: 100%;
  height: auto;
  display: block;

  /* Filtro mantido isoladamente no filho para remover o fundo branco/amarelado */
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) {
  .menu-bee-wrapper {
    max-width: clamp(224px, 53vw, 336px);
    /* Aumentado em 40% (de 160px/38vw/240px) */
  }

  .menu-container {
    align-items: center;
    padding-bottom: var(--space-12);
  }

  .menu-links-list {
    gap: var(--space-4);
  }

  .menu-overlay-link .menu-link-text {
    font-size: clamp(28px, 9vw, 42px);
  }
}

/* ============================================
   CELULAR DEITADO — layout compacto (820–932px × ~320–430px)
   Herda regras mobile acima; aqui só ajustes de densidade/orientação.
   Tablets (altura > 500px) não são afetados.
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 768px) {
  .hero-section {
    min-height: auto !important;
    height: auto !important;
  }

  .hero-content {
    padding-bottom: var(--space-6) !important;
  }

  .hero-main-grid {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    grid-template-rows: 1fr !important;
    gap: var(--space-4) !important;
    align-items: center !important;
  }

  .hero-left-col {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 56px !important;
    padding-bottom: var(--space-3) !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: center !important;
  }

  .hero-logo-wrapper {
    margin-bottom: var(--space-3) !important;
    gap: var(--space-3) !important;
  }

  .hero-logo-svg {
    height: clamp(28px, 5vh, 40px) !important;
  }

  .hero-brand-title {
    font-size: clamp(26px, 4.8vw, 34px) !important;
  }

  .hero-roulette-wrapper {
    margin-bottom: var(--space-4) !important;
    justify-content: flex-start !important;
  }

  .roulette-word {
    font-size: clamp(15px, 2.6vw, 20px) !important;
  }

  .hero-actions {
    justify-content: flex-start !important;
  }

  .btn-hero-primary {
    padding: 10px var(--space-6) !important;
    font-size: var(--text-sm) !important;
  }


  .spacer-section {
    min-height: auto !important;
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
  }

  .about-grid,
  .spacer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  .about-right,
  .spacer-right {
    order: 0;
  }

  .about-headline,
  .spacer-left .section-title {
    font-size: clamp(24px, 4.5vw, 32px) !important;
  }

  .about-lab {
    width: min(100%, 260px) !important;
  }

  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .about-lab-energy {
    display: none !important;
  }

  .about-lab-ring--2 {
    display: none !important;
  }

  .spacer-left .section-title {
    font-size: clamp(20px, 3.2vw, 28px) !important;
    line-height: 1.12 !important;
  }

  .spacer-left .section-desc {
    font-size: var(--text-sm) !important;
    line-height: 1.45 !important;
  }

  .spacer-image-container {
    max-width: 220px !important;
    margin-inline: auto !important;
  }

  .third-section {
    padding-top: var(--space-10) !important;
  }

  .services-main-title {
    font-size: clamp(22px, 3.6vw, 30px) !important;
    margin-bottom: var(--space-4) !important;
  }

  .services-wrapper {
    padding-top: var(--space-5) !important;
    padding-bottom: var(--space-8) !important;
  }

  .services-card {
    padding: var(--space-4) !important;
  }

  .card-title {
    font-size: 14px !important;
  }

  .card-desc {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: var(--space-3) !important;
  }

  .third-marquee-container {
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
  }

  .fourth-section {
    padding: var(--space-10) 0 !important;
  }

  /* Mobile: empilha colunas verticalmente */
  .contact-inner {
    flex-direction: column !important;
    gap: var(--space-8) !important;
    align-items: center !important;
  }
  .contact-left {
    flex: 1 1 100% !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .contact-right {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .wa-mockup {
    width: min(260px, 82vw) !important;
    height: clamp(520px, 72vh, 640px) !important;
  }

  /* iOS Safari dá zoom automático em inputs com font-size < 16px.
     16px impede o zoom ao focar o campo (sem desabilitar o zoom do usuário). */
  .wa-real-input {
    font-size: 16px !important;
  }

  .contact-title {
    font-size: clamp(28px, 7vw, 42px) !important;
    margin-bottom: var(--space-6) !important;
  }

  .contact-desc {
    font-size: var(--text-sm) !important;
    margin-bottom: var(--space-5) !important;
  }

  .pre-footer {
    padding: var(--space-8) 0 !important;
  }

  .pre-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-6) !important;
  }

  .pre-footer-col {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .menu-bee-wrapper {
    max-width: 140px !important;
  }

  .menu-overlay-link .menu-link-text {
    font-size: clamp(22px, 4.5vw, 32px) !important;
  }

  .floating-actions {
    bottom: var(--space-3) !important;
    right: var(--space-3) !important;
  }
}

/* ── Mobile: navLogo controlado por CSS via classe on-hero ──────────
   !important garante override sobre qualquer inline style do GSAP.
   transform: none evita desalinhamento por translateY residual.     */
@media (max-width: 767px) {
  .site-header.on-hero .nav-logo {
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none;
  }
  body.menu-open .site-header.on-hero .nav-logo {
    opacity: 1 !important;
    pointer-events: auto;
  }
  .site-header:not(.on-hero) .nav-logo {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    transition: opacity 0.3s ease;
  }
}

/* ── Quarta dobra: força coluna no mobile de forma isolada ── */
@media (max-width: 767px) {
  .fourth-section .container {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
  }

  .fourth-section .contact-inner {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: var(--space-8) !important;
    align-items: center !important;
  }
  .fourth-section .contact-left {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    order: 1;
  }
  .fourth-section .contact-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    justify-content: center !important;
    order: 2;
  }

  /* iOS Safari: font-size >= 16px evita zoom automático ao focar input */
  .wa-real-input {
    font-size: 16px !important;
    padding: 11px 14px !important;
    min-height: 44px;
    line-height: 1.4;
  }

  .wa-input-real {
    min-height: 44px;
    align-items: center;
  }
}