/*light on black only: black is see-through on the lens. Glow comes from thin lines and text-shadow, never from large
fills. Nothing moves with transform (it shimmers on the waveguide); only opacity changes.*/
:root {
  --gold: #E8C987;
  --gold-glow: rgba(232, 201, 135, 0.36);
  --white: #F5F6FA;
  --mist: #B7B0A4;
  --dim: rgba(183, 176, 164, 0.45);
  --line: rgba(232, 201, 135, 0.34);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000000;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
}

#app { position: relative; width: 600px; height: 600px; }
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; }
.screen { position: absolute; inset: 0; }
img { display: block; transition: opacity 0.35s ease; }
img.fading { opacity: 0; }

.top { position: absolute; top: 22px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: baseline; z-index: 2; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.34em; color: var(--gold); }
.side { font-size: 16px; color: var(--mist); font-variant-numeric: tabular-nums; }

.bottom { position: absolute; bottom: 20px; left: 26px; right: 26px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; color: var(--mist); z-index: 2; }
.arrow { width: 22px; font-family: var(--serif); font-size: 34px; line-height: 0.6; color: var(--gold); text-align: center; }
.note { flex: 1; text-align: center; color: var(--gold); }
.note.hint { color: var(--mist); }

/*shared type*/
.kicker { font-size: 14px; letter-spacing: 0.16em; color: var(--mist); }
.piece-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 38px; line-height: 1.05; color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }
.price { font-size: 20px; color: var(--white); font-variant-numeric: tabular-nums; margin-top: 8px; }
.price.gold { color: var(--gold); }
.title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 38px; line-height: 1; color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }

/*lock*/
.lock { display: flex; flex-direction: column; align-items: center; padding-top: 146px; text-align: center; }
.eyebrow { font-size: 15px; letter-spacing: 0.2em; color: var(--mist); }
.lock-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 42px; color: var(--gold); margin-top: 10px; text-shadow: 0 0 24px var(--gold-glow); }
.digits { display: flex; gap: 28px; margin-top: 46px; }
.digits span { width: 66px; padding-bottom: 6px; font-weight: 300; font-size: 66px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--dim); border-bottom: 1.5px solid var(--dim); }
.digits span.on { color: var(--white); border-bottom-color: var(--gold); text-shadow: 0 0 22px rgba(245, 246, 250, 0.35); }

/*arrival*/
.arrival { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 118px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 58px; line-height: 1; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--gold); text-shadow: 0 0 32px var(--gold-glow); }
.since { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; color: var(--mist); margin-top: 12px; }
.rule { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--gold); }
.rule span { width: 96px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.rule span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.welcome { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 36px; margin-top: 28px; color: var(--white); }
.count-line { font-size: 17px; color: var(--mist); margin-top: 8px; }
.collections { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; color: var(--gold); margin-top: 12px; }
.disclaimer { position: absolute; bottom: 60px; left: 60px; right: 60px; font-size: 14px; line-height: 1.45; color: rgba(183, 176, 164, 0.68); }

/*collection: one piece large, its neighbours dim at the edges*/
.hero { position: absolute; left: 160px; top: 56px; width: 280px; height: 280px; }
.hero img, .big img { width: 100%; height: 100%; }
.neighbour { position: absolute; top: 120px; width: 150px; height: 150px; opacity: 0.24; }
.neighbour.left { left: -46px; }
.neighbour.right { right: -46px; }
.neighbour.fading { opacity: 0; }
.caption { position: absolute; top: 352px; left: 40px; right: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.caption .piece-title { margin-top: 8px; }
.caption.low { top: 452px; }
.caption.low .piece-title { font-size: 32px; }
.dots { display: flex; gap: 9px; margin-top: 16px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }

/*piece: the photo waits under the 3D view and fades out once the model is in*/
.big { position: absolute; left: 115px; top: 58px; width: 370px; height: 370px; }
.big.faded img, .big.faded .glints { opacity: 0; }

/*diamond glints: a star that blinks now and then, opacity only*/
.glints { position: absolute; inset: 0; transition: opacity 0.35s ease; }
.glint { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: #FFFFFF; opacity: 0; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85)); animation: glint 5.4s ease-in-out infinite; }
.glint:nth-child(2) { animation-delay: 1.8s; }
.glint:nth-child(3) { animation-delay: 3.6s; }
@keyframes glint { 0%, 76%, 100% { opacity: 0; } 83% { opacity: 1; } 90% { opacity: 0.12; } }
@media (prefers-reduced-motion: reduce) { .glint { animation: none; } }

/*sheets: details, buying, your pieces*/
.sheet { padding: 66px 52px 0; }
.sheet .piece-title { margin-top: 8px; }
.subtitle { font-size: 18px; color: var(--white); margin-top: 8px; }
.materials { list-style: none; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.materials li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: var(--mist); }
.materials li::before { content: '\25C6'; font-size: 9px; color: var(--gold); }
.story { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.32; color: var(--white); margin-top: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#details .price { margin-top: 14px; font-size: 22px; }

.buy-head { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.buy-head img { width: 96px; height: 96px; flex: none; }
.b-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 31px; line-height: 1.05; color: var(--gold); text-shadow: 0 0 22px var(--gold-glow); }
/*options: each choice is a large value between quiet chevrons; the row being changed is gold*/
.rows { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 26px; }
.rows li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; letter-spacing: 0.16em; color: var(--mist); opacity: 0.5; }
.rows li span:last-child { max-width: 496px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: 0; color: var(--white); }
.rows li.chosen { opacity: 1; }
.rows li.chosen span:last-child { color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }
.rows li.chosen span:last-child::before { content: '\2039\00a0\00a0\00a0'; color: var(--mist); }
.rows li.chosen span:last-child::after { content: '\00a0\00a0\00a0\203A'; color: var(--mist); }
.summary { list-style: none; margin-top: 18px; }
.summary li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; font-size: 18px; color: var(--mist); }
.summary li span:last-child { color: var(--white); text-align: right; }
.summary li.total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; }
.summary li.total span:last-child { color: var(--gold); font-size: 26px; font-weight: 600; text-shadow: 0 0 20px var(--gold-glow); }

.placing, .done { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 30px; }
.ring-track { fill: none; stroke: var(--dim); stroke-width: 1.5; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(232, 201, 135, 0.6)); }
.ring-count { fill: var(--white); font-family: var(--sans); font-weight: 300; font-size: 42px; }
.placing-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 30px; color: var(--gold); margin-top: 18px; }
.done { margin-top: 26px; color: var(--gold); }
.done svg { filter: drop-shadow(0 0 10px var(--gold-glow)); }
.done-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 42px; color: var(--gold); margin-top: 12px; text-shadow: 0 0 24px var(--gold-glow); }
.order-id { font-size: 20px; letter-spacing: 0.08em; color: var(--white); font-variant-numeric: tabular-nums; margin-top: 8px; }
.done-line { font-size: 17px; color: var(--mist); margin-top: 8px; }
.demo-line { font-size: 14px; color: var(--dim); margin-top: 14px; }

.order-list { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.order-list li { display: grid; grid-template-columns: 64px 1fr auto; column-gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(232, 201, 135, 0.14); }
.order-list img { width: 64px; height: 64px; opacity: 0.55; }
.order-list li.on img { opacity: 1; }
.o-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 23px; line-height: 1.1; color: var(--white); }
.o-sub { font-size: 15px; color: var(--mist); margin-top: 3px; }
.o-price { font-size: 18px; color: var(--white); text-align: right; font-variant-numeric: tabular-nums; }
.o-id { font-size: 13px; letter-spacing: 0.06em; color: var(--mist); text-align: right; margin-top: 4px; }
.order-list li.on .o-title { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
