/* =========================================================
   KomPartilhe — Parcerias Estratégicas
   Folha de estilo principal (HTML5 + CSS3)
   ========================================================= */

/* ============ Design tokens ============ */
:root {
  --brand: #e2264d;
  --brand-2: #b71c3e;
  --brand-3: #ff5a7a;
  --ink: #58585a;
  --night: #5a5a5d;
  --night-2: #6a6a6e;
  --background: #fbfaf9;
  --surface: #ffffff;
  --foreground: #232225;
  --muted: #f3f1f0;
  --muted-foreground: #6b6a6f;
  --border: #e8e5e3;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius: 18px;
  --radius-lg: 32px;

  --gradient-brand: linear-gradient(135deg, #ff4f74 0%, #e2264d 45%, #b71c3e 100%);
  --gradient-shine: linear-gradient(110deg, #e2264d 0%, #ff5a7a 30%, #b71c3e 60%, #e2264d 100%);
  --shadow-brand: 0 24px 60px -22px rgba(226, 38, 77, 0.55);
  --shadow-soft: 0 14px 40px -16px rgba(35, 34, 37, 0.22);
  --shadow-lift: 0 40px 80px -30px rgba(35, 34, 37, 0.35);

  --font-display: "Saira", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Saira", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
::selection { background: var(--brand); color: var(--on-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--foreground);
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 400; }
h3 { font-weight: 400; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
  background: var(--gradient-shine);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--night);
  transition: clip-path 0.9s var(--ease-out), visibility 0s linear 0.9s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader-mark { display: flex; align-items: center; gap: 14px; }
.pl-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0; animation: plFade 0.6s 0.35s var(--ease-out) forwards; }
.pl-chev {
  font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--brand);
  animation: plIn 0.7s var(--ease-spring) both;
}
.pl-left { --from: 80px; }
.pl-right { --from: -80px; }
.preloader-bar { width: 160px; height: 2px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 100%; background: var(--gradient-brand); transform-origin: left; animation: plBar 1.1s var(--ease-out) forwards; }
@keyframes plIn { from { transform: translateX(var(--from)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plFade { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes plBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--gradient-brand); transform-origin: left; transform: scaleX(0);
}

/* ============ Cursor (desktop) ============ */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 90;
    pointer-events: none; border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
  }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(226, 38, 77, 0.55);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
  }
  .cursor-ring.is-hover {
    width: 64px; height: 64px; margin: -32px 0 0 -32px;
    background: rgba(226, 38, 77, 0.12); border-color: transparent;
  }
}

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 400; font-size: 14px; letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn .ico { font-size: 16px; transition: transform 0.3s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:hover { box-shadow: var(--shadow-lift); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }
.btn-brand { background: var(--gradient-brand); color: var(--on-dark); box-shadow: var(--shadow-brand); }
.btn-brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn-brand:hover::before { transform: translateX(120%); }
.btn-ghost {
  color: var(--on-dark); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--on-dark); color: var(--foreground); }
.btn-white { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-soft); }
.btn-white:hover { background: var(--night); color: var(--on-dark); }
.btn-dark { background: var(--night); color: var(--on-dark); }
.btn-dark:hover { background: var(--brand); }
.wa-ico { width: 20px; height: 20px; }

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); background: rgba(226,38,77,.07); border: 1px solid rgba(226,38,77,.2);
}
.eyebrow-dark {
  color: var(--on-dark); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3);
  box-shadow: 0 0 0 0 rgba(255, 90, 122, 0.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 90, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 122, 0); }
}

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.brand-logo { height: 34px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.header.scrolled { background: rgba(251,250,249,.86); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--border); }
.header.scrolled .brand-logo { filter: none; }
.nav { display: none; gap: 30px; }
.nav a {
  position: relative; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.85); transition: color 0.2s;
  padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--on-dark); }
.header.scrolled .nav a { color: rgba(35,34,37,.75); }
.header.scrolled .nav a:hover, .header.scrolled .nav a.is-active { color: var(--brand); }
.nav-cta { display: none; }

.burger {
  position: relative; z-index: 70; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--on-dark);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out), background 0.3s;
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.header.scrolled .burger { background: var(--night); border-color: var(--night); }
.burger.is-open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 22px; transform: rotate(-45deg); }

@media (min-width: 980px) {
  .nav, .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 28px 40px;
  background: var(--night);
  clip-path: circle(0% at calc(100% - 46px) 40px);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 9vw, 3rem); color: var(--on-dark);
  line-height: 1.2; opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s;
}
.mobile-menu nav a i { font-style: normal; font-size: 13px; color: var(--brand); letter-spacing: 0.1em; }
.mobile-menu nav a:hover { color: var(--brand-3); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .25s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .3s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .35s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .4s; }
.mobile-menu .btn { align-self: flex-start; }
body.menu-open .header .brand-logo { filter: brightness(0) invert(1); }
body.menu-open .header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .burger { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* ============ Hero ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); }
.hero-slides, .hero-slides .slide, .hero-overlay, .hero-grain { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.18);
  transition: opacity 1.4s ease, transform 7s linear;
}
.slide.is-active { opacity: 1; transform: scale(1.02); }
.hero-overlay {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(226,38,77,.35), transparent 55%),
    linear-gradient(100deg, rgba(20,19,22,.92) 0%, rgba(20,19,22,.7) 45%, rgba(20,19,22,.25) 100%);
}
.hero-grain {
  opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-chev {
  position: absolute; top: 50%; z-index: 1; height: 70vh; width: auto; pointer-events: none;
  fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: .55;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: drawChev 2.2s 1.1s var(--ease-out) forwards, floatY 8s 3s ease-in-out infinite;
  transform: translateY(-50%);
}
.hero-chev-l { left: -3vw; display: none; }
.hero-chev-r { right: -10vw; opacity: .3; }
@media (min-width: 700px) { .hero-chev-r { right: 4vw; opacity: .55; } }
@media (min-width: 980px) { .hero-chev-l { display: block; left: 1vw; opacity: .25; } }
@keyframes drawChev { to { stroke-dashoffset: 0; } }
@keyframes floatY { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 18px)); } }

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding-bottom: 48px; color: var(--on-dark);
}
.hero-copy { max-width: 820px; }
.hero-copy h1 { color: var(--on-dark); margin: 22px 0 18px; min-height: 2.1em; }
#hero-subtitle {
  color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 560px;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
#hero-subtitle.is-out, #hero-eyebrow-text.is-out { opacity: 0; transform: translateY(10px); }
#hero-eyebrow-text { display: inline-block; transition: opacity 0.4s ease, transform 0.4s var(--ease-out); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Split-text word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block; transform: translateY(110%) rotate(4deg);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}
.split.is-in .w > span { transform: none; }
.split.is-out .w > span { transform: translateY(-110%); transition-duration: .45s; transition-delay: calc(var(--i) * 20ms); }
.split .w.accent > span { color: var(--brand-3); }

.hero-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; gap: 28px;
}
.hero-counter { font-family: var(--font-display); display: flex; align-items: baseline; gap: 6px; }
.hero-counter b { font-size: 28px; font-weight: 400; color: var(--on-dark); min-width: 36px; }
.hero-counter span { font-size: 14px; color: var(--on-dark-muted); }
.hero-dots { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero-dots button {
  position: relative; flex: 1; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,.22);
}
.hero-dots button::before { content: ""; position: absolute; inset: -10px 0; }
.hero-dots button i {
  position: absolute; inset: 0; background: var(--on-dark); transform: scaleX(0); transform-origin: left;
}
.hero-dots button.is-done i { transform: scaleX(1); }
.hero-dots button.is-active i { animation: dotFill var(--dur, 6s) linear forwards; }
.hero.is-paused .hero-dots button.is-active i { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }

.scroll-hint {
  margin-left: auto; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.5);
  display: none; justify-content: center; padding-top: 7px;
}
.scroll-hint span { width: 3px; height: 8px; border-radius: 3px; background: var(--on-dark); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 700px) { .scroll-hint { display: flex; } }

/* ============ Marquee ============ */
.marquee { overflow: hidden; background: var(--gradient-brand); color: var(--on-dark); padding: 20px 0; transform: rotate(-1.2deg) scale(1.03); margin-top: -18px; position: relative; z-index: 3; box-shadow: var(--shadow-brand); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.02em; }
.marquee i { font-style: normal; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { position: relative; padding: 100px 0; }
.section-tight { padding-top: 40px; }
.section-alt { background: var(--muted); }
@media (min-width: 800px) { .section { padding: 140px 0; } .section-tight { padding-top: 60px; } }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 64px;
}
.section-head h2 { margin-top: 16px; max-width: 720px; }
.section-sub { color: var(--muted-foreground); max-width: 380px; font-size: 1.02rem; }
.lead { color: var(--muted-foreground); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 620px; margin-top: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ About ============ */
.about-head { max-width: 860px; margin-bottom: 64px; }
.about-head h2 { margin-top: 16px; }
.pillars { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 26px 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.4s, color 0.4s;
  min-height: 280px; display: flex; flex-direction: column;
}
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient-brand);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 100%)); transition: clip-path 0.7s var(--ease-out);
}
.pillar:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-brand); border-color: transparent; }
.pillar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.pillar-num { font-family: var(--font-display); font-weight: 400; font-size: 14px; color: var(--muted-foreground); letter-spacing: 0.1em; transition: color 0.3s; }
.pillar-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(226,38,77,.08); color: var(--brand);
  transition: transform 0.6s var(--ease-spring), background 0.3s, color 0.3s;
}
.pillar-ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.4rem; margin: 48px 0 10px; transition: color 0.3s; }
.pillar p { color: var(--muted-foreground); font-size: 0.97rem; transition: color 0.3s; }
.pillar:hover h3, .pillar:hover .pillar-num { color: var(--on-dark); }
.pillar:hover p { color: rgba(255,255,255,.88); }
.pillar:hover .pillar-ico { background: rgba(255,255,255,.18); color: var(--on-dark); transform: rotate(-12deg) scale(1.1); }

.stats {
  margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-n { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; display: flex; align-items: flex-start; }
.stat-n span { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-n sup { font-size: .38em; margin-left: 4px; margin-top: .25em; color: var(--brand); }
.stat-l { color: var(--muted-foreground); font-size: .95rem; margin-top: 12px; max-width: 200px; }

/* ============ Services (dark) ============ */
.section-dark { background: var(--night); color: var(--on-dark); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .section-sub { color: var(--on-dark-muted); }
.dark-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(226,38,77,.35), transparent 65%); filter: blur(20px);
  animation: glowMove 14s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glowMove { to { transform: translate(-40vw, 60%); } }
.services { display: grid; gap: 20px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service-card {
  position: relative; overflow: hidden;
  min-height: 360px; padding: 34px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: border-color 0.4s, background 0.4s, transform 0.2s ease-out;
  transform-style: preserve-3d;
}
.service-card::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(226,38,77,.55), transparent 65%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.service-card:hover { border-color: rgba(226,38,77,.6); }
.service-card:hover::after { opacity: 1; }
.service-num {
  font-family: var(--font-display); font-weight: 400; font-size: 5.5rem; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35);
  transition: -webkit-text-stroke-color 0.3s, color 0.4s;
}
.service-card:hover .service-num { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
.service-body { position: relative; z-index: 1; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.service-card p { color: var(--on-dark-muted); line-height: 1.65; }
.service-arrow {
  position: absolute; top: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; border: 1px solid var(--line-dark);
  transition: transform 0.5s var(--ease-spring), background 0.3s, border-color 0.3s;
}
.service-card:hover .service-arrow { transform: rotate(-45deg); background: var(--brand); border-color: var(--brand); }

/* ============ Estratégia ============ */
.equation {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px;
  padding: 36px 24px; margin-bottom: 40px; border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(226,38,77,.35); background: var(--surface);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.1;
}
.eq-op { color: var(--brand); font-weight: 300; display: inline-block; }
.equation.is-visible .eq-op { animation: popOp 0.8s var(--ease-spring) both; }
.equation.is-visible .eq-op:nth-of-type(2) { animation-delay: .1s; }
.equation.is-visible .eq-op:nth-of-type(4) { animation-delay: .4s; }
.eq-result {
  padding: 4px 22px 8px; border-radius: 999px; background: var(--gradient-brand); color: var(--on-dark);
  box-shadow: var(--shadow-brand);
}
.equation.is-visible .eq-result { animation: popOp 0.9s .6s var(--ease-spring) both; }
@keyframes popOp { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

.math-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .math-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.math-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 24px; border-radius: var(--radius-lg); min-height: 240px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, color 0.3s;
}
.math-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient-brand);
  transform: translateY(101%); transition: transform 0.6s var(--ease-out);
}
.math-card:hover::before { transform: none; }
.math-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-brand); }
.math-op {
  position: absolute; top: 4px; right: 18px;
  font-family: var(--font-display); font-weight: 300; font-size: 7rem; line-height: 1;
  color: var(--brand); opacity: .9;
  transition: transform 0.7s var(--ease-spring), color 0.3s;
}
.math-card:hover .math-op { transform: rotate(180deg) scale(1.1); color: var(--on-dark); }
.math-card b { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; transition: color 0.3s; }
.math-card em { font-style: normal; color: var(--muted-foreground); font-size: .97rem; transition: color 0.3s; }
.math-card:hover b { color: var(--on-dark); }
.math-card:hover em { color: rgba(255,255,255,.88); }

/* ============ Karla ============ */
.karla-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .karla-grid { grid-template-columns: 0.9fr 1.1fr; gap: 88px; } }
.karla-visual { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.karla-ring {
  position: absolute; inset: -14px; border-radius: 44px; z-index: 0;
  background: conic-gradient(from var(--a, 0deg), var(--brand), transparent 30%, var(--brand-3) 50%, transparent 75%, var(--brand));
  animation: spinRing 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 3px;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinRing { to { --a: 360deg; } }
.karla-photo { position: relative; z-index: 1; display: block; width: 100%; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lift); }
.karla-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1s var(--ease-out); }
.karla-photo:hover img { transform: scale(1.05); }
.karla-badge {
  position: absolute; z-index: 2; left: -12px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lift);
  animation: floatSoft 5s ease-in-out infinite;
}
.karla-badge b { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--brand); line-height: 1; }
.karla-badge span { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted-foreground); }
@keyframes floatSoft { 50% { transform: translateY(-10px); } }
@media (min-width: 700px) { .karla-badge { left: -36px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.chips li {
  font-size: 12.5px; font-weight: 400; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--foreground);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.chips li:hover { background: var(--brand); color: var(--on-dark); transform: translateY(-3px); }
.karla-copy { margin-top: 20px; display: grid; gap: 14px; }
.karla-copy p { color: var(--muted-foreground); line-height: 1.8; }
.karla-copy b { color: var(--foreground); }
.quote {
  position: relative; margin-top: 32px; padding: 30px 30px 30px 34px; border-radius: 24px;
  background: var(--night); color: var(--on-dark);
  font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.45;
  overflow: hidden;
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gradient-brand); }
.quote-mark { position: absolute; right: 18px; top: -24px; font-size: 9rem; line-height: 1; color: var(--brand); opacity: .35; font-style: normal; }

/* ============ Gallery ============ */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.gallery-item {
  position: relative; overflow: hidden; display: block;
  border-radius: 22px; aspect-ratio: 1/1; padding: 0;
  box-shadow: var(--shadow-soft); background: var(--muted);
}
.gallery-big { grid-column: auto; grid-row: auto; }
@media (max-width: 899px) { .gallery-big { grid-row: auto; } }
@media (min-width: 900px) { .gallery-item { border-radius: 28px; } }
.gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s;
}
.gallery-item:hover img { transform: scale(1.08) rotate(1deg); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(183,28,62,.85), rgba(20,19,22,.1) 60%);
  opacity: 0; transition: opacity 0.5s ease;
}
.gallery-caption {
  position: absolute; z-index: 1; inset: auto 16px 16px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--on-dark); font-size: 14px; text-align: left;
  transform: translateY(20px); opacity: 0; transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.gallery-caption b { font-family: var(--font-display); font-size: 1.05rem; }
.gallery-caption em {
  background: rgba(255,255,255,.2); backdrop-filter: blur(10px);
  padding: 5px 12px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 400; white-space: nowrap;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }

/* ============ Portfolio card ============ */
.portfolio-card {
  position: relative; overflow: hidden; border-radius: 36px;
  background: var(--gradient-brand); box-shadow: var(--shadow-brand);
  display: grid; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .portfolio-card { grid-template-columns: 1fr 1fr; border-radius: 48px; } }
.pf-shapes { position: absolute; inset: 0; pointer-events: none; }
.pf-shapes i {
  position: absolute; border: 2px solid rgba(255,255,255,.25); border-radius: 50%;
  animation: floatSoft 7s ease-in-out infinite;
}
.pf-shapes i:nth-child(1) { width: 420px; height: 420px; right: -140px; top: -160px; }
.pf-shapes i:nth-child(2) { width: 220px; height: 220px; right: 18%; bottom: -110px; animation-delay: -2s; }
.pf-shapes i:nth-child(3) { width: 80px; height: 80px; right: 8%; top: 40%; background: rgba(255,255,255,.12); border: 0; animation-delay: -4s; }
.portfolio-image { position: relative; z-index: 1; padding: 28px 28px 0; transition: transform 0.2s ease-out; }
@media (min-width: 860px) { .portfolio-image { padding: 48px; } }
.portfolio-image img { width: 100%; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); transform: rotate(-3deg); transition: transform 0.6s var(--ease-out); }
.portfolio-card:hover .portfolio-image img { transform: rotate(0deg) scale(1.02); }
.portfolio-body {
  position: relative; z-index: 1;
  padding: 36px 30px 44px; color: var(--on-dark);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
@media (min-width: 860px) { .portfolio-body { padding: 64px 64px 64px 16px; } }
.portfolio-body h2 { color: var(--on-dark); }
.portfolio-body p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ============ Contact ============ */
.contact-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-title { margin-top: 16px; font-size: clamp(2.6rem, 6vw, 5rem); }
.contact-grid .section-sub { margin: 22px 0 34px; }
.socials { display: grid; gap: 14px; }
@media (min-width: 600px) { .socials { grid-template-columns: 1fr 1fr; } }
.socials a {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 18px;
  padding: 22px; border-radius: 24px; min-height: 108px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s, color 0.3s;
}
.socials a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out);
}
.socials a:hover::before { transform: scaleY(1); }
.socials a:hover { color: var(--on-dark); border-color: var(--night); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.soc-ico {
  width: 58px; height: 58px; flex: none; display: grid; place-items: center;
  border-radius: 18px; background: var(--gradient-brand); color: var(--on-dark);
  transition: transform 0.5s var(--ease-spring);
}
.soc-ico svg { width: 28px; height: 28px; display: block; }
.socials a:hover .soc-ico { transform: rotate(-10deg) scale(1.08); }
.soc-text { display: flex; flex-direction: column; min-width: 0; word-break: break-word; color: var(--muted-foreground); transition: color 0.3s; }
.socials a:hover .soc-text { color: var(--on-dark-muted); }
.soc-text b { font-family: var(--font-display); font-size: 1.1rem; color: var(--foreground); transition: color 0.3s; }
.socials a:hover .soc-text b { color: var(--on-dark); }
.soc-go { position: absolute; top: 14px; right: 16px; font-size: 16px; opacity: .4; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.socials a:hover .soc-go { opacity: 1; transform: translate(3px, -3px); color: var(--brand-3); }

/* ============ Footer ============ */
.footer { background: var(--night); color: var(--on-dark-muted); overflow: hidden; }
.footer-big { padding: 60px 0 20px; white-space: nowrap; overflow: hidden; }
.footer-big span {
  display: inline-block; font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(4rem, 15vw, 14rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14);
  padding-left: 24px;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1.6s var(--ease-out);
}
.footer-big.is-visible span { background-size: 100% 100%; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 28px 24px 36px; border-top: 1px solid var(--line-dark);
  text-align: center; font-size: 13px;
}
.footer-inner a { color: var(--on-dark); font-weight: 400; transition: color 0.2s; }
.footer-inner a:hover { color: var(--brand-3); }
.footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-inner { padding-bottom: 110px; }
@media (min-width: 800px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; padding-bottom: 36px; padding-right: 110px; } }

/* ============ Floating buttons ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-brand); color: var(--on-dark);
  box-shadow: var(--shadow-brand); transition: transform 0.4s var(--ease-spring);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand);
  animation: ripple 2.2s infinite;
}
.wa-float:hover { transform: scale(1.12) rotate(-8deg); }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; bottom: 96px; right: 30px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--foreground); font-weight: 400; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring), background 0.3s, color 0.3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--night); color: var(--on-dark); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px;
  background: rgba(20,19,22,.92); backdrop-filter: blur(18px);
  animation: lbIn 0.4s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.lb-figure img {
  max-height: 80vh; max-width: min(92vw, 1000px); width: auto;
  border-radius: 24px; box-shadow: var(--shadow-brand); object-fit: contain;
  animation: lbImg 0.5s var(--ease-out) both;
}
.lb-figure img.swap { animation: none; }
@keyframes lbImg { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.lb-figure figcaption { display: flex; gap: 16px; align-items: center; color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.lb-figure figcaption b { color: var(--brand-3); font-family: var(--font-display); }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 28px; line-height: 1; color: var(--on-dark);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  transition: background 0.2s, transform 0.3s var(--ease-spring);
}
.lb-btn:hover { background: var(--brand); transform: scale(1.1); }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-prev, .lb-next { position: absolute; bottom: 24px; }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }
@media (min-width: 800px) {
  .lb-prev, .lb-next { position: static; }
  .lb-figure img { border-radius: 32px; }
}
@media (max-width: 799px) { .lb-figure { margin-bottom: 70px; } }

/* ============ Acessibilidade ============ */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .marquee-track { animation: none; }
}

body{font-weight:300;}
h1,h2{font-weight:300;letter-spacing:-0.01em;}
h3{font-weight:400;}
.marquee{display:none;}

/* ===== Ajustes: menos efeitos ===== */
.text-gradient{animation:none;background-size:100% auto;}
.hero-chev{animation:drawChev 2.2s 1.1s var(--ease-out) forwards;}
.pulse-dot,.wa-float::before,.karla-badge{animation:none;}
.btn-brand::before{display:none;}
.pillar:hover{transform:translateY(-4px);}
.pillar:hover .pillar-ico{transform:none;}
.math-card:hover{transform:translateY(-4px);}
.math-card:hover .math-op{transform:none;}
.chips li:hover{transform:none;}
.service-card:hover .service-arrow{transform:none;}
.wa-float:hover{transform:scale(1.06);}
.portfolio-image img{transform:none;}
.portfolio-card:hover .portfolio-image img{transform:none;}
.karla-photo:hover img{transform:none;}

/* ===== Estratégia mobile ===== */
@media (max-width:699px){
  .equation{flex-direction:column;gap:4px;padding:26px 16px;font-size:1.7rem;}
  .eq-op{font-size:1.5rem;}
  .math-grid{gap:12px;}
  .math-card{min-height:150px;padding:20px 16px;border-radius:22px;}
  .math-op{font-size:3.6rem;top:6px;right:14px;}
  .math-card b{font-size:1.15rem;}
  .math-card em{font-size:.88rem;line-height:1.35;display:block;}
}

/* ===== Portfólio e Contato mais próximos ===== */
#galeria{padding-bottom:40px;}
#portfolio{padding-top:20px;padding-bottom:40px;}
#contato{padding-top:40px;padding-bottom:70px;}
#galeria .section-head{margin-bottom:36px;}
@media (min-width:800px){
  #galeria{padding-bottom:50px;}
  #portfolio{padding-top:20px;padding-bottom:50px;}
  #contato{padding-top:50px;padding-bottom:90px;}
}

/* ===== Galeria: todas do mesmo tamanho ===== */
.gallery-item{aspect-ratio:1/1;width:100%;height:auto;}
.gallery-item img{object-fit:cover;width:100%;height:100%;}
.gallery-item:hover img{transform:scale(1.04);}

/* ===== Rodapé ===== */
.footer-inner{padding:32px 24px 100px;gap:12px;border-top:0;}
.footer-inner p{margin:0;}
@media (min-width:800px){.footer-inner{padding:30px 110px 30px 24px;}}
.equation.is-visible .eq-op,.equation.is-visible .eq-result{animation:none;}
@media (max-width:699px){.eq-result{padding:4px 18px 6px;font-size:1.5rem;margin-top:4px;}}

/* Galeria sem legendas */
.gallery-caption,.gallery-item::after{display:none!important;}
.gallery{grid-template-columns:repeat(2,1fr);}
@media (min-width:900px){.gallery{grid-template-columns:repeat(3,1fr);}}

/* ===== Ajustes mobile ===== */
html,body{overflow-x:hidden;max-width:100%;}
img{max-width:100%;height:auto;}
@media (max-width:699px){
  .container{padding-left:20px;padding-right:20px;}
  h1,#hero-title{font-size:clamp(2rem,9vw,2.6rem);line-height:1.08;word-break:break-word;}
  h2{font-size:clamp(1.6rem,7.5vw,2.2rem);line-height:1.12;}
  .section{padding:72px 0;}
  .hero-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch;}
  .hero-actions .btn,.portfolio-actions .btn{width:100%;justify-content:center;}
  .portfolio-actions{display:flex;flex-direction:column;gap:12px;}
  .hero-chev,.hero-chev-l,.hero-chev-r{display:none;}
  .stats{grid-template-columns:1fr 1fr;gap:24px;}
  .socials a{min-width:0;} .socials a *{overflow-wrap:anywhere;}
  .footer-inner{padding-bottom:90px;}
}
