/* KOVA — approved mobile hero composition.
   Loaded only on phones and intentionally isolated from desktop. */
@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header — same organization as the approved mobile reference. */
  .site-header {
    top: 18px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 90 !important;
  }

  .nav-shell {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 clamp(20px, 5.5vw, 28px) !important;
    grid-template-columns: 1fr auto !important;
  }

  .brand-mark {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    margin: 0 !important;
  }

  .brand-mark::after { content: none !important; }

  .brand-mark img {
    display: block !important;
    width: 66px !important;
    height: 66px !important;
    max-width: none !important;
    object-fit: contain !important;
  }

  .nav-actions {
    gap: 10px !important;
  }

  .theme-toggle,
  .menu-toggle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border: 1px solid color-mix(in srgb, var(--text) 24%, transparent) !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--bg) 78%, transparent) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
  }

  .theme-toggle {
    display: grid !important;
    place-items: center !important;
    min-width: 50px !important;
  }

  .theme-toggle svg {
    display: none !important;
    width: 21px !important;
    height: 21px !important;
    opacity: 1 !important;
  }

  :root[data-theme="dark"] .theme-toggle .moon,
  :root[data-theme="light"] .theme-toggle .sun {
    display: block !important;
  }

  .menu-toggle::before {
    content: "" !important;
    position: absolute !important;
    left: 13px !important;
    right: 13px !important;
    top: 24px !important;
    height: 1.5px !important;
    background: currentColor !important;
    transition: opacity var(--transition-fast) ease !important;
  }

  .menu-toggle i:first-child {
    top: 17px !important;
    left: 13px !important;
    right: 13px !important;
  }

  .menu-toggle i:last-child {
    top: 31px !important;
    left: 13px !important;
    right: 13px !important;
  }

  .menu-toggle[aria-expanded="true"]::before { opacity: 0 !important; }
  .menu-toggle[aria-expanded="true"] i:first-child,
  .menu-toggle[aria-expanded="true"] i:last-child { top: 24px !important; }

  /* One deliberate mobile flow. No absolute positioning for text, artwork,
     benefits or CTAs, so elements can never overlap each other. */
  .hero-stage4 {
    position: relative !important;
    height: auto !important;
    min-height: 930px !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  .hero-stage4 .hero-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 930px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 124px clamp(22px, 6vw, 30px) 150px !important;
    align-content: start !important;
  }

  .hero-stage4 .hero-side,
  .hero-stage4 .desktop-hero-copy,
  .hero-stage4 .mobile-orbit {
    display: none !important;
  }

  .hero-stage4 .mobile-hero-copy {
    display: contents !important;
    position: static !important;
    inset: auto !important;
  }

  .hero-stage4 .mobile-eyebrow,
  .hero-stage4 .mobile-title,
  .hero-stage4 .mobile-hero-copy > p:not(.mobile-title),
  .hero-stage4 .hero-title-original,
  .hero-stage4 .hero-benefits,
  .hero-stage4 .mobile-secondary,
  .hero-stage4 .mobile-primary {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 12 !important;
  }

  .hero-stage4 .mobile-eyebrow {
    grid-row: 1 !important;
    margin: 0 0 28px !important;
    font: 500 clamp(9px, 2.7vw, 11px)/1.2 var(--mono) !important;
    letter-spacing: .24em !important;
    white-space: nowrap !important;
    color: var(--text) !important;
  }

  .hero-stage4 .mobile-title {
    grid-row: 2 !important;
    margin: 0 !important;
    max-width: 100% !important;
    font-size: clamp(2.45rem, 11.2vw, 3.35rem) !important;
    line-height: .91 !important;
    letter-spacing: -.065em !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    text-wrap: balance !important;
  }

  .hero-stage4 .mobile-hero-copy > p:not(.mobile-title) {
    grid-row: 3 !important;
    margin: 24px 0 0 !important;
    max-width: 100% !important;
    font-size: clamp(.92rem, 3.9vw, 1.04rem) !important;
    line-height: 1.52 !important;
    letter-spacing: -.015em !important;
    color: var(--muted) !important;
  }

  /* KOVA artwork — centered, isolated, never behind the text. */
  .hero-stage4 .hero-title-original {
    grid-row: 4 !important;
    display: grid !important;
    place-items: center !important;
    justify-self: center !important;
    width: min(72vw, 300px) !important;
    height: clamp(92px, 25vw, 116px) !important;
    margin: 30px auto 0 !important;
    pointer-events: none !important;
  }

  .hero-stage4 .hero-title-original img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Three benefits — exactly one compact card below KOVA. */
  .hero-stage4 .hero-benefits {
    grid-row: 5 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-height: 116px !important;
    margin: 20px 0 0 !important;
    padding: 8px 4px !important;
    align-items: stretch !important;
    border: 1px solid color-mix(in srgb, var(--text) 24%, transparent) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--bg) 78%, transparent) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 18px 42px rgb(0 0 0 / 14%) !important;
  }

  .hero-stage4 .hero-benefits > div {
    display: flex !important;
    min-width: 0 !important;
    min-height: 98px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 6px 8px !important;
    text-align: center !important;
    font-size: clamp(.67rem, 2.9vw, .78rem) !important;
    line-height: 1.28 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .hero-stage4 .hero-benefits > div + div {
    border-left: 1px solid color-mix(in srgb, var(--text) 20%, transparent) !important;
  }

  .hero-stage4 .hero-benefits svg {
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    opacity: .96 !important;
  }

  /* CTA order from the approved reference: services first, conversation second. */
  .hero-stage4 .mobile-secondary {
    grid-row: 6 !important;
    display: flex !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(76vw, 320px) !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 26px auto 0 !important;
    padding: 0 22px !important;
    border: 1px solid color-mix(in srgb, var(--text) 76%, transparent) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--bg) 74%, transparent) !important;
    color: var(--text) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    font-size: .96rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  .hero-stage4 .mobile-primary {
    grid-row: 7 !important;
    display: flex !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: min(76vw, 320px) !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 12px auto 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--text) !important;
    color: var(--inverse) !important;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 18%, transparent) !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  .hero-stage4 .mobile-primary::before {
    content: "Vamos conversar" !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .hero-stage4 .mobile-primary span {
    display: inline-block !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  /* Earth is decorative only, anchored behind the CTA area. */
  .hero-stage4 .hero-earth-original {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: -72px !important;
    width: 166vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    pointer-events: none !important;
  }

  .hero-stage4 .hero-earth-original::before {
    opacity: .54 !important;
  }

  .hero-stage4 .hero-earth-original::after {
    display: none !important;
  }

  .hero-stage4 .hero-earth-original img {
    width: 100% !important;
    max-width: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .hero-galaxy-canvas {
    opacity: .95 !important;
  }

  /* Endless word ticker remains directly after the mobile hero. */
  .hero-stage4 + .ticker {
    display: block !important;
    position: relative !important;
    z-index: 40 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .hero-stage4 + .ticker .ticker-track {
    height: 52px !important;
    min-height: 52px !important;
    gap: 20px !important;
    padding-inline: 20px !important;
    font-size: 10.5px !important;
    animation-duration: 24s !important;
  }
}

@media (max-width: 430px) {
  .hero-stage4,
  .hero-stage4 .hero-inner {
    min-height: 910px !important;
  }

  .hero-stage4 .hero-inner {
    padding: 118px 22px 142px !important;
  }

  .hero-stage4 .mobile-eyebrow {
    margin-bottom: 24px !important;
    font-size: 9.5px !important;
    letter-spacing: .22em !important;
  }

  .hero-stage4 .mobile-title {
    font-size: clamp(2.35rem, 11vw, 3rem) !important;
  }

  .hero-stage4 .mobile-hero-copy > p:not(.mobile-title) {
    margin-top: 22px !important;
    font-size: .93rem !important;
  }

  .hero-stage4 .hero-title-original {
    width: min(70vw, 270px) !important;
    height: 102px !important;
    margin-top: 26px !important;
  }

  .hero-stage4 .hero-benefits {
    min-height: 112px !important;
    margin-top: 18px !important;
  }

  .hero-stage4 .mobile-secondary,
  .hero-stage4 .mobile-primary {
    width: min(78vw, 300px) !important;
  }

  .hero-stage4 .hero-earth-original {
    width: 174vw !important;
    bottom: -68px !important;
  }
}

@media (max-width: 360px) {
  .site-header { top: 14px !important; }
  .nav-shell { padding-inline: 16px !important; }
  .brand-mark { width: 56px !important; height: 56px !important; min-width: 56px !important; }
  .brand-mark img { width: 60px !important; height: 60px !important; }
  .theme-toggle,
  .menu-toggle { width: 46px !important; height: 46px !important; min-width: 46px !important; min-height: 46px !important; }

  .hero-stage4,
  .hero-stage4 .hero-inner {
    min-height: 890px !important;
  }

  .hero-stage4 .hero-inner {
    padding: 112px 18px 136px !important;
  }

  .hero-stage4 .mobile-eyebrow {
    margin-bottom: 22px !important;
    font-size: 9px !important;
    letter-spacing: .19em !important;
  }

  .hero-stage4 .mobile-title {
    font-size: 2.22rem !important;
  }

  .hero-stage4 .mobile-hero-copy > p:not(.mobile-title) {
    font-size: .9rem !important;
  }

  .hero-stage4 .hero-title-original {
    width: 68vw !important;
    height: 96px !important;
    margin-top: 24px !important;
  }

  .hero-stage4 .hero-benefits {
    min-height: 108px !important;
    border-radius: 20px !important;
  }

  .hero-stage4 .hero-benefits > div {
    min-height: 92px !important;
    padding-inline: 5px !important;
    font-size: .66rem !important;
  }

  .hero-stage4 .mobile-secondary,
  .hero-stage4 .mobile-primary {
    width: 82vw !important;
  }

  .hero-stage4 .hero-earth-original {
    width: 182vw !important;
  }
}
