/* =========================================================
   AK Engenharia Estrutural · folha de estilos
   Sem frameworks: CSS puro, leve e rápido.
   ========================================================= */
:root {
  --ink: #070b10;
  --ink-2: #0c131b;
  --ink-3: #121c27;
  --paper: #f3f5f7;
  --paper-2: #e8ecf0;
  --white: #ffffff;
  --text: #0d141b;
  --muted: #5b6875;
  --muted-d: #8c9aa8;
  --line: rgba(13, 20, 27, .12);
  --line-d: rgba(255, 255, 255, .1);
  --blue: #0088cc;
  --blue-2: #2fb0ee;
  --blue-soft: rgba(0, 136, 204, .12);
  --radius: 14px;
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
em { font-style: normal; color: var(--blue); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn span { transition: transform .4s var(--ease); display: inline-block; }
.btn:hover span { transform: translateX(4px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 136, 204, .7); }
.btn--blue:hover { background: #0099e6; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 136, 204, .8); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { padding: .65em 1.15em; font-size: .85rem; }
.btn--lg { padding: 1.15em 1.9em; font-size: 1.02rem; }

/* ---------- etiquetas de seção ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  padding: .35em .9em .35em .4em; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  justify-self: start; width: fit-content;
}
.tag .mono { background: var(--ink); color: #fff; padding: .25em .6em; border-radius: 999px; font-size: .66rem; }
.tag--dark { background: rgba(255, 255, 255, .04); border-color: var(--line-d); color: var(--muted-d); }
.tag--dark .mono { background: var(--blue); }
.h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 500; font-stretch: 92%; margin-top: 22px; max-width: 16ch; }
.h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; margin-top: 18px; max-width: 18ch; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.section--dark .lead { color: var(--muted-d); }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--split { display: grid; gap: 28px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; } }

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(21, 32, 44, .8); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .7); transition: background-color .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 40%, rgba(47, 176, 238, 0) 100%); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.nav__logo { position: relative; display: block; width: 158px; height: 44px; flex-shrink: 0; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s; }
.logo-dark { opacity: 0; }
.nav__links { display: none; margin-left: auto; gap: 4px; }
.nav__links a { position: relative; font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .78); padding: 8px 14px; border-radius: 999px; transition: color .3s, background-color .3s; }
.nav__links a:hover, .nav__links a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__cta { display: none; }
.nav__login { display: none; font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .5); padding: 8px 6px; transition: color .3s; }
.nav__login:hover { color: #fff; }
.nav.scrolled .nav__login { color: var(--muted); }
.nav.scrolled .nav__login:hover { color: var(--text); }
.mobile-menu__login { margin-top: 8px; text-align: center; color: var(--muted-d); font-size: .9rem; padding: 10px; }
.nav__burger { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .2); }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), background-color .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav.scrolled { box-shadow: 0 12px 30px -24px rgba(13, 20, 27, .35); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-color: var(--line); }
.nav.scrolled .logo-light { opacity: 0; }
.nav.scrolled .logo-dark { opacity: 1; }
.nav.scrolled .nav__links a { color: var(--muted); }
.nav.scrolled .nav__links a:hover, .nav.scrolled .nav__links a.active { color: var(--text); background: rgba(13, 20, 27, .06); }
.nav.scrolled .nav__burger { border-color: var(--line); }
.nav.scrolled .nav__burger span { background: var(--text); }
.nav.hidden { transform: translateY(-100%); }
.nav.menu-open { background: var(--ink) !important; border-color: var(--line-d); }
.nav.menu-open .logo-light { opacity: 1; }
.nav.menu-open .logo-dark { opacity: 0; }
.nav.menu-open .nav__burger { border-color: rgba(255, 255, 255, .2); }
.nav.menu-open .nav__burger span { background: #fff; }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px clamp(16px, 4vw, 40px) 24px; background: var(--ink); border-top: 1px solid var(--line-d); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { color: #fff; font-size: 1.5rem; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__login { display: inline-block; }
  .nav__burger, .mobile-menu { display: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; background: radial-gradient(80% 70% at 85% 15%, #102a3e 0%, rgba(16, 42, 62, 0) 60%), radial-gradient(60% 60% at 0% 100%, #0d1e2c 0%, rgba(13, 30, 44, 0) 70%), var(--ink); color: #fff; overflow: hidden; display: flex; flex-direction: column; padding-top: 112px; }
.hero__glow { position: absolute; right: -12vw; top: 0; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(circle, rgba(0, 136, 204, .26) 0%, rgba(0, 136, 204, 0) 62%); pointer-events: none; animation: heroGlow 14s ease-in-out infinite alternate; }
@keyframes heroGlow { to { transform: translate(-8%, 10%) scale(1.12); } }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 176, 238, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 176, 238, .07) 1px, transparent 1px),
    linear-gradient(rgba(47, 176, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 176, 238, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 85%);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero__inner { position: relative; z-index: 2; flex: 1; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 52px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(47, 176, 238, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 176, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 176, 238, 0); } }
.hero__title { margin-top: 0; font-size: clamp(2.6rem, 4.9vw, 5.2rem); font-weight: 600; font-stretch: 88%; letter-spacing: -.035em; line-height: .96; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title em { color: transparent; background: linear-gradient(100deg, #fff 0%, var(--blue-2) 70%); -webkit-background-clip: text; background-clip: text; }
@keyframes rise { to { transform: none; } }
.hero__sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .72); font-weight: 300; }
.hero__sub b { color: #fff; font-weight: 600; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; margin: 0; }
.hero__slides { position: relative; aspect-ratio: 16 / 10.4; border-radius: 20px; overflow: hidden; background: var(--ink-3); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(calc(var(--s, 1) * 1.08)); transition: opacity 1.4s ease, transform 8s linear; }
.hero__slides img.is-active { opacity: 1; transform: scale(var(--s, 1)); }
.hero__slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 16, .75)); }
.hero__caption { position: absolute; left: 24px; right: 20px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 16px; font-size: .9rem; font-weight: 500; }
.hero__caption .mono { color: var(--blue-2); flex-shrink: 0; }
#heroLabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 600px) { .hero__caption { left: 40px; right: 14px; bottom: 14px; font-size: .8rem; gap: 10px; } .hero__bar { width: 48px; } }
.hero__bar { margin-left: auto; width: 96px; height: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; border-radius: 2px; }
.hero__bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__bar i.run { animation: bar 6s linear forwards; }
.hero__nav { display: flex; gap: 6px; }
.hero__nav button { width: 36px; height: 36px; border-radius: 50%; background: rgba(7, 11, 16, .45); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); transition: background-color .3s, border-color .3s; }
.hero__nav button:hover { background: var(--blue); border-color: var(--blue); }
@keyframes bar { to { width: 100%; } }

.hero__band { position: relative; z-index: 2; background: linear-gradient(180deg, #1a2937 0%, #15222e 100%); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.hero__stats { position: relative; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
.hero__stats > div { padding: 24px 0 26px; }
.hero__stats > div + div { padding-left: clamp(12px, 3vw, 40px); border-left: 1px solid rgba(255, 255, 255, .1); }
.hero__stats dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.hero__stats dd { margin: 6px 0 0; font-size: clamp(1.7rem, 4.2vw, 3.4rem); font-weight: 600; font-stretch: 85%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats .pre { color: var(--blue-2); }
.hero__stats .suf { font-size: .5em; font-weight: 500; color: var(--muted-d); letter-spacing: 0; }
.hero__scroll { display: none; }
@media (min-width: 1000px) {
  .hero__stats { grid-template-columns: repeat(var(--n, 3), 1fr) auto; }
  .hero__scroll { display: flex; align-items: center; justify-content: flex-end; }
  .hero__scroll a { display: flex; align-items: center; gap: 12px; color: var(--muted-d); }
  .hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--blue-2), transparent); animation: scrollcue 2s infinite; transform-origin: top; }
}
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* mira técnica que segue o cursor */
.ch-y { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; font-stretch: 110%; letter-spacing: -.01em; white-space: nowrap; }
.marquee span svg { flex-shrink: 0; opacity: .9; }
.marquee i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   QUEM SOMOS
   ========================================================= */
.about__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.about__statement { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 500; font-stretch: 92%; line-height: 1.04; letter-spacing: -.03em; max-width: 20ch; }
.about__text { display: grid; gap: 20px; color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
.about__text strong { color: var(--text); }
@media (min-width: 1000px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 64px; align-items: center; }
  .about__statement { font-size: clamp(2.2rem, 3.5vw, 3.3rem); }
  .about__art { align-self: center; }
}

.about__copy { display: grid; gap: 22px; align-content: start; }
.about__copy .about__text { margin-top: 6px; }
.about__art { margin: 0; min-width: 0; }
.about__art .obra { position: relative; min-height: 320px; }
.about__art .obra .illu { width: 100%; height: auto; transition: opacity .6s ease; }
.about__art .obra .illu.fadeout { opacity: 0; }
.obra__ph { display: grid; place-items: center; min-height: 420px; color: var(--blue); }

/* =========================================================
   SERVIÇOS (acordeão em pranchas numeradas)
   ========================================================= */
.services { background: var(--white); }
.svc-wrap { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .svc-wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 56px; align-items: stretch; }
  .svc { align-content: start; }
  .stage { display: flex; flex-direction: column; }
  .stage__art { flex: 1; aspect-ratio: auto; min-height: 380px; }
}
@media (max-width: 999px) { .stage { order: -1; } }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc__item { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: background-color .4s, border-color .4s, box-shadow .4s; overflow: hidden; }
.svc__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.svc__item.is-open { background: linear-gradient(180deg, #f5f9fc, #ffffff); border-color: rgba(0, 136, 204, .3); box-shadow: 0 24px 50px -34px rgba(0, 72, 110, .45); }
.svc__item.is-open::before { transform: scaleY(1); }
.svc__head { width: 100%; display: grid; grid-template-columns: 46px 1fr 38px; align-items: center; gap: 12px; padding: 22px 22px 22px 20px; text-align: left; }
.svc__n { color: var(--muted); }
.svc__item.is-open .svc__n { color: var(--blue); }
.svc__title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; font-stretch: 92%; letter-spacing: -.02em; transition: color .3s, transform .5s var(--ease); }
.svc__plus { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc__head:hover .svc__title { color: var(--blue); transform: translateX(4px); }
.svc__item.is-open .svc__plus { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(180deg); }
.svc__item.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc__item.is-open .svc__title { color: var(--blue); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; display: grid; gap: 16px; padding: 0 24px 0 78px; }
.svc__body p { color: var(--muted); font-size: 1rem; max-width: 52ch; }
.svc__tags { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 24px; }
.svc__tags span { font-size: .76rem; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
@media (max-width: 600px) { .svc__head { grid-template-columns: 34px 1fr 38px; padding: 18px 16px; } .svc__body > div { padding: 0 16px 0 62px; } }

/* palco das ilustrações */
.stage { position: relative; border-radius: 26px; padding: 18px 18px 16px; background: radial-gradient(120% 90% at 75% 0%, #ffffff 0%, #eef3f7 55%, #e4ebf1 100%); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(13, 40, 60, .5); }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(13, 20, 27, .09) 1px, transparent 1.4px); background-size: 18px 18px; mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 80%); pointer-events: none; }
.stage__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage__top .mono { color: var(--muted); white-space: nowrap; }
.stage__art { position: relative; aspect-ratio: 1 / .86; margin: 6px 0 4px; }
.stage__item { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .7s var(--ease), visibility .5s; }
.stage__item.is-active { opacity: 1; visibility: visible; transform: none; }
.stage__item .illu { width: 100%; height: 100%; }
.stage__dots { position: relative; display: flex; justify-content: center; gap: 8px; }
.stage__dots button { width: 26px; height: 5px; border-radius: 4px; background: rgba(13, 20, 27, .15); transition: background-color .3s, width .4s var(--ease); }
.stage__dots button[aria-selected="true"] { width: 44px; background: var(--blue); }

/* =========================================================
   BIM / COMPATIBILIZAÇÃO
   ========================================================= */
.compat { background: linear-gradient(180deg, #223242 0%, #1b2836 55%, #192531 100%); }
.compat .lead { color: #a9b7c4; }
.compat .tag--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #b9c6d2; }
.compat .bim__features li { border-color: rgba(255, 255, 255, .12) !important; }
.compat .bim__features p { color: #a9b7c4; }
.compat .ba { border-color: rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.compat .h2 em { color: var(--blue-2); }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line-d); user-select: none; aspect-ratio: 1546 / 817; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--blue); transform: translateX(-1px); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 0 0 8px rgba(0, 136, 204, .2), 0 10px 30px rgba(0, 0, 0, .3); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 16px; background: rgba(7, 11, 16, .82); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: .62rem; backdrop-filter: blur(6px); pointer-events: none; }
.ba__label--l { left: 16px; }
@media (max-width: 600px) { .ba__label { top: auto; bottom: 10px; font-size: .55rem; padding: 5px 9px; } .ba__label--l { left: 10px; } .ba__label--r { right: 10px; } .ba__handle span { width: 40px; height: 40px; } }
.ba__label--r { right: 16px; background: var(--blue); }

.bim { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .bim { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.bim__model { position: relative; background: #fff; border-radius: var(--radius); padding: 18px; max-width: 520px; width: 100%; margin: 0 auto; }
.bim__model img { border-radius: 8px; }
.hot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(0, 136, 204, .2); display: grid; place-items: center; }
.hot span { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(0, 136, 204, .7); animation: pulse2 2s infinite; }
.hot:hover span, .hot.on span { background: var(--ink); }
@keyframes pulse2 { 70% { box-shadow: 0 0 0 14px rgba(0, 136, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); } }
.bim__tip { position: absolute; z-index: 3; max-width: 230px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 10px; font-size: .66rem; line-height: 1.5; text-transform: none; letter-spacing: .02em; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); pointer-events: none; }
.bim__tip b { display: block; color: var(--blue-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.bim__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bim__features li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line-d); }
.bim__features li:last-child { border-bottom: 1px solid var(--line-d); }
.bim__features li > .mono { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 176, 238, .1); color: var(--blue-2); font-size: .9rem; border: 1px solid rgba(47, 176, 238, .25); }
.bim__features h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.bim__features p { margin-top: 6px; color: var(--muted-d); }

/* =========================================================
   PROCESSO
   ========================================================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 28px; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.steps li:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(13, 20, 27, .3); border-color: rgba(0, 136, 204, .4); }
.steps__n { color: var(--blue); }
.steps__art { height: 168px; border-radius: 12px; background: radial-gradient(120% 100% at 70% 0%, #ffffff 0%, #edf2f6 70%); display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; }
.steps__art .illu { width: 86%; height: 150px; }
.steps__n, .steps h3, .steps p { padding: 0 14px; }
.steps h3 { margin-top: 10px; font-size: 1.45rem; font-weight: 500; }
.steps p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

.steps__line { margin-top: 32px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__line i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* =========================================================
   PROJETOS
   ========================================================= */
.projects { background: var(--white); }
.filters { display: inline-flex; gap: 4px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; justify-self: start; flex-wrap: wrap; }
@media (min-width: 900px) { .filters { justify-self: end; } }
.filters button { padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: background-color .3s, color .3s; }
.filters button sup { font-family: var(--mono); font-size: .6rem; margin-left: 2px; }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; }
  .card { grid-row: span 4; grid-column: span 4; }
  .card.w7 { grid-column: span 7; } .card.w5 { grid-column: span 5; }
  .card.w8 { grid-column: span 8; } .card.w6 { grid-column: span 6; }
  .card.tall { grid-row: span 5; }
}
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); cursor: pointer; aspect-ratio: 4 / 3.2; text-align: left; isolation: isolate; color: #fff; }
@media (min-width: 1100px) { .card { aspect-ratio: auto; } }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 16, 0) 40%, rgba(7, 11, 16, .88)); z-index: 1; transition: opacity .5s; }
.card:hover img { transform: scale(1.06); }
.card__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card__meta { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.card h3 { margin-top: 6px; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 500; }
.card__city { margin-top: 4px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.card__go { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); transition: background-color .4s, transform .5s var(--ease); }
.card:hover .card__go { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
.card__count { position: absolute; top: 16px; right: 16px; z-index: 2; font-family: var(--mono); font-size: .62rem; background: rgba(7, 11, 16, .6); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.card.hide { display: none; }
.card.pop { animation: pop .7s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 12, .96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px; animation: lbIn .35s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes lbIn { from { opacity: 0; } }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; grid-column: 2; display: flex; flex-direction: column; gap: 16px; height: calc(100svh - 40px); justify-content: center; min-width: 0; }
.lb__fig img { max-height: calc(100svh - 170px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lb__fig figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: #fff; max-width: 1100px; width: 100%; margin: 0 auto; }
.lb__fig figcaption .mono { color: var(--blue-2); }
.lb__fig h3 { font-size: 1.5rem; font-weight: 500; margin-top: 4px; }
.lb__fig p { color: var(--muted-d); font-size: .95rem; margin-top: 4px; max-width: 60ch; }
.lb__close, .lb__nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1.1rem; transition: background-color .3s; }
.lb__close:hover, .lb__nav:hover { background: var(--blue); border-color: var(--blue); }
.lb__close { position: absolute; top: 20px; right: 20px; z-index: 2; }
.lb__prev { grid-column: 1; } .lb__next { grid-column: 3; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 1fr; padding: 12px; }
  .lb__fig { grid-column: 1; }
  .lb__nav { position: absolute; bottom: 20px; z-index: 2; background: rgba(7, 11, 16, .7); }
  .lb__prev { left: 12px; } .lb__next { right: 12px; }
  .lb__fig figcaption { padding-bottom: 70px; }
}

/* =========================================================
   CLIENTES
   ========================================================= */
.clients { padding-top: 0; background: var(--white); }
.clients__inner { display: grid; gap: 40px; grid-template-columns: 1fr; padding-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .clients__inner { grid-template-columns: 1fr 1.6fr; align-items: center; } }
.clients__logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.clients__logos li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-size: .85rem; color: var(--muted); transition: border-color .3s, transform .5s var(--ease); min-height: 200px; }
.clients__logos li:hover { border-color: var(--blue); transform: translateY(-4px); }
.clients__logos img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.clients__logos li:hover img { filter: none; }
.clients__logos li:has(> a) { cursor: pointer; }
.clients__you { border-style: dashed !important; background: var(--paper); }
.clients__you .mono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--blue); border: 1px dashed var(--blue); }

/* =========================================================
   CTA / CONTATO
   ========================================================= */
.cta { overflow: hidden; background: radial-gradient(90% 90% at 50% 120%, #0d2f47 0%, var(--ink) 62%); }
.cta__art { position: absolute; right: -1%; top: 6%; width: min(600px, 48vw); opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.cta__art .illu { width: 100%; height: auto; }
@media (max-width: 800px) { .cta__art { width: 96vw; right: -20%; opacity: .16; } }
.cta__inner { position: relative; z-index: 1; }
.cta__title { margin-top: 26px; font-size: clamp(2.6rem, 8vw, 7.2rem); font-weight: 600; font-stretch: 86%; letter-spacing: -.04em; line-height: .95; }
.cta__title em { color: var(--blue-2); }
.cta__row { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta__info { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 32px; border-top: 1px solid var(--line-d); }
@media (min-width: 800px) { .cta__info { grid-template-columns: repeat(3, 1fr); } }
.cta__info .mono { display: block; color: var(--muted-d); font-size: .64rem; margin-bottom: 8px; }
.cta__info a { font-size: 1.05rem; transition: color .3s; word-break: break-word; }
.cta__info a:hover { color: var(--blue-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--muted-d); padding: 32px 0 100px; border-top: 1px solid var(--line-d); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__inner img { width: 150px; height: auto; }
.footer__logo { display: block; transition: opacity .3s; }
.footer__logo:hover { opacity: .8; }
.footer__social { display: flex; gap: 8px; }
.footer__social a[hidden], .cta__info > div[hidden] { display: none; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-d); color: #fff; transition: background-color .3s, border-color .3s; }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); }
.footer__copy { margin-left: auto; font-size: .62rem; }
@media (max-width: 700px) { .footer__copy { margin-left: 0; width: 100%; } }

/* WhatsApp flutuante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6); transition: transform .4s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.6s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa__tip { position: absolute; right: 72px; white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.wa:hover .wa__tip { opacity: 1; transform: none; }

/* movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__frame path { stroke-dashoffset: 0; }
}

/* =========================================================
   ABAS DO ANTES / DEPOIS (quando há mais de uma comparação)
   ========================================================= */
.ba-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ba-tabs button { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-d); color: var(--muted-d); text-align: left; font-size: .9rem; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.ba-tabs button small { display: block; font-size: .75rem; font-weight: 400; opacity: .8; }
.ba-tabs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testi[hidden], .clients[hidden] { display: none; }
.testi .h2 em { color: var(--blue-2); }
.testi__nav { display: flex; gap: 10px; justify-self: start; }
@media (min-width: 900px) { .testi__nav { justify-self: end; } }
.testi__nav[hidden] { display: none; }
.testi__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-d); color: #fff; font-size: 1.1rem; transition: background-color .3s, border-color .3s; }
.testi__btn:hover { background: var(--blue); border-color: var(--blue); }
.testi__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 520px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.testi__track::-webkit-scrollbar { display: none; }
.testi { background: linear-gradient(180deg, #1b2836, #172330); }
.testi__card { margin: 0; scroll-snap-align: start; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.testi__stars { color: var(--blue-2); letter-spacing: 3px; }
.testi__stars span { color: rgba(255, 255, 255, .15); }
.testi__card blockquote { margin: 0; font-size: 1.2rem; line-height: 1.5; font-weight: 300; }
.testi__card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--muted-d); }
.testi__card figcaption b { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.testi__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 176, 238, .12); border: 1px solid rgba(47, 176, 238, .35); color: var(--blue-2); font-weight: 600; flex-shrink: 0; }
.clients__logos li > a { display: contents; }
