/* LEVE (made-up sneaker brand): white type on the black stage, cork as the accent */
:root { --accent: #d39a5e; --ink: #f4f1ec; --muted: rgba(244,241,236,.78); --line: rgba(244,241,236,.16);
  --gutter: clamp(20px, 5vw, 80px); --text: 'Archivo', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; }
* { box-sizing: border-box; margin: 0; }
html { color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.mark { font: 800 17px/1 var(--text); font-stretch: 125%; letter-spacing: .32em; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px; }
.top-links { display: flex; align-items: center; gap: 16px; }
.price { font: 500 13px/1 var(--mono); color: var(--muted); }
#progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.at-end .top { background: rgba(11,11,12,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: 15px 28px; border-radius: 999px; background: var(--ink); color: #0b0b0c; border: 0;
  font: 600 13px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent); }
.btn-small { padding: 10px 18px; font-size: 11px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* captions */
.ov { left: var(--gutter); bottom: clamp(32px, 9vh, 110px); max-width: 27rem; }
.ov.up { bottom: auto; top: calc(96px + env(safe-area-inset-top)); }
/* beside the product (exploded view: its labels are on the right) */
.ov.side { bottom: auto; top: 50%; translate: 0 -50%; max-width: 17rem; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.ov h1 { font: 800 clamp(44px, 5.6vw, 84px)/.92 var(--text); font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 14px; white-space: nowrap; }
.ov h2 { font: 750 clamp(32px, 4vw, 56px)/1 var(--text); font-stretch: 105%; letter-spacing: -.015em; margin-bottom: 12px; }
.ov p:not(.eyebrow) { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); max-width: 24rem; }
.ov.hero { max-width: none; }
.ov > * { transform: translate3d(0, calc((1 - var(--v, 1)) * 14px * var(--k, 1)), 0); }
.ov > :nth-child(2) { --k: 1.6; } .ov > :nth-child(3) { --k: 2.2; } .ov > :nth-child(4) { --k: 2.8; }

.facts { list-style: none; padding: 0; display: flex; gap: 28px; margin-top: 20px; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 500 clamp(26px, 2.6vw, 36px)/1 var(--mono); }
.facts span { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; max-width: 8rem; }

.hint { left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); translate: -50% 0; white-space: nowrap;
  font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hint b { font-weight: inherit; }
.hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 5px; } }
.k-touch { display: none; }
@media (pointer: coarse) { .k-touch { display: inline; } .k-mouse { display: none; } }

/* callout labels */
.co .lb b { display: block; font: 700 15px/1.2 var(--text); font-stretch: 105%; }
.co .lb span { display: block; font: 400 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }
.co .lb { opacity: calc(var(--v, 0) * 2 - 1); }

/* colour swatches */
.swatches { display: flex; gap: 12px; margin-top: 18px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25); transition: box-shadow .25s, transform .25s; }
.swatches button.on { box-shadow: 0 0 0 2px #0b0b0c, 0 0 0 4px var(--ink); }
.swatches button:hover { transform: scale(1.08); }

/* ability card: a game character sheet for the shoe */
.ov.card { padding: 22px 24px 20px; border-radius: 18px; background: rgba(11,11,12,.62); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: min(24rem, calc(100vw - 2 * var(--gutter))); }
.abilities { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 6px; }
.abilities li { display: grid; grid-template-columns: 7.5rem 1fr 1.4rem; align-items: center; gap: 12px; }
.abilities span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.abilities i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.abilities i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #f4d3a8);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.in .abilities i::after { transform: scaleX(var(--x)); }
.abilities li:nth-child(2) i::after { transition-delay: .08s; } .abilities li:nth-child(3) i::after { transition-delay: .16s; }
.abilities li:nth-child(4) i::after { transition-delay: .24s; } .abilities li:nth-child(5) i::after { transition-delay: .32s; }
.abilities b { font: 500 15px/1 var(--mono); text-align: right; }

/* the shop part */
.after { background: #0b0b0c; box-shadow: 0 -30px 80px rgba(0,0,0,.6); padding: clamp(90px, 14vh, 150px) var(--gutter) calc(48px + env(safe-area-inset-bottom)); }
.after .wrap { max-width: 1080px; margin: 0 auto; }
.after h2 { font: 800 clamp(34px, 5vw, 64px)/1 var(--text); font-stretch: 108%; letter-spacing: -.02em; margin-bottom: 14px; }
.after .lead { color: var(--muted); font-size: 17px; max-width: 34rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.sizes button { min-width: 52px; padding: 13px 0; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 14px/1 var(--mono); cursor: pointer; }
.sizes button:hover { border-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 70px; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 38px; }
.info h3 { font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.info p { color: var(--muted); }
.after .made { margin-top: 64px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.after .made p { color: var(--muted); max-width: 40rem; font-size: 15px; }
.after .made b { color: var(--ink); font-weight: 600; }

dialog.demo { max-width: min(30rem, calc(100vw - 32px)); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #151516; color: var(--ink); }
dialog.demo::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.demo h3 { font: 750 26px/1.15 var(--text); margin-bottom: 12px; }
dialog.demo p:not(.eyebrow) { color: var(--muted); }
dialog.demo .cta { margin: 24px 0 0; }

@media (max-width: 640px) {
  .ov { right: var(--gutter); bottom: calc(30px + env(safe-area-inset-bottom)); }
  .ov.up { top: auto; bottom: calc(30px + env(safe-area-inset-bottom)); }
  .ov.side { top: auto; bottom: calc(30px + env(safe-area-inset-bottom)); translate: none; max-width: none; }
  .ov.hero { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .ov h1 { font-size: min(46px, 11vw); }
  .ov h2 { font-size: 30px; }
  .ov p:not(.eyebrow) { font-size: 15px; }
  .facts { gap: 22px; margin-top: 16px; }
  .ov.card { padding: 18px 18px 16px; }
  .abilities li { grid-template-columns: 6.6rem 1fr 1.2rem; }
  .co .lb b { font-size: 13px; } .co .lb span { font-size: 10px; }
}

/* phone legend for the numbered parts */
.legend { list-style: none; padding: 0; counter-reset: n; margin-top: 4px; }
.legend li { counter-increment: n; display: flex; gap: 10px; align-items: baseline; font: 400 12px/1.5 var(--mono); color: var(--muted); padding: 3px 0; }
.legend li::before { content: counter(n); flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #0b0b0c;
  font: 600 10px/18px var(--mono); text-align: center; }
.legend b { font: 700 14px/1.2 var(--text); color: var(--ink); white-space: nowrap; }
