:root {
  --page: #09090b;
  --ink: #f3f2ef;
  --mute: #8b8e97;
  --hair: #2a2c33;
  --panel: #111216;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--page); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { background: radial-gradient(120% 70% at 50% -10%, #1c1f28 0%, #0d0e12 45%, var(--page) 75%); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
body.hovering #stage { cursor: pointer; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 2.8vw, 40px); pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.mark { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 64px); line-height: .8; letter-spacing: -.01em; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); top: clamp(24px, 2.8vw, 40px);
  display: flex; gap: clamp(20px, 3vw, 46px); font-family: var(--serif); font-size: clamp(17px, 1.35vw, 21px); color: var(--mute); }
.nav a, .nav button { transition: color .3s; }
.nav a:hover, .nav button:hover, .nav .on { color: var(--ink); }
.bag.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); color: var(--ink); } }

/* runway UI */
.runway-ui { position: fixed; inset: auto 0 0 0; height: 0; z-index: 4; transition: opacity .5s var(--ease); }
body.focused .runway-ui { opacity: 0; pointer-events: none; }
.caption { position: fixed; left: clamp(18px, 2.8vw, 40px); bottom: clamp(20px, 3.2vh, 34px);
  display: flex; align-items: center; gap: .55em; font-family: var(--serif); font-size: clamp(16px, 1.3vw, 20px); letter-spacing: .02em; }
.caption .dash { color: var(--mute); }
.odo { display: inline-flex; height: 1.15em; overflow: hidden; }
.odo-col { display: inline-flex; flex-direction: column; transition: transform .7s var(--ease); line-height: 1.15em; }
.odo-col span { height: 1.15em; }
.odo-col:nth-child(2) { transition-delay: .04s; }
.lookname { position: fixed; left: clamp(18px, 2.8vw, 40px); bottom: calc(clamp(20px, 3.2vh, 34px) + 1.9em);
  font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.3vw, 20px); color: var(--mute); transition: opacity .35s; }
.ticks { position: fixed; left: 50%; transform: translateX(-50%); bottom: clamp(26px, 3.6vh, 40px); display: flex; gap: 14px; }
.tick { width: clamp(36px, 3.4vw, 52px); height: 16px; position: relative; }
.tick::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #34363e; transition: background .4s, transform .4s var(--ease); transform-origin: center; }
.tick:hover::after { background: #6c6f78; }
.tick.on::after { background: var(--ink); transform: scaleY(1.5); }
.hint { position: fixed; right: clamp(18px, 2.8vw, 40px); top: clamp(30px, 3.4vw, 46px); font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 8px; transition: opacity .6s; }
.hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.hint.gone { opacity: 0; }

/* focus */
.focus { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
body.focused .focus { opacity: 1; }
body.focused .focus > * { pointer-events: auto; }
.back { position: fixed; left: clamp(18px, 2.8vw, 40px); top: clamp(96px, 12vh, 130px); font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute); }
.back:hover { color: var(--ink); }
.focus-left { position: fixed; left: clamp(18px, 2.8vw, 40px); bottom: clamp(24px, 6vh, 64px); width: min(300px, 26vw); }
.f-index { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); margin-bottom: 14px; }
.f-name { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.f-desc { font-size: 12px; line-height: 1.55; letter-spacing: .04em; text-transform: uppercase; color: #b9bbc2; margin-bottom: 14px; }
.f-meta { list-style: none; font-family: var(--mono); font-size: 11px; color: var(--mute); display: grid; gap: 4px; margin-bottom: 16px; }
.more { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.focus-right { position: fixed; right: clamp(18px, 2.8vw, 40px); bottom: clamp(24px, 6vh, 64px); width: 228px; display: grid; justify-items: end; gap: 14px; }
.wish { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.wish.on { color: var(--mute); border-color: var(--mute); }
.sizes { display: flex; gap: 4px; }
.size { width: 36px; height: 30px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--hair); transition: background .15s, color .15s, border-color .15s; }
.size:hover { border-color: var(--ink); }
.size.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.size.out { color: #4a4c54; text-decoration: line-through; pointer-events: none; }
.price { font-family: var(--serif); font-size: clamp(40px, 3.6vw, 56px); line-height: 1; letter-spacing: -.01em; }
.add { height: 44px; padding: 0 26px; border-radius: 99px; background: var(--ink); color: var(--page); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; position: relative; overflow: hidden; transition: transform .2s var(--ease); }
.add:hover { transform: translateY(-1px); }
.add:active { transform: scale(.97); }
.add.need { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.add.done { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ship { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.f-steps { position: fixed; right: clamp(18px, 2.8vw, 40px); top: clamp(96px, 12vh, 130px); display: flex; gap: 6px; }
.step { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); font-size: 14px; transition: border-color .2s; }
.step:hover { border-color: var(--ink); }

/* bag drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--panel); z-index: 10; border-left: 1px solid var(--hair);
  transform: translateX(102%); transition: transform .6s var(--ease); display: flex; flex-direction: column; padding: 28px; }
.drawer.open { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, .5); }
.d-head { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 28px; margin-bottom: 22px; }
.d-head button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.d-items { list-style: none; flex: 1; overflow: auto; display: grid; align-content: start; gap: 14px; }
.d-items li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.d-items img { width: 54px; height: 72px; object-fit: contain; background: #1b1c22; }
.d-items b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.d-items small { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.d-items .p { font-family: var(--serif); font-size: 20px; }
.d-empty { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 20px; }
.d-foot { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 26px; padding: 18px 0; }
.d-check { height: 48px; border-radius: 99px; background: var(--ink); color: var(--page); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* loader */
.loader { position: fixed; inset: 0; background: var(--page); z-index: 20; display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.loader span { font-family: var(--serif); font-size: 56px; }
.loader i { position: absolute; left: 50%; top: calc(50% + 46px); width: 120px; height: 1px; background: var(--hair); transform: translateX(-50%); overflow: hidden; }
.loader i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s; }
.loader.done { opacity: 0; visibility: hidden; }

@media (max-width: 760px) {
  .nav { display: none; }
  .top { padding: 18px; }
  .hint { display: none; }
  .ticks { gap: 8px; bottom: 76px; left: 18px; right: auto; transform: none; }
  .tick { width: 22px; }
  .focus-left { width: auto; right: 18px; bottom: auto; top: 70px; left: 18px; }
  .f-desc, .f-meta, .more { display: none; }
  .focus-right { width: auto; left: 18px; right: 18px; bottom: 18px; grid-template-columns: 1fr auto; justify-items: start; align-items: end; }
  .focus-right .wish, .focus-right .ship { display: none; }
  .sizes { grid-column: 1 / -1; }
  .price { font-size: 38px; }
  .back { top: auto; bottom: auto; top: 22px; left: auto; right: 18px; }
  .f-steps { display: none; }
}
