/* ============================================================
   ATTRACTIVE ENGENHARIA — style.css
   Paleta: #0a0a0a / #f5f5f0 / #1c1c1c / #3a3a3a / #8a8a8a
   ============================================================ */

/* ── Splash / Loading Screen ────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;           /* preto puro: combina com invert(1) da logo JPG */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;             /* indica que é clicável */
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash.is-exiting { opacity: 0; pointer-events: none; }

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 900px;
}

.splash__logo {
  height: 234px; /* 78px × 3 */
  width: auto;
  display: block;
  -webkit-filter: invert(1);
  filter: invert(1);
  mix-blend-mode: screen;
  transform: translateZ(0);
  transition: opacity 1s ease, transform 1.1s ease;
}
.splash__logo.is-exiting { opacity: 0; transform: scale(1.07); }

.splash__logo-fallback {
  display: none;
  font-family: 'Zag', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
  transition: opacity 1s ease, transform 1.1s ease;
}
.splash__logo-fallback em { display: block; font-style: normal; font-weight: 400; font-size: 1.4rem; letter-spacing: 0.22em; }
.splash__logo-fallback.is-visible { display: block; }
.splash__logo-fallback.is-exiting { opacity: 0; transform: scale(1.07); }

.splash__tagline {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 5.2rem;            /* altura fixa para as frases se substituírem sem mover layout */
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash__tagline span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Zag', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.splash__tagline span:last-child { color: var(--text-muted); }
.splash__tagline span.is-in  { opacity: 1; transform: translateY(0); }
.splash__tagline span.is-out {
  opacity: 0 !important;
  transform: translateY(-14px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

/* ── Splash responsivo — mobile ─────────────────────────────── */
@media (max-width: 640px) {
  .splash__inner  { gap: 1.75rem; }
  .splash__logo   { height: clamp(70px, 22vw, 140px); }
  .splash__logo-fallback { font-size: 1.8rem; }
  .splash__tagline { height: auto; min-height: 2.8rem; }
  .splash__tagline span {
    font-size: clamp(1.4rem, 7.5vw, 2.4rem);
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Zag';
  src: url('../fonts/Zag Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zag';
  src: url('../fonts/Zag Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Scroll Progress Bar ────────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent, #4ade80);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
}

#cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  display: none;
}
@media (hover: hover) { #cursor { display: block; } }

#cursor::before,
#cursor::after {
  content: '';
  position: absolute;
  background: var(--accent, #4ade80);
}
/* linha horizontal */
#cursor::before {
  width: 20px; height: 1px;
  top: 0; left: -10px;
}
/* linha vertical */
#cursor::after {
  width: 1px; height: 20px;
  top: -10px; left: 0;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Zag', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1c1c1c;
  --surface:     #242424;
  --border:      #2a2a2a;
  --border-light:#3a3a3a;
  --text:        #f5f5f0;
  --text-muted:  #8a8a8a;
  --text-dim:    #5a5a5a;
  --accent:      #f5f5f0;
  --wa-green:    #25D366;
  --wa-dark:     #128C7E;

  --nav-h:       88px;
  --container:   1280px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
  --section-py:  clamp(5rem, 10vw, 10rem);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.text-accent { color: var(--wa-green); }

.section-header {
  max-width: 640px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.badge {
  display: inline-block;
  padding: 0.25em 0.7em;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: #e0e0db;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

.btn--wa {
  background: var(--wa-green);
  color: #fff;
}
.btn--wa:hover {
  background: #1db954;
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

.btn--full { width: 100%; justify-content: center; }

.btn__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 78px;
  width: auto;
  -webkit-filter: invert(1);
  filter: invert(1);
  mix-blend-mode: screen;
  transform: translateZ(0);  /* compositing layer — corrige bug mobile Safari */
  object-fit: contain;
}

.nav__logo-fallback {
  display: none; /* mostrado via JS só se a imagem falhar */
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}
.nav__logo-fallback.is-visible { display: block; }
.nav__logo-fallback em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.25s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  margin-left: 1rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: all 0.25s var(--ease-out);
  transform-origin: center;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
    pointer-events: none;
    margin-left: 0;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { padding: 0.75rem 0; font-size: 1rem; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__hamburger { display: flex; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

/* Grade sutil de fundo */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  max-width: 16ch;
}

.hero__headline--accent {
  color: var(--text-muted);
}

.hero__sub {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }

@media (max-width: 700px) {
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stats__item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
}

.stats__number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats__plus {
  font-size: 0.6em;
  color: var(--text-muted);
}

.stats__tag {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25em 0.6em;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  color: var(--text-muted);
}

.stats__label {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── ESPECIALIDADES ─────────────────────────────────────────── */
.especialidades {
  padding: var(--section-py) 0;
}

.esp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .esp__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .esp__grid { grid-template-columns: 1fr; }
}

.esp__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease-out);
  cursor: default;
  overflow: hidden;
}

.esp__card:nth-child(3n) { border-right: none; }
.esp__card:nth-last-child(-n+3) { border-bottom: none; }

@media (max-width: 900px) {
  .esp__card:nth-child(3n) { border-right: 1px solid var(--border); }
  .esp__card:nth-child(2n) { border-right: none; }
  .esp__card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .esp__card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .esp__card { border-right: none !important; }
  .esp__card:last-child { border-bottom: none; }
  .esp__card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.esp__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.esp__card:hover::before { opacity: 1; }

.esp__card-num {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.esp__card-title {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.esp__card-desc {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.esp__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.esp__card-tags li {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.2em 0.6em;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.esp__card:hover .esp__card-tags li {
  color: var(--text-muted);
  border-color: var(--border-light);
}

.esp__card-arrow {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 1.125rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.esp__card:hover .esp__card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── PORTFOLIO ──────────────────────────────────────────────── */
.portfolio {
  padding: var(--section-py) 0;
  background: var(--bg-2);
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.portfolio__filter {
  padding: 0.625rem 1.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.portfolio__filter:hover,
.portfolio__filter.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 860px) { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .portfolio__grid { grid-template-columns: 1fr; } }

/* Card do portfólio */
.port-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.port-card.is-hidden {
  display: none;
}

/* Slides — empilhadas, só a .is-active visível */
.port-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: grayscale(20%);
  transition: opacity 0.8s var(--ease-out),
              transform 0.6s var(--ease-out),
              filter 0.3s;
}

.port-card__slide.is-active {
  opacity: 1;
}

.port-card:hover .port-card__slide.is-active {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Dots indicadores */
.port-card__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.port-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, transform 0.3s;
}

.port-card__dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.3);
}

.port-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 3;
}

.port-card:hover .port-card__overlay { opacity: 1; }

.port-card__code {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.port-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.port-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.port-card__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  color: rgba(255,255,255,0.7);
}

/* Placeholder sem imagem */
.port-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-3);
  color: var(--text-dim);
}
.port-card__placeholder-code {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.port-card__placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  max-width: 900px;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
  .modal__panel { grid-template-columns: 1fr; }
}

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
  z-index: 2;
  transition: color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--text); background: var(--surface); }
.modal__close svg { width: 18px; height: 18px; }

.modal__gallery {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}

/* Slides empilhadas com crossfade */
.modal__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.modal__slide.is-active {
  opacity: 1;
}

/* Thumbnail strip */
.modal__thumbs {
  display: flex;
  gap: 4px;
  padding: 6px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  z-index: 2;
}

.modal__thumb {
  width: 56px; height: 44px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.modal__thumb.is-active,
.modal__thumb:hover { opacity: 1; border-color: var(--text); }

.modal__info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.modal__tags li {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25em 0.7em;
  border: 1px solid var(--border-light);
  border-radius: 2px;
}

.modal__cta { margin-top: auto; }

/* ── SOBRE ──────────────────────────────────────────────────── */
.sobre {
  padding: var(--section-py) 0;
}

.sobre__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .sobre__layout { grid-template-columns: 1fr; }
}

.sobre__lead {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sobre__text {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.sobre__engineer {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-3);
}

.sobre__engineer-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sobre__engineer-avatar {
  width: 96px; height: 96px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}

.sobre__engineer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sobre__engineer-initials {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sobre__engineer-name {
  display: block;
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 0.35rem;
}

.sobre__engineer-title {
  display: block;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sobre__engineer-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.sobre__engineer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: opacity 0.15s ease, gap 0.15s ease;
}

.sobre__engineer-cta:hover {
  opacity: 0.7;
  gap: 0.8rem;
}

.sobre__visual {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

/* Grid de credenciais técnicas */
.sobre__creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .sobre__creds-grid { grid-template-columns: 1fr; }
}

.sobre__cred {
  padding: 1.75rem;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.sobre__cred:nth-child(2n) { border-right: none; }
.sobre__cred:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 600px) {
  .sobre__cred { border-right: none !important; }
  .sobre__cred:last-child { border-bottom: none; }
  .sobre__cred:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.sobre__cred:hover { background: var(--surface); }

.sobre__cred-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.875rem;
}

.sobre__cred-text {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.sobre__visual-placeholder {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sobre__visual-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.sobre__visual-tag span:first-child {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sobre__visual-tag span:last-child {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  max-width: 55%;
  line-height: 1.3;
}

/* ── VIBE FORM ──────────────────────────────────────────────── */
.vibe {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.vibe__wrapper {
  max-width: 780px;
}

.vibe__step {
  border: none;
}

.vibe__step-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  font-family: inherit;
}

.vibe__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vibe__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .vibe__options { grid-template-columns: repeat(2, 1fr); }
}

.vibe__option { display: contents; }

.vibe__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vibe__option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  background: var(--bg-3);
  color: var(--text-muted);
  user-select: none;
}

.vibe__option-card:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface);
}

.vibe__option input[type="radio"]:checked + .vibe__option-card {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--text);
}

.vibe__option-icon { font-size: 2.25rem; }

.vibe__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 580px) {
  .vibe__fields { grid-template-columns: 1fr; }
}

.vibe__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vibe__field--full { grid-column: 1 / -1; }

.vibe__field label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vibe__field input,
.vibe__field select,
.vibe__field textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

.vibe__field input:focus,
.vibe__field select:focus,
.vibe__field textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.vibe__field input::placeholder,
.vibe__field textarea::placeholder {
  color: var(--text-dim);
}

.vibe__field select option { background: var(--bg-3); }

.vibe__step-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.vibe__next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.vibe__summary {
  padding: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.vibe__summary-box {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-family: 'Courier New', monospace;
}

/* ── CONTATO ────────────────────────────────────────────────── */
.contato {
  padding: var(--section-py) 0;
}

.contato__layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 960px) {
  .contato__layout { grid-template-columns: 1fr; }
}

.contato__lead {
  font-size: 1.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.contato__channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contato__channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-3);
  transition: all 0.2s var(--ease-out);
}

.contato__channel:hover {
  border-color: var(--text-muted);
  background: var(--surface);
  transform: translateX(4px);
}

.contato__channel--primary {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.06);
}
.contato__channel--primary:hover {
  border-color: rgba(37, 211, 102, 0.6);
  background: rgba(37, 211, 102, 0.1);
}

.contato__channel-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.contato__channel--primary .contato__channel-icon { color: var(--wa-green); }

.contato__channel-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.contato__channel-value {
  display: block;
  font-weight: 700;
  font-size: 1.625rem;
}

/* Form contato */
.contato__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contato__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contato__field label {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contato__field input,
.contato__field textarea {
  padding: 0.875rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.contato__field input:focus,
.contato__field textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.contato__field input::placeholder,
.contato__field textarea::placeholder { color: var(--text-dim); }

.contato__form-note {
  font-size: 1.125rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 1.25rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

@media (max-width: 700px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__logo-img {
  height: 288px;
  width: auto;
  -webkit-filter: invert(1);
  filter: invert(1);
  mix-blend-mode: screen;
  transform: translateZ(0);
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer__logo-fallback {
  display: none; /* mostrado via JS só se a imagem falhar */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer__logo-fallback.is-visible { display: block; }
.footer__logo-fallback em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
}

.footer__tagline {
  font-size: 1.375rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 500px) {
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

.footer__nav-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__nav-link {
  font-size: 1.375rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__nav-link:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy,
.footer__location {
  font-size: 1.25rem;
  color: var(--text-dim);
}

/* ── Animações de entrada ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Seleção de texto ───────────────────────────────────────── */
::selection { background: rgba(245, 245, 240, 0.15); }

/* ── Watermark 3-D canvas ────────────────────────────────────── */
#watermarkCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;              /* atrás de todo o conteúdo, nunca sobrepõe */
  pointer-events: none;
  user-select: none;
}

/* ── Botão flutuante WhatsApp ────────────────────────────────── */
#waBubble {
  position: fixed;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 900;
  width: 3.25rem;
  height: 3.25rem;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease, bottom .2s ease;
  text-decoration: none;
}
#waBubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
#waBubble svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
  display: block;
}
/* Quando se aproxima do footer, ancora acima dele */
#waBubble.wa--anchored {
  position: absolute;
  bottom: calc(100% + 1.75rem); /* 1.75rem acima do topo do footer */
}

/* ── Feedback do formulário de contato ───────────────────────── */
.contato__feedback {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .9rem;
  line-height: 1.5;
}
.contato__feedback--ok {
  background: #e6f9ee;
  color: #1a6e38;
  border: 1px solid #b2dfca;
}
.contato__feedback--wa {
  background: #f0faf4;
  color: #1a6e38;
  border: 1px solid #b2dfca;
  border-top: none;
  border-radius: 0 0 .5rem .5rem;
  margin-top: 0;
}
.contato__feedback--err {
  background: #fdecea;
  color: #7b1d1d;
  border: 1px solid #f5c6c2;
}
.contato__feedback a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 72px;   /* deixa espaço para o hamburguer mobile */
  z-index: 200;  /* acima do nav (z-index: 100) */
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2px 4px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 20px;
  line-height: 1;
  opacity: 0.38;
  transition: opacity 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.is-active {
  opacity: 1;
}

.lang-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

@media (max-width: 860px) {
  .lang-switcher {
    top: 14px;
    right: 58px;
  }
}
