/* =========================================================
   KWaut — site v1
   Paleta: azul-marinho da marca (#10253F), azul elétrico,
   ciano de arco elétrico e azul-claro do "aut" (#B4C8DF)
   ========================================================= */
:root {
  --navy-950: #040c18;
  --navy-900: #071426;
  --navy-800: #0c1f38;
  --navy-700: #10253f;          /* azul da logo */
  --navy-600: #183457;
  --blue-500: #1f6feb;          /* azul elétrico */
  --blue-400: #3d8bff;
  --cyan-300: #6fe3ff;          /* arco */
  --ice-200: #b4c8df;           /* "aut" da logo */
  --ice-100: #dfe9f5;
  --ice-50:  #f3f7fc;
  --white:   #ffffff;
  --ink:     #0b1a2e;
  --muted:   #5a6b82;
  --muted-d: #93a6bf;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(7, 20, 38, .35);
  --glow: 0 0 0 1px rgba(111, 227, 255, .35), 0 0 24px rgba(61, 139, 255, .45), 0 0 60px rgba(31, 111, 235, .25);

  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--navy-900);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--cyan-300); outline-offset: 3px; border-radius: 6px; }

/* ---------- barra de progresso (carga) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-300));
  box-shadow: 0 0 10px var(--cyan-300), 0 0 20px var(--blue-400);
}

/* ---------- botões ---------- */
.btn {
  --bg: var(--blue-500);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--f-body); color: var(--white); text-decoration: none;
  background: var(--bg);
  box-shadow: 0 8px 24px -8px rgba(31, 111, 235, .7);
  transition: transform .2s, box-shadow .25s, background .25s;
  isolation: isolate; overflow: visible;
}
.btn svg { font-size: 18px; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); background: var(--blue-400); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: .7em 1.2em; font-size: 14px; }
.btn--full { width: 100%; }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--ice-100);
  box-shadow: inset 0 0 0 1px rgba(180, 200, 223, .3);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--cyan-300), 0 0 24px rgba(111,227,255,.2); }
.btn--light { background: var(--white); color: var(--navy-700); }
.btn--light:hover { background: var(--white); }
/* faíscas geradas no hover (app.js) */
.spark {
  position: absolute; width: 2px; height: 10px; border-radius: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--white), var(--cyan-300));
  box-shadow: 0 0 6px var(--cyan-300);
  animation: spark .55s ease-out forwards;
}
@keyframes spark {
  from { opacity: 1; transform: translate(0,0) rotate(var(--r)) scaleY(1); }
  to   { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleY(.2); }
}

/* ---------- navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(7, 20, 38, .78);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(180, 200, 223, .12);
}
.nav__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--ice-100); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav__links a.is-active { color: var(--cyan-300); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--cyan-300); box-shadow: 0 0 8px var(--cyan-300);
}
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: grid; gap: 4px; padding: 8px 16px 20px;
  background: rgba(7, 20, 38, .96); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(180,200,223,.12);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a { color: var(--ice-100); text-decoration: none; padding: 12px 8px; font-weight: 500; border-bottom: 1px solid rgba(180,200,223,.08); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: grid; align-items: center;
  padding: 120px 0 90px; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(31, 111, 235, .22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(111, 227, 255, .08), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
}
.hero__canvas, .cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: auto -10% -40% -10%; height: 60%;
  background: radial-gradient(closest-side, rgba(31,111,235,.25), transparent);
  filter: blur(40px); pointer-events: none;
}
.hero__in { position: relative; z-index: 2; max-width: 1200px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 7px 14px; border-radius: 999px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-300); background: rgba(111, 227, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(111, 227, 255, .25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 10px var(--cyan-300); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero__title { font-size: clamp(38px, 6.4vw, 80px); font-weight: 700; max-width: 15ch; }
.charged {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--blue-400) 0%, var(--cyan-300) 40%, #fff 50%, var(--cyan-300) 60%, var(--blue-400) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: current 4s linear infinite, flicker 6s infinite;
  filter: drop-shadow(0 0 18px rgba(61, 139, 255, .55));
}
@keyframes current { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
}
.hero__sub { max-width: 640px; margin: 28px 0 36px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ice-200); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 64px 0 0; max-width: 820px;
  border-radius: var(--radius); overflow: hidden;
  background: rgba(180, 200, 223, .14);
  box-shadow: inset 0 0 0 1px rgba(180, 200, 223, .14);
}
.stat { padding: 20px 22px; background: rgba(7, 20, 38, .72); backdrop-filter: blur(6px); }
.stat dt { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.stat dd { margin: 8px 0 0; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--f-head); color: var(--white); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(180,200,223,.4);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan-300); animation: scroll 1.8s infinite; }
@keyframes scroll { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(14px); } }

/* ---------- plataformas (marquee) ---------- */
.platforms {
  background: var(--navy-800); color: var(--ice-100);
  border-block: 1px solid rgba(180, 200, 223, .1); padding: 26px 0 30px;
}
.platforms__label { text-align: center; margin: 0 0 16px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 18px; padding: 0 18px;
  font: 600 clamp(18px, 2.2vw, 24px)/1.4 var(--f-head); white-space: nowrap; color: var(--ice-200);
}
.marquee__track span::after { content: ""; width: 8px; height: 12px; background: var(--blue-400); clip-path: polygon(60% 0, 0 60%, 45% 60%, 35% 100%, 100% 38%, 55% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--dark { background: var(--navy-900); color: var(--ice-100); }
.section--light { background: var(--white); }
.section--soft { background: var(--ice-50); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.sec-head--row .lead { max-width: 420px; margin: 0; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; }
.section--dark h2 { color: var(--white); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500);
}
.section--dark .kicker { color: var(--cyan-300); }
.bolt { font-size: 16px; fill: currentColor; stroke: none; filter: drop-shadow(0 0 6px currentColor); animation: zap 3.2s infinite; }
@keyframes zap { 0%, 90%, 100% { opacity: 1; } 92% { opacity: .2; } 94% { opacity: 1; } 96% { opacity: .4; } }
.lead { font-size: 18px; color: var(--muted); margin: 18px 0 0; }
.section--dark .lead { color: var(--ice-200); }

/* ---------- cards com "corrente" na borda ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.svc, .sector, .project {
  position: relative; border-radius: var(--radius); isolation: isolate;
}
.svc::before, .sector::before, .project::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 70%, var(--cyan-300) 80%, #fff 82%, var(--blue-400) 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.svc:hover::before, .sector:hover::before, .project:hover::before { opacity: 1; animation: spin 2.2s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }

/* serviços */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc {
  padding: 30px 28px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px rgba(180, 200, 223, .12);
  transition: transform .3s, background .3s;
}
.svc:hover { transform: translateY(-4px); background: linear-gradient(180deg, rgba(61,139,255,.1), rgba(255,255,255,.02)); }
.svc--wide { grid-column: span 2; background: linear-gradient(135deg, rgba(31,111,235,.22), rgba(255,255,255,.02) 60%); }
.svc__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  font-size: 26px; color: var(--cyan-300);
  background: rgba(111, 227, 255, .08); box-shadow: inset 0 0 0 1px rgba(111, 227, 255, .25);
  transition: box-shadow .3s, color .3s;
}
.svc:hover .svc__icon { color: #fff; box-shadow: inset 0 0 0 1px var(--cyan-300), 0 0 22px rgba(111,227,255,.45); }
.svc h3 { font-size: 21px; color: var(--white); margin-bottom: 10px; }
.svc p { margin: 0; color: var(--ice-200); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font: 500 13px/1.2 var(--f-mono);
  color: var(--ice-100); background: rgba(7, 20, 38, .5); box-shadow: inset 0 0 0 1px rgba(180,200,223,.2);
}

/* osciloscópio entre seções */
.scope { height: 80px; background: linear-gradient(var(--navy-900), var(--navy-900) 50%, var(--white) 50%); overflow: hidden; }
.scope svg { width: 100%; height: 100%; display: block; }
.scope__wave { stroke: var(--blue-400); stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px var(--cyan-300)); vector-effect: non-scaling-stroke; }

/* setores */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sector {
  padding: 34px 30px 36px; background: var(--ice-50);
  box-shadow: inset 0 0 0 1px var(--ice-100);
  transition: transform .3s, background .3s, box-shadow .3s; overflow: hidden;
}
.sector:hover { transform: translateY(-4px); background: var(--navy-700); box-shadow: var(--shadow); }
.sector__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  color: var(--white); background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  box-shadow: 0 10px 24px -10px rgba(31,111,235,.8);
}
.sector:hover .sector__icon { box-shadow: 0 0 0 1px var(--cyan-300), 0 0 28px rgba(111,227,255,.5); }
.sector__num { position: absolute; top: 24px; right: 28px; font: 500 14px/1 var(--f-mono); color: var(--ice-200); }
.sector h3 { font-size: 26px; margin: 26px 0 12px; color: var(--navy-700); transition: color .3s; }
.sector p { margin: 0; color: var(--muted); transition: color .3s; }
.sector:hover h3 { color: var(--white); }
.sector:hover p { color: var(--ice-200); }

/* trabalhos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 14px/1 var(--f-body); color: var(--navy-700);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--ice-100);
  transition: background .2s, color .2s, box-shadow .2s;
}
.filter small { font: 500 11px var(--f-mono); color: var(--muted); margin-left: 4px; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--blue-400); }
.filter[aria-selected="true"] { background: var(--navy-700); color: var(--white); box-shadow: 0 0 0 1px var(--navy-700), 0 6px 18px -6px rgba(16,37,63,.6); }
.filter[aria-selected="true"] small { color: var(--cyan-300); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project {
  background: var(--white); box-shadow: 0 1px 0 var(--ice-100), 0 10px 30px -18px rgba(7,20,38,.3);
  cursor: pointer; text-align: left; border: 0; padding: 0; font: inherit; color: inherit;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
  animation: in .45s both;
}
@keyframes in { from { opacity: 0; transform: translateY(14px); } }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--navy-800); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.project:hover .project__media img { transform: scale(1.06); filter: saturate(1.1) contrast(1.05); }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,20,38,.55));
}
.project__plat {
  position: absolute; left: 14px; top: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap;
}
.tag {
  padding: 5px 10px; border-radius: 999px; font: 500 11.5px/1.2 var(--f-mono);
  color: var(--white); background: rgba(7, 20, 38, .72); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(111,227,255,.35);
}
.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project__body h3 { font-size: 18px; color: var(--navy-700); }
.project__loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.project__loc svg { color: var(--blue-500); }
.project__steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.step { font: 500 11.5px/1 var(--f-mono); padding: 6px 9px; border-radius: 6px; color: var(--blue-500); background: rgba(31,111,235,.08); }

.projects__more { display: flex; justify-content: center; margin-top: 32px; }
.projects__more:empty { display: none; }
.btn--ghost-dark { background: var(--white); color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--ice-200); }
.btn--ghost-dark:hover { background: var(--navy-700); color: var(--white); }

/* clientes */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.client {
  display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--ice-100);
  transition: box-shadow .3s, transform .3s;
}
.client img { max-height: 62px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .3s, opacity .3s; }
.client:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--blue-400), 0 10px 30px -14px rgba(31,111,235,.6); }
.client:hover img { filter: none; opacity: 1; }
.client--dark { background: var(--navy-700); box-shadow: none; }
.client--dark img { filter: none; opacity: .85; }

/* CTA */
.cta {
  position: relative; overflow: hidden; padding: clamp(80px, 11vw, 130px) 0; text-align: center; color: var(--white);
  background: radial-gradient(900px 400px at 50% 0%, rgba(111,227,255,.25), transparent 70%), linear-gradient(135deg, var(--blue-500), var(--navy-700) 70%);
}
.cta__in { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(30px, 4.6vw, 54px); max-width: 18ch; margin: 0 auto 16px; }
.cta p { color: var(--ice-100); font-size: 18px; max-width: 560px; margin: 0 auto 34px; }

/* contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info h2 { font-size: clamp(32px, 4.4vw, 52px); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 30px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list strong { display: block; color: var(--white); font-weight: 600; }
.contact__list strong a { text-decoration: none; }
.contact__list strong a:hover { color: var(--cyan-300); }
.contact__list span:not(.ci) { display: block; color: var(--muted-d); font-size: 15px; }
.contact__list div > a { display: inline-block; margin-top: 6px; color: var(--cyan-300); font-size: 14px; text-decoration: none; }
.ci { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 21px; color: var(--cyan-300); background: rgba(111,227,255,.08); box-shadow: inset 0 0 0 1px rgba(111,227,255,.22); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 19px; color: var(--ice-100); box-shadow: inset 0 0 0 1px rgba(180,200,223,.25); transition: all .25s; }
.social a:hover { color: var(--white); background: var(--blue-500); box-shadow: var(--glow); }

.form {
  display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(180,200,223,.14), 0 30px 80px -30px rgba(0,0,0,.6);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ice-200); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 0;
  font: 400 16px/1.4 var(--f-body); color: var(--white);
  background: rgba(4, 12, 24, .6); box-shadow: inset 0 0 0 1px rgba(180,200,223,.2);
  transition: box-shadow .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ice-200) 50%), linear-gradient(135deg, var(--ice-200) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--cyan-300), 0 0 0 4px rgba(111,227,255,.12); }
.form__err { margin: 0; color: #ff9b9b; font-size: 14px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted-d); text-align: center; }

/* rodapé */
.footer { background: var(--navy-950); color: var(--muted-d); padding: 34px 0; border-top: 1px solid rgba(180,200,223,.08); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__logo { height: 26px; width: auto; }
.footer p { margin: 0; }
.footer__top { text-decoration: none; color: var(--ice-200); }
.footer__top:hover { color: var(--cyan-300); }

/* modal */
.modal {
  width: min(760px, 100% - 32px); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 22px;
  overflow: auto; background: var(--white); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
.modal::backdrop { background: rgba(4, 12, 24, .75); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--navy-800); }
.modal__body { padding: 26px 30px 32px; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.modal__tags .tag { background: var(--navy-700); }
.modal__title { font-size: 26px; color: var(--navy-700); }
.modal__loc { margin: 6px 0 16px; color: var(--blue-500); font: 500 14px var(--f-mono); }
.modal__desc { margin: 0; color: #2e3f55; font-size: 16.5px; line-height: 1.7; }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--white); background: rgba(7,20,38,.7); backdrop-filter: blur(6px);
}
.modal__close:hover { background: var(--blue-500); }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

/* flash do "choque" ao entrar na seção */
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 90; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 30%), rgba(111,227,255,.18), transparent 50%); animation: flash .35s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 50% { opacity: .8; } 100% { opacity: 0; } }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--wide { grid-column: span 2; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { background: rgba(7, 20, 38, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav__in { height: 64px; }
  .nav__logo img { height: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; }
  .projects { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .hero { padding-top: 104px; }
  .hero__actions .btn { width: 100%; }
  .stat { padding: 16px; }
  .hero__scroll { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .filter { flex: none; }
  .modal__body { padding: 22px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track span[aria-hidden] { display: none; }
}
