/* ===== ZULA — Tokens ===== */
:root {
  --red: #e5231b;
  --red-bright: #ff3a26;
  --red-deep: #8f160f;
  --red-grad: linear-gradient(135deg, #ff3a26 0%, #d61c12 45%, #7a1510 100%);
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --white: #fafafa;
  --ink: #111;
  --radius-xl: 56px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.container-wide { width: min(1260px, calc(100% - 32px)); margin-inline: auto; }

/* Ambient red glow on dark sections */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(229, 35, 27, 0.10), transparent 70%),
    radial-gradient(500px 400px at 10% 75%, rgba(229, 35, 27, 0.08), transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 14px; border: 1.5px solid transparent;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(229, 35, 27, .7); }
.btn-red:hover { background: var(--red-bright); }
.btn-outline { border-color: #222; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); }

/* ===== Spark ===== */
.spark { fill: var(--red); }
.spark.sm { width: clamp(18px, 2.4vw, 32px); height: auto; flex: none; }
.spark.xs { width: 16px; height: 16px; fill: #777; }

/* ===== Nav ===== */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.nav {
  width: min(880px, 100%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(14, 14, 14, .92); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 32px;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.nav-links { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #d4d4d4; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--red); transition: width .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 22px; fill: var(--red); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; justify-self: end; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { width: min(880px, 100%); margin-top: 8px; background: #111; border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 16px; border-radius: 12px; }
.mobile-menu a:hover { background: var(--surface-2); }

/* ===== Hero ===== */
.hero {
  background: var(--white); color: var(--ink);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 140px 16px 0;
  overflow: hidden; position: relative;
}
.hero-inner { width: min(var(--max), 100%); margin-inline: auto; position: relative; }
.spark-hero { position: absolute; left: 0; top: -10px; width: 64px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { text-align: center; font-size: clamp(32px, 5.6vw, 64px); font-weight: 600; }
.hl { color: var(--red); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.hero-copy p { font-size: 15px; color: #444; max-width: 300px; margin: 0 0 20px; }
.hero-visual { position: relative; height: 440px; display: flex; justify-content: center; align-items: flex-end; }
.hero-circle {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--red-grad);
  display: grid; place-items: center;
  box-shadow: 0 30px 80px -20px rgba(229, 35, 27, .55);
}
.hero-circle::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(229,35,27,.35); animation: spin 40s linear infinite; }
.hero-z { width: 190px; height: 150px; fill: #fff; margin-top: -60px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; margin: 0; width: 130px; border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.fc-1 { left: 0; top: 50px; rotate: -8deg; animation: bob 6s ease-in-out infinite; }
.fc-2 { right: 0; top: 110px; rotate: 7deg; animation: bob 7s ease-in-out infinite .6s; }
.float-card, .hero-circle { transition: translate .4s ease-out; }
.squiggle { position: absolute; left: 16%; bottom: 110px; width: 32px; color: var(--ink); }
.hero-ctas {
  position: relative; z-index: 2; margin-bottom: 28px;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(17,17,17,.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
}
.hero-ctas .btn { padding: 10px 18px; font-size: 13px; }
.hero-badge { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.stars { color: var(--red); letter-spacing: 3px; font-size: 18px; }
.hero-badge strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-top: 4px; }
.hero-badge span { font-size: 13px; color: #555; }

/* ===== Stats ===== */
.stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1b1b1b, #121212);
  padding: 24px 16px;
}
.stat { text-align: center; padding: 4px 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
.stat em { font-style: normal; color: var(--red); }
.stat > span { font-size: 13px; color: var(--muted); }

/* ===== About ===== */
.about { padding: 96px 0 40px; }
.about-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; padding-inline: 24px; }
.about-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.about-head p { color: #c9c9c9; font-size: 14px; margin: 0; max-width: 440px; }
.about-media { position: relative; display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; margin-top: 40px; align-items: start; padding-inline: 24px; }
.spark-about { position: absolute; left: 0; top: -20px; width: 40px; z-index: 2; }
.about-main, .about-side { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.about-main { margin-top: 24px; height: 340px; }
.about-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.about-side { height: 440px; }
.about-side img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s; }
.about-main:hover img, .about-side:hover img { filter: none; }
.tag-bar {
  position: absolute; left: 28px; bottom: 16px; right: 28px;
  display: flex; align-items: stretch; gap: 6px;
}
.tag-bar span { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 10px 24px; line-height: 1.35; flex: 1; letter-spacing: .02em; }
.tag-bar i { width: 10px; background: var(--red); }
.tag-bar i:nth-of-type(2) { width: 5px; }
.tag-bar i:nth-of-type(3) { width: 3px; }

/* ===== Services ===== */
.services-wrap { padding: 64px 0; }
.services {
  position: relative;
  background: linear-gradient(180deg, #1a1a1a, #131313);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 64px 48px 64px 72px;
  display: grid; grid-template-columns: 1.05fr 1fr 0.7fr; gap: 24px; align-items: start;
}
.side-label {
  position: absolute; left: 0; top: 48px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 14px 6px;
}
.pill-title { font-size: clamp(24px, 3vw, 36px); }
.hl-box { background: var(--red); color: #fff; padding: 0 12px; border-radius: 10px; display: inline-block; transform: rotate(-2deg); }
.services-left .muted { font-size: 14px; max-width: 340px; }
.service-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 360px; }
.service {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: 13px 20px; font-size: 14px; text-align: left;
  transition: background .25s, border-color .25s, color .25s;
}
.service b { font-family: var(--font-display); color: var(--red); font-weight: 600; font-size: 13px; }
.service .arr { margin-left: auto; transition: transform .25s; }
.service:hover, .service[aria-expanded="true"] { background: var(--red); border-color: var(--red); }
.service:hover b, .service[aria-expanded="true"] b { color: #fff; }
.service:hover .arr, .service[aria-expanded="true"] .arr { transform: translateX(4px); }

.services-media { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 100%; min-height: 460px; }
.services-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); position: absolute; inset: 0; }
.orbit { position: absolute; inset: 0; margin: auto; width: 110%; left: -5%; top: -10%; animation: spin 30s linear infinite; }
.orbit text { fill: #ff6b5f; font-size: 13px; font-weight: 700; letter-spacing: 2px; font-family: var(--font-body); }
.service-detail {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(13,13,13,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.service-detail strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.service-detail p { margin: 6px 0 0; font-size: 13px; color: #cfcfcf; line-height: 1.5; }

.services-cards { display: grid; gap: 14px; height: 100%; }
.mini-card { border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; transition: transform .25s; }
.mini-card:hover { transform: translateY(-4px); }
.mini-card p { margin: 0; font-size: 13px; line-height: 1.5; }
.mini-card.dark { background: #232323; color: #ccc; }
.mini-card.red { background: var(--red-grad); color: #fff; }
.mini-cta { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mini-cta i { font-style: normal; font-size: 18px; }
.mini-cta .circle { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 15px; }

/* ===== Slogan ===== */
.slogan { padding: 56px 0 24px; }
.slogan-text {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px);
  font-family: var(--font-display); font-weight: 800; text-transform: none;
  font-size: clamp(22px, 4.6vw, 60px); letter-spacing: -0.01em; margin: 0; flex-wrap: wrap;
}
.slogan-text span:nth-child(3) { color: var(--red); }
.divider { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.divider i { flex: 1; height: 1px; background: #444; }

/* ===== Portfolio ===== */
.panel {
  margin-top: 56px;
  background: linear-gradient(180deg, #1a1a1a, #131313);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: transparent; border: 1px solid var(--line); color: #ccc; padding: 8px 16px; border-radius: 999px; font-size: 13px; transition: all .2s; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.active { background: #fff; color: var(--ink); border-color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.work {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; position: relative;
  aspect-ratio: 4 / 5; transition: transform .35s, opacity .35s;
}
.work.hide { display: none; }
.work img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.work:hover img { transform: scale(1.06); }
.work-info {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 12px; padding: 12px 14px;
  transform: translateY(8px); opacity: .95; transition: transform .3s;
}
.work:hover .work-info { transform: none; }
.work-info span { display: block; font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.work-info strong { font-size: 14px; font-weight: 600; }

/* ===== Process ===== */
.process { padding: 96px 0 40px; }
.process h2 { font-size: clamp(26px, 3.4vw, 40px); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 22px;
  background: var(--surface); position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.step::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.step:hover { border-color: rgba(229,35,27,.5); transform: translateY(-4px); }
.step:hover::before { transform: scaleX(1); }
.step b { font-family: var(--font-display); font-size: 36px; color: transparent; -webkit-text-stroke: 1px var(--red); }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Clients marquee ===== */
.clients { padding: 48px 0 24px; text-align: center; }
.clients-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #6b6b6b; white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: #fff; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Ribbon ===== */
.ribbon { margin: 56px 0 24px; background: #fff; color: var(--ink); transform: rotate(-2.5deg) scale(1.04); overflow: hidden; padding: 10px 0; border-block: 2px solid var(--ink); }
.ribbon-track { display: flex; align-items: center; gap: 20px; width: max-content; animation: scroll 26s linear infinite; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--red); }
.ribbon-track span { color: var(--ink); white-space: nowrap; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 80px 0 0; }
.contact h2 { font-size: clamp(28px, 4vw, 48px); }
.contact .muted { max-width: 460px; font-size: 15px; }
.subscribe { display: flex; gap: 6px; max-width: 440px; margin-top: 24px; padding: 6px; border-radius: 999px; background: #fff; }
.subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font: inherit; font-size: 14px; color: var(--ink); background: transparent; }
.form-msg { min-height: 24px; font-size: 14px; color: #7ee787; margin: 10px 0 0; }
.contact-visual { position: relative; height: 380px; display: grid; place-items: end center; }
.contact-z {
  width: 320px; height: 320px; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--red-grad); display: grid; place-items: center;
  box-shadow: 0 40px 100px -30px rgba(229,35,27,.6);
  animation: morph 10s ease-in-out infinite;
}
.contact-z svg { width: 150px; height: 120px; fill: #fff; }
@keyframes morph { 50% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; } }

/* ===== Footer ===== */
footer { padding: 0 0 24px; }
.footer {
  background: var(--red-grad); color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 48px; margin-top: 0;
}
.footer-top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand-footer { font-size: 36px; }
.brand-footer .brand-mark { width: 44px; height: 34px; fill: #fff; }
.footer-top p { max-width: 380px; margin: 0; font-size: 14px; opacity: .9; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 32px; padding: 32px 0; }
.footer-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-cols a, .footer-cols span { display: block; font-size: 14px; opacity: .85; margin-bottom: 8px; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.footer-news p { font-size: 14px; opacity: .85; margin: 0 0 12px; }
.news-form { display: flex; gap: 6px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 5px; }
.news-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding: 0 12px; font: inherit; font-size: 13px; }
.news-form input::placeholder { color: rgba(255,255,255,.75); }
.news-form button { border: 0; background: #fff; color: var(--red); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 11px; font-weight: 700; transition: background .2s, color .2s; }
.socials a:hover { background: #fff; color: var(--red); }

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 28px;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-z { width: 90px; height: 70px; fill: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
.preloader-bar { width: 140px; height: 2px; background: #2a2a2a; border-radius: 2px; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 40%; background: var(--red); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

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

/* Link activo na navegação */
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

/* Portfólio clicável */
.work { cursor: zoom-in; }
.work::after {
  content: "↗"; position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 16px;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s;
}
.work:hover::after, .work:focus-visible::after { opacity: 1; transform: none; }
.work:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ===== Lightbox ===== */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 24px; }
.lightbox::backdrop { background: rgba(5,5,5,.92); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zoomIn .35s ease; }
@keyframes zoomIn { from { transform: scale(.94); opacity: 0; } }
.lightbox figcaption { text-align: center; }
.lb-client { display: block; color: var(--red-bright); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.lb-title { font-family: var(--font-display); font-weight: 500; }
.lb-nav, .lb-close {
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 18px; transition: background .2s;
}
.lb-nav:hover, .lb-close:hover { background: var(--red); border-color: var(--red); }
.lb-close { position: absolute; top: 20px; right: 20px; }

/* ===== FAQ ===== */
.faq { padding: 96px 0 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .muted { font-size: 15px; max-width: 320px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(229,35,27,.45); background: #1b1414; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  font-weight: 600; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: #bdbdbd; font-size: 15px; }
.plus { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #262626; position: relative; transition: background .3s, transform .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; translate: -50% -50%; }
.plus::after { rotate: 90deg; transition: rotate .3s; }
.faq-item[open] .plus { background: var(--red); transform: rotate(180deg); }
.faq-item[open] .plus::after { rotate: 0deg; }

/* ===== Formulário de contacto ===== */
.contact-form { display: grid; gap: 14px; max-width: 520px; margin-top: 28px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: #fff; font: inherit; font-size: 15px; padding: 24px 16px 10px; resize: vertical; outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--red); background: #1b1515; }
.field label { position: absolute; left: 17px; top: 17px; color: #888; font-size: 15px; pointer-events: none; transition: all .2s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11px; color: var(--red-bright); letter-spacing: .04em; }
.field-chips { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field-chips legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.field-chips input { position: absolute; opacity: 0; pointer-events: none; }
.field-chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #ccc; cursor: pointer; transition: all .2s; user-select: none; }
.field-chips span:hover { border-color: #fff; color: #fff; }
.field-chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.field-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.btn-lg { padding: 16px 28px; font-size: 15px; gap: 10px; justify-self: start; }
.wa-ico { width: 20px; height: 20px; fill: currentColor; }
.form-alt { margin: 0; font-size: 13px; color: var(--muted); }
.form-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-badge {
  position: absolute; background: rgba(23,23,23,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; display: grid;
  animation: bob 6s ease-in-out infinite;
}
.contact-badge b { font-family: var(--font-display); font-size: 22px; color: var(--red-bright); font-weight: 600; }
.contact-badge span { font-size: 12px; color: var(--muted); }
.cb-1 { top: 30px; left: 0; }
.cb-2 { bottom: 20px; right: 0; animation-delay: 1.2s; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: ping 2.4s ease-out infinite; z-index: -1; }
@keyframes ping { 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-tip {
  position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  opacity: 0; translate: 8px 0; transition: opacity .25s, translate .25s; pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; translate: 0 0; }

/* Pausa nos marquees ao passar o rato */
.marquee:hover .marquee-track, .ribbon:hover .ribbon-track { animation-play-state: paused; }

/* Botões magnéticos */
.magnetic { transition: transform .2s ease-out, background .25s, color .25s, box-shadow .25s; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; padding: 56px 32px 40px 56px; }
  .services-cards { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .brand { justify-self: start; }

  .hero { padding-top: 120px; border-radius: 0 0 40px 40px; }
  .spark-hero { width: 40px; top: -40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-badge { order: -1; align-items: center; text-align: center; }
  .hero-visual { height: 440px; align-items: flex-start; }
  .hero-ctas { margin: 0; background: var(--ink); }
  .hero-circle { width: 340px; height: 340px; bottom: -110px; }
  .hero-z { width: 140px; height: 110px; margin-top: -90px; }
  .float-card { width: 96px; }
  .fc-1 { top: 120px; }
  .fc-2 { top: 160px; }
  .squiggle { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }

  .about-head { grid-template-columns: 1fr; gap: 16px; padding-inline: 0; }
  .about-media { grid-template-columns: 1fr; padding-inline: 0; }
  .about-main { margin-top: 0; height: 280px; }
  .about-side { height: 360px; }
  .tag-bar { left: 12px; right: 12px; }

  .services { grid-template-columns: 1fr; padding: 48px 20px 24px 44px; }
  .services-media { min-height: 420px; }
  .service-list { max-width: none; }

  .panel { padding: 32px 20px; }
  .contact { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq-head { position: static; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 72px 16px 16px; }
  .lb-nav { display: none; }
  .contact-visual { height: 280px; }
  .contact-z { width: 240px; height: 240px; }

  .footer { padding: 32px 24px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 520px) {
  .work-grid, .steps, .services-cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; border-radius: 24px; }
  .hero-circle { width: 300px; height: 300px; bottom: -100px; }
  .tag-bar span { font-size: 11px; padding: 8px 14px; }
  .slogan-text { flex-direction: column; gap: 6px; }
}

/* =====================================================
   ANIMAÇÕES AVANÇADAS (activas quando o GSAP carrega)
   ===================================================== */

/* GSAP controla as entradas: desliga o reveal simples */
.gsap .reveal { opacity: 1; transform: none; transition: none; }
.gsap .step.reveal { transition: border-color .3s, translate .3s; }
.step:hover { transform: none; translate: 0 -6px; }
.gsap .hero:not(.live) .float-card,
.gsap .hero:not(.live) .hero-z { animation: none; }
.gsap .preloader { transition: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Palavras divididas para reveal com máscara */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .14em .16em; margin: -.1em -.14em -.16em; }
.split-i { display: inline-block; will-change: transform; }

/* Preloader com contador + cortina */
.preloader-count {
  position: absolute; right: 32px; bottom: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 12vw, 160px);
  color: #1d1d1d; line-height: 1;
}
.curtain { position: fixed; inset: 0; background: var(--red-grad); z-index: 101; transform: translateY(100%); pointer-events: none; }

/* Serviços: troca de imagem com cortina */
.services-media .svc-img {
  clip-path: inset(0 0 100% 0); transform: scale(1.15);
  transition: clip-path .9s cubic-bezier(.77,0,.18,1), transform 1.2s cubic-bezier(.22,1,.36,1);
}
.services-media .svc-img.active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.services-media .orbit, .services-media .service-detail { z-index: 2; }
.service-detail strong, .service-detail p { display: block; }

/* Portfólio: cartões 3D com brilho */
.work-grid { perspective: 1200px; }
.work { transform-style: preserve-3d; will-change: transform; }
.work .glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 55%);
  mix-blend-mode: overlay;
}
.work:hover .glare { opacity: 1; }
.work-info { z-index: 2; }

/* Linha de progresso do processo */
.steps { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: -20px; height: 2px; background: #262626; border-radius: 2px; overflow: hidden; }
.steps-line i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.gsap-off .steps-line i { transform: none; }

/* Fita reage à velocidade do scroll */
.ribbon-wrap { will-change: transform; }

/* Assinatura gigante no rodapé */
.footer-giant {
  display: flex; justify-content: space-between; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; line-height: .8;
  font-size: clamp(90px, 24vw, 340px); letter-spacing: -0.04em;
  color: rgba(255,255,255,.95); margin-top: 32px; padding-top: 8px;
}
.footer-giant span { display: inline-block; }

@media (max-width: 1024px) {
  .steps-line { display: none; }
}
