@import url("tokens.css");

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

html {
  color-scheme: dark;
  scroll-behavior: auto;
  scroll-padding-top: var(--head-h);
  overflow-x: clip;
  max-width: 100%;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(201, 162, 76, 0.13), transparent 58%),
    radial-gradient(820px 520px at -10% 18%, rgba(22, 48, 86, 0.62), transparent 64%),
    var(--navy-0);
}

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

button,
input,
a {
  font: inherit;
}

button,
a,
label.choice,
label.swatch,
label.size-pick,
.nft-card {
  cursor: pointer;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0;
  font-feature-settings: "kern" 1, "liga" 1;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  padding: 0.55rem 0.95rem;
  background: var(--gold);
  color: var(--navy-0);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.skip-link:focus {
  top: 0.85rem;
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.frame {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--space);
  box-sizing: border-box;
  min-width: 0;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  padding-inline: max(var(--space), env(safe-area-inset-left)) max(var(--space), env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  background: rgba(5, 10, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.15);
}

.head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand cta";
  align-items: center;
  gap: 0.85rem 1.2rem;
  width: min(var(--max), 100%);
  margin-inline: auto;
  min-height: var(--head-h);
  padding: 0.7rem 0;
}

.head-inner .brand {
  grid-area: brand;
}

.head-inner .hang-cta,
.head-inner .head-cta {
  grid-area: cta;
}

.head-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  justify-self: end;
}

a.brand,
a.brand:link,
a.brand:visited,
a.brand:hover,
a.brand:active {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}

.brand-lockup {
  display: block;
  height: 2.9rem;
  width: auto;
  max-width: 100%;
}

.brand-foot .brand-lockup {
  height: 2.35rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  position: relative;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav a:hover {
  color: var(--gold-2);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--gold);
}

.site-head .hang-cta {
  justify-self: end;
  white-space: nowrap;
  width: max-content;
  min-width: max-content;
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  letter-spacing: 0.1em;
}

.cart-launch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  background: transparent;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.cart-launch span {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  margin-left: 0.35rem;
  padding: 0.05rem 0.28rem;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 0.68rem;
}

.cart-launch.is-pulse {
  border-color: var(--gold);
  color: var(--gold-2);
  box-shadow: 0 0 0 1px var(--gold);
}

.hero-copy,
.lede {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-0);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.38);
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-gold.is-pulse {
  box-shadow: 0 0 0 1px var(--gold-2), inset 0 1px 0 rgba(255, 248, 230, 0.38);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn-line {
  border-color: var(--line-strong);
  color: var(--gold-2);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--gold-2);
  color: var(--cream);
  background: rgba(201, 162, 76, 0.08);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.35rem 0.1rem;
  color: var(--gold-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(201, 162, 76, 0.22);
}

.btn-text:hover {
  color: var(--cream);
  border-bottom-color: var(--gold-2);
}

.tray .btn-gold,
.tray .btn-ghost {
  width: 100%;
  margin-top: 0.9rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[aria-busy="true"] {
  opacity: 1;
  cursor: wait;
}

.btn:focus-visible,
.nav a:focus-visible,
.foot-nav a:focus-visible,
.foot-mail:focus-visible,
.foot-x:focus-visible,
.brand:focus-visible,
.btn-text:focus-visible,
.choice:focus-within,
.nft-card:focus-visible,
.progress button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.8rem) 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  min-width: 0;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.55rem, 5.6vw, 4.4rem);
  color: var(--cream);
  line-height: 0.98;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 500;
}

.lede {
  max-width: 28rem;
  margin-top: 1.25rem;
  color: var(--cream-dim);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin-top: 1.9rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1.55rem 0 0;
  padding: 1.05rem 0 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border-top: 0;
  background-image: var(--stitch);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top left;
  max-width: 34rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
}

.trust li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7rem;
  color: var(--gold);
  font-weight: 600;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-figure {
  margin: 0;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.hero-well {
  position: relative;
  isolation: isolate;
}

.hero-well::before {
  content: "";
  position: absolute;
  inset: 14% 8% 18%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(201, 162, 76, 0.26), transparent 68%);
  filter: blur(32px);
}

.hero-well::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 78%, var(--navy-0) 100%);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption {
  display: block;
  position: relative;
  z-index: 3;
  margin: -1.8rem auto 0;
  padding: 0 0.2rem 0 0.9rem;
  border-left: 1px solid rgba(201, 162, 76, 0.55);
  color: var(--cream-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0;
  line-height: 1.45;
  width: 100%;
  max-width: 26rem;
  white-space: normal;
  overflow-wrap: break-word;
}

.cap-kicker {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.path,
.atelier,
.salon {
  padding: 0 0 4.75rem;
}

.path {
  padding-top: 1.4rem;
}

.salon {
  padding-top: 2.75rem;
}

.atelier {
  padding-top: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.rates {
  padding: 0.6rem 0 4.75rem;
}

.rate-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rate-list li {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.7rem 0.7rem 1.1rem;
  border: 1px solid rgba(201, 162, 76, 0.28);
  background: rgba(8, 21, 37, 0.55);
}

.rate-list li:hover {
  border-color: rgba(201, 162, 76, 0.55);
}

.rate-mark {
  --ow: 12;
  --oh: 12;
  container-type: size;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 11.25rem;
  margin: 0 0 0.95rem;
  padding: 0 0 1.15rem;
  background:
    radial-gradient(90% 55% at 50% 0%, #fffaf3 0%, rgba(255, 250, 243, 0) 62%),
    linear-gradient(180deg, #f6f0e4 0%, #e6dcc8 100%);
  box-shadow: inset 0 0 0 1px rgba(138, 106, 40, 0.28);
}

.rate-mark span {
  display: block;
  width: calc(var(--ow) * 0.38rem);
  height: calc(var(--oh) * 0.38rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 42%),
    var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 0.28rem #16120c,
    0 0 0 0.36rem var(--gold),
    0 0.85rem 1.1rem rgba(48, 32, 12, 0.22);
}

@supports (width: 1cqh) {
  .rate-mark span {
    width: calc(var(--ow) * min(4.15cqw, 4.15cqh));
    height: calc(var(--oh) * min(4.15cqw, 4.15cqh));
  }
}

.rate-mark[data-opening="12x12"] {
  --ow: 12;
  --oh: 12;
}

.rate-mark[data-opening="16x16"] {
  --ow: 16;
  --oh: 16;
}

.rate-mark[data-opening="20x20"] {
  --ow: 20;
  --oh: 20;
}

.rate-mark[data-opening="16x20"] {
  --ow: 16;
  --oh: 20;
}

.rate-size {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.rate-price {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
}

.rate-note {
  margin: 0.4rem 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.4;
}

.rate-foot {
  margin: 1.15rem 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rate-foot a,
.rate-jump {
  color: var(--gold);
}

.rate-jump {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.rate-jump:hover,
.rate-foot a:hover {
  color: var(--gold-2);
}

.rate-jump:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 38rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.08;
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--cream-dim);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 34rem;
}

.salon-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  line-height: 1.45;
  max-width: 38rem;
}

.salon-facts li {
  display: inline-flex;
  align-items: center;
}

.salon-facts li:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: none;
}

.salon-wall {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.salon-rail {
  display: none;
}

.salon-piece {
  margin: 0;
  min-width: 0;
}

.salon-frame {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0c1a2e;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(201, 162, 76, 0.22);
  cursor: zoom-in;
  color: inherit;
}

.salon-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, transparent 58%, rgba(12, 39, 84, 0.12) 100%);
  opacity: 0.55;
}

.salon-look {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.7rem 0.36rem;
  border: 1px solid rgba(201, 162, 76, 0.72);
  background: rgba(5, 10, 20, 0.72);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.salon-look::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid var(--gold-2);
  border-bottom: 1.5px solid var(--gold-2);
  transform: translate(-0.04rem, -0.04rem);
}

.salon-frame:hover .salon-look,
.salon-frame:focus-visible .salon-look {
  border-color: var(--gold-2);
  background: rgba(5, 10, 20, 0.88);
  color: var(--gold-2);
}

.salon-frame:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.salon-frame:hover img,
.salon-frame:focus-visible img {
  transform: scale(1.035);
}

.salon-piece img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .salon-look,
  .salon-piece img {
    transition: none;
  }

  .salon-frame:hover img,
  .salon-frame:focus-visible img {
    transform: none;
  }
}

.salon-piece figcaption {
  margin-top: 0.75rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--gold);
}

.salon-piece figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.salon-piece figcaption span {
  display: block;
  margin-top: 0.15rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

.salon-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  align-items: center;
}

.salon-cta .btn {
  width: auto;
}

.salon-views {
  display: none;
}

.glass-pane {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(0.7rem, env(safe-area-inset-top)) max(0.7rem, env(safe-area-inset-right)) max(0.7rem, env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
  overflow: hidden;
}

.glass-pane[hidden] {
  display: none;
}

.glass-scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 10, 20, 0.48);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  cursor: zoom-out;
}

.glass-x,
.glass-chevron {
  z-index: 3;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 76, 0.48);
  background: rgba(12, 22, 40, 0.42);
  color: var(--cream);
  line-height: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.glass-x:hover,
.glass-x:focus-visible,
.glass-chevron:hover,
.glass-chevron:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.glass-x {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.5rem;
}

.glass-chevron {
  position: absolute;
  top: 50%;
  width: 2.45rem;
  height: 2.45rem;
  transform: translateY(-50%);
  font-size: 1.45rem;
}

.glass-chevron.is-prev {
  left: 0.7rem;
}

.glass-chevron.is-next {
  right: 0.7rem;
}

.glass-plate {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: min(94vw, 54rem);
  max-height: calc(100dvh - 1.5rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f4f1ea;
  border: 1px solid rgba(201, 162, 76, 0.42);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-stage {
  position: relative;
  display: block;
  line-height: normal;
}

.glass-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 36%);
}

.glass-well {
  position: relative;
  display: block;
  min-height: 0;
  background: transparent;
}

#glassArt {
  width: auto;
  height: auto;
  max-width: min(94vw, 54rem);
  max-height: calc(100dvh - 1.6rem);
  object-fit: contain;
  display: block;
  background: transparent;
}

.glass-views {
  position: absolute;
  z-index: 3;
  right: 0.85rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.55rem;
}

.glass-view {
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  width: auto;
  min-width: 3.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 230, 208, 0.72);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.glass-view img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(201, 162, 76, 0.4);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.glass-view[aria-pressed="true"] {
  color: var(--gold);
}

.glass-view[aria-pressed="true"] img,
.glass-view:hover img,
.glass-view:focus-visible img {
  border-color: var(--gold);
}

.glass-view[aria-pressed="true"] img {
  box-shadow: 0 0 0 1px var(--gold), 0 10px 22px rgba(0, 0, 0, 0.38);
}

.glass-view:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.glass-legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 2.6rem 3.4rem 1rem 1.15rem;
  border: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 20, 0.55) 38%, rgba(5, 10, 20, 0.88) 100%);
}

.glass-legend::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.85rem;
  bottom: 1rem;
  width: 1px;
  background: var(--gold);
}

.glass-kicker {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.22rem 0.85rem;
  color: var(--gold);
  line-height: 1.35;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.glass-kicker span {
  display: inline;
  margin: 0;
  letter-spacing: 0.16em;
}

.glass-legend strong {
  display: block;
  margin-left: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--cream);
}

.glass-legend > span {
  display: block;
  margin: 0.12rem 0 0 0.85rem;
  max-width: min(34rem, calc(100% - 13.5rem));
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.4;
}

body.is-glass {
  overflow: hidden;
}

@media (max-width: 759px) {
  .glass-pane {
    padding:
      max(0.5rem, env(safe-area-inset-top))
      max(0.55rem, env(safe-area-inset-right))
      max(0.55rem, env(safe-area-inset-bottom))
      max(0.55rem, env(safe-area-inset-left));
    align-items: center;
  }

  .glass-scrim {
    background: rgba(5, 10, 20, 0.9);
  }

  .glass-plate {
    --glass-dock: 13.15rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 1.1rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: auto;
    max-height: calc(100vh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100svh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    background: #050a14;
  }

  .glass-plate::before {
    display: none;
  }

  .glass-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0.45rem 0.4rem 0.2rem;
    background: transparent;
    overflow: hidden;
  }

  #glassArt {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - var(--glass-dock) - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100svh - var(--glass-dock) - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    flex: 0 1 auto;
  }

  .glass-legend {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    padding: 0.7rem 0.95rem 0.05rem;
    background: transparent;
  }

  .glass-legend::after {
    top: 0.8rem;
    bottom: 0.15rem;
    left: 0.95rem;
  }

  .glass-legend > span {
    max-width: none;
  }

  .glass-views {
    position: static;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: repeat(3, 4.55rem);
    justify-content: start;
    gap: 0.7rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.95rem 0.8rem;
    overflow: visible;
  }

  .glass-view {
    width: auto;
    min-width: 0;
    font-size: 0.62rem;
    line-height: 1.25;
    letter-spacing: 0.14em;
  }

  .glass-view img {
    width: 4.55rem;
    height: 4.55rem;
    object-fit: cover;
    object-position: center;
  }

  .glass-x {
    top: 0.55rem;
    right: 0.55rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .glass-chevron {
    width: 2.25rem;
    height: 2.25rem;
  }

  .glass-chevron.is-prev {
    left: 0.45rem;
  }

  .glass-chevron.is-next {
    right: 0.45rem;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .glass-plate,
  #glassArt {
    max-width: min(90vw, 46rem);
  }
}

.path-list {
  list-style: none;
  margin: 0;
  padding: 1.85rem 0 0;
  display: grid;
  gap: 1.6rem;
  border-top: 0;
  background-image: var(--stitch);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top left;
}

.path-list li {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.path-list .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--gold);
  line-height: 1;
  font-feature-settings: "tnum" 1;
}

.path-list h3 {
  font-size: 1.42rem;
  font-weight: 600;
}

.path-list p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 22rem;
}

.ask {
  margin-top: 2.75rem;
  padding-top: 2.1rem;
  background-image: var(--stitch);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top left;
}

.ask-head {
  margin-bottom: 1.45rem;
  max-width: 38rem;
}

.ask-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  line-height: 1.12;
}

.ask-list {
  display: grid;
  gap: 1.35rem 2.2rem;
  margin: 0;
}

.ask-list > div {
  margin: 0;
  padding: 0 0 0 0.9rem;
  border-left: 1px solid var(--gold);
}

.ask-list dt {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ask-list dd {
  margin: 0.4rem 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 28rem;
}

.ask-list a {
  color: var(--gold-2);
  text-decoration: none;
}

.ask-list a:hover {
  color: var(--gold);
}

.atelier-kicker {
  margin: 0 0 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  font-weight: 500;
}

.atelier-grid {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.wall {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 28rem;
  padding: 1.4rem 1.25rem 1.55rem;
  background:
    radial-gradient(62% 34% at 50% 0%, rgba(232, 198, 122, 0.16), transparent 64%),
    radial-gradient(88% 28% at 50% 100%, rgba(232, 198, 122, 0.1), transparent 72%),
    linear-gradient(180deg, #163056 0%, #10243f 46%, #12263f 100%);
  border: 1px solid rgba(201, 162, 76, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.alcove {
  --niche: min(30rem, calc(100vh - var(--head-h) - 11rem));
  position: relative;
  z-index: 1;
  width: min(100%, var(--niche));
  flex: 1 1 auto;
  height: var(--niche);
  min-height: 18rem;
  margin: 0.7rem 0 0.45rem;
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

.alcove-well {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 68% at 50% 46%, #2a5f96 0%, #1a3d6e 42%, transparent 74%);
  box-shadow: none;
}

.alcove-well::before {
  display: none;
}

.wall::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 42%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 18px 48px 10px rgba(232, 198, 122, 0.18);
  pointer-events: none;
}

.wall-label,
.wall-meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-align: center;
}

.wall-meta {
  margin-top: 0;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.82rem;
  max-width: 22rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wall-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.1rem;
}

.wall-dock .btn-gold {
  width: 100%;
  max-width: 16rem;
  min-height: 38px;
  margin: 0;
  padding: 0.4rem 0.9rem;
}

.wall-dock .openings-label {
  margin-bottom: 0.18rem;
}

.wall-dock .openings-row {
  gap: 0.28rem;
}

.wall-dock .openings-row button {
  min-height: 38px;
  padding: 0.2rem 0.08rem 0.16rem;
}

.wall-dock .openings-row button span {
  font-size: 0.86rem;
}

.wall-dock .openings-row button small {
  font-size: 0.58rem;
}

.wall-dock .wall-fit {
  margin-top: 0.16rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

.openings {
  width: 100%;
  max-width: 22rem;
  margin: 0;
}

.openings-label {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.openings-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.openings-row button {
  display: grid;
  gap: 0.16rem;
  justify-items: center;
  align-content: center;
  min-height: 48px;
  padding: 0.38rem 0.12rem 0.32rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.28);
  color: var(--cream-dim);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.openings-row button span {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.openings-row button small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.openings-row button:hover {
  border-color: rgba(201, 162, 76, 0.55);
  color: var(--cream);
}

.openings-row button.is-on {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(201, 162, 76, 0.1);
  box-shadow: 0 0 0 1px var(--gold);
}

.openings-row button.is-on small {
  color: var(--gold-2);
}

.openings-row button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wall-fit {
  margin: 0.45rem 0 0;
  color: var(--cream-dim);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.viewer-sheet .openings {
  max-width: 26rem;
  margin-top: 0.28rem;
}

.viewer-sheet .openings-row button {
  min-height: 36px;
  padding: 0.16rem 0.08rem 0.12rem;
}

.viewer-sheet .openings-row button span {
  font-size: 0.86rem;
}

.viewer-sheet .openings-label,
.viewer-sheet .wall-fit {
  text-align: left;
}

.wall-quiet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wall-quiet-dot {
  color: var(--gold);
  font-size: 0.9em;
  letter-spacing: 0;
}

.wall-note {
  margin: 0;
  padding: 0.1rem 0;
  min-height: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
}

a.wall-note {
  color: var(--muted);
  text-decoration: none;
}

.wall-note:hover,
a.wall-note:hover {
  color: var(--gold-2);
}

.canvas.is-inspectable {
  cursor: zoom-in;
}

.canvas.is-inspectable:hover {
  outline: 1px solid rgba(201, 162, 76, 0.4);
  outline-offset: 4px;
}

.canvas.is-inspectable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.hang {
  --art: none;
  --ar: 1 / 1;
  --scale: 0.68;
  --mat-x: 12.5%;
  --mat-y: 12.5%;
  --hole-l: 0%;
  --hole-t: 0%;
  --hole-w: 100%;
  --hole-h: 100%;
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  place-items: center;
  justify-items: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow: visible;
  container-type: size;
}

.canvas {
  --moulding: 12px;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  width: min(100%, calc(var(--niche) * var(--scale, 0.66)));
  height: auto;
  aspect-ratio: var(--ar, 1 / 1);
  max-width: 100%;
  max-height: 100%;
  padding: var(--moulding);
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  justify-self: center;
  align-self: center;
  margin: auto;
  transition: box-shadow 0.28s ease, padding 0.28s var(--ease);
}

.float-well {
  position: absolute;
  inset: var(--moulding);
  z-index: 2;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  display: grid;
  clip-path: inset(0);
  transform: translateZ(0);
}

.mat {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
}

.mat-window {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  clip-path: inset(0);
}

.hang[data-fill="contain"] .mat {
  box-sizing: border-box;
  padding: 0;
  background:
    linear-gradient(180deg, #f4eee3 0%, #ebe3d2 52%, #e4d9c4 100%);
}

.hang[data-fill="contain"] .mat-window {
  position: absolute;
  top: var(--mat-y, 12.5%);
  right: var(--mat-x, 12.5%);
  bottom: var(--mat-y, 12.5%);
  left: var(--mat-x, 12.5%);
  width: auto;
  height: auto;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 245, 0.7),
    inset 0 0 0 1px rgba(90, 68, 32, 0.14);
}

.hang.is-empty .mat {
  background: #163056;
}

.hang.is-empty[data-style="black"] .mat {
  background: #1a406e;
}

.hang.is-plated .face-empty {
  color: var(--cream-dim);
}

#previewArt {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: none;
  border: 0;
  outline: 0;
  background: none;
  border-radius: 0;
}

.hang.is-empty #previewArt,
.hang.is-empty[data-fill="cover"] #previewArt,
.hang.is-empty[data-fill="contain"] #previewArt {
  display: none;
}

.hang.is-hung #previewArt,
.hang.is-hung[data-fill="cover"] #previewArt,
.hang.is-hung[data-fill="contain"] #previewArt {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hang.is-hung[data-fill="contain"] #previewArt {
  object-fit: cover;
  object-position: center;
}

.hang.is-loading .mat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 248, 230, 0.28) 50%, transparent 70%);
  animation: sheen 1.1s ease-in-out infinite;
}

@keyframes sheen {
  from {
    transform: translateX(-40%);
  }
  to {
    transform: translateX(40%);
  }
}

.face-empty {
  display: none;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.15rem 1.3rem;
  max-width: 12.5rem;
  text-align: center;
  color: var(--cream-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hang.is-empty .face-empty {
  display: block;
}

.hang[data-style="black"] .canvas {
  --moulding: 18px;
  padding: var(--moulding);
  background: #141414;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 14px rgba(4, 10, 22, 0.28);
}

.hang[data-style="black"] .float-well {
  padding: 0;
  background: transparent;
}

.hang[data-style="black"] .mat {
  box-shadow: none;
}

.hang[data-style="gold"] .canvas {
  --moulding: 16px;
  padding: var(--moulding);
  background:
    repeating-linear-gradient(90deg, rgba(255, 236, 190, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, #e4c56a 0%, #c6a04a 48%, #a48432 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 200, 0.55),
    inset 0 -1px 0 rgba(90, 62, 16, 0.4),
    0 14px 22px rgba(0, 0, 0, 0.45);
}

.hang[data-style="gold"] .float-well {
  padding: 0;
  background: transparent;
}

.hang[data-style="gold"] .mat {
  box-shadow: inset 0 0 0 1px rgba(80, 55, 15, 0.35);
}

.hang[data-style="wood"] .canvas {
  --moulding: 16px;
  padding: var(--moulding);
  background:
    repeating-linear-gradient(90deg, rgba(120, 86, 42, 0.16) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, #e7d3a8 0%, #d2b48a 52%, #c4a574 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.45),
    inset 0 -1px 0 rgba(90, 62, 28, 0.28),
    0 14px 22px rgba(0, 0, 0, 0.4);
}

.hang[data-style="wood"] .float-well {
  padding: 0;
  background: transparent;
}

.hang[data-style="wood"] .mat {
  box-shadow: inset 0 0 0 1px rgba(90, 62, 24, 0.45);
}

.hang[data-style="darkwood"] .canvas {
  --moulding: 16px;
  padding: var(--moulding);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 5px),
    linear-gradient(165deg, #6a4632 0%, #4a2e1e 55%, #3a2418 100%);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.5);
}

.hang[data-style="darkwood"] .float-well {
  padding: 0;
  background: transparent;
}

.hang[data-style="darkwood"] .mat {
  box-shadow: none;
}

.hang[data-size="12x12"] {
  --scale: 0.5;
  --ar: 1 / 1;
}

.hang[data-size="16x16"] {
  --scale: 0.66;
  --ar: 1 / 1;
}

.hang[data-size="20x20"] {
  --scale: 0.86;
  --ar: 1 / 1;
}

.hang[data-size="16x20"] {
  --scale: 0.86;
  --ar: 4 / 5;
}

.hang[data-size="20x16"] {
  --scale: 0.86;
  --ar: 5 / 4;
}

/* Width of niche×scale plus max-height stretches a square into a wide bar
   when the size row shortens the alcove. Size from the hang's shorter side. */
.hang[data-size="12x12"] .canvas,
.hang[data-size="16x16"] .canvas,
.hang[data-size="20x20"] .canvas,
.hang[data-size="20x16"] .canvas {
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
}

.hang[data-size="12x12"] .canvas { width: calc(min(100cqi, 100cqh) * 0.58); }
.hang[data-size="16x16"] .canvas { width: calc(min(100cqi, 100cqh) * 0.75); }
.hang[data-size="20x20"] .canvas { width: calc(min(100cqi, 100cqh) * 0.92); }

.hang[data-size="20x16"] .canvas {
  box-sizing: content-box;
  width: calc(min(100cqi, 100cqh) * 0.92 - (2 * var(--moulding)));
  height: auto;
  aspect-ratio: 5 / 4;
}

/* The opening, not the outer moulding, is the sold size. Padding sits outside
   that ratio so a matching file fills the window and only a different shape crops. */
.hang[data-size="16x20"] .canvas {
  box-sizing: content-box;
  width: auto;
  height: calc(min(100cqi, 100cqh) * 0.92 - (2 * var(--moulding)));
  max-width: none;
  max-height: none;
  aspect-ratio: 4 / 5;
}

.tray {
  min-width: 0;
  max-width: 100%;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(14, 24, 40, 0.96), rgba(7, 12, 22, 0.98));
  border: 1px solid var(--line);
  padding: 1.35rem 1.3rem 1.5rem;
}

.panels,
.panel {
  min-width: 0;
  max-width: 100%;
}

.progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0;
  margin: 0 0 1.45rem;
  border-bottom: 1px solid rgba(201, 162, 76, 0.18);
}

.progress button {
  width: 100%;
  min-height: 42px;
  padding: 0.4rem 0.15rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}

.progress li.is-current button {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.progress li.is-done button {
  color: var(--cream-dim);
}

.progress li.is-next button {
  color: var(--gold-2);
}

.panel h3 {
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  margin-bottom: 0.45rem;
}

.panel-copy,
.hint {
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin-bottom: 1.05rem;
  line-height: 1.55;
}

.hint {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.82rem;
}

.pay-crypto {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-size: 1.02rem;
  line-height: 1.55;
}

.pay-crypto strong {
  color: var(--gold-2);
}

.pay-due {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.55rem;
}

.pay-rate {
  margin: 0.28rem 0 0;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.check-ticket {
  margin: 0 0 0.35rem;
  padding: 0.9rem 1rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(201, 162, 76, 0.08);
}

.check-ticket .summary {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.check-block {
  margin: 1.15rem 0 0;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.32);
}

.check-kicker,
.pay-rails > legend {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.check-block > label:first-of-type {
  margin-top: 0;
}

.check-block .hint {
  margin-bottom: 0;
}

.check-trust {
  display: grid;
  gap: 0.32rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.check-trust li {
  position: relative;
  padding-left: 0.9rem;
}

.check-trust li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.check-trust a {
  color: var(--gold-2);
  text-decoration: none;
}

.check-trust a:hover {
  color: var(--gold);
}

.check-foot {
  margin-top: 1.2rem;
}

.tray .check-foot .btn-gold {
  width: 100%;
  margin-top: 0.25rem;
}

.pay-rails {
  margin: 1.15rem 0 0;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.32);
  min-width: 0;
}

.pay-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.45rem 0 0.85rem;
}

.pay-pick {
  display: grid;
  margin: 0;
  cursor: pointer;
}

.pay-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.pay-pick span {
  display: grid;
  gap: 0.12rem;
  min-height: 3.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pay-pick span strong {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
}

.pay-pick input:checked + span {
  border-color: var(--gold);
  background: rgba(201, 162, 76, 0.08);
  color: var(--cream);
}

.pay-pick input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pay-panel[hidden],
.xaman-box[hidden],
.stripe-wallets[hidden],
.pay-or[hidden],
.stripe-card[hidden],
.pay-secure[hidden],
.stripe-mount[hidden],
.xaman-skel[hidden] {
  display: none !important;
}

.xaman-box {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  margin: 0.7rem 0 0.3rem;
}

.xaman-box img,
.xaman-skel {
  width: 9.5rem;
  height: 9.5rem;
  background: #fff;
}

.xaman-box img {
  padding: 0.35rem;
}

.xaman-skel {
  background:
    linear-gradient(180deg, #f7f1e4 0%, #efe4cd 100%);
}

.xaman-box img:not([src]),
.xaman-box img[src=""] {
  display: none;
}

.stripe-wallets {
  display: grid;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
}

.pay-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin: 0.95rem 0 0.2rem;
  color: var(--cream-dim);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pay-or::before,
.pay-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.stripe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.stripe-field {
  display: block;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0.95rem 0.85rem;
  border: 1px solid rgba(201, 162, 76, 0.28);
  background: rgba(5, 10, 20, 0.62);
}

.stripe-field.StripeElement--focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.stripe-field.StripeElement--invalid {
  border-color: var(--danger);
}

.pay-secure {
  margin: 0.75rem 0 0.1rem;
}

.stripe-mount {
  min-height: 0;
  margin: 0.35rem 0 0.1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.stripe-mount.is-wait {
  display: grid;
  place-items: center;
  min-height: 4.25rem;
  margin-top: 0.7rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid var(--line);
}

.pay-skel,
.hint.pay-wait {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hint.pay-wait {
  margin: 0 0 0.7rem;
}

.pay-skel {
  color: var(--cream-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .xaman-skel,
  .pay-skel,
  .btn-gold[aria-busy="true"] {
    animation: pay-pulse 1.15s ease-in-out infinite;
  }
}

@keyframes pay-pulse {
  50% {
    opacity: 0.62;
  }
}

.atelier {
  padding-bottom: 3.2rem;
}

.agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.1rem 0 1.2rem;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.agree input {
  margin-top: 0.28rem;
  flex: none;
}

.agree a {
  color: var(--gold);
}

.legal-page main {
  position: relative;
}

.legal-doc {
  max-width: 46rem;
  padding: clamp(2.2rem, 6vw, 4.2rem) 0 4.6rem;
}

.legal-mast {
  padding-bottom: 1.5rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-mast .eyebrow {
  margin-bottom: 0.55rem;
}

.legal-doc h1 {
  font-size: clamp(2.35rem, 5vw, 3.45rem);
  margin: 0 0 0.85rem;
  color: var(--cream);
}

.track-doc {
  max-width: 40rem;
}

.track-form {
  margin: 1.6rem 0 1.4rem;
  padding: 1.2rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.32);
}

.track-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.track-form label:first-child {
  margin-top: 0;
}

.track-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.45);
  color: var(--cream);
}

.track-form .hint {
  margin: 0.7rem 0 1rem;
}

.track-form .btn {
  margin-top: 0.2rem;
}

.track-result {
  margin: 0 0 1.6rem;
  padding: 1.2rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.28);
}

.track-result h2 {
  margin: 0.2rem 0 0.55rem;
}

.track-kv {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.track-kv div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.track-kv dt {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-kv dd {
  margin: 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.track-kv a {
  color: var(--gold);
}

.track-policy {
  max-width: 36rem;
}

.track-result .track-next {
  max-width: 36rem;
  margin: 1.05rem 0 0;
}

.legal-lede {
  max-width: 36rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.2vw, 1.38rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.legal-meta {
  margin-top: 1.15rem;
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin: 0 0 1.8rem;
  padding: 0.95rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.legal-tabs a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-tabs a:hover,
.legal-tabs a[aria-current="page"] {
  color: var(--gold);
}

.legal-toc {
  list-style: none;
  margin: 0 0 2.4rem;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 1px solid var(--line);
}

.legal-toc li + li {
  margin-top: 0.32rem;
}

.legal-toc a,
.legal-toc button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream-dim);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.legal-toc a:hover,
.legal-toc button:hover,
.legal-toc button:focus-visible {
  color: var(--gold-2);
}

button.skip-link {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.legal-body section {
  scroll-margin-top: calc(var(--head-h) + 1rem);
}

.legal-body section + section h2 {
  margin-top: 2.35rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}

.legal-doc h2 {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  color: var(--cream);
}

.legal-doc h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.12rem;
  color: var(--gold-2);
}

.sec-num {
  flex: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-style: normal;
}

.legal-doc a {
  color: var(--gold);
}

.legal-doc a.btn-gold,
.legal-doc a.btn-gold:hover {
  color: var(--navy-0);
}

.legal-doc a.btn-line {
  color: var(--gold-2);
}

.legal-doc a.btn-line:hover {
  color: var(--cream);
}

.legal-doc .salon-cta {
  margin-top: 2.4rem;
}

.legal-doc .ask-list {
  grid-template-columns: 1fr;
  max-width: 40rem;
}

.legal-doc .ask-list > div:last-child {
  grid-column: auto;
}

.legal-doc .ask-list dd {
  max-width: 36rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--cream-dim);
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-doc p + p,
.legal-doc ul + p,
.legal-doc ol + p {
  margin-top: 0.95rem;
}

.legal-doc ul,
.legal-doc ol.legal-list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.legal-doc li + li {
  margin-top: 0.42rem;
}

.ship-times {
  width: 100%;
  margin: 1.05rem 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ship-times th,
.ship-times td {
  padding: 0.58rem 0.9rem 0.58rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--cream-dim);
}

.ship-times th {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ship-times td:first-child {
  color: var(--cream);
  font-weight: 500;
  width: 34%;
  padding-right: 1.1rem;
}

.legal-contact {
  margin-top: 2.8rem;
  padding: 1.3rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 76, 0.06);
}

.legal-contact .eyebrow {
  margin-bottom: 0.45rem;
}

.legal-contact p {
  color: var(--cream);
}

.tray label:not(.choice):not(.swatch):not(.size-pick):not(.agree) {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(201, 162, 76, 0.28);
  background: rgba(5, 10, 20, 0.62);
  color: var(--cream);
  border-radius: 0;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder {
  color: var(--muted);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.paste-panel {
  padding: 1.1rem 1.05rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 76, 0.06);
}

.paste-panel label {
  margin-top: 0;
}

.paste-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.paste-field {
  position: relative;
  min-width: 0;
}

.paste-field input {
  padding-right: 2.7rem;
}

.paste-clear {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.paste-clear:hover,
.paste-clear:focus-visible {
  color: var(--gold);
}

.paste-clear:disabled {
  opacity: 0.35;
  cursor: default;
}

.paste-clear[hidden] {
  display: none;
}

.paste-lead .btn {
  width: 100%;
  margin-top: 0;
}

.vault-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.vault-head .panel-copy {
  margin-bottom: 0.35rem;
}

.hung-ticket {
  margin: 0.85rem 0 1rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 76, 0.07);
}

.hung-kicker {
  margin: 0 0 0.28rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hung-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
}

.hung-sub {
  margin: 0.28rem 0 0.85rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.4;
}

.tray .hung-ticket .btn-gold {
  width: 100%;
  margin: 0;
}

.vault-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.canvas-actions .btn {
  width: auto;
  margin-top: 0;
  min-width: 10.5rem;
}

.pay-empty .canvas-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 0.15rem;
}

.pay-empty .canvas-actions .btn {
  width: 100%;
}

.btn-tiny,
.tray .btn-tiny {
  width: auto;
  margin-top: 0.2rem;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
}

.add-more {
  margin: 0.85rem 0 0.35rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid rgba(201, 162, 76, 0.28);
}

.add-more label {
  margin-top: 0;
}

.add-more .paste-lead .btn {
  margin-top: 0;
}

.stacks {
  margin-top: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.stack {
  min-width: 0;
  max-width: 100%;
  border-bottom: 1px solid rgba(201, 162, 76, 0.16);
  padding-bottom: 0.2rem;
  margin-bottom: 0.05rem;
}

.stack-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  min-height: 44px;
  padding: 0.12rem 0;
  color: var(--cream);
}

.stack-toggle {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto 1rem;
  gap: 0.55rem;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 0.15rem 0.2rem 0.15rem 0;
  text-align: left;
  color: inherit;
}

.stack-toggle:hover strong {
  color: var(--gold-2);
}

.stack-cover {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  display: block;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(92, 68, 32, 0.08) 0 1px, transparent 1px 3px),
    #d7c7a6;
}

span.stack-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 248, 230, 0.28) 50%, transparent 70%);
  animation: sheen 1.1s ease-in-out infinite;
}

.stack-head strong {
  font-weight: 500;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-count {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  min-width: 1.4rem;
  text-align: right;
}

.stack-chevron {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.stack.is-open .stack-chevron {
  transform: rotate(90deg);
}

.stack.is-hung .stack-cover {
  box-shadow: 0 0 0 1px var(--gold-2);
}

.stack-remove {
  min-height: 32px;
  padding: 0 0.45rem;
  color: var(--cream-dim);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  opacity: 0.45;
}

.stack-head:hover .stack-remove,
.stack-head:focus-within .stack-remove,
.stack-remove:focus-visible {
  opacity: 1;
}

.stack-remove:hover {
  color: var(--cream);
  border-color: var(--line);
}

.stack-view {
  --rail-tile: 86.4px;
  --rail-gap: 6.4px;
  --rail-cap: 1.55rem;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.stack-rail {
  --rail-tile: 86.4px;
  --rail-gap: 6.4px;
  --rail-cap: 1.55rem;
  display: block;
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.1rem 0 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 76, 0.5) transparent;
}

.stack-rail.is-more-end {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.6rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.6rem), transparent);
}

.stack-rail.is-more-start {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.6rem);
  mask-image: linear-gradient(90deg, transparent, #000 2.6rem);
}

.stack-rail.is-more-start.is-more-end {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.6rem, #000 calc(100% - 2.6rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.6rem, #000 calc(100% - 2.6rem), transparent);
}

.rail-nudge {
  position: absolute;
  top: 0.25rem;
  z-index: 2;
  width: 1.7rem;
  height: var(--rail-tile);
  color: var(--gold-2);
  font-size: 1.35rem;
  line-height: 1;
  background: linear-gradient(90deg, rgba(5, 10, 20, 0.08), rgba(5, 10, 20, 0.78));
}

.rail-nudge.is-prev {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 10, 20, 0.88), rgba(5, 10, 20, 0.05));
}

.rail-nudge.is-next {
  right: 0;
}

.rail-nudge:hover {
  color: var(--cream);
}

.rail-nudge[hidden] {
  display: none;
}

.rail-place {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.45rem;
  min-height: 1.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.rail-place[hidden] {
  display: none;
}

.rail-place-name {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  background: none;
}

.rail-place-name:hover {
  color: var(--cream);
}

.rail-place-at {
  flex: none;
}

.stack-rail::-webkit-scrollbar {
  height: 6px;
}

.stack-rail::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 76, 0.45);
}

.stack-rail-track {
  position: relative;
  height: calc(var(--rail-tile) + var(--rail-cap) + 0.4rem);
}

.thumb {
  position: absolute;
  top: 0;
  width: var(--rail-tile);
  padding: 0;
  border: 1px solid transparent;
  background: #0a121c;
  cursor: pointer;
}

.thumb img {
  width: var(--rail-tile);
  height: var(--rail-tile);
  object-fit: cover;
  pointer-events: none;
  background: #0a121c;
  border-radius: 0;
}

.thumb.is-waiting img {
  background:
    repeating-linear-gradient(90deg, rgba(92, 68, 32, 0.08) 0 1px, transparent 1px 3px),
    #d7c7a6;
}

.thumb:hover {
  border-color: var(--gold);
}

.thumb.is-selected {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 1px var(--gold);
}

.thumb p {
  margin: 0;
  padding: 0.28rem 0.3rem 0.35rem;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-stacks {
  padding: 1rem 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.empty-stacks .btn {
  margin-top: 0.85rem;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100%;
  height: 100dvh;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(22, 48, 86, 0.55), transparent 62%),
    radial-gradient(ellipse 40% 28% at 50% 8%, rgba(232, 198, 122, 0.1), transparent 70%),
    #070b12;
}

.viewer[hidden] {
  display: none;
}

.viewer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(201, 162, 76, 0.16);
}

.viewer-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.55);
}

.viewer-tools button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--cream);
  padding: 0 0.55rem;
  font-size: 1rem;
  background: transparent;
}

.viewer-tools button:last-of-type {
  border-right: 0;
}

.viewer-tools button:hover:not(:disabled) {
  color: var(--gold-2);
  background: rgba(201, 162, 76, 0.08);
}

.viewer-tools button:disabled {
  opacity: 0.35;
  cursor: default;
}

.viewer-tools span {
  min-width: 3.4rem;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--line);
}

.viewer-close {
  justify-self: end;
  min-height: 40px;
  padding: 0 0.9rem;
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.viewer-close:hover {
  color: var(--cream);
}

.viewer-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.viewer-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 1.85rem;
  line-height: 1;
  background: rgba(8, 16, 28, 0.72);
}

.viewer-nav:hover {
  color: var(--gold);
  border-color: var(--line-strong);
}

#viewerPrev {
  left: 0.7rem;
}

#viewerNext {
  right: 0.7rem;
}

.viewer-nav.is-ghost {
  visibility: hidden;
}

.viewer-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  background:
    radial-gradient(ellipse 64% 70% at 50% 46%, rgba(14, 24, 40, 0.15), rgba(4, 8, 14, 0.72) 78%),
    #080c12;
}

.viewer-frame.is-zoomed {
  cursor: grab;
}

.viewer-frame.is-panning {
  cursor: grabbing;
}

.inspect {
  transform-origin: center center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: stretch;
}

.inspect-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 0.75rem 3.4rem;
  box-sizing: border-box;
  background: transparent;
}

.inspect-plate.is-waiting::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 248, 230, 0.28) 50%, transparent 70%);
  animation: sheen 1.1s ease-in-out infinite;
  pointer-events: none;
}

.inspect-plate img,
#viewerArt {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transition: none;
}

.viewer-product {
  color: var(--cream-dim);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.1rem 0 0;
}

.viewer-dock {
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid rgba(201, 162, 76, 0.16);
  padding: 0.45rem 1.1rem 0.7rem;
  background: rgba(5, 9, 16, 0.94);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.viewer-sheet {
  text-align: left;
  max-width: none;
  margin: 0;
  min-width: 0;
}

.viewer-sheet h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0;
  font-weight: 600;
}

.viewer-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.viewer-links[hidden] {
  display: none;
}

.viewer-links a {
  color: var(--gold-2);
  text-decoration: none;
  padding: 0.15rem 0.55rem 0.15rem 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.viewer-links a + a {
  border-left: 1px solid var(--line);
  padding-left: 0.55rem;
}

.viewer-links a:hover {
  color: var(--cream);
}

.viewer-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem 0.8rem;
}

.viewer-actions .btn {
  width: auto;
  margin-top: 0;
  min-width: 10.5rem;
  min-height: 42px;
}

.text-btn {
  min-height: 40px;
  padding: 0 0.7rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
}

.text-btn:hover {
  color: var(--cream);
}

.viewer-film {
  --film-tile: 44.8px;
  --film-gap: 5px;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0.45rem;
  padding: 0 0.15rem 0.4rem;
  border: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 76, 0.55) transparent;
  cursor: grab;
  touch-action: pan-x;
}

.viewer-film:active {
  cursor: grabbing;
}

.viewer-film::-webkit-scrollbar {
  height: 6px;
}

.viewer-film::-webkit-scrollbar-track {
  background: rgba(201, 162, 76, 0.08);
}

.viewer-film::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 76, 0.45);
}

.viewer-film[hidden] {
  display: none;
}

.viewer-film-track {
  position: relative;
  height: var(--film-tile);
}

.viewer-film button {
  position: absolute;
  top: 0;
  z-index: 1;
  width: var(--film-tile);
  height: var(--film-tile);
  padding: 0;
  border: 1px solid rgba(201, 162, 76, 0.18);
  background: #0a121c;
  cursor: pointer;
}

.viewer-film button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.viewer-film button.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.viewer-film button:hover {
  border-color: var(--gold-2);
}

.viewer-nav:focus-visible,
.viewer-close:focus-visible,
.viewer-tools button:focus-visible,
.viewer-links a:focus-visible,
.text-btn:focus-visible,
.thumb:focus-visible,
.stack-toggle:focus-visible,
.stack-remove:focus-visible,
.rail-nudge:focus-visible,
.rail-place-name:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.readback {
  margin: 0.45rem 0 0;
  color: var(--gold-2);
  font-size: 0.88rem;
}

.error {
  color: #f0b4a6;
  font-size: 0.88rem;
  margin: 0.4rem 0;
}

fieldset {
  border: 0;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

legend {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: var(--gold-2);
}

.choice-grid {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(201, 162, 76, 0.22);
  background: rgba(5, 10, 20, 0.35);
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 162, 76, 0.1);
}

.choice strong {
  display: block;
  font-weight: 600;
}

.choice span {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.place-modes {
  display: grid;
  gap: 0.5rem;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0 0 1rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.place-meta .text-btn {
  margin: 0;
  padding: 0;
}

.swatches,
.size-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.swatch,
.size-pick {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
  text-transform: none;
  letter-spacing: 0;
}

.swatch > input,
.size-pick > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.swatch-card,
.size-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 76, 0.22);
  background: rgba(5, 10, 20, 0.45);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.size-card {
  grid-template-rows: 8.6rem 2.85rem;
}

.swatch:has(input:checked) .swatch-card,
.size-pick:has(input:checked) .size-card {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.swatch:focus-within .swatch-card,
.size-pick:focus-within .size-card {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.swatch-photo {
  width: 100%;
  height: 7.1rem;
  object-fit: cover;
  object-position: 36% 48%;
  display: block;
}

.swatch-meta,
.size-meta {
  display: grid;
  gap: 0.08rem;
  padding: 0.42rem 0.55rem 0.5rem;
  color: var(--cream-dim);
  font-size: 0.78rem;
  line-height: 1.3;
}

.size-meta {
  padding: 0.45rem 0.6rem 0.5rem;
  border-top: 1px solid rgba(201, 162, 76, 0.16);
  background: rgba(5, 10, 20, 0.92);
  min-width: 0;
}

.swatch-meta strong,
.size-meta strong {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.86rem;
}

.size-meta strong {
  white-space: nowrap;
}

.size-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: end center;
  padding: 0.7rem 0.55rem 0.7rem;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255, 248, 230, 0.06), transparent 62%),
    linear-gradient(180deg, #4a5568, #232b38);
}

.size-stage::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0.42rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 76, 0.35), transparent);
  pointer-events: none;
}

.size-frame {
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  min-width: 0;
  min-height: 0;
  height: 72%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.size-mat {
  position: absolute;
  inset: 4px;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: transparent;
}

.size-opening {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background-color: transparent;
  background-image: var(--shop-art, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#sizeGrid[data-fill="contain"] .size-mat {
  background-color: #ebe3d2;
  padding: 0;
}

#sizeGrid[data-fill="contain"] .size-opening {
  position: absolute;
  top: var(--mat-y, 10%);
  right: var(--mat-x, 10%);
  bottom: var(--mat-y, 10%);
  left: var(--mat-x, 10%);
  width: auto;
  height: auto;
  background-size: cover;
  background-position: center;
}

.size-pick:has([value="12x12"]) {
  --mat-x: 12.5%;
  --mat-y: 12.5%;
}

.size-pick:has([value="16x16"]) {
  --mat-x: 12.5%;
  --mat-y: 12.5%;
}

.size-pick:has([value="20x20"]) {
  --mat-x: 10%;
  --mat-y: 10%;
}

.size-pick:has([value="16x20"]) {
  --mat-x: 12.5%;
  --mat-y: 10%;
}

.size-pick:has([value="12x12"]) .size-frame {
  height: 54%;
  aspect-ratio: 1 / 1;
}

.size-pick:has([value="16x16"]) .size-frame {
  height: 72%;
  aspect-ratio: 1 / 1;
}

.size-pick:has([value="20x20"]) .size-frame {
  height: 90%;
  aspect-ratio: 1 / 1;
}

.size-pick:has([value="16x20"]) .size-frame {
  height: 90%;
  aspect-ratio: 4 / 5;
}

.size-pick:has([value="20x16"]) {
  --mat-x: 10%;
  --mat-y: 12.5%;
}

.size-pick:has([value="20x16"]) .size-frame {
  height: 72%;
  aspect-ratio: 5 / 4;
}

.size-pick.is-fit .size-card {
  border-color: rgba(201, 162, 76, 0.22);
}

.size-pick.is-fit .size-stage::before {
  content: "Fits this piece";
  position: absolute;
  top: 0.38rem;
  left: 0.45rem;
  z-index: 2;
  color: var(--gold-2);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.size-pick.is-fit:has(input:checked) .size-card {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

#sizeGrid[data-style="black"] .size-frame {
  background: linear-gradient(165deg, #3a3a3a 0%, #1c1c1c 55%, #141414 100%);
}

#sizeGrid[data-style="gold"] .size-frame {
  background:
    repeating-linear-gradient(90deg, rgba(255, 236, 190, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(165deg, #e4c56a 0%, #c6a04a 55%, #a48432 100%);
}

#sizeGrid[data-style="wood"] .size-frame {
  background:
    repeating-linear-gradient(90deg, rgba(120, 86, 42, 0.16) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, #e7d3a8 0%, #d2b48a 55%, #c4a574 100%);
}

#sizeGrid[data-style="darkwood"] .size-frame {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px),
    linear-gradient(165deg, #6a4632 0%, #4a2e1e 55%, #3a2418 100%);
}

.size-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: none;
}

.size-stage.has-plate .size-frame {
  display: none;
}

.size-stage.has-plate .size-plate {
  display: block;
}

.size-stage.has-plate .size-mat,
.size-stage.has-plate .size-opening {
  position: absolute;
  inset: 12%;
  width: auto;
  height: auto;
}

.print-quality {
  margin: 0.55rem 0 0;
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.done-ticket {
  margin: 0.95rem 0 1.05rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.32);
}

.done-ticket .check-kicker {
  margin-bottom: 0.28rem;
}

.done-ref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.done-ref-row strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.done-copy {
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 28px;
  padding: 0;
}

.done-copy:hover {
  color: var(--gold);
}

.done-copy:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.done-kv {
  display: grid;
  gap: 0.55rem 1.15rem;
  margin: 0.85rem 0 0;
}

.done-kv div {
  min-width: 0;
}

.done-kv dt {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.done-kv dd {
  margin: 0.12rem 0 0;
  color: var(--cream);
}

.done-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.done-actions .btn {
  width: 100%;
}

#doneHelp {
  margin: 0;
}

@media (min-width: 720px) {
  .done-kv {
    grid-template-columns: 1fr 1fr;
  }
}

.nft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.nft-card {
  padding: 0;
  border: 1px solid rgba(201, 162, 76, 0.22);
  background: rgba(5, 10, 20, 0.45);
  text-align: left;
  color: var(--cream);
}

.nft-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.nft-card p {
  padding: 0.5rem 0.55rem 0.65rem;
  font-size: 0.78rem;
}

.nft-card.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.summary {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
}

.summary strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.summary .sum-line {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(201, 162, 76, 0.14);
}

.summary .sum-line:last-of-type {
  border-bottom: 0;
}

.summary .sum-line img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  background: #0a121c;
}

.summary .sum-meta {
  min-width: 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.summary .sum-meta strong {
  display: block;
  font-size: 1.02rem;
  color: var(--cream);
}

.summary .sum-price {
  font-family: var(--serif);
  color: var(--cream);
}

.done-pieces,
.track-pieces {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.done-piece,
.track-piece {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(201, 162, 76, 0.18);
}

.done-piece img,
.track-piece img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  background: #0a121c;
  border: 1px solid rgba(201, 162, 76, 0.35);
}

.done-piece strong,
.track-piece strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
}

.done-piece em,
.track-piece em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--cream-dim);
}

.done-piece b,
.track-piece b {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-2);
}

.summary .sum-total {
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.summary .sum-foot {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(201, 162, 76, 0.28);
}

.summary .sum-foot div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.summary .sum-foot .is-total {
  font-family: var(--serif);
  font-size: 1.25rem;
  padding-top: 0.25rem;
}

.summary .sum-note {
  margin: 0.45rem 0 0;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 24rem);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-scrim {
  border: 0;
  background: rgba(5, 10, 20, 0.55);
  width: 100%;
  height: 100%;
  padding: 0;
}

.cart-sheet {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0a1018;
  border-left: 1px solid var(--line);
  padding: 1rem 1.1rem 1.2rem;
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.cart-head h3 {
  margin: 0;
  font-size: 1.45rem;
}

.cart-empty {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.cart-sheet.is-empty .cart-lines {
  flex: 0 0 auto;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 0.75rem;
  align-items: start;
  padding: 0.35rem 0 0.7rem;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line-main {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0.25rem 0.2rem 0;
  text-align: left;
}

.cart-line-main:hover,
.cart-line.is-editing .cart-line-main {
  background: rgba(201, 162, 76, 0.07);
}

.cart-line-main:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cart-line-copy {
  min-width: 0;
}

.cart-line img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  background: #0a121c;
}

.cart-line strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.cart-line p {
  margin: 0.12rem 0 0;
  color: var(--cream-dim);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.cart-line-edit-hint {
  display: block;
  margin-top: 0.28rem;
  color: var(--gold-2);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-line-side {
  display: grid;
  justify-items: end;
  gap: 0.28rem;
}

.cart-line-amt {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-qty button {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
}

.cart-line .text-btn {
  min-height: 28px;
  padding: 0;
  font-size: 0.62rem;
}

.cart-foot {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.cart-total {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.cart-foot .btn {
  width: 100%;
  margin: 0;
}

.admin-page .head-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand cta";
}

.admin-page:not(.is-open) #adminDesk {
  display: none !important;
}

.admin-page.is-open #adminLock {
  display: none !important;
}

.admin-lock {
  max-width: 24rem;
  margin: clamp(3rem, 12vh, 6rem) auto 4rem;
  padding: 1.8rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 76, 0.05);
}

.admin-lock h1 {
  font-size: 2.2rem;
  margin: 0 0 0.45rem;
}

.admin-lock .hint {
  margin-bottom: 1.1rem;
}

.admin-lock label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.admin-lock .btn {
  width: 100%;
  margin-top: 1rem;
}

.admin-lock #adminCodeWrap {
  margin: 0;
}

.desk-key,
.desk-codes li {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.desk-key {
  margin: 0.7rem 0 0.2rem;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.desk-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

#deskAuthPanel {
  margin-top: 1.35rem;
  margin-bottom: 0.2rem;
}

#deskAuthPanel.is-quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.85rem;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
}

#deskAuthPanel.is-quiet h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#deskAuthPanel.is-quiet .hint,
#deskAuthPanel.is-quiet #deskAuthBody {
  margin: 0;
}

#deskAuthPanel.is-quiet .hint {
  color: var(--cream-dim);
  font-size: 0.84rem;
}

#deskAuthPanel.is-compact {
  max-width: 22rem;
}

#deskAuthPanel .desk-actions {
  margin-top: 0.8rem;
}

#deskAuthPanel input[type="text"],
#deskAuthPanel input[type="password"] {
  width: 100%;
  max-width: 16rem;
}

#deskAuthPanel .figure-file {
  margin: 0.45rem 0 0;
  color: var(--gold-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  word-break: break-all;
}

.admin-lock-err {
  margin: 0 0 0.85rem;
  color: var(--gold-2);
  font-size: 0.92rem;
}

.admin-desk {
  padding: 1.4rem 0 4rem;
}

.admin-desk h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0.15rem 0 0.45rem;
}

.desk-mast {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.desk-mast-copy .hint {
  max-width: 36rem;
}

.desk-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.35);
}

.desk-rail-list li {
  padding: 0.75rem 0.85rem 0.85rem;
  min-width: 0;
}

.desk-rail-list li + li {
  border-left: 1px solid var(--line);
}

.desk-rail-list span {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desk-rail-list strong {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.desk-rail-list em {
  display: block;
  margin-top: 0.28rem;
  color: var(--cream-dim);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
}

.desk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.4rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.desk-nav button {
  position: relative;
  min-height: 44px;
  padding: 0.35rem 0 0.7rem;
  color: var(--cream-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
}

.desk-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.desk-nav button:hover,
.desk-nav button.is-on {
  color: var(--gold);
}

.desk-nav button.is-on::after {
  transform: scaleX(1);
}

.desk-flash {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
  color: var(--cream);
  font-size: 0.92rem;
}

.desk-flash.is-bad {
  border-color: rgba(156, 59, 42, 0.55);
  border-left-color: var(--danger);
}

.desk-pulse {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  color: var(--gold-2);
  font-size: 0.92rem;
}

.desk-pulse.is-paused {
  color: var(--gold-2);
}

.desk-switch {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0.35rem 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.desk-switch input {
  appearance: none;
  width: 2.55rem;
  height: 1.4rem;
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  border: 1px solid var(--gold);
  background: transparent;
  position: relative;
}

.desk-switch input::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.14rem;
  width: 0.98rem;
  height: 0.98rem;
  background: var(--cream-dim);
  transition: transform 0.2s var(--ease);
}

.desk-switch input:checked {
  background: rgba(201, 162, 76, 0.2);
}

.desk-switch input:checked::after {
  transform: translateX(1.05rem);
  background: var(--gold);
}

.desk-switch input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.desk-switch input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.desk-switch span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.desk-switch strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}

.desk-switch em {
  color: var(--cream-dim);
  font-style: normal;
  font-size: 0.88rem;
}

.shop-banner {
  margin: 0;
  padding: 0.7rem var(--space);
  text-align: center;
  background: rgba(12, 39, 84, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.shop-banner-kicker,
.shop-banner-line,
.shop-banner-note {
  margin: 0 auto;
  max-width: 38rem;
}

.shop-banner-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.shop-banner.is-paused {
  width: min(42rem, calc(100% - 2 * var(--space)));
  margin: 1.2rem auto 0.15rem;
  padding: 1.25rem 1.45rem 1.3rem;
  border: 1px solid var(--line);
  background: rgba(8, 21, 37, 0.78);
  color: var(--cream);
}

.shop-banner.is-paused .shop-banner-kicker::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0.6rem auto 0;
  background: var(--gold);
}

.shop-banner.is-paused .shop-banner-line {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--cream);
}

.shop-banner-note {
  margin-top: 0.45rem;
  color: var(--cream-dim);
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1.45;
}

.checkout-closed {
  margin: 0 0 1.1rem;
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.45);
  text-align: left;
}

.checkout-closed .shop-banner-kicker::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0.55rem 0 0;
  background: var(--gold);
}

.checkout-closed #checkoutClosedCopy {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
}

.checkout-closed .hint {
  margin-top: 0.55rem;
}

#shopForm textarea,
#shopNoteForm textarea,
#shopPauseMessage,
#shopBannerText,
#shopHouseNote {
  min-height: 4.5rem;
}

#shopForm span.hint {
  display: block;
}

.desk-pane h2 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.desk-stats .desk-empty {
  grid-column: 1 / -1;
}

.desk-table-wrap {
  overflow-x: auto;
  margin-top: 0.7rem;
}

.desk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.desk-table th,
.desk-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.desk-table th {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desk-table td.num,
.desk-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.desk-sku-table code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--cream);
}

.desk-sku {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
}

.desk-sku-table .desk-copy {
  margin-left: 0;
}

.desk-panel code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--gold-2);
}

.desk-copy-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.desk-copy-bar .btn {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 0.32rem 0.75rem;
}

.desk-facts {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.7rem;
}

.desk-facts-grid {
  grid-template-columns: 1fr;
}

.desk-fact {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.desk-fact-label {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desk-fact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  color: var(--cream);
}

.desk-fact-note {
  color: var(--cream-dim);
  font-size: 0.84rem;
  line-height: 1.4;
}

#panePrints .desk-two {
  margin-top: 0.85rem;
}

@media (min-width: 720px) {
  .desk-facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .desk-facts-grid .desk-fact:nth-child(4),
  .desk-facts-grid .desk-fact:nth-child(5) {
    grid-column: 1 / -1;
  }
}

.desk-pnl {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.desk-pnl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.desk-pnl .is-total {
  font-family: var(--serif);
  font-size: 1.35rem;
  border-bottom: 0;
  padding-top: 0.35rem;
}

.desk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.desk-stat {
  min-width: 0;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.28);
}

.desk-stat span {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desk-stat strong {
  display: block;
  margin: 0.3rem 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.desk-stat em {
  color: var(--cream-dim);
  font-style: normal;
  font-size: 0.82rem;
}

#figureLead {
  max-width: 36rem;
  margin: -0.2rem 0 0.95rem;
}

#figureFilters button {
  flex: 0 0 auto;
}

#paneFigures .hint,
#figureStats .desk-stat em {
  overflow-wrap: anywhere;
}

#paneFigures .figure-file {
  margin: 0.45rem 0 0;
  color: var(--gold-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}

#paneFigures {
  overflow-x: clip;
}

#paneFigures,
#paneFigures .desk-toolbar,
#paneFigures .desk-filters,
#paneFigures .desk-two,
#paneFigures .desk-panel,
#paneFigures .desk-table-wrap,
#figureVisits .desk-two > div {
  min-width: 0;
  max-width: 100%;
}

#paneFigures .figure-sheet {
  width: max-content;
  min-width: 100%;
}

#paneFigures .figure-sheet th,
#paneFigures .figure-sheet td {
  white-space: nowrap;
}

#figureVisits .desk-two > div {
  overflow-x: auto;
}

#paneFigures .figure-kicker {
  margin: 0.15rem 0 0.6rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#paneFigures > .desk-panel {
  margin-bottom: 0.85rem;
}

#paneFigures .hint:empty {
  display: none;
}

#paneFigures .figure-none {
  margin: 0.35rem 0 0.15rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

#figureRails .desk-pnl strong {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

#figureVisits .desk-two + .desk-two {
  margin-top: 0.9rem;
}

.desk-two {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.shop-floor {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.shop-floor .desk-switch {
  padding: 0.65rem 0;
}

.shop-floor .desk-switch:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.15rem;
}

.shop-floor .desk-actions {
  margin-top: 0.7rem;
}

.admin-page input[type="datetime-local"] {
  color-scheme: dark;
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
}

.desk-panel {
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.28);
}

.desk-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.55rem;
}

.desk-how {
  margin: 0.7rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.desk-how li + li {
  margin-top: 0.55rem;
}

.desk-setup {
  margin-bottom: 1.1rem;
  border-left: 2px solid var(--gold);
}

.desk-price-grid {
  display: grid;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 1rem;
}

@media (min-width: 720px) {
  .desk-price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.desk-how a {
  color: var(--gold);
}

#paneBooks > .desk-panel {
  margin-bottom: 0.85rem;
}

#paneBooks .desk-panel,
#paneBooks .desk-table-wrap {
  min-width: 0;
  max-width: 100%;
}

#paneBooks .desk-tax {
  min-width: 52rem;
}

.desk-empty strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cream);
  font-weight: 600;
}

.desk-empty p {
  margin: 0;
}

.desk-empty {
  margin: 0.6rem 0 0;
  padding: 1.1rem 0.2rem 0.4rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.admin-desk label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.desk-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.desk-search {
  display: grid;
  gap: 0.35rem 0.6rem;
}

.desk-search label {
  margin-top: 0;
}

.desk-search .btn {
  width: 100%;
  margin: 0;
}

.desk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.desk-filters button {
  min-height: 36px;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-filters button:hover,
.desk-filters button.is-on {
  border-color: var(--gold);
  color: var(--gold-2);
}

.desk-count {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-split {
  display: grid;
  gap: 0.9rem;
}

.desk-list {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.22);
}

.desk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 1.15rem;
  align-items: start;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
}

.desk-row:last-child {
  border-bottom: 0;
}

.desk-track-row {
  cursor: default;
}

.desk-track-num {
  display: block;
  margin-top: 0.28rem;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  color: var(--cream-dim);
  font-size: 0.84rem;
}

.desk-row-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  justify-content: flex-end;
}

.desk-row:hover,
.desk-row.is-on {
  background: rgba(201, 162, 76, 0.07);
}

.desk-row-main {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.desk-row-who {
  font-weight: 600;
  color: var(--cream);
  font-size: 1.02rem;
  line-height: 1.3;
}

.desk-row-who span {
  display: block;
  margin-top: 0.12rem;
  font-weight: 400;
  color: var(--cream-dim);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.desk-row-print {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.desk-row-side {
  display: grid;
  justify-items: end;
  gap: 0.32rem;
  min-width: 7.2rem;
}

.desk-row-amt {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.desk-row-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.desk-row-flags time {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.desk-detail {
  min-width: 0;
  min-height: 12rem;
  padding: 1.1rem 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(5, 10, 20, 0.35);
}

.desk-detail h2 {
  font-size: 1.7rem;
}

.desk-detail h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.desk-order-head {
  padding-bottom: 0.15rem;
}

.desk-order-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.5rem 0 0;
}

.desk-order-when {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.desk-block {
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.desk-danger-block .hint {
  margin-top: 0;
}

.desk-kv {
  display: grid;
  gap: 0.65rem 1.25rem;
  margin: 0.15rem 0 0;
}

.desk-kv div {
  min-width: 0;
}

.desk-kv dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desk-kv dd {
  margin: 0.15rem 0 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.desk-next {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 76, 0.06);
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.45;
}

.desk-prints {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.desk-print {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.desk-print img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
}

.desk-print-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.45rem 0 0;
}

.desk-swap {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.desk-swap input {
  width: 100%;
}

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.desk-actions .btn {
  width: auto;
  margin: 0;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
}

.desk-track-card {
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.28);
}

.desk-track-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 0.45rem 1rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.desk-track-summary:hover {
  background: rgba(201, 162, 76, 0.05);
}

.desk-track-summary .desk-track-num {
  display: block;
  margin-top: 0.2rem;
  color: var(--gold-2);
  font-size: 0.88rem;
}

.desk-track-caret {
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desk-track-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}

.desk-track-card + .desk-track-card {
  margin-top: 0.65rem;
}

.desk-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.desk-track-head-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.desk-track-studio {
  margin: 0.55rem 0 0.7rem;
}

.desk-track-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-top: 0.55rem;
}

.desk-mail-edit {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.desk-track .row,
.desk-mail-edit .row {
  display: grid;
  gap: 0.55rem 0.85rem;
}

@media (min-width: 720px) {
  .desk-track .row,
  .desk-mail-edit .row {
    grid-template-columns: 1fr 1fr;
  }
}

.desk-note-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.desk-note {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.desk-note time {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desk-pill {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-danger {
  color: #e4b4aa;
  border-color: rgba(156, 59, 42, 0.55);
}

.desk-danger:hover {
  color: #f3d0c9;
  border-color: rgba(196, 90, 70, 0.85);
}

.desk-pill.is-wait {
  border-color: var(--gold);
  color: var(--gold-2);
}

.desk-pill.is-ok {
  border-color: rgba(125, 154, 120, 0.7);
  color: var(--ok);
}

.desk-pill.is-bad {
  border-color: rgba(156, 59, 42, 0.7);
  color: #e4b4aa;
}

.desk-copy {
  margin-left: 0.4rem;
  color: var(--gold-2);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 28px;
  padding: 0 0.15rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.desk-track {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.desk-track .btn {
  width: auto;
  margin-top: 0.45rem;
  justify-self: start;
}

.desk-claim-form {
  margin-bottom: 0.9rem;
}

.desk-claim-form .row {
  margin-top: 0.55rem;
}

.desk-claim-form .row + p,
.desk-claim-form p + p {
  margin-top: 0.55rem;
}

.admin-page .btn:focus-visible,
.admin-page .desk-nav button:focus-visible,
.admin-page .desk-filters button:focus-visible,
.admin-page .desk-row:focus-visible,
.admin-page .desk-copy:focus-visible,
.admin-page .btn-text:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .desk-mast {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr);
    align-items: end;
  }

  .desk-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .desk-search label {
    grid-column: 1 / -1;
  }

  .desk-search .btn {
    width: auto;
    min-width: 8rem;
  }

  .desk-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #overviewStats,
  #figureStats {
    grid-template-columns: repeat(auto-fit, minmax(9.2rem, 1fr));
  }

  #paneFigures .desk-two {
    grid-template-columns: 1fr 1fr;
  }

  #booksStats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .desk-two {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .shop-floor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .desk-kv {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .desk-split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .desk-detail {
    position: sticky;
    top: calc(var(--head-h) + 0.75rem);
    max-height: calc(100vh - var(--head-h) - 1.5rem);
    overflow: auto;
  }

  .desk-row {
    align-items: center;
  }
}

@media (min-width: 1280px) {
  #booksStats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .desk-rail-list {
    grid-template-columns: 1fr 1fr;
  }

  .desk-rail-list li:nth-child(3),
  .desk-rail-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .desk-rail-list li:nth-child(odd) {
    border-left: 0;
  }

  .desk-stats {
    grid-template-columns: 1fr 1fr;
  }

  .desk-row,
  .desk-track-row {
    grid-template-columns: 1fr;
  }

  .desk-row-side {
    min-width: 0;
    justify-items: start;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.45rem 0.85rem;
  }

  .desk-row-flags,
  .desk-row-acts {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-nav button::after {
    transition: none;
  }
}

.site-foot {
  padding: 0 0 1.35rem;
}

.foot-inner {
  display: grid;
  gap: 2.15rem 2.5rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.85rem;
}

.foot-brand {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  max-width: 20rem;
}

.foot-lede {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.foot-copy {
  max-width: 18rem;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.foot-col {
  min-width: 0;
}

.foot-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot-nav {
  display: grid;
  justify-items: start;
  gap: 0.52rem;
}

.foot-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.foot-nav a:hover,
.foot-nav a[aria-current="page"] {
  color: var(--gold);
}

.foot-write {
  max-width: 14rem;
  margin-top: 0.4rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

.foot-mail {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.foot-mail:hover,
.foot-x:hover {
  color: var(--gold-2);
}

.foot-x {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 759px) {
  .foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem 1.4rem;
    padding-top: 1.9rem;
  }

  .foot-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .foot-inner .foot-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) and (max-width: 1023px) {
  :root {
    --head-h: 4.35rem;
  }

  .head-cta {
    gap: 0.4rem;
  }

  .site-head .hang-cta {
    padding: 0.45rem 0.8rem;
    min-height: 42px;
  }

  .brand-lockup {
    height: 2.45rem;
    max-width: min(12.5rem, 28vw);
  }

  .atelier-grid {
    grid-template-columns: minmax(16.5rem, 0.84fr) minmax(0, 1.16fr);
    gap: 1rem;
  }

  .wall {
    min-height: min(28rem, calc(100vh - var(--head-h) - 1.35rem));
    padding: 1.1rem 1rem 1.2rem;
    max-height: calc(100vh - var(--head-h) - 1.35rem);
  }

  .alcove {
    --niche: min(22rem, calc(100vh - var(--head-h) - 10rem));
  }

  .tray {
    padding: 1.15rem 1.05rem 1.25rem;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-figure {
    margin-left: 0;
    max-width: 34rem;
    justify-self: end;
  }

  .hero-figure img {
    width: 100%;
    max-height: min(68vh, 32rem);
    object-fit: contain;
    object-position: center;
  }

  .hero-figure figcaption {
    margin: 0.85rem 0 0;
  }

  .foot-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 2.4rem;
  }

  .foot-brand {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .foot-inner {
    grid-template-columns: minmax(16rem, 20rem) repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 2.75rem;
    padding: 2.7rem 0 1.9rem;
  }
}

#print,
#path,
#hung,
#sizes,
#top {
  scroll-margin-top: calc(var(--head-h) + 1.1rem);
}

@media (max-width: 759px) {
  :root {
    --head-h: 3.85rem;
    --space: clamp(1rem, 4.2vw, 1.35rem);
  }

  .brand-lockup {
    height: 2.15rem;
    max-width: min(11rem, calc(100vw - 8.8rem));
  }

  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cta";
    gap: 0.55rem;
    min-height: var(--head-h);
    padding: 0.45rem 0;
  }

  .site-head .hang-cta {
    display: none;
  }

  .legal-page .site-head .hang-cta,
  .admin-page .site-head .hang-cta {
    display: inline-flex;
  }

  .site-head .cart-launch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.8rem;
  }

  .cart-drawer {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(10vh, 1fr) auto;
    align-items: stretch;
  }

  .cart-scrim {
    min-height: 10vh;
    width: 100%;
  }

  .cart-sheet {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: min(86dvh, 36rem);
    padding: 1rem 1.05rem max(1.2rem, env(safe-area-inset-bottom));
  }

  .cart-qty button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .lede {
    font-size: 1.02rem;
    max-width: none;
  }

  .hero {
    padding-bottom: 0.4rem;
  }

  .hero-grid {
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: calc(100vw - (2 * var(--space)));
    max-width: calc(100vw - (2 * var(--space)));
  }

  .lede,
  .trust {
    max-width: 100%;
  }

  .hero-figure {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero-well::before {
    inset: 18% 4% 24%;
    background: radial-gradient(ellipse at 50% 44%, rgba(201, 162, 76, 0.3), transparent 70%);
  }

  .hero-figure img {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-figure figcaption {
    margin: 0.75rem auto 0;
    padding: 0 var(--space) 1.2rem;
    border-left: 0;
    text-align: center;
    max-width: 22rem;
    font-size: 0.98rem;
  }

  .hero-figure figcaption .cap-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .path-list {
    gap: 1.45rem;
    padding-left: 1.15rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .wall {
    min-height: 0;
    padding: 0.85rem 0.75rem 0.95rem;
  }

  .alcove {
    --niche: min(18.5rem, calc(100vw - 2.4rem));
    width: 100%;
    height: var(--niche);
    min-height: 15.5rem;
    margin: 0.4rem 0 0.3rem;
    overflow: hidden;
  }

  .hang {
    min-height: 0;
    padding: 0.85rem 0.55rem 1.15rem;
    overflow: hidden;
  }

  .canvas {
    overflow: visible;
  }

  .hang[data-style="black"] .canvas,
  .hang[data-style="gold"] .canvas,
  .hang[data-style="wood"] .canvas,
  .hang[data-style="darkwood"] .canvas {
    --moulding: 12px;
  }

  .hang[data-size="12x12"],
  .hang[data-size="16x16"],
  .hang[data-size="20x20"] {
    --scale: 0.84;
  }

  .hang[data-size="16x20"],
  .hang[data-size="20x16"] {
    --scale: 0.92;
  }

  .tray {
    padding: 1.05rem 0.9rem 1.2rem;
  }

  .paste-panel {
    padding: 0.9rem 0.85rem 0.85rem;
  }

  .progress button {
    font-size: clamp(0.5rem, 2.5vw, 0.58rem);
    letter-spacing: 0.05em;
    padding: 0.35rem 0.05rem 0.55rem;
  }

  .vault-head {
    flex-wrap: wrap;
  }

  .panel h3 {
    font-size: 1.5rem;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .swatches,
  .size-picks,
  .nft-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.85rem);
  }
}

@media (max-width: 720px) {
  .viewer-nav {
    width: 38px;
    height: 52px;
  }

  #viewerPrev {
    left: 0.35rem;
  }

  #viewerNext {
    right: 0.35rem;
  }

  .inspect-plate {
    max-width: calc(100% - 0.8rem);
    max-height: calc(100% - 0.8rem);
  }

  .viewer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .viewer-sheet {
    text-align: center;
  }

  .viewer-sheet .openings-label,
  .viewer-sheet .wall-fit {
    text-align: center;
  }

  .viewer-links,
  .viewer-actions {
    justify-content: center;
  }

  .viewer-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .viewer-film {
    --film-tile: 42px;
  }
}

@media (min-width: 640px) {
  .paste-lead {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .paste-lead .btn {
    width: auto;
    padding-inline: 1.2rem;
  }
}

@media (min-width: 760px) {
  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cta";
    gap: 1.2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
  }

  .hero-figure {
    margin-left: 0;
    max-width: 32rem;
    justify-self: end;
  }

  .hero-figure img {
    -webkit-mask-image: none;
    mask-image: none;
    width: 100%;
    max-height: min(64vh, 30rem);
    object-fit: contain;
    object-position: center;
  }

  .hero-figure figcaption {
    margin: 0.85rem 0 0;
  }

  .path-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 2.4rem;
  }

  .ask-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2.4rem;
  }

  .rate-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .atelier-grid {
    grid-template-columns: minmax(16.5rem, 0.84fr) minmax(0, 1.16fr);
    align-items: start;
    gap: 1rem;
  }

  .salon-wall {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.15rem 1.2rem;
    padding: 0;
  }

  .salon-cta {
    margin-top: 1.75rem;
  }

  .wall {
    position: sticky;
    top: calc(var(--head-h) + 0.75rem);
    max-height: calc(100vh - var(--head-h) - 1.5rem);
    overflow: hidden;
    min-height: min(34rem, calc(100vh - var(--head-h) - 1.5rem));
  }

  .wall:has(#wallOpenings:not([hidden])) {
    overflow: auto;
  }

  .wall:has(#wallOpenings:not([hidden])) .alcove {
    --niche: min(32rem, calc(100vh - var(--head-h) - 12.5rem));
    min-height: 14rem;
    margin: 0.35rem 0 0.15rem;
  }

  .wall:has(#wallOpenings:not([hidden])) .hang {
    padding: 0.7rem 0.6rem 0.85rem;
  }

  .alcove {
    overflow: hidden;
  }

  .tray {
    position: relative;
    top: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand nav cta";
    gap: 1.4rem;
  }

  .nav {
    display: flex;
    grid-area: nav;
  }

  .hero-figure {
    margin-left: 0;
    max-width: 36rem;
  }

  .hero-figure figcaption {
    margin-left: 0;
  }

  .atelier-grid {
    grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.12fr);
    gap: 1.4rem;
  }

  .wall {
    min-height: min(34rem, calc(100vh - var(--head-h) - 1.5rem));
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: 3.6rem;
    padding-bottom: 4rem;
  }

  .salon-wall {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.05rem;
  }

  .salon-piece figcaption strong {
    font-size: 1.08rem;
  }

  .path-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: 2.1rem;
  }

  .path-list li {
    padding: 0 1.7rem;
    border-right: 1px solid var(--line);
  }

  .path-list li:first-child {
    padding-left: 0;
  }

  .path-list li:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .ask {
    margin-top: 3.1rem;
    padding-top: 2.35rem;
  }

  .ask-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 3rem;
  }

  .ask-list > div:last-child {
    grid-column: 1 / 2;
  }
}

@media (max-height: 520px) {
  :root {
    --head-h: 3.35rem;
  }

  .head-inner {
    min-height: 3.2rem;
    padding: 0.3rem 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cta";
  }

  .nav {
    display: none;
  }

  .brand-lockup {
    height: 1.9rem;
  }

  .site-head .hang-cta {
    display: none;
  }

  .hero {
    padding: 1.15rem 0 0.7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    margin-left: 0;
    max-width: 22rem;
  }

  .atelier-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .wall {
    position: relative;
    top: auto;
    max-height: none;
    min-height: 0;
    padding: 0.7rem 0.85rem 0.8rem;
  }

  .alcove {
    --niche: min(12.75rem, calc(100vh - 5.6rem));
    height: var(--niche);
    min-height: 10rem;
    margin: 0.3rem 0 0.25rem;
  }

  .hang {
    padding: 0.55rem 0.4rem 0.95rem;
  }

  .wall-dock {
    gap: 0.45rem;
  }

  .wall-dock .btn-gold {
    min-height: 42px;
  }

  .tray {
    padding: 0.9rem 0.95rem 1.05rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.72s var(--ease) both;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.28s; }

  .hero-figure {
    animation: rise 1.05s var(--ease) 0.12s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .grain,
  .hang.is-loading .mat::after,
  span.stack-cover::after,
  .hero-copy > *,
  .xaman-skel,
  .pay-skel,
  .btn-gold[aria-busy="true"] {
    animation: none;
  }

  .canvas,
  .stack-chevron {
    transition: none;
  }
}
