.hero {
  display: grid;
  min-height: calc(100vh - 120px);
  grid-template-rows: 1fr;
  place-items: center;
}

.stage {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.88), rgba(232, 239, 233, 0.7)),
    repeating-linear-gradient(90deg, rgba(178, 138, 72, 0.07) 0 1px, transparent 1px 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stage {
  min-height: 430px;
}

.renderer-layout .stage {
  min-width: 0;
  min-height: clamp(430px, 128vw, 620px);
  height: auto;
  padding: 8px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 24px;
  min-height: 60vh;
  padding: 6vh 0;
  text-align: center;
}

.hero-copy p {
  color: var(--persimmon);
  font-size: 14px;
  font-weight: 700;
}

.landing-logo-combo {
  display: block;
  width: min(56vw, 220px);
  height: auto;
  object-fit: contain;
}

.landing-action-copy {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.landing-title-lockup {
  width: min(72vw, 416px);
  margin: 0;
}

.landing-title-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy .landing-disclaimer {
  max-width: 28em;
  margin: 2px 0 -18px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.hero-copy > span {
  max-width: 34rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.landing-action-copy .primary-button {
  justify-self: center;
  width: auto;
  min-width: 176px;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 24px;
}

.mirror-scene {
  position: relative;
  width: min(78vw, 310px);
  height: min(104vw, 410px);
  max-height: 100%;
  isolation: isolate;
}

.asset-scene {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(55, 48, 38, 0.16);
}

.renderer-layout .asset-scene {
  width: min(100%, calc((100vh - 170px) * 0.75), 460px);
  max-height: 100%;
}

.asset-base-model,
.asset-garment-layer,
.asset-foreground-layer {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

.asset-base-model {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-garment-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-garment-layer.inner-layer {
  z-index: 2;
}

.asset-garment-layer.bottom-layer {
  z-index: 1;
}

.asset-garment-layer.outer-layer {
  z-index: 3;
}

.hem-breeze-layer {
  filter: none;
  mix-blend-mode: normal;
  transform: none;
  transform-origin: 50% 0;
  will-change: clip-path;
}

.bottom-hem-layer {
  z-index: 2;
  clip-path: polygon(0 52%, 100% 52%, 100% 82%, 0 82%);
  animation: imageHemBreeze 5.8s ease-in-out infinite;
}

.outer-hem-layer {
  z-index: 3;
  clip-path: polygon(0 45%, 100% 45%, 100% 66%, 0 66%);
  animation: imageOuterHemBreeze 6.4s ease-in-out infinite;
}

.asset-scene[data-inner-wear-style="tucked"] .asset-garment-layer.inner-layer {
  z-index: 1;
}

.asset-scene[data-inner-wear-style="tucked"] .asset-garment-layer.bottom-layer {
  z-index: 2;
}

.asset-scene[data-inner-wear-style="tucked"] .bottom-hem-layer {
  z-index: 2;
}

.asset-foreground-layer {
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-light {
  position: absolute;
  inset: 3% 3% auto auto;
  width: 38%;
  height: 38%;
  background: rgba(255, 246, 222, 0.72);
  border-radius: 50%;
  filter: blur(20px);
}

.mirror {
  position: absolute;
  inset: 0 7% 7%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(209, 229, 226, 0.72)),
    linear-gradient(90deg, transparent 0 52%, rgba(255, 255, 255, 0.52) 52% 55%, transparent 55%);
  border: 10px solid #8f6d43;
  border-radius: 46% 46% 8px 8px / 18% 18% 8px 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 22px 45px rgba(55, 48, 38, 0.22);
}

.reflection {
  position: absolute;
  inset: 7% 10% 4%;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 42% 42% 7px 7px / 17% 17% 7px 7px;
}

.reflection::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.36) 42% 47%, transparent 47%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 38%);
  content: "";
  z-index: 4;
  pointer-events: none;
}

.floor-shadow {
  position: absolute;
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 18px;
  background: rgba(64, 52, 43, 0.18);
  border-radius: 50%;
  filter: blur(4px);
}

.model {
  position: relative;
  width: calc(146px * var(--body-width));
  height: 318px;
  margin: 0;
  transform-origin: center bottom;
}

.model span {
  position: absolute;
  display: block;
}

.head {
  top: 7px;
  left: 50%;
  width: 46px;
  height: 56px;
  background: #f1c8ad;
  border-radius: 46% 46% 48% 48%;
  transform: translateX(-50%);
}

.hair {
  top: 0;
  left: 50%;
  width: 60px;
  height: 70px;
  background:
    radial-gradient(circle at 55% 18%, #2d211d 0 6px, transparent 7px),
    linear-gradient(180deg, #2d211d 0 52%, transparent 52%);
  border-radius: 44% 44% 28% 28%;
  transform: translateX(-50%);
}

.neck {
  top: 58px;
  left: 50%;
  width: 22px;
  height: 24px;
  background: #eabda0;
  transform: translateX(-50%);
}

.inner {
  top: 76px;
  left: 50%;
  width: calc(82px * var(--shoulder));
  height: 92px;
  background:
    linear-gradient(135deg, transparent 0 47%, var(--inner-accent) 48% 51%, transparent 52%),
    linear-gradient(180deg, var(--inner), color-mix(in srgb, var(--inner), #fff 18%));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px 24px 10px 10px;
  transform: translateX(-50%);
  clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.outerwear {
  top: 78px;
  left: 50%;
  width: calc(118px * var(--shoulder));
  height: 196px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.45) 45% 47%, transparent 47% 53%, rgba(255, 255, 255, 0.45) 53% 55%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--outer), #fff 15%), var(--outer));
  border-radius: 28px 28px 18px 18px;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
  transform-origin: center top;
  animation: clothBreeze 4.4s ease-in-out infinite;
  opacity: 0.92;
  z-index: 3;
}

.outerwear::after {
  position: absolute;
  inset: 0 47% 0 47%;
  background: var(--outer-accent);
  opacity: 0.62;
  content: "";
}

.sleeve {
  top: 86px;
  width: calc(34px * var(--shoulder));
  height: 132px;
  background: var(--outer);
  border-radius: 20px;
  opacity: 0.9;
  transform-origin: top center;
  z-index: 1;
}

.sleeve.left {
  left: 2%;
  transform: rotate(9deg);
}

.sleeve.right {
  right: 2%;
  transform: rotate(-9deg);
}

.waistband {
  top: 154px;
  left: 50%;
  width: calc(88px * var(--waist));
  height: 14px;
  background: var(--bottom-accent);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 4;
}

.bottom {
  top: 160px;
  left: 50%;
  width: calc(124px * var(--hip));
  height: 150px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, color-mix(in srgb, var(--bottom), #fff 12%), var(--bottom));
  border-radius: 8px 8px 24px 24px;
  transform: translateX(-50%);
  transform-origin: center top;
  animation: hemBreeze 4s ease-in-out infinite;
  z-index: 2;
}

.bottom.skirt {
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.bottom.pants {
  width: calc(104px * var(--hip));
  clip-path: polygon(18% 0, 82% 0, 96% 100%, 56% 100%, 50% 42%, 44% 100%, 4% 100%);
}

@keyframes clothBreeze {
  0%,
  100% {
    transform: translateX(-50%) skewX(0deg);
  }
  50% {
    transform: translateX(-50%) skewX(1.8deg);
  }
}

@keyframes hemBreeze {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    transform: translateX(-50%) scaleX(1.035);
  }
}

@keyframes subtleClothFloat {
  0%,
  100% {
    transform: skewX(0deg);
  }
  50% {
    transform: skewX(0.18deg);
  }
}

@keyframes imageHemBreeze {
  0%,
  100% {
    clip-path: polygon(0 52%, 100% 52%, 100% 82%, 0 82%);
  }
  45% {
    clip-path: polygon(0 52%, 100% 52%, 98.6% 82%, 1.3% 82%);
  }
  72% {
    clip-path: polygon(0 52%, 100% 52%, 99.1% 82%, 0.5% 82%);
  }
}

@keyframes imageOuterHemBreeze {
  0%,
  100% {
    clip-path: polygon(0 45%, 100% 45%, 100% 66%, 0 66%);
  }
  42% {
    clip-path: polygon(0 45%, 100% 45%, 99.2% 66%, 1.1% 66%);
  }
  76% {
    clip-path: polygon(0 45%, 100% 45%, 98.8% 66%, 0.4% 66%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hem-breeze-layer {
    animation: none;
  }
}

@media (min-width: 760px) {
  .brand-logo-sign {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: calc(100vh - 110px);
    grid-template-rows: 1fr;
  }

  .hero-copy {
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: clamp(20px, 2.6vw, 36px);
    row-gap: 0;
    min-height: 70vh;
    padding: 6vh 0;
  }

  .landing-logo-combo {
    justify-self: end;
    width: min(28vw, 280px);
  }

  .landing-action-copy {
    justify-items: start;
    gap: 30px;
  }

  .landing-disclaimer {
    max-width: 30em;
  }

  .landing-title-lockup {
    justify-self: start;
    width: clamp(304px, 27.2vw, 448px);
  }

  .landing-action-copy .primary-button {
    justify-self: start;
    width: fit-content;
    min-width: 180px;
  }

  .stage {
    min-height: 560px;
  }

  .mirror-scene {
    width: min(34vw, 360px);
    height: min(46vw, 480px);
  }

  .asset-scene {
    width: min(34vw, 370px);
  }

}

@media (min-width: 980px) {
  .renderer-layout .stage {
    min-height: 0;
    height: 100%;
  }

  .renderer-layout .asset-scene {
    width: min(100%, calc((100vh - 180px) * 0.75), 520px);
  }
}
