/* 2SEXY concept site
   Palette comes from the brand's own colourways: Black Phantom, Graffiti red and pink,
   the summer set's sky blue, the white ribbed tank, and the zinc construction fences
   their night shoots are lit against. */

:root {
  --zinc: #c5cacd;
  --phantom: #161616;
  --chalk: #f5f5f2;
  --sky: #87b3df;
  --red: #e2281e;
  --pink: #f2b4cc;
  --wash: #bfd2e6; /* the summer blue, washed out toward the zinc */
  --tape: #c79b5d;
  --ink: #161616;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 60px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --focus: var(--red);

  /* Corrugated zinc: one 30px ridge, repeated */
  --ridges: repeating-linear-gradient(90deg,
      #a3aaaf 0px, #bfc5c8 6px, #e0e3e4 11px, #d0d4d6 15px,
      #b3b9bd 22px, #9da4a9 27px, #a3aaaf 30px);
  --grime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --stains: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .02' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .22 0 0 0 -1.4 .9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--phantom);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 420;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

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

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--chalk); color: var(--ink); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .18s, color .18s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: #2e2e2e; }
.btn-light { background: var(--chalk); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(22, 22, 22, .08); }
.btn-block { display: flex; width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: var(--phantom); color: var(--chalk);
  --focus: var(--chalk);
}
.nav-logo { display: block; width: 56px; height: 44px; flex: none; }
.nav-logo svg { width: 100%; height: 100%; fill: var(--chalk); }

.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.nav-links a:hover { background: rgba(245, 245, 242, .12); }
.nav-links a.is-active { color: var(--ink); background: var(--chalk); }
.nav-links a.is-active[data-section="tees"] { background: var(--sky); }
.nav-links a.is-active[data-section="shorts"] { background: var(--wash); }
.nav-links a.is-active[data-section="drops"] { background: var(--zinc); }

.nav-order { min-height: 40px; padding: 0 16px; font-size: 15px; margin-left: auto; }
.nav-links + .nav-order { margin-left: 0; }

.nav-menu {
  display: none;
  min-height: 40px; padding: 0 16px;
  background: none; border: 2px solid currentColor; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}

.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  display: grid; padding: 8px var(--gutter) 24px;
  background: var(--phantom); color: var(--chalk);
  border-top: 1px solid #2c2c2c;
  --focus: var(--chalk);
}
.menu[hidden] { display: none; }
.menu a {
  padding: 12px 0; border-bottom: 1px solid #262626;
  font-size: 30px; font-weight: 800; font-stretch: 62%; text-transform: uppercase; text-decoration: none;
  line-height: 1;
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; align-items: center; }
  .nav-links + .nav-order { margin-left: auto; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .nav { gap: 10px; }
}

/* ---------- The wall (hero, drops, footer) ---------- */

.wall {
  background-color: var(--zinc);
  background-image: var(--grime), var(--stains), var(--ridges);
}

.wall-seam {
  position: absolute; left: 0; right: 0; top: 64%; height: 16px; z-index: 0;
  background:
    radial-gradient(circle at 50% 55%, #e9ebec 0 1.5px, #6d757a 2.5px 3.5px, transparent 4.5px) 22px 0 / 96px 16px repeat-x,
    linear-gradient(#7f878c, #dadddf 3px, rgba(0, 0, 0, .14) 4px, transparent 12px);
  pointer-events: none;
}

.poster {
  position: relative; margin: 0;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 18px -12px rgba(0, 0, 0, .55);
}
.poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9) contrast(1.04); }
/* Wheatpaste: the print follows the ridges and wrinkles where the glue dried */
.poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .22), transparent 26%, transparent 64%, rgba(0, 0, 0, .14)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0px, rgba(255, 255, 255, .08) 11px, rgba(0, 0, 0, .02) 18px, rgba(0, 0, 0, .12) 30px);
  mix-blend-mode: multiply;
}
/* A strip of packing tape holding the top edge */
.poster::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: -10px;
  width: 64px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%), rgba(199, 155, 93, .82);
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* Short screens (landscape phones) still get room for the tag above the flyer */
  min-height: max(100vh, 600px); min-height: max(100svh, 600px);
  padding-top: var(--nav-h);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.hero.spray-on { touch-action: none; }

/* Flash falloff: bright where the flash hits, dark at the edges */
.hero::after, .foot::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 38%, transparent 40%, rgba(10, 10, 12, .4) 80%, rgba(10, 10, 12, .72) 100%);
}

/* A patch where an older tag was painted over */
.wall-buff {
  position: absolute; z-index: 0; right: 3%; top: 57%; width: 19%; height: 31%;
  background: #aab0b4; mix-blend-mode: multiply; opacity: .35; transform: rotate(-.5deg);
}

/* Each hero poster sits in a slot; the slot drifts up and turns as the hero scrolls away (--hs: 0 → 1) */
.hero-slot {
  position: absolute; z-index: 1; width: clamp(110px, 14vw, 230px); pointer-events: none;
  transform: translate3d(0, calc(var(--hs, 0) * var(--speed, 0) * -1px), 0) rotate(calc(var(--hs, 0) * var(--spin, 0deg)));
}
.hero-slot--a { left: 5%; top: calc(var(--nav-h) + 6%); }
.hero-slot--b { right: 6%; top: calc(var(--nav-h) + 4%); }
.hero-slot--c { right: 17%; top: 47%; width: clamp(100px, 11vw, 180px); }
.hero-slot--slap { left: calc(5% + clamp(110px, 14vw, 230px) - 34px); top: 46%; width: 96px; }

.slap {
  --r: 9deg;
  position: relative; padding: 10px 12px; border-radius: 10px;
  background: var(--chalk); transform: rotate(var(--r));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.slap svg { display: block; width: 100%; aspect-ratio: 873 / 681; fill: var(--ink); }
.slap::after { /* the corner someone tried to peel off */
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px;
  border-radius: 0 0 10px 0;
  background: linear-gradient(135deg, transparent 50%, #d9dcd9 50%, #b9bdbb);
}

.tag-layer, .paint-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.paint-layer { transition: opacity .45s ease; }
.paint-layer.is-fading { opacity: 0; }

.flyer {
  position: relative; z-index: 4;
  background: var(--chalk); color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 16px 26px -18px rgba(0, 0, 0, .7);
  cursor: auto;
}

/* Bottom UI sits above the packing tape, which overlaps the last ~50px of the hero */
.hero { --ui-bottom: clamp(60px, 7.5vh, 84px); }
.hero-flyer {
  position: absolute; left: var(--gutter); bottom: var(--ui-bottom);
  width: min(470px, calc(100% - 2 * var(--gutter)));
  padding: 22px 24px 24px;
  --r: -1.2deg;
  transform: rotate(var(--r));
}
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; font-weight: 500; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.spray-kit {
  position: absolute; z-index: 4; right: var(--gutter); bottom: var(--ui-bottom);
  width: min(380px, calc(100% - 2 * var(--gutter)));
  padding: 16px 18px 18px;
  background: var(--phantom); color: var(--chalk);
  border-radius: 14px;
  --r: 1.4deg;
  transform: rotate(var(--r));
  cursor: auto;
  --focus: var(--chalk);
}
.kit-title { font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: 26px; line-height: 1; }
.kit-hint { margin-top: 6px; font-size: 14px; color: #b9b9b6; }
.kit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 14px; }
.kit-toggle {
  display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--chalk); background: none; font-weight: 700; font-size: 15px;
}
.kit-toggle[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }
.cans { display: flex; gap: 8px; }
.can {
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid #3a3a3a;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55) 0 3px, transparent 7px), var(--c);
  transition: transform .18s var(--ease-out);
}
.can:hover { transform: translateY(-2px); }
.can[aria-checked="true"] { box-shadow: 0 0 0 3px var(--phantom), 0 0 0 5px var(--chalk); }
.kit-clean {
  margin-left: auto; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

@media (pointer: coarse) {
  .kit-toggle { display: inline-flex; align-items: center; }
}

/* Narrower screens: the spray kit runs full width along the bottom and the flyer sits on top of it.
   --kit-h is measured by the script. */
@media (max-width: 1000px) {
  .hero { --ui-bottom: 46px; }
  .spray-kit { left: var(--gutter); right: var(--gutter); width: auto; --r: .6deg; }
  .hero-flyer { bottom: calc(var(--ui-bottom) + var(--kit-h, 96px) + 14px); }
}

@media (max-width: 760px) {
  .hero-slot--a { left: -14px; top: calc(var(--nav-h) + 14px); width: 104px; }
  .hero-slot--b { right: -10px; top: calc(var(--nav-h) + 26px); width: 112px; }
  .hero-slot--c, .hero-slot--slap, .wall-buff { display: none; }
  .hero-flyer { padding: 18px 18px 20px; }
  .hero-ctas .btn-outline { display: none; } /* the nav already has Order */
  .spray-kit { padding: 10px 12px 12px; }
  .kit-title { display: none; }
  .kit-hint { margin-top: 0; font-size: 13px; }
  .kit-row { margin-top: 8px; gap: 8px; flex-wrap: nowrap; }
  .kit-toggle { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .cans { gap: 6px; }
  .can { width: 28px; height: 28px; }
  .kit-clean .long { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero-flyer .hero-lede { font-size: 16px; }
  .kit-hint { display: none; }
}

/* ---------- Packing tape ---------- */

.tape-clip { position: relative; z-index: 6; margin: -30px 0; overflow-x: clip; }
.tape {
  position: relative;
  width: 112vw; margin-left: -6vw; height: 60px;
  display: flex; align-items: center; overflow: hidden;
  transform: rotate(-2deg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .1)),
    repeating-linear-gradient(90deg, rgba(60, 35, 10, .05) 0 1px, transparent 1px 6px),
    var(--tape);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 18px -12px rgba(0, 0, 0, .6);
}
.tape-track {
  display: flex; align-items: center; gap: 26px; flex: none;
  padding-left: 26px;
  animation: tape-roll 40s linear infinite;
  will-change: transform;
}
.tape-item {
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; white-space: nowrap;
  font-size: 22px; letter-spacing: .02em; color: #2b1d0c;
}
.tape-tag { width: 40px; height: 32px; fill: #2b1d0c; flex: none; }
@keyframes tape-roll { to { transform: translateX(-50%); } }
.tape:hover .tape-track { animation-play-state: paused; }

/* ---------- Category sections ---------- */

.cat {
  position: relative;
  padding: clamp(84px, 10vw, 150px) var(--gutter) clamp(64px, 8vw, 120px);
  background-color: var(--bg); color: var(--fg);
}
.cat--hoodies { --bg: var(--phantom); --fg: var(--chalk); --muted: #a9a9a5; --focus: var(--chalk); --frame: #262626; }
.cat--tees { --bg: var(--sky); --fg: var(--ink); --muted: #22364b; --frame: #a5c6e7; }
.cat--tanks {
  --bg: var(--chalk); --fg: var(--ink); --muted: #55554f; --frame: #e4e4df;
  background-image: repeating-linear-gradient(90deg, rgba(22, 22, 22, .045) 0 2px, transparent 2px 5px);
}
.cat--shorts { --bg: var(--wash); --fg: var(--ink); --muted: #2b3d50; --frame: #d4e1ee; }

.cat-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 14px 32px; margin-bottom: clamp(28px, 4vw, 52px);
}
.cat-title {
  grid-column: 1 / -1;
  font-weight: 850; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(66px, 13vw, 210px); line-height: .8; letter-spacing: -.005em;
  overflow-wrap: anywhere;
}
.cat-note { max-width: 46ch; color: var(--muted); font-size: 18px; }
.cat-count { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Black Phantom's tonal puff print, as a headline */
.cat--hoodies .cat-title {
  color: #6b6b6b;
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, .28),
    0 1px 0 #0b0b0b, 0 2px 0 #0b0b0b, 0 3px 1px #0b0b0b,
    0 10px 18px rgba(0, 0, 0, .75);
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px) clamp(12px, 1.6vw, 22px); }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: block; width: 100%; padding: 0; margin: 0; align-self: start;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.card-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--frame);
}
/* The photo sits in a slightly taller layer that slides inside the frame while scrolling (--p: 1 → -1) */
.card-shift { position: absolute; inset: -6% 0; transform: translate3d(0, calc(var(--p, 0) * 4%), 0); }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .4s ease;
}
.card-alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-alt { opacity: 1; } }
.card:focus-visible .card-alt { opacity: 1; }

.card-flag {
  position: absolute; z-index: 1; left: 10px; top: 10px;
  padding: 5px 9px 6px; border-radius: 6px;
  background: var(--chalk); color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1;
  transform: rotate(-3deg);
  transition: transform .25s var(--ease-out);
}
@media (hover: hover) { .card:hover .card-flag { transform: rotate(2deg) scale(1.04); } }

.card-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-top: 12px; }
.card-name { font-weight: 750; font-stretch: 87%; font-size: 18px; line-height: 1.2; }
.card-price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-size: 16px; line-height: 1.35; }
.card-colour { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
@media (max-width: 699px) {
  .card-info { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .card-name { font-size: 17px; }
  .card-colour { order: 2; font-size: 14px; }
  .card-price { order: 3; text-align: left; margin-top: 4px; font-size: 15px; }
}

.editorial { position: relative; grid-column: span 2; margin: 0; min-height: 300px; overflow: hidden; background: var(--frame); }
.editorial img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  transform: translate3d(0, calc(var(--p, 0) * 6%), 0);
}
.editorial figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 20px 18px;
  background: linear-gradient(transparent, rgba(10, 10, 10, .72));
  color: var(--chalk); font-weight: 650; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25;
}
.editorial figcaption small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; opacity: .85; }
@media (max-width: 999px) { .editorial { aspect-ratio: 16 / 11; min-height: 0; } }

/* ---------- Drops ---------- */

.drops { position: relative; color: var(--ink); --focus: var(--ink); }
.drops::after { /* same flash falloff, gentler */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(140% 100% at 50% 45%, transparent 55%, rgba(10, 10, 12, .28));
}
.drops-pin { position: relative; z-index: 1; padding: clamp(84px, 10vw, 140px) 0 56px; }
.drops.is-pinned .drops-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) 0 28px;
  overflow: hidden;
}
.drops-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 14px 40px;
  padding: 0 var(--gutter); margin-bottom: clamp(24px, 3.5vh, 44px);
}
.drops-head .cat-title { grid-column: auto; font-size: clamp(56px, 9vw, 150px); }
.drops-note { font-size: 17px; color: #2d3337; }
@media (max-width: 800px) { .drops-head { grid-template-columns: 1fr; } }

.drops-viewport {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  padding: 14px var(--gutter) 22px;
  scrollbar-width: none;
}
.drops-viewport::-webkit-scrollbar { display: none; }
.drops.is-pinned .drops-viewport { overflow: visible; scroll-snap-type: none; }

.drops-track {
  display: flex; gap: clamp(28px, 3.4vw, 60px); width: max-content;
  margin: 0; padding: 0 var(--gutter) 0 0; list-style: none;
  will-change: transform;
}
.drop {
  flex: none; scroll-snap-align: start;
  width: clamp(230px, 72vw, 300px);
}
.drops.is-pinned .drop { width: clamp(220px, min(23vw, calc((100vh - 400px) * .8)), 330px); }
.drop time {
  display: block; margin-bottom: 16px;
  font-weight: 850; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(34px, 3.6vw, 54px); line-height: .9;
}
.drop .poster img { aspect-ratio: 4 / 5; }
/* Taped at the top, so the posters swing from there when the wall moves fast */
.drop-swing { transform-origin: 50% 0; transform: rotate(calc(var(--swing, 0deg) * var(--k, 1))); }
.drop h3 { margin-top: 20px; font-size: 20px; font-weight: 750; font-stretch: 87%; line-height: 1.2; }
.drop p { margin-top: 4px; font-size: 15px; color: #2d3337; max-width: 32ch; }

.drops-progress { margin: 18px var(--gutter) 0; height: 4px; background: rgba(22, 22, 22, .16); border-radius: 2px; overflow: hidden; }
.drops-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Lookbook ---------- */

/* Printed-lookbook paper; the photos sit still here so they can be looked at */
.look {
  padding: clamp(84px, 10vw, 140px) var(--gutter) clamp(64px, 8vw, 120px);
  background: var(--chalk); color: var(--ink);
}
.look-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 14px 40px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.look-head .cat-title { grid-column: auto; }
.look-note { font-size: 17px; color: #4a4a46; }
@media (max-width: 800px) { .look-head { grid-template-columns: 1fr; } }

.look-grid { columns: 2; column-gap: 12px; }
@media (min-width: 760px) { .look-grid { columns: 3; column-gap: 16px; } }
@media (min-width: 1200px) { .look-grid { columns: 4; } }
.look-item {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: #e4e4df;
  break-inside: avoid; cursor: zoom-in; overflow: hidden;
}
@media (min-width: 760px) { .look-item { margin-bottom: 16px; } }
.look-item img { width: 100%; height: auto; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .look-item:hover img { transform: scale(1.04); } }

/* ---------- Size guide, set as a woven care label ---------- */

.sizes {
  padding: clamp(84px, 10vw, 140px) var(--gutter);
  background: var(--phantom);
}
.label {
  position: relative; max-width: 940px; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  background:
    repeating-linear-gradient(0deg, rgba(22, 22, 22, .03) 0 1px, transparent 1px 3px),
    var(--chalk);
  color: var(--ink);
  --focus: var(--red);
}
.label::before { /* the stitching */
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 2px dashed rgba(22, 22, 22, .45);
}
.label-title {
  font-weight: 850; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(54px, 8vw, 104px); line-height: .82;
}
.label-note { margin-top: 14px; max-width: 52ch; color: #4a4a46; }

.fit { margin-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 2px solid var(--ink); }
.fit-input { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fit-input label { font-weight: 700; }
.fit-input output { font-weight: 850; font-stretch: 75%; font-size: 30px; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; margin: 8px 0 0; background: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px;
  border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .6) 0 3px, transparent 7px), var(--red);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .6) 0 3px, transparent 7px), var(--red);
}

.fit-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.fit-result { display: flex; flex-direction: column; gap: 2px; }
.fit-what { font-size: 15px; color: #4a4a46; }
.fit-size { font-weight: 850; font-stretch: 62%; font-size: clamp(64px, 9vw, 104px); line-height: .85; }
.fit-note { margin-top: 10px; font-size: 15px; color: #4a4a46; min-height: 1.5em; }

.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: clamp(24px, 3vw, 36px); }
.table-wrap--wide { grid-column: 1 / -1; }
.table-wrap h3 { font-size: 17px; font-weight: 750; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(22, 22, 22, .2); }
thead th { font-weight: 600; font-size: 14px; color: #4a4a46; }
tbody th { font-weight: 800; }
.tables-note { grid-column: 1 / -1; font-size: 15px; color: #4a4a46; max-width: 62ch; }
@media (max-width: 640px) {
  .tables { grid-template-columns: 1fr; }
  .fit-results { gap: 10px; }
}

/* ---------- Footer ---------- */

.foot {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) var(--gutter) 28px;
  color: var(--ink);
}
.foot::after { z-index: 1; }
.foot-tag {
  position: relative; z-index: 0; display: block;
  width: min(760px, 88vw); aspect-ratio: 873 / 681; margin: 0 auto;
  fill: var(--red); filter: url(#overspray);
  transform: rotate(-4deg);
}
.foot-flyer {
  z-index: 4;
  width: min(520px, 100%); margin: clamp(-120px, -9vw, -60px) auto 0; padding: 24px;
  --r: 1.2deg;
  transform: rotate(var(--r));
}
@media (max-width: 760px) { .foot-flyer { margin-top: -20px; } }
.foot-line { font-size: 19px; font-weight: 550; line-height: 1.35; max-width: 34ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-place { margin-top: 16px; font-size: 15px; color: #4a4a46; }
.foot-small {
  position: relative; z-index: 4;
  max-width: 70ch; margin: 56px auto 0; text-align: center;
  font-size: 13px; color: #e6e7e7; line-height: 1.5;
}

/* ---------- Product drawer ---------- */

dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }

.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100vw); height: 100vh; height: 100dvh;
  background: var(--chalk); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.drawer.is-in { transform: none; }
.drawer::backdrop { background: rgba(10, 10, 10, .55); }

.drawer-close, .lightbox-close {
  position: sticky; top: 12px; z-index: 2; float: right; margin: 12px 12px 0 0;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--chalk); font-weight: 700; font-size: 15px;
}
.drawer-gallery { clear: both; margin-top: -52px; }
.drawer-main { aspect-ratio: 4 / 5; max-height: 62vh; background: #e5e5e1; overflow: hidden; }
.drawer-main img { width: 100%; height: 100%; object-fit: cover; }
.drawer-thumbs { display: flex; gap: 8px; padding: 10px 20px 0; overflow-x: auto; scrollbar-width: thin; }
.thumb {
  flex: none; width: 58px; height: 72px; padding: 0; border: 2px solid transparent; cursor: pointer;
  background: #ddd; overflow: hidden; opacity: .65; transition: opacity .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.thumb:hover { opacity: 1; }

.drawer-body { padding: 22px 24px 40px; }
.drawer-title { font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 7vw, 54px); line-height: .86; }
.drawer-colour { margin-top: 8px; color: #4a4a46; }
.drawer-price { margin-top: 4px; font-weight: 750; font-size: 20px; font-variant-numeric: tabular-nums; }
.drawer-price-note { margin-top: 2px; font-size: 15px; color: #4a4a46; }
.drawer-price-note[hidden] { display: none; }
.drawer-flag { margin-top: 10px; display: inline-block; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--chalk); font-size: 14px; font-weight: 700; }
.drawer-flag[hidden] { display: none; }

.pick { margin: 22px 0 0; padding: 0; border: 0; }
.pick legend { padding: 0; font-weight: 700; margin-bottom: 10px; }
.pick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 750;
  transition: background-color .15s, color .15s;
}
.pick input:checked + span { background: var(--ink); color: var(--chalk); }
.pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }

.drawer-order { margin-top: 20px; min-height: 54px; font-size: 17px; }
.drawer-order[aria-disabled="true"] { background: #6f6f6c; }
.drawer-error { margin-top: 8px; min-height: 1.5em; color: #b01810; font-weight: 650; font-size: 15px; }

.drawer-fit { margin-top: 12px; }
.drawer-fit h3, .drawer-details-title { font-size: 15px; font-weight: 750; }
.drawer-fit table { margin-top: 6px; font-size: 15px; }
.drawer-details { margin: 18px 0 0; padding: 0 0 0 18px; }
.drawer-details li { margin-top: 4px; }
.drawer-more { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.drawer-sibling {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.drawer-ig { font-size: 15px; text-underline-offset: 3px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(14, 14, 14, .96); color: var(--chalk);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; transition: opacity .25s ease;
  --focus: var(--chalk);
}
.lightbox:not([open]) { display: none; }
.lightbox.is-in { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox-close { position: static; float: none; justify-self: end; background: var(--chalk); color: var(--ink); }
.lightbox-figure { margin: 0; display: grid; place-items: center; padding: 8px 16px; min-height: 0; }
.lightbox-figure img {
  max-width: min(94vw, 1200px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain;
}
.lightbox-bar { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 16px 20px; }
.lightbox-bar button {
  min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--chalk); background: none; font-weight: 700;
}
.lightbox-count { font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }

html.is-locked { overflow: hidden; }

.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; padding: 14px 16px; background: var(--chalk); color: var(--ink); font-weight: 600; }

/* ---------- Scroll motion ----------
   Photos are pasted onto the wall as they scroll into view: they drop in tilted and lifted,
   slap flat, then the tape goes on. Only runs when the script adds .motion to <html>. */

@keyframes paste {
  0%   { opacity: 0; transform: translate3d(0, 34px, 0) rotate(calc(var(--r, 0deg) + var(--tilt, 6deg))) scale(1.12); }
  55%  { opacity: 1; transform: translate3d(0, -3px, 0) rotate(calc(var(--r, 0deg) - var(--tilt, 6deg) * .15)) scale(.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)) scale(1); }
}
@keyframes paste-soft {
  from { opacity: 0; transform: translate3d(0, 48px, 0) rotate(2deg); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes tape-on {
  from { opacity: 0; transform: translateX(-50%) rotate(-3deg) scaleX(.2); }
  to   { opacity: 1; transform: translateX(-50%) rotate(-3deg) scaleX(1); }
}
@keyframes sticker-on {
  0%   { opacity: 0; transform: rotate(-16deg) scale(1.8); }
  70%  { opacity: 1; transform: rotate(0deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}
@keyframes spray-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.motion [data-paste]:not(.is-in) { opacity: 0; }
.motion [data-paste].is-in { animation: paste .85s cubic-bezier(.2, .9, .25, 1) var(--d, 0s) backwards; }
.motion [data-paste="soft"].is-in { animation: paste-soft .8s var(--ease-out) var(--d, 0s) backwards; }
.motion .poster.is-in::before { animation: tape-on .4s cubic-bezier(.3, .7, .2, 1) calc(var(--d, 0s) + .45s) backwards; }
.motion .card-media.is-in .card-flag { animation: sticker-on .55s cubic-bezier(.3, 1.3, .4, 1) calc(var(--d, 0s) + .5s) backwards; }
.motion .foot-tag[data-paste].is-in { animation: spray-in 1.3s cubic-bezier(.45, .05, .3, 1) .15s backwards; }
.motion .tape-track { animation: none; }

/* Section titles slide sideways as their section passes through the screen */
[data-parallax] > .cat-title { transform: translate3d(calc(var(--p, 0) * 3vw), 0, 0); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  .drawer, .lightbox, .card-media img, .look-item img, .paint-layer { transition: none; }
}
