/* Version 1 home page scenes. Ratios from the client's sheet: 3:4, 1:1, 4:5, 16:9 and 9:16. */
html { scroll-padding-top: var(--bar); }
ol { list-style: none; }

/* scroll journey */
.journey { height: 500vh; position: relative; }
.journey__stage { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow: hidden; background: var(--bg); }
.j-step { position: absolute; inset: 0; --in: 0; --out: 0; --d: 0; }
.j-step[data-step="0"] { visibility: visible; --in: 1; }
.j-step:not([data-step="0"]) { visibility: hidden; }
.j-open { opacity: calc(1 - var(--out)); }
.j-open__media { position: absolute; inset: 0; transform: scale(calc(1 - var(--out) * .22)); }
/* the first screen is filled edge to edge; the 16:9 loop (4:5 on upright screens) is trimmed to fit,
   a little more from the bottom than the top so heads stay in */
.j-open__media video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 25%; }
.j-open__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--fade), .9), rgba(var(--fade), 0) 58%); pointer-events: none; }
.j-open__media .vbtn { top: 18px; bottom: auto; }
.j-open__text { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 30px; transform: translateY(calc(var(--out) * -90px)); }
.j-open__text h1 { font-size: clamp(40px, 6.2vw, 108px); line-height: .96; }
.j-open__text h1 em { display: block; }
.j-open__cta { display: grid; justify-items: end; gap: 16px; }
.j-cue { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.j-cue::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px 0 0 auto; background: var(--gold); animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.j-ch { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px); padding: 22px var(--pad) 78px; background: var(--bg); transform: translate3d(0, calc((1 - var(--in)) * 100%), 0); }
.j-step.is-live.j-ch, .j-step.is-live .j-frame, .j-step.is-live .j-side, .j-step.is-live .j-copy, .j-step.is-live .j-word { will-change: transform; }
.j-word { position: absolute; left: 0; top: 50%; white-space: nowrap; font-size: min(30vw, 46vh); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--word-line); transform: translate(calc(18vw - var(--d) * 36vw), -50%); pointer-events: none; }
.j-frame { position: relative; z-index: 2; grid-column: 2; height: calc(100vh - var(--bar) - 100px); aspect-ratio: 9 / 16; overflow: hidden; background: var(--panel); transform: translateY(calc((1 - var(--in)) * 18vh)) scale(calc(1 - var(--out) * .08)); box-shadow: var(--frame-shadow); }
.j-frame--still { aspect-ratio: 3 / 4; height: min(calc(100vh - var(--bar) - 100px), 52vw); }
.j-frame canvas { width: 100%; height: 100%; }
.j-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--in) * .14)); }
.j-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 3; display: grid; gap: 18px; justify-items: start; opacity: calc(var(--in) - var(--out)); transform: translateY(calc((1 - var(--in)) * 70px - var(--out) * 70px)); }
.j-copy .eyebrow { margin: 0; }
.j-copy h2 { font-size: clamp(36px, 4.4vw, 76px); line-height: .98; }
.j-copy h2 em { display: block; }
.j-sub { color: var(--soft); max-width: 34ch; }
.j-wear { display: grid; gap: 8px; width: min(100%, 330px); }
.j-wear a { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; padding: 6px; border: 1px solid var(--line); background: var(--tint); transition: border-color .3s; }
.j-wear a:hover { border-color: var(--gold); }
.j-wear img { aspect-ratio: 1; object-fit: cover; }
.j-wear span { display: grid; font-size: 12px; color: var(--soft); }
.j-wear b { font: 400 18px/1.3 var(--serif); color: var(--ink); }
.j-side { grid-column: 3; grid-row: 1; justify-self: end; width: min(100%, 380px, calc((100vh - var(--bar) - 200px) * .75)); transform: translateY(calc((1 - var(--in)) * -45vh + var(--out) * -20vh + var(--d) * -5vh)) rotate(calc(var(--d) * -3deg)); }
.j-side img { aspect-ratio: 3 / 4; object-fit: cover; filter: var(--side-filter); }
.j-nav { position: absolute; left: var(--pad); right: var(--pad); bottom: 14px; z-index: 20; text-shadow: 0 0 12px var(--bg), 0 0 6px var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.j-nav.is-in { opacity: 1; visibility: visible; }
.j-line { grid-column: 1 / -1; height: 1px; background: var(--line); }
.j-line i { display: block; height: 1px; background: var(--gold); transform: scaleX(var(--all, 0)); transform-origin: left; }
.j-nav ol { display: flex; gap: clamp(10px, 3vw, 44px); }
.j-nav button { min-height: 38px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.j-nav button span { color: var(--gold); margin-right: 4px; }
.j-nav button[aria-current] { color: var(--ink); }
.j-nav a { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 3px; white-space: nowrap; }
.journey.is-static { height: auto; }
.journey.is-static .journey__stage { position: static; height: auto; overflow: visible; }
.journey.is-static .j-step { position: relative; visibility: visible; --in: 1; --out: 0; --d: 0; }
.journey.is-static .j-open { height: calc(100vh - var(--bar)); min-height: 420px; }
.journey.is-static .j-ch { padding-block: 50px; }
.journey.is-static .j-frame, .journey.is-static .j-frame--still { height: min(70vh, 560px); }
.journey.is-static .j-word, .journey.is-static .j-nav, .journey.is-static .j-cue { display: none; }

/* hanger rail */
.shop .head { padding-top: clamp(36px, 6vh, 90px); margin-bottom: 6px; flex-wrap: wrap; }
.shop .head h2 { font-size: clamp(40px, min(5.4vw, 9vh), 88px); }
.shop .head .eyebrow { margin-bottom: 12px; }
.shop__tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shop__who { display: flex; border: 1px solid var(--line); border-radius: 40px; padding: 4px; }
.shop__who button { min-height: 40px; padding: 0 22px; border-radius: 40px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.shop__who button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.shop__stage { position: relative; padding-top: 22px; background: var(--stage); }
.shop__bar { position: absolute; left: 0; right: 0; top: 40px; height: 7px; background: var(--rod); box-shadow: var(--rod-shadow); }
.shop__bar::before, .shop__bar::after { content: ''; position: absolute; top: -40px; width: 3px; height: 43px; left: 8%; background: var(--rod-post); }
.shop__bar::after { left: auto; right: 8%; }
.shop__track { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: clamp(6px, 1.4vw, 22px); overflow-x: auto; padding: 14px var(--pad) 22px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; user-select: none; -webkit-user-select: none; }
.shop__track.is-drag { cursor: grabbing; }
.hang { flex: 0 0 clamp(190px, 34vh, 330px); display: grid; gap: 18px; --tilt: 0deg; }
.hang__swing { position: relative; display: block; transform: rotate(0deg); transform-origin: 50% 8px; will-change: transform; }
.hang__swing img { aspect-ratio: 3 / 4; object-fit: contain; transition: transform .5s var(--ease), filter .4s; transform-origin: top center; -webkit-user-drag: none; filter: var(--hang-shadow); }
.hang:hover .hang__swing img { transform: scale(1.045); }
.hang__wire { position: absolute; left: 0; top: 0; width: 100%; height: 15%; overflow: visible; }
.hang__wire path { fill: none; stroke: var(--wire); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hang--clip .hang__swing { aspect-ratio: 3 / 4; }
.hang--clip .hang__swing img { position: absolute; top: 9.4%; left: 6.25%; width: 87.5%; }
.hang--clip .hang__wire { height: 17.5%; }
.hang--photo .hang__swing { aspect-ratio: 3 / 4; }
.hang--photo .hang__wire { height: 16%; }
.hang__photo { position: absolute; left: 12%; right: 12%; top: 14%; display: block; padding: 6px; background: var(--mat); box-shadow: var(--mat-shadow); }
.hang__photo img { object-fit: cover; }
.hang--bottle .hang__swing { transform: none; }
.hang--bottle .hang__swing img { transform: translateY(9%) scale(.92); }
.hang--bottle:hover .hang__swing img { transform: translateY(9%) scale(.97); }
.hang__tag { text-align: center; display: grid; justify-items: center; gap: 2px; }
.hang__tag h3 { font: 400 clamp(19px, 1.6vw, 25px)/1.2 var(--serif); }
.hang__tag p { font-size: 12.5px; color: var(--soft); }
.hang__sizes { display: flex; gap: 4px; margin-top: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease); }
.hang:hover .hang__sizes, .hang__sizes:focus-within { opacity: 1; transform: none; }
.hang__sizes button { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 40px; font-size: 11px; }
.hang__sizes button:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.hang__sizes button:disabled { opacity: .35; text-decoration: line-through; }
.shop__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px var(--pad) 0; font-size: 12px; color: var(--soft); }
.shop__foot a { color: var(--ink); }

/* Women and Men: everything fits one screen */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 70px); }
.door { min-width: 0; }
.door header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.door h2 { font: 400 clamp(48px, min(6.4vw, 11vh), 108px)/.9 var(--serif); }
.door h2 a:hover { color: var(--gold); font-style: italic; }
.door header p { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.door__body { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.door__main { display: block; width: 100%; max-width: max(280px, calc((100vh - var(--bar) - 210px) * .75)); justify-self: center; overflow: hidden; background: var(--panel); }
.door__main img { aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .18s, transform 1.2s var(--ease); }
.door__main:hover img { transform: scale(1.04); }
.door--men .door__main { order: 2; }
.door--men .door__body { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); }
.door__picks { display: grid; gap: 12px; max-width: min(190px, 20vh); width: 100%; }
.door--men .door__picks { justify-self: end; }
.door__picks a:not(.ul) { display: grid; gap: 8px; }
.door__picks img { aspect-ratio: 1; object-fit: cover; border: 1px solid transparent; transition: border-color .3s; }
.door__picks a:hover img, .door__picks a:focus-visible img { border-color: var(--gold); }
.door__picks span { display: grid; font-size: 11.5px; color: var(--soft); }
.door__picks b { font: 400 17px/1.25 var(--serif); color: var(--ink); }

/* the turning tee */
.piece { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .8fr); align-items: center; gap: clamp(16px, 3vw, 56px); margin-top: var(--gap); padding: 70px var(--pad); overflow: hidden; background: var(--spot); border-block: 1px solid var(--line); }
.piece__word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 19vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(200, 170, 122, .22); pointer-events: none; }
.piece__info, .piece__buy, .piece__stage { position: relative; z-index: 2; min-width: 0; }
.piece__info h2 { font-size: clamp(40px, 4.8vw, 82px); line-height: .95; }
.piece__price { margin: 12px 0 26px; color: var(--soft); font-size: 17px; }
.piece__points button { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 13px 0; border-top: 1px solid var(--line); }
.piece__points i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--gold); border-radius: 50%; font-style: normal; font-size: 11px; color: var(--gold); transition: background .25s, color .25s; }
.piece__points button:hover i, .piece__points button:focus-visible i { background: var(--gold); color: var(--on-gold); }
.piece__points span { display: grid; font-size: 12.5px; color: var(--soft); }
.piece__points b { font: 400 21px/1.2 var(--serif); color: var(--ink); }
.piece__stage { perspective: 1400px; display: grid; justify-items: center; gap: 14px; }
.piece__turn { position: relative; width: min(100%, calc(76vh * .75), 560px); aspect-ratio: 3 / 4; transform-style: preserve-3d; will-change: transform; transition: transform .7s var(--ease); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.piece__turn.is-drag { transition: none; cursor: grabbing; }
.piece__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.piece__face img { aspect-ratio: 3 / 4; object-fit: contain; filter: var(--piece-shadow); pointer-events: none; -webkit-user-drag: none; }
.piece__face--back { transform: rotateY(180deg); }
.piece__dot { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 600; opacity: 0; transform: scale(.3); transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 0 0 8px rgba(200, 170, 122, .25); }
.piece__dot.is-on { opacity: 1; transform: none; }
.piece__sides { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.piece__sides button { min-height: 40px; padding: 0 24px; border: 1px solid var(--line); border-radius: 40px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.piece__sides button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.piece__sides span { font-size: 11px; color: var(--soft); margin-left: 8px; }
.piece__buy { display: grid; gap: 18px; justify-items: start; width: min(100%, 320px); justify-self: end; }
.piece__buy figure { position: relative; width: 100%; max-width: 260px; }
.piece__buy video { aspect-ratio: 4 / 5; object-fit: cover; }
.piece__buy .buy { margin: 0; width: 100%; gap: 14px; }
.piece .opt--size span { min-width: 50px; background: var(--tint); }
.piece .opt--size input:checked + span { background: var(--ink); }

@media (max-width: 1100px) {
  .piece { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .piece__buy { grid-column: 1 / -1; justify-self: center; justify-items: center; }
  .doors { grid-template-columns: minmax(0, 1fr); gap: 60px; }
}
@media (max-width: 900px) {
  .j-ch .j-frame--still { align-self: start; margin-top: 8px; }
  .j-ch { grid-template-columns: minmax(0, 1fr); padding: 0; justify-items: center; align-items: center; }
  .j-frame { grid-column: 1; grid-row: 1; height: auto; width: min(100%, calc((100vh - var(--bar)) * 9 / 16)); }
  .j-frame--still { height: auto; width: min(100%, calc((100vh - var(--bar)) * 3 / 4)); }
  .j-side { display: none; }
  .j-word { top: 12%; -webkit-text-stroke-color: rgba(200, 170, 122, .5); }
  .j-copy { align-self: end; width: 100%; gap: 10px; padding: 120px 16px 70px; background: linear-gradient(rgba(var(--fade), 0), rgba(var(--fade), .92) 45%); }
  .j-copy h2 { font-size: 36px; }
  .j-sub { display: none; }
  .j-wear { grid-template-columns: 1fr 1fr; width: 100%; }
  .j-wear a { grid-template-columns: 44px 1fr; gap: 8px; }
  .j-wear b { font-size: 14px; }
  .j-copy .btn { min-height: 42px; }
  .j-nav { grid-template-columns: 1fr; bottom: 6px; }
  .j-nav ol { justify-content: space-between; gap: 6px; }
  .j-nav button { font-size: 9px; letter-spacing: .12em; }
  .j-nav a { display: none; }
  .journey.is-static .j-copy { background: none; padding: 20px 16px; }
  .journey.is-static .j-frame { width: min(80%, 320px); }
}
@media (max-width: 767px) {
  .j-open__text { display: grid; justify-items: start; bottom: 12px; gap: 12px; }
  .j-open__text h1 { font-size: min(40px, 5.6vh); }
  .j-open__cta { justify-items: start; }
  .j-cue { display: none; }
  .j-open__media::after { display: none; }
  /* on phones the words sit under the film */
  .j-open__media video { height: calc(100% - 170px); }
  .hang { flex-basis: 64vw; scroll-snap-align: center; }
  .shop__track { scroll-snap-type: x proximity; cursor: auto; }
  .door__body, .door--men .door__body { grid-template-columns: minmax(0, 1fr); }
  .door--men .door__main { order: 0; }
  .door__main { max-width: none; }
  .door__picks, .door--men .door__picks { grid-template-columns: 1fr 1fr; max-width: none; justify-self: stretch; }
  .door__all { grid-column: 1 / -1; }
  .piece { grid-template-columns: minmax(0, 1fr); padding-block: 50px; }
  .piece__stage { order: -1; }
  .piece__word { top: 20%; }
}
@media (hover: none) { .hang__sizes { opacity: 1; transform: none; flex-wrap: wrap; justify-content: center; } }
