/**
 * MoonLabs Motion & Animation Bundle
 * Scroll-Driven Animations, Keyframe Physics, and Accessible Fallbacks
 * Zero npm dependencies, zero CDN reliance, pure native CSS.
 *
 * Designed for MoonLabs Enterprise Web Portal.
 * Architecture based on Sillage Motion Engine.
 *
 * License: MIT
 */

/* --------------------------------------------------------------------------
   0. CSS Properties Interpolation Registration
   -------------------------------------------------------------------------- */
@property --hero-mark-streak {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --footer-mark-streak {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --method-pin {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --motion-trail {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* --------------------------------------------------------------------------
   1. Animation Tokens & Easing Curves (Active only when [data-8b-live])
   -------------------------------------------------------------------------- */
@layer scenes {
  [data-8b-live] {
    --ease-power3-out: linear(
      0, 0.0963, 0.1855, 0.2679, 0.3439, 0.4138, 0.478, 0.5367, 0.5904, 0.6392,
      0.6836, 0.7237, 0.7599, 0.7924, 0.8215, 0.8474, 0.8704, 0.8907, 0.9085, 0.924,
      0.9375, 0.9491, 0.959, 0.9674, 0.9744, 0.9802, 0.985, 0.9888, 0.9919, 0.9943,
      0.9961, 0.9974, 0.9984, 0.9991, 0.9995, 0.9998, 0.9999, 1
    );
    --ease-power1-inout: linear(
      0, 0.0013, 0.005, 0.0112, 0.02, 0.0313, 0.045, 0.0612, 0.08, 0.1013,
      0.125, 0.1512, 0.18, 0.2112, 0.245, 0.2813, 0.32, 0.3613, 0.405, 0.4512,
      0.5, 0.5487, 0.595, 0.6388, 0.68, 0.7188, 0.755, 0.7887, 0.82, 0.8488,
      0.875, 0.8988, 0.92, 0.9387, 0.955, 0.9688, 0.98, 0.9888, 0.995, 0.9988, 1
    );
    --ease-power2-inout: linear(
      0, 0.0001, 0.0005, 0.0017, 0.004, 0.0078, 0.0135, 0.0214, 0.032, 0.0456,
      0.0625, 0.0832, 0.108, 0.1373, 0.1715, 0.2109, 0.256, 0.3071, 0.3645, 0.4287,
      0.5, 0.5713, 0.6355, 0.6929, 0.744, 0.7891, 0.8285, 0.8627, 0.892, 0.9168,
      0.9375, 0.9544, 0.968, 0.9786, 0.9865, 0.9922, 0.996, 0.9983, 0.9995, 0.9999, 1
    );
  }

  /* ------------------------------------------------------------------------
     2. Entrance Effects ([data-8b-motion])
     ------------------------------------------------------------------------ */
  [data-8b-motion~="trail"] {
    text-shadow:
      calc(var(--motion-trail, 0) * -.07em) calc(var(--motion-trail, 0) * .05em) 0 color-mix(in srgb, currentColor 42%, transparent),
      calc(var(--motion-trail, 0) * -.14em) calc(var(--motion-trail, 0) * .1em) 0 color-mix(in srgb, currentColor 22%, transparent),
      calc(var(--motion-trail, 0) * -.21em) calc(var(--motion-trail, 0) * .15em) 0 color-mix(in srgb, currentColor 10%, transparent);
  }

  /* Rise Effect */
  [data-8b-live] [data-8b-motion~="rise"] > *,
  [data-8b-live] [data-8b-motion~="rise"]:not(:has(> *)) {
    animation-name: motion-rise;
    animation-duration: .95s;
    animation-delay: 0s;
    animation-timing-function: var(--ease-power3-out);
    animation-fill-mode: both;
    animation-play-state: paused;
  }

  [data-8b-live] [data-8b-motion~="rise"] > * {
    animation-delay: calc(.1s * (sibling-index() - 1));
  }

  [data-8b-live] [data-8b-motion~="rise"].is-in > *,
  [data-8b-live] [data-8b-motion~="rise"].is-in:not(:has(> *)) {
    animation-play-state: running;
  }

  /* Trail / Echo Effect */
  [data-8b-live] [data-8b-motion~="trail"] {
    animation-name: motion-trail-translate, motion-trail---motion-trail;
    animation-duration: 1.25s;
    animation-delay: 0s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1), var(--ease-power3-out);
    animation-fill-mode: both;
    animation-play-state: paused;
    transform: none;
  }

  [data-8b-live] [data-8b-motion~="trail"].is-in {
    animation-play-state: running;
  }

  /* Cut / Slit Effect */
  [data-8b-live] [data-8b-motion~="cut"] {
    animation-name: motion-cut-clippath;
    animation-duration: 1.35s;
    animation-delay: 0s;
    animation-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
    animation-fill-mode: both;
    animation-play-state: paused;
  }

  [data-8b-live] [data-8b-motion~="cut"].is-in {
    animation-play-state: running;
  }

  [data-8b-live] [data-8b-motion~="cut"] img {
    animation-name: motion-cut-img-scale;
    animation-duration: 1.7s;
    animation-delay: 0s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
    animation-play-state: paused;
    transform: none;
  }

  [data-8b-live] [data-8b-motion~="cut"].is-in img {
    animation-play-state: running;
  }

  /* Rule / Hairline Wipe Effect */
  [data-8b-live] [data-8b-motion~="rule"] {
    animation-name: motion-rule-clippath;
    animation-duration: 1.1s;
    animation-delay: 0s;
    animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
    animation-fill-mode: both;
    animation-play-state: paused;
  }

  /* Staggered Delay for Ruled Spec Rows via --i with static fallbacks */
  [data-8b-live] #studio .studio__spec[data-8b-motion~="rule"],
  [data-8b-live] [data-8b-items] > [data-8b-motion~="rule"] {
    animation-delay: calc(var(--i, 0) * 0.08s);
  }

  [data-8b-live] #studio .studio__spec:nth-child(1) { --i: 0; }
  [data-8b-live] #studio .studio__spec:nth-child(2) { --i: 1; }
  [data-8b-live] #studio .studio__spec:nth-child(3) { --i: 2; }
  [data-8b-live] #studio .studio__spec:nth-child(4) { --i: 3; }
  [data-8b-live] #studio .studio__spec:nth-child(5) { --i: 4; }

  [data-8b-live] #studio .studio__text p[data-8b-motion~="rise"] {
    animation-delay: 0.06s;
  }

  [data-8b-live] [data-8b-motion~="rule"].is-in {
    animation-play-state: running;
  }

  /* Keyframes: Motion Entrances */
  @keyframes motion-rise {
    0% {
      translate: 0px 45%;
      clip-path: inset(0% 0% 100% 0%);
    }
    99.998% {
      translate: 0px 0px;
      clip-path: inset(0% 0% -25% 0%);
    }
    100% {
      translate: 0px 0px;
      clip-path: none;
    }
  }

  @keyframes motion-trail-translate {
    0% { translate: -56px 0px; }
    100% { translate: 0px 0px; }
  }

  @keyframes motion-trail---motion-trail {
    0% { --motion-trail: 1; }
    100% { --motion-trail: 0; }
  }

  @keyframes motion-cut-clippath {
    0% { clip-path: inset(47% 0%); }
    99.998% { clip-path: inset(0%); }
    100% { clip-path: none; }
  }

  @keyframes motion-cut-img-scale {
    0% { scale: 1.18; }
    100% { scale: 1; }
  }

  @keyframes motion-rule-clippath {
    0% { clip-path: inset(0% 100% 0% 0%); }
    99.998% { clip-path: inset(0%); }
    100% { clip-path: none; }
  }

  /* ------------------------------------------------------------------------
     3. Wordmark System (.m-mark, Ink Streaks, Split Physics)
     ------------------------------------------------------------------------ */
  .m-mark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 300;
    line-height: .94;
    text-transform: uppercase;
  }

  .m-mark__glyph {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    --mark-streak: 0;
    --mark-cut: 47%;
  }

  .m-mark__glyph:nth-child(1), .m-mark__glyph:nth-child(8) { --mark-cut: 38%; }
  .m-mark__glyph:nth-child(2), .m-mark__glyph:nth-child(7) { --mark-cut: 58%; }
  .m-mark__glyph:nth-child(3), .m-mark__glyph:nth-child(6) { --mark-cut: 44%; }
  .m-mark__glyph:nth-child(4), .m-mark__glyph:nth-child(5) { --mark-cut: 47%; }

  .m-mark__ink {
    position: relative;
    display: block;
    -webkit-text-stroke: .02em var(--color-1, #fff);
    paint-order: stroke fill;
  }

  .m-mark__ink::before {
    content: attr(data-glyph);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: var(--color-2, #0b0b0b);
    -webkit-text-stroke: 0;
    translate: -.05em .045em;
    text-shadow:
      0 calc(var(--mark-streak, 0) * .16em) 0 color-mix(in srgb, var(--color-2, #0b0b0b) 60%, transparent),
      0 calc(var(--mark-streak, 0) * .32em) 0 color-mix(in srgb, var(--color-2, #0b0b0b) 38%, transparent),
      0 calc(var(--mark-streak, 0) * .48em) 0 color-mix(in srgb, var(--color-2, #0b0b0b) 22%, transparent),
      0 calc(var(--mark-streak, 0) * .64em) 0 color-mix(in srgb, var(--color-2, #0b0b0b) 10%, transparent);
  }

  .m-mark__ink::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--mark-cut);
    height: .045em;
    background: var(--color-1, #fff);
  }

  /* Each manifesto line enters on its own timeline, so the type staggers with alternating travel. */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      [data-8b-live] .manifesto__line {
        animation-timeline: view();
        animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
        animation-fill-mode: both;
      }

      [data-8b-live] .manifesto__line:nth-child(1) {
        animation-name: manifesto-line-left;
        animation-range: entry 0% cover 22%;
      }

      [data-8b-live] .manifesto__line:nth-child(2) {
        animation-name: manifesto-line-right;
        animation-range: entry 3% cover 25%;
      }

      [data-8b-live] .manifesto__line:nth-child(3) {
        animation-name: manifesto-line-left;
        animation-range: entry 6% cover 28%;
      }

      [data-8b-live] .manifesto__line:nth-child(4) {
        animation-name: manifesto-line-right;
        animation-range: entry 9% cover 31%;
      }
    }
  }

  @keyframes manifesto-line-left {
    from { translate: -6% 0; opacity: .35; }
    to   { translate: 0 0; opacity: 1; }
  }

  @keyframes manifesto-line-right {
    from { translate: 6% 0; opacity: .35; }
    to   { translate: 0 0; opacity: 1; }
  }

  @keyframes manifesto-line-enter {
    from { translate: var(--manifesto-travel, -20%) 0; }
    to { translate: 0 0; }
  }

  /* ------------------------------------------------------------------------
     4. Scene: Works (Fanning Plate Physics)
     ------------------------------------------------------------------------ */
  @media (prefers-reduced-motion: no-preference) {
    [data-8b-live] #works .works__echo,
    [data-8b-live] [data-works-grid] .works__echo {
      position: absolute;
      inset: 0;
      z-index: -1;
      background: var(--color-2, #0b0b0b);
      pointer-events: none;
    }

    [data-8b-live] #works .works__echo--2,
    [data-8b-live] [data-works-grid] .works__echo--2 {
      background: var(--color-5, #cfcfcf);
    }
  }

  [data-8b-live] #works .m-text-2,
  [data-8b-live] [data-works-grid] .m-text-2 {
    --motion-trail: 0;
  }

  [data-8b-live] #works,
  [data-8b-live] [data-works-section] {
    timeline-scope: --works-t1, --works-t2, --works-t3, --works-t4, --works-t5, --works-t6, --works-t7, --works-t8, --works-t9;
    view-timeline: --works-t1 block;
    view-timeline-inset: 0;
  }

  [data-8b-live] #works .works__grid > li > .works__plate,
  [data-8b-live] [data-works-grid] .works__plate {
    view-timeline-inset: 0;
  }

  [data-8b-live] #works .works__grid > li:nth-of-type(1) > .works__plate { view-timeline: --works-t2 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(2) > .works__plate { view-timeline: --works-t3 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(3) > .works__plate { view-timeline: --works-t4 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(4) > .works__plate { view-timeline: --works-t5 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(5) > .works__plate { view-timeline: --works-t6 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(6) > .works__plate { view-timeline: --works-t7 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(7) > .works__plate { view-timeline: --works-t8 block; }
  [data-8b-live] #works .works__grid > li:nth-of-type(8) > .works__plate { view-timeline: --works-t9 block; }

  [data-8b-live] #works .works__grid > li > .works__plate > span:nth-child(-n+2),
  [data-8b-live] [data-works-grid] .works__plate > span:nth-child(-n+2) {
    animation-range: cover 0% cover 50%;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
    animation-fill-mode: both;
    transform: none;
  }

  [data-8b-live] #works .works__grid > li:nth-of-type(1) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t2; }
  [data-8b-live] #works .works__grid > li:nth-of-type(2) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t3; }
  [data-8b-live] #works .works__grid > li:nth-of-type(3) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t4; }
  [data-8b-live] #works .works__grid > li:nth-of-type(4) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t5; }
  [data-8b-live] #works .works__grid > li:nth-of-type(5) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t6; }
  [data-8b-live] #works .works__grid > li:nth-of-type(6) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t7; }
  [data-8b-live] #works .works__grid > li:nth-of-type(7) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t8; }
  [data-8b-live] #works .works__grid > li:nth-of-type(8) > .works__plate > span:nth-child(-n+2) { animation-timeline: --works-t9; }

  @keyframes works-div-works-plate-span-works-echo-translate-d {
    0% { translate: var(--works-div-works-plate-span-works-echo-translate-from, 9.75px) max(-30px, -3.8vh); }
    100% { translate: 0px 0px; }
  }

  @keyframes works-div-works-plate-span-works-echo-translate-m {
    0% { translate: 0px max(-30px, -3.8vh); }
    100% { translate: 0px 0px; }
  }

  @keyframes works-div-works-plate-span-works-echo-translate-2-d {
    0% { translate: var(--works-div-works-plate-span-works-echo-translate-2-from, 19.5px) max(-60px, -7.6vh); }
    100% { translate: 0px 0px; }
  }

  @keyframes works-div-works-plate-span-works-echo-translate-2-m {
    0% { translate: 0px max(-60px, -7.6vh); }
    100% { translate: 0px 0px; }
  }

  @media (min-width: 900px) {
    [data-8b-live] #works .works__grid > li > .works__plate > span:nth-child(2),
    [data-8b-live] [data-works-grid] .works__plate > span:nth-child(2) {
      animation-name: works-div-works-plate-span-works-echo-translate-d;
    }
    [data-8b-live] #works .works__grid > li > .works__plate > span:nth-child(1),
    [data-8b-live] [data-works-grid] .works__plate > span:nth-child(1) {
      animation-name: works-div-works-plate-span-works-echo-translate-2-d;
    }
  }

  @media (max-width: 899px) {
    [data-8b-live] #works .works__grid > li > .works__plate > span:nth-child(2),
    [data-8b-live] [data-works-grid] .works__plate > span:nth-child(2) {
      animation-name: works-div-works-plate-span-works-echo-translate-m;
    }
    [data-8b-live] #works .works__grid > li > .works__plate > span:nth-child(1),
    [data-8b-live] [data-works-grid] .works__plate > span:nth-child(1) {
      animation-name: works-div-works-plate-span-works-echo-translate-2-m;
    }
  }

  /* ------------------------------------------------------------------------
     5. Scene: Clients (Continuous Infinite Marquee Loop)
     ------------------------------------------------------------------------ */
  [data-8b-live] #clients .clients__track,
  [data-8b-live] [data-row-loop] {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    padding-inline: 0;
    animation: clients-run 46s linear infinite;
  }

  [data-8b-live] #clients .clients__row:hover .clients__track,
  [data-8b-live] #clients .clients__row:focus-within .clients__track,
  [data-8b-live] [data-row-loop]:hover,
  [data-8b-live] [data-row-loop]:focus-within {
    animation-play-state: paused;
  }

  @keyframes clients-run {
    to {
      transform: translate3d(-50%, 0, 0);
    }
  }

  /* ------------------------------------------------------------------------
     6. Scene: Method (Horizontal Storyboard Scroll)
     ------------------------------------------------------------------------ */
  [data-8b-live] #method,
  [data-8b-live] [data-method-section] {
    padding-block: 0;
    view-timeline: --method-t block;
    view-timeline-inset: 0;
  }

  [data-8b-live] #method::after,
  [data-8b-live] [data-method-section]::after {
    content: "";
    display: block;
    height: var(--method-distance, 0px);
  }

  [data-8b-live] #method .method__stage,
  [data-8b-live] [data-method-section] .method__stage {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-block: 76px 28px;
    animation-name: method-pin;
    animation-timeline: --method-t;
    animation-range: cover 100vh cover calc(100vh + max(1px, var(--method-distance, 0px)));
    animation-timing-function: linear;
    animation-fill-mode: both;
  }

  [data-8b-live] #method .method__track,
  [data-8b-live] [data-method-section] .method__track {
    display: flex;
    width: max-content;
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(22px, 3vh, 40px);
    animation-name: method-travel;
    animation-timeline: --method-t;
    animation-range: cover 100vh cover calc(100vh + max(1px, var(--method-distance, 0px)));
    animation-timing-function: linear;
    animation-fill-mode: both;
  }

  [data-8b-live] #method .method__frame,
  [data-8b-live] [data-method-section] .method__frame {
    width: min(52vw, 92vh);
    flex-shrink: 0;
    background: var(--color-1, #ffffff);
  }

  [data-8b-live] #method .method__photo,
  [data-8b-live] [data-method-section] .method__photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-5);
  }

  [data-8b-live] #method .method__photo img,
  [data-8b-live] [data-method-section] .method__photo img {
    --method-t-in: clamp(0, (var(--method-pin, 0) * var(--method-d, 0) - var(--method-x, 0) + var(--method-w, 1)) / (var(--method-w, 1) / 2), 1);
    --method-e: calc(1 - (1 - var(--method-t-in)) * (1 - var(--method-t-in)));
    translate: calc(7% * (1 - var(--method-e))) 0px;
    scale: calc(1.24 - .24 * var(--method-e));
    transition: none;
  }

  @keyframes method-travel {
    0% { translate: 0px 0px; }
    100% { translate: calc(-1 * var(--method-distance, 0px)) 0px; }
  }

  @keyframes method-pin {
    0% { --method-pin: 0; }
    100% { --method-pin: 1; }
  }

  @media (max-width: 860px) {
    [data-8b-live] #method .method__frame,
    [data-8b-live] [data-method-section] .method__frame {
      width: 82vw;
    }
  }

  /* ------------------------------------------------------------------------
     7. Scene: Crew (Deal-Out Portrait Cards)
     ------------------------------------------------------------------------ */
  [data-8b-live] #crew .m-text-2,
  [data-8b-live] [data-crew-section] .m-text-2 {
    --motion-trail: 0;
  }

  [data-8b-live] #crew .crew__grid,
  [data-8b-live] [data-crew-section] .crew__grid {
    view-timeline: --crew-t1 block;
    view-timeline-inset: 0;
  }

  [data-8b-live] #crew .crew__grid > li,
  [data-8b-live] [data-crew-section] .crew__grid > li {
    animation-timeline: --crew-t1;
    animation-range: cover calc(18vh + 2.9538vh * var(--i, 0)) cover calc(67.2308vh + 2.9538vh * var(--i, 0));
    animation-fill-mode: both;
    transform: none;
    animation-name: crew-li-crew-card-translate, crew-li-crew-card-rotate;
    animation-timing-function: var(--ease-power2-inout), cubic-bezier(0.65, 0, 0.35, 1);
  }

  @keyframes crew-li-crew-card-translate {
    0% { translate: var(--crew-dx, 0px) var(--crew-dy, 0px); }
    100% { translate: 0px 0px; }
  }

  @keyframes crew-li-crew-card-rotate {
    0% { rotate: var(--crew-li-crew-card-rotate-from, -3deg); }
    100% { rotate: 0deg; }
  }

  @media (max-width: 768px) {
    [data-8b-live] #crew .crew__grid > li,
    [data-8b-live] [data-crew-section] .crew__grid > li {
      --crew-li-crew-card-rotate-from: 0deg !important;
    }
  }

  /* ------------------------------------------------------------------------
     8. Scene: Feature (Cinema Clip-Path Reveal & Title Slide)
     ------------------------------------------------------------------------ */
  @media (prefers-reduced-motion: no-preference) {
    [data-8b-live] #feature { height: 190svh; }
  }

  [data-8b-live] #feature {
    view-timeline: --feature-t1 block;
    view-timeline-inset: 0;
  }

  [data-8b-live] #feature .feature__frame {
    animation-timeline: --feature-t1;
    animation-range: cover 0% cover 100vh;
    animation-timing-function: linear;
    animation-fill-mode: both;
  }

  [data-8b-live] #feature .feature__img {
    animation-name: feature-img-feature-img-scale, feature-img-feature-img-scale-2;
    animation-timeline: --feature-t1;
    animation-range: cover 0% cover 100vh, cover 100vh cover calc(100% - 100vh);
    animation-timing-function: linear;
    animation-fill-mode: both, forwards;
    transform: none;
  }

  [data-8b-live] #feature .feature__title {
    animation-name: feature-h2-feature-title-translate;
    animation-timeline: --feature-t1;
    /* Hold the complete name for the final quarter viewport of the pinned scene. */
    animation-range: cover 100svh cover calc(100% - 100svh);
    animation-timing-function: cubic-bezier(0.3333, 0.6667, 0.6667, 1);
    animation-fill-mode: both;
    transform: none;
  }

  @keyframes feature-div-feature-frame-clippath-d {
    0%      { clip-path: inset(0% 33.4%); }
    99.998% { clip-path: inset(0% 0.0067%); }
    100%    { clip-path: inset(0%); }
  }

  @keyframes feature-div-feature-frame-clippath-m {
    0%      { clip-path: inset(0% 19%); }
    99.998% { clip-path: inset(0% 0.0038%); }
    100%    { clip-path: inset(0%); }
  }

  @keyframes feature-img-feature-img-scale {
    0%   { scale: 1.32; }
    100% { scale: 1.1; }
  }

  @keyframes feature-img-feature-img-scale-2 {
    0%   { scale: 1.1; }
    100% { scale: 1; }
  }

  @keyframes feature-h2-feature-title-translate {
    0%   { translate: 38% 0px; }
    100% { translate: 0px 0px; }
  }

  @media (min-width: 900px) {
    [data-8b-live] #feature .feature__frame {
      animation-name: feature-div-feature-frame-clippath-d;
    }
  }

  @media (max-width: 899px) {
    [data-8b-live] #feature .feature__frame {
      animation-name: feature-div-feature-frame-clippath-m;
    }
  }

  /* ------------------------------------------------------------------------
     9. Clean Static Fallback & Reduced Motion (When data-8b-live is absent)
     ------------------------------------------------------------------------ */
  :root:not([data-8b-live]) [data-8b-motion~="rise"] > *,
  :root:not([data-8b-live]) [data-8b-motion~="rise"],
  :root:not([data-8b-live]) [data-8b-motion~="trail"],
  :root:not([data-8b-live]) [data-8b-motion~="cut"],
  :root:not([data-8b-live]) [data-8b-motion~="cut"] img,
  :root:not([data-8b-live]) [data-8b-motion~="rule"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    translate: 0 0 !important;
    scale: 1 !important;
  }

  :root:not([data-8b-live]) .works__echo {
    display: none !important;
  }

  :root:not([data-8b-live]) .method__stage {
    position: static !important;
    min-height: auto !important;
    padding-block: 24px !important;
  }

  :root:not([data-8b-live]) .method__track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    width: 100% !important;
    gap: 24px !important;
    transform: none !important;
  }

  :root:not([data-8b-live]) .method__frame {
    width: 100% !important;
  }

  :root:not([data-8b-live]) .crew__grid > li {
    transform: none !important;
    translate: 0 0 !important;
    rotate: 0deg !important;
    animation: none !important;
  }

  :root:not([data-8b-live]) [data-row-loop],
  :root:not([data-8b-live]) .clients__track {
    animation: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* When prefers-reduced-motion: reduce is requested */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }

    [data-8b-live] [data-row-loop],
    [data-8b-live] .clients__track {
      animation: none !important;
    }

    .works__echo {
      display: none !important;
    }
  }
}
