.vertex-mobile-hero-logo {
  display: none;
}

@media (max-width: 900px) {
  .site-nav.is-open {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav > a:not(.button) {
    display: flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 780px) {
  :is(.hero-editorial, .page-hero.marketing-hero) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--vertex-black);
  }

  :is(.hero-editorial__visual, .marketing-hero .marketing-hero__visual) {
    position: relative;
    inset: auto;
    order: -1;
    flex: none;
    width: 100%;
    height: clamp(345px, 109vw, 530px);
    min-height: 0;
    margin: 0;
    background: radial-gradient(ellipse at 50% 36%, #28231b, var(--vertex-black) 76%);
  }

  :is(.hero-editorial__photo, .marketing-hero .marketing-hero__portrait) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    mask-image: linear-gradient(#000 0 68%, transparent 99%);
  }

  .hero-editorial__photo {
    object-position: 71% center;
  }

  .marketing-hero--cutout .marketing-hero__portrait {
    object-fit: contain;
    object-position: center top;
  }

  :is(.hero-editorial__areas, .marketing-hero__badges) {
    inset: 45% 4% 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .12rem;
  }

  :is(.hero-editorial__areas li, .marketing-hero__badges .floating-bubble) {
    align-self: flex-start;
    width: max-content;
    max-width: 85%;
    padding: .28rem .64rem;
    font-size: clamp(.67rem, 2.9vw, .85rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: start;
    text-transform: none;
  }

  :is(.hero-editorial__areas li, .marketing-hero__badges li):nth-child(even) {
    align-self: flex-end;
  }

  :is(.hero-editorial__inner, .marketing-hero .page-hero-copy) {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2.4rem), 35rem);
    max-width: none;
    margin: -2.6rem auto 0;
    padding: 0 0 2.9rem;
    text-align: center;
  }

  .vertex-mobile-hero-logo {
    display: block;
    width: 6.5rem;
    height: 6.5rem;
    margin: 0 auto .75rem;
    object-fit: contain;
  }

  :is(.hero-editorial__copy, .marketing-hero .page-hero-copy) .eyebrow {
    justify-content: center;
    margin: 0 0 .85rem;
    color: var(--vertex-accent-light);
  }

  :is(.hero-editorial, .marketing-hero .page-hero-copy) h1 {
    font-size: clamp(2.25rem, 8.7vw, 3.75rem);
    line-height: 1.06;
    text-wrap: balance;
  }

  :is(.hero-editorial, .marketing-hero .page-hero-copy) h1 em {
    display: inline;
  }

  :is(.hero-editorial__lead, .marketing-hero .page-hero-copy .hero-lead) {
    max-width: 32rem;
    margin: 1.35rem auto 0;
    border-image: linear-gradient(90deg, var(--vertex-accent), transparent) 1;
  }

  :is(.hero-editorial__copy, .marketing-hero .page-hero-copy) .button-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  :is(.hero-editorial__copy, .marketing-hero .page-hero-copy) .button-row .button {
    width: min(100%, 26rem);
  }

  :is(.hero-editorial__copy, .marketing-hero .page-hero-copy) .button-row .text-link {
    align-self: center;
    min-height: 44px;
  }

  .marketing-hero .hero-notes {
    justify-content: center;
  }

  .whatsapp-float {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }

  :is(.site-footer, .vertex-footer) {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .vertex-founder__portrait {
    width: min(70%, 218px);
    margin-inline: auto;
  }
}

@media (max-width: 780px) and (min-height: 470px) and (prefers-reduced-motion: no-preference) {
  .vertex-scroll-stack > .vertex-feature-card {
    position: sticky;
    z-index: var(--stack-order);
    top: calc(5.15rem + var(--stack-order, 0) * .32rem);
    min-height: min(48svh, 17rem);
    background: linear-gradient(155deg, #090909, #24211c);
  }

  .vertex-scroll-stack > .vertex-feature-card:focus-within {
    z-index: 12;
  }
}