/* ================================================================
   NOTO[IA] — STYLESHEET v4.0 (CAMADA 3 · 100% FLUID RESPONSIVE)
   ================================================================ */

/* ---- FLUID TOKENS ---- */
:root {
  --bg:            #0F1116;
  --bg-2:          #1A1D26;
  --bg-3:          #222631;
  --gold:          #C9A15C;
  --gold-light:    #E8C07A;
  --gold-dim:      rgba(201,161,92,0.12);
  --gold-border:   rgba(201,161,92,0.22);
  --white:         #FFFFFF;
  --text:          rgba(255,255,255,0.92);
  --muted:         rgba(255,255,255,0.65);
  --dim:           rgba(255,255,255,0.30);
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(201,161,92,0.40);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm:   12px;
  --r:      20px;
  --r-lg:   28px;
  --r-xl:   40px;

  --ease:      cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-out:  cubic-bezier(0.0,0.0,0.2,1);
  --expo-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --spring:    cubic-bezier(0.34,1.56,0.64,1);

  --hd: clamp(64px, 7vw, 76px);

  /* Fluid Spacing & Dimensions */
  --container: min(1280px, calc(100% - 3rem));
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --section-y-sm: clamp(3rem, 6vw, 5rem);

  /* Fluid Typographic Scale */
  --fs-h1: clamp(2.25rem, 7.5vw, 5.5rem);
  --fs-h2: clamp(1.75rem, 4.5vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 2.4vw, 1.75rem);
  --fs-body: clamp(0.95rem, 1.05vw, 1.0625rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 2rem);
  }
}

/* ---- RESET & CLASSIC MOBILE FIXES (BUG 3 FIX: FUNDO DARK PERMANENTE) ---- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html {
  background: #0F1116;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}
body {
  font-family: var(--font);
  background: #0F1116;
  color: var(--text);
  line-height: 1.7;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}
a { color: inherit; text-decoration: none; }
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Word break & wrapping */
p, a, h1, h2, h3, h4, span, strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* iOS Minimum Touch Targets (44x44px) */
a, button, [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Anti-zoom on iOS Safari */
input, select, textarea {
  font-size: 16px !important;
}

/* ---- SR-ONLY ---- */
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---- GLOBAL CANVAS GRAIN ---- */
.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99990;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ---- PAGE TRANSITIONS (SPA WIPE) ---- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0F1116;
  border-bottom: 2px solid var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ---- FLUID CONTAINER & SECTIONS ---- */
.container {
  width: var(--container);
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }

/* ---- FLUID TYPOGRAPHY & CHAR REVEAL ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

h1, .hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
  white-space: normal;
  overflow: visible;
  width: 100%;
  text-align: left;
}
h2, .section-title, .page-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  white-space: normal;
  overflow: visible;
  width: 100%;
}
.page-title, .about-text .section-title, .page-hero .page-title {
  text-align: left;
}
.cta-section .section-title,
.process-header .section-title,
.section--center .section-title {
  text-align: center;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}
.text-gold { color: var(--gold-light); }

/* SplitType character & accessible typography styles */
.line, .word, .char { display: inline-block; text-align: inherit; }
.line { overflow: hidden; padding-bottom: 0.08em; }

/* Failsafe: sem JS ou se der erro, texto sempre visível */
.reveal-chars { opacity: 1; white-space: normal; overflow: visible; width: 100%; text-align: inherit; }
.js-loading .reveal-chars { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal-chars, .line, .word, .char { opacity: 1 !important; transform: none !important; }
}

/* Foco visível — nunca outline: none */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- PRELOADER ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#preloader .pre-logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
}
#preloader .pre-logo .pre-bracket { color: var(--gold); font-weight: 300; }
#preloader .pre-bar-wrap {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
#preloader .pre-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* ---- CUSTOM CURSOR ---- */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 99998;
  transform: translate3d(0,0,0) translate(-50%,-50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
#cursor.expanded {
  width: 54px;
  height: 54px;
  background: rgba(201,161,92,0.15);
  border: 1px solid var(--gold);
}
@media(max-width:900px) { #cursor { display:none !important; } }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--hd);
  z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15,17,22,0.88);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ---- LOGO ---- */
.logo {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}
.logo-bracket { color: var(--gold); font-weight: 300; }

/* ---- NAV ---- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  display: inline-flex;
  align-items: center;
}
.nav-list a:hover, .nav-list a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ---- MENU TOGGLE ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1001;
}
.menu-toggle:hover { background: rgba(255,255,255,0.06); }
.toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.menu-toggle.open .toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.open .toggle-bar:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- BUTTONS & MAGNETIC ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.65rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--gold);
  color: #0F1116;
  font-weight: 700;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease-out);
  border-radius: inherit;
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(201,161,92,0.32); }
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold-border);
}
.btn-outline:hover { background: var(--gold); color: #0F1116; border-color: var(--gold); }

.btn-lg { padding: 1rem 2.1rem; font-size: 0.98rem; }
.header-cta { flex-shrink: 0; }

/* ---- WA FLOATING ---- */
#wa-float {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  right: clamp(16px, 4vw, 28px);
  z-index: 2000;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
  cursor: pointer;
}
#wa-float:hover { box-shadow: 0 16px 45px rgba(37,211,102,0.6); }

/* ---- STICKY CTA ---- */
#sticky-cta {
  position: fixed;
  bottom: clamp(84px, 12vw, 98px);
  right: clamp(16px, 4vw, 28px);
  z-index: 1990;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
  pointer-events: none;
}
#sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 640px) {
  #sticky-cta { display: none !important; }
}

/* ================================================================
   HERO (FLUID RESPONSIVE & 100SVH)
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--gap);
  padding-top: calc(var(--hd) + 1rem);
  padding-bottom: 3rem;
  overflow: hidden;
}
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,161,92,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,161,92,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(201,161,92,0.14) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(70px);
}
.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(201,161,92,0.07) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(90px);
}

.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:0.5; transform:scale(1); }
  50% { opacity:1; transform:scale(1.4); }
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- HERO VISUAL WITH CLIP-PATH SCRUB (SANGRIA LIVRE) ---- */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-inline: 2rem;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: var(--r-lg);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transform-style: preserve-3d;
  will-change: clip-path, transform;
  overflow: visible;
}
.hero-img-wrap img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.08);
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* Floating UI cards */
.float-card {
  position: absolute;
  background: rgba(26,29,38,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.float-card-1 {
  top: 12%;
  left: -8%;
  animation: float-1 5s ease-in-out infinite 0.5s;
}
.float-card-2 {
  bottom: 20%;
  left: -5%;
  animation: float-1 5.5s ease-in-out infinite 1.2s;
}
.float-card-3 {
  top: 8%;
  right: -5%;
  animation: float-1 4.8s ease-in-out infinite 0.8s;
}
@keyframes float-1 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.fc-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-icon.green { background: rgba(74,222,128,0.15); color: #4ade80; }
.fc-icon.gold  { background: var(--gold-dim); color: var(--gold); }
.fc-icon.blue  { background: rgba(96,165,250,0.15); color: #60a5fa; }

.fc-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}
.fc-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee-section {
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(201,161,92,0.03) 0%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 26s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 2.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,161,92,0.45);
  transition: -webkit-text-stroke 0.3s;
  white-space: nowrap;
}
.marquee-item:hover { -webkit-text-stroke-color: var(--gold); }
.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   AUTO-FIT SERVICES BENTO GRID
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--gap);
  grid-auto-rows: 1fr;
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.s-card {
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  cursor: default;
}
.s-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,161,92,0.6), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.s-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px var(--gold-border) inset;
}
.s-card:hover::before { opacity: 1; }

.s-card .spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--x,50%) var(--y,50%), rgba(201,161,92,0.08), transparent 50%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.s-card:hover .spotlight { opacity: 1; }

.s-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  color: var(--gold);
  transition: transform 0.3s var(--spring);
  flex-shrink: 0;
}
.s-card:hover .s-icon { transform: scale(1.12) rotate(-4deg); }

.s-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.s-card h3 {
  margin-bottom: 0.75rem;
}
.s-card p {
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.s-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  transition: gap 0.25s, color 0.25s;
}
.s-link:hover { gap: 0.65rem; color: var(--gold-light); }

/* ================================================================
   STATS BAND (AUTO-FIT)
   ================================================================ */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
@media (min-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
}

.stat-col {
  padding: clamp(2rem, 4vw, 3.2rem) 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media(max-width:768px) {
  .stat-col { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-col:last-child { border-bottom: none; }
}
.stat-col:last-child { border-right: none; }
.stat-col .num {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-col .suf {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-col .lbl {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.4rem;
  line-height: 1.45;
  max-width: 160px;
}

/* ================================================================
   CASES HORIZONTAL SCROLL SECTION (noco style)
   ================================================================ */
.cases-horiz-container {
  position: relative;
  width: 100%;
  overflow-x: clip;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cases-horiz-track {
  display: flex;
  flex-wrap: nowrap;
  width: 400%;
  height: 85vh;
  min-height: 560px;
}
.case-horiz-panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 2rem clamp(20px, 6vw, 100px);
  box-sizing: border-box;
}
.case-horiz-card {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.case-horiz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.case-panel-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.case-horiz-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.case-horiz-img-wrap img {
  width: 100%;
  display: block;
}

@media(max-width:899px) {
  .cases-horiz-track {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  .case-horiz-panel {
    width: 100%;
    height: auto;
    padding: 2rem 0;
  }
  .case-horiz-card {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 1.8rem 1.4rem;
  }
}

/* ================================================================
   TESTIMONIALS (AUTO-FIT)
   ================================================================ */
.testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--gap);
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.t-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.t-card:hover { border-color: var(--gold-border); }
.t-stars { color: var(--gold); font-size: 0.88rem; letter-spacing: 2px; margin-bottom: 1rem; }
.t-text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.t-name {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.1rem;
}
.t-role { font-size: 0.78rem; color: var(--dim); }

/* ================================================================
   FINAL CTA
   ================================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 650px; height: 650px;
  background: radial-gradient(ellipse, rgba(201,161,92,0.12), transparent 70%);
  pointer-events: none;
  filter: blur(70px);
}
.cta-section .section-sub { max-width: 500px; margin: 0 auto 2.5rem; }

/* ================================================================
   PAGE HERO (inner pages) (BUG 6 & BUG 7 FIX)
   ================================================================ */
.page-hero {
  padding-top: calc(var(--hd) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(1rem, 2vw, 2rem);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 60% 70% at 30% 40%, rgba(201,161,92,0.08), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; text-align: left; }
.page-hero + .section {
  padding-top: clamp(1.5rem, 3.5vw, 3.5rem);
}

/* ================================================================
   ABOUT PAGE & FOUNDER PHOTO (EXACT NOCO SPEC)
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 899px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .founder-photo-wrap {
    margin-top: 2.5rem;
    max-width: 100%;
  }
}
.about-text .section-title { margin-bottom: 1.8rem; }
.about-text p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.3rem;
}

.founder-photo-wrap {
  position: relative;
  background: linear-gradient(160deg, var(--bg-2) 0%, #131722 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--gold-border);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,161,92,0.18);
  aspect-ratio: 4 / 5;
}
@media (min-width: 1024px) {
  .founder-photo-wrap {
    aspect-ratio: 3 / 4;
  }
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  filter: grayscale(0.2) contrast(1.05) brightness(1.2);
  position: relative;
  z-index: 1;
}
.founder-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,12,16,0.6) 100%);
  pointer-events: none;
  z-index: 3;
}
.founder-photo-glow {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(201,161,92,0.25), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.a-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.a-stat:hover { border-color: var(--gold-border); }
.a-stat .n {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.a-stat .l { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* VALUES (AUTO-FIT) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--gap);
}
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.v-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: border-color 0.3s;
}
.v-card:hover { border-color: var(--gold-border); }
.v-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.v-card h3 { margin-bottom: 0.55rem; }
.v-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ================================================================
   SERVICES PAGE (AUTO-FIT)
   ================================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--gap);
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

.svc-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s var(--ease-out);
}
.svc-card:hover { border-color: var(--gold-border); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.svc-card:hover::after { width: 100%; }
.svc-card .s-icon { margin-bottom: 1.5rem; }
.svc-card h3 { margin-bottom: 0.75rem; }
.svc-card > p { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; flex: 1; }
.svc-features { margin-bottom: 2rem; }
.svc-features li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.svc-features li:last-child { border-bottom: none; }
.svc-features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--gap);
  position: relative;
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  width: calc(75% - 48px);
  height: 1px;
  background: var(--border);
  overflow: hidden;
}
@media (max-width: 1023px) {
  .process-line { display: none; }
}

.process-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.5s var(--ease-out);
}
.process-step { position: relative; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  position: relative; z-index: 1;
  transition: background 0.4s, box-shadow 0.4s;
}
.process-step.lit .step-num {
  background: var(--gold);
  color: #0F1116;
  box-shadow: 0 0 22px rgba(201,161,92,0.45);
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p  { color: var(--muted); line-height: 1.65; }

/* ================================================================
   CASES PAGE
   ================================================================ */
.case-full {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--gap);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.case-tag {
  display: inline-flex;
  align-items: center;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.case-full h2 { margin-bottom: 1.4rem; }
.case-full .intro {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  gap: 0.75rem;
  padding: 1.6rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 2rem 0;
}
.res-item { text-align: center; }
.res-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.res-lbl { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.case-subtitle { margin: 1.8rem 0 0.8rem; }
.case-list { margin-bottom: 2.2rem; }
.case-list li {
  color: var(--muted);
  padding: 0.65rem 0;
  padding-left: 1.6rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.55;
}
.case-list li:last-child { border-bottom: none; }
.case-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
}

.case-img-full {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.case-img-full img {
  width: 100%;
  display: block;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap);
  align-items: start;
}
.contact-methods { display: flex; flex-direction: column; gap: 0.9rem; margin: 2rem 0; }
.c-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.3s;
}
.c-method:hover { border-color: var(--gold-border); }
.c-icon, .contact-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.c-method div { flex: 1; }
.c-method strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 0.1rem; }
.c-method span { font-size: 0.82rem; color: var(--muted); }
.c-arrow { color: var(--dim); transition: transform 0.25s, color 0.25s; }
.c-method:hover .c-arrow { transform: translateX(4px); color: var(--gold); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.form-intro h3 { margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.req { color: var(--gold); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option { background: var(--bg-2); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,161,92,0.05);
  box-shadow: 0 0 0 3px rgba(201,161,92,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.form-footer { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-note a { color: var(--gold); font-weight: 600; }
.form-note a:hover { color: var(--gold-light); }
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--r-sm);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
}
.c-location {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.c-location .flag { font-size: 1.6rem; }
.c-location strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.c-location span { font-size: 0.82rem; color: var(--muted); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4rem) 0 0;
  position: relative;
  z-index: 10;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { display: inline-block; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--muted); line-height: 1.7; max-width: 270px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--dim); }
.footer-jp { font-size: 0.8rem; color: var(--dim); }

/* ================================================================
   REVEAL ANIMATIONS (FAILSAFE: SEMPRE VISÍVEL)
   ================================================================ */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   RESPONSIVE MEDIA QUERIES & BREAKPOINTS
   ================================================================ */
@media(max-width:1200px) {
  .float-card-1 { left: -6%; }
  .float-card-2 { left: -4%; }
}
@media(max-width:1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--hd) + 2rem); }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .case-full { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media(max-width:768px) {
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    background: rgba(15,17,22,0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--expo-out);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 700;
    padding: 0.8rem 2rem;
    color: var(--white);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s var(--expo-out), transform 0.4s var(--expo-out), color 0.25s;
  }
  .nav-list.open a { opacity: 1; transform: translateX(0); }
  .nav-list.open a:nth-child(1) { transition-delay: 0.1s; }
  .nav-list.open a:nth-child(2) { transition-delay: 0.15s; }
  .nav-list.open a:nth-child(3) { transition-delay: 0.2s; }
  .nav-list.open a:nth-child(4) { transition-delay: 0.25s; }
  .nav-list.open a:nth-child(5) { transition-delay: 0.3s; }
  .nav-list li { width: 100%; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

/* ---- REDUCED MOTION ---- */
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity:1; transform:none; }
  #preloader { display: none; }
  .page-wipe { display: none; }
  .hero-img-wrap img, .float-card { animation: none; }
  .marquee-track { animation: none; }
  #cursor { display: none; }
  .grain-canvas { display: none; }
}
