/* WearSlabs lookbook: "Out of the vault" rail under the buy box + a story-style viewer */
.looks { position: relative; padding: 56px 0 24px; }
.looks__head { display: grid; gap: 14px; align-items: end; }
.looks__head .sec-title { font-size: clamp(44px, 11vw, 80px); }
@media (min-width: 900px) { .looks__head .sec-title { font-size: clamp(56px, 6.2vw, 84px); } }
.looks__sub { color: var(--muted); max-width: 34ch; }
.looks__nav { display: none; gap: 8px; }
.looks__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; transition: border-color .2s, background .2s, opacity .2s; }
.looks__nav button:hover { border-color: var(--bone); background: rgba(255,255,255,.08); }
.looks__nav button:disabled { opacity: .35; cursor: default; }
.look img { -webkit-user-drag: none; }
.looks__nav svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .looks { padding-top: 72px; }
  .looks__head { grid-template-columns: minmax(0, 1fr) minmax(0, 300px) auto; gap: 32px; }
  .looks__nav { display: flex; }
}

/* the rail: native scroll + snap, cards tilt in and out as they cross the screen */
.looks__rail { --card: min(72vw, 300px); display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 28px var(--gutter) 34px; scrollbar-width: none; perspective: 1200px; min-height: calc(var(--card) * 1.25 + 62px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.looks__rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .looks__rail { --card: 300px; gap: 18px; padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); } }

.look { position: relative; flex: none; width: var(--card); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: var(--ink-2); isolation: isolate; text-align: left; transform-style: preserve-3d;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.85), 0 0 0 1px var(--line); transition: box-shadow .3s; }
.look img.look__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s; opacity: 0; }
.look img.look__img.is-in { opacity: 1; }
.look::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; background: var(--holo); background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s; animation: holoShift 6s linear infinite; pointer-events: none; }
.look::after { content: ''; position: absolute; inset: auto 0 0; height: 46%; z-index: 1; background: linear-gradient(180deg, transparent, rgba(5,5,8,.82)); pointer-events: none; }
.look:hover::before, .look:focus-visible::before { opacity: 1; }
.look:hover img.look__img { transform: scale(1.045); }
.look:focus-visible { outline: none; }
/* phones: a swipe moves one card, never a fling past several */
@media (max-width: 899px) { .look { scroll-snap-stop: always; } }

/* story-style chip and caption */
.look__live { position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(7,7,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 10px; color: var(--bone); }
.look__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--label-red); box-shadow: 0 0 0 3px rgba(225,37,47,.25); }
.look__cap { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; }
.look__slab { width: 30px; height: 50px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.look__name { font: 700 14px/1.2 var(--body); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.look__go { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--ink); transform: scale(.85); opacity: 0; transition: transform .3s, opacity .3s; }
.look__go svg { width: 15px; height: 15px; }
.look:hover .look__go, .look:focus-visible .look__go { transform: none; opacity: 1; }
@media (hover: none) { .look__go { opacity: 1; transform: none; } }

/* coverflow-ish depth driven by the scroll position itself (no JS) where the browser supports it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .look { animation: lookDepth linear both; animation-timeline: view(inline); }
    @keyframes lookDepth {
      0% { transform: rotateY(-16deg) scale(.9); filter: brightness(.6); }
      22%, 78% { transform: none; filter: none; }
      100% { transform: rotateY(16deg) scale(.9); filter: brightness(.6); }
    }
  }
}

/* progress line under the rail */
.looks__bar { height: 2px; margin: 0 var(--gutter); border-radius: 2px; background: var(--line); overflow: hidden; max-width: 1208px; }
@media (min-width: 900px) { .looks__bar { margin-inline: auto; width: calc(100% - 2 * var(--gutter)); } }
.looks__bar i { display: block; height: 100%; width: 100%; background: var(--holo); background-size: 200% 100%; transform-origin: 0 50%; transform: scaleX(var(--p, .1)); transition: transform .2s; animation: holoShift 6s linear infinite; }

/* ---------- story viewer ---------- */
.story { overscroll-behavior: contain; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--bone); overflow: hidden; }
.story::backdrop { background: rgba(4,4,6,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.story[open] { display: flex; align-items: center; justify-content: center; gap: 28px; animation: storyIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes storyIn { from { opacity: 0; transform: scale(.96); } }
.story__frame { position: relative; height: min(100dvh, 920px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 0; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .25s; }
@media (min-width: 600px) { .story__frame { height: min(92dvh, 880px); max-width: calc(100vw - 180px); border-radius: 24px; box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px var(--line); } }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__img--bg { filter: blur(34px) brightness(.72) saturate(1.25); transform: scale(1.25); }
.story__img--fg { object-fit: contain; }
.story__top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: max(10px, env(safe-area-inset-top)) 12px 28px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.story__bars { display: flex; gap: 3px; }
.story__bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story__bars span i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.story__bars span.done i { transform: scaleX(1); }
.story__who { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.story__who img { width: 22px; height: 36px; object-fit: contain; }
.story__who b { font: 700 14px/1.2 var(--body); }
.story__who small { display: block; color: rgba(255,255,255,.7); font-size: 11px; }
.story__close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.story__close svg { width: 22px; height: 22px; }
.story__tap { position: absolute; z-index: 2; top: 0; bottom: 0; width: 35%; }
.story__tap--prev { left: 0; } .story__tap--next { right: 0; width: 65%; }
.story__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 40px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); display: flex; justify-content: center; }
.story__shop { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--bone); color: var(--ink); font: 700 15px/1 var(--body); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.story__shop svg { width: 16px; height: 16px; }
.story__arrow { display: none; }
@media (min-width: 900px) {
  .story__arrow { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); }
  .story__arrow:hover { background: rgba(255,255,255,.14); }
  .story__arrow[aria-disabled="true"] { opacity: .3; cursor: default; }
  .story__arrow svg { width: 20px; height: 20px; }
}
html.story-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .story[open] { animation: none; } .look img.look__img, .looks__bar i { transition: none; animation: none; } }
