/* Hero photo collage — replaces the background video on the homepage hero. */

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 3px;
  background: #020100;
  overflow: hidden;
}

.hero-collage_tile {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-collage_tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
  /* keep individual shots slightly muted so the grid reads as one texture */
  filter: brightness(0.9) saturate(0.95);
}

.hero-collage_tile img.is-visible {
  opacity: 1;
}

/* Layered scrim: overall veil + left column emphasis + grounded base,
   so copy never fights the busy photography behind it. */
.hero-collage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 1, 0, 0.72) 0%, rgba(2, 1, 0, 0.5) 26%, rgba(2, 1, 0, 0.14) 48%, rgba(2, 1, 0, 0) 62%, rgba(2, 1, 0, 0) 100%),
    linear-gradient(0deg, rgba(2, 1, 0, 0.42) 0%, rgba(2, 1, 0, 0) 24%),
    linear-gradient(180deg, rgba(2, 1, 0, 0.3) 0%, rgba(2, 1, 0, 0) 16%),
    rgba(2, 1, 0, 0.06);
}

/* Copy block */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35em;
  margin-bottom: 1.5vw;
}

.hero-brand_logo {
  width: clamp(150px, 14vw, 240px);
}

.hero-brand_sub {
  color: #fff;
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.05em;
  text-transform: uppercase;
}

.hero-copy_title {
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy_title .line-small {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  margin-top: 0.55em;
}

.hero_up.hero_up-v3 {
  text-align: left;
  align-items: flex-start;
}

.hero-copy_title .hero-copy_line,
.hero-copy_title .split-parent,
.hero-copy_title .split-child {
  text-align: left;
}

.hero-copy_gold {
  color: var(--colors--accent-color, #ffb800);
}

.hero-copy_tagline {
  color: #fff;
  font-size: clamp(17px, 1.5vw, 26px);
  font-weight: 500;
  margin-top: 2.2vw;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

.no-egg-logo.hero-stamp {
  z-index: 2;
  width: clamp(110px, 11vw, 190px);
  inset: auto 3.5% 5.5% auto;
}

@media (max-width: 767px) {
  .hero-brand_logo {
    width: 42vw;
  }
  .hero-copy_tagline {
    margin-top: 6vw;
  }
  .no-egg-logo.hero-stamp {
    width: 30vw;
    inset: auto 4% 3.5% auto;
  }
}

.hero-copy_title .hero-copy_line {
  display: block;
  line-height: 1.04;
}

/* "What is NestEgg?" heading: the logo wordmark and ? wrap as one unit,
   keeping the ? on the same line as NestEgg at every viewport width. */
.whatis-logoq {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.whatis-qmark {
  margin: 0;
}

/* "What is NestEgg?" on phones: the Webflow design pinned the text block
   to a fixed 50vh with negative offsets and clipped overflow, sized for the
   original shorter copy. Let the section grow with its content instead. */
@media screen and (max-width: 479px) {
  .the-problem-wrapper {
    overflow: visible;
  }
  .sticky-grid-why {
    height: auto;
  }
  .why-img-s {
    height: auto;
    top: 0;
  }
  .text-block-container {
    height: auto;
    top: 0;
    padding-bottom: 8vw;
  }
}

/* "Experience The Movement" carousel: present each app screenshot inside an
   iPhone-style frame — dark bezel, rounded corners, dynamic-island pill —
   instead of sharp-edged rectangles. */
.hero-swiper .card-img {
  position: relative;
  background: #17171a;
  border: 1px solid #3d3d42;
  border-radius: clamp(30px, 2.6vw, 46px);
  padding: clamp(8px, 0.7vw, 12px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-swiper .card-img-img {
  display: block;
  border-radius: clamp(22px, 2vw, 36px);
  /* the source screenshots carry a baked-in ~3px light border; clip it off */
  clip-path: inset(3px round clamp(22px, 2vw, 36px));
}

/* Camera island pill, sits over the screenshot's empty status-bar center */
.hero-swiper .card-img::after {
  content: "";
  position: absolute;
  top: calc(clamp(8px, 0.7vw, 12px) + 0.6em);
  left: 50%;
  transform: translateX(-50%);
  width: 23%;
  height: clamp(13px, 1.1vw, 19px);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
