/* =========================================================================
   IRVx Softlabs : hero.css
   The home hero: Earth at night full bleed under a flat tint, copy left, the
   handwritten line right, the three cities connected on a hairline. The
   impact card (home.css) overlaps its bottom edge. Flat colour only.
   ========================================================================= */

.hero {
  position: relative; overflow: hidden;
  min-height: clamp(640px, 88vh, 900px);
  min-height: clamp(640px, 88svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 calc(var(--impact-overlap, 120px) + 2rem);
  background: #05080f; color: var(--white);
}

/* Full-bleed photo and a flat tint */
.hero__bg { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero__bg-move { position: absolute; inset: -24px; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 48%; display: block; transform-origin: 55% 45%; will-change: transform; }
.hero__tint { position: absolute; inset: 0; z-index: 0; background: rgba(5, 8, 15, .46); }

.hero__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero__copy { max-width: 780px; }

.hero__kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9); margin: 0 0 1rem;
}
/* Two lines at desktop widths: "We Build Technology" / "for a Healthier World." */
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.2rem + 3vw, 3.5rem); max-width: 12.2em; margin: 0; }
.hero h1 .w { display: inline-block; }
.hero__lead { color: rgba(255, 255, 255, .86); font-size: 1.1rem; max-width: 33rem; margin: 1.2rem 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* The three cities on a hairline: the global treatment, first seen here */
.hero__rule { display: block; height: 1px; background: rgba(255, 255, 255, .3); margin-top: 1.8rem; transform-origin: 0 50%; }
.hero__cities {
  list-style: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem;
  margin: 1rem 0 0; padding: .55rem .85rem; border-radius: 10px; background: rgba(5, 8, 15, .58);
}
.hero__cities li { display: inline-flex; align-items: baseline; gap: .5rem; }
.hero__cities li i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-bright); flex: 0 0 auto; align-self: center; }
.hero__cities b { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--white); }
.hero__cities span { font-size: .8rem; color: rgba(255, 255, 255, .86); }
.hero__cities-note span { color: rgba(255, 255, 255, .86); }

/* The handwritten line, right */
.hero__script {
  flex: 0 0 auto; margin: 0 0 1rem;
  font-size: clamp(2.2rem, 1.4rem + 2.1vw, 3.5rem); line-height: 1.02;
  color: var(--white); text-align: right; transform: rotate(-8deg);
}

@media (max-width: 991.98px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__script { align-self: flex-end; text-align: right; font-size: clamp(2rem, 1.2rem + 3vw, 3rem); margin-top: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero { padding-top: calc(var(--header-h) + 1.5rem); min-height: 0; }
  .hero__bg img { object-position: 68% 38%; }
  .hero__cities { gap: .5rem 1.25rem; }
  .hero__cities .hero__cities-note { display: none; }   /* beats .hero__cities li */
  .hero__script { display: none; }
}

/* Motion, only while home-motion.js is running: the photo settles from a slow zoom and a muted
   grade, then keeps breathing; the handwritten line fades in after the headline has landed. */
html.has-motion .hero__bg img { animation: hero-intro 2.8s cubic-bezier(.16, 1, .3, 1) both, hero-breathe 30s ease-in-out 2.8s infinite alternate; }
@keyframes hero-intro { from { transform: scale(1.12); filter: saturate(.5) brightness(.55); } to { transform: scale(1); filter: saturate(1) brightness(1); } }
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.05); } }
html.has-motion .hero__script { opacity: 0; animation: hero-script 1.2s cubic-bezier(.16, 1, .3, 1) 1.5s forwards; }
@keyframes hero-script { from { opacity: 0; transform: rotate(-8deg) translateY(16px); } to { opacity: 1; transform: rotate(-8deg) translateY(0); } }
