:root {
  --bg: #f4f5f7;
  --white: #fff;
  --navy: #051632;
  --navy-2: #0a2552;
  --text: #10203d;
  --muted: #5d6b81;
  --green: #7cae3b;
  --line: #e7ebf1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', sans-serif; background: var(--bg); color: var(--text); }
.container { width: min(1080px, 92vw); margin: 0 auto; }
.section { padding: 48px 0; }

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #163564 0%, var(--navy) 55%);
}
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  opacity: .22;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.12), rgba(255,255,255,0) 44%);
  opacity: .35;
}
.hero-wrap > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  color: var(--navy);
  height: 112px;
  padding: 0;
  background: #fff;
}
.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.brand {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.62rem;
  line-height: 1;
}
.brand span {
  color: var(--navy);
  transition: color .2s ease;
}
.brand:hover span { color: var(--green); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
}
.site-nav a:hover { color: var(--green); }
#topo, #sobre, #projetos, #experiencia, #formulario-contato { scroll-margin-top: 132px; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 34px;
  height: 28px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 4px 0;
}

.hero {
  color: #fff;
  padding: 132px 0 0;
}
.hero .container {
  width: calc(100% - 4vw);
  max-width: none;
  margin-left: 4vw;
  margin-right: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 12px; min-height: 572px;margin-left: 5rem;
    margin-right: 5rem; }
.hero-left,
.hero-right {
  min-width: 0;
}
.hero-right {
  position: relative;
  min-height: -webkit-fill-available;
  display: flex;
  overflow: visible;
  justify-content: center;
}
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 2px 0 18px; max-width: 560px; }
.kicker { margin: 0 0 8px; font-size: 1.8rem; font-weight: 500; }
.kicker span, h1 span, .cta h2 span { color: var(--green); }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.5rem, 6.8vw, 4.6rem); line-height: 1.03; }
.hero h1 span { white-space: nowrap; }
.hero p { margin: 0 0 12px; color: #c7d6ee; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn { text-decoration: none; border-radius: 8px; font-weight: 700; font-size: .85rem; padding: 11px 14px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline { border: 1px solid #415b86; color: #e7eefb; background: rgba(255,255,255,.03); }
.hero-visual-photo {
  z-index: 2;
  width: 30rem;
  object-fit: cover;
  object-position: left bottom;
  pointer-events: none;
}
.hero-visual-grid {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  opacity: .9;
  pointer-events: auto;
  mask-image: linear-gradient(to right, rgba(0,0,0,.16) 0 46%, rgba(0,0,0,.42) 60%, rgba(0,0,0,1) 76%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.16) 0 46%, rgba(0,0,0,.42) 60%, rgba(0,0,0,1) 76%);
}
.hero-visual-tile {
  position: relative;
}
.hero-visual-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: .32rem;
  width: .32rem;
  border-radius: 50%;
  background: rgba(124, 174, 59, .78);
  transition: 500ms linear all;
  box-shadow:
    3rem 0 0 -.24rem, -3rem 0 0 -.24rem, 0 -3rem 0 -.24rem, 0 3rem 0 -.24rem,
    6rem 0 0 -.48rem, -6rem 0 0 -.48rem, 0 -6rem 0 -.48rem, 0 6rem 0 -.48rem,
    3rem 3rem 0 -.34rem, 3rem -3rem 0 -.34rem, -3rem 3rem 0 -.34rem, -3rem -3rem 0 -.34rem;
}
.hero-visual-tile:hover::before {
  background: var(--green);
  height: 2.4rem;
  width: 2.4rem;
  box-shadow:
    0 0 26px 2px rgba(124, 174, 59, .65),
    3rem 0 0 .42rem, -3rem 0 0 .42rem, 0 -3rem 0 .42rem, 0 3rem 0 .42rem,
    6rem 0 0 -.48rem, -6rem 0 0 -.48rem, 0 -6rem 0 -.48rem, 0 6rem 0 -.48rem,
    3rem 3rem 0 -.34rem, 3rem -3rem 0 -.34rem, -3rem 3rem 0 -.34rem, -3rem -3rem 0 -.34rem;
  transition: 70ms linear all;
}

.about { background: #fff; }
.about-grid { display: block; }
.about-main {
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.about-photo {
  min-height: 430px;
  border-radius: 34px 34px 0 0;
  position: relative;
  isolation: isolate;
  background-color: #01060f;
  background-image:
    linear-gradient(rgba(26, 49, 88, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 49, 88, .22) 1px, transparent 1px),
    radial-gradient(circle at 25% 28%, #173a72 0%, #04142f 58%, #01060f 100%);
  background-repeat: no-repeat;
  background-position: 0 0, 0 0, center;
  background-size: 22px 22px, 22px 22px, cover;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), rgba(255, 255, 255, .2) 36%, rgba(255, 255, 255, 0) 84%);
  opacity: 0;
  transition: opacity .2s ease;
}
.about-photo:hover::before {
  opacity: 1;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("./assets/imagem1-sem-fundo.png") no-repeat left bottom / contain;
  pointer-events: none;
}
.about-text h2 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .98; }
.about-text h2 span {
  color: var(--navy);
  transition: color .2s ease;
}
.about-text h2:hover span { color: var(--green); }
.section-tag { margin: 0 0 6px; font-size: .8rem; color: var(--green); font-weight: 800; letter-spacing: .08em; }
.about-text p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.pillars { display: grid; gap: 10px; }
.pillars article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pillars h3 { margin: 0 0 4px; font-size: .98rem; }
.pillars p { margin: 0; color: var(--muted); font-size: .85rem; }

.highlights {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  border-radius: 10px;
  color: #fff;
}
.highlights article {
  padding: 14px;
  border-right: 1px solid rgba(255,255,255,.16);
  display: flex;
  gap: 12px;
  align-items: center;
}
.highlights article:last-child { border-right: 0; }
.highlight-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.highlight-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.highlights h3 { margin: 0 0 6px; color: var(--green); font-size: 1rem; }
.highlights p { margin: 0; color: #d6e2f6; font-size: .84rem; }

@media (max-width: 1180px) {
  .highlights {
    grid-template-columns: 1fr;
  }
  .highlights article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    padding: 16px;
  }
  .highlights article:last-child {
    border-bottom: 0;
  }
}

.section-title { margin: 0; text-align: center; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.03; color: #0b1a3b; }
.section-subtitle { margin: 10px auto 0; text-align: center; max-width: 720px; color: var(--muted); }

.projects-logo-strip {
  margin-top: 10px;
  width: min(560px, 92vw);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 2px 4px 10px;
}
.projects-logo-strip::-webkit-scrollbar {
  display: none;
}
.logo-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 84px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.logo-chip:hover { transform: translateY(-1px); }
.chip-logo { width: 100%; height: 100%; object-fit: contain; }
.logo-chip.is-active {
  border-color: #2f5f9d;
  box-shadow: 0 8px 18px rgba(8, 35, 72, .12);
}

.projects-carousel {
  margin-top: 34px;
  position: relative;
  height: 390px;
  isolation: isolate;
}
.project-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(500px, 76vw);
  min-height: 320px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  transform: translateX(-50%) scale(.78);
  opacity: 0;
  filter: blur(3px);
  transition: transform .55s ease, opacity .55s ease, filter .55s ease, box-shadow .55s ease;
}
.project-logo { width: 100%; height: 92px; object-fit: contain; object-position: left center; }
.project-card h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.project-card.is-active {
  z-index: 3;
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) scale(1);
  box-shadow: 0 16px 32px rgba(7, 25, 52, .14);
}
.project-card.is-prev {
  z-index: 2;
  opacity: .62;
  filter: blur(2.4px);
  transform: translateX(calc(-50% - 340px)) scale(.84) rotateY(20deg) rotateZ(-2deg);
  cursor: pointer;
}
.project-card.is-next {
  z-index: 2;
  opacity: .62;
  filter: blur(2.4px);
  transform: translateX(calc(-50% + 340px)) scale(.84) rotateY(-20deg) rotateZ(2deg);
  cursor: pointer;
}
.project-card.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-50%) scale(.72);
}

.expertise-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.expertise-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.expertise-grid h3 { margin: 0 0 5px; font-size: .92rem; line-height: 1.2; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }

.cta {
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  border-radius: 14px;
  color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 10px;
  align-items: end;
}
.cta h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.03; }
.cta p { margin: 0; max-width: 520px; color: #cfdef4; }
.cta-visual { min-height: 210px; border-radius: 10px; background: radial-gradient(circle at 76% 32%, rgba(124,174,59,.4) 0, rgba(124,174,59,0) 24%), linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,0)); }

.contact-form-section { padding-top: 0; }
.contact-form-wrap {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-side {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, #f8fafc, #eef3fa);
}
.contact-side h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: #0b1a3b;
}
.contact-line {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.45;
}
.contact-line strong { color: var(--text); }
.contact-protected {
  margin-top: 34px;
  color: #6b7d98;
  font-weight: 600;
}
.contact-form { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d5ddea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #91a0b8; }
.contact-form select:invalid { color: #91a0b8; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #2e5b94;
  box-shadow: 0 0 0 2px rgba(46,91,148,.14);
}
.form-submit {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 16px;
  cursor: pointer;
}
.form-submit:hover { filter: brightness(1.04); }
.form-disclaimer {
  margin: 12px 0 0;
  color: #70819b;
  font-size: .88rem;
}

.footer { padding: 22px 0 28px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: #5f6f89; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { color: #44526d; text-decoration: none; font-weight: 700; font-size: .9rem; }

@media (max-width: 1024px) {
  .hero-grid, .cta { grid-template-columns: 1fr; }
  .about-main { grid-template-columns: 1fr; }
  .site-header { height: 132px; }
  .site-header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .hero { padding-top: 152px; }
  .hero-right { min-height: 300px; }
  .about-photo { min-height: 230px; }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .contact-side { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .site-header {
    height: 82px;
  }
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(7, 25, 52, .08);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 12px;
    display: none;
  }
  .site-header.menu-open .site-nav {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  #topo, #sobre, #projetos, #experiencia, #formulario-contato { scroll-margin-top: 92px; }
  .hero {
    padding-top: 96px;
  }
  .hero .container {
    width: 92vw;
    margin: 0 auto;
  }
  .hero-right {
    min-height: 360px;
  }
  .hero-visual-photo {
    left: -30px;
    right: auto;
    width: calc(100% + 50px);
    bottom: -36px;
  }
  .hero h1 { font-size: 2.3rem; }
  .highlights, .expertise-grid { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
  .projects-carousel { height: 360px; }
  .project-card { width: min(460px, 90vw); min-height: 300px; padding: 18px; }
  .projects-logo-strip { gap: 8px; }
  .logo-chip { width: 78px; height: 36px; }
  .project-card.is-prev,
  .project-card.is-next {
    opacity: 0;
    transform: translateX(-50%) scale(.72);
  }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
}
