:root {
  --graphite: #0a0a0d;
  --surface: #111116;
  --surface-2: #17171e;
  --chrome: #c0c0c4;
  --bone: #f2f0ec;
  --smoke: #1a1a22;
  --muted: #9b9ba5;
  --uv: #6a00ff;
  --uv-soft: #a56bff;
  --line: rgba(242, 240, 236, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background: var(--graphite);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}

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

button {
  color: inherit;
}

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

.button {
  border: 1px solid #8b38ff;
  background: linear-gradient(135deg, #4b00b6, var(--uv));
  color: #fff;
  padding: 15px 24px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(106, 0, 255, .18), inset 0 1px rgba(255, 255, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(106, 0, 255, .35), inset 0 1px rgba(255, 255, 255, .2);
}

.button span {
  margin-left: 16px;
}

.atlas-shell {
  border: 1px solid var(--line);
  background: #0e0e13;
}

.atlas-stage {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

.atlas-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding: clamp(36px, 5vw, 78px);
  background: linear-gradient(135deg, rgba(106, 0, 255, .08), transparent 46%);
}

.atlas-kicker {
  color: var(--uv-soft);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

.atlas-detail h3 {
  margin: 8px 0 22px;
  font: 500 clamp(58px, 7vw, 92px)/.9 var(--serif);
}

.atlas-detail dl {
  margin: 32px 0;
  border-top: 1px solid var(--line);
}

.atlas-detail dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.atlas-detail dt {
  color: var(--muted);
}

.atlas-detail dd {
  margin: 0;
}

.atlas-note {
  margin: 22px 0 0;
  color: #777781;
  font-size: 13px;
}

.atlas-shell-3d {
  overflow: hidden;
  background: #0b0b10;
}

.atlas-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
}

.atlas-category-switch,
.atlas-side-switch,
.atlas-body-switch,
.atlas-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-body-switch {
  padding-left: 4px;
  border-left: 1px solid var(--line);
}

.atlas-view-actions {
  align-items: center;
}

.atlas-control {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #101017;
  color: #aaa7b1;
  padding: 9px 15px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.atlas-control:hover,
.atlas-control.is-active,
.atlas-control[aria-pressed="true"],
.atlas-category[aria-selected="true"] {
  border-color: rgba(165, 107, 255, .72);
  background: rgba(106, 0, 255, .13);
  color: #fff;
}

.atlas-stage-3d {
  min-height: 0;
  height: 790px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  align-items: stretch;
}

.atlas-viewer-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #08080c;
}

.atlas-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 58% 46%, rgba(106, 0, 255, .13), transparent 31%),
    radial-gradient(circle at 38% 65%, rgba(255, 255, 255, .045), transparent 30%),
    linear-gradient(145deg, #111118, #07070a 72%);
  cursor: grab;
  touch-action: none;
}

.atlas-viewport:active {
  cursor: grabbing;
}

.atlas-viewport::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(64vw, 590px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(192, 192, 196, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .014), 0 0 0 140px rgba(255, 255, 255, .007);
  pointer-events: none;
}

#atlas-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.atlas-loading {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  background: #0b0b10;
  color: #c8c5ce;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  transition: opacity .35s ease, visibility .35s ease;
}

.atlas-loading span {
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 1px solid rgba(165, 107, 255, .25);
  border-top-color: var(--uv-soft);
  border-radius: 50%;
  animation: atlas-spin 1s linear infinite;
}

.atlas-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.atlas-loading.is-error {
  padding: 28px;
  color: var(--bone);
  text-align: center;
  line-height: 1.7;
}

.atlas-loading.is-error span {
  display: none;
}

.atlas-loading.is-error strong {
  color: #fff;
  font-size: 14px;
}

@keyframes atlas-spin {
  to {
    transform: rotate(1turn);
  }
}

.atlas-drag-hint {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 18px;
  color: #777681;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  pointer-events: none;
}

.atlas-viewer-status {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -8px);
  padding: 9px 14px;
  border: 1px solid rgba(165, 107, 255, .42);
  background: rgba(9, 9, 13, .82);
  backdrop-filter: blur(10px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.atlas-viewer-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.atlas-corner {
  position: absolute;
  z-index: 3;
  width: 70px;
  height: 70px;
  pointer-events: none;
}

.atlas-corner-one {
  top: 18px;
  left: 18px;
  border-top: 1px solid rgba(165, 107, 255, .4);
  border-left: 1px solid rgba(165, 107, 255, .4);
}

.atlas-corner-two {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid rgba(165, 107, 255, .4);
  border-bottom: 1px solid rgba(165, 107, 255, .4);
}

.atlas-placement-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  border-top: 1px solid var(--line);
  background: #0d0d12;
}

.placement-chip {
  min-height: 62px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #97949e;
  padding: 10px 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.placement-chip:last-child {
  border-right: 0;
}

.placement-chip:hover {
  background: rgba(255, 255, 255, .025);
  color: #fff;
}

.placement-chip.is-active {
  background: linear-gradient(180deg, rgba(106, 0, 255, .2), rgba(106, 0, 255, .04));
  color: #fff;
  box-shadow: inset 0 -2px var(--uv);
}

.atlas-detail-3d {
  min-width: 0;
  height: 100%;
  justify-content: stretch;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding: 0;
  background: linear-gradient(145deg, rgba(106, 0, 255, .08), transparent 36%), #0f0f14;
}

.atlas-detail-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-color: rgba(165, 107, 255, .45) transparent;
  padding: clamp(34px, 4.2vw, 64px);
}

.atlas-detail-3d h3 {
  margin-bottom: 18px;
  font-size: clamp(58px, 5.7vw, 88px);
}

.atlas-detail-3d .atlas-kicker {
  margin-top: 0;
}

.atlas-detail-3d .atlas-kicker + h3 + p {
  min-height: 94px;
  margin-bottom: 22px;
  color: #d3cfd8;
  font: 500 22px/1.3 var(--serif);
}

.atlas-hardware-picker {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.atlas-hardware-picker span {
  color: #777681;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
}

.atlas-hardware-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 9, .76);
  color: var(--bone);
  padding: 8px 11px;
}

.atlas-hardware-picker select:focus {
  outline: 1px solid var(--uv-soft);
  outline-offset: 1px;
}

.atlas-jewelry-preview {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}

.atlas-jewelry-preview small {
  display: block;
  color: #777681;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
}

.atlas-jewelry-preview strong {
  display: block;
  margin-top: 3px;
  font: 500 24px/1 var(--serif);
}

.jewelry-preview-orbit {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(192, 192, 196, .5);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(106, 0, 255, .15);
}

.jewelry-preview-orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--chrome);
  border-radius: 50%;
}

.jewelry-preview-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 3px;
  right: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--uv-soft);
}

.atlas-detail-3d dl {
  margin: 25px 0;
}

.atlas-detail-3d dl div {
  grid-template-columns: 124px 1fr;
  gap: 18px;
  padding: 13px 0;
}

.atlas-detail-3d dt {
  font-size: 14px;
}

.atlas-detail-3d dd {
  color: #d4d1d9;
  font-size: 16px;
}

.atlas-metal-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  border: 0;
  padding: 0;
}

.atlas-metal-picker legend {
  width: 100%;
  margin-bottom: 8px;
  color: #777681;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
}

.metal-option {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: #aaa7b0;
  padding: 7px 11px;
  font-size: 13px;
  cursor: pointer;
}

.metal-option.is-active {
  border-color: rgba(165, 107, 255, .62);
  background: rgba(106, 0, 255, .1);
  color: #fff;
}

.metal-swatch {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
}

.metal-swatch.chrome {
  background: linear-gradient(135deg, #6b6c72, #fff 48%, #777881);
}

.metal-swatch.gold {
  background: linear-gradient(135deg, #70521f, #f1cf75 48%, #8a621e);
}

.metal-swatch.black {
  background: linear-gradient(135deg, #050506, #3d3d43 48%, #111114);
}

.atlas-detail-3d .button {
  width: 100%;
}

.atlas-detail-3d .atlas-note {
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .atlas-stage-3d {
    height: auto;
    grid-template-columns: 1fr;
  }

  .atlas-viewer-column {
    grid-template-rows: 650px auto;
  }

  .atlas-detail-3d {
    height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .atlas-detail-scroll {
    overflow: visible;
  }

  /* Customer Atlas flyout keeps its own scroll on tablet/phone */
  .atlas-customer-page.atlas-immersive .atlas-flyout-detail .atlas-detail-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 980px) {
  .atlas-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .atlas-category-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .atlas-view-actions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
  }

  .atlas-side-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .atlas-control {
    width: 100%;
  }

  .atlas-viewer-column {
    grid-template-rows: 520px auto;
  }

  .atlas-detail-scroll {
    padding: 38px 24px;
  }

  .atlas-detail-3d .atlas-kicker + h3 + p {
    min-height: 0;
  }

  .atlas-detail-3d dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .atlas-drag-hint {
    left: 14px;
    bottom: 12px;
    font-size: 9px;
  }
}

@media (max-width: 620px) {
  .atlas-category-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-view-actions {
    grid-template-columns: 1fr 1fr;
  }

  .atlas-side-switch {
    grid-column: 1 / -1;
  }

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

@media (max-width: 430px) {
  .atlas-viewer-column {
    grid-template-rows: 460px auto;
  }
}
