:root {
  --ink: #171717;
  --muted: #68645f;
  --line: #d8d0c5;
  --paper: #fbfaf7;
  --soft: #f0ebe4;
  --aqua: #18b7b6;
  --deep-aqua: #087c83;
  --platinum: #d7dde0;
  --gold: #a56f27;
  --black: #050505;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(25, 23, 20, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 235, 228, 0.55)),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 208, 197, 0.75);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.brand-mark {
  width: 28px;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, transparent 42%, rgba(24, 183, 182, 0.42) 43% 57%, transparent 58%),
    var(--white);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #38342f;
  font-size: 0.9rem;
}

.nav-action,
.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
}

.nav-action {
  min-height: 38px;
  padding: 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(22px, 4vw, 58px) clamp(18px, 5vw, 76px) clamp(34px, 6vw, 74px);
}

.viewer-column,
.product-column {
  min-width: 0;
}

.viewer-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 208, 197, 0.96);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.98), rgba(231, 244, 243, 0.66) 46%, rgba(234, 228, 221, 0.88) 100%);
  box-shadow: var(--shadow);
}

.viewer-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.angle-readout,
.tool-cluster {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(216, 208, 197, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(28, 25, 22, 0.09);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.angle-readout {
  gap: 9px;
  padding: 0 14px;
  color: #2d2925;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(24, 183, 182, 0.16);
}

.tool-cluster {
  gap: 4px;
  padding: 4px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.thumb:hover,
.thumb:focus-visible {
  background: rgba(24, 183, 182, 0.12);
  outline: none;
}

.icon-button svg,
.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  min-height: 320px;
  isolation: isolate;
}

.canvas-stage::before {
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 183, 182, 0.17), transparent 68%);
  content: "";
}

[data-spin-canvas] {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

[data-spin-canvas]:active {
  cursor: grabbing;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--muted);
  background: rgba(251, 250, 247, 0.62);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-overlay.ready {
  visibility: hidden;
  opacity: 0;
}

.load-ring {
  width: 42px;
  aspect-ratio: 1;
  border: 2px solid rgba(8, 124, 131, 0.18);
  border-top-color: var(--deep-aqua);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.viewer-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px 18px;
}

[data-frame-slider] {
  width: 100%;
  accent-color: var(--deep-aqua);
}

.thumb-strip {
  display: inline-flex;
  gap: 8px;
}

.thumb {
  width: 48px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: var(--white);
  cursor: pointer;
}

.thumb.active {
  border-color: var(--deep-aqua);
  box-shadow: 0 0 0 3px rgba(24, 183, 182, 0.16);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-column {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--deep-aqua);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.1vw, 6.3rem);
  font-weight: 500;
  line-height: 0.92;
}

.product-copy {
  max-width: 58ch;
  margin: 28px 0 0;
  color: #4f4942;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 26px;
}

.price {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
}

.availability {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.swatch {
  width: 28px;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 50%;
}

.swatch-aqua {
  background: linear-gradient(135deg, #53eadf, #07838c);
}

.swatch-platinum {
  background: linear-gradient(135deg, #ffffff, var(--platinum));
}

.swatch-diamond {
  background: linear-gradient(135deg, #fff, #c8f3ff 42%, #f7f0cf 72%, #fff);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 4px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #24211e;
}

.secondary-action:hover,
.secondary-action:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  border-color: var(--deep-aqua);
  outline: none;
}

.trust-list {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
}

.trust-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trust-list dt {
  color: var(--ink);
  font-weight: 700;
}

.trust-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-band {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(216, 208, 197, 0.78);
  background: #f7f4ef;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

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

.detail-tile {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.detail-tile span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-tile h3 {
  margin: 34px 0 12px;
  font-size: 1.15rem;
}

.detail-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lead-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.lead-dialog::backdrop {
  background: rgba(5, 5, 5, 0.36);
  backdrop-filter: blur(5px);
}

.lead-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
}

.lead-form h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #3e3934;
  font-weight: 700;
}

.lead-form input,
.lead-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--deep-aqua);
  outline: 3px solid rgba(24, 183, 182, 0.16);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.form-state {
  min-height: 22px;
  margin: 0;
  color: var(--deep-aqua);
  font-weight: 700;
}

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

  h1 {
    max-width: 12ch;
  }

  .product-column {
    align-content: start;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav a {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .viewer-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .angle-readout {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 0.72rem;
  }

  .tool-cluster {
    min-height: 34px;
  }

  .icon-button {
    width: 31px;
  }

  .viewer-controls {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  .thumb-strip {
    justify-content: space-between;
  }

  .thumb {
    width: clamp(46px, 18vw, 64px);
  }

  .trust-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

@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;
  }
}
