/* The wardrobe page: the landing page's tokens and type, laid out as a rack. */
.wardrobe-page { background: var(--paper); overflow-x: clip; }

.opening {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); align-items: end; gap: 32px;
  min-height: 100svh; padding: 120px var(--gutter) 0;
  background: radial-gradient(ellipse at 76% 43%, #FFFFFFB3, transparent 48%), linear-gradient(155deg, var(--field), var(--paper) 78%);
}
.opening .ghost { top: 20%; left: 6%; font-size: clamp(110px, 16.5vw, 300px); }
.opening-copy { position: relative; z-index: 2; max-width: 560px; padding-bottom: 112px; }
.opening-copy .lede { margin-top: 24px; font-size: clamp(17px, 1.3vw, 20px); color: var(--soft); max-width: 44ch; }
.opening-copy .how { margin-top: 18px; font-size: 15px; color: var(--soft); max-width: 48ch; }
.opening-copy .how strong { color: var(--ink); }
.opening-copy .fine { margin-top: 10px; color: var(--soft); font-size: 13px; }
.opening-portrait { position: relative; z-index: 1; align-self: stretch; min-height: 520px; }
.opening-portrait::before {
  content: ""; position: absolute; bottom: 86px; left: 28%; width: 44%; height: 22px;
  background: radial-gradient(ellipse, #34344A1F, transparent 70%);
}
.opening-portrait img {
  position: absolute; inset: 24px 0 92px; width: 100%; height: calc(100% - 116px);
  object-fit: contain; object-position: center bottom;
}
.opening-portrait figcaption {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.tag {
  padding: 5px 10px 4px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .12em;
}

.rack-section { padding-block: 96px 32px; }
.rack-section h2 { font-size: clamp(34px, 3.8vw, 56px); }
.rack-lede { margin-top: 18px; max-width: 52ch; color: var(--soft); }
.rack {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 28px 20px;
}
.hanger {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 640ms cubic-bezier(.16, 1, .3, 1), transform 640ms cubic-bezier(.16, 1, .3, 1);
}
.hanger.is-in { opacity: 1; transform: none; }
.hanger img {
  display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: contain; object-position: center bottom;
  padding: 18px 10% 0; border: 1px solid #34344A2E; border-radius: 18px;
  background: radial-gradient(ellipse at 70% 30%, #FFFFFF99, transparent 55%), linear-gradient(160deg, var(--field), #EEF1F4 85%);
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1), box-shadow 420ms cubic-bezier(.16, 1, .3, 1), border-color 200ms;
}
.hanger:hover img, .hanger:focus-within img { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 18px 36px -14px #34344A4D; }
.hanger.is-now img { border-color: var(--ink); }
.hanger.is-now::after {
  content: "NOW"; position: absolute; top: 12px; left: 12px; padding: 5px 9px 4px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--coral); box-shadow: inset 0 -2px var(--deep);
  font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1;
}
.label h3 { font-size: 19px; letter-spacing: -.02em; }
.label p { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--soft); }

.wardrobe-page .download { padding-top: 96px; border-top: 1px solid #34344A26; margin-top: 64px; }

@media (max-width: 800px) {
  .opening { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding: 92px 24px 0; gap: 8px; }
  .opening-copy { max-width: none; }
  .opening-copy .lede, .opening-copy .how { max-width: none; }
  .opening .ghost { top: 10%; left: 4%; font-size: 30vw; }
  .opening-copy { padding-bottom: 8px; }
  .opening-portrait { min-height: 0; height: var(--band); order: -1; margin-inline: -24px; }
  .opening-portrait img { inset: 12px 0 0; height: calc(100% - 12px); }
  .opening-portrait figcaption { display: none; }
  .rack-section { padding-top: 64px; }
  .rack { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .hanger img { border-radius: 14px; }
  .label h3 { font-size: 17px; }
  .label p { font-size: 13px; }
  .wardrobe-page .download { padding-top: 64px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hanger { opacity: 1; transform: none; }
}
