/* ==========================================================================
   VERTEX — Site institucional
   Paleta baseada na identidade oficial VERTEX Digital: preto, branco
   e prata metálico. Destaques centralizados em --accent / --metal.
   ========================================================================== */

:root {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --surface: #0f0f12;
  --surface-2: #15151a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #a4a4ad;
  --text-3: #6e6e78;

  --accent: #d9dae0;
  --accent-2: #b9bbc4;
  --accent-rgb: 214, 216, 224;
  --on-accent: #0a0a0c;
  --metal: linear-gradient(135deg, #ffffff 0%, #d4d5db 30%, #9a9ca5 52%, #eeeef2 74%, #b4b6be 100%);
  --metal-text: linear-gradient(100deg, #ffffff 0%, #c3c5cd 38%, #ffffff 62%, #8e9099 100%);
  --wa: #25d366;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.muted { color: var(--text-3); }
.accent-text {
  background: var(--metal-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-2); font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), background-color .3s, border-color .3s, color .3s, box-shadow .35s;
}
.btn .ico { transition: transform .35s var(--ease-out); }
.btn:hover svg.ico { transform: translateX(2px); }
.btn-primary {
  background: var(--metal); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 10px 30px -12px rgba(255,255,255,.28);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.7) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 16px 40px -12px rgba(255,255,255,.4); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn-xl { --h: 64px; padding: 0 36px; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.btn-xl .ico { width: 22px; height: 22px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s, gap .3s; }
.text-link:hover { border-color: var(--accent); gap: 12px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #8e9099, #ffffff); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, border-color .4s, height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 6, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  --header-h: 64px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img { height: 42px; width: auto; transition: transform .5s var(--ease-out), opacity .3s; }
.site-header.is-scrolled .logo-img { height: 36px; }
.logo:hover .logo-img { opacity: .85; }
.logo-footer img { width: 210px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { flex: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; margin-left: auto; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,5,6,.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ol li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.02em;
  transform: translateY(100%); transition: transform .6s var(--ease-out), color .3s;
}
.mobile-menu ol a span { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--accent-2); letter-spacing: .1em; }
.mobile-menu.is-open ol a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu-foot { display: grid; gap: 14px; text-align: center; }
.mobile-menu-foot p { color: var(--text-3); font-size: 14px; }

/* ---------- Shared bg ---------- */
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 620px; height: 620px; right: -120px; top: 6%; background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 65%); animation: float 14s var(--ease) infinite alternate; }
.glow-2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 65%); animation: float 18s var(--ease) infinite alternate-reverse; }
@keyframes float { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.02); margin-bottom: 28px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); } }

.hero-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title em { font-style: normal; color: transparent; background: var(--metal-text); -webkit-background-clip: text; background-clip: text; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { color: var(--text-2); font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 50ch; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero devices */
.hero-visual { position: relative; padding: 24px 0 56px; perspective: 1600px; }
.device-laptop { position: relative; transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease-out); }
.hero-visual:hover .device-laptop { transform: rotateY(-4deg) rotateX(2deg); }
.laptop-screen {
  position: relative;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 12px;
  background: linear-gradient(160deg, #26262c, #111114);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), 0 30px 120px -40px rgba(var(--accent-rgb), .16);
}
.laptop-screen .browser-bar { border-radius: 6px 6px 0 0; }
.laptop-screen .screen-stack { aspect-ratio: 16 / 10; border-radius: 0 0 4px 4px; }
.laptop-base { height: 14px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #2c2c33, #141418 70%); border: 1px solid rgba(255,255,255,.1); border-top: 0; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #0c0c0f; border-radius: 0 0 8px 8px; }
.screen-stack { position: relative; overflow: hidden; background: #000; }
.screen-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 6s linear; }
.screen-stack img.is-active { opacity: 1; transform: scale(1); }

.device-phone {
  position: absolute; right: -2%; bottom: 0;
  width: 25%; min-width: 120px;
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2a2a30, #0e0e11);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.95), -20px 0 60px -30px rgba(var(--accent-rgb), .18);
  transform: translateZ(60px) rotate(3deg);
  animation: bob 7s var(--ease) infinite alternate;
}
@keyframes bob { to { transform: translateY(-12px) rotate(2deg); } }
.device-phone .screen-stack { aspect-ratio: 9 / 19.5; border-radius: 22px; }
.phone-notch { position: absolute; z-index: 2; top: 13px; left: 50%; width: 32%; height: 11px; transform: translateX(-50%); background: #000; border-radius: 999px; }

.hero-tag {
  position: absolute; left: 4%; bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px;
  background: rgba(15,15,18,.8); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 14px;
  font-size: 13px;
}
.hero-tag-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); padding-right: 12px; border-right: 1px solid var(--line-2); }
.hero-tag-name { font-weight: 600; transition: opacity .4s; }
.hero-tag-name.is-swapping { opacity: 0; }
.hero-orbit { position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; left: -10%; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }

.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #17171c; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #34343c; }
.browser-url { flex: 1; margin-left: 10px; max-width: 280px; height: 18px; line-height: 18px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.05); font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .4s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid var(--line-2); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--text-2); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-stretch: 120%; font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; }
.marquee i { width: 8px; height: 8px; flex: none; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { max-width: 18ch; }

/* About */
.about-head { max-width: 980px; margin-bottom: clamp(56px, 7vw, 96px); }
.about-head .section-title { margin-bottom: 32px; font-size: clamp(2rem, 4.8vw, 4rem); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 40px 36px 44px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar-num { display: block; font-family: var(--font-display); font-stretch: 125%; font-size: 14px; font-weight: 600; color: var(--accent-2); margin-bottom: 48px; }
.pillar h3 { font-family: var(--font-display); font-stretch: 118%; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.pillar p { color: var(--text-2); max-width: 32ch; }
.pillar-line { position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) calc(var(--d, 0s) + .3s); }
.pillar + .pillar .pillar-line { left: 0; }
.pillar.is-in .pillar-line { transform: scaleX(1); }

/* Services */
.services { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 32px 30px 36px;
  min-height: 280px;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease-out);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .07), transparent 45%);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 48px; }
.service-num { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; }
.service-ico { width: 40px; height: 40px; color: var(--accent-2); transition: transform .6s var(--ease-out), color .3s; }
.service-card:hover .service-ico { transform: translateY(-3px) rotate(-6deg); color: #fff; }
.service-card h3 { font-family: var(--font-display); font-stretch: 112%; font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.service-card p { color: var(--text-2); font-size: 15px; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease-out);
}
.work-card:hover { border-color: var(--line-2); }
.work-lg { grid-column: span 7; }
.work-sm { grid-column: span 5; }
.work-media {
  --screen-h: 380px;
  position: relative;
  padding: 28px 28px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), .06), transparent 60%),
    linear-gradient(180deg, #121217, var(--surface));
  overflow: hidden;
}
.work-browser { border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transform: translateY(8px); transition: transform .8s var(--ease-out); }
.work-card:hover .work-browser { transform: translateY(0); }
.work-screen { position: relative; height: var(--screen-h); overflow: hidden; background: #000; }
.work-screen img { width: 100%; height: auto; transform: translateY(0); transition: transform 5.5s cubic-bezier(.45, .05, .35, 1); will-change: transform; }
.work-card:hover .work-screen:not(.is-static) img, .work-card:focus-within .work-screen:not(.is-static) img { transform: translateY(var(--shift, -60%)); }
.work-screen.is-static img { height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.work-card:hover .work-screen.is-static img { transform: scale(1.05); }
.work-phone {
  position: absolute; right: 28px; bottom: -40px;
  width: 23%; max-width: 150px;
  padding: 5px; border-radius: 22px;
  background: linear-gradient(160deg, #2a2a30, #0e0e11);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: -10px 20px 50px -10px rgba(0,0,0,.9);
  transition: transform .8s var(--ease-out);
}
.work-phone img { border-radius: 17px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.work-card:hover .work-phone { transform: translateY(-24px) rotate(-2deg); }
.work-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 28px 30px 30px; border-top: 1px solid var(--line); background: var(--surface); flex: 1; }
.work-index { font-family: var(--font-display); font-stretch: 125%; font-size: 13px; font-weight: 600; color: var(--accent-2); padding-top: 4px; }
.work-seg { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.work-text h3 { font-family: var(--font-display); font-stretch: 118%; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.work-desc { color: var(--text-2); font-size: 15px; max-width: 56ch; }
.work-link {
  grid-column: 2; justify-self: start; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600;
  transition: background-color .3s, border-color .3s, color .3s, gap .3s;
}
.work-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.work-card:hover .work-link, .work-link:focus-visible { background: var(--text); color: var(--bg); border-color: var(--text); gap: 12px; }
.work-link .ico { width: 16px; height: 16px; }
.work-link:focus-visible { outline-offset: 4px; }
.work-card { cursor: pointer; }
.portfolio-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; text-align: center; }
.portfolio-cta p { font-family: var(--font-display); font-stretch: 115%; font-size: 1.25rem; font-weight: 500; }

/* ---------- Human ---------- */
.human { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.human::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(var(--accent-rgb), .05), transparent 65%); pointer-events: none; }
.human-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.human-copy .section-title { margin-bottom: 32px; }
.human-text { display: grid; gap: 16px; color: var(--text-2); font-size: 1.06rem; max-width: 56ch; margin-bottom: 36px; }
.human-strong { color: var(--text); font-weight: 500; font-size: 1.15rem; }
.human-list { display: flex; flex-wrap: wrap; gap: 10px; }
.human-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.02); transition: border-color .3s, background-color .3s; }
.human-list li:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }
.human-list .ico { width: 16px; height: 16px; color: var(--accent-2); }

.chat { position: relative; border-radius: 26px; background: #0d0d10; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 80px -40px rgba(var(--accent-rgb), .14); overflow: hidden; max-width: 460px; justify-self: end; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #121216; }
.chat-head strong { display: block; font-size: 15px; letter-spacing: .08em; font-family: var(--font-display); font-stretch: 120%; }
.chat-status { font-size: 12px; color: var(--wa); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 1px solid var(--line-2); }
.chat-avatar img { width: 26px; height: auto; }
.chat-wa { width: 22px; height: 22px; margin-left: auto; color: var(--wa); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 20px; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 16px 16px; min-height: 360px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.msg-in { align-self: flex-start; background: #1c1c22; border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, #f2f2f5, #c9cad1); color: var(--on-accent); border-bottom-right-radius: 4px; }
.msg-typing { align-self: flex-start; display: flex; gap: 4px; background: #1c1c22; padding: 14px 16px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); background: var(--text-2); } 60% { transform: none; } }
.chat.is-in .msg { opacity: 1; transform: none; }
.chat.is-in .msg:nth-child(1) { transition-delay: .3s; }
.chat.is-in .msg:nth-child(2) { transition-delay: 1.1s; }
.chat.is-in .msg:nth-child(3) { transition-delay: 1.9s; }
.chat.is-in .msg:nth-child(4) { transition-delay: 2.7s; }
.chat.is-in .msg:nth-child(5) { transition-delay: 3.5s; }
.chat-note { padding: 10px 20px 14px; font-size: 11px; color: var(--text-3); text-align: center; letter-spacing: .04em; border-top: 1px solid var(--line); }

/* ---------- Process / Timeline ---------- */
.timeline { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 44px; }
.timeline-track { position: absolute; top: 12px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--fill)); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.step { position: relative; }
.step-dot { position: absolute; top: -38px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background-color .5s, border-color .5s, box-shadow .5s; }
.step.is-active .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15); }
.step-num { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--text-3); margin-bottom: 20px; transition: color .6s, -webkit-text-stroke-color .6s; }
.step.is-active .step-num { color: var(--text); -webkit-text-stroke-color: transparent; }
.step h3 { font-family: var(--font-display); font-stretch: 112%; font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 40px); }
.why-head .section-title { margin-bottom: 28px; }
.why-head .lead { margin-bottom: 36px; }
.why-list { border-top: 1px solid var(--line); }
.why-list li { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .5s var(--ease-out); }
.why-list li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.why-list li:hover { padding-left: 10px; }
.why-list li:hover::before { transform: scaleX(1); }
.why-list span { font-size: 13px; font-weight: 600; color: var(--accent-2); letter-spacing: .06em; }
.why-list p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--text-2); font-family: var(--font-display); font-stretch: 108%; letter-spacing: -.01em; line-height: 1.35; }
.why-list strong { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.faq-head .section-title { margin-bottom: 24px; }
.faq-head .lead { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: -.01em;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--metal); border-color: var(--accent); color: var(--on-accent); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { overflow: hidden; }
.faq-answer p { color: var(--text-2); padding: 0 56px 28px 0; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(110px, 15vw, 200px) 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg .grid-lines { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 10%, transparent 70%); }
.cta-glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(var(--accent-rgb), .11), transparent 62%); filter: blur(30px); }
.cta-mark { position: absolute; left: 50%; top: 50%; width: min(86vw, 640px); height: auto; transform: translate(-50%, -50%); opacity: .05; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-title { font-family: var(--font-display); font-stretch: 122%; font-weight: 700; font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.035em; max-width: 16ch; margin-bottom: 30px; text-wrap: balance; }
.cta-title em { font-style: normal; background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta .lead { margin: 0 auto 44px; text-align: center; }
.cta-meta { margin-top: 22px; color: var(--text-3); font-size: 14px; }
.cta-meta a { color: var(--text-2); border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.cta-meta a:hover { color: var(--text); border-color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 36ch; margin-top: 20px; }
.footer-col h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; }
.footer-wa .ico { color: var(--wa); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; font-size: 13px; color: var(--text-3); }
.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: var(--text); }
.to-top { margin-left: auto; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 0;
  height: 58px; padding: 0 17px;
  border-radius: 999px;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55), 0 0 0 1px rgba(255,255,255,.1) inset;
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s, gap .4s var(--ease-out), box-shadow .3s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 14px; transition: max-width .5s var(--ease-out); }
.wa-float:hover { gap: 10px; box-shadow: 0 16px 40px -8px rgba(37, 211, 102, .7); }
.wa-float:hover .wa-float-label { max-width: 160px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s, 1.2s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-title { font-size: clamp(2.4rem, 7.4vw, 4.6rem); }
  .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .timeline-track { display: none; }
  .step-dot { display: none; }
  .timeline { padding-top: 0; }
  .human-inner { grid-template-columns: 1fr; }
  .chat { justify-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .section-head.split { grid-template-columns: 1fr; }
  .work-lg, .work-sm { grid-column: 1 / -1; }
  .work-media { --screen-h: 340px; }
  .why-grid, .faq-inner { grid-template-columns: 1fr; }
  .why-head { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillar-num { margin-bottom: 20px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo-img, .site-header.is-scrolled .logo-img { height: 34px; }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 80px; min-height: auto; }
  .hero-title { font-size: clamp(2.05rem, 10.4vw, 3rem); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-bottom: 64px; }
  .device-laptop { transform: none; }
  .device-phone { width: 30%; min-width: 0; right: 0; border-radius: 20px; padding: 5px; }
  .device-phone .screen-stack { border-radius: 15px; }
  .phone-notch { top: 9px; height: 7px; }
  .hero-tag { left: 0; bottom: 0; }
  .browser-bar { height: 22px; padding: 0 8px; gap: 4px; }
  .browser-bar i { width: 6px; height: 6px; }
  .browser-url { height: 14px; line-height: 14px; font-size: 9px; }
  .scroll-cue { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 26px 24px 28px; }
  .service-top { padding-bottom: 32px; }
  .work-media { --screen-h: 260px; padding: 18px 18px 0; }
  .work-phone { width: 28%; right: 16px; bottom: -30px; border-radius: 16px; padding: 4px; }
  .work-phone img { border-radius: 12px; }
  .work-info { grid-template-columns: 1fr; padding: 24px 22px 26px; }
  .work-index { display: none; }
  .work-link { grid-column: 1; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 28px; }
  .timeline-track { display: block; top: 6px; bottom: 6px; left: 6px; right: auto; width: 1px; height: auto; }
  .timeline-fill { transform-origin: top; transform: scaleY(var(--fill)); }
  .step { display: grid; grid-template-columns: 52px 1fr; padding: 0 0 36px; }
  .step-dot { display: block; top: 6px; left: -28px; }
  .step-num { font-size: 1.6rem; margin: 0; }
  .human-list li { font-size: 13.5px; }
  .chat-body { min-height: 330px; }
  .faq-answer p { padding-right: 0; }
  .faq-item summary { padding: 22px 0; }
  .cta .btn-xl { width: 100%; padding: 0 20px; font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .to-top { margin-left: 0; }
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 54px; padding: 0 15px; }
}

@media (hover: none) {
  .work-card.is-in .work-screen:not(.is-static) img { animation: autoScroll 14s cubic-bezier(.45, .05, .35, 1) 1s infinite alternate; }
  @keyframes autoScroll { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(var(--shift, -60%)); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .work-card:hover .work-screen img { transform: none; }
}

/* ---------- Página legal ---------- */
.legal-page .site-header { position: sticky; }
.legal-back { margin-left: auto; }
.legal { max-width: 820px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(80px, 10vw, 120px); }
.legal .section-title { margin-bottom: 12px; }
.legal-updated { color: var(--text-3); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 1.3rem; font-weight: 600; margin: 40px 0 12px; }
.legal p { color: var(--text-2); margin-bottom: 14px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--accent); }
.legal-page .site-footer { padding-top: 0; }

/* ---------- Serviço personalizado / Loja virtual ---------- */
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; width: fit-content; transition: gap .3s, border-color .3s; position: relative; z-index: 1; }
.service-link:hover { gap: 12px; border-color: var(--text); }
.service-link .ico { width: 16px; height: 16px; }
.ecom { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 32px; padding: 30px 32px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 60%); }
.ecom-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); }
.ecom-icon svg { width: 28px; height: 28px; }
.ecom h3 { font-family: var(--font-display); font-stretch: 112%; font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.ecom p { color: var(--text-2); font-size: 15px; max-width: 70ch; }
.ecom-btn { text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; }
.cta-alt { margin-top: 14px; height: 48px; font-size: 14px; }
@media (max-width: 900px) {
  .ecom { grid-template-columns: 1fr; padding: 26px 22px; }
  .ecom-btn { justify-self: start; }
}
@media (max-width: 640px) {
  .ecom-btn, .cta-alt { width: 100%; white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; text-align: center; }
  .brief-page .wa-float { display: none; }
}
.legal strong { color: var(--text); font-weight: 600; }
