/* MRVËY motion layer: garment continuity, native scroll, transform-only choreography. */
:root {
  --motion-fast: .24s;
  --motion-medium: .62s;
  --motion-slow: .9s;
}

.nav-cta,
.exp-home #hero .exp-hero__actions .btn-primary,
.production-window__button--primary,
.founder-button--acid {
  color: var(--brand-ink) !important;
  background: var(--brand-acid) !important;
  border-color: var(--brand-acid) !important;
}

.motion-seam {
  position: relative;
}

.motion-seam::after {
  content: '';
  position: absolute;
  left: var(--seam-left, 0);
  right: var(--seam-right, 0);
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .18;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-slow) cubic-bezier(.22, 1, .36, 1);
}

.motion-seam.motion-entered::after {
  transform: scaleX(1);
}

.motion-garment {
  transform-origin: 50% 76%;
}

.duet-media {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.duet-media .product-photo {
  position: absolute;
  inset: 0;
}

.duet-media .product-photo + .product-photo {
  opacity: 0;
  visibility: hidden;
}

.duet-view {
  position: absolute;
  right: clamp(12px, 1.4vw, 22px);
  bottom: clamp(12px, 1.4vw, 22px);
  z-index: 3;
  margin: 0;
  padding: 7px 11px;
  color: rgba(244, 245, 240, .82);
  background: rgba(16, 18, 15, .78);
  border: 1px solid rgba(244, 245, 240, .18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

/* Woven manifesto: one choreographed entrance, then the whole story stays readable. */
.exp-home .founder-story--woven {
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
  background: var(--brand-ink);
}

.exp-home .founder-story--woven .founder-story__stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: auto;
  min-height: 0;
  gap: 1px;
  overflow: visible;
  background: rgba(244, 245, 240, .18);
}

.exp-home .founder-story--woven .founder-story__beat {
  position: relative;
  inset: auto;
  top: auto;
  display: grid;
  align-content: end;
  min-height: clamp(390px, 39vw, 560px);
  padding: clamp(42px, 5.2vw, 82px);
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  transform-origin: 50% 100%;
  box-shadow: none;
}

.exp-home .founder-story--woven .founder-story__beat:nth-child(1) {
  color: var(--brand-paper);
  background: var(--brand-ink);
}

.exp-home .founder-story--woven .founder-story__beat:nth-child(2) {
  color: var(--brand-ink);
  background: var(--brand-paper);
}

.exp-home .founder-story--woven .founder-story__beat:nth-child(3) {
  color: var(--brand-paper);
  background: #20251f;
  box-shadow: inset 0 3px 0 var(--brand-acid);
}

.exp-home .founder-story--woven .founder-story__beat:nth-child(4) {
  color: var(--brand-ink);
  background: var(--brand-green);
}

.exp-home .founder-story--woven .founder-story__beat h2 {
  max-width: 13ch;
  font-size: clamp(46px, 4.9vw, 88px);
  line-height: .92;
}

.exp-home .founder-story--woven .founder-story__beat p {
  max-width: 42ch;
  margin-top: clamp(22px, 2.3vw, 34px);
}

.founder-takeover {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  color: var(--brand-paper);
  background: var(--brand-ink);
}

.founder-takeover__electric,
.founder-takeover__acid {
  position: absolute;
  inset: 0;
  transform-origin: left center;
}

.founder-takeover__electric {
  background: var(--brand-green);
}

.founder-takeover__acid {
  left: 50%;
  background: var(--brand-acid);
}

.founder-takeover__word {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--brand-display);
  font-size: clamp(76px, 18vw, 330px);
  font-weight: 750;
  line-height: .72;
  letter-spacing: -.08em;
}

.about-story-page .founder-story > section {
  position: relative;
  isolation: isolate;
}

.about-story-page .founder-origin::before,
.about-story-page .founder-belief::before,
.about-story-page .founder-close::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 43%, rgba(255, 255, 255, .055) 48%, transparent 54%);
  transform: translate3d(-110%, 0, 0);
}

.about-story-page .motion-entered::before {
  animation: fabric-pass 1.15s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fabric-pass {
  to { transform: translate3d(110%, 0, 0); }
}

@media (max-width: 899px) {
  .founder-takeover__word {
    font-size: clamp(72px, 25vw, 128px);
  }

  .duet-view {
    right: 10px;
    bottom: 10px;
    font-size: 11px;
  }

  .exp-home .founder-story--woven {
    padding: 0;
  }

  .exp-home .founder-story--woven .founder-story__stack {
    grid-template-columns: 1fr;
  }

  .exp-home .founder-story--woven .founder-story__beat {
    min-height: 0;
    padding: 54px 18px 58px;
  }

  .exp-home .founder-story--woven .founder-story__beat h2 {
    max-width: 12ch;
    font-size: clamp(43px, 12vw, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-takeover {
    display: none;
  }

  .motion-seam::after {
    transform: scaleX(1);
    transition: none;
  }

  .about-story-page .motion-entered::before {
    animation: none;
  }
}
