:root {
  --wall: #dfe2db;
  --wall-lit: #e6e9e2;
  --wall-dim: #d5d8d0;
  --type: #cccfc6;
  --ink: #151614;
  --ink-2: #3a3c38;
  --mute: #7c7f78;
  --line: #c3c6be;
  --paper: #f4f3ee;
  --paper-2: #eceae2;
  --panel: #f3f2ed;
  --panel-line: #d9d7ce;
  --accent: #c8403f;
  --rind: #2f4a34;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --header-h: 64px;
  --tw: 168px;      /* tag width, set from JS */
  --eye-y: 14px;    /* eyelet centre from tag top, set from JS */
  --panel-w: min(580px, 44vw);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mute { color: var(--mute); }
.small { font-size: 11px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ───────────────────────── header ───────────────────────── */

.site-header {
  position: relative;
  z-index: 5;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--wall);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1;
  justify-self: start;
}
.brand-mark { width: 22px; height: 22px; color: var(--rind); }

.nav { display: flex; gap: 38px; }
.nav a {
  position: relative;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

.header-right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.micro {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.bag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0;
}
.bag.pop .bag-count { animation: pop .55s cubic-bezier(.3,1.8,.4,1); }
@keyframes pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.45); background: var(--accent); }
  100% { transform: scale(1); }
}

/* ───────────────────────── stage ───────────────────────── */

.stage {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 22% 0%, var(--wall-lit) 0%, rgba(230,233,226,0) 55%),
    radial-gradient(90% 70% at 100% 100%, var(--wall-dim) 0%, rgba(213,216,208,0) 70%),
    var(--wall);
}
.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.drop-wrap { position: absolute; inset: 0; pointer-events: none; }
.drop-type {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  font-family: var(--display);
  font-size: 400px;
  line-height: 1;
  white-space: nowrap;
  color: var(--type);
  letter-spacing: -0.005em;
  transform-origin: 50% 0;
  opacity: 0;
  will-change: transform;
}
.drop-type.ready { animation: type-in 1.1s var(--ease) both; }
@keyframes type-in {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage.can-grab { cursor: grab; }
.stage.grabbing, .stage.grabbing * { cursor: grabbing !important; }

/* ───────────────────────── price tag ───────────────────────── */

.tags { position: absolute; inset: 0; pointer-events: none; }

.tag {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tw);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(calc(var(--tw) * .045) calc(var(--tw) * .06) calc(var(--tw) * .04) rgba(28, 34, 24, .22));
}
.tag.live { pointer-events: auto; }

.tag-rot { transform-origin: 50% var(--eye-y); will-change: transform; }

.tag-body {
  position: relative;
  padding: calc(var(--tw) * .17) calc(var(--tw) * .085) calc(var(--tw) * .08);
  background:
    linear-gradient(170deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%),
    linear-gradient(0deg, var(--paper-2), var(--paper) 30%);
  clip-path: polygon(16% 0, 84% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
  color: var(--ink);
}

.eyelet {
  position: absolute;
  left: 50%;
  top: var(--eye-y);
  width: calc(var(--tw) * .085);
  height: calc(var(--tw) * .085);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #57534a 0 28%, #c49a4c 33%, #ecd08a 52%, #a07a35 70%, #6e5322 100%);
  box-shadow: 0 .5px 1px rgba(0,0,0,.35);
}

.tag-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: calc(var(--tw) * .045);
  border-bottom: 1px dashed #b9b8b0;
  font-size: calc(var(--tw) * .052);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.tag-name {
  margin: calc(var(--tw) * .07) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(var(--tw) * .168);
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.tag-price {
  margin-top: calc(var(--tw) * .045);
  font-size: calc(var(--tw) * .1);
  font-weight: 500;
  letter-spacing: -.01em;
}

.tag-sizes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: calc(var(--tw) * .05) calc(var(--tw) * -.012) calc(var(--tw) * .055);
}
.tag-sizes button {
  flex: 0 0 auto;
  padding: calc(var(--tw) * .012) calc(var(--tw) * .014);
  font-size: calc(var(--tw) * .054);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
}
.tag-sizes button:hover { border-color: #b9b8b0; }
.tag-sizes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tag-sizes button.out { color: #aeada6; text-decoration: line-through; }

.tag-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: calc(var(--tw) * .05);
  border-top: 1px solid #d4d2c9;
  font-size: calc(var(--tw) * .056);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag-cta .arr { transition: translate .25s var(--ease); }
.tag-cta:hover .arr { translate: 4px 0; }

/* ───────────────────────── stage foot ───────────────────────── */

.stage-foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.panel-open .stage-foot { opacity: 0; }
.foot-l { display: flex; flex-direction: column; gap: 2px; }
.foot-l strong { font-weight: 500; color: var(--ink); }
.foot-l span { color: var(--mute); }
.foot-c { display: flex; gap: 22px; color: var(--mute); }
.foot-c span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.foot-r { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.foot-r .count { color: var(--mute); font-variant-numeric: tabular-nums; }
.foot-r .cw-name { font-weight: 500; color: var(--ink); }

.noscript { position: absolute; inset: auto 0 45% 0; text-align: center; }

/* ───────────────────────── turn slider: front ↔ back ───────────────────────── */

.turn-scrub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: rgba(244, 243, 238, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .35s var(--ease), left .45s var(--ease), bottom .45s var(--ease);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.turn-scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ts-end {
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color .2s;
}
.ts-end.on { color: var(--ink); }
.ts-track {
  position: relative;
  width: 168px;
  height: 32px;
  cursor: grab;
}
.ts-track::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  height: 2px;
  translate: 0 -50%;
  background: var(--line);
}
.ts-track::after { /* the side-on mark in the middle */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 10px;
  translate: -50% -50%;
  background: var(--line);
}
.ts-fill {
  position: absolute;
  left: 14px; top: 50%;
  height: 2px;
  width: calc((100% - 28px) * var(--t, 1));
  translate: 0 -50%;
  background: var(--ink);
}
.ts-thumb {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(14px + (100% - 28px) * var(--t, 1));
  width: 28px; height: 28px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.ts-thumb svg { width: 15px; height: 15px; rotate: calc(var(--t, 1) * 180deg); }
.turn-scrub.dragging .ts-track { cursor: grabbing; }
.turn-scrub:not(.dragging) .ts-fill { transition: width .3s var(--ease); }
.turn-scrub:not(.dragging) .ts-thumb { transition: left .3s var(--ease); }
.turn-scrub.m-scrub { display: none; }

/* ───────────────────────── phone bar ───────────────────────── */

.m-bar { display: none; }

@media (max-width: 759px) {
  .stage-foot { display: none; }
  .m-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 16px calc(14px + env(safe-area-inset-bottom));
    transition: opacity .4s var(--ease), translate .5s var(--ease);
  }
  .panel-open .m-bar { opacity: 0; translate: 0 20px; pointer-events: none; }
  .m-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0; }
  .m-dot {
    position: relative;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    touch-action: manipulation;
  }
  .m-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: var(--c, #999);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
    transition: width .35s var(--ease);
  }
  .m-dot.on::before { width: 22px; }
  .m-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
  .m-arrow {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(244, 243, 238, .6);
    font-size: 18px;
    touch-action: manipulation;
  }
  .m-arrow:active { background: var(--ink); color: var(--paper); }
  .m-info { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 0; }
  .m-count { font-size: 10px; letter-spacing: .16em; color: var(--mute); font-variant-numeric: tabular-nums; }
  .m-name {
    margin-top: 3px;
    font-family: var(--display);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-sub { margin-top: 3px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
  .m-actions { display: grid; }
  .turn-scrub.m-scrub {
    position: static;
    display: flex;
    translate: none;
    width: 100%;
    height: 52px;
    border-radius: 2px;
  }
  .m-scrub .ts-track { flex: 1; width: auto; height: 44px; }
  .m-scrub .ts-thumb { width: 36px; height: 36px; }
  .m-scrub .ts-end { height: 44px; }
  .m-cta {
    height: 52px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    touch-action: manipulation;
  }
  .m-cta:active { transform: scale(.985); }
  .m-hint { margin: 0; text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
  .tag-cta, .tag-sizes button { touch-action: manipulation; }
}

/* ───────────────────────── product panel ───────────────────────── */

.panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--panel-w);
  background: var(--panel);
  border-left: 1px solid var(--panel-line);
  box-shadow: -30px 0 60px -40px rgba(20, 24, 18, .35);
  transform: translateX(102%);
  transition: transform .75s var(--ease);
  overflow: hidden;
  user-select: text;
}
.panel.open { transform: none; }

.scrim { display: none; }

.panel-view, .finder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), opacity .45s var(--ease);
}
.finder { transform: translateX(100%); background: var(--panel); }
.panel.finding .finder { transform: none; }
.panel.finding .panel-view { transform: translateX(-18%); opacity: 0; }

.panel-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 28px 0 40px;
  border-bottom: 1px solid var(--panel-line);
}
.grabber { display: none; }
@media (max-width: 860px) { .grabber { display: block; } }
.crumb {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.crumb b { color: var(--ink); font-weight: 500; }

.panel-close, .finder-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 17px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.panel-close:hover, .finder-back:hover { background: var(--ink); color: var(--panel); }
.panel-close kbd {
  font: inherit;
  font-size: 9px;
  letter-spacing: .08em;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: .55;
}

.panel-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.panel-inner { padding: 48px 40px 56px; }

/* staggered entrance */
.panel .panel-inner > * {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .5s var(--ease), translate .6s var(--ease);
}
.panel.open .panel-inner > * { opacity: 1; translate: 0 0; }
.panel.open .panel-inner > *:nth-child(1) { transition-delay: .22s; }
.panel.open .panel-inner > *:nth-child(2) { transition-delay: .27s; }
.panel.open .panel-inner > *:nth-child(3) { transition-delay: .32s; }
.panel.open .panel-inner > *:nth-child(4) { transition-delay: .36s; }
.panel.open .panel-inner > *:nth-child(5) { transition-delay: .40s; }
.panel.open .panel-inner > *:nth-child(6) { transition-delay: .43s; }
.panel.open .panel-inner > *:nth-child(n+7) { transition-delay: .46s; }

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.p-name {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 5.4vw, 86px);
  line-height: .92;
  letter-spacing: .004em;
  text-transform: uppercase;
}
.swap-in { animation: swap-in .5s var(--ease); }
@keyframes swap-in {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

.p-price {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.p-desc {
  margin: 22px 0 0;
  max-width: 40ch;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}
.p-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.p-label b { font-weight: 500; color: var(--mute); margin-left: 6px; }

.p-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.sw {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -6px 10px rgba(0,0,0,.12);
  transition: transform .25s var(--ease);
}
.sw::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .2s, transform .3s var(--ease);
}
.sw:hover { transform: translateY(-2px); }
.sw[aria-checked="true"]::after { opacity: 1; transform: none; }

.p-find {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
}
.p-find svg { width: 15px; height: 15px; }

.p-sizes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.sz {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 66px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  transition: border-color .15s, background .15s, transform .2s var(--ease);
}
.sz b { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.sz small { font-size: 10.5px; color: var(--mute); letter-spacing: .02em; }
.sz.low small { color: var(--accent); }
.sz:hover:not(:disabled) { border-color: var(--ink-2); }
.sz[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.sz:disabled { cursor: not-allowed; border-style: dashed; background: transparent; }
.sz:disabled b { color: #a9a8a1; text-decoration: line-through; }
.sz .fit-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  translate: -50% 0;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--rind);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.p-fitnote {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--mute);
}
.p-fitnote b { color: var(--ink); font-weight: 500; }

.p-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  margin-top: 26px;
  background: #d9dbd4;
  color: #7d807a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .25s, color .25s, transform .2s var(--ease);
}
.p-cta:disabled { cursor: default; }
.p-cta.live, .p-cta:not(:disabled) { background: var(--ink); color: var(--panel); }
.p-cta:not(:disabled):hover { background: #000; }
.p-cta:not(:disabled):active { transform: scale(.99); }
.p-cta.done { background: var(--rind); }

.p-perks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.acc { border-top: 1px solid var(--panel-line); }
.acc:first-of-type { margin-top: 38px; }
.acc:last-of-type { border-bottom: 1px solid var(--panel-line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  transition: transform .3s var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 22px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); }
.acc-body p { margin: 0 0 10px; max-width: 46ch; }

.size-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; margin-bottom: 10px; }
.size-table th, .size-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--panel-line); }
.size-table th { font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.size-table tr.hl td { background: rgba(47, 74, 52, .08); font-weight: 700; }

/* ───────────────────────── size finder ───────────────────────── */

.units { display: inline-flex; border: 1px solid var(--ink); border-radius: 17px; overflow: hidden; }
.units button {
  height: 32px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  transition: background .2s, color .2s;
}
.units button[aria-pressed="true"] { background: var(--ink); color: var(--panel); }

.f-title { font-size: clamp(44px, 4.6vw, 72px); }

.f-field { margin-top: 30px; }
.f-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.f-head label, .f-lab {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.f-head output { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: .01em; }
.f-head .mute { font-weight: 400; letter-spacing: .08em; text-transform: none; }

.f-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
.f-field input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ink) var(--fill), var(--panel-line) var(--fill));
}
.f-field input[type="range"]::-moz-range-track { height: 2px; background: var(--panel-line); }
.f-field input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
.f-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s var(--ease);
}
.f-field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--ink);
}
.f-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.seg button small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--mute); }
.seg button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }

.f-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.f-field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background: rgba(255,255,255,.6);
  font: 500 15px var(--mono);
  color: var(--ink);
}
.f-field input[type="number"]:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  height: 44px;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 500;
}
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--panel); }

.f-result {
  margin-top: 36px;
  padding: 22px 22px 22px;
  background: #fff;
  border: 1px solid var(--panel-line);
  border-radius: 3px;
}
.f-res-top { display: flex; align-items: center; justify-content: space-between; }
.f-conf { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.f-conf i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--panel-line); }
.f-conf i.on { background: var(--rind); }
.f-res-main { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.f-size {
  flex: 0 0 auto;
  min-width: 1.1em;
  font-family: var(--display);
  font-size: 104px;
  line-height: .9;
  text-align: center;
}
.f-size.bump { animation: bump .45s var(--ease); }
@keyframes bump { from { transform: translateY(8px) scale(.94); opacity: .3; } to { transform: none; opacity: 1; } }
.f-why { margin: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.f-why b { color: var(--ink); font-weight: 500; }

.f-scale { position: relative; margin: 22px 0 6px; padding-top: 18px; }
.f-scale .bands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.f-scale .band {
  height: 8px;
  border-radius: 2px;
  background: var(--paper-2);
  transition: background .3s;
}
.f-scale .band.on { background: var(--rind); }
.f-scale .band.alt { background: #a9b9a7; }
.f-scale .labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 6px; font-size: 10px; letter-spacing: .1em; color: var(--mute); text-align: center; }
.f-scale .marker {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--ink);
  transition: left .45s var(--ease);
}
.f-scale .marker::after { content: ""; width: 1.5px; height: 14px; margin-top: 1px; background: var(--ink); }

/* ───────────────────────── below the fold ───────────────────────── */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 38s linear infinite;
}
.ticker-track span {
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span::before { content: "✺"; margin-right: 28px; color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.details article { padding: 40px 24px 48px; }
.details article + article { border-left: 1px solid var(--line); }
.details h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}
.details p { margin: 0; max-width: 34ch; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px 28px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 1100px) {
  .foot-c { display: none; }
  .stage-foot { grid-template-columns: 1fr auto; }
}

@media (max-width: 860px) {
  .nav, .micro { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .stage-foot { left: 16px; right: 16px; bottom: 16px; }
  .details { grid-template-columns: 1fr; }
  .details article + article { border-left: 0; border-top: 1px solid var(--line); }
  .details article { padding: 28px 16px 32px; }
  .site-footer { padding: 16px; }

  /* the panel becomes a bottom sheet; the garment stays visible above it */
  .panel {
    top: auto;
    left: 0;
    width: 100%;
    height: 64vh;
    height: 64svh;
    border-left: 0;
    border-top: 1px solid var(--panel-line);
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
    box-shadow: 0 -20px 50px -30px rgba(20, 24, 18, .4);
  }
  .panel.open { transform: none; }
  .panel.dragging { transition: none; }
  .panel-top { position: relative; padding: 0 16px 0 20px; height: 60px; touch-action: none; }
  .grabber {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: #c9c7bd;
  }
  .panel-close, .finder-back { height: 40px; padding: 0 16px; }
  .sw { width: 30px; height: 30px; }
  .sw::before { content: ""; position: absolute; inset: -6px; }
  .p-swatches { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
  .panel-inner { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .panel-inner { padding: 28px 20px 40px; }
  .p-name { font-size: 48px; }
  .p-desc { font-size: 15.5px; }
  .p-sizes { grid-template-columns: repeat(3, 1fr); }
  .seg { grid-template-columns: 1fr; }
  .f-two { grid-template-columns: 1fr; }
  .f-size { font-size: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .drop-type.ready { animation: none; opacity: 1; }
  .panel, .panel-view, .finder, .panel .panel-inner > * { transition-duration: .01s !important; transition-delay: 0s !important; }
}
