/* Mobile-only homepage hero composition. Desktop hero remains owned by the core theme. */
@media (max-width: 900px) {
  .agency-home .global-site-header {
    height: calc(70px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .agency-home .global-nav-shell {
    min-height: 70px;
    padding-inline: clamp(20px, 4.6vw, 28px);
  }

  .agency-home .global-brand {
    width: auto;
    max-width: min(175px, calc(100vw - 96px));
    gap: 0.58rem;
  }

  .agency-home .global-brand img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .agency-home .global-brand > span {
    min-width: 0;
    font-size: clamp(0.86rem, 3.4vw, 1rem);
    white-space: nowrap;
  }

  .agency-home .global-menu-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .agency-home .agency-hero {
    min-height: 0;
    height: auto;
    padding: 52px 0 44px;
    align-items: start;
  }

  .agency-home .agency-hero > .agency-shell {
    width: calc(100% - 40px) !important;
    max-width: 100%;
  }

  .agency-home .agency-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .agency-home .agency-hero-copy {
    display: contents;
  }

  .agency-home .agency-hero .agency-kicker {
    order: 1;
    max-width: 100%;
    margin: 0 0 0.9rem;
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
    line-height: 1.35;
    letter-spacing: 0.16em;
  }

  .agency-home .agency-hero h1 {
    order: 2;
    max-width: 100%;
    margin: 0 0 1rem;
    text-wrap: balance;
  }

  .agency-home .hero-title-main,
  .agency-home .hero-title-highlight {
    display: block;
    max-width: 100%;
  }

  .agency-home .hero-title-main {
    font-size: clamp(3rem, 12vw, 3.375rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  .agency-home .agency-hero h1 .hero-title-highlight {
    margin-top: 0.14em;
    font-size: clamp(2.625rem, 10.5vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    -webkit-text-stroke-width: 1.5px;
  }

  .agency-home .agency-hero .agency-lede {
    order: 3;
    max-width: 38rem;
    margin: 0;
    font-size: clamp(1.0625rem, 2.5vw, 1.125rem);
    line-height: 1.62;
  }

  .agency-home .agency-hero .agency-actions {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 38rem;
    margin: 1.2rem 0 0;
  }

  .agency-home .agency-hero .agency-actions .agency-btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0.7rem 0.65rem;
    justify-content: center;
    font-size: clamp(0.75rem, 2.1vw, 0.9rem);
    line-height: 1.15;
    white-space: nowrap;
  }

  .agency-home .hero-device-showcase {
    order: 5;
    width: 100%;
    max-width: 100%;
    height: clamp(350px, 53vw, 410px);
    min-height: 0;
    margin: 1.5rem 0 0;
    overflow: clip;
  }

  .agency-home .hero-browser-secondary {
    top: 25%;
    left: 7%;
    width: 52%;
    transform: rotate(-1deg);
  }

  .agency-home .hero-browser-main {
    right: 0;
    bottom: 10px;
    width: 87%;
    transform: none;
  }

  .agency-home .hero-phone {
    left: 2px;
    bottom: 2px;
    width: 24%;
    max-width: 24%;
    transform: none;
  }

  .agency-home .hero-showcase-annotation {
    top: 0;
    right: 1%;
    width: min(190px, 46%);
    max-width: 46%;
    font-size: clamp(1.2rem, 3.6vw, 1.45rem);
    line-height: 1;
    transform: rotate(-2deg);
  }

  .agency-home .hero-showcase-arrow {
    width: clamp(80px, 16vw, 112px);
    height: clamp(50px, 10vw, 70px);
    margin: -0.12rem 0 0 0.35rem;
  }

  .agency-home .hero-showcase-lines {
    inset: 16% 0 8% 0;
    width: 100%;
    max-width: 100%;
  }

  .agency-home .agency-hero .agency-proof {
    order: 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem 1rem;
    width: 100%;
    max-width: 38rem;
    margin: 1.25rem 0 0;
  }

  .agency-home .agency-hero .agency-proof li {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    font-size: clamp(0.875rem, 2.2vw, 0.95rem);
    line-height: 1.35;
  }

  .agency-home .agency-hero .agency-proof li span {
    flex: 0 0 auto;
    margin-right: 0.42rem;
    color: var(--agency-lime);
    line-height: 1.35;
  }

  .agency-home.home-hero-chat-hidden #tidio-chat,
  .agency-home.home-hero-chat-hidden #tidio-chat-iframe {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .agency-home .float-btn {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .agency-home.home-hero-chat-hidden .float-btn {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .agency-home .agency-hero {
    padding-top: 48px;
  }

  .agency-home .hero-device-showcase {
    height: clamp(310px, 82vw, 352px);
  }

  .agency-home .hero-browser-secondary {
    display: none;
  }

  .agency-home .hero-showcase-annotation {
    width: min(158px, 45%);
    font-size: clamp(1.125rem, 5vw, 1.35rem);
  }

  .agency-home .hero-showcase-arrow {
    width: clamp(76px, 22vw, 94px);
    height: clamp(48px, 14vw, 60px);
  }
}

@media (max-width: 359px) {
  .agency-home .agency-hero .agency-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 329px) {
  .agency-home .agency-hero .agency-proof {
    grid-template-columns: 1fr;
  }

  .agency-home .hero-showcase-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-home .hero-browser-secondary,
  .agency-home .hero-browser-main,
  .agency-home .hero-phone,
  .agency-home .hero-showcase-annotation {
    transition: none !important;
  }
}
