/* =========================================================================
   NOIRÉ — stylesheet
   ========================================================================= */

@view-transition {
  navigation: auto;
}

/* Typography: Suisse Int'l SemiBold + Suisse Int'l Mono Regular (commercial — Swiss Typefaces).
   They're used automatically if installed on the machine. To self-host with a licence,
   drop the woff2 files into assets/fonts/ and uncomment:

@font-face { font-family: 'Suisse Intl'; src: url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Suisse Intl Mono'; src: url('../assets/fonts/SuisseIntlMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

   Until then Geist / Geist Mono (free, Google Fonts) stand in. */

:root {
  /* Live palette (RGB triplets) — rewritten every frame by js/bg.js */
  --c-dark: 6 13 23;
  --c-mid: 43 72 98;
  --c-light: 168 192 212;

  --font-sans: 'Suisse Intl', "Suisse Int'l", 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Suisse Intl Mono', "Suisse Int'l Mono", 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 2.1vw, 40px);
  --cap-h: 48px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- base -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: rgb(var(--c-mid));
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none; /* custom rail instead (js/scrollbar.js) */
}
html::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.mono {
  font-family: var(--font-mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
::selection {
  background: rgb(var(--c-light));
  color: rgb(var(--c-dark));
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
html.is-locked {
  overflow: hidden;
}

/* Background canvas (+ CSS fallback when WebGL is unavailable) */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}
html.no-webgl #bg {
  display: none;
}
html.no-webgl body {
  background:
    var(--grain) 0 0 / 180px,
    radial-gradient(120% 90% at 88% 6%, rgb(var(--c-light)) 0%, transparent 55%),
    radial-gradient(90% 80% at 12% 88%, rgb(var(--c-dark)) 0%, transparent 62%),
    rgb(var(--c-mid));
  background-attachment: fixed;
  background-blend-mode: soft-light, normal, normal, normal;
}

/* Shared glass surface */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.07));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 0.36);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    0 22px 50px -26px rgb(0 0 0 / 0.6);
}

/* ============================================================== HEADER == */
.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  padding: clamp(14px, 3vh, 28px) var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  /* No view-transition-name here: it would make the header a backdrop root and
     kill the backdrop-filter blur on the glass capsules. */
}
.site-header > * {
  pointer-events: auto;
}
.capsules {
  position: relative;
  display: flex;
  align-items: center;
}

/* Frosted glass capsule: mostly clear, hairline light-catching edge, soft lift */
.capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--cap-h);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.19), rgb(255 255 255 / 0.06));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    0 8px 24px -14px rgb(0 0 0 / 0.45);
}
/* Gradient hairline border (brighter where light hits the top-left) */
.capsule::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.22) 32%, rgb(255 255 255 / 0.08) 62%, rgb(255 255 255 / 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.capsule-logo {
  z-index: 1;
  padding: 0 25px;
  color: #fff;
  text-decoration: none;
}
.wordmark {
  display: block;
  height: 18px;
  width: auto;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.12));
}
.capsule-menu {
  z-index: 2;
  margin-left: 5px;
  padding: 0 6px 0 10px;
}
.cart-count {
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 400 13px/1 var(--font-mono);
  color: rgb(var(--c-dark));
  background: rgb(255 255 255 / 0.92);
}
.cart-count.bump {
  animation: bump 0.7s var(--ease);
}
@keyframes bump {
  30% {
    transform: scale(1.32);
  }
}
.menu-links {
  width: 0;
  overflow: hidden;
  transition: width 0.85s var(--ease);
}
.menu-links-inner {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 14px;
  padding: 0 8px 0 12px;
  white-space: nowrap;
  visibility: hidden;
  transition: visibility 0s 0.85s;
}
.menu-open .menu-links-inner {
  visibility: visible;
  transition: none;
}
.menu-links a {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 4px 0 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  opacity: 0;
  transform: translateX(-12px);
  filter: blur(5px);
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease),
    filter 0.3s,
    background-size 0.45s var(--ease);
}
.menu-open .menu-links a {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(0.14s + var(--i) * 0.05s), calc(0.14s + var(--i) * 0.05s), calc(0.14s + var(--i) * 0.05s), 0s;
}
.menu-links a:hover,
.menu-links a[aria-current='page'] {
  background-size: 100% 1.5px;
}
.menu-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.plus-icon,
.x-icon {
  position: relative;
  width: 18px;
  height: 18px;
  transition: transform 0.75s var(--ease);
}
.plus-icon i,
.x-icon i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
}
.plus-icon i:last-child,
.x-icon i:last-child {
  transform: rotate(90deg);
}
.is-open .plus-icon,
.x-icon {
  transform: rotate(135deg);
}
.menu-toggle:hover .plus-icon {
  transform: rotate(90deg);
}
.is-open .menu-toggle:hover .plus-icon {
  transform: rotate(225deg);
}

/* ------------------------------------------------------------ currency -- */
.currency {
  position: relative;
  margin-top: 8px;
}
.currency-btn {
  display: inline-flex;
  gap: 0.6em;
  padding: 5px 7px 4px;
  border-radius: 2px;
  font: 400 14px/1.2 var(--font-mono);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.2);
  outline: 1.5px solid transparent;
  outline-offset: 0;
  transition:
    outline-color 0.25s,
    box-shadow 0.25s;
}
.currency-btn:hover,
.currency-btn:focus-visible,
.currency-btn[aria-expanded='true'] {
  outline: 1.5px solid #fff;
  box-shadow: 0 0 0 3px rgb(var(--c-dark) / 0.7);
}
.currency-btn bdi,
.cur-sym {
  unicode-bidi: isolate;
}
.currency-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(350px, calc(100vw - 2 * var(--gutter)));
  border-radius: 8px;
  overflow: hidden;
  color: rgb(var(--c-dark));
  background: rgb(240 246 250 / 0.66);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 70px -24px rgb(0 0 0 / 0.55);
  transform-origin: 100% 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition:
    opacity 0.22s,
    transform 0.4s var(--ease);
}
.currency-panel.is-open {
  opacity: 1;
  transform: none;
}
.cur-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px 10px 14px;
  border-bottom: 1px solid rgb(var(--c-dark) / 0.14);
  cursor: text;
}
.cur-icon {
  flex: none;
  width: 15px;
  height: 15px;
  opacity: 0.6;
}
.cur-input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 0;
  outline: 0;
}
.cur-input::placeholder {
  color: rgb(var(--c-dark) / 0.45);
}
.cur-clear {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  background: rgb(var(--c-dark) / 0.1);
}
.cur-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  max-height: min(56vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--c-dark) / 0.35) transparent;
}
.cur-group {
  padding: 12px 14px 5px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: rgb(var(--c-dark) / 0.5);
}
.cur-opt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 14px;
  font: 500 14px/1.2 var(--font-mono);
  cursor: pointer;
}
.cur-opt.is-active {
  background: rgb(var(--c-dark) / 0.09);
}
.cur-main {
  flex: none;
  display: inline-flex;
  gap: 2px;
  min-width: 7ch;
}
.cur-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgb(var(--c-dark) / 0.55);
}
.cur-opt[aria-selected='true'] .cur-main::after {
  content: '●';
  margin-left: 6px;
  font-size: 7px;
  align-self: center;
}
.cur-opt mark {
  color: inherit;
  background: rgb(var(--c-mid) / 0.28);
  border-radius: 2px;
}
.cur-empty {
  padding: 22px 14px;
  font: 500 12px/1.4 var(--font-mono);
  color: rgb(var(--c-dark) / 0.6);
}

/* ================================================================ RAIL == */
.rail {
  position: fixed;
  z-index: 70;
  top: 12px;
  bottom: 12px;
  right: 5px;
  width: 9px;
  border-radius: 999px;
  transition:
    opacity 0.4s,
    width 0.3s var(--ease),
    background-color 0.3s;
}
.rail:hover,
.rail.is-drag {
  width: 12px;
  background: rgb(var(--c-dark) / 0.18);
}
.rail.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.rail-thumb {
  position: absolute;
  inset: 0 0 auto;
  border-radius: 999px;
  cursor: grab;
  touch-action: none;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 60%), color-mix(in oklab, rgb(var(--c-light)) 82%, #fff);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.55),
    0 0 0 1px rgb(var(--c-dark) / 0.35),
    0 4px 14px rgb(var(--c-dark) / 0.45);
  opacity: 0.75;
  transition: opacity 0.35s;
}
.rail:hover .rail-thumb,
.rail.is-active .rail-thumb,
.rail.is-drag .rail-thumb {
  opacity: 1;
}
.rail.is-drag .rail-thumb {
  cursor: grabbing;
}
@media (hover: none) {
  .rail {
    width: 5px;
    opacity: 0;
  }
  .rail.is-active {
    opacity: 1;
  }
}

/* ================================================================ SHOP == */
.scatter {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip; /* hover swell / labels never widen the page */
}
.item {
  position: absolute;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    translate 1.3s var(--ease) var(--d, 0s);
}
.item.is-in {
  opacity: 1;
  translate: 0 0;
}
.item:focus-visible {
  outline: none;
}
.item-inner {
  display: block;
  will-change: transform;
}
.item-media {
  display: block;
}
.item-media img {
  width: 100%;
  height: auto;
  transform-origin: 50% 55%;
  transition: transform 0.9s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.item:not(.is-sold):hover .item-media img,
.item:not(.is-sold):focus-visible .item-media img {
  transform: scale(1.1);
}
/* Sold out: always greyed, never clickable */
.item.is-sold {
  cursor: default;
}
.item.is-sold .item-media img {
  filter: grayscale(1) contrast(0.85) brightness(1.08);
  opacity: 0.5;
}
.item-tag {
  --tx: -50%;
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 12px;
  display: flex;
  gap: 10px;
  padding: 6px 8px 5px;
  white-space: nowrap;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  border-radius: 2px;
  color: rgb(var(--c-dark));
  background: rgb(255 255 255 / 0.92);
  opacity: 0;
  translate: var(--tx) 8px;
  pointer-events: none;
  transition:
    opacity 0.3s,
    translate 0.5s var(--ease);
}
/* Items near the page edges anchor their label to the outer side (set in home.js). */
.item[data-side='l'] .item-tag {
  --tx: 0%;
  left: 0;
}
.item[data-side='r'] .item-tag {
  --tx: 0%;
  left: auto;
  right: 0;
}
.item-price {
  opacity: 0.65;
}
.item:not(.is-sold):hover .item-tag,
.item:not(.is-sold):focus-visible .item-tag,
.item.is-sold:focus-visible .item-tag {
  opacity: 1;
  translate: var(--tx) 0;
}
@media (hover: none) {
  .item-tag {
    opacity: 1;
    translate: var(--tx) 0;
    width: max-content;
    max-width: 44vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-top: 8px;
    font-size: 9.5px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    background: rgb(255 255 255 / 0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .item.is-sold .item-tag {
    background: #fff;
    color: rgb(var(--c-dark));
  }
}

/* Cursor-following tag on sold-out items */
.cursor-tag {
  position: fixed;
  z-index: 80;
  left: 0;
  top: 0;
  pointer-events: none;
  padding: 6px 7px 5px;
  border-radius: 1px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.05em;
  color: rgb(var(--c-dark));
  background: #fff;
  box-shadow: 0 8px 22px -6px rgb(0 0 0 / 0.35);
  opacity: 0;
  translate: -8px 0;
  filter: blur(4px);
  transition:
    opacity 0.35s var(--ease),
    translate 0.5s var(--ease),
    filter 0.35s var(--ease);
  will-change: transform, opacity;
}
.cursor-tag.is-on {
  opacity: 1;
  translate: 0 0;
  filter: none;
}

.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 36px var(--gutter) 30px;
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.78);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================= PRODUCT == */
.pdp {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.pdp-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
}
.pdp-visual {
  position: absolute;
  inset: 0;
  animation: hover-float 7s ease-in-out infinite;
}
@keyframes hover-float {
  50% {
    translate: 0 -9px;
  }
}
.pdp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pdp-hero {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  view-transition-name: hero;
}
.pdp-hero.is-visible {
  opacity: 1;
}
.pdp-wipe {
  position: absolute;
  pointer-events: none;
  animation: wipe-in 1.1s var(--ease-io) forwards;
}
@keyframes wipe-in {
  from {
    clip-path: inset(0 0 100% 0);
    filter: blur(6px);
  }
  to {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}
.pdp-panel {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 36px);
  width: min(470px, 34vw);
  display: grid;
  gap: 14px;
  animation: rise 1s var(--ease) 0.15s both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}
.pdp-card {
  padding: 18px 16px 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
}
.pdp-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(24px, 2vw, 33px);
  line-height: 1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.pdp-desc {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: rgb(255 255 255 / 0.9);
}
.pdp-rule {
  height: 1px;
  margin: 22px 0 18px;
  border: 0;
  background: rgb(255 255 255 / 0.32);
}
.pdp-color {
  display: flex;
  gap: 16px;
  font: 500 16px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.pdp-color-name {
  transition: opacity 0.2s;
}
.pdp-color-name.is-preview {
  opacity: 0.6;
}
.pdp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 13px;
}
.swatch {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow:
    inset 0 0 0 1.5px rgb(0 0 0 / 0.35),
    inset 0 3px 4px rgb(255 255 255 / 0.35);
  transition: transform 0.4s var(--ease);
}
.swatch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  opacity: 0;
  scale: 0.75;
  transition:
    opacity 0.3s,
    scale 0.5s var(--ease);
}
.swatch[aria-checked='true']::after {
  opacity: 1;
  scale: 1;
}
.swatch:hover {
  transform: scale(1.14);
}
.swatch.is-sold {
  cursor: not-allowed;
  filter: grayscale(0.85);
  opacity: 0.45;
}
.swatch.is-sold:hover {
  transform: none;
}
.swatch.is-sold::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1.5px;
  background: #fff;
  rotate: 45deg;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.25);
}
.pdp-status {
  display: inline-block;
  padding: 4px 5px 3px;
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.05em;
  color: rgb(var(--c-dark));
  background: #fff;
}
.pdp-status.is-sold {
  color: #fff;
  background: transparent;
  outline: 1.5px solid #fff;
  outline-offset: -1.5px;
}
.pdp-add {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.005em;
  color: color-mix(in oklab, rgb(var(--c-dark)) 70%, rgb(var(--c-mid)));
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 18px 44px -20px rgb(0 0 0 / 0.65);
  transition:
    transform 0.45s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.pdp-add:hover:not(:disabled) {
  transform: translateY(-2px);
}
.pdp-add:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}
.pdp-add:disabled {
  cursor: not-allowed;
  color: rgb(255 255 255 / 0.85);
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.5);
}
.pdp-add.is-added {
  color: #fff;
  background: rgb(var(--c-dark) / 0.9);
}
.pdp-add-label {
  position: relative;
  overflow: hidden;
}
.pdp-price {
  font-weight: 600;
}

/* ========================================================== WALLPAPERS == */
.wp-space {
  position: relative;
}
.wp-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 118% 8%; /* vanishing point off the top-right → frames recede into the corner */
}
.wp-frames {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
/* Frames are desktop wallpapers (16 : 10) */
.wp {
  --fw: min(64vw, 64vh * 1.6);
  --fh: calc(var(--fw) / 1.6);
  --fr: 14px;
}
@media (max-width: 720px) {
  .wp {
    --fw: 86vw;
  }
}
.wp-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fw);
  height: var(--fh);
  margin: calc(var(--fh) / -2) 0 0 calc(var(--fw) / -2);
  border-radius: var(--fr);
  overflow: hidden;
  background: rgb(var(--c-dark));
  box-shadow:
    0 50px 90px -40px rgb(0 0 0 / 0.75),
    0 0 0 1px rgb(255 255 255 / 0.18);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    width 0.9s var(--ease),
    height 0.9s var(--ease),
    margin 0.9s var(--ease),
    border-radius 0.9s var(--ease);
}
.wp-frame:focus-visible {
  outline-offset: 6px;
}
.wp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.wp-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain) 0 0 / 180px;
  opacity: 0.09;
  pointer-events: none;
}
.wp-shade {
  position: absolute;
  inset: 0;
  background: rgb(var(--c-dark));
  opacity: var(--dim, 0);
  pointer-events: none;
}
/* full-screen preview */
.wp.is-full .wp-frame.is-active {
  --fw: 100vw;
  --fh: 100vh;
  --fr: 0px;
}
.wp.is-full .wp-frame:not(.is-active) {
  opacity: 0 !important;
}

.wp-hud {
  position: fixed;
  z-index: 5;
  inset: auto var(--gutter) clamp(18px, 4vh, 34px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  pointer-events: none;
  transition:
    opacity 0.5s,
    translate 0.7s var(--ease);
}
.wp-hud > * {
  pointer-events: auto;
}
.wp.is-full .wp-hud {
  opacity: 0;
  translate: 0 24px;
}
.wp.is-full .wp-hud > * {
  pointer-events: none;
}
.wp-index {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.12em;
}
.wp-name {
  margin: 10px 0 8px;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
  white-space: nowrap;
}
.wp-res,
.wp-hint {
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: 0.09em;
  color: rgb(255 255 255 / 0.78);
}
.wp-hint {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.55);
}
.wp-mini {
  display: flex;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
}
.wp-mini button {
  width: 46px;
  height: 30px;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0.5;
  outline: 1.5px solid transparent;
  outline-offset: -1.5px;
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease),
    outline-color 0.3s;
}
.wp-mini button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-mini button:hover {
  opacity: 0.85;
}
.wp-mini button[aria-current='true'] {
  opacity: 1;
  outline-color: #fff;
  transform: translateY(-4px);
}
.wp-actions {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px 10px;
  border-radius: 999px;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.btn-glass:hover {
  color: rgb(var(--c-dark));
  background: #fff;
  transform: translateY(-2px);
}
.btn-glass svg {
  width: 12px;
  height: 12px;
}

/* Download sheet: pick MOBILE / TABLET / DESKTOP */
.dlm {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
}
.dlm-row[hidden],
.dlm[hidden] {
  display: none;
}
.dlm-scrim {
  position: absolute;
  inset: 0;
  background: rgb(var(--c-dark) / 0.35);
  opacity: 0;
  transition: opacity 0.45s;
}
.dlm-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 32px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.08));
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 40px 90px -40px rgb(0 0 0 / 0.6);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 0.35s,
    transform 0.6s var(--ease);
}
.dlm.is-open .dlm-scrim,
.dlm.is-open .dlm-panel {
  opacity: 1;
}
.dlm.is-open .dlm-panel {
  transform: none;
}
.dlm-panel::before,
.dlm-row::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.15) 30%, rgb(255 255 255 / 0.06) 65%, rgb(255 255 255 / 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dlm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dlm-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.dlm-close {
  width: 34px;
  height: 34px;
  margin-right: -8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.dlm-close:hover {
  background: rgb(255 255 255 / 0.14);
}
.dlm-close .x-icon {
  width: 18px;
  height: 18px;
}
.dlm-rows {
  display: grid;
  gap: 16px;
}
.dlm-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  background: rgb(255 255 255 / 0.07);
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 0.5);
  transition:
    background-color 0.3s,
    transform 0.45s var(--ease);
}
.dlm-row:hover,
.dlm-row:focus-visible {
  background: rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}
.dlm-thumb {
  flex: none;
  height: 124px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.5);
}
.dlm-thumb img {
  height: 100%;
  width: auto;
  display: block;
}
.dlm-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dlm-label svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  transition: transform 0.45s var(--ease);
}
.dlm-row:hover .dlm-label svg {
  transform: translateY(3px);
}
.dlm-note {
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgb(255 255 255 / 0.85);
}
@media (max-width: 720px) {
  .dlm-panel {
    padding: 20px 18px 18px;
  }
  .dlm-thumb {
    height: 86px;
  }
  .dlm-rows {
    gap: 12px;
  }
}

/* ============================================================== DRAWER == */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgb(var(--c-dark) / 0.35);
  opacity: 0;
  transition: opacity 0.5s;
}
.drawer-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.1));
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  translate: calc(100% + 24px) 0;
  transition: translate 0.6s var(--ease);
}
.drawer.is-open .drawer-scrim {
  opacity: 1;
}
.drawer.is-open .drawer-panel {
  translate: 0 0;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
}
.drawer-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.drawer-count {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
}
.drawer-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.drawer-close:hover {
  background: rgb(255 255 255 / 0.15);
}
.drawer-items {
  flex: 1;
  margin: 0;
  padding: 8px 20px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.4) transparent;
}
.drawer-empty {
  padding: 40px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgb(255 255 255 / 0.75);
}
.ci {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
}
.ci-thumb {
  width: 76px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.ci-thumb img {
  max-width: 84%;
  max-height: 78%;
  object-fit: contain;
}
.ci-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ci-name {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.ci-var {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgb(255 255 255 / 0.75);
}
.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
}
.ci-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5);
  transition: background-color 0.25s;
}
.ci-qty button:hover {
  background: rgb(255 255 255 / 0.18);
}
.ci-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.ci-price {
  font-size: 13px;
}
.ci-remove {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.65);
}
.ci-remove:hover {
  color: #fff;
  text-decoration: underline;
}
.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}
.drawer-sub {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.drawer-note {
  margin: 8px 0 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.6);
}
.drawer-checkout {
  width: 100%;
  height: 58px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  color: rgb(var(--c-dark));
  background: rgb(255 255 255 / 0.95);
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s;
}
.drawer-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
}
.drawer-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.drawer-checkout.is-note {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

/* =============================================================== PAGES == */
.page {
  min-height: 100vh;
  padding: clamp(120px, 18vh, 170px) var(--gutter) 70px;
  display: grid;
  justify-items: center;
  align-content: start;
}
.page-card {
  width: min(780px, 100%);
  padding: clamp(22px, 3vw, 38px);
  border-radius: 10px;
  animation: rise 1s var(--ease) both;
}
.page-kicker {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: rgb(255 255 255 / 0.75);
}
.page-title {
  margin: 14px 0 10px;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.page-lede {
  max-width: 52ch;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.88);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.info-cell {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border-radius: 7px;
  text-decoration: none;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
  transition:
    background-color 0.3s,
    transform 0.45s var(--ease);
}
a.info-cell:hover {
  background: rgb(255 255 255 / 0.16);
  transform: translateY(-3px);
}
.info-cell .mono {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgb(255 255 255 / 0.7);
}
.info-cell strong {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}
.acc-list {
  margin-top: 28px;
  border-bottom: 1px solid rgb(255 255 255 / 0.28);
}
.acc {
  border-top: 1px solid rgb(255 255 255 / 0.28);
}
.acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  text-align: left;
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.005em;
}
.acc-btn .plus-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.acc.is-open .plus-icon {
  transform: rotate(135deg);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease);
}
.acc.is-open .acc-panel {
  grid-template-rows: 1fr;
}
.acc-panel > div {
  overflow: hidden;
}
.acc-panel p {
  max-width: 62ch;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.88);
}
.acc-panel p:last-child {
  margin-bottom: 22px;
}

/* ========================================================== RESPONSIVE == */
@media (max-width: 860px) {
  .pdp-stage {
    height: 66vh;
    height: 66svh;
  }
  .pdp-panel {
    position: relative;
    inset: auto;
    width: auto;
    margin: 16px var(--gutter) 40px;
  }
  .wp-hud {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wp-mini {
    display: none;
  }
  .wp-actions {
    justify-self: start;
    align-items: flex-start;
  }
}

/* Mobile shop: one product per screen, snapping one at a time */
html.snap-y {
  scroll-snap-type: y mandatory;
}
.scatter.is-stack .item {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
html.snap-y .site-footer {
  scroll-snap-align: end;
}
.scatter.is-stack .item-tag {
  margin-top: 22px;
  max-width: 80vw;
  font-size: 11px;
}

@media (max-width: 720px) {
  :root {
    --cap-h: 42px;
  }
  .site-header {
    padding-top: 12px;
  }
  .capsule-logo {
    padding: 0 16px;
  }
  .wordmark {
    height: 13.5px;
  }
  .capsule-menu {
    padding: 0 3px 0 6px;
  }
  .cart-count {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
  .plus-icon {
    width: 16px;
    height: 16px;
  }
  /* Mobile: the menu drops down as a glass sheet beneath the capsules */
  .menu-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: calc(100vw - 2 * var(--gutter));
    display: grid;
    grid-template-rows: 0fr;
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.12));
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    box-shadow:
      inset 0 0 0 1.5px rgb(255 255 255 / 0.55),
      0 20px 40px -18px rgb(0 0 0 / 0.5);
    opacity: 0;
    transition:
      grid-template-rows 0.7s var(--ease),
      opacity 0.35s;
  }
  .menu-open .menu-links {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .menu-links-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 20px;
  }
  .menu-open .menu-links-inner {
    padding: 16px 20px 18px;
  }
  .menu-links-inner {
    transition:
      visibility 0s 0.7s,
      padding 0.7s var(--ease);
  }
  .menu-open .menu-links-inner {
    transition: padding 0.7s var(--ease);
  }
  .menu-links a {
    font-size: 22px;
  }
  .currency {
    margin-top: 7px;
  }
  .currency-btn {
    font-size: 14px;
  }
  .wp-name {
    font-size: 30px;
  }
}
