/* AFTERFORM motion language: a garment lifted from its printed sample card. */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-quick: cubic-bezier(.2,.75,.3,1);
}

/* The headline is readable before and without JavaScript. */
.hero h1 .hero-line {
  display:block;
  overflow:hidden;
  padding-bottom:.065em;
  margin-bottom:-.065em;
  color:var(--paper);
}
.hero h1 .hero-word {display:block;color:var(--paper);transform-origin:0 100%}
.hero h1 .hero-word.accent {color:var(--lime)}
.button-emblem {width:21px;height:21px;margin-left:21px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;transition:transform .45s var(--ease-out);flex:none}
.hero .button:hover .button-emblem,.hero .button:focus-visible .button-emblem {transform:rotate(90deg)}

/* A lime print edge gives the flat product photograph a physical layer. */
.product-card {
  perspective:1000px;
  --card-rx:0deg;
  --card-ry:0deg;
  --photo-x:0px;
  --photo-y:0px;
  --card-angle:-1.25deg;
}
.product-card:nth-child(even) {--card-angle:1.25deg}
.product-card-motion {min-width:0;position:relative}
.product-card::before {
  content:'';
  position:absolute;
  top:0;left:0;
  width:100%;aspect-ratio:1;
  background:var(--lime);
  opacity:0;
  transform:translate(5px,7px) scale(.96);
  transition:opacity .26s var(--ease-quick),transform .55s var(--ease-out);
  pointer-events:none;
}
.product-image-wrap {
  z-index:1;
  transform-origin:50% 55%;
  transform:translate3d(0,0,0) rotateX(0) rotateY(0);
  transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out);
  backface-visibility:hidden;
}
.product-meta {position:relative;z-index:2}
.product-image-button:focus-visible {outline:2px solid var(--ink);outline-offset:-5px}
.product-card .product-photo {transition:transform .75s var(--ease-out)}
.product-card .quick-add {
  z-index:3;
  left:0;right:0;bottom:0;
  padding:12px 15px;
  min-height:50px;
  transition:opacity .25s var(--ease-quick),transform .5s var(--ease-out),background .3s,color .3s;
}
.product-card .quick-add>span:last-child {transition:transform .45s var(--ease-out);display:inline-grid;place-items:center;width:24px;height:24px;font-size:17px;border:1px solid currentColor}
.product-card .save-button {transition:background .18s,border-color .18s,transform .18s var(--ease-out)}
.product-card .save-button svg {transition:fill .15s}
.product-card .save-button[aria-pressed=true] svg {fill:currentColor}
.product-price,.cart-item-price,.cart-total,.quantity-control,#bagCount {font-variant-numeric:tabular-nums}

@media (hover:hover) and (pointer:fine) {
  html:not(.motion-reduced) .product-card.is-hovered::before,
  html:not(.motion-reduced) .product-card:focus-within::before {opacity:1;transform:translate(5px,7px) scale(1)}
  html:not(.motion-reduced) .product-card.is-hovered .product-image-wrap,
  html:not(.motion-reduced) .product-card:focus-within .product-image-wrap {
    transform:translate3d(-6px,-14px,0) rotateX(var(--card-rx)) rotateY(var(--card-ry)) rotateZ(var(--card-angle));
    box-shadow:0 0 0 1px var(--ink),0 25px 28px -16px #11121060;
  }
  html:not(.motion-reduced) .product-card.is-hovered .product-image-wrap .product-photo,
  html:not(.motion-reduced) .product-card:focus-within .product-image-wrap .product-photo {
    transform:translate3d(var(--photo-x),var(--photo-y),0) scale(1.055);
  }
  .product-card.is-hovered .quick-add,.product-card:focus-within .quick-add {
    opacity:1;transform:translateY(0);background:var(--lime);color:var(--ink);
  }
  .product-card .quick-add:hover>span:last-child,.product-card .quick-add:focus-visible>span:last-child {transform:rotate(90deg)}
  .product-card .save-button:hover {transform:scale(1.08)}
}
@media (min-width:901px) and (hover:hover) and (pointer:fine) {
  .product-card .quick-add {transform:translateY(calc(100% + 1px));opacity:0}
  .product-card.is-hovered .quick-add,.product-card:focus-within .quick-add {transform:translateY(0);opacity:1;transition-delay:.07s}
}

/* Compact actions stay reachable throughout the scroll sequence. */
@media(max-width:900px),(hover:none),(pointer:coarse) {
  .product-card {--card-angle:-.8deg}
  .product-card:nth-child(even) {--card-angle:.8deg}
  .product-card .quick-add {opacity:1;transform:none;min-height:44px;padding:9px 10px;font-size:12px}
  .product-card .quick-add>span:last-child {width:21px;height:21px;font-size:15px;flex:none}
  html:not(.motion-reduced) .product-card.is-hovered .product-image-wrap,
  html:not(.motion-reduced) .product-card:focus-within .product-image-wrap {
    transform:translate3d(0,-9px,0) rotateZ(var(--card-angle));
    box-shadow:0 0 0 1px var(--ink),0 18px 23px -16px #11121050;
  }
}

/* Each scroll position is a composed frame. There is no timed catch-up. */
.scroll-scene {--scroll-progress:1;--scroll-reveal:1;--scroll-focus:0}
.product-card.scroll-scene {
  --card-reveal:var(--scroll-reveal);
  --card-focus:var(--scroll-focus);
  --card-lift:14px;
  --card-shift:-6px;
  --card-ledge-x:5px;
  --card-ledge-y:7px;
}
html.scroll-ready:not(.motion-reduced) .product-card.scroll-scene::before {
  opacity:var(--card-focus);
  transform:translate(var(--card-ledge-x),var(--card-ledge-y));
  transition:none;
}
html.scroll-ready:not(.motion-reduced) .product-card.scroll-scene .product-image-wrap {
  transform:translate3d(calc(var(--card-shift)*var(--card-focus)),calc(-1*var(--card-lift)*var(--card-focus)),0) rotateX(var(--card-rx)) rotateY(var(--card-ry)) rotateZ(calc(var(--card-angle)*(2*(1 - var(--card-reveal)) + var(--card-focus))));
  opacity:1;
  box-shadow:0 0 0 1px rgb(17 18 16 / calc(.9*var(--card-focus))),0 23px 28px -17px rgb(17 18 16 / calc(.35*var(--card-focus)));
  transition:none;
}
html.scroll-ready:not(.motion-reduced) .product-card.scroll-scene .product-image-wrap .product-photo {
  transform:translate3d(var(--photo-x),calc(var(--photo-y) + (1 - var(--card-reveal))*48px),0) scale(calc(1 + .025*var(--card-focus) + .055*(1 - var(--card-reveal))));
  opacity:calc(.25 + .75*var(--card-reveal));
  transition:none;
}
html.scroll-ready:not(.motion-reduced) .product-card.scroll-scene .quick-add {
  background:var(--lime);
  color:var(--ink);
  transition:none;
}
html.scroll-ready .product-card.scroll-scene:focus-within,
html.scroll-ready .product-card.scroll-scene.is-scroll-focused {--card-reveal:1;--card-focus:1}
@media(min-width:901px) and (hover:hover) and (pointer:fine) {
  html.scroll-ready .product-card.scroll-scene.is-hovered {--card-reveal:1;--card-focus:1}
  html.scroll-ready:not(.motion-reduced) .product-card.scroll-scene .quick-add {
    opacity:var(--card-focus);
    transform:translateY(calc((1 - var(--card-focus))*101%));
  }
}
@media(max-width:900px),(hover:none),(pointer:coarse) {
  .product-card.scroll-scene {--card-lift:9px;--card-shift:0px;--card-ledge-x:3px;--card-ledge-y:4px}
}

/* Stable section boxes measure progress; only their contents move. */
html.scroll-ready:not(.motion-reduced) .section-intro.scroll-scene h2 {
  transform:translateY(calc((1 - var(--scroll-reveal))*28px));
  opacity:calc(.6 + .4*var(--scroll-reveal));
}
html.scroll-ready:not(.motion-reduced) .section-intro.scroll-scene .collection-intro-copy {
  transform:translateY(calc((1 - var(--scroll-reveal))*18px));
}
html.scroll-ready:not(.motion-reduced) .lookbook-image.scroll-scene img {
  transform:scale(calc(1 + .085*(1 - var(--scroll-reveal))));
  clip-path:inset(calc((1 - var(--scroll-reveal))*12%) calc((1 - var(--scroll-reveal))*5%));
  transition:none;
}
html.scroll-ready:not(.motion-reduced) .lookbook-copy.scroll-scene h2 {
  transform:translateY(calc((1 - var(--scroll-reveal))*52px));
  opacity:calc(.4 + .6*var(--scroll-reveal));
}
html.scroll-ready:not(.motion-reduced) .lookbook-copy.scroll-scene>p:not(.eyebrow) {
  transform:translateY(calc((1 - var(--scroll-reveal))*24px));
  opacity:calc(.65 + .35*var(--scroll-reveal));
}
html.scroll-ready:not(.motion-reduced) .studio-copy.scroll-scene h2 {
  transform:translateY(calc((1 - var(--scroll-reveal))*42px));
  opacity:calc(.45 + .55*var(--scroll-reveal));
}
html.scroll-ready:not(.motion-reduced) .art-panel.scroll-scene .opal-canvas,
html.scroll-ready:not(.motion-reduced) .art-panel.scroll-scene .art-fallback {
  transform:translateY(calc((1 - var(--scroll-reveal))*44px)) scale(calc(.96 + .04*var(--scroll-reveal)));
  clip-path:inset(calc((1 - var(--scroll-reveal))*8%) calc((1 - var(--scroll-reveal))*4%));
  transition:none;
}
html.scroll-ready:not(.motion-reduced) .art-panel.scroll-scene .opal-art[data-opal-ready=true] .opal-canvas,
html.scroll-ready:not(.motion-reduced) .art-panel.scroll-scene .opal-art:not([data-opal-ready=true]) .art-fallback {opacity:calc(.25 + .75*var(--scroll-reveal))}
html.scroll-ready:not(.motion-reduced) .newsletter .scroll-scene h2 {
  transform:translateY(calc((1 - var(--scroll-reveal))*18px));
}
html.scroll-ready .scroll-scene:focus-within {--scroll-reveal:1!important}

/* Small press and color responses also work on touch. */
.product-image-button:active {filter:brightness(.97)}
.product-card .quick-add:active {background:var(--lime);color:var(--ink)}
.product-card .save-button:active {transform:scale(.94)}
.button {position:relative;isolation:isolate;overflow:hidden;transition:background .2s,color .2s,transform .22s var(--ease-out),box-shadow .22s var(--ease-out)}
.button::before {
  content:'';
  pointer-events:none;
  position:absolute;top:-10%;left:-45%;width:28%;height:120%;
  background:#fff3;
  transform:skewX(-18deg) translateX(-50%);
  transition:transform .6s var(--ease-out);
}
@media (hover:hover) and (pointer:fine) {
  .button:hover::before,.button:focus-visible::before {transform:skewX(-18deg) translateX(650%)}
  .button-lime:hover {box-shadow:0 9px 22px -14px #d5ff3fa0}
}
.button:active {transform:translateY(1px) scale(.985)}
.desktop-nav a::after {background:var(--lime);transition:transform .28s var(--ease-out)}
.filters button {transition:background .18s,color .18s,border-color .18s}
.size-options button {transition:background .16s,color .16s,border-color .16s}
.size-options button:active {transform:scale(.96)}
.close-dialog {transition:background .18s}
.menu-lines {transition:transform .24s var(--ease-out)}
.menu-trigger[aria-expanded=true] .menu-lines {transform:rotate(90deg)}
.bag-trigger>span {border-color:#6f7567}
.cart-item {position:relative}

/* A single, explicit control pauses page motion as well as the art study. */
.footer-actions {display:flex;align-items:center;gap:24px}
.motion-preference {display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:44px}
.motion-led {width:8px;height:8px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px #d5ff3f15;flex:none}
.motion-preference[aria-pressed=false] .motion-led {background:#8b9280;box-shadow:none}
.motion-preference:disabled {opacity:.65}
@media(max-width:600px) {
  .hero .button-emblem {width:18px;height:18px;margin-left:16px}
  .footer-top {flex-wrap:wrap}
  .footer-actions {width:100%;justify-content:space-between;gap:20px}
  .footer-actions .text-button {font-size:12px}
  .product-image-wrap {transition:transform .55s var(--ease-out),box-shadow .55s var(--ease-out)}
  .product-card:hover .product-image-wrap .product-photo {transform:none}
}
@media(hover:none),(pointer:coarse) {
  .product-card:hover .product-image-wrap .product-photo {transform:none}
  .product-card .quick-add {opacity:1;transform:none}
}

html.motion-reduced {scroll-behavior:auto}
html.motion-reduced .product-card::before {opacity:1;transform:translate(0,4px);transition:none}
html.motion-reduced .scroll-scene {--scroll-progress:1!important;--scroll-reveal:1!important;--scroll-focus:0!important}
html.motion-reduced .scroll-scene .opal-canvas,
html.motion-reduced .scroll-scene .art-fallback {transition:none!important}
html.motion-reduced .scroll-scene .product-image-wrap,
html.motion-reduced .scroll-scene .product-photo,
html.motion-reduced .scroll-scene img,
html.motion-reduced .scroll-scene h2,
html.motion-reduced .scroll-scene .opal-art {opacity:1!important;clip-path:none!important}
html.motion-reduced .product-card-motion,
html.motion-reduced .product-card .product-image-wrap,
html.motion-reduced .product-card .product-photo,
html.motion-reduced .product-card .save-button,
html.motion-reduced .hero-word,
html.motion-reduced .hero-photo,
html.motion-reduced .hero-description,
html.motion-reduced .button,
html.motion-reduced .button-emblem,
html.motion-reduced .size-options button,
html.motion-reduced .menu-lines {transform:none!important;transition:none!important}
html.motion-reduced .button::before {display:none}
html.motion-reduced .quick-add {transition:none!important}
html.motion-reduced .quick-add>span:last-child {transform:none!important;transition:none!important}
html.motion-reduced .desktop-nav a::after,
html.motion-reduced .hero-bottom a::after,
html.motion-reduced .collection-foot a::after {transition:none!important}
@media(prefers-reduced-motion:reduce) {
  .scroll-scene {--scroll-progress:1!important;--scroll-reveal:1!important;--scroll-focus:0!important}
  .scroll-scene .product-image-wrap,.scroll-scene .product-photo,.scroll-scene img,.scroll-scene h2,.scroll-scene .opal-art {opacity:1!important;transform:none!important;clip-path:none!important}
  .product-card::before {opacity:1;transform:translate(0,4px);transition:none}
  .product-card-motion,.product-card .product-image-wrap,.product-card .product-photo,.product-card .save-button,.hero-word,.hero-photo,.hero-description,.button,.button-emblem,.size-options button,.menu-lines {transform:none!important;transition:none!important}
  .button::before {display:none}
}
