/* Prestige Marble & Tile v2 — luxury layer: gold dust, foil, glare, spotlight edges,
   ripples, marquee, stars, drawn lines, intro monogram. Gated by html.fx like fx.css. */

/* ---------- gold dust floating in the backlight ---------- */
#dust { position: fixed; left: 0; top: 0; width: 100%; height: var(--vh); z-index: 0; pointer-events: none; }

/* ---------- intro: monogram draws itself above the line of light ---------- */
.lamp-mark { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -104px 0 0 -35px; overflow: visible; }
.lamp-mark rect { fill: none; stroke: #ffd49a; stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .05s var(--ease) forwards; }
.lamp-mark text { fill: #ffd49a; opacity: 0; animation: fadeIn .7s .65s forwards; }
.lamp-word { position: absolute; left: 0; right: 0; top: 50%; margin-top: 26px; text-align: center; font: 400 1.05rem/1 var(--display); color: #e9d2ad; letter-spacing: .32em; opacity: 0; animation: settle 1.1s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes settle { to { opacity: 1; letter-spacing: .14em; } }

/* ---------- gold-foil light passing across headings, once ---------- */
.split.foil .ln > span {
  color: transparent; text-shadow: none;
  background: linear-gradient(100deg, var(--trav) 0 38%, #fff2d9 45%, #f2bd78 50%, #fff2d9 55%, var(--trav) 62% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: foil 1.9s cubic-bezier(.45, .1, .2, 1) forwards;
}
.split.foil .ln:nth-child(2) > span { animation-delay: .12s; }
.split.foil .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes foil { to { background-position: 0 0; } }

/* ---------- polished glare on photos (mouse only) ---------- */
.glare { position: absolute; left: 0; top: 0; z-index: 2; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 244, 226, .34), rgba(255, 224, 180, .12) 32%, rgba(255, 220, 170, 0) 64%);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.glaring > .glare { opacity: 1; visibility: visible; transition-delay: 0s; will-change: transform; }
.w-open.tilt { transition: transform .7s var(--ease); }
.w-open.tilt.glaring { will-change: transform; }
.w-open.tilt.glaring { transition: transform .18s ease-out; }
.w-open.tilt.glaring { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(227, 165, 92, .25); }

/* ---------- edges that catch the cursor light ---------- */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 218, 168, .95), rgba(227, 165, 92, .28) 42%, rgba(227, 165, 92, 0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s; }
.spot:hover::after, .spot:focus-within::after { opacity: 1; }
.quote.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 165, 92, .08), transparent 70%); }
.quote.spot:hover::before { opacity: 1; }

/* ---------- light ripple on press (mouse and touch) ---------- */
.rev-btn, .nav-call, .pick span { position: relative; overflow: hidden; }
.rpl { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: radial-gradient(circle, rgba(255, 238, 205, .6), rgba(255, 214, 160, .18) 45%, rgba(255, 210, 150, 0) 70%); }

/* ---------- stone-name marquee ---------- */
.mq { position: relative; z-index: 1; overflow: hidden; padding: clamp(22px, 3.4vw, 40px) 0; border-block: 1px solid var(--line); background: rgba(16, 11, 8, .55); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 48px); padding-right: clamp(24px, 3.4vw, 48px); }
.mq-set span { font: 400 clamp(2.2rem, 5.6vw, 5.2rem)/1 var(--display); white-space: nowrap; color: var(--trav); }
.mq-set span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(227, 165, 92, .85); }
.mq-set i { flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--honey); box-shadow: 0 0 16px rgba(227, 165, 92, .8); }

/* ---------- five stars draw in gold ---------- */
.stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.stars svg { width: 26px; height: 26px; overflow: visible; }
.stars path { fill: var(--honey); stroke: var(--honey); stroke-width: 1; stroke-linejoin: round; }
.fx .stars path { fill: rgba(227, 165, 92, 0); stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx .stars.in path { animation: draw 1s var(--ease) forwards, starFill .6s .8s forwards; }
.fx .stars.in svg:nth-child(2) path { animation-delay: .1s, .9s; }
.fx .stars.in svg:nth-child(3) path { animation-delay: .2s, 1s; }
.fx .stars.in svg:nth-child(4) path { animation-delay: .3s, 1.1s; }
.fx .stars.in svg:nth-child(5) path { animation-delay: .4s, 1.2s; }
.fx .stars.in { filter: drop-shadow(0 0 8px rgba(227, 165, 92, .45)); }
@keyframes starFill { to { fill: var(--honey); } }

/* ---------- rule lines draw in with a bright head ---------- */
.fx .stones .st, .fx .about-facts li { border-top-color: transparent; position: relative; }
.fx .stones .st::before, .fx .about-facts li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(227, 165, 92, .22) 0, rgba(227, 165, 92, .22) 80%, rgba(255, 226, 180, .95) 98%, rgba(255, 226, 180, 0));
  transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease), background .1s 1.5s; }
.fx .stones.in .st::before, .fx .about-facts.in li::before { transform: scaleX(1); background: rgba(227, 165, 92, .22); }
.fx .stones.in .st:nth-child(2)::before, .fx .about-facts.in li:nth-child(2)::before { transition-delay: .12s, 1.62s; }
.fx .stones.in .st:nth-child(3)::before, .fx .about-facts.in li:nth-child(3)::before { transition-delay: .24s, 1.74s; }
.fx .stones.in .st:nth-child(4)::before { transition-delay: .36s, 1.86s; }
.fx .stones.in .st:nth-child(5)::before { transition-delay: .48s, 1.98s; }
.fx .stones .st:first-child::before { transition-delay: 0s, 1.5s; }

/* ---------- opened stone: photo settles, swatch turns slowly ---------- */
.st-photo > img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.st.open .st-photo > img { transform: none; }
.fx .st.open .st-swatch img { animation: turn 40s linear infinite; }
@keyframes turn { to { transform: rotate(360deg) scale(1.25); } }
.st-swatch img { transform: scale(1.25); }

/* ---------- honey scrollbar ---------- */
html { scrollbar-color: #8a5a2c #120d0a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #120d0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#c98a46, #7a4a22); border-radius: 10px; border: 2px solid #120d0a; }

@media (prefers-reduced-motion: reduce) { #dust { display: none; } }
