/* Homepage hero composition only. All copy and media remain template-driven. */
.agency-hero {
  min-height: 720px;
  padding: clamp(2.75rem, 5vw, 4.75rem) 0;
}

.agency-hero-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 4.5vw, 4.75rem);
}

.agency-hero-copy {
  align-self: center;
}

.agency-hero h1 {
  max-width: 10.6ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.9rem, 5.75vw, 5.7rem);
  line-height: .86;
}

.agency-hero h1 em {
  margin-top: .08em;
  color: rgba(72, 119, 255, .2);
  -webkit-text-stroke: 1.8px #5d83ff;
  paint-order: stroke fill;
  text-shadow: 0 0 22px rgba(21, 87, 255, .24);
}

@supports not (-webkit-text-stroke: 1px #000) {
  .agency-hero h1 em {
    color: #416ff0;
    text-shadow: 1px 0 #7699ff, -1px 0 #7699ff, 0 1px #7699ff, 0 -1px #7699ff;
  }
}

.agency-hero .agency-lede {
  max-width: 47ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.agency-actions {
  margin-top: 1.55rem;
}

.agency-proof {
  margin-top: 1.55rem;
  gap: .75rem 1.15rem;
  font-size: .875rem;
}

.hero-device-showcase {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 570px;
  isolation: isolate;
  align-self: center;
}

.hero-showcase-lines {
  position: absolute;
  z-index: 1;
  inset: 7% -9% -5% 4%;
  width: 105%;
  height: 102%;
  overflow: visible;
  color: var(--cobalt);
  opacity: .58;
  pointer-events: none;
}

.hero-showcase-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
}

.hero-browser,
.hero-phone {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #030711;
  border: 1px solid #52617b;
  box-shadow: 0 28px 75px rgba(0, 0, 0, .68), 0 0 42px rgba(21, 87, 255, .08);
}

.hero-browser {
  border-radius: 10px;
}

.hero-browser-secondary {
  z-index: 2;
  top: 42px;
  left: 5%;
  width: 62%;
  aspect-ratio: 1.58 / 1;
  transform: rotate(-3deg);
  transform-origin: 55% 75%;
}

.hero-browser-main {
  z-index: 3;
  right: 0;
  bottom: 36px;
  width: 79%;
  aspect-ratio: 1.58 / 1;
}

.hero-browser-bar {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #060c17;
  border-bottom: 1px solid #28354a;
}

.hero-browser-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64728a;
}

.hero-browser-bar i {
  position: absolute;
  left: 50%;
  width: 40%;
  height: 5px;
  border-radius: 4px;
  background: #101b2e;
  transform: translateX(-50%);
}

.hero-browser-screen {
  height: calc(100% - 24px);
  overflow: hidden;
}

.hero-browser-screen img,
.hero-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-phone {
  z-index: 4;
  left: 1%;
  bottom: 4px;
  width: 23%;
  aspect-ratio: 9 / 19;
  padding: 14px 6px 7px;
  border: 5px solid #080d17;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .82), 0 0 0 1px #56647a;
}

.hero-phone-island {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 50%;
  width: 35%;
  height: 8px;
  border-radius: 10px;
  background: #03060c;
  transform: translateX(-50%);
}

.hero-phone-speaker {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 58%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #354158;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #071121;
}

.hero-showcase-annotation {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: min(225px, 35%);
  color: var(--lime);
  transform: rotate(-3deg);
  transform-origin: right top;
  pointer-events: none;
}

.hero-showcase-annotation p {
  margin: 0;
  font: 700 clamp(1.55rem, 2.2vw, 2rem) / .98 "Caveat", "Segoe Print", cursive;
  letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 2px 12px #02050c;
}

.hero-showcase-arrow {
  width: 150px;
  height: 92px;
  margin: -.15rem 0 0 -.5rem;
  overflow: visible;
}

.hero-showcase-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199px) {
  .agency-hero {
    min-height: 680px;
  }

  .agency-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 2rem;
  }

  .agency-hero h1 {
    font-size: clamp(3.35rem, 6.4vw, 4.8rem);
  }

  .hero-device-showcase {
    min-height: 500px;
  }

  .hero-browser-secondary {
    top: 56px;
  }

  .hero-browser-main {
    bottom: 44px;
    width: 82%;
  }

  .hero-showcase-annotation {
    width: min(190px, 38%);
  }
}

@media (max-width: 1050px) {
  .agency-hero {
    padding-top: 3.75rem;
  }

  .agency-hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .agency-hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 6.2vw, 4rem);
  }

  .agency-hero .agency-lede {
    font-size: 1rem;
  }

  .agency-proof {
    font-size: .8125rem;
  }

  .hero-device-showcase {
    min-height: 460px;
  }

  .hero-browser-secondary {
    top: 60px;
    left: 3%;
  }

  .hero-browser-main {
    width: 84%;
  }

  .hero-phone {
    width: 24%;
  }

  .hero-showcase-annotation {
    width: 170px;
  }

  .hero-showcase-annotation p {
    font-size: 1.45rem;
  }
}

@media (max-width: 767px) {
  .agency-hero {
    min-height: 0;
    padding: 4rem 0 4.5rem;
  }

  .agency-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .agency-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.15rem, 15.5vw, 4.65rem);
  }

  .agency-hero .agency-lede {
    font-size: 1rem;
  }

  .hero-device-showcase {
    min-height: 430px;
  }

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

  .hero-browser-main {
    right: -1%;
    bottom: 22px;
    width: 91%;
  }

  .hero-phone {
    left: 0;
    bottom: 0;
    width: 27%;
    border-radius: 18px;
  }

  .hero-showcase-annotation {
    top: 0;
    right: 1%;
    width: 165px;
  }

  .hero-showcase-annotation p {
    font-size: 1.4rem;
  }

  .hero-showcase-arrow {
    width: 105px;
    height: 65px;
  }

  .hero-showcase-lines {
    inset: 20% -15% -3% 8%;
    opacity: .38;
  }
}

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