/* =========================================================
   CLUB — Sydney
   Palette and type come from the Drop 001 mood board:
   cobalt poster blue, acid-yellow script, hot-pink starburst,
   halftone black and white.
   ========================================================= */

:root {
  --blue: #1f2bef;
  --blue-deep: #1520c4;
  --navy: #0f1a57;
  --acid: #e6ff2e;
  --pink: #ff2d95;
  --paper: #f2f3f5;
  --white: #ffffff;
  --ink: #000000;
  --grey: #5b5f6b;

  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-script: 'Mrs Saint Delafield', 'Brush Script MT', cursive;

  /* type scale (fluid) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --t-xl: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  --t-2xl: clamp(3.25rem, 1.5rem + 8vw, 9rem);
  --t-mega: clamp(7rem, 2rem + 27vw, 30rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1440px;

  /* motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slam: cubic-bezier(0.25, 1.65, 0.45, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --d-fast: 160ms;
  --d-med: 420ms;
  --d-slow: 900ms;

  --z-header: 40;
  --z-drawer: 100;
  --z-grain: 1000;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--acid); color: var(--ink);
  padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* paper grain over everything: one static SVG, no repaint cost */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* page-to-page wipe (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 380ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
@keyframes vt-out { to { clip-path: inset(0 0 100% 0); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } }

/* ---------- shared bits ---------- */
/* the script face's apostrophe has huge side bearings; pull it in */
.ap { display: inline-block; margin: 0 -0.22em 0 -0.1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.display {
  font-weight: 900;
  font-variation-settings: 'wdth' 72;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--ink);
  font-weight: 800; font-variation-settings: 'wdth' 90;
  font-size: var(--t-sm); letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out), background var(--d-fast);
  touch-action: manipulation;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--acid { --bg: var(--acid); --fg: var(--ink); }
.btn--white { --bg: var(--white); --fg: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* tape strip for pasted photos */
.tape::before {
  content: '';
  position: absolute; top: -12px; left: 50%;
  width: 72px; height: 24px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(230, 255, 46, 0.82);
  mix-blend-mode: multiply;
  z-index: 2;
}

/* halftone treatment: grayscale + dot screen, pure CSS */
.halftone { position: relative; overflow: hidden; background: var(--white); }
.halftone img { filter: grayscale(1) contrast(1.45) brightness(1.06); }
.halftone::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.42) 0.85px, transparent 1.35px) 0 0 / 4px 4px;
  mix-blend-mode: multiply;
}
/* blue duotone: whites go cobalt, blacks stay black */
.duo { background: var(--blue); }
.duo img { mix-blend-mode: multiply; }

/* the four-point star used across the brand */
.star { display: inline-block; width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--gutter);
  color: var(--ink);
  transition: background var(--d-med), color var(--d-med), transform var(--d-med) var(--ease-out);
}
.header.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.header.is-hidden { transform: translateY(-110%); }
.logo {
  font-family: var(--f-script);
  font-size: 2.6rem; line-height: 1;
  text-decoration: none;
  padding: 0.1rem 0.3rem 0 0;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav { display: flex; align-items: center; gap: clamp(0.25rem, 2vw, 2rem); }
.nav a, .cart-btn {
  min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0 0.5rem;
  font-weight: 700; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.03em;
  font-variation-settings: 'wdth' 88;
  text-decoration: none;
  background: none; border: 0;
}
.nav a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0.5rem calc(100% - 10px); transition: background-size var(--d-med) var(--ease-out); }
.nav a:hover, .nav a[aria-current='page'] { background-size: calc(100% - 1rem) 2px; }
.nav .hide-sm { display: none; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem;
  display: inline-grid; place-items: center;
  background: var(--acid); color: var(--ink);
  font-size: 0.75rem; font-weight: 900; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump 500ms var(--ease-slam); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.6) rotate(-12deg); } 100% { transform: scale(1); } }

@media (min-width: 768px) { .nav .hide-sm { display: inline-flex; } }

/* ---------- hero ---------- */
/* Full-bleed black-and-white street portrait. LOOK / IT'S in cobalt,
   "Club" written across it in acid-yellow script, layered at different depths. */
.hero {
  --u: min(1vw, 1.75svh);           /* type unit that never outgrows the screen height */
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background: #8d8d8d;
  color: var(--white);
  isolation: isolate;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 55% 40%; filter: contrast(1.08); will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 55% 40%, transparent 55%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 26%);
}
/* heavier film grain just on the photo */
.hero::after {
  content: ''; position: absolute; inset: -50%; pointer-events: none; z-index: 1;
  opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.hl, .hl-script, .hero__drop { position: absolute; z-index: 2; will-change: transform; margin: 0; }
.hl {
  font-weight: 800;
  font-variation-settings: 'wdth' 100;
  font-size: calc(var(--u) * 15.5);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--blue);
}
.hl .mask { display: inline-block; overflow: hidden; padding: 0.02em 0.04em 0.06em 0; }
.hl .ch { display: inline-block; }
.hl--look { left: 5.5%; top: 9%; }
.hl--its { right: 5.5%; top: 34%; }

.hl-script {
  left: 13%; top: 38%;
  font-size: calc(var(--u) * 38);
  line-height: 1;
  color: var(--acid);
  -webkit-text-stroke: 0.012em var(--acid);
  text-shadow: 0 0.02em 0.08em rgba(0, 0, 0, 0.18);
  /* generous padding: the script C swashes past its box, and the write-on mask clips to the box */
  padding: 0.12em 0.9em 0.22em 0.7em;
  margin: -0.12em -0.9em 0 -0.7em;
}
.hero__drop {
  left: 5.5%; top: 89%;
  font-weight: 900; font-variation-settings: 'wdth' 92;
  font-size: calc(var(--u) * 4.2);
  letter-spacing: -0.02em;
  word-spacing: 0.18em;
  color: var(--blue);
}

.hero__foot {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.5rem;
}
.hero__foot p { font-size: var(--t-sm); font-weight: 600; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.btn--light { --bg: var(--white); --fg: var(--ink); border-color: var(--white); box-shadow: none; }
.btn--light:hover { --bg: var(--acid); border-color: var(--acid); transform: none; box-shadow: none; }
.btn--light:active { transform: scale(0.98); }
.btn--ink { --bg: var(--ink); --fg: var(--white); box-shadow: none; }
.btn--ink:hover { --bg: var(--blue); border-color: var(--blue); transform: none; box-shadow: none; }

/* intro: photo pushes in, words rise, the script writes itself on */
.js .hero__bg img { animation: push 2600ms var(--ease-out) both; }
@keyframes push { from { transform: scale(1.14); filter: contrast(1.08) brightness(1.25); } }
.js .hl .ch { animation: rise-in 1100ms var(--ease-out) both; }
.js .hl--look .ch { animation-delay: 250ms; }
.js .hl--its .ch { animation-delay: 450ms; }
@keyframes rise-in { from { transform: translateY(108%); } }
.js .hl-script {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  animation: ink 1700ms cubic-bezier(0.45, 0, 0.2, 1) 850ms both;
}
@keyframes ink {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.js .hero__drop, .js .hero__foot { animation: fade-up 800ms var(--ease-out) 1500ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 767px) {
  .hero { --u: 1vw; }
  .hero__bg img { object-position: 50% 30%; }
  .hl { font-size: calc(var(--u) * 27); }
  .hl--look { left: 4.5%; top: 11%; }
  .hl--its { right: 4.5%; top: 47%; }
  .hl-script { left: 7%; top: 52%; font-size: calc(var(--u) * 50); }
  .hero__drop { left: 4.5%; top: 84%; font-size: 1.45rem; }
  .hero__foot { justify-content: space-between; bottom: 1.75rem; }
  .hero__foot p { display: none; }
}

/* ---------- ticker ---------- */
/* A flat acid band with hairlines: one phrase on a slow loop. */
.ticker {
  position: relative; z-index: 5;
  background: var(--acid); color: var(--ink);
  border-block: 1px solid var(--ink);
  overflow: hidden;
}
.ticker__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 2.25rem; padding: 0.95rem 1.125rem; }
.ticker__group span {
  font-weight: 600;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.85rem, 0.75rem + 0.45vw, 1.1rem);
  line-height: 1;
  white-space: nowrap;
}
.ticker__group .star { font-size: 0.7rem; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.sec { padding-block: clamp(5rem, 3rem + 8vw, 10rem); position: relative; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.sec-head h2 { font-size: var(--t-2xl); position: relative; word-spacing: 0.08em; }
.sec-head h2 .script { position: absolute; right: -0.5em; bottom: -0.55em; font-size: 0.62em; color: var(--blue); transform: rotate(-8deg); white-space: nowrap; }
.sec-head p { max-width: 26rem; color: var(--grey); }
.sec-head .drop-intro { max-width: 34rem; font-size: var(--t-md); line-height: 1.6; color: #2b2e36; }

/* ---------- product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1rem;
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .grid--stagger > :nth-child(even) { margin-top: 6rem; }
}

.pcard { position: relative; text-decoration: none; display: block; }
.pcard__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--white);
  transition: transform var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__bw { clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-out); }
.pcard:hover .pcard__media, .pcard:focus-visible .pcard__media { transform: rotate(-1.5deg) translateY(-6px); box-shadow: 8px 8px 0 var(--blue); }
.pcard:hover .pcard__bw, .pcard:focus-visible .pcard__bw, .pcard.is-live .pcard__bw { clip-path: inset(0 0 100% 0); }
.pcard__tag {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: var(--acid); color: var(--ink);
  padding: 0.25rem 0.5rem;
  font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; font-variation-settings: 'wdth' 80;
  transform: rotate(-3deg);
}
.pcard__body { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-top: 0.85rem; }
.pcard__name { font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.75rem); font-weight: 900; font-variation-settings: 'wdth' 72; text-transform: uppercase; line-height: 0.95; }
.pcard__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcard__colour { color: var(--grey); font-size: var(--t-sm); margin-top: 0.2rem; }

/* ---------- manifesto ---------- */
/* Editorial spread on the page's own light ground: one tall B&W photograph beside a quiet statement. */
.manifesto { background: var(--paper); color: var(--ink); overflow: hidden; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.manifesto__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 6rem); align-items: center; }
.manifesto__frame { aspect-ratio: 4 / 5; overflow: hidden; background: #d9dbe0; }
.manifesto__frame img { width: 100%; height: 115%; object-fit: cover; filter: grayscale(1) contrast(1.08); margin-top: -7.5%; }
/* the container is observed (a fully clipped element never counts as visible) */
.js .manifesto__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1400ms var(--ease-out); }
.js .manifesto__photo.in .manifesto__frame { clip-path: inset(0 0 0 0); }
.manifesto__photo figcaption { margin-top: 0.85rem; font-size: var(--t-xs); color: var(--grey); }

.manifesto__title {
  font-weight: 500;
  font-variation-settings: 'wdth' 100;
  font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.manifesto__title .reveal { display: block; }
.manifesto__title .reveal > span { display: inline-block; }
.js .manifesto__title .reveal:nth-child(2) > span { transition-delay: 120ms; }
.js .manifesto__title .reveal:nth-child(3) > span { transition-delay: 240ms; }
.manifesto__copy { max-width: 32rem; margin-top: 2.25rem; font-size: var(--t-md); line-height: 1.65; color: #2b2e36; }
.manifesto__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.5rem;
  color: var(--ink); font-weight: 600; font-size: var(--t-sm); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: border-color var(--d-fast), color var(--d-fast);
}
.manifesto__link:hover { color: var(--blue); border-color: var(--blue); }

@media (min-width: 1024px) {
  .manifesto__grid { grid-template-columns: 5fr 6fr; }
  .manifesto__photo { max-width: 520px; }
}

/* shop banner star */
.burst { position: absolute; color: var(--pink); pointer-events: none; z-index: 0; will-change: transform; }

/* reveal: mask lines up from below */
.js .reveal { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .reveal > * { transform: translateY(105%); transition: transform 1000ms var(--ease-out); }
.js .reveal.in > * { transform: none; }
.js .fade { opacity: 0; transform: translateY(30px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- full-bleed dock break ---------- */
.bleed { position: relative; height: clamp(420px, 90vh, 980px); overflow: hidden; background: var(--navy); }
.bleed img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.bleed__text {
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 4vw, 4rem);
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800;
  font-variation-settings: 'wdth' 100;
  font-size: clamp(2.5rem, 1rem + 7vw, 8rem);
  line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--acid);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- lookbook collage ---------- */
/* Compact contact-sheet grid: equal small frames. */
.lookbook { background: var(--paper); }
.collage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.875rem;
  max-width: 1100px; margin-inline: auto;
  align-items: start;
}
.shot { position: relative; transform: rotate(calc(var(--r, 0deg) * 0.4)); }
.shot .frame { border: 4px solid var(--white); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.shot figcaption { margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 0.5rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; font-variation-settings: 'wdth' 85; letter-spacing: 0.02em; }
.shot figcaption a { text-decoration: none; border-bottom: 1.5px solid var(--blue); }

@media (min-width: 768px) {
  .collage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
}
  
/* ---------- lookbook motion + viewer ---------- */
.collage { perspective: 1200px; }
.shot {
  cursor: zoom-in;
  transform: rotate(calc(var(--r, 0deg) * 0.4)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 450ms var(--ease-out), opacity 450ms var(--ease-out), filter 450ms var(--ease-out);
}
.shot .frame { position: relative; transition: box-shadow 450ms var(--ease-out); }
.shot img { transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out); }
.shot .halftone::after { transition: opacity 600ms var(--ease-out); }
.shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* staggered reveal: each frame opens upward as the grid arrives */
.js .shot.fade { transform: rotate(calc(var(--r, 0deg) * 0.4)) translateY(28px); transition: transform 450ms var(--ease-out), opacity 800ms var(--ease-out), filter 450ms var(--ease-out); }
.js .shot.fade.in { transform: rotate(calc(var(--r, 0deg) * 0.4)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.js .shot .frame { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-out), box-shadow 450ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms), 0ms; }
.js .shot.in .frame { clip-path: inset(0 0 0 0); }
.js .shot img { transform: scale(1.18); transition-delay: calc(var(--i, 0) * 70ms); }
.js .shot.in img { transform: scale(1); }

@media (hover: hover) and (pointer: fine) {
  .collage:hover .shot.in:not(:hover) { opacity: 0.5; filter: grayscale(0.5); }
  .shot.in:hover { --lift: -8px; z-index: 2; transition-delay: 0ms; }
  .shot.in:hover .frame { box-shadow: 0 26px 50px rgba(15, 26, 87, 0.28); }
  .shot.in:hover img { transform: scale(1.07); transition-delay: 0ms; }
  .shot.in:hover .halftone img { filter: none; }
  .shot.in:hover .halftone::after { opacity: 0; }
}

/* full-screen viewer */
.viewer {
  position: fixed; inset: 0; z-index: 150;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  background: rgba(8, 9, 14, 0.94);
  color: var(--white);
  opacity: 0; visibility: hidden;
  transition: opacity 350ms var(--ease-out), visibility 0s 350ms;
}
.viewer.open { opacity: 1; visibility: visible; transition: opacity 350ms var(--ease-out); }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); }
.viewer__count { font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.viewer__close, .viewer__nav {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--white);
  transition: background var(--d-fast), border-color var(--d-fast), color var(--d-fast);
}
.viewer__close:hover, .viewer__nav:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.viewer__close svg, .viewer__nav svg { width: 20px; height: 20px; }
.viewer__stage { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; padding: 0 var(--gutter); overflow: hidden; touch-action: pan-y; }
.viewer__img {
  max-width: min(100%, 980px); max-height: calc(100svh - 11rem);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 500ms var(--ease-out), opacity 300ms var(--ease-out);
}
.viewer.open .viewer__img { transform: none; }
.viewer__img.is-out-l { transform: translateX(-60px); opacity: 0; transition-duration: 200ms; }
.viewer__img.is-out-r { transform: translateX(60px); opacity: 0; transition-duration: 200ms; }
.viewer__img.is-in { transform: scale(0.96); opacity: 0; transition: none; }
.viewer__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: rgba(8, 9, 14, 0.4); }
.viewer__nav--prev { left: var(--gutter); }
.viewer__nav--next { right: var(--gutter); }
.viewer__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; padding: 1rem var(--gutter) 1.5rem; }
.viewer__caption { font-size: var(--t-sm); font-weight: 600; }
.viewer__shop {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem;
  background: var(--white); color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em;
  transition: background var(--d-fast);
}
.viewer__shop:hover { background: var(--acid); }
.viewer__shop[hidden] { display: none; }
@media (max-width: 767px) {
  .viewer__nav { top: auto; bottom: 0.5rem; translate: none; }
  .viewer__img { max-height: calc(100svh - 13rem); }
}

/* ---------- winter project ---------- */
.winter { background: var(--ink); color: var(--white); overflow: hidden; }
.winter .sec-head h2 { color: transparent; -webkit-text-stroke: 2px var(--white); }
.winter .sec-head h2 .script { color: var(--pink); -webkit-text-stroke: 0; }
.winter .sec-head p { color: #b9bcc6; }
.wip-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wip { position: relative; }
.wip .halftone { aspect-ratio: 3 / 4; border: 3px solid var(--white); }
.wip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(0.9) blur(3px); transform: scale(1.06); transition: filter 600ms var(--ease-out); }
.wip:hover img { filter: grayscale(1) contrast(1.25) brightness(0.9) blur(1px); }
.wip__bar { position: absolute; left: -4%; right: -4%; height: 13%; background: var(--ink); z-index: 2; }
.wip__bar--1 { top: 30%; transform: rotate(-4deg); }
.wip__bar--2 { top: 58%; transform: rotate(3deg); height: 9%; }
.wip__stamp {
  position: absolute; z-index: 3; right: 6%; top: 8%;
  border: 3px solid var(--pink); color: var(--pink);
  padding: 0.35rem 0.6rem;
  font-weight: 900; font-variation-settings: 'wdth' 70; text-transform: uppercase; font-size: clamp(0.9rem, 0.6rem + 1vw, 1.4rem); line-height: 1;
  transform: rotate(12deg);
}
.wip figcaption { margin-top: 0.75rem; }
.wip figcaption strong { display: block; font-weight: 900; font-variation-settings: 'wdth' 72; text-transform: uppercase; font-size: var(--t-lg); line-height: 1; }
.wip figcaption span { color: #b9bcc6; font-size: var(--t-sm); }

.notify { margin-top: 3rem; max-width: 34rem; }
.notify label { display: block; font-weight: 700; margin-bottom: 0.6rem; }
.notify__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.notify input {
  flex: 1 1 14rem; min-height: 52px; padding: 0 1rem;
  font: inherit; font-size: 1rem;
  background: transparent; color: var(--white);
  border: 2px solid var(--white); border-radius: 0;
}
.notify input::placeholder { color: #8a8e99; }
.notify .btn { border-color: var(--white); box-shadow: 5px 5px 0 var(--pink); }
.notify__msg { margin-top: 0.75rem; min-height: 1.5em; color: var(--acid); font-weight: 600; }
.notify__msg.err { color: #ff8ac4; }

@media (min-width: 1024px) {
  .winter__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .winter .sec-head { display: block; }
  .winter .sec-head p { margin-top: 2.5rem; }
}

/* ---------- footer ---------- */
.footer { background: var(--blue); color: var(--white); padding: 4rem 0 2rem; overflow: hidden; }
.footer__mark { font-family: var(--f-script); font-size: clamp(9rem, 4rem + 30vw, 34rem); line-height: 0.75; color: var(--acid); margin: 0 0 2rem -0.04em; }
.footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; margin-bottom: 0.75rem; opacity: 0.8; }
.footer li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-weight: 600; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base { margin-top: 3rem; padding-top: 1.25rem; border-top: 2px solid rgba(255, 255, 255, 0.35); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: var(--t-xs); }
@media (min-width: 768px) { .footer__cols { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- page banner (shop) ---------- */
.banner { background: var(--blue); color: var(--white); padding: 8rem 0 4rem; position: relative; overflow: hidden; }
.banner h1 { font-size: clamp(5rem, 2rem + 18vw, 20rem); }
.banner .script { color: var(--acid); font-size: clamp(3rem, 1.5rem + 6vw, 7rem); display: block; transform: rotate(-6deg); margin: -0.4em 0 0 8vw; }
.banner p { max-width: 34rem; margin-top: 2rem; line-height: 1.6; }
.banner .burst { right: -6%; top: 20%; width: clamp(160px, 30vw, 420px); }
.js .banner h1 span { display: inline-block; animation: slam 700ms var(--ease-slam) both; }
.js .banner h1 span:nth-child(2) { animation-delay: 80ms; }
.js .banner h1 span:nth-child(3) { animation-delay: 160ms; }
.js .banner h1 span:nth-child(4) { animation-delay: 240ms; }

.locked .pcard__media { border-style: dashed; }
.locked .pcard__media img { filter: grayscale(1) contrast(1.5) blur(6px); transform: scale(1.1); }
.locked .pcard__price { color: var(--pink); }

/* ---------- product page ---------- */
.pdp { padding-top: 5rem; }
.pdp__wrap { display: grid; gap: 2rem; }
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track figure { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 4; background: var(--white); }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count {
  position: absolute; right: calc(var(--gutter) + 0.25rem); bottom: 1rem;
  background: var(--ink); color: var(--white);
  padding: 0.3rem 0.6rem; font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.gallery__nav { position: absolute; inset: auto var(--gutter) 1rem auto; display: none; }

.info h1 { font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem); }
.info .script { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); color: var(--blue); display: block; margin: -0.15em 0 0.5rem 0.5rem; transform: rotate(-4deg); width: max-content; }
.info__price { font-size: var(--t-xl); font-weight: 900; font-variation-settings: 'wdth' 75; font-variant-numeric: tabular-nums; line-height: 1; }
.info__price small { font-size: var(--t-xs); font-weight: 600; color: var(--grey); margin-left: 0.4rem; letter-spacing: 0.04em; }
.info__blurb { margin-top: 1.25rem; max-width: 34rem; font-size: var(--t-md); }

.sizes { border: 0; padding: 0; margin: 2rem 0 0; }
.sizes legend { font-weight: 800; text-transform: uppercase; font-size: var(--t-xs); letter-spacing: 0.06em; margin-bottom: 0.75rem; padding: 0; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span {
  display: grid; place-items: center; min-width: 58px; min-height: 52px; padding: 0 0.75rem;
  border: 2px solid var(--ink); background: var(--white);
  font-weight: 800; font-variation-settings: 'wdth' 85;
  transition: background var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.size input:hover + span { transform: translateY(-2px); }
.size input:checked + span { background: var(--ink); color: var(--acid); }
.size input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }
.sizes__err { color: #c4005f; font-weight: 700; margin-top: 0.6rem; min-height: 1.5em; font-size: var(--t-sm); }

.buy { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.buy .btn { flex: 1 1 16rem; min-height: 58px; font-size: var(--t-md); position: relative; overflow: visible; }
.fit-note { font-size: var(--t-sm); color: var(--grey); margin-top: 1rem; max-width: 34rem; }

.acc { margin-top: 2rem; border-top: 2px solid var(--ink); }
.acc details { border-bottom: 2px solid var(--ink); }
.acc summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; text-transform: uppercase; font-variation-settings: 'wdth' 80; letter-spacing: 0.02em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 20px; height: 20px; transition: transform var(--d-med) var(--ease-out); }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc__body { padding-bottom: 1.25rem; color: #2b2e36; }
.acc li { padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; }
.acc li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; background: var(--blue); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

.pairs { margin-top: 6rem; }
.pairs h2 { font-size: var(--t-xl); margin-bottom: 2rem; }

@media (min-width: 1024px) {
  .pdp { padding-top: 6.5rem; }
  .pdp__wrap { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: start; }
  .gallery { margin-inline: 0; }
  .gallery__track { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; overflow: visible; }
  .gallery__track figure:first-child { grid-column: span 2; aspect-ratio: 4 / 5; }
  .gallery__track figure { border: 3px solid var(--ink); }
  .gallery__count { display: none; }
  .info { position: sticky; top: 6.5rem; }
}

/* add-to-bag starburst particles */
.spark { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; color: var(--pink); pointer-events: none; animation: spark 700ms var(--ease-out) forwards; }
@keyframes spark {
  from { transform: translate(-50%, -50%) scale(0.4) rotate(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(180deg); opacity: 0; }
}

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 26, 87, 0.55); z-index: var(--z-drawer); opacity: 0; pointer-events: none; transition: opacity var(--d-med); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(440px, 100%);
  background: var(--paper);
  border-left: 3px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 520ms var(--ease-out);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer:not(.open) { transition: transform 340ms var(--ease-in), visibility 0s 340ms; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 3px solid var(--ink); background: var(--blue); color: var(--white); }
.drawer__head h2 { font-size: 2rem; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 2px solid currentColor; }
.icon-btn svg { width: 22px; height: 22px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__empty { text-align: center; padding: 3rem 1rem; }
.drawer__empty .script { font-size: 4rem; color: var(--blue); display: block; margin-bottom: 1rem; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 2px solid var(--ink); align-items: start; }
.line img { width: 84px; height: 112px; object-fit: cover; border: 2px solid var(--ink); }
.line__name { font-weight: 900; font-variation-settings: 'wdth' 75; text-transform: uppercase; line-height: 1; }
.line__meta { font-size: var(--t-sm); color: var(--grey); margin-top: 0.25rem; }
.qty { display: inline-flex; align-items: center; margin-top: 0.6rem; border: 2px solid var(--ink); }
.qty button { width: 44px; height: 40px; background: none; border: 0; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 2rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.line__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.line__remove { display: block; margin-top: 0.5rem; background: none; border: 0; padding: 0.4rem 0; font-size: var(--t-xs); text-decoration: underline; color: var(--grey); min-height: 32px; }
.drawer__foot { padding: 1.25rem; border-top: 3px solid var(--ink); background: var(--white); }
.drawer__sub { display: flex; justify-content: space-between; font-weight: 900; font-size: var(--t-lg); font-variation-settings: 'wdth' 80; text-transform: uppercase; }
.drawer__note { font-size: var(--t-xs); color: var(--grey); margin: 0.4rem 0 1rem; }
.drawer__foot .btn { width: 100%; }
.drawer__msg { margin-top: 0.75rem; font-size: var(--t-sm); min-height: 1.5em; }

/* ---------- reduced motion: everything lands in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track, .hero::after { animation: none !important; }
  .js .reveal > *, .js .fade { transform: none !important; opacity: 1 !important; }
  @view-transition { navigation: none; }
}
