/* Faded Brick Creative: motion layer. Progressive: nothing is hidden unless motion.js opts in. */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto !important}
}

/* Scroll reveals: only elements JS marked as below the fold at load. Uses the independent
   `translate` property so inline `transform` values are never overwritten. */
html.fb-motion [data-fb-reveal]{
  opacity:0;
  translate:0 22px;
  transition:opacity .55s cubic-bezier(.2,.7,.2,1) var(--fb-delay,0ms),
             translate .65s cubic-bezier(.2,.7,.2,1) var(--fb-delay,0ms);
}
html.fb-motion [data-fb-reveal="rule"]{translate:-18px 0}
html.fb-motion [data-fb-reveal].fb-in{opacity:1;translate:0 0}
html.fb-motion [data-fb-reveal]:focus-within{opacity:1;translate:none;transition:none}

/* Hero phones parallax: translate only, applied to direct children so inline rotate stays. */
.fb-px{will-change:translate}

/* CTAs: a confident lift, like setting a brick in place. */
.fb-cta{transition:translate .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease}
.fb-cta:hover{translate:0 -2px;box-shadow:0 8px 18px rgba(15,22,38,.28)}
.fb-cta:active{translate:0 0;box-shadow:0 2px 6px rgba(15,22,38,.25);transition-duration:.06s}
.fb-cta-arrow{position:relative}
.fb-cta-arrow::after{content:"";position:absolute;right:9px;top:50%;width:.36em;height:.36em;border-top:2px solid currentColor;border-right:2px solid currentColor;rotate:45deg;opacity:0;translate:-3px -50%;transition:opacity .18s ease, translate .2s ease}
.fb-cta-arrow:hover::after,.fb-cta-arrow:focus-visible::after{opacity:1;translate:0 -50%}

/* Cards: lift with a tinted shadow. */
.fb-card{transition:translate .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease}
.fb-card:hover{translate:0 -4px;box-shadow:0 16px 34px rgba(15,22,38,.18)}
.fb-card-img img{transition:scale .5s cubic-bezier(.2,.7,.2,1)}
.fb-card-img:hover img{scale:1.03}

/* Underline links (e.g. "See all work"): amber rule thickens. */
.fb-uline{transition:box-shadow .2s ease, border-color .2s ease}
.fb-uline:hover{box-shadow:0 2px 0 #FFB21A}

@media (prefers-reduced-motion: reduce){
  html.fb-motion [data-fb-reveal]{opacity:1 !important;translate:none !important;transition:none !important}
  .fb-cta,.fb-card,.fb-card-img img,.fb-cta-arrow::after,.fb-uline{transition:none !important}
  .fb-cta:hover,.fb-card:hover{translate:none}
  .fb-card-img:hover img{scale:none}
  .fb-px{translate:none !important;will-change:auto}
}
