:root {
  --ink: #080806;
  --ink-2: #171613;
  --graphite: #25231f;
  --ivory: #f4ead9;
  --muted: #c8b98f;
  --gold: #c59b4a;
  --gold-2: #e7c16f;
  --silver: #d9dde2;
  --ruby: #8e1f32;
  --emerald: #1f6d55;
  --sapphire: #234f86;
  --line: rgba(231, 193, 111, 0.26);
  --panel: rgba(24, 23, 20, 0.86);
  --panel-solid: #171613;
  --shadow: 0 30px 96px rgba(0, 0, 0, 0.54);
  color-scheme: dark;
  font-family: "Didot", "Bodoni 72", "Times New Roman", "Noto Serif TC", serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-2) #11100e;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #11100e;
  border-left: 1px solid rgba(231, 193, 111, 0.2);
}

::-webkit-scrollbar-thumb {
  min-height: 72px;
  background: linear-gradient(180deg, #f0d085, var(--gold));
  border: 4px solid #11100e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f6dfa0, #d8aa55);
}

.page-scrollbar {
  position: fixed;
  top: 88px;
  right: 8px;
  bottom: 18px;
  z-index: 40;
  width: 14px;
  padding: 4px 0;
  border: 1px solid rgba(231, 193, 111, 0.32);
  background: rgba(8, 8, 6, 0.72);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.page-scrollbar[hidden] {
  display: none;
}

.page-scrollbar span {
  position: absolute;
  top: 4px;
  left: 50%;
  display: block;
  width: 6px;
  min-height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d085, var(--gold));
  box-shadow: 0 0 18px rgba(231, 193, 111, 0.34);
  cursor: grab;
  transform: translateX(-50%);
  will-change: transform, height;
}

.page-scrollbar.is-dragging span {
  cursor: grabbing;
}

body {
  margin: 0;
  background: #11100e;
  color: var(--ivory);
  font-family: "Inter", "Avenir Next", "Noto Sans TC", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 28%, rgba(231, 193, 111, 0.045) 54%, transparent 78%),
    linear-gradient(180deg, #1b1a17 0%, #0a0a08 48%, #171613 100%);
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  min-height: 44px;
}

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

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

.skip-link:focus {
  position: fixed;
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  top: 12px;
  left: 12px;
  color: var(--ink);
  background: var(--gold-2);
  border-radius: 6px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  padding: 12px 34px;
  background: rgba(18, 17, 15, 0.82);
  border-bottom: 1px solid rgba(231, 193, 111, 0.32);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 17, 15, 0.95);
  border-color: rgba(231, 193, 111, 0.48);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(231, 193, 111, 0.86);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: "Times New Roman", serif;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(231, 193, 111, 0.16), 0 0 28px rgba(197, 155, 74, 0.16);
}

.brand strong {
  display: block;
  font-family: "Times New Roman", serif;
  color: var(--gold-2);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.main-nav a {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: rgba(231, 193, 111, 0.82);
  border-radius: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: 13px;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-2);
  background: rgba(215, 181, 109, 0.1);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.select-wrap {
  position: relative;
  display: inline-flex;
}

.select-wrap select,
.cart-pill {
  height: 44px;
  color: var(--ivory);
  background: rgba(10, 10, 8, 0.62);
  border: 1px solid var(--line);
  border-radius: 0;
}

.select-wrap select {
  max-width: 164px;
  padding: 0 32px 0 12px;
}

.select-wrap.compact select {
  max-width: 94px;
}

.cart-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.cart-pill strong {
  color: var(--gold-2);
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 82svh;
  padding: 142px 46px 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: brightness(1.42) contrast(1.08) saturate(1.12) sepia(0.06);
  transform: scale(1.02);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(circle at 43% 46%, rgba(244, 210, 154, 0.2) 0%, rgba(244, 210, 154, 0.08) 19%, transparent 38%),
    radial-gradient(circle at 66% 46%, rgba(231, 193, 111, 0.18) 0%, rgba(231, 193, 111, 0.06) 24%, transparent 42%),
    linear-gradient(90deg, rgba(7, 7, 6, 0.74) 0%, rgba(12, 11, 9, 0.32) 33%, rgba(12, 11, 9, 0.04) 72%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.03), rgba(10, 10, 8, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-weight: 500;
  line-height: 1.04;
}

h1 {
  max-width: 720px;
  color: var(--gold-2);
  font-size: 66px;
  text-transform: uppercase;
}

h2 {
  color: var(--gold-2);
  font-size: 42px;
  text-transform: uppercase;
}

h3 {
  color: var(--gold-2);
  font-size: 24px;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(247, 240, 230, 0.78);
  font-size: 18px;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #15100a;
  border-color: var(--gold);
  background: linear-gradient(135deg, #f0d085, var(--gold));
}

.button.ghost {
  color: var(--gold-2);
  background: rgba(8, 8, 6, 0.42);
}

.button.wide {
  width: 100%;
}

.hero-proof {
  align-items: stretch;
}

.hero-proof span {
  display: grid;
  gap: 4px;
  min-width: 118px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 7, 0.54);
}

.hero-proof strong {
  color: var(--ivory);
  font-family: "Times New Roman", serif;
  font-size: 22px;
}

.hero-proof small {
  color: var(--muted);
}

section {
  padding: 88px 46px;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-heading {
  width: min(880px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-band {
  background:
    linear-gradient(180deg, #1f1e1b 0%, #11100e 100%),
    url("assets/luciano-milano-starry-atelier.png") center / cover fixed;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.editorial-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.editorial-panel img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: #101010;
}

.editorial-panel div {
  padding: 22px;
}

.editorial-panel p,
.derivative p,
.print-addon p,
.checkout-card p {
  color: var(--muted);
}

.builder-section {
  background:
    linear-gradient(180deg, rgba(25, 24, 21, 0.98), rgba(8, 8, 6, 0.98)),
    url("assets/luciano-milano-starry-atelier.png") center top / cover fixed;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: min(980px, 100%);
  margin: 0 auto;
}

.sky-stage {
  position: static;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.sky-frame {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #05060a;
  box-shadow:
    0 0 0 1px rgba(231, 193, 111, 0.54),
    inset 0 0 0 10px rgba(231, 193, 111, 0.04),
    0 0 64px rgba(231, 193, 111, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.sky-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sky-frame canvas:active {
  cursor: grabbing;
}

.sky-ring {
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 240, 230, 0.28);
  border-radius: 50%;
}

.icon-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.78);
  cursor: pointer;
}

.icon-action:hover {
  color: var(--gold-2);
}

.sky-caption,
.micro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sky-caption > div,
.micro-grid > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(12, 11, 9, 0.62);
}

.micro-grid > span[hidden] {
  display: none;
}

.sky-caption small,
.micro-grid small {
  color: var(--muted);
  font-size: 12px;
}

.sky-caption strong,
.micro-grid strong {
  overflow-wrap: anywhere;
}

.multi-sky-gallery {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(231, 193, 111, 0.18);
  background: rgba(8, 8, 6, 0.44);
}

.multi-sky-gallery[hidden] {
  display: none;
}

.multi-sky-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-2);
  font-family: "Times New Roman", serif;
  letter-spacing: 0;
}

.multi-sky-heading span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: #15100a;
  background: var(--gold-2);
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.multi-sky-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.multi-sky-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(231, 193, 111, 0.22);
  background: linear-gradient(180deg, rgba(18, 17, 14, 0.86), rgba(6, 6, 5, 0.72));
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.multi-sky-card:hover,
.multi-sky-card.is-active {
  border-color: rgba(231, 193, 111, 0.82);
  box-shadow: 0 0 0 1px rgba(231, 193, 111, 0.2), 0 18px 46px rgba(0, 0, 0, 0.35);
}

.multi-sky-card.is-active {
  transform: translateY(-2px);
}

.multi-sky-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.multi-sky-card canvas {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #05060a;
  box-shadow:
    0 0 0 1px rgba(231, 193, 111, 0.5),
    0 18px 34px rgba(0, 0, 0, 0.36);
}

.multi-sky-caption {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(247, 240, 230, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.multi-sky-caption strong {
  color: var(--ivory);
  font-family: "Times New Roman", serif;
  font-size: 16px;
}

.multi-sky-caption span {
  overflow-wrap: anywhere;
}

.birthstone-field select {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  border-color: rgba(231, 193, 111, 0.34);
  background: rgba(7, 7, 5, 0.72);
}

.birthstone-field strong {
  color: rgba(247, 240, 230, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.birthstone-basis {
  display: grid;
  gap: 6px;
  margin: -2px 0 0;
  padding: 12px 14px;
  color: rgba(247, 240, 230, 0.72);
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid rgba(231, 193, 111, 0.18);
  background: rgba(12, 11, 9, 0.46);
}

.birthstone-basis strong {
  color: var(--gold-2);
  font-family: "Times New Roman", serif;
  font-size: 14px;
}

.basis-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.basis-links a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 193, 111, 0.38);
}

.basis-links a:hover {
  color: var(--ivory);
}

.sky-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(12, 11, 9, 0.66);
}

.sky-controls label,
.grid-mode-control {
  gap: 6px;
}

.sky-controls span,
.grid-mode-control > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sky-controls input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.grid-mode-control {
  display: grid;
  grid-column: span 2;
  min-width: 0;
}

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

.grid-mode-toggle button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 6, 0.52);
  cursor: pointer;
}

.grid-mode-toggle button.is-selected {
  color: #15100a;
  border-color: var(--gold);
  background: var(--gold-2);
}

.compact-button {
  min-height: 48px;
  padding-inline: 12px;
  font-size: 13px;
}

.center-button {
  color: #15100a;
  border-color: rgba(231, 193, 111, 0.72);
  background: linear-gradient(135deg, rgba(240, 208, 133, 0.92), rgba(184, 133, 49, 0.82));
}

.atelier-panel,
.checkout-card,
.summary-panel,
.print-addon {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.atelier-panel {
  padding: 24px;
}

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

.companion-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 6, 0.44);
}

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

.family-members-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(231, 193, 111, 0.18);
  background: rgba(8, 8, 6, 0.36);
}

.family-members-panel[hidden] {
  display: none;
}

.family-members-title,
.family-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.family-members-title strong,
.family-member-head strong {
  color: var(--gold-2);
  font-family: "Times New Roman", serif;
}

.family-member-list {
  display: grid;
  gap: 12px;
}

.family-member-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(231, 193, 111, 0.2);
  background: rgba(5, 5, 4, 0.42);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.location-field {
  position: relative;
  z-index: 12;
  display: grid;
  gap: 8px;
}

label span,
legend {
  color: rgba(244, 234, 217, 0.86);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  color: var(--ivory);
  background: rgba(6, 6, 5, 0.56);
  border: 1px solid rgba(231, 193, 111, 0.25);
  border-radius: 0;
  outline: none;
}

input {
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 181, 109, 0.16);
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  max-height: 270px;
  padding: 8px;
  overflow: auto;
  background: rgba(9, 9, 7, 0.96);
  border: 1px solid rgba(231, 193, 111, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.city-suggestions[hidden] {
  display: none;
}

.city-suggestion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--ivory);
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  cursor: pointer;
}

.city-suggestion:hover,
.city-suggestion.is-active {
  color: #15100a;
  background: var(--gold-2);
  border-color: var(--gold);
}

.city-suggestion strong,
.city-suggestion small {
  display: block;
}

.city-suggestion small {
  color: rgba(244, 234, 217, 0.62);
  font-size: 11px;
}

.city-suggestion:hover small,
.city-suggestion.is-active small {
  color: rgba(21, 16, 10, 0.68);
}

.city-suggestion .city-coordinates {
  font-size: 11px;
  color: rgba(231, 193, 111, 0.78);
  white-space: nowrap;
}

.city-suggestion:hover .city-coordinates,
.city-suggestion.is-active .city-coordinates {
  color: rgba(21, 16, 10, 0.72);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

.micro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.micro-grid.is-lunar-hidden {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.segmented button {
  min-height: 48px;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 6, 0.5);
  cursor: pointer;
}

.segmented button.is-selected {
  color: #15100a;
  border-color: var(--gold);
  background: var(--gold-2);
}

.collection-section {
  background: #12110f;
}

.product-grid,
.gemstone-grid,
.derivative-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.gem-card,
.derivative {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(33, 31, 27, 0.86), rgba(14, 13, 11, 0.9));
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-card::before,
.gem-card::before {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  content: "";
  background: var(--accent, var(--gold));
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent, var(--gold)) 48%, transparent);
}

.product-card:hover,
.gem-card:hover,
.product-card.is-selected,
.gem-card.is-selected,
.derivative:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 181, 109, 0.68);
  background: linear-gradient(180deg, rgba(197, 155, 74, 0.2), rgba(18, 17, 15, 0.94));
}

.product-card p,
.gem-card p {
  margin: 0;
  color: var(--muted);
}

.product-card strong,
.gem-card strong {
  color: var(--gold-2);
}

.gem-section {
  background:
    linear-gradient(180deg, #181713, #080806),
    linear-gradient(110deg, rgba(142, 31, 50, 0.14), transparent 34%);
}

.gemstone-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gem-card {
  min-height: 190px;
}

.addons-section {
  background: linear-gradient(180deg, #080806, #171613);
}

.addon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.print-addon {
  display: grid;
  gap: 22px;
  padding: 24px;
  min-height: 320px;
  background:
    linear-gradient(rgba(8, 8, 6, 0.7), rgba(8, 8, 6, 0.82)),
    url("assets/night-sky-search-reference.png") center / cover;
}

.toggle-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.derivative-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.derivative span {
  color: var(--gold-2);
  font-family: "Times New Roman", serif;
  font-size: 34px;
}

.checkout-section {
  background: #12110f;
}

.order-sky-switcher {
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(231, 193, 111, 0.22);
  background: rgba(8, 8, 6, 0.52);
}

.order-sky-switcher[hidden] {
  display: none;
}

.order-sky-switcher-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: var(--gold-2);
}

.order-sky-switcher-head strong {
  font-family: "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
}

.order-sky-switcher-head span {
  color: rgba(247, 240, 230, 0.66);
  font-size: 12px;
}

.order-sky-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.order-sky-option {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  color: var(--ivory);
  text-align: left;
  border: 1px solid rgba(231, 193, 111, 0.22);
  background: rgba(6, 6, 5, 0.62);
  cursor: pointer;
}

.order-sky-option:hover,
.order-sky-option.is-active {
  color: #15100a;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.order-sky-option span,
.order-sky-option small {
  color: inherit;
  opacity: 0.78;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}

.checkout-card,
.summary-panel {
  padding: 22px;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 8, 6, 0.48);
  cursor: pointer;
}

.option-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.option-item span {
  color: var(--muted);
  font-size: 12px;
}

.summary-panel {
  position: static;
}

.summary-panel dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.summary-panel dl > div,
.total-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-panel dt {
  color: var(--muted);
}

.summary-panel dd {
  margin: 0;
  text-align: end;
}

.total-row {
  align-items: baseline;
  border-bottom: 0;
  margin-bottom: 20px;
}

.total-row strong {
  color: var(--gold-2);
  font-size: 26px;
}

.concierge-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, #181713, #080806);
}

.concierge-copy {
  max-width: 760px;
}

.service-strip {
  display: grid;
  gap: 12px;
}

.service-strip span {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: rgba(247, 240, 230, 0.8);
  background: rgba(8, 8, 6, 0.46);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #12110f;
}

.site-footer strong {
  color: var(--ivory);
  font-family: "Times New Roman", serif;
  font-size: 22px;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer small {
  display: block;
  margin-top: 8px;
  color: rgba(247, 240, 230, 0.45);
  font-size: 12px;
}

.site-footer a {
  color: var(--gold-2);
}

.order-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #14130f;
  box-shadow: var(--shadow);
}

.order-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  min-height: 42px;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.62) 35%, rgba(8, 8, 10, 0.2) 72%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.1), rgba(8, 8, 10, 0.82));
}

[dir="rtl"] .summary-panel dd {
  text-align: start;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-10px);
  }
}

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

  .main-nav {
    display: none;
  }

  .builder-layout,
  .checkout-grid,
  .addon-layout,
  .concierge-section {
    grid-template-columns: 1fr;
  }

  .sky-stage,
  .summary-panel {
    position: static;
  }

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

  .sky-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-mode-control {
    grid-column: span 3;
  }

  .gemstone-grid,
  .derivative-grid,
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-scrollbar {
    top: 76px;
    right: 4px;
    bottom: 12px;
    width: 12px;
  }

  .page-scrollbar span {
    width: 5px;
    min-height: 54px;
  }

  .site-header {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand small,
  .cart-pill span,
  .select-wrap.compact {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 17px;
  }

  .select-wrap select {
    max-width: 126px;
  }

  .hero {
    min-height: 88svh;
    padding: 116px 18px 42px;
  }

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

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-copy {
    font-size: 16px;
  }

  section {
    padding: 64px 18px;
  }

  .builder-layout {
    gap: 20px;
  }

  .sky-caption,
  .sky-controls,
  .field-grid,
  .micro-grid,
  .segmented,
  .product-grid,
  .gemstone-grid,
  .derivative-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-panel img {
    height: 240px;
  }

  .sky-frame {
    width: 100%;
  }

  .hero-proof span {
    flex: 1 1 120px;
  }

  .grid-mode-control {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
    padding: 28px 18px;
  }
}

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