/* ==========================================================================
   M!GHTY MEDIA STUDIO | PUBLIC MOTION CSS
   Hero reveals, responsive entrance choreography, and spectral-sleeve motion.
   ========================================================================== */

/* ============================================================
   MIGHTY MOTION | INTERACTION AND ENTRANCE CHOREOGRAPHY
   Wave-hero marketing pages keep their 2.5s landscape and 8s portrait fades.
   Homepage square JPEG keeps the portrait entrance reveal at full opacity.
   The separate studio-hero landscape art has no duplicate motion controller.
   ============================================================ */

/* ============================================================
   01. MASTER PUBLIC HERO WAVE | SHARED ARTWORK SHELL
   Geometry is shared; motion is owned separately by landscape and portrait.
   ============================================================ */
:is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero{
  isolation:isolate;
  background-image:none;
}
/* Shared marketing-wave depth: one 8vw drop. */
:is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero{--mighty-hero-wave-drop:8vw;}
:is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container{
  position:relative;
  z-index:1;
}
.mm-wave-hero-page .mighty-content .hero > .mighty-hero-wave-picture{
  position:absolute;
  left:50%;
  bottom:calc(-8.59375vw - var(--mighty-hero-wave-drop, 0vw));
  width:100%;
  height:auto;
  max-width:none;
  display:block;
  transform:translateX(-50%);
  z-index:0;
  pointer-events:none;
}
:is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art{
  width:100%;
  height:auto;
  max-width:none;
  display:block;
  visibility:hidden;
}

/* Approved marketing-wave landscape artwork offset. */
@media (orientation:landscape) and (min-width:820px){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero{--mighty-hero-wave-drop:3vw;}
}

/* ============================================================
   02. LANDSCAPE WAVE HEROES | CLEAN 2.5 SECOND FADE TO 100%
   Marketing wave-hero pages fade the complete artwork from
   transparent to full opacity. No SVG mask/wipe is used on these pages.
   ============================================================ */
@media (orientation:landscape) and (min-width:820px){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art{
    visibility:hidden;
    opacity:0;
    -webkit-mask-image:none;
    mask-image:none;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art.is-reveal-ready{
    visibility:visible;
    animation:mightyHeroWaveLandscapeFadeFull 2.5s linear .12s both;
    -webkit-mask-image:none;
    mask-image:none;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art.is-reveal-static{
    visibility:visible;
    opacity:1;
    animation:none !important;
    -webkit-mask-image:none;
    mask-image:none;
  }
}

@keyframes mightyHeroWaveLandscapeFadeFull{
  from{opacity:0;}
  to{opacity:1;}
}

/* ============================================================
   03. PORTRAIT PHONE + TABLET | CLEAN 8 SECOND FADE TO 75%
   The portrait wipe is removed. Once the existing JS load/decode gate marks
   the artwork ready, the whole image fades from 0 opacity, reaches 70% late
   in the fade, then softly completes at 75% and remains there.
   ============================================================ */
@media (orientation:portrait), (max-width:819px){
  .mm-wave-hero-page .mighty-content .hero > .mighty-hero-wave-picture{
    bottom:calc(-4vw - var(--mighty-hero-wave-drop, 0vw));
    width:100%;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art{
    visibility:hidden;
    opacity:0;
    -webkit-mask-image:none;
    mask-image:none;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art.is-reveal-ready{
    visibility:visible;
    animation:mightyHeroWavePortraitFade75 8s linear .12s both;
    -webkit-mask-image:none;
    mask-image:none;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art.is-reveal-static{
    visibility:visible;
    opacity:var(--mighty-hero-art-final-opacity,.75);
    animation:none !important;
    -webkit-mask-image:none;
    mask-image:none;
  }
}

@keyframes mightyHeroWavePortraitFade75{
  0%{opacity:0;}
  87.5%{opacity:.70;}
  100%{opacity:var(--mighty-hero-art-final-opacity,.75);}
}


/* ============================================================
   04. MASTER PORTRAIT MOBILE | HERO HEADLINE LOCK-IN
   The two portrait headline lines converge from opposite directions:
   "simplicity above" descends while "power beneath" rises.
   Motion is mobile portrait only and is armed by the existing Motion JS gate.
   One continuous slow convergence + fade keeps the lock-in fluid from start to finish.
   ============================================================ */
@media (max-width:819px){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-accent{
    opacity:0;
    will-change:transform,opacity;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-primary{
    transform:translateY(-72px);
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-accent{
    transform:translateY(72px);
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait.is-motion-ready > .text-primary{
    animation:mightyHeroHeadlineDropLock 2s cubic-bezier(.45,0,.55,1) .28s both;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait.is-motion-ready > .text-accent{
    animation:mightyHeroHeadlineRiseLock 2s cubic-bezier(.45,0,.55,1) .28s both;
  }
}

@keyframes mightyHeroHeadlineDropLock{
  from{opacity:0;transform:translateY(-72px);}
  to{opacity:1;transform:translateY(0);}
}

@keyframes mightyHeroHeadlineRiseLock{
  from{opacity:0;transform:translateY(72px);}
  to{opacity:1;transform:translateY(0);}
}


/* ============================================================
   05. MASTER LANDSCAPE | DREAMY SEQUENTIAL HEADLINE FADE
   Landscape keeps the approved wave reveal and gives the standard headline
   one connected two-stage entrance. The first line resolves slightly faster;
   the accent line begins early while the first is still fading so both arrive
   within the wave-reveal window.
   ============================================================ */
@media (orientation:landscape) and (min-width:820px){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .hero-accent-line{
    opacity:0;
    will-change:opacity;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard.is-motion-ready > .text-primary{
    animation:mightyHeroHeadlineLandscapeFade 1.55s cubic-bezier(.45,0,.55,1) .20s both;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard.is-motion-ready > .hero-accent-line{
    animation:mightyHeroHeadlineLandscapeFade 1.65s cubic-bezier(.45,0,.55,1) .95s both;
  }
}

@keyframes mightyHeroHeadlineLandscapeFade{
  from{opacity:0;}
  to{opacity:1;}
}

/* ============================================================
   06. MASTER PORTRAIT TABLET | DREAMY SEQUENTIAL HEADLINE FADE
   Portrait tablet reuses the approved landscape fade choreography on the
   standard headline that is actually rendered at tablet widths. Mobile portrait retains its lock-in motion.
   ============================================================ */
@media (orientation:portrait) and (min-width:820px){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .hero-accent-line{
    opacity:0;
    will-change:opacity;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard.is-motion-ready > .text-primary{
    animation:mightyHeroHeadlineLandscapeFade 1.55s cubic-bezier(.45,0,.55,1) .20s both;
  }

  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard.is-motion-ready > .hero-accent-line{
    animation:mightyHeroHeadlineLandscapeFade 1.65s cubic-bezier(.45,0,.55,1) .95s both;
  }
}

/* ============================================================
   07. REDUCED MOTION ACCESSIBILITY
   Landscape becomes fully static; portrait preserves its approved 75% final
   intensity without animation.
   ============================================================ */
@media (orientation:landscape) and (prefers-reduced-motion:reduce){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art{
    visibility:visible;
    animation:none !important;
    -webkit-mask-image:none;
    mask-image:none;
  }
}

@media (orientation:landscape) and (prefers-reduced-motion:reduce){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .hero-accent-line{
    opacity:1;
    animation:none !important;
  }
}

@media (orientation:portrait) and (prefers-reduced-motion:reduce), (max-width:819px) and (prefers-reduced-motion:reduce){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .mighty-hero-wave-picture > .mighty-hero-wave-art{
    visibility:visible;
    opacity:var(--mighty-hero-art-final-opacity,.75);
    animation:none !important;
    -webkit-mask-image:none;
    mask-image:none;
  }
}


@media (orientation:portrait) and (min-width:820px) and (prefers-reduced-motion:reduce){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-standard > .hero-accent-line{
    opacity:1 !important;
    animation:none !important;
  }
}

@media (max-width:819px) and (prefers-reduced-motion:reduce){
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-primary,
  :is(.mm-wave-hero-page, .mm-page-index, .mm-studio-hero-page) .mighty-content .hero > .container > h1 .view-portrait > .text-accent{
    opacity:1;
    transform:none;
    animation:none !important;
  }
}

/* ============================================================
   08. MASTER PORTRAIT TABLET | WAVE COMPOSITION POLISH
   Lower the portrait artwork slightly without changing size or reveal timing.
   Phone portrait keeps its approved -4vw position.
   ============================================================ */
@media (orientation:portrait) and (min-width:820px){
  .mm-wave-hero-page .mighty-content .hero > .mighty-hero-wave-picture{
    bottom:calc(-7vw - var(--mighty-hero-wave-drop, 0vw));
  }
}

/* ============================================================
   08. PUBLIC CARD SPECTRAL SLEEVES | FEATHERED BOTTOM-UP UPFLOW
   Cards remain static. Motion JS arms the shared spectral sleeve
   pseudo-elements. A 200%-tall alpha mask travels upward: the revealed seam
   stays fully luminous below the front while the leading edge dissolves
   through a soft feather into transparency. The glow uses a wider feather so
   it trails the sharp 2px seam naturally. Final opacities remain .95 / .58.
   ============================================================ */
.mighty-content .card.is-sleeve-motion::before,
.mighty-content .feature.is-sleeve-motion::before{
  opacity:0;
  -webkit-mask-image:linear-gradient(to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0,0,0,.08) 42%,
    rgba(0,0,0,.24) 44%,
    rgba(0,0,0,.48) 46%,
    rgba(0,0,0,.72) 48%,
    #000 50%,
    #000 100%);
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-size:100% 200%;
  -webkit-mask-position:0 0%;
  mask-image:linear-gradient(to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0,0,0,.08) 42%,
    rgba(0,0,0,.24) 44%,
    rgba(0,0,0,.48) 46%,
    rgba(0,0,0,.72) 48%,
    #000 50%,
    #000 100%);
  mask-repeat:no-repeat;
  mask-size:100% 200%;
  mask-position:0 0%;
  transition:
    -webkit-mask-position 1.85s cubic-bezier(.22,.61,.36,1),
    mask-position 1.85s cubic-bezier(.22,.61,.36,1),
    opacity .28s ease-out;
  will-change:-webkit-mask-position,mask-position,opacity;
}

.mighty-content .card.is-sleeve-motion::after,
.mighty-content .feature.is-sleeve-motion::after{
  opacity:0;
  -webkit-mask-image:linear-gradient(to bottom,
    transparent 0%,
    transparent 33%,
    rgba(0,0,0,.05) 36%,
    rgba(0,0,0,.16) 39%,
    rgba(0,0,0,.34) 42%,
    rgba(0,0,0,.58) 45%,
    rgba(0,0,0,.82) 48%,
    #000 51%,
    #000 100%);
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-size:100% 200%;
  -webkit-mask-position:0 0%;
  mask-image:linear-gradient(to bottom,
    transparent 0%,
    transparent 33%,
    rgba(0,0,0,.05) 36%,
    rgba(0,0,0,.16) 39%,
    rgba(0,0,0,.34) 42%,
    rgba(0,0,0,.58) 45%,
    rgba(0,0,0,.82) 48%,
    #000 51%,
    #000 100%);
  mask-repeat:no-repeat;
  mask-size:100% 200%;
  mask-position:0 0%;
  transition:
    -webkit-mask-position 2.05s cubic-bezier(.22,.61,.36,1) .06s,
    mask-position 2.05s cubic-bezier(.22,.61,.36,1) .06s,
    opacity .34s ease-out .03s;
  will-change:-webkit-mask-position,mask-position,opacity;
}

.mighty-content .card.is-sleeve-motion.is-sleeve-visible::before,
.mighty-content .feature.is-sleeve-motion.is-sleeve-visible::before{
  opacity:.95;
  -webkit-mask-position:0 100%;
  mask-position:0 100%;
}

.mighty-content .card.is-sleeve-motion.is-sleeve-visible::after,
.mighty-content .feature.is-sleeve-motion.is-sleeve-visible::after{
  opacity:.58;
  -webkit-mask-position:0 100%;
  mask-position:0 100%;
}

@media (prefers-reduced-motion:reduce){
  .mighty-content .card.is-sleeve-motion::before,
  .mighty-content .feature.is-sleeve-motion::before{
    opacity:.95 !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
    transition:none !important;
  }

  .mighty-content .card.is-sleeve-motion::after,
  .mighty-content .feature.is-sleeve-motion::after{
    opacity:.58 !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
    transition:none !important;
  }
}
