/* MRVËY founder story
   A quiet, scroll-led sequence: one thought, one frame, one clear replacement. */

.exp-home .home-origin-film {
  --origin-ink: #080a08;
  --origin-paper: #f5f6f1;
  --origin-acid: var(--brand-acid, #c5ff32);
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  color: var(--origin-paper);
  background:
    radial-gradient(circle at 84% 14%, rgba(88, 101, 255, .1), transparent 0 34%),
    radial-gradient(circle at 18% 92%, rgba(155, 232, 121, .07), transparent 0 30%),
    var(--origin-ink);
  border: 0;
  isolation: isolate;
}

.exp-home .home-origin-film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, .018) 4px 5px),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, .012) 4px 5px);
}

.exp-home .home-origin-film__sticky {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  overflow: hidden;
}

/* The previous film assets remain in the document for source compatibility,
   but the story no longer makes the eye choose between copy and spectacle. */
.exp-home .home-origin-film__scene {
  display: none;
}

.exp-home .home-origin-film__narrative {
  position: relative;
  z-index: 2;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(90px, 12vh, 150px) clamp(24px, 7vw, 112px);
}

.exp-home .home-origin-film__beat {
  width: min(100%, 930px);
  padding: clamp(76px, 10vh, 118px) 0;
}

.exp-home .home-origin-film__beat h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--origin-paper);
  font-family: var(--brand-display, "Hanken Grotesk", sans-serif);
  font-size: clamp(52px, 6.6vw, 108px);
  font-weight: 620;
  line-height: .91;
  letter-spacing: -.064em;
  text-wrap: balance;
}

.exp-home .home-origin-film__beat h2 > span,
.exp-home .home-origin-film__beat h2 > span > span {
  display: block;
}

.exp-home .home-origin-film__beat > p {
  max-width: 43ch;
  margin: clamp(24px, 2.6vw, 38px) 0 0;
  color: rgba(245, 246, 241, .7);
  font-size: clamp(17px, 1.34vw, 22px);
  font-weight: 430;
  line-height: 1.48;
  letter-spacing: -.02em;
}

.exp-home .home-origin-film__signature {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  color: var(--origin-paper);
  font-size: 14px;
}

.exp-home .home-origin-film__signature strong {
  font-weight: 680;
}

.exp-home .home-origin-film__signature span {
  color: rgba(245, 246, 241, .5);
}

.exp-home .home-origin-film__navigation {
  display: none;
}

/* Runtime stage: the page keeps native momentum while the sticky copy changes. */
.exp-home .home-origin-film.home-origin-film--ready {
  height: 390svh;
  min-height: 2600px;
}

.exp-home .home-origin-film--ready .home-origin-film__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
}

.exp-home .home-origin-film--ready .home-origin-film__narrative {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  width: min(100%, 1440px);
  padding: clamp(80px, 9vh, 112px) clamp(24px, 7vw, 112px) clamp(120px, 15vh, 172px);
}

.exp-home .home-origin-film--ready .home-origin-film__beat {
  grid-area: 1 / 1;
  width: min(100%, 960px);
  padding: 0;
  will-change: transform, opacity;
}

.exp-home .home-origin-film--ready .home-origin-film__beat:not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

.exp-home .home-origin-film--ready .home-origin-film__navigation {
  position: absolute;
  right: clamp(24px, 7vw, 112px);
  bottom: max(24px, env(safe-area-inset-bottom));
  left: clamp(24px, 7vw, 112px);
  z-index: 4;
  display: grid;
}

.exp-home .home-origin-film__meter {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(245, 246, 241, .15);
}

.exp-home .home-origin-film__meter i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--origin-acid);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.exp-home .home-origin-film__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.exp-home .home-origin-film__steps button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 14px 0 8px;
  color: rgba(245, 246, 241, .38);
  font-family: var(--brand-body, "Hanken Grotesk", sans-serif);
  font-size: clamp(11px, .84vw, 13px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: color .24s ease;
}

.exp-home .home-origin-film__steps button:hover,
.exp-home .home-origin-film__steps button:focus-visible,
.exp-home .home-origin-film__steps button.is-active {
  color: var(--origin-paper);
}

.exp-home .home-origin-film__steps button:focus-visible {
  outline: 2px solid var(--origin-acid);
  outline-offset: 3px;
}

/* Static and reduced-motion mode is a clean reading stack. */
.exp-home .home-origin-film--static {
  min-height: 0;
}

.exp-home .home-origin-film--static .home-origin-film__sticky {
  overflow: visible;
}

.exp-home .home-origin-film--static .home-origin-film__narrative {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.exp-home .home-origin-film--static .home-origin-film__beat + .home-origin-film__beat {
  border-top: 1px solid rgba(245, 246, 241, .14);
}

@media (max-width: 899px) {
  .exp-home .home-origin-film {
    background:
      radial-gradient(circle at 92% 8%, rgba(88, 101, 255, .1), transparent 0 28%),
      radial-gradient(circle at 8% 84%, rgba(155, 232, 121, .06), transparent 0 26%),
      var(--origin-ink);
  }

  .exp-home .home-origin-film.home-origin-film--ready {
    height: 380svh;
    min-height: 2280px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__sticky {
    min-height: 560px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__narrative {
    align-items: center;
    padding:
      max(96px, calc(env(safe-area-inset-top) + 78px))
      20px
      calc(134px + env(safe-area-inset-bottom));
  }

  .exp-home .home-origin-film--ready .home-origin-film__beat {
    width: 100%;
  }

  .exp-home .home-origin-film__beat h2 {
    max-width: 12.5ch;
    font-size: clamp(42px, 12.2vw, 58px);
    line-height: .92;
    letter-spacing: -.058em;
  }

  .exp-home .home-origin-film__beat > p {
    max-width: 34ch;
    margin-top: 19px;
    font-size: clamp(15px, 4.15vw, 18px);
    line-height: 1.46;
  }

  .exp-home .home-origin-film__signature {
    margin-top: 15px;
    font-size: 13px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__navigation {
    right: 20px;
    bottom: calc(154px + env(safe-area-inset-bottom));
    left: 20px;
  }

  .exp-home .home-origin-film__meter {
    height: 2px;
  }

  .exp-home .home-origin-film__steps {
    gap: 8px;
  }

  .exp-home .home-origin-film__steps button {
    min-height: 44px;
    padding: 12px 0 6px;
    overflow: hidden;
    color: transparent;
    font-size: 1px;
    white-space: nowrap;
  }

  .exp-home .home-origin-film__steps button::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(245, 246, 241, .18);
    transform: scaleX(.34);
    transform-origin: left center;
    transition: background-color .22s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
  }

  .exp-home .home-origin-film__steps button.is-active::before {
    background: var(--origin-paper);
    transform: scaleX(1);
  }

  .exp-home .home-origin-film__steps button:focus-visible {
    color: transparent;
  }

  .exp-home .home-origin-film--static .home-origin-film__narrative {
    padding: 66px 20px 90px;
  }

  .exp-home .home-origin-film--static .home-origin-film__beat {
    padding: 64px 0;
  }
}

@media (max-width: 899px) and (orientation: landscape) {
  .exp-home .home-origin-film.home-origin-film--ready {
    height: 430svh;
    min-height: 1720px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__sticky {
    min-height: 390px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__narrative {
    padding: 62px 7vw 76px;
  }

  .exp-home .home-origin-film__beat h2 {
    max-width: 16ch;
    font-size: clamp(34px, 6.2vw, 54px);
  }

  .exp-home .home-origin-film__beat > p {
    max-width: 42ch;
    margin-top: 12px;
    font-size: 13px;
  }

  .exp-home .home-origin-film--ready .home-origin-film__navigation {
    right: 7vw;
    bottom: 14px;
    left: 7vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-home .home-origin-film::before {
    display: none;
  }
}
