/* Motion layer — curtains between pages, custom cursor, scroll-velocity effects and the
   sections added on top of the lookbook. Content is never hidden by this file unless
   html.m-on (scripts + motion allowed) or html.m-cover (page curtain) is set. */

@property --wash {
  syntax: "<color>";
  inherits: true;
  initial-value: #e6ccd8;
}
@property --press {
  syntax: "<color>";
  inherits: true;
  initial-value: #55223c;
}

.m-w {
  display: inline-block;
  white-space: nowrap;
}
.m-ch {
  display: inline-block;
}

/* ---------- Page curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
}
html.m-cover .curtain,
.curtain.is-on {
  visibility: visible;
  pointer-events: auto;
}
.curtain-panels {
  position: absolute;
  inset: 0;
  display: flex;
}
.curtain-panels i {
  flex: 1 1 0;
  margin-right: -1px;
  background: var(--c);
}
.curtain-panels i:nth-child(1) {
  --c: #59192f;
}
.curtain-panels i:nth-child(2) {
  --c: #cf5976;
}
.curtain-panels i:nth-child(3) {
  --c: #f3c4cc;
}
.curtain-panels i:nth-child(4) {
  --c: #e4cca3;
}
.curtain-panels i:nth-child(5) {
  --c: #c9b8d9;
}
.curtain-mark {
  position: relative;
  z-index: 1;
  background: #fff9ef;
  padding: 18px 28px 14px;
  rotate: -3deg;
  text-align: center;
  color: #59192f;
  box-shadow: 7px 9px 0 #2b0d1838;
}
.curtain-mark:before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  background: #e4bf80c9;
  rotate: 4deg;
}
.curtain-mark img {
  display: block;
  width: clamp(150px, 17vw, 240px);
  height: auto;
  margin: auto;
}
.curtain-mark b {
  display: block;
  margin-top: 4px;
  font: 600 clamp(24px, 2.4vw, 36px) / 1 var(--hand);
}
.curtain-bar {
  display: none;
  height: 3px;
  margin-top: 10px;
  background: #cf5976;
  transform-origin: left;
  transform: scaleX(0);
}
html.m-first .curtain-bar {
  display: block;
}
html.m-first .curtain-mark {
  opacity: 0;
}

/* ---------- Progress, header, announcement ---------- */
.m-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #59192f, #cf5976 55%, #f3c4cc);
}
html.m-on body > header {
  transition: box-shadow 0.4s;
}
html.m-on body > header.is-scrolled {
  box-shadow: 0 10px 26px -18px #59192f80;
}
html.m-on header .brand:hover img {
  animation: m-wiggle 0.65s;
}
@keyframes m-wiggle {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -7deg;
  }
  50% {
    rotate: 5deg;
  }
  75% {
    rotate: -3deg;
  }
}
.announcement.m-marquee {
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
}
.m-ann-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: m-ann 46s linear infinite;
}
.m-ann-track i {
  font-style: normal;
}
.m-ann-track b {
  margin: 0 14px;
  color: #f8a9b7;
}
@keyframes m-ann {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cursor, magnets, sparks ---------- */
html.m-cursor-on body:not(.locked) *:not(input, textarea, select) {
  cursor: none !important;
}
.m-cursor,
.m-dot {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
}
.m-cursor {
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1.5px solid #59192f;
  transition:
    width 0.4s cubic-bezier(0.3, 1.4, 0.5, 1),
    height 0.4s cubic-bezier(0.3, 1.4, 0.5, 1),
    margin 0.4s cubic-bezier(0.3, 1.4, 0.5, 1),
    background-color 0.3s,
    border-color 0.3s,
    opacity 0.3s,
    scale 0.25s;
}
.m-dot {
  z-index: 71;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #59192f;
  transition: opacity 0.3s, background-color 0.3s;
}
.m-cursor.is-in,
.m-dot.is-in {
  opacity: 1;
}
.m-cursor.is-link {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  background: #f3c4cc8c;
  border-color: transparent;
}
.m-cursor.is-label {
  width: 98px;
  height: 98px;
  margin: -49px 0 0 -49px;
  background: #cf5976;
  border-color: #cf5976;
}
.m-cursor.is-label + .m-dot {
  opacity: 0;
}
.m-cursor.is-dark:not(.is-label) {
  border-color: #fff9ef;
}
.m-cursor.is-dark + .m-dot {
  background: #fff9ef;
}
.m-cursor.is-down {
  scale: 0.78;
}
.m-cursor-label {
  font: 600 1.25rem/1 var(--hand);
  color: #fff9ef;
  white-space: nowrap;
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.25s, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.m-cursor.is-label .m-cursor-label {
  opacity: 1;
  scale: 1;
}
.m-cursor.is-hide,
.m-dot.is-hide,
body.locked .m-cursor,
body.locked .m-dot {
  opacity: 0 !important;
}
.m-mag {
  translate: var(--mgx, 0px) var(--mgy, 0px) !important;
}
.m-spark,
.m-bit {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 69;
  pointer-events: none;
}
.m-spark {
  width: 15px;
  height: 15px;
}
.m-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.m-bit {
  width: clamp(38px, 4vw, 62px);
  height: auto;
  filter: drop-shadow(3px 5px 3px #47172b44);
}
dialog .m-spark {
  position: absolute;
}

/* ---------- Home: runway extras ---------- */
html.m-on .garment-swing {
  scale: var(--gin, 1);
  translate: 0 var(--gy, 0px);
  rotate: calc(var(--tilt, 0) * 1deg);
}
html.m-on .poster-word {
  scale: calc(1 + var(--speed, 0) * 0.05) calc(1 - var(--speed, 0) * 0.1);
}
html.m-on .still-life {
  rotate: calc(var(--tilt, 0) * -1.4deg);
}

/* ---------- Home: crossed tapes ---------- */
.m-tapes {
  position: relative;
  overflow: hidden;
  padding: 30px 0 34px;
  background: linear-gradient(#c9b8d9 0 46%, var(--paper) 46%);
}
.m-tapes .ticker {
  position: relative;
  z-index: 2;
  width: 106%;
  margin-left: -3%;
  rotate: -2.4deg;
  box-shadow: 0 7px 0 #59192f26;
}
.m-tapes .ticker.m-tape-b {
  z-index: 1;
  margin-top: -14px;
  rotate: 2deg;
  background: #f3c4cc;
  color: #59192f;
  border-color: #cf5976;
}
.m-tape-b .ticker-move .spark {
  color: #cf5976;
}
html.m-on .m-tapes .ticker-move {
  animation: none !important;
}

/* ---------- Home: manifesto ---------- */
.m-manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 17vh, 180px) 7vw;
  text-align: center;
  color: #59192f;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, #f9dfe3, transparent 70%),
    var(--paper);
}
.m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.m-kicker svg {
  width: 15px;
  height: 15px;
  color: #cf5976;
}
.m-statement {
  max-width: 1180px;
  margin: 24px auto 0;
  font: 400 clamp(40px, 6.3vw, 112px) / 0.98 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.m-statement em {
  position: relative;
  z-index: 0;
  font: 600 1.12em/0.8 var(--hand);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #cf5976;
}
.m-statement em:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.2em;
  border-radius: 6px;
  background: #f3c4cc;
  transform-origin: left;
  transform: scaleX(var(--hl, 1));
}
.m-sign {
  margin-top: 28px;
  font: 600 clamp(24px, 2.3vw, 34px) / 1 var(--hand);
  color: #a83d5a;
  rotate: -2deg;
}
/* ---------- Home: collections ---------- */
html.m-on .season-fold img {
  translate: 0 var(--py, 0px);
}

/* ---------- Home: textile lens ---------- */
.textile-window span {
  z-index: 2;
}
.textile-window .m-wipe {
  z-index: 1;
}
.m-lens {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  border: 5px solid #fff9ef;
  box-shadow:
    0 0 0 2px #59192f,
    10px 14px 26px #2b0b1659;
  background-repeat: no-repeat;
  background-color: #e4d2c5;
  pointer-events: none;
  scale: 0;
  transition: scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.textile-window:hover .m-lens {
  scale: 1;
}

/* ---------- Contact ---------- */
.letterbox {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.m-air {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.m-air > * {
  position: absolute;
  bottom: -90px;
  left: var(--x);
  width: var(--w);
  height: auto;
  animation: m-rise var(--d) linear var(--dl) infinite;
}
.m-air svg {
  display: block;
  width: 100%;
  height: auto;
}
.m-air img {
  filter: drop-shadow(3px 6px 4px #47172b40);
}
@keyframes m-rise {
  from {
    translate: 0 0;
    rotate: 0deg;
  }
  to {
    translate: var(--dx, 30px) calc(-100vh - 200px);
    rotate: var(--rot, 220deg);
  }
}
.m-pulse {
  position: relative;
}
.m-pulse:after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid #cf5976;
  pointer-events: none;
  animation: m-pulse 1.9s ease-out infinite;
}
@keyframes m-pulse {
  from {
    opacity: 0.9;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 1.25 1.7;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .m-manifesto {
    padding: 74px 22px 80px;
  }
  .m-tapes {
    padding: 20px 0 24px;
  }
  .m-lens {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-air > *,
  .m-ann-track,
  .m-pulse:after,
  html.m-on header .brand:hover img {
    animation: none !important;
  }
  .m-air {
    display: none;
  }
}
