/* Original KOVA visual assets — no generated substitutes, no image filters. */
.about-art-original {
  min-height: 330px;
  height: 330px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent !important;
}
.about-art-original img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: none !important;
}

.service-card {
  min-height: 310px;
  padding-bottom: 16px;
}
.service-art-original {
  height: 170px;
  background: #0b0c0f !important;
  overflow: hidden;
  border-bottom: 1px solid var(--line2);
}
.service-art-original img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none !important;
  transform: none !important;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
}
.service-card h3 { margin-top: 14px; }

.service-card > button,
.services .service-card > button {
  display: none !important;
}

@media (min-width: 901px) {
  .about.section,
  .services.section,
  .projects.section {
    min-height: clamp(690px, 78vh, 900px);
    padding-block: clamp(92px, 9vh, 138px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .about-art-original {
    min-height: clamp(390px, 43vh, 500px);
    height: clamp(390px, 43vh, 500px);
  }
  .service-card { min-height: 340px; padding-bottom: 22px; }
  .service-art-original { height: 225px; }
  .project-card { min-height: 340px; }
  .project-media { height: 220px; }
  .contact {
    min-height: clamp(520px, 62vh, 720px);
    padding-block: clamp(86px, 8vh, 126px);
    align-items: center;
  }
}

.hero-stage4 + .ticker {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 24px calc(50% - 50vw) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  color: #050608 !important;
}
:root[data-theme="light"] .hero-stage4 + .ticker {
  background: #08090b !important;
  color: #fff !important;
}
.hero-stage4 + .ticker .ticker-track {
  width: max-content !important;
  min-width: max-content !important;
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 28px;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  white-space: nowrap;
  background: transparent !important;
  color: inherit !important;
  font: 600 12px/1 var(--mono);
  letter-spacing: .18em;
  box-shadow: none !important;
  will-change: transform;
  animation: kovaTickerLoopFullBleed 28s linear infinite !important;
}
.hero-stage4 + .ticker .ticker-track > * {
  flex: none;
  color: inherit !important;
  border-radius: 0 !important;
}
@keyframes kovaTickerLoopFullBleed {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 14px), 0, 0); }
}

@media (min-width: 1100px) {
  .about-grid {
    grid-template-columns: minmax(0,.9fr) minmax(420px,1.45fr) minmax(150px,.42fr);
    align-items: center;
  }
  .service-scroller { gap: 12px; }
}

@media (max-width: 900px) {
  .about-art-original { min-height: 280px; height: 280px; }
  .service-art-original { height: 180px; }
  .hero-stage4 + .ticker {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .hero-stage4 + .ticker .ticker-track {
    height: 54px;
    min-height: 54px;
    padding-inline: 22px !important;
    animation-duration: 24s !important;
  }
}

@media (max-width: 720px) {
  .section { padding-block: clamp(54px, 10vw, 76px); }
  .about-art-original { min-height: 240px; height: 240px; margin-top: 14px; }
  .service-card { min-height: 286px; padding-bottom: 18px; }
  .service-art-original { height: 185px; }

  /* HARD RESET: mobile hero uses one real vertical flow. */
  html body .hero-stage4 {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html body .hero-stage4 .hero-inner {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 960px !important;
    padding: 112px clamp(18px,5vw,24px) 150px !important;
  }

  /* Remove the old absolute wrapper so its children can participate in hero flow. */
  html body .hero-stage4 .mobile-hero-copy {
    display: contents !important;
  }

  html body .hero-stage4 .mobile-eyebrow {
    order: 1 !important;
    position: relative !important;
    margin: 0 0 14px !important;
    z-index: 6 !important;
  }

  html body .hero-stage4 .mobile-title {
    order: 2 !important;
    position: relative !important;
    margin: 0 !important;
    font-size: clamp(2.35rem,10.6vw,3.25rem) !important;
    line-height: .94 !important;
    letter-spacing: -.055em !important;
    z-index: 6 !important;
  }

  html body .hero-stage4 .mobile-hero-copy p:not(.mobile-title),
  html body .hero-stage4 .hero-inner > p:not(.mobile-title) {
    order: 3 !important;
    position: relative !important;
    margin: 12px 0 0 !important;
    max-width: 100% !important;
    font-size: clamp(.94rem,4vw,1.05rem) !important;
    line-height: 1.48 !important;
    z-index: 6 !important;
  }

  /* KOVA immediately follows the copy: no dead vertical gap. */
  html body .hero-stage4 .hero-title-original {
    order: 4 !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: min(46vw,205px) !important;
    max-width: 205px !important;
    height: 90px !important;
    margin: 16px auto 0 !important;
    transform: none !important;
    z-index: 6 !important;
  }
  html body .hero-stage4 .hero-title-original img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Compact benefits panel, slightly transparent. */
  html body .hero-stage4 .hero-benefits {
    order: 5 !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(88vw,430px) !important;
    min-height: 118px !important;
    margin: 18px auto 0 !important;
    padding: 12px 6px !important;
    border-radius: 22px !important;
    background: color-mix(in srgb,var(--bg) 58%,transparent) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: .9 !important;
    z-index: 7 !important;
  }
  html body .hero-stage4 .hero-benefits > div {
    min-height: 92px !important;
    padding: 8px 6px !important;
    font-size: clamp(.68rem,2.9vw,.78rem) !important;
  }
  html body .hero-stage4 .hero-benefits svg {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 7px !important;
  }

  /* CTAs BELOW the benefits panel: Nossos serviços first, Vamos conversar second. */
  html body .hero-stage4 .mobile-secondary {
    order: 6 !important;
    display: inline-flex !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    width: max-content !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 14px auto 0 !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid color-mix(in srgb,var(--text) 50%,transparent) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb,var(--bg) 48%,transparent) !important;
    color: var(--text) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: none !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    z-index: 8 !important;
  }

  html body .hero-stage4 .mobile-primary {
    order: 7 !important;
    display: inline-flex !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    width: max-content !important;
    min-width: 0 !important;
    min-height: 32px !important;
    height: auto !important;
    margin: 9px auto 0 !important;
    padding: 0 2px 5px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-size: 0 !important;
    text-decoration: none !important;
    z-index: 8 !important;
  }
  html body .hero-stage4 .mobile-primary::before {
    content: "Vamos conversar" !important;
    font-size: .88rem !important;
    line-height: 1 !important;
  }
  html body .hero-stage4 .mobile-primary span {
    font-size: .84rem !important;
    line-height: 1 !important;
  }

  /* Earth is visual background only and no longer creates layout gaps. */
  html body .hero-stage4 .hero-earth-original {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: -28px !important;
    width: 154vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  html body .hero-stage4 .mobile-orbit { display: none !important; }

  /* Top-left K mark: slightly larger as requested. */
  html body .site-header .brand-mark,
  html body .site-header .brand-mark img {
    width: 60px !important;
    height: 60px !important;
  }

  .hero-stage4 + .ticker {
    display: block !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
  }
}

@media (max-width: 430px) {
  html body .hero-stage4 .hero-inner {
    min-height: 930px !important;
    padding-top: 108px !important;
    padding-bottom: 145px !important;
  }
  html body .hero-stage4 .mobile-title {
    font-size: clamp(2.25rem,10.4vw,3.05rem) !important;
  }
  html body .hero-stage4 .hero-title-original {
    width: min(45vw,190px) !important;
    height: 84px !important;
    margin-top: 14px !important;
  }
  html body .hero-stage4 .hero-benefits {
    width: min(86vw,390px) !important;
    min-height: 112px !important;
  }
}

@media (max-width: 390px) {
  html body .hero-stage4 .hero-inner {
    min-height: 910px !important;
    padding-inline: 18px !important;
  }
  html body .hero-stage4 .mobile-title {
    font-size: clamp(2.1rem,10.2vw,2.85rem) !important;
  }
  html body .hero-stage4 .hero-title-original {
    width: min(43vw,170px) !important;
    height: 78px !important;
  }
  html body .hero-stage4 .hero-benefits {
    width: min(88vw,360px) !important;
    padding-inline: 4px !important;
  }
  html body .hero-stage4 .hero-benefits > div {
    font-size: .68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage4 + .ticker .ticker-track {
    animation: none !important;
    transform: none !important;
  }
}
