/* Hallmark · macrostructure: gallery-to-detail · tone: atmospheric minimal · anchor hue: muted gold
 * pre-emit critique: P4 H4 E4 S4 R4 V4
 */
:root {
  --bg: #161816;
  --bg-soft: #1d211d;
  --panel: #242826;
  --panel-2: #2b302d;
  --text: #efe5d6;
  --muted: #cdbda5;
  --faint: #8d8578;
  --gold: #b79665;
  --gold-soft: #dcc497;
  --silver: #ebe4da;
  --metal-ice: rgba(246, 241, 233, 0.94);
  --metal-mist: rgba(224, 212, 194, 0.84);
  --metal-shadow: rgba(118, 101, 77, 0.34);
  --metal-core: rgba(191, 162, 116, 0.52);
  --metal-edge: rgba(255, 250, 241, 0.74);
  --sapphire: #64706a;
  --line: rgba(191, 163, 117, 0.22);
  --shadow: rgba(0, 0, 0, 0.28);
  --shadow-strong: rgba(0, 0, 0, 0.42);
  --radius-pill: 999px;
  --radius-soft: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Vazirmatn", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(226, 205, 170, 0.06), transparent 22%),
    linear-gradient(180deg, #171917 0%, #121412 42%, #191b18 100%);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  cursor: default;
  overflow-x: clip;
}

body.drawer-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 192, 143, 0.1), transparent 35%),
    rgba(78, 70, 59, 0.34);
  backdrop-filter: blur(6px);
}

main > section {
  scroll-snap-align: start;
  scroll-margin-top: 82px;
}

main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

.custom {
  order: 4;
}

.pieces {
  order: 2;
}

.featured-collections,
.category-seo {
  order: 3;
}

.story {
  order: 5;
}

.faq {
  order: 6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
  mix-blend-mode: overlay;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(220, 192, 143, 0.12), transparent 32%),
    #34342f;
  color: #eadcc6;
  transition: opacity 700ms ease, visibility 700ms ease, transform 700ms ease;
}

.preloader.done {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.preloader-inner span {
  direction: ltr;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.preloader-inner strong {
  direction: ltr;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: rgba(217, 221, 226, 0.72);
}

.preloader-line {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  left: clamp(24px, 7vw, 120px);
  bottom: clamp(42px, 8vw, 86px);
  height: 1px;
  overflow: hidden;
  background: rgba(208, 179, 122, 0.18);
}

.preloader-line i {
  display: block;
  width: var(--load, 0%);
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--silver));
  transition: width 180ms ease;
}

.motion-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(217, 221, 226, 0.56);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.motion-cursor.visible {
  opacity: 1;
}

.motion-cursor.active {
  width: 54px;
  height: 54px;
  border-color: rgba(208, 179, 122, 0.64);
  background: rgba(208, 179, 122, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  filter: blur(10px);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 22px clamp(20px, 4vw, 64px);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(28, 31, 28, 0.92), rgba(18, 20, 18, 0.82));
  border-bottom: 1px solid rgba(208, 179, 122, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    min-height 240ms ease,
    box-shadow 240ms ease;
}

.site-header {
  animation: headerDrop 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page .site-header {
  position: sticky;
  top: 0;
  min-height: 108px;
  padding-block: 28px;
  background:
    linear-gradient(180deg, rgba(24, 26, 24, 0.98), rgba(18, 20, 18, 0.96));
  border-bottom: 1px solid rgba(208, 179, 122, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.brand-orb {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: visible;
  border: 1px solid rgba(217, 221, 226, 0.28);
  background: rgba(28, 31, 29, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(185, 148, 85, 0.12);
  z-index: 2;
}

.brand-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  padding: 0;
  border-radius: 50%;
}

.site-header.scrolled {
  min-height: 68px;
  background:
    linear-gradient(180deg, rgba(33, 36, 33, 0.96), rgba(18, 20, 18, 0.9));
  border-bottom: 1px solid rgba(208, 179, 122, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.mark {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.25rem);
  letter-spacing: 0.18em;
  color: #e0c38f;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.desktop-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  font-size: 0.92rem;
  color: rgba(245, 238, 228, 0.94);
}

.site-header .mark {
  margin-inline-end: 18px;
}

.nav-link,
.mega-trigger,
.account-trigger {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: rgba(245, 238, 228, 0.94);
  cursor: pointer;
}

.mega-trigger::after,
.account-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 180ms ease;
}

.mega-trigger:hover::after,
.mega-trigger.open::after,
.account-trigger:hover::after {
  width: 100%;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: clamp(20px, 4vw, 64px);
  left: clamp(20px, 4vw, 64px);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(208, 179, 122, 0.18);
  background: rgba(208, 179, 122, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.mega-panel.open {
  display: grid;
  animation: panelReveal 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mega-panel a {
  min-height: 144px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 20px;
  background: rgba(28, 31, 29, 0.94);
}

.mega-panel span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.mega-panel strong {
  color: var(--silver);
  font-weight: 400;
}

.mega-panel small {
  color: rgba(231, 221, 204, 0.58);
}

.desktop-nav a:not(.nav-cta) {
  position: relative;
  padding-bottom: 8px;
}

.desktop-nav a:not(.nav-cta)::after,
.desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 180ms ease;
}

.desktop-nav a:not(.nav-cta):hover::after,
.desktop-nav .nav-link:hover::after,
.desktop-nav a[aria-current="true"]::after {
  width: 100%;
}

.nav-account,
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 227, 206, 0.18);
  transition:
    transform 180ms var(--ease-soft),
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.nav-account {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(89, 82, 73, 0.86), rgba(43, 40, 37, 0.96));
  color: rgba(247, 240, 231, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 243, 0.3),
    inset 0 -1px 0 rgba(33, 31, 28, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-account:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 239, 221, 0.3);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 243, 0.36),
    inset 0 -1px 0 rgba(33, 31, 28, 0.42),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

.nav-cta {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.44), transparent 28%),
    radial-gradient(circle at 72% 88%, rgba(95, 78, 55, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(241, 232, 217, 0.94), rgba(197, 173, 137, 0.98) 48%, rgba(128, 102, 70, 1));
  color: #161410;
  border-color: rgba(243, 230, 208, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 241, 0.6),
    inset 0 -1px 0 rgba(111, 89, 62, 0.58),
    0 12px 30px rgba(102, 79, 50, 0.22),
    0 1px 0 rgba(255, 246, 230, 0.22);
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03) saturate(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 241, 0.66),
    inset 0 -1px 0 rgba(111, 89, 62, 0.62),
    0 18px 38px rgba(102, 79, 50, 0.28),
    0 1px 0 rgba(255, 246, 230, 0.28);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(180, 188, 193, 0.38);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--gold-soft);
}

.mobile-nav {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 29;
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 18px 22px 24px;
  background: rgba(25, 28, 25, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mobile-nav.open {
  display: grid;
  animation: panelReveal 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(208, 179, 122, 0.12);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.user-dock {
  display: none;
}

.studio-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 42;
  display: none;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(217, 221, 226, 0.16);
  background: rgba(22, 24, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  border-radius: var(--radius-pill);
}

.studio-launcher a,
.studio-launcher button {
  min-height: 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(208, 179, 122, 0.24);
  color: rgba(231, 221, 204, 0.88);
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-soft),
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.studio-launcher a:hover,
.studio-launcher button:hover {
  transform: translateY(-1px);
}

.launcher-secondary {
  background: rgba(255, 255, 255, 0.045);
}

.launcher-primary {
  background: linear-gradient(180deg, rgba(222, 196, 142, 0.18), rgba(185, 148, 85, 0.12));
  border-color: rgba(208, 179, 122, 0.36);
}

.owner-admin-key {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 42;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(217, 221, 226, 0.12);
  background: rgba(28, 30, 29, 0.48);
  color: rgba(231, 221, 204, 0.42);
  font-size: 0.76rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.owner-admin-key:hover {
  color: var(--gold-soft);
  border-color: rgba(208, 179, 122, 0.24);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  padding-inline: 12px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 243, 0.05);
  color: rgba(231, 221, 204, 0.8);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}

.dock-button {
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.dock-item:hover,
.dock-item.active {
  background: linear-gradient(90deg, rgba(217, 221, 226, 0.14), rgba(185, 148, 85, 0.09));
  border-color: rgba(217, 221, 226, 0.34);
  transform: translateY(-1px);
}

.dock-icon {
  direction: ltr;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--silver);
}

.dock-label {
  position: static;
  width: auto;
  overflow: visible;
  white-space: nowrap;
  opacity: 1;
  color: rgba(231, 221, 204, 0.86);
  font-size: 0.78rem;
  margin-inline-start: 8px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 108px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 52px clamp(22px, 7vw, 120px) 80px;
  border-bottom: 1px solid rgba(208, 179, 122, 0.18);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 36% center;
  filter: saturate(0.82) contrast(1.05) brightness(0.74);
  transform: scale(var(--hero-scale, 1.04)) translate3d(0, var(--hero-drift, 0px), 0);
  transition: transform 260ms ease-out;
}

.hero-shade {
  background:
    radial-gradient(circle at 33% 50%, transparent 0 19%, rgba(36, 40, 37, 0.32) 54%),
    linear-gradient(90deg, rgba(24, 26, 24, 0.34), rgba(31, 34, 31, 0.14) 42%, rgba(17, 19, 18, 0.56)),
    linear-gradient(180deg, rgba(215, 194, 159, 0.07), rgba(255, 255, 255, 0.02) 44%, rgba(18, 20, 18, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  transform: translateY(24px);
  animation: heroContentIn 1000ms 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  direction: ltr;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 8.8vw, 9.8rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-shadow: 0 18px 50px var(--shadow);
}

.hero h1 .title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.58em) rotate(5deg);
  animation: titleRise 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(580ms + var(--char-index) * 72ms);
}

.hero-line {
  max-width: 620px;
  margin: 42px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 2.45rem);
  color: #eadcc6;
}

.hero-copy {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(231, 221, 204, 0.76);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(231, 221, 204, 0.76);
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid rgba(239, 227, 206, 0.22);
  border-radius: var(--radius-pill);
  color: #181511;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.44), transparent 28%),
    radial-gradient(circle at 78% 86%, rgba(89, 70, 47, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(244, 236, 225, 0.96), rgba(208, 191, 166, 0.96) 48%, rgba(127, 110, 88, 0.98));
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 260ms var(--ease-soft),
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 244, 0.64),
    inset 0 -1px 0 rgba(111, 94, 72, 0.5),
    0 12px 28px rgba(72, 59, 43, 0.18),
    0 1px 0 rgba(255, 244, 223, 0.2);
}

.button::before,
.nav-cta::before,
.nav-account::before,
.studio-launcher button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  opacity: 0;
  transform: translateX(80%);
  transition: transform 500ms var(--ease-soft), opacity 220ms ease;
  pointer-events: none;
}

.button::after,
.nav-cta::after,
.nav-account::after,
.studio-launcher button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%, transparent 72%, rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.18), transparent 22%);
  opacity: 0.9;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(248, 239, 221, 0.32);
  filter: brightness(1.03) saturate(1.03);
}

.button:hover::before,
.nav-cta:hover::before,
.nav-account:hover::before,
.studio-launcher button:hover::before {
  opacity: 1;
  transform: translateX(-80%);
}

.button.primary {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.46), transparent 28%),
    radial-gradient(circle at 76% 86%, rgba(96, 74, 47, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(248, 238, 219, 0.98), rgba(214, 192, 153, 0.98) 46%, rgba(151, 118, 75, 1));
  color: #15120d;
  border-color: rgba(246, 233, 210, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.72),
    inset 0 -1px 0 rgba(103, 80, 50, 0.62),
    0 16px 34px rgba(117, 89, 48, 0.24),
    0 1px 0 rgba(255, 244, 223, 0.24);
}

.button.primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.78),
    inset 0 -1px 0 rgba(103, 80, 50, 0.66),
    0 20px 42px rgba(117, 89, 48, 0.3),
    0 1px 0 rgba(255, 244, 223, 0.28);
}

.button.ghost {
  color: rgba(245, 237, 225, 0.96);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(66, 61, 55, 0.92), rgba(30, 28, 26, 0.98));
  border-color: rgba(239, 227, 206, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 244, 0.22),
    inset 0 -1px 0 rgba(9, 8, 8, 0.34),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

.button.ghost:hover {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(78, 72, 65, 0.94), rgba(36, 33, 30, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 244, 0.28),
    inset 0 -1px 0 rgba(9, 8, 8, 0.36),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

.button:focus-visible,
.nav-cta:focus-visible,
.nav-account:focus-visible {
  outline: none;
  border-color: rgba(255, 245, 228, 0.56);
  box-shadow:
    0 0 0 3px rgba(231, 211, 177, 0.16),
    inset 0 1px 0 rgba(255, 250, 244, 0.64),
    inset 0 -1px 0 rgba(111, 94, 72, 0.5),
    0 14px 30px rgba(72, 59, 43, 0.22);
}

.scroll-note {
  position: absolute;
  right: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(50%);
  color: rgba(231, 221, 204, 0.58);
  font-size: 0.82rem;
}

.scroll-note::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
  animation: scrollPulse 1500ms ease-in-out infinite;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(22px, 7vw, 120px);
}

.section-heading {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  margin-bottom: 34px;
  max-width: 860px;
  margin-inline: auto;
  position: relative;
}

.section-heading::before {
  content: "";
  width: 88px;
  height: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.section h2,
.custom h2,
.story h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif), var(--sans);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  color: #f4ebdc;
}

.pieces {
  background:
    radial-gradient(circle at 14% 10%, rgba(80, 88, 80, 0.16), transparent 34%),
    linear-gradient(180deg, #161816, #1e221f);
}

.popular {
  background:
    radial-gradient(circle at 78% 12%, rgba(76, 85, 80, 0.14), transparent 34%),
    linear-gradient(180deg, #1d211d, #171917);
  border-top: 1px solid rgba(208, 179, 122, 0.12);
}

.popular .section-heading p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(231, 221, 204, 0.66);
}

.category-seo {
  background:
    radial-gradient(circle at 18% 16%, rgba(80, 88, 80, 0.12), transparent 30%),
    linear-gradient(180deg, #171917, #141614);
  border-top: 1px solid rgba(208, 179, 122, 0.1);
  border-bottom: 1px solid rgba(208, 179, 122, 0.1);
}

.category-seo-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-seo-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(9, 11, 10, 0.42);
}

.category-seo-card span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.category-seo-card h3 {
  margin: 0;
  font-family: var(--serif), var(--sans);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 400;
  color: var(--silver);
}

.category-seo-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.7);
  line-height: 2;
}

.category-seo-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(208, 179, 122, 0.18);
  color: var(--gold-soft);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.category-seo-card a:hover {
  transform: translateY(-2px);
  background: rgba(208, 179, 122, 0.08);
  border-color: rgba(217, 221, 226, 0.22);
}

.skiper71-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.skiper71-rail {
  position: sticky;
  top: 112px;
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgba(208, 179, 122, 0.22);
  color: rgba(231, 221, 204, 0.58);
}

.skiper71-rail span,
.skiper71-card span {
  direction: ltr;
  font-family: var(--serif);
  color: var(--gold-soft);
}

.skiper71-rail strong {
  direction: ltr;
  max-width: 120px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 0.86;
  color: rgba(217, 221, 226, 0.7);
}

.skiper71-rail i {
  display: block;
  width: 1px;
  height: 110px;
  background: linear-gradient(180deg, var(--gold-soft), transparent);
}

.skiper71-stack {
  display: grid;
  gap: clamp(26px, 5vw, 70px);
}

.skiper71-card {
  position: sticky;
  top: 104px;
  min-height: min(72vh, 720px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(260px, 0.5fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid rgba(208, 179, 122, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(6, 8, 7, 0.84);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.skiper71-card:nth-child(2) {
  top: 122px;
}

.skiper71-card:nth-child(3) {
  top: 140px;
}

.skiper71-card figure {
  position: relative;
  min-height: clamp(360px, 54vw, 620px);
  margin: 0;
  overflow: hidden;
  background: #070908;
}

.skiper71-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(4, 5, 5, 0.5)),
    radial-gradient(circle at 50% 35%, transparent 0 36%, rgba(0, 0, 0, 0.28) 74%);
  pointer-events: none;
}

.skiper71-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.8) contrast(1.08);
  transform: scale(1.01);
}

.skiper71-card div {
  display: grid;
  gap: 12px;
  padding-block: 18px;
}

.skiper71-card h3 {
  margin: 0;
  font-family: var(--serif), var(--sans);
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #eadcc6;
}

.skiper71-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.68);
}

.popular-shell {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px solid rgba(208, 179, 122, 0.18);
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 221, 226, 0.06), transparent 36%),
    rgba(255, 255, 255, 0.018);
}

.popular-shell span {
  color: var(--gold-soft);
}

.popular-shell strong {
  direction: ltr;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 400;
  color: rgba(217, 221, 226, 0.72);
}

.popular-shell small {
  color: rgba(231, 221, 204, 0.54);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.category-tile {
  min-height: 180px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 28px;
  background: rgba(12, 15, 13, 0.96);
  transition: background 180ms ease, transform 180ms ease;
}

.category-tile:hover {
  background: rgba(24, 28, 25, 0.98);
}

.category-tile span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.category-tile strong {
  color: #edf0ef;
  font-size: 1.25rem;
  font-weight: 400;
}

.category-tile small {
  color: rgba(231, 221, 204, 0.6);
  font-size: 0.9rem;
}

.category-tile.muted {
  opacity: 0.62;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.filter {
  min-width: 92px;
  padding: 9px 16px;
  border: 1px solid rgba(208, 179, 122, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(231, 221, 204, 0.72);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #10100e;
  background: var(--gold-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.product-card {
  display: grid;
  gap: 18px;
}

.product-card.hidden {
  display: none;
}

.product-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(208, 179, 122, 0.15);
  background: #0d0f0e;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease, filter 500ms ease;
}

.product-image:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.ornova-scroll-gallery {
  display: flex;
  gap: 12px;
  min-height: clamp(340px, 52vw, 560px);
  margin-top: clamp(44px, 7vw, 86px);
  padding: 12px;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 221, 226, 0.05), transparent 28%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.book-gallery {
  max-width: 1180px;
  margin-inline: auto;
  perspective: 1200px;
}

.gallery-carousel-shell {
  position: relative;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 62px);
}

.gallery-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 227, 206, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(62, 58, 53, 0.92), rgba(27, 25, 23, 0.98));
  color: rgba(247, 239, 228, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 244, 0.2),
    inset 0 -1px 0 rgba(9, 8, 8, 0.34),
    0 14px 26px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 220ms var(--ease-soft),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.gallery-carousel-control:hover {
  transform: translateY(-50%) scale(1.03);
  border-color: rgba(246, 233, 210, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 244, 0.26),
    inset 0 -1px 0 rgba(9, 8, 8, 0.36),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

.gallery-carousel-control.prev {
  right: 0;
}

.gallery-carousel-control.next {
  left: 0;
}

.gallery-carousel-control span {
  direction: ltr;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.perspective-gallery {
  position: relative;
  display: block;
  height: clamp(360px, 54vw, 620px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  perspective: 1800px;
}

.gallery-panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(340px, 48vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background: #1f2321;
  cursor: pointer;
  transform-origin: center;
  transition: flex 520ms var(--ease-soft), filter 420ms ease, border-color 300ms ease, transform 520ms var(--ease-soft), box-shadow 320ms ease;
}

.perspective-gallery .gallery-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--carousel-width, clamp(180px, 18vw, 240px));
  min-width: 0;
  min-height: clamp(360px, 54vw, 620px);
  transform-origin: center center;
  opacity: var(--carousel-opacity, 1);
  z-index: var(--carousel-z, 1);
  pointer-events: var(--carousel-pointer, auto);
  filter: var(--carousel-filter, brightness(0.9) saturate(0.92));
  box-shadow: var(--carousel-shadow, 0 20px 40px rgba(0, 0, 0, 0.18));
  transform:
    translateX(calc(-50% + var(--carousel-shift, 0px)))
    translateY(var(--carousel-lift, 0px))
    rotateY(var(--carousel-rotate, 0deg))
    scale(var(--carousel-scale, 1));
}

.gallery-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.18) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(55%);
  transition: opacity 280ms ease, transform 650ms ease;
  pointer-events: none;
}

.gallery-panel.active::before,
.gallery-panel:hover::before {
  opacity: 0.34;
  transform: translateX(-55%);
}

.book-gallery .gallery-panel:not(.active):not(:hover) {
  filter: brightness(0.95) saturate(0.92);
  transform: rotateY(-4deg) scale(0.985) translateY(4px);
}

.perspective-gallery .gallery-panel:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
}

.perspective-gallery .gallery-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 7, 0.04), rgba(7, 8, 8, 0.3)),
    radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.32), transparent 44%);
  z-index: 1;
  pointer-events: none;
}

.gallery-panel.active,
.gallery-panel:hover {
  flex: 4 1 0;
  border-color: rgba(217, 221, 226, 0.32);
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.perspective-gallery .gallery-panel.active,
.perspective-gallery .gallery-panel:hover {
  flex: initial;
  border-color: rgba(233, 222, 205, 0.36);
}

.gallery-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.98) contrast(1.02);
  transition: transform 760ms var(--ease-soft), filter 500ms ease;
}

.gallery-panel.active img,
.gallery-panel:hover img {
  transform: scale(1.035);
  filter: saturate(1.02) brightness(1.07) contrast(1.03);
}

.perspective-gallery .gallery-panel.active img {
  transform: scale(1.045);
  filter: saturate(1.02) brightness(1.08) contrast(1.03);
}

.gallery-panel div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #edf0ef;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.72);
  z-index: 2;
}

.gallery-panel span {
  direction: ltr;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.gallery-panel strong {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.gallery-panel.active strong,
.gallery-panel:hover strong {
  opacity: 1;
  transform: translateY(0);
}

.perspective-gallery .gallery-panel.is-visible strong {
  opacity: 1;
  transform: translateY(0);
}

.piece-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(226, 205, 170, 0.06), transparent 22%),
    linear-gradient(180deg, #151715 0%, #101210 52%, #171916 100%);
}

.piece-page main > section {
  scroll-snap-align: none;
}

.piece-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}

.piece-detail {
  padding: 124px clamp(20px, 5vw, 56px) 72px;
}

.piece-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.piece-figure {
  position: relative;
  margin: 0;
  min-height: 620px;
  border: 1px solid rgba(208, 179, 122, 0.18);
  background:
    radial-gradient(circle at 20% 18%, rgba(217, 221, 226, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.piece-figure-meta {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.piece-index,
.piece-type,
.piece-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(217, 221, 226, 0.18);
  background: rgba(14, 16, 15, 0.48);
  backdrop-filter: blur(12px);
  color: var(--silver);
}

.piece-index {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.piece-type,
.piece-pill {
  color: rgba(231, 221, 204, 0.8);
  font-size: 0.82rem;
}

.piece-figure img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.piece-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.piece-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  font-weight: 500;
  color: var(--gold-soft);
}

.piece-vibe {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--silver);
}

.piece-summary {
  margin: 0;
  max-width: 50ch;
  color: rgba(231, 221, 204, 0.78);
}

.piece-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.piece-note {
  margin: 0;
  max-width: 44ch;
  color: rgba(231, 221, 204, 0.66);
}

.piece-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.piece-meta-card,
.piece-related-card {
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(0, 0, 0, 0.14);
}

.piece-meta-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.piece-meta-link {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.piece-meta-link:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 221, 226, 0.28);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.piece-meta-card span {
  color: rgba(231, 221, 204, 0.56);
  font-size: 0.82rem;
}

.piece-meta-card strong {
  color: var(--silver);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.7;
}

.piece-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  align-items: center;
}

.piece-related {
  max-width: 1220px;
  margin: 0 auto;
}

.piece-gallery {
  max-width: 1220px;
  margin: 0 auto;
}

.piece-frame-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.72fr));
  gap: 16px;
  align-items: stretch;
}

.piece-frame-card {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(0, 0, 0, 0.18);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
  transition:
    transform 260ms var(--ease-soft),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.piece-frame-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 222, 205, 0.24);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.24);
}

.piece-frame-card.is-featured {
  grid-row: span 2;
}

.piece-frame-card figure {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #0f1110;
}

.piece-frame-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 760ms var(--ease-soft), filter 320ms ease;
  filter: saturate(0.96) brightness(0.98);
}

.piece-frame-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.02) brightness(1.03);
}

.piece-frame-copy {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
}

.piece-frame-copy span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.piece-frame-copy strong {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  color: var(--silver);
}

.piece-frame-copy p {
  margin: 0;
  color: rgba(231, 221, 204, 0.7);
}

.category-landing {
  padding: 108px 22px 56px;
}

.category-hero {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.category-copy,
.category-side-card {
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(9, 11, 10, 0.28);
}

.category-copy {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 14px;
}

.category-copy h1 {
  margin: 0;
  font-family: var(--serif), var(--sans);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  color: var(--silver);
}

.category-intro,
.category-mood {
  margin: 0;
  max-width: 62ch;
  color: rgba(231, 221, 204, 0.72);
}

.category-mood {
  color: var(--gold-soft);
}

.category-side-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.category-side-card span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.category-side-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--silver);
}

.category-side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.category-side-card li {
  position: relative;
  padding-inline-start: 16px;
  color: rgba(231, 221, 204, 0.68);
}

.category-side-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translateY(-50%);
}

.category-gallery-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-piece-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(0, 0, 0, 0.14);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.category-piece-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 221, 226, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.category-piece-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.category-piece-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-piece-card span {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.category-piece-card strong {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.category-piece-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.7);
}

.featured-collections {
  padding-top: 10px;
}

.editorial-page {
  gap: 34px;
}

.editorial-hero {
  margin-bottom: 10px;
}

.editorial-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.editorial-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(0, 0, 0, 0.14);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 221, 226, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.editorial-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.editorial-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.editorial-card span {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.editorial-card h3,
.editorial-card strong {
  margin: 0;
}

.editorial-card h3 {
  font-family: var(--serif), var(--sans);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--silver);
}

.editorial-card strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.editorial-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.7);
}

.editorial-card a {
  width: fit-content;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(208, 179, 122, 0.24);
}

.editorial-note {
  min-height: 100%;
}

.commission-shell {
  display: grid;
  gap: 34px;
}

.commission-hero {
  margin-bottom: 4px;
}

.commission-process,
.commission-form-section {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.commission-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.commission-form {
  display: grid;
  gap: 18px;
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commission-grid label,
.commission-textarea {
  display: grid;
  gap: 10px;
  color: rgba(231, 221, 204, 0.8);
  font-size: 0.95rem;
}

.commission-grid input,
.commission-grid select,
.commission-textarea textarea {
  width: 100%;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
}

.commission-textarea textarea {
  resize: vertical;
  min-height: 140px;
}

.commission-upload {
  min-height: 180px;
}

.commission-preview {
  min-height: 120px;
}

.commission-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.gallery-filter-section {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-filter-bar button {
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(231, 221, 204, 0.82);
  padding: 12px 18px;
  min-width: 124px;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.gallery-filter-bar button.active,
.gallery-filter-bar button:hover {
  color: var(--text);
  border-color: rgba(217, 221, 226, 0.28);
  background: rgba(208, 179, 122, 0.08);
  transform: translateY(-1px);
}

.gallery-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-piece-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(0, 0, 0, 0.14);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-piece-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 221, 226, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.gallery-piece-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.gallery-piece-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.gallery-piece-card span,
.gallery-piece-card small {
  color: var(--gold-soft);
}

.gallery-piece-card span {
  font-size: 0.78rem;
}

.gallery-piece-card strong {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.gallery-piece-card p,
.gallery-piece-card small {
  margin: 0;
}

.gallery-piece-card p {
  color: rgba(231, 221, 204, 0.7);
}

.gallery-piece-card small {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .commission-steps,
  .commission-grid,
  .editorial-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .commission-process,
  .commission-form-section {
    width: min(100% - 28px, 1220px);
  }

  .commission-steps,
  .commission-grid,
  .editorial-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.piece-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.piece-related-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.piece-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 221, 226, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.piece-related-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  transition: transform 420ms var(--ease-soft), filter 320ms ease;
}

.piece-related-card:hover img {
  transform: scale(1.03);
}

.piece-related-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.piece-related-card span {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.piece-related-card strong {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.piece-related-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.7);
}

.product-type {
  margin: 0 0 4px;
  color: var(--gold-soft);
  font-size: 0.82rem;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 400;
}

.product-card p:last-child {
  max-width: 360px;
  margin: 0;
  color: rgba(231, 221, 204, 0.68);
}

.product-price {
  width: fit-content;
  margin: 2px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(217, 221, 226, 0.16);
  color: var(--silver);
  background: rgba(217, 221, 226, 0.055);
  font-size: 0.86rem;
}

.custom {
  display: block;
  background:
    radial-gradient(circle at 22% 12%, rgba(79, 86, 80, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(20, 22, 21, 0.98), rgba(15, 17, 16, 0.98));
  border-top: 1px solid rgba(208, 179, 122, 0.12);
  border-bottom: 1px solid rgba(208, 179, 122, 0.12);
}

.lab-drawer,
.admin-drawer,
.user-drawer {
  position: fixed;
  top: 92px;
  right: 50%;
  bottom: 24px;
  z-index: 41;
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translate(50%, 28px) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms var(--ease-out), opacity 220ms ease, box-shadow 220ms ease;
  border: 1px solid rgba(217, 221, 226, 0.16);
  background:
    radial-gradient(circle at 84% 12%, rgba(217, 221, 226, 0.08), transparent 24%),
    rgba(7, 9, 8, 0.94);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(22px);
}

.lab-drawer {
  padding: clamp(22px, 3vw, 38px);
}

.lab-drawer.open,
.admin-drawer.open,
.user-drawer.open {
  transform: translate(50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
  animation: drawerBloom 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.drawer-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 221, 226, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
}

.lab-heading p,
.story p,
.contact p {
  color: rgba(231, 221, 204, 0.7);
  max-width: 560px;
}

.lab-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(231, 221, 204, 0.72);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.lab-panel {
  display: grid;
  gap: 22px;
  align-content: start;
  min-height: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(208, 179, 122, 0.18);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.lab-panel h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 400;
  color: #edf0ef;
}

.lab-panel p {
  margin: 0;
  color: rgba(231, 221, 204, 0.66);
}

.piece-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.piece-type-list span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.028);
  color: rgba(231, 221, 204, 0.74);
  font-size: 0.86rem;
}

.admin-drawer {
  left: 24px;
  right: auto;
  width: min(860px, calc(100vw - 48px));
  transform: translateX(calc(-100% - 40px));
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 0%, rgba(208, 179, 122, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(7, 10, 9, 0.98), rgba(12, 14, 13, 0.94));
}

.admin-drawer.open {
  transform: translateX(0);
}

.user-drawer {
  width: min(980px, calc(100vw - 48px));
  padding: clamp(22px, 3vw, 38px);
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 221, 226, 0.08), transparent 28%),
    radial-gradient(circle at 86% 76%, rgba(16, 38, 83, 0.16), transparent 32%),
    rgba(7, 9, 8, 0.95);
}

.account-login {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}

.account-login h2 {
  margin: 0;
  direction: ltr;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 400;
  color: #eadcc6;
}

.account-login p {
  margin: 0;
  color: rgba(231, 221, 204, 0.68);
}

.login-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.login-choice button {
  min-height: 44px;
  border: 1px solid rgba(208, 179, 122, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.024);
  color: rgba(231, 221, 204, 0.72);
  font: inherit;
  cursor: pointer;
}

.login-choice button.active,
.login-choice button:hover {
  background: rgba(217, 221, 226, 0.88);
  color: #070908;
}

.auth-divider {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  color: rgba(231, 221, 204, 0.46);
  font-size: 0.88rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(208, 179, 122, 0.14);
}

.google-auth-block {
  display: grid;
  gap: 10px;
}

.google-auth-shell {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 4px 0 0;
}

.google-auth-button {
  width: 100%;
  display: grid;
  place-items: center;
}

.google-auth-button.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.google-fallback-button {
  min-height: 46px;
}

.google-auth-note {
  min-height: 20px;
  margin: 0;
  color: rgba(231, 221, 204, 0.58);
  font-size: 0.9rem;
}

.confirm-password-field.is-hidden {
  display: none;
}

.account-dashboard {
  display: none;
}

.user-drawer.logged-in .account-login {
  display: none;
}

.user-drawer.logged-in .account-dashboard {
  display: block;
}

.account-hero {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.account-hero h2 {
  margin: 0;
  direction: ltr;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 400;
  color: #eadcc6;
}

.account-hero p {
  margin: 8px auto 0;
  max-width: 580px;
  color: rgba(231, 221, 204, 0.68);
}

.account-summary,
.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.account-summary article,
.admin-summary article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(0, 0, 0, 0.16);
}

.account-summary span,
.admin-summary span {
  display: block;
  color: rgba(231, 221, 204, 0.56);
  font-size: 0.82rem;
}

.account-summary strong,
.admin-summary strong {
  display: block;
  margin: 8px 0 4px;
  direction: ltr;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
  color: #eadcc6;
}

.account-summary small,
.admin-summary small {
  color: rgba(231, 221, 204, 0.52);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 16px;
}

.account-tabs,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.account-tabs button,
.admin-tabs button {
  min-height: 42px;
  border: 1px solid rgba(208, 179, 122, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.028);
  color: rgba(231, 221, 204, 0.72);
  padding: 8px 13px;
  cursor: pointer;
}

.account-tabs button.active,
.account-tabs button:hover,
.admin-tabs button.active,
.admin-tabs button:hover {
  background: rgba(217, 221, 226, 0.9);
  color: #070908;
}

.account-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.026);
}

.account-panel {
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.account-panel.active,
.account-panel.is-focused {
  border-color: rgba(208, 179, 122, 0.42);
  background:
    linear-gradient(135deg, rgba(208, 179, 122, 0.08), rgba(217, 221, 226, 0.035)),
    rgba(255, 255, 255, 0.028);
  transform: translateY(-2px);
}

.account-card h3 {
  margin: 0;
  color: var(--silver);
  font-weight: 400;
}

.account-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.66);
}

.account-total {
  direction: rtl;
  width: fit-content;
  color: var(--gold-soft);
  font-weight: 400;
}

.order-status ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.order-status li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(208, 179, 122, 0.12);
  color: rgba(231, 221, 204, 0.58);
}

.order-status li:last-child {
  border-bottom: 0;
}

.order-status li span {
  grid-row: span 2;
  direction: ltr;
  color: var(--gold-soft);
  font-family: var(--serif);
}

.order-status li strong {
  color: rgba(237, 240, 239, 0.76);
  font-weight: 400;
}

.order-status li small {
  color: rgba(231, 221, 204, 0.5);
}

.order-status li.done strong,
.order-status li.active strong {
  color: #edf0ef;
}

.order-status li.active {
  background: linear-gradient(90deg, rgba(217, 221, 226, 0.08), transparent);
}

.compact-preview {
  min-height: 150px;
}

.saved-design-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.66);
}

.admin-header {
  position: relative;
  padding-left: 52px;
  margin-bottom: 20px;
}

.admin-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(231, 221, 204, 0.64);
  line-height: 2;
}

.admin-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: #eadcc6;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.admin-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.58);
  line-height: 1.9;
}

.admin-section.is-focused {
  border-color: rgba(208, 179, 122, 0.42);
  background:
    linear-gradient(135deg, rgba(208, 179, 122, 0.08), rgba(217, 221, 226, 0.03)),
    rgba(255, 255, 255, 0.026);
}

.admin-card h3 {
  margin: 0;
  color: var(--silver);
  font-weight: 400;
}

.admin-orders {
  grid-column: 1 / -1;
}

.admin-orders ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-orders li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(208, 179, 122, 0.1);
}

.admin-orders li span {
  grid-row: span 2;
  direction: ltr;
  color: var(--gold-soft);
  font-family: var(--serif);
}

.admin-orders li strong {
  color: rgba(237, 240, 239, 0.82);
  font-weight: 400;
}

.admin-orders li small {
  color: rgba(231, 221, 204, 0.52);
}

.admin-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-preview figure {
  margin: 0;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.admin-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-preview figcaption {
  padding: 8px 10px;
  color: rgba(231, 221, 204, 0.72);
  font-size: 0.82rem;
}

.upload-box {
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  border: 1px dashed rgba(217, 221, 226, 0.36);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-box::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -30%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(217, 221, 226, 0.16), transparent);
  transform: rotate(18deg) translateX(-120%);
  transition: transform 620ms ease;
}

.upload-box:hover::after {
  transform: rotate(18deg) translateX(520%);
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-box span {
  color: var(--silver);
  font-size: 1.1rem;
}

.upload-box small {
  color: rgba(231, 221, 204, 0.52);
}

.upload-preview {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.13);
  background: rgba(0, 0, 0, 0.24);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
}

.upload-panel {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  align-items: stretch;
}

.upload-panel .upload-box,
.upload-panel .upload-preview {
  min-height: 150px;
}

.upload-panel.upload-only {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.75fr) minmax(220px, 300px) minmax(300px, 1fr);
  align-items: stretch;
}

.upload-panel.upload-only .upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-content: start;
}

.upload-panel.upload-only .upload-preview p {
  grid-column: 1 / -1;
}

.upload-panel.upload-only .upload-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(217, 221, 226, 0.16);
  filter: saturate(0.9) contrast(1.04);
}

.custom-order-fields {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(208, 179, 122, 0.12);
}

.order-ritual {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ritual-step {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(208, 179, 122, 0.12);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(12, 14, 13, 0.46);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.ritual-step span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.ritual-step strong {
  color: var(--silver);
  font-weight: 500;
  font-size: 1.06rem;
}

.ritual-step p {
  margin: 0;
  color: rgba(231, 221, 204, 0.68);
  font-size: 0.95rem;
  line-height: 1.85;
}

.custom-order-heading {
  display: grid;
  gap: 8px;
}

.custom-order-heading p:not(.eyebrow) {
  margin: 0;
}

.custom-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.custom-order-grid label:first-child,
.custom-order-grid label:last-child {
  grid-column: 1 / -1;
}

.custom-order-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(231, 221, 204, 0.74);
  min-height: 52px;
}

.custom-order-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}


.request-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 0.65fr) minmax(300px, 1fr);
  align-items: start;
}

.request-panel .contact-form {
  margin: 0;
}

.builder-panel {
  grid-template-columns: minmax(460px, 0.86fr) minmax(360px, 0.66fr);
  align-items: start;
}

.builder-copy {
  grid-column: 1 / -1;
}

.builder-stage {
  grid-column: 1;
  grid-row: 2 / 6;
  position: sticky;
  top: 18px;
}

.builder-controls,
.builder-panel > .button,
.builder-panel > .form-note {
  grid-column: 2;
}

.builder-stage {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(208, 179, 122, 0.18);
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 221, 226, 0.06), transparent 28%),
    linear-gradient(180deg, #080a09, #040505);
}

.builder-stage.empty .ring-canvas,
.builder-stage.empty .builder-render,
.builder-stage.empty .stone-preview,
.builder-stage.empty .side-stones,
.builder-stage.empty .halo-stones,
.builder-stage.empty .setting-rail,
.builder-stage.empty .stone-prongs,
.builder-stage.empty .facet-lines,
.builder-stage.empty .size-gauge {
  opacity: 0;
}

.empty-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
  color: rgba(231, 221, 204, 0.72);
}

.empty-preview strong {
  font-size: 1.35rem;
  color: var(--silver);
}

.builder-stage:not(.empty) .empty-preview {
  display: none;
}

.builder-stage:not(.empty) .builder-render {
  cursor: crosshair;
}

.builder-render {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 240ms ease;
}

.ring-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: drop-shadow(0 32px 34px rgba(0, 0, 0, 0.45));
}

.real-ring-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  filter: saturate(0.86) brightness(0.82) contrast(1.08);
  opacity: 0.96;
  transition: filter 240ms ease, transform 500ms ease, object-position 300ms ease;
}

.template-compositor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  --gem-w: clamp(88px, 12vw, 126px);
  --gem-h: clamp(118px, 15vw, 166px);
  --gem-top: 45%;
  --gem-x: 50%;
  --gem-scale: 1;
  --seat-w: clamp(102px, 13vw, 142px);
  --seat-h: clamp(52px, 7vw, 78px);
  --seat-radius: 0 0 999px 999px;
  --seat-rotate: 0deg;
  --setting-w: clamp(154px, 20vw, 226px);
  --setting-h: clamp(120px, 17vw, 176px);
  transition: opacity 220ms ease;
}

.builder-stage[data-base] .template-compositor {
  opacity: 0;
}

.builder-stage[data-base] .real-ring-preview {
  opacity: 0.14;
}

.base-template {
  position: absolute;
  inset: 0;
  background-image: url("assets/ornova-ring-base-templates.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  filter: saturate(0.88) brightness(0.96) contrast(1.04);
}

.builder-stage[data-base="thin"] .base-template {
  background-position: 0 0;
}

.builder-stage[data-base="split"] .base-template {
  background-position: 100% 0;
}

.builder-stage[data-base="bezel"] .base-template {
  background-position: 0 100%;
}

.builder-stage[data-base="signet"] .base-template {
  background-position: 100% 100%;
}

.gem-seat {
  position: absolute;
  width: var(--seat-w);
  height: var(--seat-h);
  top: calc(var(--gem-top) + 4.2%);
  right: var(--gem-x);
  transform: translate(50%, -50%) rotate(var(--seat-rotate));
  opacity: 0;
  z-index: 1;
  border: 3px solid rgba(225, 230, 230, 0.76);
  border-top: 0;
  border-radius: var(--seat-radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(7, 9, 9, 0.92) 0 52%, transparent 53%),
    linear-gradient(90deg, rgba(91, 98, 100, 0.58), rgba(241, 244, 244, 0.68), rgba(84, 91, 94, 0.58));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.builder-stage[data-stone] .gem-seat {
  opacity: 1;
}

.gem-seat::before,
.gem-seat::after {
  content: "";
  position: absolute;
  top: -18%;
  width: 7px;
  height: 58%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 247, 247, 0.92), rgba(96, 104, 106, 0.62));
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.32);
}

.gem-seat::before {
  right: 12%;
  transform: rotate(-16deg);
}

.gem-seat::after {
  left: 12%;
  transform: rotate(16deg);
}

.gem-template {
  position: absolute;
  width: var(--gem-w);
  height: var(--gem-h);
  top: var(--gem-top);
  right: var(--gem-x);
  transform: translate(50%, -50%) scale(var(--gem-scale));
  background-image: url("assets/ornova-gemstone-templates.png");
  background-size: 500% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 2;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease, width 180ms ease;
}

.builder-stage[data-stone] .gem-template {
  opacity: 0.96;
}

.builder-stage[data-stone="oval"] .gem-template {
  background-position: 0 50%;
}

.builder-stage[data-stone="round"] .gem-template {
  --gem-w: clamp(82px, 10.5vw, 118px);
  --gem-h: clamp(82px, 10.5vw, 118px);
  background-position: 25% 50%;
}

.builder-stage[data-stone="marquise"] .gem-template {
  --gem-w: clamp(66px, 8.4vw, 96px);
  --gem-h: clamp(128px, 17vw, 182px);
  background-position: 50% 50%;
}

.builder-stage[data-stone="marquise"] .template-compositor {
  --seat-w: clamp(44px, 5.8vw, 66px);
  --seat-h: clamp(96px, 12vw, 138px);
  --seat-radius: 999px;
}

.builder-stage[data-stone="marquise"] .gem-seat {
  top: var(--gem-top);
  z-index: 3;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.builder-stage[data-stone="marquise"] .gem-seat::before {
  top: -4px;
  right: 50%;
  width: 22px;
  height: 10px;
  transform: translateX(50%);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(245, 247, 247, 0.95), rgba(96, 104, 106, 0.78));
  box-shadow:
    -26px 46px 0 -3px rgba(225, 230, 230, 0.82),
    26px 46px 0 -3px rgba(225, 230, 230, 0.82);
}

.builder-stage[data-stone="marquise"] .gem-seat::after {
  top: auto;
  bottom: -4px;
  right: 50%;
  left: auto;
  width: 22px;
  height: 10px;
  transform: translateX(50%);
  border-radius: 4px 4px 999px 999px;
  background: linear-gradient(0deg, rgba(245, 247, 247, 0.95), rgba(96, 104, 106, 0.78));
}

.builder-stage[data-stone="pear"] .gem-template {
  --gem-w: clamp(82px, 10.4vw, 118px);
  --gem-h: clamp(124px, 16vw, 170px);
  background-position: 75% 50%;
}

.builder-stage[data-stone="pear"] .template-compositor {
  --seat-w: clamp(60px, 7vw, 84px);
  --seat-h: clamp(86px, 10vw, 124px);
  --seat-radius: 58% 58% 58% 20%;
  --seat-rotate: -18deg;
}

.builder-stage[data-stone="emerald"] .gem-template {
  --gem-w: clamp(104px, 13.2vw, 150px);
  --gem-h: clamp(74px, 9.4vw, 104px);
  background-position: 100% 50%;
}

.builder-stage[data-base="thin"] .template-compositor {
  --gem-top: 51%;
  --gem-scale: 0.66;
  --seat-w: clamp(76px, 9vw, 102px);
  --seat-h: clamp(32px, 4.2vw, 46px);
  --setting-w: clamp(138px, 18vw, 198px);
  --setting-h: clamp(108px, 15vw, 158px);
}

.builder-stage[data-base="split"] .template-compositor {
  --gem-top: 49%;
  --gem-scale: 0.76;
  --seat-w: clamp(84px, 10vw, 112px);
  --seat-h: clamp(36px, 4.6vw, 52px);
}

.builder-stage[data-base="bezel"] .template-compositor {
  --gem-top: 50%;
  --gem-scale: 0.64;
  --seat-w: clamp(78px, 9vw, 104px);
  --seat-h: clamp(32px, 4.2vw, 48px);
  --setting-w: clamp(128px, 16vw, 178px);
  --setting-h: clamp(98px, 13vw, 138px);
}

.builder-stage[data-base="signet"] .template-compositor {
  --gem-top: 51%;
  --gem-scale: 0.58;
  --seat-w: clamp(72px, 8vw, 96px);
  --seat-h: clamp(30px, 4vw, 44px);
  --setting-w: clamp(120px, 15vw, 166px);
  --setting-h: clamp(94px, 12vw, 126px);
}

.builder-stage[data-base="bezel"][data-stone="emerald"] .template-compositor,
.builder-stage[data-base="signet"][data-stone="emerald"] .template-compositor {
  --gem-scale: 0.68;
}

.builder-stage[data-base="thin"][data-stone="marquise"] .template-compositor {
  --gem-scale: 0.58;
}

.builder-stage[data-base][data-stone="marquise"] .template-compositor {
  --seat-w: clamp(42px, 5.2vw, 60px);
  --seat-h: clamp(92px, 11vw, 128px);
  --seat-radius: 999px;
}

.builder-stage[data-base="thin"][data-stone="marquise"] .template-compositor,
.builder-stage[data-base="bezel"][data-stone="marquise"] .template-compositor {
  --gem-top: 50%;
}

.builder-stage[data-base][data-stone="oval"] .template-compositor,
.builder-stage[data-base][data-stone="round"] .template-compositor {
  --seat-w: clamp(74px, 8.4vw, 96px);
  --seat-h: clamp(34px, 4vw, 48px);
}

/* Stone-first calibration matrix: each cut gets a fitted base seat. */
.builder-stage[data-base="thin"][data-stone="round"] .template-compositor {
  --gem-top: 50.5%;
  --gem-scale: 0.62;
}

.builder-stage[data-base="thin"][data-stone="oval"] .template-compositor {
  --gem-top: 50.8%;
  --gem-scale: 0.62;
}

.builder-stage[data-base="thin"][data-stone="pear"] .template-compositor {
  --gem-top: 50.4%;
  --gem-scale: 0.54;
  --seat-w: clamp(58px, 6.8vw, 78px);
  --seat-h: clamp(78px, 9vw, 106px);
}

.builder-stage[data-base="thin"][data-stone="emerald"] .template-compositor {
  --gem-top: 50.2%;
  --gem-scale: 0.5;
  --seat-w: clamp(82px, 9vw, 110px);
  --seat-h: clamp(30px, 3.7vw, 42px);
}

.builder-stage[data-base="split"][data-stone="round"] .template-compositor {
  --gem-top: 49.2%;
  --gem-scale: 0.66;
}

.builder-stage[data-base="split"][data-stone="oval"] .template-compositor {
  --gem-top: 49.4%;
  --gem-scale: 0.66;
}

.builder-stage[data-base="split"][data-stone="marquise"] .template-compositor {
  --gem-top: 49.2%;
  --gem-scale: 0.56;
}

.builder-stage[data-base="split"][data-stone="pear"] .template-compositor {
  --gem-top: 49.4%;
  --gem-scale: 0.56;
  --seat-w: clamp(62px, 7vw, 86px);
  --seat-h: clamp(82px, 9.6vw, 112px);
}

.builder-stage[data-base="split"][data-stone="emerald"] .template-compositor {
  --gem-top: 49.5%;
  --gem-scale: 0.5;
  --seat-w: clamp(92px, 10vw, 120px);
  --seat-h: clamp(32px, 4vw, 46px);
}

.builder-stage[data-base="bezel"][data-stone="round"] .template-compositor {
  --gem-top: 49.8%;
  --gem-scale: 0.54;
}

.builder-stage[data-base="bezel"][data-stone="oval"] .template-compositor {
  --gem-top: 49.8%;
  --gem-scale: 0.56;
}

.builder-stage[data-base="bezel"][data-stone="pear"] .template-compositor,
.builder-stage[data-base="bezel"][data-stone="marquise"] .template-compositor {
  --gem-top: 49.8%;
  --gem-scale: 0.48;
}

.builder-stage[data-base="bezel"][data-stone="emerald"] .template-compositor {
  --gem-top: 49.8%;
  --gem-scale: 0.46;
  --seat-w: clamp(76px, 8.8vw, 104px);
  --seat-h: clamp(30px, 3.8vw, 42px);
}

.builder-stage[data-base="signet"][data-stone="round"] .template-compositor,
.builder-stage[data-base="signet"][data-stone="oval"] .template-compositor {
  --gem-top: 50.4%;
  --gem-scale: 0.52;
}

.builder-stage[data-base="signet"][data-stone="marquise"] .template-compositor,
.builder-stage[data-base="signet"][data-stone="pear"] .template-compositor {
  --gem-top: 50.4%;
  --gem-scale: 0.44;
}

.builder-stage[data-base="signet"][data-stone="emerald"] .template-compositor {
  --gem-top: 50.4%;
  --gem-scale: 0.42;
  --seat-w: clamp(70px, 8vw, 96px);
  --seat-h: clamp(28px, 3.5vw, 40px);
}

.choice[data-builder="layout"] {
  flex-basis: calc(50% - 8px);
}

.builder-stage[data-color="#080808"] .gem-template {
  filter: grayscale(1) brightness(0.45) contrast(1.55) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}

.builder-stage[data-color="#d9dde2"] .gem-template {
  filter: grayscale(0.25) brightness(1.45) saturate(0.55) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}

.builder-stage[data-color="#284438"] .gem-template {
  filter: hue-rotate(82deg) saturate(1.1) brightness(0.82) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
}

.setting-template {
  position: absolute;
  width: var(--setting-w);
  height: var(--setting-h);
  top: var(--gem-top);
  right: var(--gem-x);
  transform: translate(50%, -50%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.builder-stage[data-layout="halo"] .setting-template,
.builder-stage[data-layout="three"] .setting-template,
.builder-stage[data-layout="cluster"] .setting-template {
  opacity: 1;
}

.setting-template::before,
.setting-template::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.builder-stage[data-layout="halo"] .setting-template::before {
  inset: 8% 18%;
  border: 5px dotted rgba(238, 241, 242, 0.82);
  filter: drop-shadow(0 0 10px rgba(217, 221, 226, 0.22));
}

.builder-stage[data-layout="three"] .setting-template::before,
.builder-stage[data-layout="three"] .setting-template::after {
  top: 50%;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--layout-color, #d9dde2) 38%, #050606 90%);
  border: 2px solid rgba(238, 241, 242, 0.74);
  transform: translateY(-50%);
}

.builder-stage[data-layout="three"] .setting-template::before {
  right: 7%;
}

.builder-stage[data-layout="three"] .setting-template::after {
  left: 7%;
}

.builder-stage[data-layout="cluster"] .setting-template::before {
  width: 48px;
  height: 48px;
  right: 18%;
  top: 20%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--layout-color, #d9dde2) 36%, #050606 88%);
  border: 2px solid rgba(238, 241, 242, 0.74);
}

.builder-stage[data-layout="cluster"] .setting-template::after {
  width: 38px;
  height: 38px;
  left: 22%;
  bottom: 18%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--layout-color, #d9dde2) 36%, #050606 88%);
  border: 2px solid rgba(238, 241, 242, 0.74);
}

.builder-stage[data-layout="halo"][data-stone="round"] .setting-template::before {
  inset: 9% 23%;
  border-radius: 50%;
}

.builder-stage[data-layout="halo"][data-stone="oval"] .setting-template::before {
  inset: 8% 18%;
  border-radius: 50%;
}

.builder-stage[data-layout="halo"][data-stone="marquise"] .setting-template::before {
  inset: 12% 12%;
  border-radius: 50% / 42%;
  transform: rotate(-3deg);
}

.builder-stage[data-layout="halo"][data-stone="pear"] .setting-template::before {
  inset: 10% 19% 5%;
  border-radius: 52% 52% 48% 48% / 42% 42% 58% 58%;
}

.builder-stage[data-layout="halo"][data-stone="emerald"] .setting-template::before {
  inset: 18% 13%;
  border-radius: 12px;
}

.builder-stage[data-layout="three"] .setting-template::before,
.builder-stage[data-layout="three"] .setting-template::after {
  top: 52%;
}

.builder-stage[data-layout="three"][data-stone="emerald"] .setting-template::before,
.builder-stage[data-layout="three"][data-stone="emerald"] .setting-template::after,
.builder-stage[data-layout="three"][data-stone="marquise"] .setting-template::before,
.builder-stage[data-layout="three"][data-stone="marquise"] .setting-template::after {
  width: 34px;
  height: 30px;
  border-radius: 42%;
}

.builder-stage[data-layout="three"][data-stone="pear"] .setting-template::before,
.builder-stage[data-layout="three"][data-stone="pear"] .setting-template::after {
  top: 56%;
}

.builder-stage[data-layout="cluster"][data-stone="marquise"] .setting-template::before,
.builder-stage[data-layout="cluster"][data-stone="emerald"] .setting-template::before {
  right: 14%;
  top: 24%;
}

.builder-stage[data-layout="cluster"][data-stone="marquise"] .setting-template::after,
.builder-stage[data-layout="cluster"][data-stone="emerald"] .setting-template::after {
  left: 16%;
  bottom: 22%;
}

.builder-stage[data-base="thin"] .real-ring-preview {
  object-position: 48% 55%;
  filter: saturate(0.76) brightness(0.92) contrast(1.02);
}

.builder-stage[data-base="split"] .real-ring-preview {
  object-position: 53% 52%;
  transform: scale(1.035);
}

.builder-stage[data-base="bezel"] .real-ring-preview {
  object-position: 50% 48%;
  filter: saturate(0.92) brightness(0.86) contrast(1.14);
}

.builder-stage[data-base="signet"] .real-ring-preview {
  object-position: 55% 50%;
  transform: scale(1.065);
  filter: saturate(0.7) brightness(0.88) contrast(1.18);
}

.builder-stage:not([data-base]) .real-ring-preview {
  opacity: 0;
}

.builder-stage[data-stone] .real-ring-preview {
  opacity: 0.16;
}

.ring-canvas {
  display: block;
  z-index: 4;
}

.builder-stage:has(.ring-canvas) .ring-band,
.builder-stage:has(.ring-canvas) .ring-shoulder,
.builder-stage:has(.ring-canvas) .setting-rail,
.builder-stage:has(.ring-canvas) .side-stones,
.builder-stage:has(.ring-canvas) .halo-stones,
.builder-stage:has(.ring-canvas) .stone-preview,
.builder-stage:has(.ring-canvas) .facet-lines,
.builder-stage:has(.ring-canvas) .stone-prongs,
.builder-stage:has(.ring-canvas) .render-moon,
.builder-stage:has(.ring-canvas) .ring-shadow {
  display: none;
}

.render-moon {
  position: absolute;
  width: 210px;
  height: 210px;
  top: 28px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 50%;
  border: 1px solid rgba(217, 221, 226, 0.08);
  box-shadow: inset 24px 0 0 rgba(217, 221, 226, 0.03);
  opacity: 0.75;
}

.ring-shadow {
  position: absolute;
  width: min(64%, 430px);
  height: 36px;
  right: 50%;
  bottom: 36px;
  transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.74), transparent 68%);
  filter: blur(3px);
}

.ring-band {
  position: absolute;
  width: min(58%, 370px);
  aspect-ratio: 1.9 / 1;
  bottom: 40px;
  border: 12px solid rgba(217, 221, 226, 0.86);
  border-top: 0;
  border-radius: 0 0 220px 220px;
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.3),
    0 18px 40px rgba(0, 0, 0, 0.42);
}

.ring-shoulder {
  position: absolute;
  width: 132px;
  height: 14px;
  top: 54%;
  background: linear-gradient(90deg, rgba(94, 99, 100, 0.25), #eef1f2 42%, #8f9698);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.ring-shoulder.left {
  right: calc(50% + 38px);
  transform: rotate(-18deg);
}

.ring-shoulder.right {
  left: calc(50% + 38px);
  transform: rotate(18deg);
}

.setting-rail {
  position: absolute;
  width: 118px;
  height: 24px;
  right: 50%;
  top: 54%;
  transform: translate(50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(217, 221, 226, 0.78);
  background:
    linear-gradient(90deg, rgba(72, 77, 78, 0.62), rgba(238, 241, 242, 0.9), rgba(80, 85, 86, 0.58));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.46);
}

.builder-stage[data-base="thin"] .ring-band {
  border-width: 7px;
  width: min(50%, 318px);
  filter: brightness(1.04);
}

.builder-stage[data-base="thin"] .ring-shoulder {
  width: 108px;
  height: 10px;
}

.builder-stage[data-base="thin"] .setting-rail {
  width: 92px;
  height: 16px;
}

.builder-stage[data-base="split"] .ring-band {
  border-width: 9px;
  width: min(58%, 370px);
}

.builder-stage[data-base="split"] .ring-shoulder {
  height: 8px;
  box-shadow:
    0 -18px 0 rgba(217, 221, 226, 0.76),
    0 18px 0 rgba(217, 221, 226, 0.58),
    0 10px 20px rgba(0, 0, 0, 0.4);
}

.builder-stage[data-base="split"] .setting-rail {
  width: 136px;
  height: 18px;
}

.builder-stage[data-base="bezel"] .ring-band {
  width: min(56%, 360px);
  border-width: 11px;
}

.builder-stage[data-base="bezel"] .stone-preview {
  box-shadow:
    0 0 0 12px rgba(217, 221, 226, 0.88),
    0 0 0 17px rgba(19, 22, 21, 0.94),
    0 18px 38px rgba(0, 0, 0, 0.5);
}

.builder-stage[data-base="bezel"] .setting-rail {
  width: 148px;
  height: 34px;
  border-width: 3px;
}

.builder-stage[data-base="signet"] .ring-band {
  border-width: 19px;
  width: min(66%, 440px);
  border-color: rgba(217, 221, 226, 0.92);
}

.builder-stage[data-base="signet"] .ring-shoulder {
  width: 188px;
  height: 30px;
  top: 53%;
  opacity: 0.9;
}

.builder-stage[data-base="signet"] .setting-rail {
  width: 178px;
  height: 56px;
  border-radius: 48% / 56%;
  background:
    radial-gradient(ellipse at center, rgba(9, 11, 11, 0.9) 0 42%, transparent 43%),
    linear-gradient(90deg, #777d7f, #f1f4f4 48%, #6d7375);
}

.stone-preview {
  position: absolute;
  width: 84px;
  height: 112px;
  right: 50%;
  top: 43%;
  transform: translate(50%, -50%);
  border-radius: 48% / 56%;
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.95), transparent 0 11%, rgba(255, 255, 255, 0.2) 16%, transparent 28%),
    radial-gradient(circle at 50% 58%, var(--stone-color, #102653), #020306 72%);
  border: 4px solid rgba(230, 233, 233, 0.88);
  box-shadow: 0 0 0 7px rgba(10, 12, 12, 0.52), 0 18px 38px rgba(0, 0, 0, 0.5);
  opacity: 0.94;
  pointer-events: none;
}

.builder-stage:not([data-stone]) .stone-preview,
.builder-stage:not([data-color]) .stone-preview {
  opacity: 0;
}

.builder-stage[data-stone="round"] .stone-preview {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.builder-stage[data-stone="oval"] .stone-preview {
  width: 78px;
  height: 118px;
  border-radius: 50% / 58%;
}

.builder-stage[data-stone="marquise"] .stone-preview {
  width: 66px;
  height: 140px;
  border-radius: 52% 52% 52% 52% / 78% 78% 22% 22%;
  transform: translate(50%, -50%) rotate(38deg);
}

.builder-stage[data-stone="pear"] .stone-preview {
  width: 84px;
  height: 118px;
  border-radius: 52% 52% 52% 8% / 62% 62% 46% 18%;
  transform: translate(50%, -50%) rotate(-45deg);
}

.builder-stage[data-stone="emerald"] .stone-preview {
  width: 104px;
  height: 82px;
  border-radius: 10px;
}

.facet-lines {
  position: absolute;
  width: 96px;
  height: 112px;
  right: 50%;
  top: 43%;
  transform: translate(50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.2) 49% 51%, transparent 52%),
    linear-gradient(35deg, transparent 46%, rgba(255, 255, 255, 0.16) 47% 49%, transparent 50%),
    linear-gradient(-35deg, transparent 46%, rgba(255, 255, 255, 0.14) 47% 49%, transparent 50%);
  opacity: 0;
  pointer-events: none;
}

.builder-stage[data-stone][data-color] .facet-lines {
  opacity: 0.82;
}

.builder-stage[data-stone="round"] .facet-lines {
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.builder-stage[data-stone="oval"] .facet-lines {
  width: 70px;
  height: 108px;
  border-radius: 50% / 58%;
}

.builder-stage[data-stone="marquise"] .facet-lines {
  width: 58px;
  height: 128px;
  border-radius: 52% 52% 52% 52% / 78% 78% 22% 22%;
  transform: translate(50%, -50%) rotate(38deg);
}

.builder-stage[data-stone="pear"] .facet-lines {
  width: 74px;
  height: 108px;
  border-radius: 52% 52% 52% 8% / 62% 62% 46% 18%;
  transform: translate(50%, -50%) rotate(-45deg);
}

.builder-stage[data-stone="emerald"] .facet-lines {
  width: 94px;
  height: 72px;
  border-radius: 8px;
}

.stone-prongs {
  position: absolute;
  width: 148px;
  height: 148px;
  right: 50%;
  top: 43%;
  transform: translate(50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.builder-stage[data-stone][data-color] .stone-prongs {
  opacity: 1;
}

.stone-prongs::before,
.stone-prongs::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-top: 5px solid rgba(238, 241, 242, 0.86);
  border-bottom: 5px solid rgba(238, 241, 242, 0.78);
  border-radius: 50%;
}

.stone-prongs::after {
  transform: rotate(90deg);
}

.builder-stage[data-base="bezel"] .stone-prongs,
.builder-stage[data-base="signet"] .stone-prongs {
  opacity: 0;
}

.side-stones,
.halo-stones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.builder-stage:not([data-layout]) .side-stones,
.builder-stage:not([data-layout]) .halo-stones {
  opacity: 0;
}

.side-stones::before,
.side-stones::after,
.halo-stones::before,
.halo-stones::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  top: 43%;
  background: var(--layout-color, #d9dde2);
  border: 2px solid rgba(217, 221, 226, 0.82);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 10px 18px rgba(0, 0, 0, 0.38);
  opacity: 0;
}

.side-stones::before {
  right: calc(50% - 112px);
}

.side-stones::after {
  right: calc(50% + 86px);
}

.builder-stage[data-layout="solitaire"] .side-stones::before,
.builder-stage[data-layout="solitaire"] .side-stones::after,
.builder-stage[data-layout="solitaire"] .halo-stones::before,
.builder-stage[data-layout="solitaire"] .halo-stones::after {
  display: none;
}

.builder-stage[data-layout="three"] .side-stones::before,
.builder-stage[data-layout="three"] .side-stones::after {
  opacity: 0.86;
  width: 34px;
  height: 34px;
}

.builder-stage[data-layout="halo"] .halo-stones::before,
.builder-stage[data-layout="halo"] .halo-stones::after {
  width: 154px;
  height: 154px;
  top: calc(43% - 26px);
  right: 50%;
  transform: translate(50%, -50%);
  background: transparent;
  border: 4px dotted rgba(217, 221, 226, 0.78);
  box-shadow: 0 0 22px rgba(217, 221, 226, 0.12);
  opacity: 1;
}

.builder-stage[data-layout="halo"] .halo-stones::after {
  display: none;
}

.builder-stage[data-layout="cluster"] .side-stones::before,
.builder-stage[data-layout="cluster"] .side-stones::after,
.builder-stage[data-layout="cluster"] .halo-stones::before,
.builder-stage[data-layout="cluster"] .halo-stones::after {
  opacity: 0.88;
}

.builder-stage[data-layout="cluster"] .halo-stones::before {
  width: 34px;
  height: 34px;
  right: calc(50% - 24px);
  top: calc(43% - 76px);
}

.builder-stage[data-layout="cluster"] .halo-stones::after {
  width: 30px;
  height: 30px;
  right: calc(50% + 4px);
  top: calc(43% + 60px);
}

.size-gauge {
  position: absolute;
  left: 18px;
  top: 18px;
  min-width: 78px;
  padding: 8px 10px;
  border: 1px solid rgba(208, 179, 122, 0.25);
  color: rgba(231, 221, 204, 0.72);
  font-family: var(--serif);
  font-size: 0.92rem;
  text-align: center;
  background: rgba(6, 7, 7, 0.62);
}

.preview-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(237, 240, 239, 0.9);
}

.preview-caption span {
  color: rgba(231, 221, 204, 0.62);
}

.builder-controls {
  counter-reset: lab-step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

fieldset {
  position: relative;
  counter-increment: lab-step;
  min-width: 0;
  margin: 0;
  padding: 20px 14px 14px;
  border: 1px solid rgba(208, 179, 122, 0.16);
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  gap: 8px;
}

fieldset::before {
  content: "0" counter(lab-step);
  position: absolute;
  top: -13px;
  left: 14px;
  min-width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 221, 226, 0.2);
  background: #080a09;
  color: var(--silver);
  font-family: var(--serif);
  font-size: 0.92rem;
}

fieldset:has(.choice:disabled),
fieldset:has(.swatch:disabled) {
  opacity: 0.56;
}

legend {
  padding: 0 8px;
  color: var(--gold-soft);
}

.ring-size-field {
  width: 100%;
}

.ring-size-field span {
  color: rgba(231, 221, 204, 0.68);
}

.ring-size-field input {
  margin-top: 8px;
  min-height: 42px;
}

.choice {
  position: relative;
  flex: 1 1 118px;
  min-height: 44px;
  border: 1px solid rgba(217, 221, 226, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(231, 221, 204, 0.78);
  padding: 8px 12px;
  cursor: pointer;
}

.choice[data-builder="base"],
.choice[data-builder="stone"] {
  flex-basis: 120px;
  min-width: 112px;
  padding: 58px 8px 9px;
  text-align: center;
}

.choice[data-builder="base"]::before,
.choice[data-builder="stone"]::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 50%;
  width: 82px;
  height: 42px;
  transform: translateX(50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(217, 221, 226, 0.12);
}

.choice[data-builder="base"]::before {
  background-image: url("assets/ornova-ring-base-templates.png");
  background-size: 200% 200%;
}

.choice[data-builder="base"][data-value="thin"]::before {
  background-position: 0 0;
}

.choice[data-builder="base"][data-value="split"]::before {
  background-position: 100% 0;
}

.choice[data-builder="base"][data-value="bezel"]::before {
  background-position: 0 100%;
}

.choice[data-builder="base"][data-value="signet"]::before {
  background-position: 100% 100%;
}

.choice[data-builder="stone"]::before {
  background-image: url("assets/ornova-gemstone-templates.png");
  background-size: 500% 100%;
  background-color: rgba(0, 0, 0, 0.2);
  background-position: center;
}

.choice[data-builder="stone"][data-value="oval"]::before {
  background-position: 0 50%;
}

.choice[data-builder="stone"][data-value="round"]::before {
  background-position: 25% 50%;
}

.choice[data-builder="stone"][data-value="marquise"]::before {
  background-position: 50% 50%;
}

.choice[data-builder="stone"][data-value="pear"]::before {
  background-position: 75% 50%;
}

.choice[data-builder="stone"][data-value="emerald"]::before {
  background-position: 100% 50%;
}

.choice.active,
.choice:hover {
  background: rgba(217, 221, 226, 0.92);
  color: #080909;
}

.choice:disabled,
.swatch:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.swatch {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(217, 221, 226, 0.24);
  background: var(--swatch);
  cursor: pointer;
}

.swatch.active {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.ritual-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ritual-list li {
  min-height: 250px;
  padding: 30px 22px;
  border-left: 1px solid var(--line);
}

.ritual-list li:last-child {
  border-left: 0;
}

.ritual-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2rem;
}

.ritual-list strong {
  display: block;
  color: #eadcc6;
  font-weight: 400;
  margin-bottom: 8px;
}

.ritual-list p {
  margin: 0;
  color: rgba(231, 221, 204, 0.58);
  font-size: 0.92rem;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
  background:
    radial-gradient(circle at 24% 40%, rgba(58, 72, 61, 0.24), transparent 34%),
    #171a18;
}

.story-panel {
  max-width: 760px;
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.story-panel p:not(.eyebrow) {
  margin: 0;
  max-width: 64ch;
  color: rgba(231, 221, 204, 0.84);
  font-size: 1.04rem;
  line-height: 2.15;
}

.trust-list {
  display: grid;
  gap: 16px;
}

.trust-list span {
  display: block;
  padding: 18px 0;
  min-height: auto;
  color: rgba(231, 221, 204, 0.78);
  border-bottom: 1px solid var(--line);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.trust-list span:hover {
  color: var(--silver);
  border-color: rgba(217, 221, 226, 0.24);
  transform: translateX(-6px);
}

.faq {
  background: #121412;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.faq-item {
  width: 100%;
  position: relative;
  display: grid;
  gap: 0;
  text-align: right;
  padding: 20px 68px 20px 22px;
  border: 1px solid rgba(208, 179, 122, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 10, 9, 0.48);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 221, 226, 0.2);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.faq-item::before,
.faq-item::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 24px;
  width: 16px;
  height: 1px;
  background: rgba(231, 221, 204, 0.78);
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.faq-item::after {
  transform: rotate(90deg);
}

.faq-item span {
  font-size: 1.08rem;
  line-height: 1.8;
}

.faq-item small {
  max-height: 0;
  overflow: hidden;
  color: rgba(231, 221, 204, 0.62);
  font-size: 0.95rem;
  line-height: 1.9;
  transition: max-height 260ms ease, margin 260ms ease, opacity 220ms ease;
  opacity: 0;
}

.faq-item.open small {
  margin-top: 12px;
  max-height: 180px;
  opacity: 1;
}

.faq-item.open {
  border-color: rgba(233, 222, 205, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(11, 13, 12, 0.56);
}

.faq-item.open::after {
  transform: rotate(0deg);
  opacity: 0;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 56px) 44px;
  border-top: 1px solid rgba(208, 179, 122, 0.14);
  background:
    radial-gradient(circle at 18% 10%, rgba(217, 221, 226, 0.05), transparent 24%),
    rgba(15, 17, 16, 0.96);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.8fr));
  gap: 18px;
}

.account-page,
.owner-page {
  min-height: 100vh;
  padding: 136px clamp(18px, 4vw, 40px) 56px;
}

.account-shell,
.owner-shell {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.account-panel-page,
.owner-panel-page {
  border: 1px solid rgba(208, 179, 122, 0.14);
  background:
    radial-gradient(circle at 16% 10%, rgba(217, 221, 226, 0.07), transparent 30%),
    rgba(9, 10, 10, 0.92);
  padding: clamp(22px, 3vw, 36px);
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(231, 221, 204, 0.72);
  font-size: 0.94rem;
}

.page-back-link:hover {
  color: var(--silver);
}

.account-page .account-login,
.account-page .account-dashboard {
  display: block;
}

.account-page .account-dashboard {
  margin-top: 20px;
}

.account-page .account-login.is-hidden,
.account-page .account-dashboard.is-hidden,
.owner-gate.is-hidden,
.owner-shell-content.is-hidden {
  display: none;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-block {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(208, 179, 122, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.footer-block strong {
  color: var(--silver);
  font-weight: 500;
  font-size: 1.12rem;
}

.footer-block p,
.footer-block span {
  margin: 0;
  color: rgba(231, 221, 204, 0.64);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(231, 221, 204, 0.78);
  transition: color 180ms ease, transform 180ms ease;
}

.inline-link {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.footer-links a:hover {
  color: var(--gold-soft);
  transform: translateX(-2px);
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 10%, rgba(226, 205, 170, 0.06), transparent 24%),
    linear-gradient(180deg, #161816 0%, #101210 52%, #171916 100%);
}

.legal-shell {
  padding: 124px clamp(20px, 5vw, 56px) 64px;
  max-width: 1220px;
  margin: 0 auto;
}

.legal-hero {
  max-width: 760px;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--gold-soft);
}

.legal-hero p:last-child {
  margin: 0;
  color: rgba(231, 221, 204, 0.74);
  max-width: 52ch;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(208, 179, 122, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(0, 0, 0, 0.14);
}

.legal-card h2 {
  margin: 0;
  color: var(--silver);
  font-weight: 500;
  font-size: 1.3rem;
}

.legal-card p {
  margin: 0;
  color: rgba(231, 221, 204, 0.72);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(54px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(24px);
    filter: blur(0);
  }
}

@keyframes titleRise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes softBreathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes drawerBloom {
  0% {
    filter: blur(10px);
  }
  100% {
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .preloader {
    display: none;
  }

  .motion-cursor {
    display: none;
  }

  .hero-image {
    transform: none;
  }
}

@media (pointer: coarse) {
  .motion-cursor {
    display: none;
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  background:
    linear-gradient(180deg, #3b3b35, #32332e),
    radial-gradient(circle at 84% 10%, rgba(185, 148, 85, 0.12), transparent 30%);
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(231, 221, 204, 0.72);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(208, 179, 122, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(231, 221, 204, 0.82) 50%) calc(100% - 18px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(231, 221, 204, 0.82) 50%, transparent 50%) calc(100% - 13px) calc(50% - 2px) / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.03);
  padding-left: 36px;
}

select option {
  background: #171917;
  color: #efe5d6;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.form-note {
  min-height: 28px;
  margin: 0;
  color: var(--gold-soft);
}

.product-dialog {
  width: min(520px, calc(100vw - 34px));
  border: 1px solid var(--line);
  background: rgba(70, 67, 59, 0.94);
  color: var(--text);
  padding: 36px;
  box-shadow: 0 30px 80px var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.product-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--serif), var(--sans);
  font-size: 2.4rem;
  font-weight: 400;
}

.product-dialog p:not(.eyebrow) {
  color: rgba(231, 221, 204, 0.68);
}

.dialog-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .mark {
    justify-self: start;
    font-size: 2.25rem;
  }

  .desktop-nav {
    display: none;
  }

  .mega-panel {
    display: none !important;
  }

  .studio-launcher {
    display: flex;
    right: 16px;
    left: 16px;
    bottom: 82px;
    justify-content: center;
  }

  .lab-drawer,
  .admin-drawer,
  .user-drawer {
    top: 76px;
    right: 12px;
    left: 12px;
    bottom: 136px;
    width: auto;
  }

  .lab-drawer {
    transform: translateY(28px) scale(0.985);
  }

  .lab-drawer.open {
    transform: translateY(0) scale(1);
  }

  .user-drawer {
    transform: translateY(28px) scale(0.985);
  }

  .user-drawer.open {
    transform: translateY(0) scale(1);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock-item,
  .dock-item:hover,
  .dock-item.active {
    width: 100%;
    transform: none;
    padding-inline: 0;
  }

  .dock-label {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(235, 223, 202, 0.08), rgba(86, 70, 52, 0.42)),
      linear-gradient(90deg, rgba(118, 100, 76, 0.04), rgba(74, 61, 46, 0.48));
  }

  .product-grid,
  .ornova-scroll-gallery,
  .skiper71-showcase,
  .skiper71-card,
  .upload-panel,
  .builder-panel,
  .request-panel,
  .account-grid,
  .custom,
  .lab-grid,
  .story,
  .contact {
    grid-template-columns: 1fr;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .builder-stage,
  .builder-controls,
  .builder-panel > .button,
  .builder-panel > .form-note {
    grid-column: 1;
  }

  .builder-stage {
    grid-row: auto;
    position: relative;
    top: auto;
  }

  .skiper71-rail {
    position: relative;
    top: auto;
    min-height: auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 0 18px;
    border-inline-start: 0;
    border-bottom: 1px solid rgba(208, 179, 122, 0.18);
  }

  .skiper71-rail strong {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .skiper71-rail i {
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-soft), transparent);
  }

  .skiper71-card,
  .skiper71-card:nth-child(2),
  .skiper71-card:nth-child(3) {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .skiper71-card figure {
    min-height: min(96vw, 520px);
  }

  .ornova-scroll-gallery {
    min-height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery-panel,
  .gallery-panel.active,
  .gallery-panel:hover {
    flex: 0 0 min(78vw, 360px);
    scroll-snap-align: center;
  }

  .category-grid,
  .builder-controls {
    grid-template-columns: 1fr;
  }

  .ritual-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ritual-list li:nth-child(2) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    padding-inline: 20px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .brand-orb {
    width: 58px;
    height: 58px;
  }

  .site-header .mark {
    margin-inline-end: 0;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 6.4rem);
    letter-spacing: 0.1em;
  }

  .hero-line {
    margin-top: 30px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-inline: 20px;
  }

  .ritual-list {
    grid-template-columns: 1fr;
  }

  .ritual-list li,
  .ritual-list li:nth-child(2) {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }

  .ritual-list li:last-child {
    border-bottom: 0;
  }

  .preview-caption {
    display: grid;
  }
}

.studio-launcher {
  display: none !important;
}

.custom.lab-drawer {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  width: auto;
  max-width: none;
  overflow: visible;
  transform: none !important;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  backdrop-filter: none;
}

.custom.lab-drawer .drawer-close {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
    grid-template-columns: auto 1fr auto;
    column-gap: 10px;
  }

  .brand-orb {
    width: 48px;
    height: 48px;
  }

  .site-header .mark,
  .mark {
    justify-self: center;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    letter-spacing: 0.12em;
    margin-inline-end: 0;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .mobile-nav {
    inset-inline: 0;
    top: 84px;
    padding: 12px 18px 18px;
  }

  .home-page .site-header {
    min-height: 84px;
    padding-block: 18px;
  }

  .hero {
    min-height: calc(86svh - 16px);
    padding: 44px 18px 92px;
    align-items: end;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: 0.08em;
  }

  .hero-line {
    margin-top: 18px;
    font-size: clamp(1.05rem, 6vw, 1.55rem);
    line-height: 1.7;
  }

  .hero-copy {
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 2;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .hero-signals {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-note {
    bottom: 84px;
  }

  .user-dock {
    display: none;
  }

  .studio-launcher {
    display: flex;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    justify-content: stretch;
    padding: 8px;
  }

  .studio-launcher a,
  .studio-launcher button {
    flex: 1 1 0;
  }

  .pieces,
  .custom,
  .story,
  .faq {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section h2,
  .custom h2,
  .story h2 {
    font-size: clamp(1.9rem, 10vw, 3.2rem);
    line-height: 1.45;
  }

  .book-gallery {
    display: flex;
    gap: 14px;
    min-height: auto;
    padding-inline: 2px;
    overflow-x: auto;
    scroll-padding-inline: 18px;
  }

  .gallery-carousel-shell {
    padding-inline: 0;
  }

  .gallery-carousel-control {
    display: none;
  }

  .perspective-gallery {
    display: flex;
    height: auto;
    overflow-x: auto;
    padding-inline: 2px;
    border: 1px solid rgba(208, 179, 122, 0.14);
    background:
      radial-gradient(circle at 18% 20%, rgba(217, 221, 226, 0.05), transparent 28%),
      rgba(255, 255, 255, 0.018);
  }

  .gallery-panel,
  .gallery-panel.active,
  .gallery-panel:hover,
  .book-gallery .gallery-panel:not(.active):not(:hover) {
    flex: 0 0 min(82vw, 330px);
    min-height: 340px;
    transform: none;
    scroll-snap-align: center;
  }

  .perspective-gallery .gallery-panel {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    opacity: 1;
    z-index: auto;
    pointer-events: auto;
    filter: none;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
    transform: none;
  }

  .perspective-gallery .gallery-panel:not(.is-visible) {
    opacity: 1;
  }

  .gallery-panel img {
    height: 340px;
    min-height: 340px;
  }

  .category-seo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel strong {
    max-width: 180px;
    white-space: normal;
    opacity: 1;
    transform: none;
  }

  .upload-panel.upload-only {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .upload-panel.upload-only .upload-box,
  .upload-panel.upload-only .upload-preview {
    min-height: 180px;
  }

  .upload-panel.upload-only .upload-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-order-grid {
    grid-template-columns: 1fr;
  }

  .custom-order-grid label:first-child,
  .custom-order-grid label:last-child {
    grid-column: auto;
  }

  .order-ritual {
    grid-template-columns: 1fr;
  }

  .upload-box {
    min-height: 168px;
  }

  .account-summary,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .account-summary article,
  .admin-summary article {
    min-height: 84px;
  }

  .admin-drawer,
  .user-drawer {
    padding: 18px;
  }

  .admin-tabs,
  .account-tabs {
    justify-content: stretch;
  }

  .admin-tabs button,
  .account-tabs button {
    flex: 1 1 calc(50% - 8px);
  }

  .piece-detail {
    padding: 96px 18px 56px;
  }

  .category-landing {
    padding: 96px 18px 56px;
  }

  .category-hero,
  .category-gallery-grid {
    grid-template-columns: 1fr;
  }

  .piece-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .piece-figure,
  .piece-figure img {
    min-height: 420px;
  }

  .piece-figure-meta {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  .piece-meta-grid,
  .piece-related-grid {
    grid-template-columns: 1fr;
  }

  .piece-frame-stack {
    grid-template-columns: 1fr;
  }

  .piece-frame-card.is-featured {
    grid-row: auto;
  }

  .piece-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4.3rem);
  }

  .piece-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .owner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-header .mark,
  .mark {
    font-size: 1.55rem;
    letter-spacing: 0.1em;
  }

  .brand-orb {
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 16vw, 4.2rem);
  }

  .gallery-panel,
  .gallery-panel.active,
  .gallery-panel:hover,
  .book-gallery .gallery-panel:not(.active):not(:hover) {
    flex-basis: min(86vw, 310px);
  }

  .gallery-panel img {
    height: 300px;
    min-height: 300px;
  }

  .footer-grid,
  .piece-related-grid,
  .piece-meta-grid {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    padding: 96px 18px 56px;
  }

  .legal-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4.3rem);
  }

  .upload-panel.upload-only .upload-preview {
    grid-template-columns: 1fr;
  }

  .login-choice {
    grid-template-columns: 1fr;
  }

  .account-page,
  .owner-page {
    padding: 108px 14px 44px;
  }
}
