:root {
  --black: #050505;
  --black-2: #0a0a0a;
  --paper: #f2f0ea;
  --white: #fff;
  --blue: #99a5a6;
  --acid: #d5d6d1;
  --signal: #887d77;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --muted: rgba(255, 255, 255, 0.62);
  --header: 4.75rem;
  --max: 90rem;
  --spot-x: 67%;
  --spot-y: 48%;
  --spot-r: 20rem;
}

html.diy-route,
html.diy-route body {
  overscroll-behavior-x: none;
}

.noscript-notice {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
  margin: auto;
  padding: 1rem 1.2rem;
  color: #fff;
  background: #11110f;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
}

.noscript-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Feishu master catalog: 68 materials / 215 purchasable size variants. */
#braceletBuilder .category-tabs {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(76, 71, 64, 0.28) transparent;
  scrollbar-width: thin;
}

#braceletBuilder .category-tab {
  position: relative;
  flex: 0 0 auto;
  padding-left: 1.55rem;
}

#braceletBuilder .category-tab::after {
  position: absolute;
  top: 50%;
  left: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--category-accent, #8f8a80);
  border: 1px solid rgba(20, 19, 17, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  content: "";
  transform: translateY(-50%);
}

#braceletBuilder .category-tab[data-category="white"] { --category-accent: #dce3e4; }
#braceletBuilder .category-tab[data-category="purple"] { --category-accent: #7550a9; }
#braceletBuilder .category-tab[data-category="yellow"] { --category-accent: #c89b38; }
#braceletBuilder .category-tab[data-category="green"] { --category-accent: #51866e; }
#braceletBuilder .category-tab[data-category="pink"] { --category-accent: #d5839d; }
#braceletBuilder .category-tab[data-category="blue"] { --category-accent: #527ca9; }
#braceletBuilder .category-tab[data-category="black"] { --category-accent: #26282a; }
#braceletBuilder .category-tab[data-category="tiger"] { --category-accent: #9b6936; }
#braceletBuilder .category-tab[data-category="jade"] { --category-accent: #75a98b; }
#braceletBuilder .category-tab[data-category="agate"] { --category-accent: #9d5d54; }
#braceletBuilder .category-tab[data-category="metal"] { --category-accent: #8e8374; }

#braceletBuilder .category-tab.active {
  box-shadow: inset 3px 0 0 var(--category-accent, #191816);
}

#braceletBuilder .library-piece small {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

#braceletBuilder .library-piece small b {
  color: #201f1c;
  font: inherit;
  font-weight: 700;
}

#braceletBuilder .library-bead.catalog-product,
#braceletBuilder .bracelet-piece.catalog-product .piece-face {
  --bead-texture: none;
  --bead-texture-opacity: 0;
  overflow: hidden;
  background: radial-gradient(circle at 33% 24%, rgba(255, 255, 255, 0.9), transparent 26%), var(--piece-color, #d9d9d6) !important;
  border-color: rgba(255, 255, 255, 0.72);
  filter: none;
}

#braceletBuilder .library-bead.catalog-product::after,
#braceletBuilder .bracelet-piece.catalog-product .piece-face::after {
  display: none;
}

#braceletBuilder .catalog-bead-image,
.flying-bead .catalog-bead-image,
.ejected-bead .catalog-bead-image {
  display: block;
  width: 168% !important;
  max-width: none;
  height: 168% !important;
  object-fit: contain;
  filter: drop-shadow(0 0.1rem 0.12rem rgba(32, 28, 23, 0.18));
  transform: translateZ(0);
}

@media (min-width: 1100px) {
  #braceletBuilder.builder-shell {
    grid-template-columns: minmax(0, 1.38fr) minmax(34rem, 0.92fr);
  }

  #braceletBuilder .category-tab {
    min-height: 2.9rem;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 5rem auto auto;
    min-height: 9rem;
    padding: 0.62rem 0.45rem 0.56rem;
    border-radius: 14px;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 4rem);
    height: max(var(--library-size, 2.7rem), 4rem);
  }

  #braceletBuilder .library-piece small b {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.015em;
  }
}

#braceletBuilder .library-piece.shape-spacer-disc small,
#braceletBuilder .library-piece.shape-spacer-tube small,
#braceletBuilder .library-piece.shape-spacer-ornamental small,
#braceletBuilder .library-piece.shape-spacer-bead small {
  flex-wrap: wrap;
  gap: 0.08rem 0.3rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

#braceletBuilder .library-piece.shape-spacer-disc small > span,
#braceletBuilder .library-piece.shape-spacer-tube small > span,
#braceletBuilder .library-piece.shape-spacer-ornamental small > span,
#braceletBuilder .library-piece.shape-spacer-bead small > span {
  flex-basis: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#braceletBuilder .library-piece .piece-spec {
  display: grid;
  gap: 0.05rem;
  justify-items: center;
  width: 100%;
  color: #65615b;
  line-height: 1.12;
}

#braceletBuilder .library-piece .piece-spec-primary,
#braceletBuilder .library-piece .piece-spec-secondary {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
}

#braceletBuilder .library-piece .piece-spec-primary {
  color: #302e2a;
  font-weight: 700;
}

#braceletBuilder .library-piece .piece-spec-secondary {
  font-size: 0.9em;
  letter-spacing: 0.015em;
}

/* Persistent purchase shortcut: one current bracelet, always reachable. */
.quick-cart-button {
  position: fixed;
  z-index: 140;
  top: calc(0.72rem + env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  display: inline-flex;
  min-width: 5.8rem;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.52rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.42);
  color: #fff;
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.quick-cart-button:hover,
.quick-cart-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.quick-cart-button.is-ready {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.quick-cart-icon,
.quick-cart-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.quick-cart-icon svg {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-cart-icon circle {
  fill: currentColor;
  stroke: none;
}

.quick-cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.25rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border: 2px solid #050505;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.quick-cart-button.is-ready .quick-cart-count {
  border-color: #fff;
  background: #050505;
  color: #fff;
}

.quick-cart-total {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-header .header-tools {
  padding-right: 6.8rem;
}


/* Front-stage crop correction: all six characters overlap the upper VY. */
@media (min-width: 640px) {
  .hero.hero-carousel .hero-character[data-hero-index="2"][data-role="front"],
  .hero.hero-carousel .hero-character[data-hero-index="4"][data-role="front"] {
    bottom: -10%;
    height: 106%;
    transform: translate3d(-50%, 0, 0) scale(1.06);
  }

  .hero.hero-carousel .hero-character[data-hero-index="1"][data-role="front"] {
    bottom: -10%;
    height: 105.5%;
    transform: translate3d(-50%, 0, 0) scale(1.055);
  }

  .hero.hero-carousel .hero-character[data-hero-index="0"][data-role="front"],
  .hero.hero-carousel .hero-character[data-hero-index="3"][data-role="front"] {
    bottom: -10%;
    height: 105%;
    transform: translate3d(-50%, 0, 0) scale(1.05);
  }

  .hero.hero-carousel .hero-character[data-hero-index="5"][data-role="front"] {
    bottom: -10%;
    height: 104.5%;
    transform: translate3d(-50%, 0, 0) scale(1.045);
  }
}

/* Product photograph and secure checkout. */
.product-film-photo {
  isolation: isolate;
  background: #020202;
}

.product-film-photo .manifesto-product-shot {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
}

.product-film-photo .manifesto-identity-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-film-photo:hover .manifesto-identity-overlay {
  transform: scale(1.025);
}

.product-film-photo .product-shot-glow {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 24%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 34%, rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.product-film-photo figcaption {
  z-index: 3;
}

body.checkout-open {
  overflow: hidden;
}

body.wrist-guide-open {
  overflow: hidden;
}

.checkout-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f3f1eb;
  color: #151513;
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.checkout-shell {
  display: grid;
  grid-template-rows: 4.5rem minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.checkout-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(20, 20, 18, 0.16);
  background: rgba(246, 244, 239, 0.95);
  backdrop-filter: blur(18px);
}

.checkout-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.65rem;
  color: #11110f;
  text-decoration: none;
}

.checkout-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: invert(1);
}

.checkout-brand span {
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.checkout-header > p {
  margin: 0;
  color: #6e6a63;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.checkout-close {
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(18, 18, 16, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #11110f;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.checkout-close:hover,
.checkout-close:focus-visible {
  background: #11110f;
  color: #fff;
  transform: rotate(5deg);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(24rem, 0.86fr) minmax(32rem, 1.14fr);
  min-height: 0;
}

.checkout-order,
.checkout-form {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.checkout-order {
  position: relative;
  padding: clamp(2rem, 4vw, 4.5rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 36%, #222422, #0b0c0b 55%, #030303 100%);
  background-size: 3rem 3rem, 3rem 3rem, auto;
  color: #f6f4ef;
}

.checkout-order-head h2,
.checkout-form-intro h2 {
  margin: 0.75rem 0 0;
  font-weight: 520;
  letter-spacing: -0.065em;
}

.checkout-order-head h2 {
  font-size: clamp(2.8rem, 4.4vw, 5.5rem);
  line-height: 0.88;
}

.checkout-order .micro {
  color: rgba(255, 255, 255, 0.55);
}

.checkout-preview {
  position: relative;
  display: grid;
  width: min(31rem, 88%);
  margin: clamp(2rem, 4vh, 3.5rem) auto;
  aspect-ratio: 1;
  place-items: center;
  user-select: none;
}

.checkout-preview::before {
  position: absolute;
  z-index: 0;
  right: 8%;
  bottom: 5%;
  left: 8%;
  height: 23%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 72%);
  content: "";
  filter: blur(0.65rem);
  pointer-events: none;
  transform: translateY(18%);
}

.checkout-bracelet {
  position: absolute;
  inset: 5%;
  z-index: 2;
  overflow: visible;
  border-radius: 50%;
  cursor: grab;
  filter: drop-shadow(0 2rem 2rem rgba(0, 0, 0, 0.72));
  outline: 0;
  touch-action: none;
}

.checkout-bracelet:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 0.35rem rgba(255, 255, 255, 0.06);
}

.checkout-bracelet.is-rotating {
  cursor: grabbing;
}

.checkout-ring-thread {
  display: none;
}

.checkout-piece {
  position: absolute;
  top: var(--checkout-y, 50%);
  left: var(--checkout-x, 50%);
  display: block;
  width: var(--checkout-piece-size);
  height: var(--checkout-piece-size);
  opacity: var(--checkout-depth-opacity, 1);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  filter: saturate(1.05) contrast(1.025);
  will-change: top, left, width, height, opacity;
}

.checkout-piece .piece-face {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: var(--checkout-piece-color, #151515);
  box-shadow:
    inset 0.18rem 0.16rem 0.28rem rgba(255, 255, 255, 0.45),
    inset -0.24rem -0.28rem 0.38rem rgba(0, 0, 0, 0.5),
    0 0.08rem 0.08rem rgba(255, 255, 255, 0.08),
    0 var(--checkout-depth-shadow, 0.38rem) calc(var(--checkout-depth-shadow, 0.38rem) * 1.55) rgba(0, 0, 0, 0.7);
  isolation: isolate;
}

.checkout-piece .piece-face::before,
.checkout-piece .piece-face::after {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.checkout-piece .piece-face::before {
  inset: 4% 10% 44% 13%;
  background: radial-gradient(ellipse at 42% 30%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.17) 34%, transparent 72%);
  filter: blur(0.04rem);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.checkout-piece .piece-face::after {
  inset: 58% 15% 7% 22%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0.52;
}

.checkout-piece .piece-face img,
.checkout-piece .character-bead-image,
.checkout-piece .catalog-bead-image,
.checkout-piece .brand-bead-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-preview-mark {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.64);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.checkout-preview-mark img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.checkout-view-controls {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1500;
  display: flex;
  gap: 0.16rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.5);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.checkout-view-controls button {
  position: relative;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.checkout-view-controls button:hover,
.checkout-view-controls button:focus-visible,
.checkout-view-controls button.is-active {
  color: #11110f;
  background: #f6f4ef;
  outline: 0;
  transform: translateY(-1px);
}

.checkout-view-controls button span {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.checkout-view-controls button small {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  padding: 0.28rem 0.38rem;
  color: #11110f;
  border-radius: 3px;
  background: #f6f4ef;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.2rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.checkout-view-controls button:hover small,
.checkout-view-controls button:focus-visible small {
  opacity: 1;
  transform: translate(-50%, 0);
}

.checkout-view-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.checkout-view-hint span {
  display: grid;
  min-width: 2.35rem;
  min-height: 1.4rem;
  padding-inline: 0.35rem;
  place-items: center;
  color: #11110f;
  border-radius: 999px;
  background: #f6f4ef;
  font-size: 0.48rem;
}

.checkout-preview:has(.checkout-bracelet.has-rotated) .checkout-view-hint {
  opacity: 0.42;
}

.checkout-build-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-build-meta span:last-child {
  grid-column: 1 / -1;
}

.checkout-fit-status {
  margin: 0.75rem 0 0;
  color: #f0b0a6;
  font-size: 0.68rem;
  line-height: 1.45;
}

.checkout-fit-status.is-approved {
  color: #9dd6bb;
}

.checkout-design-reference {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font: 600 0.58rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-design-reference code {
  color: #fff;
  font: 700 0.72rem/1.4 "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
}

.checkout-bead-order {
  margin-top: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-bead-order summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
  list-style-position: inside;
  text-transform: uppercase;
}

.checkout-bead-order summary span {
  color: rgba(255, 255, 255, 0.5);
  font: 500 0.55rem/1.4 "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.checkout-bead-order ol {
  display: grid;
  max-height: 13rem;
  margin: 0;
  padding: 0 0 0.8rem;
  overflow-y: auto;
  list-style: none;
  counter-reset: checkout-order;
}

.checkout-bead-order li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: checkout-order;
}

.checkout-bead-order li::before {
  content: counter(checkout-order, decimal-leading-zero);
  grid-row: 1 / 3;
  color: rgba(255, 255, 255, 0.42);
  font: 500 0.56rem/1.5 "IBM Plex Mono", monospace;
}

.checkout-bead-order li strong {
  min-width: 0;
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.checkout-bead-order li span,
.checkout-bead-order li code {
  color: rgba(255, 255, 255, 0.52);
  font: 500 0.54rem/1.45 "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
}

.checkout-bead-order li span {
  grid-column: 3;
  grid-row: 1 / 3;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.checkout-items {
  display: grid;
  max-height: 11.5rem;
  margin-top: 1.25rem;
  overflow-y: auto;
}

.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-item strong {
  font-size: 0.78rem;
  font-weight: 550;
}

.checkout-item span,
.checkout-item small {
  color: rgba(255, 255, 255, 0.53);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.checkout-item span {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #fff;
}

.checkout-totals {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
  font-size: 0.73rem;
}

.checkout-totals dt {
  color: rgba(255, 255, 255, 0.58);
}

.checkout-totals .checkout-discount {
  color: #dcead9;
}

.checkout-totals .checkout-discount dt,
.checkout-totals .checkout-discount dd {
  color: inherit;
  font-weight: 700;
}

.checkout-total {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.checkout-total dt,
.checkout-total dd {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 650;
}

.checkout-tax dd {
  color: rgba(255, 255, 255, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.checkout-form {
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 6vw, 7rem) 5rem;
  background: #f3f1eb;
}

.checkout-form-intro {
  margin-bottom: 2.6rem;
}

.checkout-form-intro h2 {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 0.94;
}

.checkout-form-intro > p:last-child {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: #77736c;
  font-size: 0.84rem;
  line-height: 1.55;
}

.checkout-form fieldset,
.checkout-form .checkout-step {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 1.55rem 0 1.8rem;
  border: 0;
  border-top: 1px solid rgba(20, 20, 18, 0.18);
}

.checkout-form legend,
.checkout-form .checkout-step-title {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  color: #171715;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.checkout-form legend span,
.checkout-form .checkout-step-title span {
  color: #9a958b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.checkout-form .checkout-step > .checkout-status {
  min-height: 0;
  margin: 0;
}

.checkout-fields,
.card-payment-fields {
  display: grid;
  gap: 0.8rem;
}

.checkout-fields.two-columns,
.card-payment-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-fields label,
.card-payment-fields label {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 0.42rem;
}

.checkout-fields .field-wide,
.card-payment-fields .field-wide {
  grid-column: 1 / -1;
}

.checkout-fields label > span,
.card-payment-fields label > span {
  color: #625f59;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: lowercase;
}

.checkout-fields label em {
  color: #aaa59c;
  font-style: normal;
  font-weight: 450;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(23, 23, 20, 0.2);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.55);
  color: #151513;
  font: inherit;
  font-size: 0.8rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: #151513;
  background: #fff;
  box-shadow: 0 0 0 1px #151513;
}

.checkout-options {
  display: grid;
  gap: 0.55rem;
}

.checkout-options > :is(label, div) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 4rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(23, 23, 20, 0.17);
  background: rgba(255, 255, 255, 0.42);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.checkout-options > label {
  cursor: pointer;
}

.checkout-options > div {
  grid-template-columns: 1fr auto;
}

.checkout-options > label:has(input:checked) {
  border-color: #151513;
  background: #fff;
}

.checkout-options input,
.checkout-consent input {
  width: 1rem;
  min-height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: #151513;
}

.checkout-options span {
  display: grid;
  gap: 0.2rem;
}

.checkout-options b {
  font-size: 0.76rem;
  font-weight: 650;
}

.checkout-options small {
  color: #88837a;
  font-size: 0.61rem;
}

.checkout-options strong {
  color: #4f4c47;
  font-size: 0.65rem;
  font-weight: 600;
}

.card-payment-fields {
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(23, 23, 20, 0.17);
  background: rgba(255, 255, 255, 0.42);
}

.card-payment-fields[hidden] {
  display: none;
}

.checkout-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  margin: 0.25rem 0 1rem;
  color: #6b6760;
  font-size: 0.68rem;
  line-height: 1.45;
}

.checkout-pay {
  display: flex;
  width: 100%;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border: 1px solid #11110f;
  background: #11110f;
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.checkout-pay:hover,
.checkout-pay:focus-visible {
  background: #fff;
  color: #11110f;
  transform: translateY(-2px);
}

.checkout-pay span {
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: lowercase;
}

.checkout-pay strong {
  font-size: 0.86rem;
}

.checkout-pay.is-loading {
  opacity: 0.66;
  pointer-events: none;
}

.checkout-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: #8f332d;
  font-size: 0.68rem;
  line-height: 1.45;
}

.checkout-security {
  margin: 0.45rem 0 0;
  color: #67625a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .checkout-dialog {
    overflow-y: auto;
  }

  .checkout-shell {
    display: block;
    height: auto;
    min-height: 100%;
  }

  .checkout-header {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
  }

  .checkout-header > p {
    display: none;
  }

  .checkout-layout {
    display: block;
  }

  .checkout-order,
  .checkout-form {
    overflow: visible;
  }

  .checkout-preview {
    width: min(27rem, 88vw);
  }
}

@media (max-width: 580px) {
  .checkout-header {
    min-height: 4rem;
    padding-inline: 0.9rem;
  }

  .checkout-order,
  .checkout-form {
    padding: 2rem 1rem 3rem;
  }

  .checkout-view-controls {
    top: -0.25rem;
    left: -0.25rem;
  }

  .checkout-view-controls button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .checkout-view-controls button small {
    display: none;
  }

  .checkout-order-head h2 {
    font-size: 3rem;
  }

  .checkout-form-intro h2 {
    font-size: 2.65rem;
  }

  .checkout-fields.two-columns,
  .card-payment-fields {
    grid-template-columns: 1fr;
  }

  .checkout-fields .field-wide,
  .card-payment-fields .field-wide {
    grid-column: auto;
  }

  .checkout-build-meta {
    grid-template-columns: 1fr;
  }

  .checkout-build-meta span:last-child {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-close,
  .checkout-pay,
  .product-film-photo .manifesto-product-shot,
  .product-film-photo .manifesto-identity-overlay {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  #braceletBuilder .category-tab {
    min-height: 2.05rem;
    padding-right: 0.35rem;
    padding-left: 1.25rem;
    font-size: 0.58rem;
  }

  #braceletBuilder .category-tab::after {
    left: 0.5rem;
  }

  #braceletBuilder .library-piece strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #braceletBuilder .library-piece small {
    gap: 0.2rem;
    font-size: 0.5rem;
  }
}

/* The stage itself owns keyboard navigation; character buttons should not flash
   a browser-default rectangular focus ring after pointer selection. */
.hero.hero-carousel .hero-character:focus {
  outline: 0;
}

/* Recording-matched bracelet game */
.studio {
  background: #080808;
  color: #fff;
  padding: 9rem clamp(1rem, 4vw, 4rem);
}

.studio > .section-intro {
  width: min(1120px, 100%);
  margin: 0 auto 2.4rem;
}

.studio > .section-intro h2 {
  max-width: 780px;
  margin: 0.35rem 0 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.studio > .section-intro .micro {
  color: #a6a29a;
}

.builder-shell {
  --paper: #f5f4f0;
  --paper-deep: #eceae4;
  --ink: #181817;
  --muted-ink: #7d7a73;
  --line: #dcd9d1;
  --signal: #9f3e38;
  position: relative;
  display: block;
  width: min(1120px, 100%);
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #292929;
  border-radius: 4px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.builder-shell button {
  color: inherit;
  font: inherit;
}

.builder-app-head {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 0.9rem;
  background: rgba(250, 249, 246, 0.94);
  border-bottom: 1px solid rgba(24, 24, 23, 0.08);
  backdrop-filter: blur(14px);
}

.builder-app-head button,
.builder-actionbar button,
.library-toolbar button,
.function-sheet button,
.guide-sheet button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.builder-back,
.builder-more {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  font-size: 1.2rem;
}

.builder-more {
  justify-self: end;
  font-size: 1.45rem;
  line-height: 1;
}

.builder-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.builder-wordmark img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  filter: invert(1);
}

.builder-statusbar {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  background: rgba(245, 244, 240, 0.97);
}

.wrist-guide-entry {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.guide-button {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  color: #fff !important;
  background: var(--signal) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0.2rem 0.65rem rgba(91, 39, 34, 0.2);
  font-size: 0.82rem !important;
  font-weight: 750;
  cursor: pointer;
}

.guide-button span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 0.78rem;
}

.guide-button:hover {
  background: #7f302c !important;
}

.guide-button:focus-visible {
  outline: 3px solid rgba(159, 62, 56, 0.28);
  outline-offset: 3px;
}

.build-metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted-ink);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.build-metrics span + span {
  position: relative;
}

.build-metrics span + span::before {
  position: absolute;
  top: 0.1rem;
  bottom: 0.1rem;
  left: -0.65rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.builder-tip {
  position: relative;
  z-index: 6;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0.15rem auto 0;
  padding: 0.45rem 0.85rem;
  color: #77736b;
  background: #eeece6;
  border: 1px solid #e1ded6;
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(42, 39, 33, 0.05);
  font-size: 0.7rem;
  text-align: center;
}

.wrist-guide-dialog {
  position: fixed;
  width: min(62rem, calc(100vw - 2rem));
  max-width: none;
  height: min(52rem, calc(100dvh - 2rem));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #1e1d1a;
  background: transparent;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.32);
}

.wrist-guide-dialog::backdrop {
  background: rgba(18, 17, 15, 0.7);
  backdrop-filter: blur(9px);
}

.wrist-guide-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #f8f7f3;
}

.wrist-guide-header {
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1rem;
  background: rgba(248, 247, 243, 0.96);
  border-bottom: 1px solid #dedad1;
  backdrop-filter: blur(12px);
}

.wrist-guide-kicker {
  margin: 0 0 0.28rem;
  color: #8b857b;
  font: 600 0.58rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrist-guide-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.wrist-guide-close {
  display: grid;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: #25231f;
  background: #fff;
  border: 1px solid #d3cec4;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wrist-guide-close:hover {
  background: #eeece6;
}

.wrist-guide-close:focus-visible,
.wrist-guide-done:focus-visible {
  outline: 3px solid rgba(159, 62, 56, 0.3);
  outline-offset: 3px;
}

.wrist-guide-scroll {
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 3vw, 2rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(84, 78, 69, 0.3) transparent;
  scrollbar-width: thin;
  scroll-padding: 1rem 0 max(7rem, env(safe-area-inset-bottom));
}

.wrist-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.72fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding: clamp(1rem, 2.8vw, 1.8rem);
  background: #eeece6;
  border: 1px solid #dcd8cf;
  border-radius: 0.8rem;
}

.wrist-guide-chip {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  color: #7f302c;
  background: rgba(159, 62, 56, 0.08);
  border: 1px solid rgba(159, 62, 56, 0.18);
  border-radius: 999px;
  font: 650 0.58rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrist-guide-intro p {
  max-width: 42rem;
  margin: 0;
  color: #5f5a52;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.65;
}

.wrist-guide-illustration {
  position: relative;
  min-height: 9.5rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(117, 109, 98, 0.1) 50%, transparent 50.3%),
    #f8f7f3;
  border: 1px solid #d6d1c7;
  border-radius: 0.65rem;
}

.wrist-guide-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74%;
  height: 4.2rem;
  background: #e7ddd2;
  border: 1px solid #b9aa9a;
  border-radius: 60% 42% 42% 60%;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.wrist-guide-tape {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 2.25rem;
  height: 6.2rem;
  align-items: stretch;
  justify-content: space-around;
  background: #e6c64b;
  border: 1px solid #8c7627;
  border-radius: 45%;
  box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.82);
  transform: translate(-50%, -50%) rotate(-7deg);
}

.wrist-guide-tape i {
  width: 1px;
  margin-block: 0.55rem;
  background: rgba(43, 37, 19, 0.62);
}

.wrist-guide-illustration b {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  color: #817a70;
  font: 650 0.58rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.wrist-guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wrist-guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid #ddd9d0;
  border-radius: 0.7rem;
}

.wrist-guide-number,
.wrist-guide-section-head > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: #1e1d1a;
  border-radius: 50%;
  font: 650 0.62rem/1 "IBM Plex Mono", monospace;
}

.wrist-guide-step h3,
.wrist-guide-section-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.wrist-guide-step p,
.wrist-guide-step ul,
.wrist-guide-section-head p {
  margin: 0.55rem 0 0;
  color: #686158;
  font-size: 0.76rem;
  line-height: 1.62;
}

.wrist-guide-step ul {
  padding-left: 1.05rem;
}

.wrist-guide-step li + li {
  margin-top: 0.35rem;
}

.wrist-guide-conversion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #22211e;
  border-radius: 0.65rem;
}

.wrist-guide-conversion span {
  color: #fff;
  font: 700 0.68rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrist-guide-conversion p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.55;
}

.wrist-guide-fit-explainer {
  margin-top: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: #fff;
  border: 1px solid #dcd8cf;
  border-radius: 0.75rem;
  scroll-margin-top: 1rem;
}

.wrist-guide-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.wrist-guide-section-head .micro {
  margin: 0 0 0.25rem;
}

.wrist-guide-fit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.wrist-guide-fit-cards article {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  background: #f3f1eb;
  border: 1px solid #dfdbd2;
  border-radius: 0.55rem;
}

.wrist-guide-fit-cards strong {
  font-size: 0.78rem;
}

.wrist-guide-fit-cards b {
  color: #7f302c;
  font: 700 0.68rem/1.3 "IBM Plex Mono", monospace;
}

.wrist-guide-fit-cards small {
  color: #777168;
  font-size: 0.68rem;
}

.wrist-guide-tolerance {
  margin: 0.9rem 0 0;
  color: #6f685f;
  font-size: 0.7rem;
  line-height: 1.55;
}

.wrist-guide-done {
  display: block;
  min-width: 8rem;
  min-height: 2.75rem;
  margin: 1rem 0 0 auto;
  padding: 0.65rem 1.1rem;
  color: #fff;
  background: #1f1e1b;
  border: 1px solid #1f1e1b;
  border-radius: 999px;
  font: 700 0.72rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.wrist-guide-done:hover {
  background: #7f302c;
  border-color: #7f302c;
}

.builder-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(23rem, 43vw, 31rem);
  overflow: visible;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), transparent 46%),
    var(--paper);
}

.bracelet-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: manipulation;
}

.bracelet-canvas::before,
.bracelet-canvas::after {
  display: none;
}

.bracelet-thread {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--thread-size, 9rem);
  height: var(--thread-size, 9rem);
  border: 1px solid rgba(111, 106, 96, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  transition: width 430ms cubic-bezier(0.2, 0.72, 0.2, 1), height 430ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.bracelet-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.builder-shell .bracelet-piece {
  position: absolute;
  z-index: 3;
  display: grid;
  width: var(--bead-size, 2.5rem);
  height: var(--bead-size, 2.5rem);
  min-width: 0;
  padding: 0;
  place-items: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  transition:
    left 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    top 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    width 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    height 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 240ms ease,
    transform 430ms cubic-bezier(0.2, 0.72, 0.2, 1);
  will-change: left, top, transform;
}

.builder-shell .bracelet-piece.is-entering {
  z-index: 7;
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(0.25) rotate(16deg);
  transition: none;
}

.builder-shell .bracelet-piece.is-settling .piece-face {
  animation: bead-settle 520ms cubic-bezier(0.16, 1.25, 0.3, 1);
}

.builder-shell .bracelet-piece.is-removing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) translateY(2rem);
}

.builder-shell .bracelet-piece .piece-face {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 23, 0.16);
  border-radius: 50%;
  background: var(--piece-color, #aaa);
  box-shadow:
    inset 0.18rem 0.18rem 0.3rem rgba(255, 255, 255, 0.55),
    inset -0.22rem -0.26rem 0.38rem rgba(0, 0, 0, 0.27),
    0 0.32rem 0.5rem rgba(57, 52, 44, 0.16);
}

.builder-shell .bracelet-piece .piece-face::after,
.library-piece .library-bead::after {
  position: absolute;
  top: 16%;
  right: 18%;
  width: 28%;
  height: 18%;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  filter: blur(1.5px);
  content: "";
  transform: rotate(-28deg);
}

.builder-shell .bracelet-piece.pack .piece-face,
.builder-shell .bracelet-piece.metal .piece-face {
  border-color: rgba(24, 24, 23, 0.28);
  box-shadow: 0 0.32rem 0.55rem rgba(33, 31, 27, 0.22);
}

.builder-shell .bracelet-piece .piece-face img,
.library-piece .library-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-shell .bracelet-piece .piece-face span {
  font-size: 0.48rem;
  font-weight: 750;
}

.bracelet-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 7.4rem;
  color: #969187;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}

.bracelet-core img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  opacity: 0.22;
  filter: invert(1);
}

.bracelet-core span {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
}

.empty-ring-hint {
  position: absolute;
  top: calc(50% + 2.8rem);
  left: 50%;
  z-index: 2;
  margin: 0;
  color: #aaa59b;
  font-size: 0.66rem;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.bracelet-canvas.empty .empty-ring-hint {
  opacity: 1;
}

.capacity-notice {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1rem;
  color: #24211d;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8d4cb;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(36, 32, 27, 0.13);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -0.8rem);
  transition: opacity 180ms ease, transform 220ms ease;
}

.capacity-notice[hidden] {
  display: none;
}

.capacity-notice strong {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.capacity-notice span {
  margin-top: 0.15rem;
  color: #858077;
  font-size: 0.65rem;
}

.capacity-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.builder-actionbar {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.35rem;
  padding: 0.45rem 0.85rem;
  background: rgba(250, 249, 246, 0.98);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 -5px 18px rgba(36, 32, 27, 0.04);
}

.actionbar-left {
  display: flex;
  gap: 0.4rem;
}

.builder-actionbar button {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.36rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid #cbc7bd;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.action-label-short {
  display: none;
}

.builder-actionbar .save-build-button {
  color: #fff;
  background: var(--signal);
  border-color: var(--signal);
}

.builder-actionbar .save-build-button.is-empty-blocked {
  color: #f4d8d5;
  background: #8f6d68;
  border-color: #8f6d68;
  cursor: help;
  opacity: 0.72;
}

.builder-actionbar .quick-reset-button {
  color: #34312d;
  background: #f8f7f3;
  border-color: #aaa49a;
}

.builder-actionbar .quick-reset-button:hover,
.builder-actionbar .quick-reset-button:focus-visible {
  color: #fff;
  background: #34312d;
  border-color: #34312d;
}

.builder-actionbar .complete-build-button {
  padding-inline: 1rem;
  background: #f8f7f3;
  border-color: #282725;
}

.builder-actionbar .complete-build-button.is-empty-blocked {
  color: #918c83;
  background: #e9e7e1;
  border-color: #c8c4bb;
  cursor: help;
  opacity: 0.78;
}

.button-icon {
  font-size: 0.78rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.builder-controls {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-rows: 2.7rem minmax(17rem, 29vh);
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--paper);
  border: 0;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: #8c887f;
  background: #f8f7f3;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
}

.library-toolbar > div {
  display: flex;
  gap: 0.85rem;
}

.library-toolbar button {
  color: #6f6b64;
  font-size: 0.68rem;
}

.library-body {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  min-height: 0;
}

.category-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0.3rem 0;
  overflow-y: auto;
  background: #efede7;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.category-tab {
  position: relative;
  min-height: 3rem;
  padding: 0 0.85rem;
  color: #908c84;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 520;
  text-align: left;
  text-transform: lowercase;
  cursor: pointer;
}

.category-tab::before {
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0;
  width: 2px;
  background: transparent;
  content: "";
}

.category-tab.active {
  color: #201f1c;
  background: #f8f7f3;
}

.category-tab.active::before {
  background: var(--signal);
}

.piece-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8f7f3;
  overscroll-behavior: contain;
}

.library-piece {
  position: relative;
  display: grid;
  grid-template-rows: 3.5rem auto auto;
  min-width: 0;
  min-height: 6.7rem;
  padding: 0.55rem 0.35rem 0.45rem;
  place-items: center;
  overflow: hidden;
  color: #26241f;
  background: #fff;
  border: 1px solid #e4e1da;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(48, 43, 36, 0.035);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.library-piece:hover,
.library-piece:focus-visible {
  border-color: #b9b4aa;
  box-shadow: 0 8px 20px rgba(48, 43, 36, 0.08);
  outline: 0;
  transform: translateY(-2px);
}

.library-piece:active {
  transform: scale(0.96);
}

.library-piece::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 1rem;
  height: 1rem;
  background: rgba(94, 90, 83, 0.12);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
}

.library-piece.tap-pulse::before {
  animation: library-tap 420ms ease-out;
}

.library-bead {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--library-size, 2.7rem);
  height: var(--library-size, 2.7rem);
  place-items: center;
  overflow: hidden;
  background: var(--piece-color, #aaa);
  border: 1px solid rgba(33, 31, 27, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0.15rem 0.15rem 0.26rem rgba(255, 255, 255, 0.55),
    inset -0.2rem -0.22rem 0.32rem rgba(0, 0, 0, 0.25),
    0 0.2rem 0.35rem rgba(54, 49, 41, 0.14);
}

.library-bead.pack,
.library-bead.metal {
  box-shadow: 0 0.25rem 0.45rem rgba(41, 38, 32, 0.2);
}

.library-bead span {
  font-size: 0.5rem;
  font-weight: 750;
}

.library-piece strong,
.library-piece small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-piece strong {
  align-self: end;
  margin-top: 0.26rem;
  font-size: 0.66rem;
  font-weight: 650;
}

.library-piece small {
  color: #6f6a62;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.library-empty {
  grid-column: 1 / -1;
  margin: 2.5rem auto;
  color: #8b877f;
  font-size: 0.75rem;
}

.function-sheet,
.guide-sheet {
  position: absolute;
  z-index: 30;
  color: var(--ink);
  background: rgba(250, 249, 246, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(31, 28, 24, 0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(0.65rem);
  transition: opacity 180ms ease, transform 220ms ease;
}

.function-sheet {
  right: 0.8rem;
  bottom: calc(29vh + 3.2rem);
  display: grid;
  width: 11rem;
  padding: 0.35rem;
  border-radius: 6px;
}

.function-sheet button {
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 4px;
  font-size: 0.72rem;
  text-align: left;
}

.function-sheet button:hover {
  background: #efede7;
}

.function-sheet button:disabled {
  opacity: 0.35;
}

.guide-sheet {
  top: 7.3rem;
  left: 1rem;
  display: grid;
  width: min(19rem, calc(100% - 2rem));
  padding: 1.25rem;
  border-radius: 6px;
}

.guide-sheet .sheet-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
}

.guide-sheet > span {
  color: var(--signal);
  font-size: 0.65rem;
  font-weight: 700;
}

.guide-sheet > strong {
  margin-top: 0.6rem;
  font-size: 1.45rem;
  text-transform: lowercase;
}

.guide-sheet > p {
  margin: 0.35rem 0 0;
  color: #77736b;
  font-size: 0.74rem;
  line-height: 1.55;
}

.function-sheet.open,
.guide-sheet.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

@keyframes bead-settle {
  0% { transform: scale(0.65) rotate(8deg); }
  60% { transform: scale(1.12) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes library-tap {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(12); }
}

@media (max-width: 720px) {
  .studio {
    padding: 6rem 0 0;
  }

  .studio > .section-intro {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .studio > .section-intro h2 {
    max-width: 20rem;
    font-size: 3.35rem;
  }

  .builder-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .builder-stage {
    height: 22.2rem;
  }

  .builder-controls {
    grid-template-rows: 2.55rem 18.5rem;
  }

  .library-body {
    grid-template-columns: 4.65rem minmax(0, 1fr);
  }

  .category-tab {
    min-height: 2.8rem;
    padding: 0 0.55rem;
    font-size: 0.64rem;
  }

  .piece-library {
    gap: 0.38rem;
    padding: 0.5rem;
  }

  .library-piece {
    grid-template-rows: 2.8rem auto auto;
    min-height: 5.65rem;
    padding: 0.4rem 0.2rem 0.35rem;
  }

  .library-bead {
    width: min(var(--library-size, 2.25rem), 2.6rem);
    height: min(var(--library-size, 2.25rem), 2.6rem);
  }

  .library-piece strong {
    font-size: 0.57rem;
  }

  .library-piece small {
    font-size: 0.52rem;
  }

  .builder-actionbar {
    padding-inline: 0.45rem;
  }

  .builder-actionbar button {
    min-height: 2rem;
    padding-inline: 0.62rem;
    font-size: 0.62rem;
  }

  .builder-actionbar .complete-build-button {
    padding-inline: 0.72rem;
  }

  .build-metrics {
    gap: 0.9rem;
    font-size: 0.64rem;
  }

  .build-metrics span + span::before {
    left: -0.48rem;
  }

  .function-sheet {
    bottom: 21.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-shell .bracelet-piece,
  .bracelet-thread,
  .capacity-notice,
  .function-sheet,
  .guide-sheet {
    transition-duration: 1ms !important;
  }

  .builder-shell .bracelet-piece.is-settling .piece-face,
  .library-piece.tap-pulse::before {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--blue);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

main section {
  scroll-margin-top: var(--header);
}

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

.micro {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header);
  padding: 0 1.25rem;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.scrolled {
  border-color: var(--line-soft);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  font-size: 0.98rem;
  font-weight: 600;
}

.brand img {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 2.6rem;
}

.desktop-nav a,
.header-cta,
.lang-button {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.desktop-nav a,
.header-cta {
  position: relative;
  padding: 0.8rem 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.45rem;
  height: 1px;
  background: #fff;
  transition: right 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.lang-button:hover,
.lang-button:focus-visible,
.lang-button.active {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-tools,
.language-switch {
  display: flex;
  align-items: center;
}

.header-tools {
  justify-content: end;
  gap: 1.2rem;
}

.language-switch {
  gap: 0.1rem;
}

.lang-button {
  min-width: 2rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  padding: 0 0.35rem;
}

.header-cta {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}

.hero-photo,
.hero-shade,
.pointer-ring {
  position: absolute;
}

.hero-photo {
  z-index: -4;
  inset: -3%;
  background-image: url("./assets/crew-vault.webp");
  background-position: center 41%;
  background-size: cover;
  will-change: transform;
}

.hero-photo-base {
  filter: grayscale(0.34) saturate(0.42) brightness(0.54) contrast(1.12);
  transform: scale(1.035) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
}

.hero-photo-focus {
  z-index: -3;
  filter: grayscale(0.12) saturate(0.58) brightness(0.94) contrast(1.08);
  transform: scale(1.055) translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0);
  -webkit-mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y), #000 0, #000 34%, rgba(0, 0, 0, 0.68) 58%, transparent 84%);
  mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y), #000 0, #000 34%, rgba(0, 0, 0, 0.68) 58%, transparent 84%);
}

.hero-shade {
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0, transparent 27%, rgba(0, 0, 0, 0.32) 60%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 58%, rgba(0, 0, 0, 0.2));
}

.pointer-ring {
  z-index: -1;
  left: var(--spot-x);
  top: var(--spot-y);
  width: calc(var(--spot-r) * 1.55);
  aspect-ratio: 1;
  border: 1px solid rgba(39, 184, 255, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 0 7rem rgba(39, 184, 255, 0.06);
  opacity: 0.74;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--header) + 4rem) 0 2.2rem;
}

.hero-heading {
  max-width: 60rem;
}

.hero-heading .micro {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(4.25rem, 10.6vw, 10.5rem);
  font-weight: 500;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 .outline {
  margin-left: 0.37em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.88);
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 55rem;
}

.hero-bottom > p {
  max-width: 17rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  right: 1.25rem;
  bottom: 2.2rem;
  display: grid;
  grid-template-columns: auto 4.5rem auto;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.scroll-cue i {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  min-height: 43rem;
  background: var(--paper);
  color: #080808;
}

.manifesto-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 8rem);
}

.manifesto-copy .micro {
  color: rgba(0, 0, 0, 0.55);
}

.manifesto h2 {
  max-width: 8ch;
  margin: 1.4rem 0 0;
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: 1;
}

.manifesto-line {
  max-width: 23rem;
  margin: 2rem 0 0;
  color: rgba(0, 0, 0, 0.64);
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-link {
  width: max-content;
  margin-top: 2.5rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
}

.product-film {
  position: relative;
  min-height: 40rem;
  margin: 0;
  overflow: hidden;
  background: #0b0d10;
}

.product-film-live {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, #25292a 0, #101213 44%, #070808 76%);
  background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, auto;
}

.product-film-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.055) 48%, transparent 66%);
  pointer-events: none;
}

.product-orbit {
  --editorial-radius: 14rem;
  position: relative;
  width: min(34rem, 76%);
  aspect-ratio: 1;
  animation: editorial-float 7s ease-in-out infinite;
}

.editorial-bracelet {
  position: absolute;
  inset: 4%;
  filter: drop-shadow(0 2.5rem 2.4rem rgba(0, 0, 0, 0.52));
}

.editorial-bracelet::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 4px solid rgba(214, 218, 216, 0.19);
  border-radius: 50%;
  box-shadow: inset 0 0 2rem rgba(255, 255, 255, 0.025), 0 0 1rem rgba(0, 0, 0, 0.65);
}

.editorial-piece {
  --editorial-size: 3.45rem;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--editorial-size);
  height: var(--editorial-size);
  margin: calc(var(--editorial-size) / -2);
  overflow: hidden;
  border: 1px solid rgba(235, 237, 233, 0.28);
  border-radius: 50%;
  background: var(--piece-background, #151515);
  box-shadow: inset -0.4rem -0.55rem 0.85rem rgba(0, 0, 0, 0.55), 0 0.7rem 1rem rgba(0, 0, 0, 0.4);
  transform: rotate(var(--editorial-angle)) translateY(calc(var(--editorial-radius) * -1)) rotate(calc(var(--editorial-angle) * -1));
}

.editorial-piece.member {
  --editorial-size: 4.15rem;
  border-color: rgba(232, 232, 226, 0.5);
  background: linear-gradient(145deg, #9da09d, #2f3231 40%, #8f918e 53%, #202221);
}

/* The shared Canvas renderer now paints the complete round enamel/metal shell
   for character and Pack Mark products. Prevent the retired DOM bead shell
   from showing through as a square behind those canvases in the Library. */
#braceletBuilder .library-bead.canvas-product.pack,
#braceletBuilder .library-bead.canvas-product.metal {
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.editorial-piece > .character-bead-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-shadow {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -3%;
  height: 9%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  filter: blur(1.4rem);
}

@keyframes editorial-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-0.8rem) rotate(2deg); }
}

.product-film img {
  width: 100%;
  height: 100%;
  min-height: 40rem;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-film:hover img {
  transform: scale(1.025);
}

.product-film figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
}

.studio {
  padding: clamp(5rem, 9vw, 9rem) 1.25rem;
  border-top: 1px solid var(--line-soft);
  background: #070707;
}

.section-intro,
.builder-shell,
.pack-heading,
.pack-tabs,
.pack-feature {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
}

.section-intro > p:last-child {
  max-width: 20rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(42rem, 72svh) auto;
  border: 1px solid var(--line);
  background: #0b0b0b;
}

.builder-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 42rem;
  min-width: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(39, 184, 255, 0.04), transparent 45%),
    #080808;
}

.stage-toolbar,
.stage-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.stage-toolbar {
  border-bottom: 1px solid var(--line-soft);
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.history-actions {
  display: flex;
  gap: 0.75rem;
  padding-right: 1.3rem;
  border-right: 1px solid var(--line);
}

.history-actions button {
  min-width: 1.2rem;
  font-size: 1rem;
  line-height: 1;
}

.history-actions button:disabled {
  color: rgba(255, 255, 255, 0.22);
}

.stage-footer {
  border-top: 1px solid var(--line-soft);
}

.stage-toolbar button,
.stage-footer button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  text-transform: uppercase;
}

.bracelet-canvas {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38rem;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.bracelet-canvas.rotating {
  cursor: grabbing;
}

.bracelet-canvas::before,
.bracelet-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bracelet-canvas::before {
  width: 31rem;
  max-width: 84%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.bracelet-canvas::after {
  inset: 8%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.bracelet-thread {
  position: absolute;
  width: min(27rem, 68vw);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 3rem rgba(153, 165, 166, 0.07);
}

.snap-marker {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem;
  border: 1px dashed rgba(229, 230, 225, 0.74);
  border-radius: 50%;
  background: rgba(9, 10, 10, 0.76);
  color: rgba(255, 255, 255, 0.75);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  opacity: 0;
  scale: 0.6;
  transition: opacity 120ms ease, scale 160ms cubic-bezier(0.18, 0.88, 0.2, 1.2);
  pointer-events: none;
}

.snap-marker.visible {
  opacity: 1;
  scale: 1;
}

.bracelet-ring {
  --ring-radius: 13.4rem;
  --ring-rotation: 0deg;
  position: relative;
  z-index: 2;
  width: min(28rem, 70vw);
  aspect-ratio: 1;
  transform: rotate(var(--ring-rotation));
  will-change: transform;
}

.bracelet-piece {
  --angle: 0deg;
  --size: 3.3rem;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--piece-background, #151515);
  box-shadow: inset -0.35rem -0.5rem 0.8rem rgba(0, 0, 0, 0.52), 0 0.55rem 1rem rgba(0, 0, 0, 0.42);
  transform: rotate(var(--angle)) translateY(calc(var(--ring-radius) * -1)) rotate(calc(var(--angle) * -1));
  transition: border-color 150ms ease, scale 150ms ease, box-shadow 150ms ease, transform 180ms cubic-bezier(0.2, 0.76, 0.2, 1);
  touch-action: none;
  user-select: none;
}

.bracelet-piece:hover,
.bracelet-piece:focus-visible,
.bracelet-piece.selected {
  z-index: 3;
  border-color: var(--acid);
  box-shadow: 0 0 0 4px rgba(213, 214, 209, 0.1), inset -0.35rem -0.5rem 0.8rem rgba(0, 0, 0, 0.44);
  scale: 1.08;
}

.bracelet-piece.charm,
.bracelet-piece.metal {
  background: linear-gradient(145deg, #9da19f, #303332 46%, #b8bbb7 54%, #202322);
}

.bracelet-piece.charm {
  --size: 4.15rem;
  border: 0;
  background: transparent;
  box-shadow: 0 0.8rem 1.1rem rgba(0, 0, 0, 0.5);
}

.bracelet-piece .piece-face {
  display: grid;
  place-items: center;
  width: 78%;
  height: 78%;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  font-weight: 500;
  text-transform: uppercase;
}

.bracelet-piece .piece-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.bracelet-piece.charm .piece-face img,
.library-piece[data-category="pack"] .swatch img {
  transform: none;
  transform-origin: center;
}

.bracelet-piece.charm .piece-face {
  width: 100%;
  height: 100%;
  background: transparent;
}

.character-bead-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.empty-ring-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 5.5rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.bracelet-canvas.empty .empty-ring-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bracelet-canvas.delete-ready::before {
  border-color: rgba(139, 91, 82, 0.7);
  box-shadow: inset 0 0 4rem rgba(97, 49, 43, 0.14);
}

.mini-avatar {
  --fur: #bda77f;
  --fur-dark: #655a4c;
  --mark: #d9d7cf;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #171918;
}

.mini-avatar i {
  position: absolute;
  display: block;
  pointer-events: none;
}

.av-head {
  z-index: 2;
  left: 19%;
  top: 19%;
  width: 62%;
  height: 66%;
  border-radius: 46% 46% 42% 42%;
  background: var(--fur);
  box-shadow: inset 0 -0.35rem 0.5rem rgba(0, 0, 0, 0.22);
}

.av-ear {
  z-index: 1;
  top: 15%;
  width: 28%;
  height: 42%;
  background: var(--fur-dark);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.av-ear::after {
  content: "";
  position: absolute;
  inset: 22% 30% 13%;
  background: rgba(80, 61, 58, 0.48);
  clip-path: inherit;
}

.av-ear-left { left: 10%; transform: rotate(-12deg); }
.av-ear-right { right: 10%; transform: rotate(12deg); }

.av-eye {
  z-index: 7;
  top: 44%;
  width: 10%;
  height: 9%;
  border-radius: 50%;
  background: #0d0e0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.av-eye::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 16%;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.av-eye-left { left: 32%; }
.av-eye-right { right: 32%; }

.av-mask {
  z-index: 6;
  left: 16%;
  bottom: 7%;
  width: 68%;
  height: 45%;
  border-radius: 48% 48% 44% 44%;
  background: repeating-linear-gradient(90deg, #151716 0 2px, #262a28 2px 3px);
  box-shadow: inset 0 0.35rem 0.5rem rgba(255, 255, 255, 0.025), inset 0 -0.45rem 0.5rem rgba(0, 0, 0, 0.34);
}

.av-cap {
  z-index: 5;
  left: 17%;
  top: 11%;
  width: 66%;
  height: 27%;
  border-radius: 55% 55% 20% 20%;
  background: repeating-linear-gradient(90deg, #161817 0 2px, #2b2e2c 2px 3px);
  box-shadow: inset 0 -0.3rem 0.3rem rgba(0, 0, 0, 0.34);
}

.av-mark {
  z-index: 3;
  left: 40%;
  top: 22%;
  width: 20%;
  height: 32%;
  background: var(--mark);
  clip-path: polygon(50% 0, 100% 34%, 72% 100%, 50% 76%, 28% 100%, 0 34%);
}

.av-muzzle {
  z-index: 6;
  left: 30%;
  bottom: 15%;
  width: 40%;
  height: 30%;
  border-radius: 48%;
  background: var(--fur-dark);
  box-shadow: inset 0 -0.25rem 0.35rem rgba(0, 0, 0, 0.24);
}

.av-muzzle::before {
  content: "";
  position: absolute;
  left: 36%;
  top: 12%;
  width: 28%;
  height: 22%;
  border-radius: 48% 48% 58% 58%;
  background: #171817;
}

.av-glasses {
  z-index: 8;
  left: 19%;
  top: 39%;
  width: 62%;
  height: 21%;
  border: 1px solid rgba(214, 216, 210, 0.78);
  border-radius: 20% 20% 34% 34%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.16), rgba(10, 12, 12, 0.88) 37%, rgba(45, 48, 47, 0.9));
  box-shadow: 0 0.13rem 0.2rem rgba(0, 0, 0, 0.42);
}

.av-glasses::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 1px;
  height: calc(100% + 2px);
  background: rgba(214, 216, 210, 0.65);
}

.mini-avatar.mallow {
  --fur: #bca276;
  --fur-dark: #826c50;
}

.mallow .av-ear {
  top: 27%;
  width: 25%;
  height: 38%;
  border-radius: 60% 30% 60% 50%;
  clip-path: none;
}

.mallow .av-ear-left { left: 8%; transform: rotate(18deg); }
.mallow .av-ear-right { right: 8%; transform: scaleX(-1) rotate(18deg); }
.mallow .av-glasses, .mallow .av-muzzle, .mallow .av-mark { display: none; }

.mini-avatar.bigbro {
  --fur: #73716c;
  --fur-dark: #3e3d3b;
}

.bigbro .av-head { left: 17%; width: 66%; border-radius: 44% 44% 48% 48%; }
.bigbro .av-ear { top: 7%; width: 29%; height: 45%; }
.bigbro .av-cap, .bigbro .av-mask, .bigbro .av-mark { display: none; }
.bigbro .av-muzzle { --fur-dark: #55514b; left: 27%; bottom: 9%; width: 46%; height: 35%; }

.mini-avatar.north {
  --fur: #a5a39c;
  --fur-dark: #363b3c;
  --mark: #e0ded6;
}

.north .av-ear { top: 8%; width: 28%; height: 43%; background: #414646; }
.north .av-head { background: #4b5050; }
.north .av-mark { left: 30%; top: 19%; width: 40%; height: 39%; clip-path: polygon(50% 0, 100% 15%, 75% 100%, 50% 68%, 25% 100%, 0 15%); }
.north .av-cap, .north .av-glasses, .north .av-muzzle { display: none; }

.mini-avatar.lucky {
  --fur: #aa8c68;
  --fur-dark: #4a4139;
}

.lucky .av-head { left: 16%; top: 22%; width: 68%; height: 64%; border-radius: 48%; }
.lucky .av-ear { top: 23%; width: 27%; height: 31%; background: #4d453e; clip-path: polygon(0 0, 100% 22%, 72% 100%, 10% 72%); }
.lucky .av-ear-left { left: 9%; transform: rotate(10deg); }
.lucky .av-ear-right { right: 9%; transform: scaleX(-1) rotate(10deg); }
.lucky .av-cap { left: 20%; top: 10%; width: 60%; }
.lucky .av-muzzle { left: 25%; bottom: 9%; width: 50%; height: 38%; background: #463f39; }
.lucky .av-mask, .lucky .av-glasses, .lucky .av-mark { display: none; }

.mini-avatar.shortcut {
  --fur: #ad7650;
  --fur-dark: #744a35;
  --mark: #dfd7c9;
}

.shortcut .av-ear { top: 5%; width: 34%; height: 51%; }
.shortcut .av-ear-left { left: 4%; transform: rotate(-8deg); }
.shortcut .av-ear-right { right: 4%; transform: rotate(8deg); }
.shortcut .av-head { left: 16%; width: 68%; }
.shortcut .av-mark { top: 22%; height: 28%; }
.shortcut .av-cap { left: 19%; width: 62%; top: 12%; }
.shortcut .av-glasses, .shortcut .av-muzzle { display: none; }

.library-piece[data-category="pack"] .swatch,
.drag-ghost:has(.mini-avatar) {
  background: linear-gradient(145deg, #959894, #2a2d2c 43%, #858884 56%, #1d201f) !important;
}

.library-piece[data-category="pack"] .mini-avatar,
.drag-ghost .mini-avatar {
  width: 82%;
  height: 82%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.editorial-piece .mini-avatar {
  width: 79%;
  height: 79%;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.bracelet-piece.drop-target {
  border-color: var(--blue);
  box-shadow: 0 0 0 7px rgba(153, 165, 166, 0.13), 0 0 2rem rgba(153, 165, 166, 0.24);
  scale: 1.13;
}

.bracelet-piece.preview-before {
  transform: rotate(calc(var(--angle) - 4deg)) translateY(calc(var(--ring-radius) * -1)) rotate(calc(var(--angle) * -1 + 4deg));
}

.bracelet-piece.preview-after {
  transform: rotate(calc(var(--angle) + 4deg)) translateY(calc(var(--ring-radius) * -1)) rotate(calc(var(--angle) * -1 - 4deg));
}

.bracelet-piece.reflow {
  animation: bead-reflow 460ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.bracelet-piece.inserted {
  animation: bead-insert 500ms cubic-bezier(0.18, 0.9, 0.18, 1.2) both;
}

.bracelet-canvas.showcase .bracelet-ring {
  animation: showcase-spin 1350ms cubic-bezier(0.18, 0.78, 0.2, 1) both;
}

.bracelet-canvas.showcase .bracelet-thread {
  border-color: rgba(213, 214, 209, 0.42);
  box-shadow: 0 0 3.5rem rgba(213, 214, 209, 0.12);
}

body.is-dragging .bracelet-thread {
  border-color: rgba(213, 214, 209, 0.34);
}

@keyframes bead-reflow {
  from {
    transform: rotate(var(--from-angle)) translateY(calc(var(--ring-radius) * -1)) rotate(calc(var(--from-angle) * -1));
  }
  to {
    transform: rotate(var(--angle)) translateY(calc(var(--ring-radius) * -1)) rotate(calc(var(--angle) * -1));
  }
}

@keyframes bead-insert {
  0% { opacity: 0; scale: 0.25; }
  62% { opacity: 1; scale: 1.16; }
  100% { opacity: 1; scale: 1; }
}

@keyframes showcase-spin {
  0% { transform: rotate(0deg) scale(1); }
  48% { transform: rotate(190deg) scale(1.045); }
  100% { transform: rotate(360deg) scale(1); }
}

.trash-zone {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  border: 1px solid rgba(136, 125, 119, 0.7);
  border-radius: 3px;
  background: rgba(25, 7, 3, 0.9);
  padding: 0 0.9rem;
  color: #aaa09b;
  opacity: 0;
  transform: translate(-50%, -0.75rem);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
  pointer-events: none;
}

.trash-zone span {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.trash-zone small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
}

body.dragging-ring .trash-zone {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.dragging-ring .trash-zone.hot {
  background: rgba(136, 125, 119, 0.2);
  color: #fff;
}

.bracelet-core {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 8.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.bracelet-core img {
  width: 3.5rem;
  opacity: 0.22;
}

.bracelet-core span {
  position: absolute;
  bottom: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  line-height: 1.35;
  text-align: center;
}

.builder-controls {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) 17rem;
  grid-template-areas:
    "head tabs size"
    "meaning library summary"
    "meaning hint summary";
  min-height: 18rem;
  min-width: 0;
  width: 100%;
  background: #0a0a0a;
}

.control-head,
.category-tabs,
.piece-library,
.meaning-panel,
.size-control,
.builder-summary {
  padding: 1.25rem;
}

.control-head,
.size-control,
.builder-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-head {
  grid-area: head;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.step-number {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.control-head h3 {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.category-tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}

.category-tab {
  min-height: 2.65rem;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: lowercase;
}

.category-tab.active {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.piece-library {
  grid-area: library;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(5.8rem, 7.1rem);
  grid-template-columns: none;
  align-items: start;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.library-piece {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: #0d0d0d;
  padding: 0.65rem;
  text-align: left;
}

.library-piece:hover,
.library-piece:focus-visible,
.library-piece.active {
  border-color: rgba(255, 255, 255, 0.55);
  background: #141414;
}

.library-piece .swatch {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--swatch, #171717);
  box-shadow: inset -0.5rem -0.6rem 0.8rem rgba(0, 0, 0, 0.48);
}

.library-piece[data-category="pack"] .swatch {
  border-radius: 8px;
  background: #090a09 !important;
  box-shadow: none;
}

.library-piece .swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.library-piece small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-hint {
  grid-area: hint;
  align-self: end;
  margin: 0 1.25rem 1rem;
  color: rgba(255, 255, 255, 0.38);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  overflow: hidden;
  border: 2px solid var(--acid);
  border-radius: 50%;
  background: #111;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.52), 0 0 0 7px rgba(213, 214, 209, 0.11);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 100ms ease, scale 100ms ease;
  pointer-events: none;
}

.drag-ghost.active {
  opacity: 1;
  scale: 1;
}

.drag-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.drag-ghost span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.flying-bead,
.scatter-bead {
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--motion-size, 56px);
  height: var(--motion-size, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  pointer-events: none;
  will-change: transform, opacity;
}

.flying-bead img,
.scatter-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-toast {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: 1.5rem;
  min-width: 13rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: rgba(5, 5, 5, 0.9);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.builder-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.is-dragging,
body.is-dragging * {
  cursor: grabbing !important;
}

.meaning-panel {
  grid-area: meaning;
  margin: 0;
  border-left: 2px solid var(--blue);
  border-right: 1px solid var(--line-soft);
  background: rgba(39, 184, 255, 0.055);
}

.meaning-panel span,
.builder-summary span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.meaning-panel p {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.size-control {
  grid-area: size;
  justify-content: space-between;
  margin-top: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.size-control > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.size-options {
  display: flex;
  gap: 0.3rem;
}

.size-options button {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
}

.size-options button.active {
  border-color: var(--acid);
  background: var(--acid);
  color: #050505;
}

.builder-summary {
  grid-area: summary;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  border-top: 0;
  border-left: 1px solid var(--line-soft);
}

.builder-summary .button {
  width: 100%;
}

.builder-summary > div {
  display: grid;
  gap: 0.25rem;
}

.builder-summary strong {
  font-size: 0.84rem;
  font-weight: 500;
}

.pack-section {
  padding: clamp(5rem, 9vw, 9rem) 1.25rem;
  background: var(--paper);
  color: #080808;
}

.pack-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.pack-heading .micro {
  color: rgba(0, 0, 0, 0.48);
}

.pack-heading h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
}

.pack-expanding {
  margin: 0;
  color: rgba(0, 0, 0, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  line-height: 1.6;
  text-transform: lowercase;
}

.pack-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.pack-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  padding: 0 1rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pack-tab:last-child {
  border-right: 0;
}

.pack-tab span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.pack-tab.active {
  background: #0a0a0a;
  color: #fff;
}

.pack-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  min-height: 43rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.pack-portrait {
  position: relative;
  min-height: 43rem;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  background: #131313;
}

.pack-portrait img {
  width: 100%;
  height: 100%;
  min-height: 43rem;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.88) contrast(1.03);
  transition: opacity 180ms ease, transform 700ms ease;
}

.pack-portrait span {
  position: absolute;
  left: 1.25rem;
  bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 500;
  line-height: 1;
}

.pack-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 6rem);
}

.pack-copy .micro {
  color: rgba(0, 0, 0, 0.52);
}

.pack-copy h3 {
  margin: 0.9rem 0 0;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
}

.pack-copy > p:not(.micro) {
  max-width: 25rem;
  margin: 2rem 0 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 1rem;
  line-height: 1.62;
}

.pack-token {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin: 3rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  padding-top: 1rem;
}

.pack-token span {
  color: rgba(0, 0, 0, 0.48);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.pack-token strong {
  font-size: 1rem;
  font-weight: 500;
}

.pack-copy .button-primary {
  border-color: #080808;
  background: #080808;
  color: #fff;
}

.drop-list {
  position: relative;
  min-height: 48rem;
  overflow: hidden;
  background: #050505;
}

.drop-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), #050505 74%), url("./assets/crew-city.webp");
  background-position: center 40%;
  background-size: cover;
  filter: saturate(0.7) brightness(0.6);
}

.drop-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 48rem;
  margin: 0 auto;
  padding-right: clamp(1rem, 3vw, 3.5rem);
  padding-left: 41%;
}

.drop-content > * {
  min-width: 0;
  max-width: 100%;
}

.drop-content h2 {
  margin: 1.3rem 0 0;
  font-size: clamp(3.8rem, 6.2vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.77;
}

.drop-content h2 strong {
  color: inherit;
  font: inherit;
}

.drop-content h2 span {
  display: inline-block;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.82);
}

.drop-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
}

.drop-meta p {
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.drop-meta span {
  max-width: 12rem;
  color: rgba(255, 255, 255, 0.48);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.vip-coming-soon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.4rem;
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.vip-coming-soon > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--acid);
  font: 600 0.62rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

.vip-coming-soon strong {
  font-size: 1rem;
  text-transform: lowercase;
}

.vip-coming-soon p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.site-footer {
  display: grid;
  grid-template-areas:
    "brand policies top"
    "tagline policies top";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 10rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line-soft);
  background: #050505;
}

.footer-brand {
  grid-area: brand;
  justify-self: start;
}

.site-footer p,
.footer-top,
.footer-policy-links a {
  color: rgba(255, 255, 255, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: lowercase;
}

.site-footer p {
  grid-area: tagline;
  margin: 0;
}

.footer-policy-links {
  grid-area: policies;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.2rem;
  max-width: 38rem;
}

.footer-policy-links a,
.footer-top {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  transition: color 160ms ease;
}

.footer-policy-links a:hover,
.footer-policy-links a:focus-visible,
.footer-top:hover,
.footer-top:focus-visible {
  color: var(--acid);
}

.footer-top {
  grid-area: top;
  justify-self: end;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
}

.js .reveal.in-view,
.js.reveal-fallback .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .manifesto,
  .builder-shell,
  .pack-feature {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    min-height: 34rem;
  }

  .product-film,
  .product-film img {
    min-height: 34rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child {
    max-width: 28rem;
  }

  .builder-stage {
    min-height: 43rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .builder-controls {
    grid-template-columns: 13rem minmax(0, 1fr);
    grid-template-areas:
      "head tabs"
      "meaning library"
      "size summary"
      "hint summary";
    min-height: auto;
  }

  .size-control,
  .builder-summary {
    border-top: 1px solid var(--line-soft);
  }

  .size-control {
    margin-top: 1rem;
  }

  .pack-feature {
    min-height: auto;
  }

  .pack-portrait,
  .pack-portrait img {
    min-height: 42rem;
  }

  .pack-portrait {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  }

  .pack-copy {
    min-height: 34rem;
  }

  .drop-content {
    padding-right: 1.5rem;
    padding-left: 28%;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 4.25rem;
    --spot-r: 11rem;
  }

  .site-header {
    padding: 0 0.8rem;
  }

  .brand span {
    font-size: 0.85rem;
  }

  .brand img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lang-button {
    min-width: 1.8rem;
    padding: 0 0.2rem;
    font-size: 0.64rem;
  }

  .hero-content {
    width: calc(100% - 1.5rem);
    padding: calc(var(--header) + 3.2rem) 0 1.25rem;
  }

  .hero-photo {
    background-position: 53% 43%;
  }

  .hero h1 {
    margin-top: 0.8rem;
    font-size: clamp(3.8rem, 21vw, 6.2rem);
    line-height: 0.84;
  }

  .hero h1 .outline {
    margin-left: 0;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-bottom > p {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 9rem;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto-copy {
    min-height: 30rem;
    padding: 4rem 1.25rem;
  }

  .manifesto h2 {
    font-size: 3.8rem;
  }

  .product-film,
  .product-film img {
    min-height: 25rem;
  }

  .product-film img {
    object-position: 58% center;
  }

  .product-orbit {
    --editorial-radius: 8.25rem;
    width: min(20rem, 82%);
  }

  .editorial-piece {
    --editorial-size: 2.15rem;
  }

  .editorial-piece.member {
    --editorial-size: 2.55rem;
  }

  .studio,
  .pack-section {
    padding: 4.5rem 0.75rem;
  }

  .section-intro h2,
  .pack-heading h2 {
    font-size: 3.6rem;
  }

  .builder-stage {
    min-height: 32rem;
  }

  .builder-shell {
    grid-template-rows: minmax(37rem, 78svh) auto;
  }

  .builder-controls {
    display: flex;
    flex-direction: column;
  }

  .control-head,
  .meaning-panel,
  .size-control,
  .builder-summary {
    border-left: 0;
    border-right: 0;
  }

  .bracelet-canvas {
    min-height: 25rem;
  }

  .bracelet-ring {
    --ring-radius: 9.15rem;
    width: 19rem;
  }

  .bracelet-thread {
    width: 18.3rem;
  }

  .bracelet-piece {
    --size: 2.55rem;
  }

  .bracelet-piece.charm {
    --size: 3.15rem;
  }

  .bracelet-core {
    width: 6.5rem;
  }

  .bracelet-core img {
    width: 2.7rem;
  }

  .bracelet-core span {
    bottom: 1.25rem;
  }

  .stage-footer span {
    max-width: 12rem;
  }

  .piece-library {
    grid-auto-flow: column;
    grid-auto-columns: 5.6rem;
    grid-template-columns: none;
  }

  .builder-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .pack-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pack-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pack-tab {
    flex: 0 0 8.5rem;
  }

  .pack-portrait,
  .pack-portrait img {
    min-height: 31rem;
  }

  .pack-copy {
    min-height: 31rem;
    padding: 3rem 1.25rem;
  }

  .pack-copy h3 {
    font-size: 4.2rem;
  }

  .drop-list,
  .drop-content {
    min-height: 47rem;
  }

  .drop-backdrop {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #050505 68%), url("./assets/crew-city.webp");
    background-position: center 26%;
  }

  .drop-content {
    align-content: end;
    width: calc(100% - 1.5rem);
    padding: 0 0 3rem;
  }

  .drop-content h2 {
    font-size: clamp(3rem, 13vw, 4.2rem);
    letter-spacing: -0.065em;
  }

  .drop-meta {
    flex-direction: column;
  }

  .drop-meta span {
    display: none;
  }

  .vip-coming-soon {
    grid-template-columns: 1fr;
  }

  .vip-coming-soon > span {
    grid-row: auto;
  }

  .site-footer {
    grid-template-areas:
      "brand top"
      "policies policies"
      "tagline tagline";
    grid-template-columns: 1fr auto;
    row-gap: 1.25rem;
  }

  .site-footer p {
    display: block;
  }

  .footer-policy-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final specificity layer for the embedded builder app. */
#braceletBuilder.builder-shell {
  display: block;
  grid-template: none;
  width: min(1120px, 100%);
  min-width: 0;
  margin-inline: auto;
  color: var(--ink);
  background: var(--paper);
  border-color: #292929;
  scroll-margin-top: 0;
}

.site-header {
  transition: transform 260ms cubic-bezier(0.2, 0.72, 0.2, 1), background-color 220ms ease;
}

body.builder-focus .site-header {
  pointer-events: none;
  transform: translateY(-105%);
}

#braceletBuilder .builder-stage {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(23rem, 43vw, 31rem);
  overflow: visible;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), transparent 46%), var(--paper);
  border: 0;
}

#braceletBuilder .bracelet-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

#braceletBuilder .bracelet-canvas.is-rotating {
  cursor: grabbing;
}

#braceletBuilder .bracelet-canvas::before,
#braceletBuilder .bracelet-canvas::after {
  display: none;
}

#braceletBuilder .bracelet-thread {
  top: 50%;
  left: 50%;
  width: var(--thread-size, 9rem);
  height: var(--thread-size, 9rem);
  aspect-ratio: auto;
  border: 1px solid rgba(111, 106, 96, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

#braceletBuilder .bracelet-ring {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
}

#braceletBuilder .bracelet-piece,
#braceletBuilder .bracelet-piece:hover,
#braceletBuilder .bracelet-piece:focus-visible,
#braceletBuilder .bracelet-piece.selected {
  top: 0;
  left: 0;
  width: var(--bead-size, 2.5rem);
  height: var(--bead-size, 2.5rem);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  scale: 1;
  transform: translate(-50%, -50%) scale(1);
}

#braceletBuilder .bracelet-piece.is-entering {
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(0.25) rotate(16deg);
}

#braceletBuilder .bracelet-piece .piece-face,
#braceletBuilder .bracelet-piece.charm .piece-face {
  width: 100%;
  height: 100%;
  color: #fff;
  background: var(--piece-color, #aaa);
  border: 1px solid rgba(24, 24, 23, 0.16);
  box-shadow: inset 0.18rem 0.18rem 0.3rem rgba(255, 255, 255, 0.55), inset -0.22rem -0.26rem 0.38rem rgba(0, 0, 0, 0.27), 0 0.32rem 0.5rem rgba(57, 52, 44, 0.16);
}

#braceletBuilder .bracelet-piece.pack .piece-face,
#braceletBuilder .bracelet-piece.metal .piece-face {
  background: transparent;
  box-shadow: 0 0.32rem 0.55rem rgba(33, 31, 27, 0.22);
}

#braceletBuilder .bracelet-core {
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 7.4rem;
  height: auto;
  min-height: 0;
  padding: 0;
  color: #969187;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

#braceletBuilder .bracelet-core img {
  width: 2rem;
  height: 2rem;
  opacity: 0.22;
}

#braceletBuilder .bracelet-core span {
  color: inherit;
  font-size: 0.58rem;
}

#braceletBuilder .builder-controls {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2.7rem minmax(17rem, 29vh);
  grid-template-areas: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: var(--paper);
  border: 0;
}

#braceletBuilder .library-body {
  display: grid;
  grid-area: auto;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

#braceletBuilder .category-tabs {
  display: flex;
  grid-area: auto;
  grid-template: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: auto;
  min-width: 0;
  padding: 0.3rem 0;
  background: #efede7;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

#braceletBuilder .category-tab {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.85rem;
  color: #67635c;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  text-align: left;
}

#braceletBuilder .category-tab.active {
  color: #201f1c;
  background: #f8f7f3;
}

#braceletBuilder .piece-library {
  display: grid;
  grid-area: auto;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 0.55rem;
  width: auto;
  min-width: 0;
  padding: 0.75rem;
  overflow: auto;
  background: #f8f7f3;
  border: 0;
}

#braceletBuilder .library-piece,
#braceletBuilder .library-piece:hover,
#braceletBuilder .library-piece:focus-visible,
#braceletBuilder .library-piece.active {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 3.5rem auto auto;
  gap: 0;
  width: auto;
  min-width: 0;
  min-height: 6.7rem;
  padding: 0.55rem 0.35rem 0.45rem;
  place-items: center;
  color: #26241f;
  background: #fff;
  border: 1px solid #e4e1da;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(48, 43, 36, 0.035);
  text-align: center;
}

#braceletBuilder .library-piece:hover,
#braceletBuilder .library-piece:focus-visible {
  background: #fff;
  border-color: #b9b4aa;
  box-shadow: 0 8px 20px rgba(48, 43, 36, 0.08);
}

#braceletBuilder .library-piece small {
  color: #6f6a62;
  font-size: 0.64rem;
  line-height: 1.2;
}

#braceletBuilder .library-toolbar {
  position: relative;
}

#braceletBuilder .library-search-panel {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.8rem;
  background: #f8f7f3;
}

#braceletBuilder .library-search-panel[hidden] {
  display: none;
}

#braceletBuilder .library-search-panel input {
  flex: 1;
  min-width: 0;
  height: 1.8rem;
  padding: 0;
  color: #24231f;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aaa69d;
  border-radius: 0;
  outline: 0;
  font: inherit;
}

#braceletBuilder .library-search-panel input::placeholder {
  color: #98938a;
}

#braceletBuilder .library-search-panel input:focus {
  border-bottom-color: #24231f;
}

#braceletBuilder .library-search-panel button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: #5e5a53;
  background: transparent;
  border: 0;
  font-size: 1.2rem;
}

@media (max-width: 720px) {
  .studio {
    padding-right: 0;
    padding-left: 0;
  }

  #braceletBuilder .builder-app-head {
    min-height: 2.75rem;
  }

  #braceletBuilder .builder-statusbar {
    min-height: 2.4rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  #braceletBuilder .builder-stage {
    height: 20rem;
  }

  #braceletBuilder .builder-actionbar {
    min-height: 2.8rem;
  }

  #braceletBuilder .builder-controls {
    grid-template-rows: 2.2rem 15.5rem;
  }

  #braceletBuilder .library-body {
    grid-template-columns: 4.65rem minmax(0, 1fr);
  }

  #braceletBuilder .category-tab {
    min-height: 2.35rem;
    padding-inline: 0.55rem;
    font-size: 0.64rem;
  }

  #braceletBuilder .piece-library {
    gap: 0.38rem;
    padding: 0.5rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 2.55rem auto auto;
    min-height: 5.2rem;
    padding: 0.4rem 0.2rem 0.35rem;
  }
}

.flying-bead {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.flying-bead .library-bead {
  width: 100%;
  height: 100%;
}

/* Physics pass based on the supplied DIY recordings. */
#braceletBuilder .bracelet-piece {
  touch-action: none;
}

#braceletBuilder .bracelet-piece.is-dragging,
#braceletBuilder .bracelet-piece.is-dragging:hover,
#braceletBuilder .bracelet-piece.is-dragging:focus-visible {
  z-index: 20;
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.14);
  transition: none;
}

#braceletBuilder .bracelet-canvas.physics-ready .bracelet-piece,
#braceletBuilder .bracelet-canvas.physics-ready .bracelet-piece:hover,
#braceletBuilder .bracelet-canvas.physics-ready .bracelet-piece:focus-visible {
  transition: width 320ms ease, height 320ms ease, opacity 220ms ease, transform 220ms ease;
  will-change: left, top, transform;
}

#braceletBuilder .bracelet-piece.is-dragging .piece-face {
  box-shadow: 0 0.65rem 1.15rem rgba(45, 39, 31, 0.25);
}

#braceletBuilder .bracelet-piece.is-launching {
  z-index: 12;
}

#braceletBuilder .bracelet-piece.is-launching .piece-face {
  animation: bead-launch-pulse 520ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

#braceletBuilder .bracelet-piece.delete-candidate,
#braceletBuilder .bracelet-piece.delete-candidate:hover,
#braceletBuilder .bracelet-piece.delete-candidate:focus-visible {
  opacity: 0.52;
  filter: grayscale(0.45);
  transform: translate(-50%, -50%) scale(0.86);
}

#braceletBuilder .bracelet-canvas.delete-ready .bracelet-thread {
  border-color: rgba(145, 55, 45, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 0.3rem rgba(145, 55, 45, 0.055);
}

.ejected-bead {
  position: fixed !important;
  z-index: 10000 !important;
  display: grid !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  pointer-events: none;
  transform: none;
  will-change: transform, opacity;
}

.ejected-bead .piece-face {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: var(--piece-color, #181816);
  border: 1px solid rgba(24, 24, 23, 0.16);
  border-radius: 50%;
  box-shadow: inset 0.18rem 0.18rem 0.3rem rgba(255, 255, 255, 0.55), inset -0.22rem -0.26rem 0.38rem rgba(0, 0, 0, 0.27), 0 0.32rem 0.5rem rgba(57, 52, 44, 0.16);
}

.ejected-bead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#braceletBuilder .bracelet-canvas.is-reflowing .bracelet-thread {
  animation: thread-recoil 620ms cubic-bezier(0.16, 0.86, 0.24, 1);
}

#braceletBuilder .bracelet-canvas.is-reflowing .bracelet-piece:not(.is-dragging) .piece-face {
  animation: orbit-recoil 560ms cubic-bezier(0.16, 0.86, 0.24, 1);
}

#braceletBuilder [data-piece-id="logo"] .brand-bead-art,
.flying-bead .brand-bead-art {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 13%;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 34% 26%, #34332f, #0b0b0a 58%, #000 100%);
  border-radius: 50%;
}

#braceletBuilder [data-piece-id="logo"] .brand-bead-art img,
.flying-bead .brand-bead-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#braceletBuilder [data-piece-id="logo"] .piece-face,
#braceletBuilder [data-piece-id="logo"] .library-bead {
  border-color: rgba(109, 104, 94, 0.72);
  background: #080808;
  box-shadow: inset 0 0 0 1px rgba(210, 205, 195, 0.24), 0 0.28rem 0.5rem rgba(28, 26, 22, 0.22);
}

/* Original material system: every bead keeps a visible base and receives a texture layer. */
#braceletBuilder .bracelet-piece.metal .piece-face {
  background: var(--piece-color, linear-gradient(145deg, #d2d1cb, #686c68 44%, #262a28 62%, #9b9c95));
  box-shadow: inset 0.12rem 0.12rem 0.2rem rgba(255, 255, 255, 0.42), inset -0.18rem -0.2rem 0.28rem rgba(0, 0, 0, 0.3), 0 0.28rem 0.45rem rgba(43, 39, 34, 0.2);
}

#braceletBuilder .bracelet-piece .piece-face::before,
#braceletBuilder .library-bead::before,
.ejected-bead .piece-face::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--bead-texture, none);
  border-radius: inherit;
  content: "";
  opacity: var(--bead-texture-opacity, 0.52);
  pointer-events: none;
}

#braceletBuilder .bracelet-piece .piece-face::after,
#braceletBuilder .library-bead::after,
.ejected-bead .piece-face::after {
  z-index: 3;
}

#braceletBuilder .bracelet-piece .piece-face > *,
#braceletBuilder .library-bead > *,
.ejected-bead .piece-face > * {
  position: relative;
  z-index: 2;
}

#braceletBuilder .bead-glyph {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
}

.texture-portrait {
  --bead-texture: none;
  --bead-texture-opacity: 0;
}

.texture-cloud {
  --bead-texture: radial-gradient(circle at 65% 68%, rgba(255, 255, 255, 0.2), transparent 26%), radial-gradient(circle at 30% 52%, rgba(0, 0, 0, 0.2), transparent 35%), radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.16), transparent 20%);
}

.texture-crystal {
  --bead-texture: conic-gradient(from 18deg at 52% 48%, rgba(255, 255, 255, 0.34), transparent 13%, rgba(12, 22, 24, 0.2) 24%, transparent 36%, rgba(255, 255, 255, 0.24) 50%, transparent 66%, rgba(9, 17, 20, 0.18) 78%, transparent 92%);
  --bead-texture-opacity: 0.62;
}

.texture-frost {
  --bead-texture: radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.42), transparent 28%), radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.3), transparent 24%), linear-gradient(125deg, rgba(255, 255, 255, 0.18), rgba(72, 76, 74, 0.2));
}

.texture-pearl {
  --bead-texture: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.48), transparent 24%), conic-gradient(from 210deg, rgba(120, 151, 151, 0.18), rgba(174, 138, 157, 0.17), rgba(212, 205, 168, 0.18), rgba(120, 151, 151, 0.18));
  --bead-texture-opacity: 0.62;
}

.texture-banded {
  --bead-texture: repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.2) 0 7%, transparent 7% 15%, rgba(0, 0, 0, 0.16) 15% 21%, transparent 21% 31%);
  --bead-texture-opacity: 0.68;
}

.texture-vein {
  --bead-texture: linear-gradient(126deg, transparent 0 31%, rgba(35, 37, 35, 0.38) 32% 35%, transparent 36% 61%, rgba(238, 235, 224, 0.34) 62% 65%, transparent 66%), linear-gradient(42deg, transparent 0 48%, rgba(45, 47, 44, 0.2) 49% 52%, transparent 53%);
  --bead-texture-opacity: 0.72;
}

.texture-speckle {
  --bead-texture: radial-gradient(circle at 22% 34%, rgba(20, 21, 20, 0.48) 0 4%, transparent 5%), radial-gradient(circle at 68% 27%, rgba(24, 25, 23, 0.34) 0 3%, transparent 4%), radial-gradient(circle at 73% 71%, rgba(12, 13, 12, 0.4) 0 5%, transparent 6%), radial-gradient(circle at 38% 76%, rgba(255, 255, 255, 0.22) 0 3%, transparent 4%);
  --bead-texture-opacity: 0.78;
}

.texture-gold-speckle {
  --bead-texture: radial-gradient(circle at 23% 35%, rgba(201, 173, 109, 0.82) 0 2.4%, transparent 3.3%), radial-gradient(circle at 66% 29%, rgba(188, 159, 94, 0.72) 0 2%, transparent 3%), radial-gradient(circle at 72% 72%, rgba(211, 183, 116, 0.66) 0 2.5%, transparent 3.5%), radial-gradient(circle at 40% 66%, rgba(195, 165, 101, 0.62) 0 1.8%, transparent 2.8%);
  --bead-texture-opacity: 0.76;
}

.texture-mica {
  --bead-texture: radial-gradient(ellipse at 28% 35%, rgba(255, 255, 255, 0.42) 0 3%, transparent 4%), radial-gradient(ellipse at 66% 58%, rgba(255, 255, 255, 0.32) 0 2%, transparent 3%), radial-gradient(ellipse at 45% 75%, rgba(18, 20, 18, 0.25) 0 3%, transparent 4%), linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.18) 48%, transparent 64%);
  --bead-texture-opacity: 0.72;
}

.texture-needle {
  --bead-texture: repeating-linear-gradient(72deg, transparent 0 11%, rgba(219, 207, 175, 0.46) 12% 14%, transparent 15% 25%);
  --bead-texture-opacity: 0.76;
}

.texture-phantom {
  --bead-texture: conic-gradient(from 45deg at 50% 64%, transparent 0 12%, rgba(34, 42, 38, 0.34) 13% 24%, transparent 25% 38%, rgba(239, 239, 229, 0.22) 39% 50%, transparent 51% 100%);
  --bead-texture-opacity: 0.7;
}

.texture-swirl {
  --bead-texture: radial-gradient(ellipse at 65% 50%, transparent 0 24%, rgba(255, 255, 255, 0.2) 25% 29%, transparent 30% 43%, rgba(20, 21, 20, 0.18) 44% 49%, transparent 50%);
  --bead-texture-opacity: 0.72;
}

.texture-moss {
  --bead-texture: radial-gradient(ellipse at 25% 68%, rgba(28, 50, 34, 0.5) 0 8%, transparent 10%), radial-gradient(ellipse at 66% 32%, rgba(37, 62, 40, 0.42) 0 10%, transparent 12%), linear-gradient(45deg, transparent 45%, rgba(30, 51, 34, 0.32) 46% 49%, transparent 50%);
  --bead-texture-opacity: 0.74;
}

.texture-mottle {
  --bead-texture: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.2) 0 12%, transparent 14%), radial-gradient(circle at 68% 63%, rgba(16, 18, 16, 0.25) 0 15%, transparent 17%), radial-gradient(circle at 43% 78%, rgba(255, 255, 255, 0.14) 0 8%, transparent 10%);
  --bead-texture-opacity: 0.7;
}

.texture-catseye {
  --bead-texture: linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.46) 47%, rgba(255, 255, 255, 0.12) 54%, transparent 63%);
  --bead-texture-opacity: 0.72;
}

.texture-flash {
  --bead-texture: linear-gradient(128deg, transparent 22%, rgba(116, 167, 165, 0.5) 42%, rgba(173, 153, 113, 0.24) 53%, transparent 72%), conic-gradient(from 45deg, transparent, rgba(255, 255, 255, 0.24), transparent 40%);
  --bead-texture-opacity: 0.68;
}

.texture-lava {
  --bead-texture: radial-gradient(circle at 24% 30%, rgba(0, 0, 0, 0.72) 0 6%, transparent 7%), radial-gradient(circle at 68% 62%, rgba(0, 0, 0, 0.62) 0 8%, transparent 9%), radial-gradient(circle at 72% 26%, rgba(0, 0, 0, 0.55) 0 4%, transparent 5%), radial-gradient(circle at 38% 74%, rgba(0, 0, 0, 0.58) 0 5%, transparent 6%);
  --bead-texture-opacity: 0.86;
}

.texture-fossil {
  --bead-texture: repeating-radial-gradient(circle at 40% 46%, rgba(72, 61, 47, 0.34) 0 3%, transparent 4% 10%), radial-gradient(circle at 68% 66%, rgba(255, 255, 255, 0.18), transparent 24%);
  --bead-texture-opacity: 0.68;
}

.texture-metal-brush {
  --bead-texture: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.14) 3px 4px, transparent 4px 6px);
  --bead-texture-opacity: 0.58;
}

.texture-metal-cut {
  --bead-texture: conic-gradient(from 12deg, rgba(255, 255, 255, 0.42), transparent 12%, rgba(0, 0, 0, 0.26) 24%, transparent 38%, rgba(255, 255, 255, 0.34) 52%, transparent 67%, rgba(0, 0, 0, 0.24) 81%, transparent);
  --bead-texture-opacity: 0.72;
}

.texture-metal-rope {
  --bead-texture: repeating-conic-gradient(from 8deg, rgba(255, 255, 255, 0.3) 0 7deg, rgba(0, 0, 0, 0.2) 7deg 14deg, transparent 14deg 20deg), radial-gradient(circle, transparent 0 46%, rgba(0, 0, 0, 0.28) 48% 56%, transparent 58%);
  --bead-texture-opacity: 0.68;
}

@keyframes thread-recoil {
  0% { transform: translate(-50%, -50%) scale(0.96); }
  48% { transform: translate(-50%, -50%) scale(1.025); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes orbit-recoil {
  0% { transform: scale(0.96) rotate(0deg); }
  52% { transform: scale(1.035) rotate(var(--orbit-wobble, 0deg)); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes bead-launch-pulse {
  0% { transform: scale(0.72); filter: brightness(1.18); }
  58% { transform: scale(1.08); filter: brightness(1.04); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Six-member hero carousel */
.hero.hero-carousel {
  --hero-bg: #151616;
  --hero-panel: #353632;
  --hero-accent-rgb: 176, 164, 136;
  position: relative;
  min-height: max(100svh, 44rem);
  overflow: hidden;
  color: #fff;
  background: #050505;
  isolation: isolate;
  transition: background-color 680ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-atmosphere,
.hero-accent-panel,
.hero-grid,
.hero-grain,
.hero-cursor-glow,
.hero-wordmark,
.hero-character-stage {
  position: absolute;
}

.hero-atmosphere {
  z-index: -6;
  inset: 0;
  background-color: var(--hero-bg);
  background-image: linear-gradient(110deg, transparent 0%, #070808 48%, #050505 100%);
  transition: background-color 680ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-atmosphere::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(var(--hero-accent-rgb), 0.18), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 34%, rgba(0, 0, 0, 0.2) 62%, #050505 100%);
  content: "";
}

.hero-accent-panel {
  z-index: -5;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(10rem, 28vw, 32rem);
  background-color: var(--hero-panel);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.28;
  transition: background-color 680ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-grid {
  z-index: -4;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-position: center;
  background-size: 7rem 7rem;
  opacity: 0.44;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.04);
}

.hero-grain {
  z-index: 45;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-cursor-glow {
  z-index: 30;
  left: var(--spot-x);
  top: var(--spot-y);
  width: var(--spot-r);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--hero-accent-rgb), 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 6rem rgba(var(--hero-accent-rgb), 0.055);
  opacity: 0.8;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero.hero-carousel .hero-wordmark {
  z-index: -1;
  top: 18%;
  left: 0;
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.105);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 11rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  user-select: none;
}

.hero-character-stage {
  z-index: 3;
  inset: var(--header) 0 0;
  overflow: hidden;
}

.hero-character {
  position: absolute;
  display: block;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 64% 78% at 50% 52%, #000 0 62%, rgba(0, 0, 0, 0.82) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 64% 78% at 50% 52%, #000 0 62%, rgba(0, 0, 0, 0.82) 76%, transparent 100%);
  opacity: 0;
  transform-origin: bottom center;
  transition:
    left 680ms cubic-bezier(0.4, 0, 0.2, 1),
    bottom 680ms cubic-bezier(0.4, 0, 0.2, 1),
    width 680ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 680ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 680ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 680ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, bottom, width, transform, filter, opacity;
}

.hero-character::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050505 0%, transparent 13%, transparent 87%, #050505 100%),
    linear-gradient(180deg, #050505 0%, transparent 10%, transparent 89%, #050505 100%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.hero-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
}

.hero-character[data-role="center"] {
  z-index: 20;
  left: 50%;
  bottom: -8%;
  width: clamp(31rem, 45vw, 43rem);
  opacity: 1;
  filter: saturate(0.82) contrast(1.08) brightness(1.02);
  transform: translateX(-50%) translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0) scale(1.02);
  cursor: default;
}

.hero-character[data-role="left"],
.hero-character[data-role="right"] {
  z-index: 11;
  bottom: 5%;
  width: clamp(16rem, 25vw, 24rem);
  opacity: 0.58;
  filter: grayscale(0.25) saturate(0.65) brightness(0.72) blur(0.7px);
}

.hero-character[data-role="left"] {
  left: 27%;
  transform: translateX(-50%) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(-3deg) scale(0.94);
}

.hero-character[data-role="right"] {
  left: 73%;
  transform: translateX(-50%) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(3deg) scale(0.94);
}

.hero-character[data-role="far-left"],
.hero-character[data-role="far-right"] {
  z-index: 7;
  bottom: 13%;
  width: clamp(10rem, 16vw, 16rem);
  opacity: 0.25;
  filter: grayscale(0.45) saturate(0.4) brightness(0.56) blur(1.8px);
}

.hero-character[data-role="far-left"] {
  left: 9%;
  transform: translate3d(-50%, 0, 0) rotate(-5deg) scale(0.88);
}

.hero-character[data-role="far-right"] {
  left: 91%;
  transform: translate3d(-50%, 0, 0) rotate(5deg) scale(0.88);
}

.hero-character[data-role="back"] {
  z-index: 4;
  left: 50%;
  bottom: 33%;
  width: clamp(8rem, 12vw, 12rem);
  opacity: 0.16;
  filter: grayscale(0.72) saturate(0.3) brightness(0.52) blur(3px);
  transform: translate3d(-50%, 0, 0) scale(0.82);
}

.hero-interface {
  position: absolute;
  z-index: 60;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: clamp(1.4rem, 5.5vh, 4rem);
  left: clamp(1.25rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  pointer-events: none;
}

.hero-member-meta,
.hero-carousel-controls,
.hero-discover {
  pointer-events: auto;
}

.hero-member-meta {
  display: grid;
  justify-items: start;
  min-width: 0;
}

.hero-member-meta > span,
.hero-member-meta small {
  color: rgba(255, 255, 255, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-member-meta b {
  color: #fff;
  font-weight: 500;
}

.hero-member-meta strong {
  max-width: 100%;
  margin: 0.34rem 0 0.16rem;
  overflow: hidden;
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-member-meta strong.long-name {
  font-size: 3.7rem;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero-arrow {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(5, 5, 5, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: scale(1.06);
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.hero-pagination button {
  display: grid;
  width: 1rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
}

.hero-pagination span {
  display: block;
  width: 0.22rem;
  height: 0.22rem;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transition: width 220ms ease, border-radius 220ms ease, background-color 220ms ease;
}

.hero-pagination button.active span {
  width: 0.9rem;
  background: #fff;
  border-radius: 1rem;
}

.hero-pagination button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.82);
  outline-offset: 1px;
  border-radius: 50%;
}

.hero-discover {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.8rem;
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.hero-discover:hover,
.hero-discover:focus-visible {
  opacity: 0.68;
}

.hero-discover i {
  font-family: "DM Sans", sans-serif;
  font-size: 0.58em;
  font-style: normal;
}

.hero-corner-index {
  position: absolute;
  z-index: 60;
  top: calc(var(--header) + 1.5rem);
  right: 1.25rem;
  color: rgba(255, 255, 255, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (max-width: 800px) {
  .hero.hero-carousel {
    min-height: max(100svh, 42rem);
  }

  .hero-accent-panel {
    width: 46vw;
    opacity: 0.22;
  }

  .hero-grid {
    background-size: 4rem 4rem;
  }

  .hero.hero-carousel .hero-wordmark {
    top: 18%;
    font-size: 5.35rem;
  }

  .hero-character[data-role="center"] {
    bottom: 10%;
    width: min(92vw, 32rem);
    transform: translateX(-50%) translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0) scale(1.03);
  }

  .hero-character[data-role="left"],
  .hero-character[data-role="right"] {
    bottom: 25%;
    width: 36vw;
    opacity: 0.36;
    filter: grayscale(0.35) saturate(0.55) brightness(0.62) blur(1.2px);
  }

  .hero-character[data-role="left"] {
    left: 7%;
  }

  .hero-character[data-role="right"] {
    left: 93%;
  }

  .hero-character[data-role="far-left"],
  .hero-character[data-role="far-right"],
  .hero-character[data-role="back"] {
    opacity: 0;
    pointer-events: none;
  }

  .hero-interface {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    grid-template-areas:
      "meta discover"
      "controls controls";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 1rem;
  }

  .hero-member-meta {
    grid-area: meta;
  }

  .hero-member-meta strong {
    font-size: 2.45rem;
  }

  .hero-member-meta strong.long-name {
    font-size: 1.58rem;
  }

  .hero-carousel-controls {
    grid-area: controls;
    justify-self: center;
  }

  .hero-arrow {
    width: 2.9rem;
    height: 2.9rem;
  }

  .hero-discover {
    grid-area: discover;
    align-self: end;
    font-size: 2rem;
  }

  .hero-corner-index {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero.hero-carousel .hero-wordmark {
    font-size: 4.8rem;
  }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .hero.hero-carousel .hero-wordmark {
    font-size: 9rem;
  }

  .hero-member-meta strong {
    font-size: 3.8rem;
  }

  .hero-discover {
    font-size: 2.75rem;
  }
}

@media (max-height: 700px) and (min-width: 801px) {
  .hero-character[data-role="center"] {
    width: min(39vw, 34rem);
  }

  .hero-interface {
    bottom: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-character,
  .hero-atmosphere,
  .hero-accent-panel {
    transition-duration: 1ms;
  }

  .hero-cursor-glow {
    display: none;
  }
}

/* Template-matched character carousel */
.hero.hero-carousel {
  --hero-bg: #f4845f;
  position: relative;
  height: 100svh;
  min-height: 44rem;
  overflow: hidden;
  color: #fff;
  background-color: var(--hero-bg);
  isolation: isolate;
  transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.hero-carousel .hero-atmosphere,
.hero.hero-carousel .hero-accent-panel,
.hero.hero-carousel .hero-grid,
.hero.hero-carousel .hero-cursor-glow,
.hero.hero-carousel .hero-corner-index,
.hero.hero-carousel .hero-pagination {
  display: none;
}

.hero.hero-carousel .hero-grain {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
}

.hero.hero-carousel .hero-wordmark {
  position: absolute;
  z-index: 2;
  top: 18%;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(5.625rem, 17vw, 18rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.98;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  user-select: none;
  pointer-events: none;
}

.hero.hero-carousel .hero-character-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
}

.hero.hero-carousel .hero-character {
  position: absolute;
  display: block;
  width: auto;
  aspect-ratio: 0.711 / 1;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 0;
  transform-origin: bottom center;
  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    left 650ms cubic-bezier(0.4, 0, 0.2, 1),
    bottom 650ms cubic-bezier(0.4, 0, 0.2, 1),
    height 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity, left;
}

.hero.hero-carousel .hero-character::after {
  display: none;
}

.hero.hero-carousel .hero-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.94) contrast(1.02);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition: transform 180ms ease-out;
  user-select: none;
  pointer-events: none;
}

.hero.hero-carousel .hero-character[data-role="center"] {
  z-index: 20;
  left: 50%;
  bottom: 0;
  height: 86%;
  opacity: 1;
  filter: none;
  transform: translateX(-50%) scale(0.9);
  cursor: default;
}

.hero.hero-carousel .hero-character[data-role="center"] img {
  transform: translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0);
}

.hero.hero-carousel .hero-character[data-role="left"],
.hero.hero-carousel .hero-character[data-role="right"] {
  z-index: 10;
  bottom: 12%;
  height: 28%;
  opacity: 0.85;
  filter: blur(2px);
  transform: translateX(-50%) scale(1);
}

.hero.hero-carousel .hero-character[data-role="left"] {
  left: 30%;
}

.hero.hero-carousel .hero-character[data-role="right"] {
  left: 70%;
}

.hero.hero-carousel .hero-character[data-role="back"] {
  z-index: 5;
  left: 50%;
  bottom: 12%;
  height: 22%;
  opacity: 1;
  filter: blur(4px);
  transform: translateX(-50%) scale(1);
}

.hero.hero-carousel .hero-character[data-role="hidden-left"],
.hero.hero-carousel .hero-character[data-role="hidden-right"] {
  z-index: 1;
  bottom: 12%;
  height: 22%;
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

.hero.hero-carousel .hero-character[data-role="hidden-left"] {
  left: 16%;
  transform: translateX(-50%) scale(0.8);
}

.hero.hero-carousel .hero-character[data-role="hidden-right"] {
  left: 84%;
  transform: translateX(-50%) scale(0.8);
}

.hero.hero-carousel .hero-interface {
  position: absolute;
  z-index: 60;
  right: 2.5rem;
  bottom: 5rem;
  left: 6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  pointer-events: none;
}

.hero.hero-carousel .hero-member-meta,
.hero.hero-carousel .hero-discover {
  pointer-events: auto;
}

.hero.hero-carousel .hero-member-meta {
  display: block;
  width: min(20rem, 42vw);
}

.hero.hero-carousel .hero-member-meta > span {
  display: block;
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Inter", "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero.hero-carousel .hero-member-meta b {
  color: inherit;
  font-weight: inherit;
}

.hero.hero-carousel .hero-member-meta strong {
  display: block;
  max-width: 100%;
  margin: 0 0 0.35rem;
  overflow: visible;
  color: #fff;
  font-family: "Inter", "DM Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: normal;
}

.hero.hero-carousel .hero-member-meta strong.long-name {
  font-size: 1.4rem;
}

.hero.hero-carousel .hero-member-meta small {
  display: block;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Inter", "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero.hero-carousel .hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero.hero-carousel .hero-arrow {
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.hero.hero-carousel .hero-arrow:hover,
.hero.hero-carousel .hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: scale(1.08);
}

.hero.hero-carousel .hero-discover {
  display: inline-flex;
  align-items: center;
  justify-self: auto;
  gap: 0.8rem;
  color: #fff;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(1.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 200ms ease;
}

.hero.hero-carousel .hero-discover:hover,
.hero.hero-carousel .hero-discover:focus-visible {
  opacity: 0.7;
}

.hero.hero-carousel .hero-discover i {
  font-family: "Inter", sans-serif;
  font-size: 0.62em;
  font-style: normal;
}

@media (max-width: 639px) {
  .hero.hero-carousel {
    min-height: 42rem;
  }

  .hero.hero-carousel .hero-wordmark {
    top: 18%;
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .hero.hero-carousel .hero-character[data-role="center"] {
    bottom: 22%;
    height: 58%;
    transform: translateX(-50%) scale(0.95);
  }

  .hero.hero-carousel .hero-character[data-role="left"],
  .hero.hero-carousel .hero-character[data-role="right"] {
    bottom: 32%;
    height: 16%;
    opacity: 0.85;
    filter: blur(2px);
  }

  .hero.hero-carousel .hero-character[data-role="left"] {
    left: 20%;
  }

  .hero.hero-carousel .hero-character[data-role="right"] {
    left: 80%;
  }

  .hero.hero-carousel .hero-character[data-role="back"] {
    bottom: 32%;
    height: 13%;
  }

  .hero.hero-carousel .hero-character[data-role="hidden-left"],
  .hero.hero-carousel .hero-character[data-role="hidden-right"] {
    bottom: 32%;
    height: 13%;
  }

  .hero.hero-carousel .hero-interface {
    right: 1rem;
    bottom: 1.5rem;
    left: 1rem;
    gap: 1rem;
  }

  .hero.hero-carousel .hero-member-meta {
    width: auto;
    min-width: 0;
  }

  .hero.hero-carousel .hero-member-meta > span {
    margin-bottom: 0.3rem;
    font-size: 0.58rem;
  }

  .hero.hero-carousel .hero-member-meta strong,
  .hero.hero-carousel .hero-member-meta strong.long-name {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  .hero.hero-carousel .hero-member-meta small {
    display: none;
  }

  .hero.hero-carousel .hero-arrow {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .hero.hero-carousel .hero-discover {
    align-self: flex-end;
    gap: 0.45rem;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    white-space: nowrap;
  }
}

/* Product-grade corrections: one-screen lab and one consistent white pack gallery. */
.pack-section {
  background: #fff;
}

.pack-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pack-feature,
.pack-portrait,
.pack-portrait img {
  background: #fff;
}

.pack-portrait {
  min-height: 43rem;
}

.pack-portrait img {
  min-height: 43rem;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem) 0;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

.pack-portrait span {
  color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 1100px) {
  .studio {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100svh;
    padding-top: clamp(3.5rem, 6vh, 4.5rem);
    padding-bottom: 1.25rem;
  }

  .studio > .section-intro {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    margin-bottom: 1rem;
  }

  .studio > .section-intro h2 {
    max-width: none;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    white-space: nowrap;
  }

  #braceletBuilder.builder-shell {
    height: min(64rem, calc(100svh - 12rem));
    min-height: 34rem;
    grid-template-rows: 3rem 2.7rem 2.5rem minmax(0, 1fr) 3.1rem;
  }

  #braceletBuilder .builder-stage {
    height: auto;
    min-height: 0;
  }

  #braceletBuilder .builder-controls {
    min-height: 0;
  }

  #braceletBuilder .library-body,
  #braceletBuilder .piece-library {
    min-height: 0;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 3.95rem auto auto;
    min-height: 7.15rem;
    padding: 0.6rem 0.45rem 0.55rem;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 3.2rem);
    height: max(var(--library-size, 2.7rem), 3.2rem);
  }
}

/* Final accessibility guard: later carousel refinements must not re-enable
   motion for visitors who ask the operating system to reduce it. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  .hero.hero-carousel,
  .hero.hero-carousel .hero-character,
  .hero.hero-carousel .hero-character img,
  .archive-card,
  .archive-card img,
  .pack-finale-media img {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .finale-marquee {
    animation-play-state: paused !important;
  }
}

/* Canvas product-photography layer. The DOM pieces remain as keyboard and
   pointer hit targets, while the visible bracelet is painted once from the
   catalog dimensions and supplier photography. */
#braceletBuilder .bracelet-render-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#braceletBuilder .bracelet-thread {
  z-index: 1;
}

#braceletBuilder .bracelet-ring {
  z-index: 3;
}

#braceletBuilder .bracelet-canvas.canvas-rendering .bracelet-piece {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  pointer-events: none;
}

#braceletBuilder .bracelet-canvas.canvas-rendering .bracelet-piece .piece-face {
  visibility: hidden;
  opacity: 0 !important;
}

#braceletBuilder .bracelet-canvas.canvas-rendering .bracelet-piece:focus-visible {
  outline: 2px solid #161614;
  outline-offset: 3px;
}

.piece-product-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  image-rendering: auto;
  pointer-events: none;
}

.library-bead.canvas-product {
  display: grid;
  width: var(--library-width, var(--library-size)) !important;
  height: var(--library-height, var(--library-size)) !important;
  overflow: visible;
  place-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

.library-bead.canvas-product::before,
.library-bead.canvas-product::after {
  display: none !important;
}

.checkout-piece .piece-face.canvas-product {
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

.checkout-piece .piece-face.canvas-product::before,
.checkout-piece .piece-face.canvas-product::after {
  display: none !important;
}

.checkout-piece .piece-face.canvas-product .piece-product-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Catalog correction layer: kept last so legacy builder rules cannot override it. */
#braceletBuilder .category-tabs {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(76, 71, 64, 0.28) transparent;
  scrollbar-width: thin;
}

#braceletBuilder .category-tab {
  position: relative;
  flex: 0 0 auto;
  padding-left: 1.55rem;
}

#braceletBuilder .category-tab::after {
  position: absolute;
  top: 50%;
  left: 0.72rem;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--category-accent, #8f8a80);
  border: 1px solid rgba(20, 19, 17, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  content: "";
  transform: translateY(-50%);
}

#braceletBuilder .category-tab[data-category="white"] { --category-accent: #dce3e4; }
#braceletBuilder .category-tab[data-category="purple"] { --category-accent: #7550a9; }
#braceletBuilder .category-tab[data-category="yellow"] { --category-accent: #c89b38; }
#braceletBuilder .category-tab[data-category="green"] { --category-accent: #51866e; }
#braceletBuilder .category-tab[data-category="pink"] { --category-accent: #d5839d; }
#braceletBuilder .category-tab[data-category="blue"] { --category-accent: #527ca9; }
#braceletBuilder .category-tab[data-category="black"] { --category-accent: #26282a; }
#braceletBuilder .category-tab[data-category="tiger"] { --category-accent: #9b6936; }
#braceletBuilder .category-tab[data-category="jade"] { --category-accent: #75a98b; }
#braceletBuilder .category-tab[data-category="agate"] { --category-accent: #9d5d54; }

#braceletBuilder .category-tab.active {
  box-shadow: inset 3px 0 0 var(--category-accent, #191816);
}

#braceletBuilder .library-piece small {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

#braceletBuilder .library-piece small b {
  color: #201f1c;
  font: inherit;
  font-weight: 700;
}

#braceletBuilder .library-bead.catalog-product,
#braceletBuilder .bracelet-piece.catalog-product .piece-face {
  --bead-texture: none;
  --bead-texture-opacity: 0;
  overflow: hidden;
  background: radial-gradient(circle at 33% 24%, rgba(255, 255, 255, 0.9), transparent 26%), var(--piece-color, #d9d9d6) !important;
  border-color: rgba(255, 255, 255, 0.72);
  filter: none;
}

#braceletBuilder .library-bead.catalog-product::after,
#braceletBuilder .bracelet-piece.catalog-product .piece-face::after {
  display: none;
}

#braceletBuilder .catalog-bead-image,
.flying-bead .catalog-bead-image,
.ejected-bead .catalog-bead-image {
  display: block;
  width: 168% !important;
  max-width: none;
  height: 168% !important;
  object-fit: contain;
  filter: drop-shadow(0 0.1rem 0.12rem rgba(32, 28, 23, 0.18));
  transform: translateZ(0);
}

@media (min-width: 1100px) {
  #braceletBuilder.builder-shell {
    grid-template-columns: minmax(0, 1.38fr) minmax(34rem, 0.92fr);
  }

  #braceletBuilder .category-tab {
    min-height: 2.9rem;
    padding-left: 1.55rem;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 5rem auto auto;
    min-height: 9rem;
    padding: 0.62rem 0.45rem 0.56rem;
    border-radius: 14px;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 4rem);
    height: max(var(--library-size, 2.7rem), 4rem);
  }
}

/* Desktop price emphasis must remain after every legacy catalog layer. */
@media (min-width: 1100px) {
  #braceletBuilder .library-piece small b {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 720px) {
  #braceletBuilder .category-tab {
    min-height: 2.05rem;
    padding-right: 0.35rem;
    padding-left: 1.25rem;
    font-size: 0.58rem;
  }

  #braceletBuilder .category-tab::after {
    left: 0.5rem;
  }

  #braceletBuilder .library-piece strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #braceletBuilder .library-piece small {
    gap: 0.2rem;
    font-size: 0.5rem;
  }
}

/* Pack archive: a five-world editorial scroll chapter after the drop list. */
.pack-archive {
  position: relative;
  height: 310svh;
  min-height: 160rem;
  background: #050505;
  color: #f6f3ec;
}

.archive-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(1.3rem, 2.5vh, 2.5rem);
  height: 100svh;
  min-height: 42rem;
  overflow: hidden;
  padding: clamp(5.25rem, 7vh, 6.75rem) clamp(1rem, 3vw, 3.75rem) clamp(1.15rem, 2.5vh, 2rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(109, 148, 255, 0.12), transparent 27%),
    radial-gradient(circle at 10% 86%, rgba(156, 110, 255, 0.09), transparent 28%),
    #050505;
}

.archive-sticky::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.archive-heading,
.archive-window {
  position: relative;
  z-index: 1;
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: clamp(1rem, 2vh, 1.6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.archive-heading .micro,
.pack-finale .micro {
  color: rgba(255, 255, 255, 0.5);
}

.archive-heading h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2.65rem, 5.4vw, 6.6rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.76;
}

.archive-heading h2 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
}

.archive-status {
  display: grid;
  grid-template-columns: auto;
  justify-items: end;
  gap: 0.35rem;
  min-width: 17rem;
  padding-bottom: 0.15rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.archive-status span {
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  letter-spacing: -0.05em;
}

.archive-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.archive-window {
  min-height: 0;
  overflow: hidden;
}

.archive-rail {
  display: flex;
  gap: clamp(0.8rem, 1.25vw, 1.5rem);
  width: max-content;
  height: calc(100% - 1.7rem);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.archive-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 0 0 clamp(20rem, 30vw, 34rem);
  width: clamp(20rem, 30vw, 34rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #111;
  opacity: 0.48;
  transform: scale(0.955);
  transform-origin: center;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.15, 1), border-color 500ms ease;
}

.archive-card.is-active {
  border-color: rgba(255, 255, 255, 0.64);
  opacity: 1;
  transform: scale(1);
}

.archive-card figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #0b0b0b;
}

.archive-card figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 57%, rgba(0, 0, 0, 0.48));
  content: "";
  pointer-events: none;
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.58) contrast(1.06) brightness(0.76);
  transform: scale(1.065);
  transition: filter 700ms ease, transform 1.2s cubic-bezier(0.2, 0.75, 0.15, 1);
}

.archive-card.is-active img {
  filter: saturate(1) contrast(1.03) brightness(0.92);
  transform: scale(1.01);
}

.archive-card-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1.15rem;
  min-height: 5.15rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #090909;
}

.archive-card-meta > span {
  color: rgba(255, 255, 255, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.archive-card-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.archive-card-meta h3,
.archive-card-meta p {
  margin: 0;
}

.archive-card-meta h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.65rem);
  font-weight: 520;
  letter-spacing: -0.045em;
}

.archive-card-meta p {
  max-width: 12rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  line-height: 1.35;
  text-align: right;
}

.archive-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.archive-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.pack-finale {
  position: relative;
  display: grid;
  min-height: 112svh;
  overflow: hidden;
  color: #fff;
  background: #050505;
}

.pack-finale-media,
.pack-finale-shade {
  position: absolute;
  inset: 0;
}

.pack-finale-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) brightness(0.8) contrast(1.06);
  transform: scale(1.08);
  transition: transform 2.2s cubic-bezier(0.2, 0.75, 0.15, 1), filter 1.8s ease;
}

.pack-finale.in-view .pack-finale-media img {
  filter: saturate(1.18) brightness(0.86) contrast(1.04);
  transform: scale(1.015);
}

.pack-finale-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 38%, rgba(0, 0, 0, 0.7));
}

.pack-finale-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(100% - 2.5rem, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(7rem, 11vh, 10rem) 0 clamp(9rem, 15vh, 13rem);
}

.pack-finale-copy h2 {
  margin: 1.1rem 0 0;
  font-size: clamp(4rem, 10.2vw, 11.5rem);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.73;
}

.pack-finale-copy h2 span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.82);
}

.pack-finale-action {
  display: grid;
  grid-template-columns: minmax(15rem, 27rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.6rem, 5vh, 5rem);
}

.pack-finale-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.6;
}

.finale-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: clamp(16rem, 21vw, 23rem);
  min-height: 4.6rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.finale-button:hover,
.finale-button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.finale-button span {
  font-size: 1.35rem;
}

.finale-marquee {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  width: max-content;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(10px);
  animation: finaleTicker 32s linear infinite;
}

.finale-marquee div {
  flex: none;
  padding: 1.15rem 0.65rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  letter-spacing: 0.07em;
  white-space: nowrap;
}

@keyframes finaleTicker {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .pack-archive {
    height: auto;
    min-height: 0;
  }

  .archive-sticky {
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    padding: 6rem 1rem 3.5rem;
  }

  .archive-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .archive-heading h2 {
    font-size: clamp(2.7rem, 13vw, 4.8rem);
  }

  .archive-status {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    min-width: 0;
  }

  .archive-window {
    margin: 1.25rem -1rem 0;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .archive-window::-webkit-scrollbar {
    display: none;
  }

  .archive-rail {
    height: min(66rem, 72svh);
    min-height: 31rem;
    transform: none !important;
  }

  .archive-card {
    flex-basis: min(80vw, 28rem);
    width: min(80vw, 28rem);
    scroll-snap-align: center;
    opacity: 0.62;
  }

  .archive-card-meta div {
    display: block;
  }

  .archive-card-meta p {
    margin-top: 0.25rem;
    text-align: left;
  }

  .archive-progress {
    right: 1rem;
    left: 1rem;
  }

  .pack-finale {
    min-height: 100svh;
  }

  .pack-finale-copy {
    align-content: end;
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

  .pack-finale-copy h2 {
    font-size: clamp(3.3rem, 16vw, 6.2rem);
  }

  .pack-finale-action {
    grid-template-columns: 1fr;
  }

  .finale-button {
    width: 100%;
  }

  .pack-finale-media img {
    object-position: 54% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-rail {
    will-change: auto;
  }

  .archive-card,
  .archive-card img,
  .pack-finale-media img {
    transition: none;
  }

  .finale-marquee {
    animation-play-state: paused;
  }
}

/* Character beads use a colored enamel shell keyed to each member. Their
   transparent portrait cutouts sit directly on the enamel without a black
   medallion backing. */
#braceletBuilder .library-bead.pack,
#braceletBuilder .bracelet-piece.pack .piece-face,
.flying-bead .library-bead.pack,
.ejected-bead.pack .piece-face {
  --bead-texture:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.82) 0 4%, rgba(255, 255, 255, 0.24) 5% 12%, transparent 24%),
    conic-gradient(from 18deg, rgba(255, 255, 255, 0.22), transparent 20%, rgba(0, 0, 0, 0.2) 45%, transparent 67%, rgba(255, 255, 255, 0.16));
  --bead-texture-opacity: 0.82;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: var(--piece-color, #151515) !important;
  box-shadow:
    inset 0.16rem 0.16rem 0.28rem rgba(255, 255, 255, 0.62),
    inset -0.22rem -0.26rem 0.36rem rgba(0, 0, 0, 0.38),
    0 0.34rem 0.58rem rgba(30, 25, 24, 0.25) !important;
}

#braceletBuilder .library-bead.pack .character-bead-image,
#braceletBuilder .bracelet-piece.pack .character-bead-image,
.flying-bead .library-bead.pack .character-bead-image,
.ejected-bead.pack .character-bead-image,
.editorial-piece.member .character-bead-image {
  z-index: 2;
  display: block;
  width: 92% !important;
  height: 92% !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  object-fit: contain !important;
  filter: drop-shadow(0 0.12rem 0.12rem rgba(0, 0, 0, 0.36));
  box-shadow: none;
}

/* The three identity-sensitive v5 portraits use model-edited natural head
   silhouettes: full ears and headwear, no clothing, shoulders, or hard crop. */
#braceletBuilder [data-piece-id="mallow"] .character-bead-image,
#braceletBuilder [data-piece-id="north"] .character-bead-image,
#braceletBuilder [data-piece-id="shortcut"] .character-bead-image {
  width: 104% !important;
  height: 104% !important;
}

#braceletBuilder .library-bead.metal .character-bead-image,
#braceletBuilder .bracelet-piece.metal .character-bead-image,
.flying-bead .library-bead.metal .character-bead-image,
.ejected-bead.metal .character-bead-image {
  width: 86% !important;
  height: 86% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0.1rem 0.1rem rgba(0, 0, 0, 0.32));
}

.editorial-piece.member {
  border-color: rgba(255, 255, 255, 0.46);
  background: var(--piece-background, #151515);
  box-shadow:
    inset 0.18rem 0.18rem 0.3rem rgba(255, 255, 255, 0.54),
    inset -0.28rem -0.34rem 0.48rem rgba(0, 0, 0, 0.42),
    0 0.7rem 1rem rgba(0, 0, 0, 0.4);
}

/* Final small-screen orbit correction. */
@media (max-width: 639px) {
  .hero.hero-carousel .hero-character[data-role="back"] {
    bottom: 75%;
    height: 10%;
    opacity: 0.9;
    filter: blur(1.2px) saturate(0.9);
  }

  .pack-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hero.hero-carousel .hero-character[data-role="back"] {
    bottom: 75%;
    height: 10%;
    opacity: 0.9;
    filter: blur(1.2px) saturate(0.9);
  }

  .pack-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 700px) and (min-width: 640px) {
  .hero.hero-carousel .hero-interface {
    bottom: 1.5rem;
  }

  .hero.hero-carousel .hero-character[data-role="center"] {
    height: 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-carousel,
  .hero.hero-carousel .hero-character,
  .hero.hero-carousel .hero-character img {
    transition-duration: 1ms;
  }
}

/* Six-member depth carousel: every pack member remains visible on the orbit. */
.hero.hero-carousel {
  transition: background-color 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.hero-carousel .hero-wordmark {
  top: 17%;
  font-size: clamp(6.5rem, 17vw, 19rem);
}

.hero.hero-carousel .hero-character {
  opacity: 1;
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 820ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease,
    left 820ms cubic-bezier(0.16, 1, 0.3, 1),
    bottom 820ms cubic-bezier(0.16, 1, 0.3, 1),
    height 820ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, bottom, height, transform, filter;
}

.hero.hero-carousel .hero-character[data-role="front"] {
  z-index: 30;
  left: 50%;
  bottom: -18%;
  height: 100%;
  opacity: 1;
  filter: blur(0) saturate(1.03) contrast(1.025) drop-shadow(0 1.5rem 1.7rem rgba(32, 20, 14, 0.16));
  transform: translate3d(-50%, 0, 0) scale(1.03);
  cursor: default;
}

.hero.hero-carousel .hero-character[data-role="front"] img {
  transform: translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0);
}

.hero.hero-carousel .hero-character[data-role="near-left"],
.hero.hero-carousel .hero-character[data-role="near-right"] {
  z-index: 18;
  bottom: 11%;
  height: 46%;
  opacity: 0.98;
  filter: blur(0.45px) saturate(0.98) drop-shadow(0 1rem 1.15rem rgba(32, 20, 14, 0.12));
  transform: translate3d(-50%, 0, 0) scale(0.98);
}

.hero.hero-carousel .hero-character[data-role="near-left"] {
  left: 24%;
  transform: translate3d(-50%, 0, 0) rotate(-3.5deg) scale(0.98);
}

.hero.hero-carousel .hero-character[data-role="near-right"] {
  left: 76%;
  transform: translate3d(-50%, 0, 0) rotate(3.5deg) scale(0.98);
}

.hero.hero-carousel .hero-character[data-role="far-left"],
.hero.hero-carousel .hero-character[data-role="far-right"] {
  z-index: 10;
  bottom: 34%;
  height: 27%;
  opacity: 0.9;
  filter: blur(1.8px) saturate(0.9);
  transform: translate3d(-50%, 0, 0) scale(0.93);
}

.hero.hero-carousel .hero-character[data-role="far-left"] {
  left: 10.5%;
  transform: translate3d(-50%, 0, 0) rotate(4deg) scale(0.93);
}

.hero.hero-carousel .hero-character[data-role="far-right"] {
  left: 89.5%;
  transform: translate3d(-50%, 0, 0) rotate(-4deg) scale(0.93);
}

.hero.hero-carousel .hero-character[data-role="back"] {
  z-index: 6;
  left: 64%;
  bottom: 64%;
  height: 14%;
  opacity: 0.82;
  filter: blur(3px) saturate(0.84);
  transform: translate3d(-50%, 0, 0) scale(0.88);
}

.hero.hero-carousel.is-changing .hero-character[data-role="front"] img {
  animation: hero-front-arrival 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hero-front-arrival {
  0% { transform: translate3d(var(--parallax-focus-x, 0), 1.5%, 0) scale(0.965); }
  62% { transform: translate3d(var(--parallax-focus-x, 0), -0.7%, 0) scale(1.012); }
  100% { transform: translate3d(var(--parallax-focus-x, 0), var(--parallax-focus-y, 0), 0) scale(1); }
}

/* Desktop DIY lab: full PC workspace instead of an embedded phone-shaped panel. */
@media (min-width: 1100px) {
  .studio {
    padding-inline: clamp(2rem, 3.3vw, 4rem);
  }

  .studio > .section-intro {
    width: min(1680px, 100%);
  }

  #braceletBuilder.builder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(27rem, 0.82fr);
    grid-template-rows: auto auto auto minmax(43rem, 70vh) auto;
    width: min(1680px, 100%);
    overflow: hidden;
    border: 1px solid rgba(228, 225, 218, 0.9);
    border-radius: 22px;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
  }

  #braceletBuilder .builder-app-head {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  #braceletBuilder .builder-statusbar {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  #braceletBuilder .builder-tip {
    grid-row: 3;
    grid-column: 1;
  }

  #braceletBuilder .builder-stage {
    grid-row: 4;
    grid-column: 1;
    height: auto;
    min-height: 43rem;
    border-right: 1px solid var(--line);
  }

  #braceletBuilder .builder-actionbar {
    grid-row: 5;
    grid-column: 1;
  }

  #braceletBuilder .builder-controls {
    grid-row: 3 / 6;
    grid-column: 2;
    grid-template-rows: 3.4rem minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    border-left: 0;
  }

  #braceletBuilder .library-toolbar {
    padding-inline: 1.2rem;
  }

  #braceletBuilder .library-body {
    grid-template-columns: 7.25rem minmax(0, 1fr);
  }

  #braceletBuilder .category-tabs {
    padding-block: 0.8rem;
  }

  #braceletBuilder .category-tab {
    min-height: 3.7rem;
    padding-inline: 1.05rem;
    font-size: 0.76rem;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 6.5rem auto auto;
    min-height: 10.5rem;
    padding: 0.8rem 0.55rem 0.7rem;
    border-radius: 16px;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 4.8rem);
    height: max(var(--library-size, 2.7rem), 4.8rem);
  }

  #braceletBuilder .library-piece strong {
    font-size: 0.76rem;
  }

  #braceletBuilder .library-piece small {
    font-size: 0.62rem;
  }

  #braceletBuilder .function-sheet {
    right: calc(27rem + 1rem);
    bottom: 4rem;
  }
}

/* Gem pass: stronger depth, translucency and polished highlights. */
#braceletBuilder .library-bead.crystal,
#braceletBuilder .bracelet-piece.crystal .piece-face,
.flying-bead .library-bead.crystal {
  background:
    radial-gradient(circle at 27% 20%, rgba(255, 255, 255, 0.98) 0 5%, rgba(255, 255, 255, 0.36) 7%, transparent 21%),
    radial-gradient(circle at 68% 75%, rgba(10, 3, 18, 0.38), transparent 43%),
    var(--piece-color, #8c57a2);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0.25rem 0.24rem 0.45rem rgba(255, 255, 255, 0.54),
    inset -0.34rem -0.38rem 0.58rem rgba(20, 4, 30, 0.42),
    inset 0 0 0 1px rgba(83, 37, 105, 0.16),
    0 0.45rem 0.85rem rgba(47, 28, 58, 0.24);
  filter: saturate(1.16) contrast(1.04);
}

#braceletBuilder .library-bead.crystal::after,
#braceletBuilder .bracelet-piece.crystal .piece-face::after {
  inset: 8% 15% 48% 12%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.06));
  border: 0;
  border-radius: 50%;
  opacity: 0.8;
  transform: rotate(-17deg);
}

@media (max-width: 1099px) {
  #braceletBuilder.builder-shell {
    width: min(100%, 1180px);
  }
}

@media (max-width: 639px) {
  .hero.hero-carousel .hero-wordmark {
    top: 18%;
  }

  .hero.hero-carousel .hero-character[data-role="front"] {
    bottom: 18%;
    height: 67%;
    transform: translate3d(-50%, 0, 0) scale(1.03);
  }

  .hero.hero-carousel .hero-character[data-role="near-left"],
  .hero.hero-carousel .hero-character[data-role="near-right"] {
    bottom: 36%;
    height: 23%;
    filter: blur(0.4px);
  }

  .hero.hero-carousel .hero-character[data-role="near-left"] { left: 17%; }
  .hero.hero-carousel .hero-character[data-role="near-right"] { left: 83%; }

  .hero.hero-carousel .hero-character[data-role="far-left"],
  .hero.hero-carousel .hero-character[data-role="far-right"] {
    bottom: 52%;
    height: 14%;
    filter: blur(1.5px);
  }

  .hero.hero-carousel .hero-character[data-role="far-left"] { left: 6%; }
  .hero.hero-carousel .hero-character[data-role="far-right"] { left: 94%; }

  .hero.hero-carousel .hero-character[data-role="back"] {
    bottom: 61%;
    height: 11%;
    filter: blur(2px);
  }
}

/* Final correction layer: consistent pack photography and a one-screen desktop lab. */
.pack-section {
  background: #fff;
}

.pack-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pack-feature,
.pack-portrait,
.pack-portrait img {
  background: #fff;
}

.pack-portrait,
.pack-portrait img {
  min-height: 43rem;
}

.pack-portrait img {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem) 0;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

.pack-portrait span {
  color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 1100px) {
  .studio {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100svh;
    padding-top: clamp(3.5rem, 6vh, 4.5rem);
    padding-bottom: 1.25rem;
  }

  .studio > .section-intro {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    margin-bottom: 1rem;
  }

  .studio > .section-intro h2 {
    max-width: none;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    white-space: nowrap;
  }

  #braceletBuilder.builder-shell {
    height: min(64rem, calc(100svh - 12rem));
    min-height: 34rem;
    grid-template-rows: 3rem 2.7rem 2.5rem minmax(0, 1fr) 3.1rem;
  }

  #braceletBuilder .builder-stage {
    height: auto;
    min-height: 0;
  }

  #braceletBuilder .builder-controls,
  #braceletBuilder .library-body,
  #braceletBuilder .piece-library {
    min-height: 0;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 3.95rem auto auto;
    min-height: 7.15rem;
    padding: 0.6rem 0.45rem 0.55rem;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 3.2rem);
    height: max(var(--library-size, 2.7rem), 3.2rem);
  }
}

/* Final catalog photo system: the source stone fills the bead itself. */
#braceletBuilder .library-bead.catalog-product,
#braceletBuilder .bracelet-piece.catalog-product .piece-face,
.flying-bead.catalog-product,
.ejected-bead.catalog-product .piece-face,
.checkout-piece.catalog-product .piece-face {
  --bead-texture: none;
  --bead-texture-opacity: 0;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50%;
  box-shadow: none !important;
  filter: none !important;
}

#braceletBuilder .library-bead.catalog-product::before,
#braceletBuilder .library-bead.catalog-product::after,
#braceletBuilder .bracelet-piece.catalog-product .piece-face::before,
#braceletBuilder .bracelet-piece.catalog-product .piece-face::after,
.ejected-bead.catalog-product .piece-face::before,
.ejected-bead.catalog-product .piece-face::after,
.checkout-piece.catalog-product .piece-face::before,
.checkout-piece.catalog-product .piece-face::after {
  display: none !important;
}

#braceletBuilder .catalog-bead-image,
.flying-bead.catalog-product .catalog-bead-image,
.ejected-bead.catalog-product .catalog-bead-image,
.checkout-piece.catalog-product .catalog-bead-image {
  display: block;
  width: 108% !important;
  max-width: none;
  height: 108% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: translateY(-1%) translateZ(0);
}

/* Verified source-sheet spacers (rows 79–88). Their front artwork remains
   legible in the library while the bracelet uses the real string-axis width,
   so 3mm divider discs sit tightly between larger stone beads. */
#braceletBuilder .library-bead.shape-spacer-disc,
#braceletBuilder .library-bead.shape-spacer-tube,
#braceletBuilder .library-bead.shape-spacer-bead,
.flying-bead .library-bead.shape-spacer-disc,
.flying-bead .library-bead.shape-spacer-tube,
.flying-bead .library-bead.shape-spacer-bead {
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  filter: none !important;
}

#braceletBuilder .library-bead.shape-spacer-disc,
#braceletBuilder .library-bead.shape-spacer-tube,
#braceletBuilder .library-bead.shape-spacer-bead {
  width: var(--library-width, var(--library-size, 2.7rem)) !important;
  height: var(--library-height, var(--library-size, 2.7rem)) !important;
}

#braceletBuilder .library-bead.shape-spacer-disc::before,
#braceletBuilder .library-bead.shape-spacer-disc::after,
#braceletBuilder .library-bead.shape-spacer-tube::before,
#braceletBuilder .library-bead.shape-spacer-tube::after,
#braceletBuilder .library-bead.shape-spacer-bead::before,
#braceletBuilder .library-bead.shape-spacer-bead::after,
#braceletBuilder .bracelet-piece[class*="shape-spacer-"] .piece-face::before,
#braceletBuilder .bracelet-piece[class*="shape-spacer-"] .piece-face::after,
.checkout-piece[class*="shape-spacer-"] .piece-face::before,
.checkout-piece[class*="shape-spacer-"] .piece-face::after {
  display: none !important;
}

.spacer-bead-svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
  filter:
    drop-shadow(0 0.35px 0.3px rgba(255, 255, 255, 0.24))
    drop-shadow(0 1px 0.75px rgba(24, 22, 18, 0.4));
  shape-rendering: geometricPrecision;
}

.spacer-profile-svg {
  filter:
    drop-shadow(0 0.3px 0.22px rgba(255, 255, 255, 0.34))
    drop-shadow(0 0.85px 0.55px rgba(24, 22, 18, 0.56));
}

.spacer-jewelry-svg {
  color-rendering: optimizeQuality;
  transform: translateZ(0);
}

.spacer-jewelry-svg .spacer-jewelry-body,
.spacer-jewelry-svg .spacer-jewelry-rim,
.spacer-jewelry-svg .spacer-jewelry-channel,
.spacer-jewelry-svg .spacer-jewelry-hole,
.spacer-jewelry-svg .spacer-jewelry-back-rim {
  vector-effect: non-scaling-stroke;
}

.spacer-jewelry-svg .spacer-jewelry-rim {
  filter: drop-shadow(0 0.7px 0.45px rgba(255, 255, 255, 0.46));
}

.spacer-jewelry-svg .spacer-jewelry-channel {
  filter: drop-shadow(0 0 0.8px rgba(0, 0, 0, 0.68));
}

.spacer-jewelry-svg .spacer-jewelry-studs {
  filter:
    drop-shadow(0 0 0.65px rgba(255, 255, 255, 0.76))
    drop-shadow(0 0.7px 0.65px rgba(0, 0, 0, 0.76));
}

.spacer-cylinder-profile-svg {
  overflow: visible;
  filter: none;
}

.spacer-cylinder-profile-svg .spacer-cylinder-body {
  filter: saturate(1.08) contrast(1.08);
  stroke-width: 0.78px;
  vector-effect: non-scaling-stroke;
}

.spacer-cylinder-profile-svg .spacer-cylinder-shoulder,
.spacer-cylinder-profile-svg .spacer-cylinder-band,
.spacer-cylinder-profile-svg .spacer-specular-line {
  vector-effect: non-scaling-stroke;
}

.spacer-cylinder-profile-svg .spacer-cylinder-shoulder {
  stroke-width: 0.72px;
}

.spacer-cylinder-profile-svg .spacer-cylinder-band,
.spacer-cylinder-profile-svg .spacer-specular-line {
  stroke-width: 0.56px;
}

.spacer-cylinder-profile-svg .spacer-cylinder-cap {
  filter:
    drop-shadow(0 0 0.35px rgba(255, 255, 255, 0.46))
    drop-shadow(0.45px 0.3px 0.35px rgba(0, 0, 0, 0.22));
}

.spacer-cylinder-profile-svg .spacer-cylinder-cap-front,
.spacer-cylinder-profile-svg .spacer-cylinder-inner-ring {
  vector-effect: non-scaling-stroke;
}

.spacer-cylinder-profile-svg .spacer-cylinder-inner-ring {
  filter:
    drop-shadow(-0.45px 0 0.35px rgba(0, 0, 0, 0.86))
    drop-shadow(0.4px 0 0.28px rgba(255, 255, 255, 0.46));
}

.spacer-cylinder-profile-svg .spacer-cylinder-bevel,
.spacer-cylinder-profile-svg .spacer-specular-line {
  vector-effect: non-scaling-stroke;
}

/* DIY presents each rondelle at a restrained three-quarter angle. Catalog
   thickness still drives spacing and contact, while the projected shoulder
   exposes a small bore and rounded torus profile without becoming a plaque. */
.spacer-rondelle-side-svg {
  --rondelle-perspective-x: 1.02;
  overflow: visible;
  filter: saturate(0.98) brightness(var(--rondelle-luster, 1));
  transform: scaleX(var(--rondelle-perspective-x)) rotate(var(--rondelle-local-tilt, -4deg));
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.spacer-rondelle-side-svg[data-spacer-visual-type="thin-rondelle"] {
  --rondelle-perspective-x: 1.02;
}

.spacer-rondelle-side-svg .spacer-rondelle-shell,
.spacer-rondelle-side-svg .spacer-rondelle-bevel,
.spacer-rondelle-side-svg .spacer-rondelle-inner-shadow,
.spacer-rondelle-side-svg .spacer-rondelle-edge-highlight,
.spacer-rondelle-side-svg .spacer-rondelle-edge-shade {
  vector-effect: non-scaling-stroke;
}

.spacer-rondelle-side-svg .spacer-rondelle-shell {
  filter: saturate(1.01) contrast(1.02);
  stroke-width: 0.55px;
}

.spacer-rondelle-side-svg .spacer-rondelle-bevel {
  filter: drop-shadow(0 0 0.28px rgba(255, 255, 255, 0.48));
  stroke-width: 0.72px;
}

.spacer-rondelle-side-svg .spacer-rondelle-edge-highlight,
.spacer-rondelle-side-svg .spacer-rondelle-edge-shade {
  stroke-width: 0.56px;
}

.spacer-rondelle-side-svg .spacer-rondelle-inner-shadow {
  stroke-width: 0.55px;
}

.spacer-rondelle-side-svg .spacer-rondelle-bore-backing {
  filter: saturate(0.65) brightness(1.16);
}

.spacer-rondelle-side-svg .spacer-rondelle-bore-glow {
  vector-effect: non-scaling-stroke;
  stroke-width: 0.48px;
}

.spacer-rondelle-side-svg .spacer-rondelle-shadow-shape {
  opacity: 0.62;
  filter: blur(1.4px);
  transform: translate(1.2px, 2.8px);
}

.spacer-rondelle-real-object {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
  filter: brightness(var(--rondelle-luster, 1));
  transform: rotate(var(--rondelle-local-tilt, -4deg));
  transform-origin: 50% 50%;
}

.spacer-rondelle-real-object::after {
  position: absolute;
  z-index: -1;
  right: -9%;
  bottom: 2%;
  width: 82%;
  height: 15%;
  border-radius: 50%;
  background: rgba(42, 39, 37, 0.29);
  filter: blur(1.15px);
  transform: rotate(-8deg) translate(0.7px, 1px);
  content: "";
  pointer-events: none;
}

.spacer-rondelle-real-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    brightness(var(--rondelle-asset-brightness, 0.95))
    contrast(var(--rondelle-asset-contrast, 1.09))
    drop-shadow(0 0.35px 0.3px rgba(255, 255, 255, 0.34))
    drop-shadow(0 1.15px 0.9px rgba(39, 35, 32, 0.27));
}

.spacer-rondelle-real-gold {
  --rondelle-asset-brightness: 0.98;
  --rondelle-asset-contrast: 1.07;
}

.spacer-tube-real-object,
.spacer-round-real-object {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
}

.spacer-tube-real-image,
.spacer-round-real-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  filter:
    contrast(1.04)
    drop-shadow(0 -0.25px 0.22px rgba(255, 255, 255, 0.34))
    drop-shadow(0 1.05px 0.78px rgba(31, 28, 25, 0.3));
}

#braceletBuilder .bracelet-piece.shape-spacer-bead .piece-face:has(.spacer-round-real-object) {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#braceletBuilder .bracelet-piece.shape-spacer-bead .piece-face:has(.spacer-round-real-object)::after {
  display: none;
}

.spacer-photo-texture {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  filter:
    drop-shadow(0 -0.35px 0.25px rgba(255, 255, 255, 0.48))
    drop-shadow(0 1px 0.75px rgba(24, 20, 15, 0.34));
  image-rendering: auto;
}

.spacer-photo-object {
  position: relative !important;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 25% 68%, rgba(0, 0, 0, 0.34)),
    linear-gradient(90deg, #4c4942, #c8c0b1 22%, #67635b 52%, #e7dfcf 76%, #403d37);
  box-shadow:
    inset 0 0.45px 0.75px rgba(255, 255, 255, 0.9),
    inset 0 -1.1px 1.2px rgba(17, 14, 11, 0.48),
    0 1.3px 1.1px rgba(37, 31, 25, 0.27);
}

.spacer-photo-object .spacer-photo-texture {
  position: absolute !important;
  z-index: 1;
  inset: -4%;
  width: 108% !important;
  height: 108% !important;
  opacity: 0.94;
  filter:
    saturate(0.96)
    contrast(1.08)
    drop-shadow(0 0.45px 0.4px rgba(17, 14, 11, 0.24));
}

.spacer-rondelle-object {
  /* Product photos carry transparent edge pixels. Extend only the painted
     metal silhouette (not the physics body) so the divider tucks beneath the
     neighbouring bead by roughly one rendered pixel on each side. */
  left: -2px;
  width: calc(100% + 4px);
  border: 0.55px solid rgba(52, 46, 38, 0.68);
  border-radius: 50%;
  clip-path: ellipse(49% 49% at 50% 50%);
}

.spacer-rondelle-object::before,
.spacer-rondelle-object::after {
  position: absolute;
  z-index: 2;
  top: 4%;
  bottom: 4%;
  width: 28%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.spacer-rondelle-object::before {
  left: 1%;
  background: linear-gradient(90deg, rgba(28, 25, 22, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow: inset -0.45px 0 0.4px rgba(255, 255, 255, 0.62);
}

.spacer-rondelle-object::after {
  right: 1%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(25, 22, 19, 0.78));
  box-shadow: inset 0.45px 0 0.4px rgba(255, 255, 255, 0.58);
}

.spacer-cylinder-object {
  border: 0.6px solid rgba(45, 39, 32, 0.78);
  border-radius: 31% / 50%;
  clip-path: inset(0 round 31% 50%);
}

.spacer-cylinder-object::before,
.spacer-cylinder-object::after {
  position: absolute;
  z-index: 2;
  top: 3%;
  bottom: 3%;
  width: 17%;
  border: 0.45px solid rgba(40, 35, 29, 0.66);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.spacer-cylinder-object::before {
  left: -1%;
  background: radial-gradient(ellipse at 62% 43%, #f4eee4 0 9%, #8a8174 38%, #2f2b26 78%);
}

.spacer-cylinder-object::after {
  right: -1%;
  background: radial-gradient(ellipse at 34% 38%, #fff9ef 0 8%, #9a9081 38%, #302b25 78%);
}

.spacer-cylinder-object .spacer-photo-hole {
  position: absolute !important;
  z-index: 4;
  top: 27%;
  right: 1.4%;
  width: 8.5%;
  height: 46%;
  border: 0.35px solid rgba(242, 235, 222, 0.64);
  border-radius: 50%;
  background: radial-gradient(ellipse, #0c0b0a 0 48%, #554f47 56% 74%, #d4ccbe 79% 100%);
  box-shadow: -0.5px 0 0.45px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.spacer-rondelle-object .spacer-photo-hole {
  display: none;
}

#braceletBuilder .bracelet-piece.shape-spacer-disc .spacer-photo-texture,
#braceletBuilder .bracelet-piece.shape-spacer-tube .spacer-photo-texture,
.checkout-spacer-side .spacer-photo-texture {
  object-fit: fill !important;
}

#braceletBuilder .bracelet-canvas.thread-concealed .bracelet-thread {
  opacity: 0;
}

#braceletBuilder .bracelet-thread {
  transition:
    width 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    height 430ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 180ms ease;
}

.library-piece .library-bead.shape-spacer-disc::before,
.library-piece .library-bead.shape-spacer-disc::after,
.library-piece .library-bead.shape-spacer-tube::before,
.library-piece .library-bead.shape-spacer-tube::after {
  display: none;
}

#braceletBuilder .bracelet-piece.shape-spacer-disc,
#braceletBuilder .bracelet-piece.shape-spacer-tube {
  width: var(--bead-width, var(--bead-size)) !important;
  height: var(--bead-height, var(--bead-size)) !important;
}

#braceletBuilder .bracelet-piece[class*="shape-spacer-"] .piece-face,
.checkout-piece[class*="shape-spacer-"] .piece-face {
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

#braceletBuilder .bracelet-piece.shape-spacer-disc .piece-face,
#braceletBuilder .bracelet-piece.shape-spacer-tube .piece-face,
#braceletBuilder .bracelet-piece.shape-spacer-ornamental .piece-face,
.checkout-piece.shape-spacer-disc .piece-face,
.checkout-piece.shape-spacer-tube .piece-face,
.checkout-piece.shape-spacer-ornamental .piece-face {
  transform: rotate(var(--spacer-rotation, 0rad));
  transform-origin: center;
}

#braceletBuilder .bracelet-piece.shape-spacer-disc .piece-face,
#braceletBuilder .bracelet-piece.shape-spacer-tube .piece-face,
#braceletBuilder .bracelet-piece.shape-spacer-ornamental .piece-face {
  filter:
    drop-shadow(0 0.2px 0.16px rgba(255, 255, 255, 0.24))
    drop-shadow(0 var(--spacer-shadow-y, 1px) var(--spacer-shadow-blur, 1.5px) rgba(25, 22, 17, 0.2));
}

#braceletBuilder .bracelet-piece.shape-spacer-disc .piece-face {
  filter:
    drop-shadow(0 -0.18px 0.16px rgba(255, 255, 255, 0.34))
    drop-shadow(0 var(--spacer-shadow-y, 1px) var(--spacer-shadow-blur, 1.5px) rgba(25, 22, 17, 0.19));
}

.checkout-piece.shape-spacer-disc,
.checkout-piece.shape-spacer-tube,
.checkout-piece.shape-spacer-ornamental {
  width: var(--checkout-piece-width, var(--checkout-piece-size)) !important;
  height: var(--checkout-piece-height, var(--checkout-piece-size)) !important;
}

.checkout-piece .checkout-spacer-cylinder {
  position: relative;
  isolation: isolate;
  filter:
    drop-shadow(0 0.2px 0.16px rgba(255, 255, 255, 0.24))
    drop-shadow(0 var(--spacer-shadow-y, 1px) var(--spacer-shadow-blur, 1.5px) rgba(0, 0, 0, 0.2));
}

.checkout-piece .checkout-spacer-photographic {
  display: block;
  width: 100%;
  height: 100%;
}

.checkout-spacer-side,
.checkout-spacer-cap,
.checkout-spacer-back-rim {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  transform-origin: center;
  will-change: opacity;
}

.checkout-spacer-side {
  left: 50%;
  z-index: 2;
  width: var(--checkout-spacer-side-width, 100%);
  opacity: var(--checkout-spacer-side-opacity, 1);
  transform: translate3d(-50%, 0, 0);
}

.checkout-spacer-cap {
  width: var(--checkout-spacer-cap-width, 0.6px);
  transform: translate3d(-50%, 0, 0);
}

.checkout-spacer-back-rim {
  left: calc(50% + var(--checkout-spacer-back-rim-offset, 0px));
  z-index: 1;
  width: var(--checkout-spacer-cap-width, 0.6px);
  opacity: var(--checkout-spacer-back-rim-opacity, 0);
  transform: translate3d(-50%, 0, 0) scaleX(var(--checkout-spacer-depth-sign, 1));
}

.checkout-spacer-cap-front {
  left: calc(50% + var(--checkout-spacer-cap-front-offset, 0px));
  z-index: 3;
  opacity: var(--checkout-spacer-cap-front-opacity, 0);
}

.checkout-spacer-side .spacer-bead-svg,
.checkout-spacer-cap .spacer-bead-svg,
.checkout-spacer-back-rim .spacer-bead-svg {
  width: 100% !important;
  height: 100% !important;
}

.checkout-spacer-side .checkout-spacer-side-svg {
  filter: saturate(1.04) contrast(1.035);
}

.checkout-spacer-cap .checkout-spacer-cap-svg,
.checkout-spacer-cap .spacer-bead-svg {
  filter:
    drop-shadow(0 0.22px 0.18px rgba(255, 255, 255, 0.24))
    drop-shadow(0 0.45px 0.52px rgba(0, 0, 0, 0.22))
    saturate(1.05)
    contrast(1.045);
}

.checkout-spacer-back-rim .checkout-spacer-back-rim-svg {
  filter:
    drop-shadow(0 0.2px 0.16px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0.4px 0.42px rgba(0, 0, 0, 0.2))
    saturate(1.04)
    contrast(1.05);
}

@media (max-width: 639px) {
  .spacer-jewelry-svg .spacer-jewelry-studs,
  .spacer-jewelry-svg .spacer-jewelry-channel,
  .spacer-jewelry-svg .spacer-jewelry-rim,
  .spacer-cylinder-profile-svg .spacer-cylinder-cap {
    filter: none;
  }

  .spacer-rondelle-side-svg {
    filter: none;
  }

  #braceletBuilder .bracelet-piece[class*="shape-spacer-"] .piece-face {
    filter: drop-shadow(0 var(--spacer-shadow-y, 0.7px) var(--spacer-shadow-blur, 1px) rgba(25, 22, 17, 0.2));
  }

  .spacer-photo-texture {
    filter: drop-shadow(0 0.65px 0.55px rgba(24, 20, 15, 0.32));
  }

  .spacer-photo-object {
    box-shadow:
      inset 0 0.35px 0.45px rgba(255, 255, 255, 0.82),
      inset 0 -0.7px 0.8px rgba(17, 14, 11, 0.42),
      0 0.75px 0.65px rgba(37, 31, 25, 0.24);
  }
}

#braceletBuilder .bracelet-piece.is-micro-spacer .spacer-rondelle-detail,
#braceletBuilder .bracelet-piece.is-micro-spacer .spacer-rondelle-edge-shade,
#braceletBuilder .bracelet-piece.is-micro-spacer .spacer-rondelle-inner-shadow,
.checkout-piece.is-micro-spacer .spacer-rondelle-detail,
.checkout-piece.is-micro-spacer .spacer-rondelle-edge-shade,
.checkout-piece.is-micro-spacer .spacer-rondelle-inner-shadow {
  display: none;
}

#braceletBuilder .bracelet-piece.is-micro-spacer .spacer-rondelle-shell,
.checkout-piece.is-micro-spacer .spacer-rondelle-shell {
  filter: saturate(1.01) contrast(1.02);
}

/* Product-photo depth pass: keep supplied stone photography, but ground every
   bead against the white stage with a small contact shadow and a refractive
   edge. The silhouette remains circular and no extra ring is drawn. */
#braceletBuilder .bracelet-piece.catalog-product .piece-face {
  filter:
    drop-shadow(0 1px 0.7px rgba(255, 255, 255, 0.78))
    drop-shadow(0 3.2px 2.8px rgba(43, 36, 31, 0.24)) !important;
}

#braceletBuilder .bracelet-piece.catalog-product .catalog-bead-image {
  transform:
    translateY(-1%)
    rotate(var(--orbit-wobble, 0deg))
    translateZ(0);
}

/* Round metal spacer beads are real beads, not flat divider plates. The
   broad spacer reset above is correct for discs/tubes but used to strip the
   sphere lighting from Nocturne, Destiny and Eye of Horus in checkout. */
.checkout-piece.shape-spacer-bead .piece-face {
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.checkout-piece.shape-spacer-bead .piece-face::before,
.checkout-piece.shape-spacer-bead .piece-face::after {
  display: none !important;
}

@media (min-width: 1100px) {
  #braceletBuilder.builder-shell {
    grid-template-columns: minmax(0, 1.38fr) minmax(34rem, 0.92fr);
  }

  #braceletBuilder .category-tab {
    min-height: 2.9rem;
    padding-right: 0.85rem;
    padding-left: 1.55rem;
  }

  #braceletBuilder .piece-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  #braceletBuilder .library-piece,
  #braceletBuilder .library-piece:hover,
  #braceletBuilder .library-piece:focus-visible,
  #braceletBuilder .library-piece.active {
    grid-template-rows: 5rem auto auto;
    min-height: 9rem;
    padding: 0.62rem 0.45rem 0.56rem;
    border-radius: 14px;
  }

  #braceletBuilder .library-bead {
    width: max(var(--library-size, 2.7rem), 4rem);
    height: max(var(--library-size, 2.7rem), 4rem);
  }
}
