/* PRSPCTV */

:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --ink: #ededed;
  --muted: #9a9a9a;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  --step-head: clamp(2.25rem, 5vw, 5rem);
  --step-display: clamp(3.25rem, 12vw, 15rem);

  --m: clamp(16px, 3vw, 48px);
  --section: clamp(120px, 14vw, 220px);
  --bar-h: 92px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* keep the scrollbar's space even when scrolling is locked (menu, product sheet, cart), so nothing jumps sideways */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: var(--bar-h); scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus-visible { top: 12px; }

/* Links: an underline that draws in on hover */
.contact__links a, .contact__mail {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.25em; text-decoration-thickness: 1px;
  transition: text-decoration-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact__links a:hover, .contact__mail:hover { text-decoration-color: currentColor; }
}

/* ---------- Bar: menu left, logo centre, account right ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(var(--m), env(safe-area-inset-right)) 0 max(var(--m), env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid #1d1d1d;
}
.bar__menu, .bar__account {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer;
}
.bar__menu { justify-self: start; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bar__menu span { display: block; width: 28px; height: 2px; background: currentColor; transition: transform 220ms cubic-bezier(0.3, 0.7, 0.2, 1), opacity 120ms ease; }
.bar__menu { transition: transform 120ms ease; }
.bar__menu:active { transform: scale(0.9); }
.bar__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.bar__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bar__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.bar__logo { display: block; width: 76px; height: 76px; }
.bar__logo img { width: 100%; height: 100%; object-fit: contain; transition: transform 600ms var(--ease); }
.bar__right { justify-self: end; display: flex; align-items: center; gap: 4px; }
.bar__account svg { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .bar__logo:hover img { transform: rotate(-12deg) scale(1.08); }
  .bar__account:hover svg { transform: scale(1.12); }
  .bar__menu:hover span:nth-child(2) { transform: scaleX(0.6); }
}

/* ---------- Menu panel ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: center;
  padding: var(--bar-h) var(--m) var(--m);
  background: var(--bg);
}
.menu[hidden] { display: none; }
.menu__links { display: grid; gap: clamp(8px, 1.5vw, 20px); }
.menu__links a {
  display: inline-block;
  font-size: clamp(2.75rem, 8vw, 7.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  transition: color 300ms ease, transform 600ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu__links:hover a { color: #555; }
  .menu__links a:hover { color: var(--ink); transform: translateX(16px); }
}

/* ---------- Hero: the name ---------- */
.name { position: relative; height: 100svh; display: grid; place-items: center; overflow: clip; }
.name__inner { display: grid; justify-items: center; gap: clamp(32px, 5vw, 72px); padding: 0 var(--m); }
.name__word { font-size: var(--step-display); letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap; }
.name__letters { display: flex; justify-content: center; }
.name__letters { user-select: none; }
.name__letters span { display: inline-block; }
.name__line { max-width: 32ch; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; text-align: center; color: var(--muted); }

/* ---------- Collection ---------- */
.collection { padding: var(--section) var(--m) 0; }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); }
.collection__title { font-size: var(--step-head); }
.collection__lead { max-width: 30ch; color: var(--muted); text-align: right; }
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.piece:nth-child(3n+2) { margin-top: clamp(40px, 8vw, 140px); }
.piece { margin-bottom: clamp(32px, 4vw, 64px); }
/* one mid grey behind every piece: white and black garments both stand out on it */
.piece__frame { position: relative; aspect-ratio: 4/5; background: #3a3a3a; overflow: clip; transition: background-color 500ms ease; }
.piece__frame img { position: absolute; inset: 0; margin: auto; width: 58%; height: auto; aspect-ratio: 1; opacity: 0.6; transition: opacity 600ms var(--ease), scale 900ms var(--ease); }
/* a real product photograph (transparent background) sits centred in its frame */
/* a photo with a lot of empty margin around the garment is shown larger */
.piece__frame--photo img.is-loose { width: 120%; height: 120%; }
.piece__frame--photo img { width: 86%; height: 86%; aspect-ratio: auto; object-fit: contain; object-position: 50% 50%; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .piece:hover .piece__frame { background: #444; }
  .piece:hover .piece__frame img { opacity: 1; scale: 1.08; }
  .piece:hover .piece__frame--photo img { scale: 1.04; }
}
.piece__name { margin-top: 20px; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.piece__meta { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 900px) {
  .pieces { grid-template-columns: repeat(2, 1fr); }
  .piece:nth-child(3n+2) { margin-top: 0; }
  .piece:nth-child(even) { margin-top: clamp(32px, 8vw, 72px); }
}
@media (max-width: 700px) {
  .collection__head { flex-direction: column; align-items: flex-start; }
  .collection__lead { text-align: left; }
}

/* ---------- Infos ---------- */
.infos {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--m);
  padding: var(--section) var(--m) 0;
}
.infos__title { font-size: var(--step-head); }
.infos__list { display: grid; gap: 8px; }
.infos summary {
  position: relative; list-style: none; cursor: pointer;
  min-height: 64px; display: flex; align-items: center; padding-right: 48px;
  font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15;
  transition: translate 500ms var(--ease);
}
.infos summary::-webkit-details-marker { display: none; }
.infos summary::before, .infos summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: currentColor;
  transition: rotate 500ms var(--ease);
}
.infos summary::after { rotate: 90deg; }
.infos details[open] summary::after { rotate: 0deg; }
@media (hover: hover) and (pointer: fine) { .infos summary:hover { translate: 8px 0; } }
.infos details p { max-width: 52ch; padding: 4px 0 24px; color: var(--muted); }
.infos details[open] p { animation: fade-up 600ms var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 800px) { .infos { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact { display: grid; justify-items: center; gap: 24px; padding: var(--section) var(--m) clamp(80px, 10vw, 160px); text-align: center; }
.contact__title { font-size: var(--step-head); }
.contact__mail { font-size: var(--step-lead); letter-spacing: -0.02em; }
.contact__links { display: flex; gap: 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { padding: 32px var(--m) 40px; font-size: var(--step-small); color: var(--muted); text-align: center; }

/* ---------- Gate: countdown and access code ---------- */
.gate { display: none; }
.js .gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 4svh, 48px);
  padding: var(--m);
  background: var(--bg); text-align: center;
}
.js .gate.is-open { display: none; }
.js.is-locked body { overflow: hidden; }
/* the 3D logo: a square stage you can grab; the flat logo stays underneath until the 3D one is ready */
.gate__logo {
  position: relative; width: clamp(170px, min(24vw, 32svh), 340px); aspect-ratio: 1;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.gate__logo.is-dragging { cursor: grabbing; }
.gate__logo img { position: absolute; inset: 14%; width: 72%; height: 72%; transition: opacity 400ms ease; }
.gate__logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gate__logo.is-3d img { opacity: 0; }
.gate__logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 50%; }
.gate__title { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.count { display: flex; gap: clamp(16px, 4vw, 64px); }
.count__unit { display: grid; justify-items: center; gap: 8px; }
.count__num {
  display: block; overflow: clip;
  display: flex; gap: 0.05em;
  font-size: clamp(3.5rem, 13vw, 13rem); font-weight: 600; letter-spacing: 0; line-height: 1.1;
  padding: 0.04em 0.06em;
  font-variant-numeric: tabular-nums;
}
.count__digit { display: inline-block; }
.count__label { font-size: var(--step-small); color: var(--muted); }
.gate__form { display: flex; gap: 8px; width: min(100%, 420px); }
.gate__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--ink); border: 1px solid #262626; border-radius: 0;
  font: inherit; font-size: var(--step-body); letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 300ms ease;
}
.gate__input::placeholder { color: #6a6a6a; letter-spacing: 0; text-transform: none; }
.gate__input:focus-visible { outline: none; border-color: var(--ink); }
.gate__button {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 600;
  transition: transform 140ms var(--ease), background-color 200ms ease;
}
.gate__button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .gate__button:hover { background: #fff; } }
.gate__error { min-height: 1.5em; font-size: var(--step-small); color: #ff5a4f; }
@media (max-width: 600px) { .count { gap: 12px; } .count__num { font-size: 15vw; } }
/* ---------- Hero countdown ---------- */
.name__count { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.name__count span { color: var(--ink); }

/* ---------- Product tag on hover ---------- */
.piece__tag {
  position: absolute; left: 16px; bottom: 14px;
  font-size: var(--step-small); color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity 300ms ease, transform 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .piece:hover .piece__tag { opacity: 1; transform: none; } }
@media (hover: none) { .piece__tag { opacity: 1; transform: none; } }

/* ---------- Notify ---------- */
.notify { display: grid; justify-items: center; gap: 28px; padding: var(--section) var(--m) 0; text-align: center; }
.notify__title { font-size: var(--step-head); max-width: 16ch; }
.notify__lead { max-width: 44ch; color: var(--muted); }
.notify__button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px; overflow: clip;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 600;
  transition: color 400ms var(--ease), transform 140ms ease;
}
.notify__button::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform 500ms var(--ease);
}
.notify__button span { position: relative; }
.notify__button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .notify__button:hover { color: var(--bg); }
  .notify__button:hover::before { transform: none; }
}
/* ---------- Cart icon ---------- */
.bar__cart {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer;
}
.bar__cart svg { fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 400ms var(--ease); }
.bar__count {
  position: absolute; right: 2px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.bar__count[hidden] { display: none; }
.bar__cart.is-bump .bar__count { animation: bump 450ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (hover: hover) and (pointer: fine) { .bar__cart:hover svg { transform: scale(1.12); } }

/* the photo cards open their product sheet */
.piece[data-product] { position: relative; cursor: pointer; }
.piece__open { position: absolute; inset: 0; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; }
.piece__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Product sheet ---------- */
/* the dialog itself is the full-screen dim layer, so it looks the same whether or not the browser gives it the modal layer */
.product, .cart { padding: 0; border: 0; margin: 0; color: var(--ink); background: rgba(0, 0, 0, 0.75); max-width: none; max-height: none; }
.product::backdrop, .cart::backdrop { background: transparent; }
.product[open], .cart[open] { position: fixed; inset: 0; z-index: 80; width: 100vw; height: 100vh; height: 100dvh; display: grid; }
.product[open] { place-items: center; }
.product__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(1100px, calc(100vw - 2 * var(--m))); min-height: min(680px, 86svh); background: var(--bg); }
.product__close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; transition: transform 300ms var(--ease);
}
.product__close svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) { .product__close:hover { transform: rotate(90deg); } }
.product__media { position: relative; background: #3a3a3a; overflow: clip; }
.product__media img { position: absolute; inset: 0; margin: auto; width: 86%; height: 86%; object-fit: contain; }
.product__info { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); padding-top: 64px; overflow-y: auto; max-height: 86svh; }
.product__name { font-size: var(--step-head); }
.product__price { font-size: var(--step-lead); letter-spacing: -0.02em; }
.product__desc { color: var(--muted); max-width: 42ch; }
.product__colors { border: 0; margin: 0; padding: 0; }
.product__colors legend { padding: 0; margin-bottom: 10px; font-size: var(--step-small); color: var(--muted); }
.product__colors legend span { color: var(--ink); }
.product__swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #555; background: var(--c); cursor: pointer;
  outline-offset: 3px; transition: transform 200ms var(--ease);
}
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); }
.swatch:active { transform: scale(0.92); }
.product__specs { display: grid; gap: 10px; margin: 0; font-size: var(--step-small); }
.product__specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.product__specs dt { color: var(--muted); }
.product__specs dd { margin: 0; }
.product__buy { display: flex; gap: 10px; margin-top: auto; }
.qty { display: flex; align-items: center; border: 1px solid #333; }
.qty button { width: 44px; height: 52px; background: none; border: 0; color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.qty button:disabled { color: #555; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.product__add {
  flex: 1; min-height: 52px; padding: 0 24px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: inherit; font-weight: 600;
  transition: transform 140ms ease, background-color 200ms ease;
}
.product__add:active { transform: scale(0.97); }
.product__add:disabled { background: #333; color: #888; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) { .product__add:not(:disabled):hover { background: #fff; } }
.product__note { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 800px) {
  /* on a phone the whole sheet is one scrolling column, so the add button can always be reached */
  .product__inner {
    display: block; width: 100vw;
    height: 100vh; height: 100dvh; min-height: 0; max-height: none;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .product__media { height: 46vh; height: 46svh; }
  .product__info { max-height: none; overflow: visible; padding-top: 28px; padding-bottom: 40px; }
  .product__buy { margin-top: 8px; }
  /* the close button stays on screen while the sheet scrolls */
  .product .product__close { position: fixed; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.55); border-radius: 50%; }
}

/* ---------- Cart panel ---------- */
.cart[open] { justify-items: end; }
.cart__inner { display: flex; flex-direction: column; width: min(440px, 100vw); height: 100vh; height: 100dvh; overscroll-behavior: contain; padding: 24px var(--m) 32px; background: var(--bg); }
.cart__head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.cart__head .product__close { position: static; }
.cart__title { font-size: var(--step-lead); }
.cart__items { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 20px; margin-top: 28px; }
.cart__item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; }
.cart__thumb { aspect-ratio: 4/5; background: #3a3a3a; display: grid; place-items: center; }
.cart__thumb img { width: 88%; height: auto; }
.cart__item h3 { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; }
.cart__item p { font-size: var(--step-small); color: var(--muted); }
.cart__item .qty { margin-top: 8px; width: fit-content; }
.cart__item .qty button { height: 36px; width: 36px; font-size: 16px; }
.cart__remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: var(--step-small); text-decoration: underline; cursor: pointer; align-self: start; }
.cart__empty { margin-top: 28px; color: var(--muted); }
.cart__empty[hidden] { display: none; }
.cart__foot { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid #1d1d1d; }
.cart__total { display: flex; justify-content: space-between; font-size: var(--step-lead); letter-spacing: -0.02em; }
.cart__note { font-size: var(--step-small); color: var(--muted); }
/* colour dots under a card, and a looser crop in the product sheet */
.piece__dots { display: flex; gap: 6px; margin-top: 8px; }
.piece__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #555; }
.product__media img.is-loose { width: 100%; height: 108%; }