/* Ritmo, navegação e refinamentos posteriores à primeira revisão visual. */
main {
  display: flex;
  flex-direction: column;
}

.hero { order: 1; }
.intro { order: 2; }
.portfolio { order: 3; }
.services { order: 4; }
.process { order: 5; }
.about { order: 6; }
.contact { order: 7; }

main > section[id] {
  scroll-margin-top: 86px;
}

.intro {
  padding-top: 120px;
  padding-bottom: 85px;
}

.portfolio {
  padding-top: 115px;
  padding-bottom: 115px;
}

.services {
  padding-top: 40px;
  padding-bottom: 115px;
}

.hero-photo {
  background:
    radial-gradient(circle at 78% 35%, rgba(84, 238, 34, .12), transparent 26%),
    linear-gradient(125deg, #070a09 0%, #101713 62%, #080b0a 100%);
  transform: none;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(4, 6, 5, .55), rgba(4, 6, 5, .05));
}

.about {
  display: block;
  min-height: auto;
}

.about-copy {
  width: min(var(--max), calc(100% - 56px));
  max-width: none;
  margin: 0 auto;
  padding: 120px 0;
}

.about-copy h2,
.about-copy > p:not(.eyebrow) {
  max-width: 820px;
}

.about-facts {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact {
  background: linear-gradient(135deg, #070a09 0%, #101713 100%);
}

.contact::after {
  background: radial-gradient(circle at 80% 50%, rgba(84, 238, 34, .08), transparent 28%);
}

.service-featured {
  padding-top: 70px;
  padding-bottom: 70px;
}

.process {
  padding-top: 120px;
  padding-bottom: 120px;
}

.topbar nav a {
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--green);
  transition: right .25s ease;
}

.topbar nav a:hover::after,
.topbar nav a.active::after {
  right: 0;
}

.topbar nav a.active {
  color: #fff;
}

.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project:active,
.button:active {
  transform: scale(.985);
}

.floating-whatsapp {
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform .25s ease, filter .25s ease;
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .32));
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  filter: saturate(1.08);
}

@media (max-width: 900px) {
  main > section[id] { scroll-margin-top: 70px; }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 145px;
    padding-bottom: 175px;
  }

  .hero-copy {
    max-width: 32rem;
    line-height: 1.55;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .hero-proof span:nth-child(3) {
    display: none;
  }

  .intro,
  .process {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .portfolio {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .services {
    padding-top: 20px;
    padding-bottom: 80px;
  }

  .service-featured {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-copy,
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about-copy {
    width: calc(100% - 40px);
  }

  .about-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 64px;
    height: 64px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 12.4vw, 3.65rem);
  }

  .hero-proof span {
    padding: 10px 0;
  }

  .project-grid {
    grid-auto-rows: 230px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .technical-card {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
