/* ============================================================
   HOME — Dark luxury: starfield hero, gem marquee, tilt cards
   ============================================================ */

body[data-theme="dark"] {
  background: #121214;
  color: #d6dee6;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(16,16,18,.97) 0%, rgba(16,16,18,.9) 42%, rgba(11,16,23,.8) 75%, rgba(12,20,29,.72) 100%),
    url("../img/hero-gems.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* dark "stage" vignette so the hero stone separates from the busy photo */
    radial-gradient(640px 540px at 71% 52%, rgba(8,9,12,.88), rgba(8,9,12,.45) 55%, transparent 75%),
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(30,111,82,.18), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
#sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 8rem 0 5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  color: #fff;
  margin: 1rem 0 1.2rem;
}
.hero h1 .shimmer {
  background: linear-gradient(100deg, #b9941e 0%, #f4e2a0 25%, #c9a227 50%, #fff6d8 75%, #b9941e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero .eyebrow { color: var(--gold-light); }
.hero .lead { color: #a9b8c6; max-width: 33rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.hero-gem {
  position: relative;
  height: 420px;
}
/* design layer 1: warm golden aura breathing behind the stone */
.hero-gem::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 50% 56%,
    rgba(201,162,39,.32),
    rgba(201,162,39,.10) 42%,
    transparent 70%);
  filter: blur(4px);
  animation: glowPulse 6.5s ease-in-out infinite;
}
/* design layer 2: thin tilted gold halo ring, framing the stone like a display mount */
.hero-gem::after {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: 116%; height: 44%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px solid rgba(201,162,39,.38);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(201,162,39,.14), inset 0 0 26px rgba(201,162,39,.10);
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
/* photorealistic stone with true alpha transparency — sits natively on the hero art */
.hero-gem .gem-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(1.06) saturate(1.08)
          drop-shadow(0 0 60px rgba(201,162,39,.5)) drop-shadow(0 0 24px rgba(255,255,255,.18))
          drop-shadow(0 24px 40px rgba(0,0,0,.55));
  animation: gemBob 6.5s ease-in-out infinite;
}
/* design layer 3: planet-style orbit — gems travel along the tilted gold halo,
   passing BEHIND the stone at the top of the ring and IN FRONT at the bottom.
   Position / scale / depth are driven per-frame by js/home.js */
.orbit-gems {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.og {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  will-change: transform, opacity;
}
.og img {
  position: absolute;
  width: 110px; /* uniform size for every orbit stone */
  max-width: none; /* global img{max-width:100%} collapses to 0 inside the zero-width orbit anchor */
  left: 0;
  top: 0;
  transform: translate(-50%, -50%); /* center each stone on its orbit anchor */
  filter: brightness(1.12) saturate(1.2) contrast(1.04)
          drop-shadow(0 0 14px rgba(255,255,255,.28))
          drop-shadow(0 0 16px rgba(0,0,0,.45))
          drop-shadow(0 0 26px rgba(201,162,39,.42));
}

/* realistic: gentle vertical drift only — like a stone resting in a beam of light */
@keyframes gemBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gem .gem-photo,
  .hero-gem::before { animation: none; }
}

/* ---------- Gem marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #8fa2b3;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.marquee-track span::before {
  content: "";
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.h-section { padding: 6rem 0; position: relative; }
.h-section-title { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.h-section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin-top: .7rem; }
.h-section-title p { color: #8fa2b3; margin-top: .7rem; }

/* services tilt cards */
.tilt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tilt-grid.four { grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.tilt-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 2.4rem 1.8rem;
  overflow: hidden;
  transition: border-color .3s;
  transform-style: preserve-3d;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,39,.14), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
}
.tilt-card:hover::before { opacity: 1; }
.tilt-card:hover { border-color: rgba(201,162,39,.4); }
.tilt-card .gem-icon { font-size: 2rem; margin-bottom: 1.1rem; display: inline-block; transition: transform .35s; }
.tilt-card:hover .gem-icon { transform: scale(1.25) rotate(-8deg); }
.tilt-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .55rem; }
.tilt-card p { color: #93a5b5; font-size: .94rem; }
.tilt-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  color: var(--gold-light);
  font-weight: 600;
  font-size: .88rem;
}
.tilt-card .card-link i { transition: transform .3s; font-style: normal; }
.tilt-card:hover .card-link i { transform: translateX(6px); }

/* stats */
.stats-band {
  background: linear-gradient(120deg, rgba(201,162,39,.12), rgba(201,162,39,.03));
  border-block: 1px solid rgba(201,162,39,.2);
  padding: 3.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(120deg, #f4e2a0, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: #8fa2b3; font-size: .88rem; letter-spacing: .05em; margin-top: .3rem; }

/* process */
.h-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.h-step {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform .3s, border-color .3s;
}
.h-step:hover { transform: translateY(-8px); border-color: rgba(201,162,39,.35); }
.h-step b {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8f6f10);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.h-step h4 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.h-step p { color: #8fa2b3; font-size: .9rem; }
.h-step::after {
  content: "→";
  position: absolute;
  right: -1.15rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
}
.h-step:last-child::after { display: none; }

/* testimonial slider */
.quote-stage { position: relative; max-width: 46rem; margin: 0 auto; min-height: 240px; }
.h-quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s, transform .7s;
  text-align: center;
  pointer-events: none;
}
.h-quote.active { opacity: 1; transform: none; pointer-events: auto; }
.h-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #e8eef3;
  font-style: italic;
}
.h-quote cite { display: block; margin-top: 1.4rem; color: var(--gold-light); font-style: normal; font-size: .9rem; }
.quote-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 2.2rem; }
.quote-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .3s;
}
.quote-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ---------- Client reviews ---------- */
.rv-aggregate {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.rv-aggregate b { color: var(--gold-light); font-size: 1.35rem; font-family: var(--font-head); }
.rv-aggregate .rv-sub { color: #8fa2b3; font-size: .92rem; }
.rv-stars {
  color: var(--gold);
  letter-spacing: .12em;
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(201,162,39,.45);
}
.rv-stars.lg { font-size: 1.25rem; }
.rv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.rv-card {
  margin: 0;
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), border-color .45s, box-shadow .45s;
}
.rv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,39,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,39,.12);
}
.rv-card blockquote {
  margin: 0;
  color: #c3cfd9;
  font-size: .95rem;
  line-height: 1.75;
  flex: 1;
}
.rv-card blockquote::before { content: "\201C"; }
.rv-card blockquote::after  { content: "\201D"; }
.rv-card figcaption {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.rv-card figcaption b { color: #fff; font-size: .95rem; }
.rv-card figcaption span { color: #7e93a6; font-size: .82rem; }
.rv-note { text-align: center; margin-top: 2.6rem; color: #8fa2b3; }
.rv-note a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(201,162,39,.4); transition: border-color .3s; }
.rv-note a:hover { border-color: var(--gold-light); }
@media (max-width: 960px) {
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rv-grid { grid-template-columns: 1fr; }
}

/* CTA */
.h-cta {
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(16,16,18,.88), rgba(16,16,18,.88)),
    url("../img/gem-macro.jpg") center / cover no-repeat;
}
.h-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 50% 120%, rgba(201,162,39,.18), transparent 65%);
  pointer-events: none;
}
.h-cta .container { position: relative; z-index: 1; }
.h-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h-cta p { color: #8fa2b3; margin: .7rem 0 2.2rem; }

/* workshop photo band */
.workshop-band {
  position: relative;
  padding: 6.5rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(16,16,18,.82), rgba(16,16,18,.88)),
    url("../img/workshop-cabbing.jpg") center / cover no-repeat fixed;
}
.workshop-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.workshop-band p { color: #b9b9bd; max-width: 38rem; margin: .8rem auto 2rem; }

@media (max-width: 900px) {
  .workshop-band { background-attachment: scroll; }
}

/* FAQ section */
.h-faq { max-width: 800px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-gem { display: none; }
  .tilt-grid, .tilt-grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .h-process { grid-template-columns: repeat(2, 1fr); }
  .h-step::after { display: none; }
}
@media (max-width: 640px) {
  .h-process { grid-template-columns: 1fr; }
  .tilt-grid, .tilt-grid.four { grid-template-columns: 1fr; }
  .h-section { padding: 4rem 0; }
}
