/* Eleva Tu Flow — tienda de demostración. Tema oscuro único.
   Tipografía: Bodoni Moda (titulares, cifras) + Hanken Grotesk (texto e interfaz). */
:root {
  --ink: #090807;
  --ink-2: #100f0d;
  --ink-3: #171512;
  --bone: #f3eee5;
  --bone-2: #c8c1b4;
  --muted: #8b8478;
  --faint: rgba(243, 238, 229, 0.1);
  --hair: rgba(243, 238, 229, 0.2);
  --gold: #d2ae68;
  --gold-2: #e6cd98;
  --ice: #dbe7f2;
  --rose: #e9bba5;
  --pad: clamp(20px, 5.5vw, 96px);
  --col: min(480px, 40vw);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------------------------------------------------------------- layers */
#stage { position: fixed; inset: 0; z-index: 0; background: #080807; }
#stage canvas { pointer-events: none; touch-action: pan-y !important; }
body.cfg-live #stage canvas { pointer-events: auto; cursor: grab; }
body.cfg-live #stage canvas:active { cursor: grabbing; }
#curtain { position: fixed; inset: 0; z-index: 1; background: #060605; opacity: 1; pointer-events: none; will-change: opacity; }
#annos { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
main { position: relative; z-index: 3; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: clamp(40px, 4.6vw, 78px); }
h2.num { font-size: clamp(56px, 6.4vw, 108px); letter-spacing: -0.03em; }
em { font-style: normal; }
.gold { color: var(--gold); }
.ice { color: var(--ice); }
.rose { color: var(--rose); }
.eyebrow { color: var(--gold); display: flex; align-items: center; gap: 14px; margin: 0 0 26px; }
.eyebrow .count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(16px, 1.15vw, 18px); font-weight: 300; line-height: 1.65; color: var(--bone-2); margin: 24px 0 0; max-width: 32em; }
.note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 28px; border-radius: 1px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, opacity 0.3s, transform 0.3s var(--ease);
}
.btn-lg { height: 56px; padding: 0 34px; }
.btn-gold { color: var(--ink); background: var(--bone); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid var(--hair); color: var(--bone); background: rgba(9, 8, 7, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(243, 238, 229, 0.06); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 80px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: background 0.5s, height 0.5s var(--ease), transform 0.6s var(--ease);
  transform: translateY(-110%);
}
body.ready .nav { transform: none; transition-delay: 0s, 0s, 0.6s; }
.nav.solid { height: 64px; background: rgba(9, 8, 7, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--faint); }
.brand { grid-column: 2; grid-row: 1; display: flex; align-items: center; color: var(--bone); }
.brand svg { display: block; height: 17px; width: auto; }
.brand .gem { fill: var(--gold); color: var(--gold); }
.nav-links { grid-column: 1; grid-row: 1; display: flex; gap: 32px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { grid-column: 3; grid-row: 1; justify-self: end; }
.bag-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-2); transition: color 0.3s; }
.bag-btn:hover { color: var(--bone); }
.bag-btn b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--hair); border-radius: 999px; color: var(--bone); font-size: 11px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bag-btn.bump b { animation: bump 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.3); background: var(--gold); color: var(--ink); border-color: var(--gold); } }

/* chapter index: each chapter shows how many stops it has and which one is on screen */
.index { position: fixed; right: calc(var(--pad) * 0.42); top: 50%; z-index: 25; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity 0.6s; }
body.show-index .index { opacity: 1; }
.index a { text-shadow: 0 0 14px rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.index a span { transition: color 0.4s; }
.index a i { font-style: normal; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.6s var(--ease), opacity 0.4s, color 0.4s; }
.index a::after { content: ''; width: 14px; height: 1px; background: currentColor; opacity: 0.6; transition: width 0.5s var(--ease), background 0.4s, opacity 0.4s; }
.index:hover a i, .index a.on i { max-width: 120px; opacity: 1; }
.index a.on { color: var(--bone); }
.index a.on span { color: var(--gold); }
.index a.on::after { width: 36px; background: var(--gold); opacity: 1; }
.index a:hover { color: var(--bone); }

/* step counter (bottom left): current stop of the chapter on screen */
.pager { position: fixed; left: var(--pad); bottom: 30px; z-index: 25; display: flex; align-items: center; gap: 18px; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
body.show-index .pager:not(.one) { opacity: 1; }
.pager b { color: var(--bone); font-weight: 600; }
.pager-bars { display: flex; gap: 5px; }
.pager-bars i { width: 22px; height: 1px; background: var(--hair); transition: background 0.4s, width 0.5s var(--ease); }
.pager-bars i.on { background: var(--gold); width: 38px; }

/* ---------------------------------------------------------------- chapters */
.ch { position: relative; height: calc(var(--h) * 1vh); }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side-left::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 6, 5, 0.85) 0%, rgba(6, 6, 5, 0.5) 30%, transparent 56%); }
.col { position: absolute; left: var(--pad); top: 50%; width: var(--col); transform: translateY(-50%); min-height: 420px; }
.col > .step { position: absolute; inset: 50% 0 auto 0; transform: translateY(-50%); }
.col > .step.on-always { position: relative; inset: auto; transform: none; }

.step { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.step.on, .on-always { opacity: 1; visibility: visible; transition: opacity 0.8s var(--ease), visibility 0s; }
.step > * { transform: translateY(18px); opacity: 0; transition: transform 1s var(--ease), opacity 0.8s var(--ease); }
.step.on > *, .on-always > * { transform: none; opacity: 1; }
.step.on > :nth-child(2) { transition-delay: 0.08s; }
.step.on > :nth-child(3) { transition-delay: 0.16s; }
.step.on > :nth-child(4) { transition-delay: 0.24s; }
.step.on > :nth-child(5) { transition-delay: 0.32s; }
.step.on > :nth-child(6) { transition-delay: 0.4s; }

/* hero */
.ch-hero .pin::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 6, 5, 0.7), transparent 50%), linear-gradient(0deg, rgba(6, 6, 5, 0.85), transparent 48%); }
.hero-copy { position: absolute; left: var(--pad); bottom: clamp(80px, 13vh, 150px); max-width: 820px; transform: translateY(calc(var(--p, 0) * -18vh)); opacity: calc(1 - var(--p, 0) * 2.2); }
.hero-title { font-size: clamp(66px, 10.8vw, 188px); font-weight: 500; line-height: 0.88; letter-spacing: -0.035em; margin: 0 0 6px; text-transform: uppercase; font-variation-settings: 'opsz' 12; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: block; transform: translateY(110%); transition: transform 1.4s var(--ease) 0.5s; }
.hero-title .line:nth-child(2) > span { transition-delay: 0.64s; }
body.ready .hero-title .line > span { transform: none; }
.hero-sub { max-width: 30em; color: var(--bone-2); font-weight: 300; font-size: clamp(15px, 1.15vw, 18px); margin: 26px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { position: absolute; right: calc(var(--pad) + 40px); bottom: clamp(80px, 13vh, 150px); display: grid; gap: 8px; text-align: right; font-size: 13px; color: var(--bone-2); opacity: calc(1 - var(--p, 0) * 2.5); }
.hero-meta b { font-family: var(--display); font-weight: 500; color: var(--bone); font-size: 22px; letter-spacing: -0.01em; }
.hero-meta em { color: var(--bone); font-variant-numeric: tabular-nums; }
.hero-meta .mono { color: var(--gold); }
.live { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(210, 174, 104, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(210, 174, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 174, 104, 0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p, 0) * 6); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease) calc(var(--d, 0s) + 0.45s), transform 1.1s var(--ease) calc(var(--d, 0s) + 0.45s); }
body.ready .reveal { opacity: 1; transform: none; }
body.ready .hero-meta.reveal { opacity: calc(1 - var(--p, 0) * 2.5); }
body.ready .scroll-cue.reveal { opacity: calc(1 - var(--p, 0) * 6); }
body.settled .hero-meta.reveal, body.settled .scroll-cue.reveal { transition: none; } /* scroll-linked after the intro */
.ch-assemble h2 { font-size: clamp(36px, 3.8vw, 62px); }

/* manifesto */
.ch-manifest .pin { display: grid; place-content: center; padding: 0 var(--pad); text-align: center; }
.ch-manifest .pin::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(6, 6, 5, 0.8), rgba(6, 6, 5, 0.4) 70%); }
.manifest { position: relative; margin: 0 auto; max-width: 17em; font-family: var(--display); font-size: clamp(36px, 5vw, 84px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
.manifest .w { opacity: 0.16; transition: opacity 0.5s var(--ease); }
.manifest .w.lit { opacity: 1; }
.manifest em { color: var(--gold); }
.manifest-foot { position: relative; max-width: 34em; margin: 40px auto 0; color: var(--bone-2); font-weight: 300; font-size: clamp(15px, 1.15vw, 18px); }

/* facts, chips, specs */
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--faint); }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--faint); font-size: 13px; color: var(--muted); }
.facts li:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--faint); }
.facts li:nth-child(even) { padding-left: 18px; }
.facts b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }
.from { margin: 28px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.from b { display: inline-block; margin-left: 10px; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--bone); letter-spacing: -0.01em; text-transform: none; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; border-top: 1px solid var(--faint); padding-top: 18px; }
.chips li { display: grid; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.chips b { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--bone); letter-spacing: -0.01em; text-transform: none; }

/* stone comparison */
.compare { position: absolute; right: calc(var(--pad) + 48px); bottom: clamp(40px, 9vh, 96px); width: min(400px, 32vw); padding: 22px 24px 14px; border: 1px solid var(--faint); border-radius: 2px; background: rgba(12, 11, 10, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cmp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; border-bottom: 1px solid var(--faint); }
.cmp-tabs button { position: relative; height: 38px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.cmp-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.cmp-tabs button.on { color: var(--bone); }
.cmp-tabs button.on::after { transform: none; }
.cmp-row { display: grid; grid-template-columns: 1.25fr 1fr 48px; align-items: center; gap: 14px; padding: 10px 0; font-size: 13px; }
.cmp-row span small { display: block; color: var(--muted); font-size: 11px; }
.cmp-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s var(--ease); }

/* annotations (positioned by JS from the 3D anchors) */
.anno { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.5s var(--ease); will-change: transform; }
.anno.on { opacity: 1; }
.anno .dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--bone); background: rgba(9, 8, 7, 0.4); box-shadow: 0 0 0 5px rgba(243, 238, 229, 0.1); }
.anno .dot::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--bone); }
.anno .line { position: absolute; left: 0; top: 0; height: 1px; background: rgba(243, 238, 229, 0.7); transform-origin: 0 0; transform: rotate(var(--a)) scaleX(0); width: var(--len); transition: transform 0.7s var(--ease) 0.05s; }
.anno.on .line { transform: rotate(var(--a)) scaleX(1); }
.anno .tag { position: absolute; left: var(--dx); top: var(--dy); transform: translate(var(--tx, 0), -50%); display: grid; gap: 3px; padding: 10px 14px; white-space: nowrap; border: 1px solid var(--hair); border-radius: 2px; background: rgba(9, 8, 7, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; }
.anno .tag b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; }
.anno .tag span { color: var(--muted); font-size: 12px; }
.anno .tag b span { color: inherit; font-size: inherit; }

/* assembly */
.build-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 2px; border-top: 1px solid var(--faint); }
.build-steps li { display: grid; grid-template-columns: 44px 1fr; align-items: center; padding: 14px 0 12px; color: var(--muted); transition: color 0.5s; }
.build-steps li > span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.build-steps b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.build-steps i { display: block; height: 1px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.build-steps u { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--k, 0)); }
.build-steps li.on { color: var(--bone); }
.build-steps li.on > span { color: var(--gold); }
.counters { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--faint); }
.counters b { display: block; font-family: var(--display); font-size: clamp(30px, 2.8vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.counters span { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* collection */
.col-prod { min-height: 560px; }
.prod h2 { font-size: clamp(48px, 5.4vw, 92px); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.specs div { padding: 14px 0 12px; }
.specs div + div { padding-left: 14px; border-left: 1px solid var(--faint); }
.specs dt { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 5px 0 0; font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 24px 0; }
.price-row > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.price-row b { font-family: var(--display); font-size: clamp(32px, 2.9vw, 46px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.price-row small { color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stone-pick { position: absolute; right: calc(var(--pad) + 48px); top: 108px; display: flex; align-items: center; gap: 16px; }
.stone-pick .mono { color: var(--muted); font-size: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--faint); border-radius: 2px; background: rgba(12, 11, 10, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seg button { height: 34px; padding: 0 15px; border-radius: 1px; font-size: 12px; font-weight: 500; color: var(--bone-2); transition: background 0.4s var(--ease), color 0.3s; }
.seg button:hover { color: var(--bone); }
.seg button.on { background: var(--bone); color: var(--ink); }
.seg-sm button { height: 30px; padding: 0 13px; }
.seg-sw button { display: inline-flex; align-items: center; gap: 8px; }
.seg-sw button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.prod-dots { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 4px; }
.prod-dots button { position: relative; padding: 14px 18px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.prod-dots button::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: rgba(255, 255, 255, 0.14); }
.prod-dots button::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--gold); transform: scaleX(var(--k, 0)); transform-origin: left; }
.prod-dots button.on { color: var(--bone); }

/* metal */
.swatches { position: absolute; right: calc(var(--pad) + 48px); bottom: clamp(40px, 9vh, 96px); display: flex; gap: 16px; }
.swatches button { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7 0, transparent 42%), var(--c); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--faint); transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.swatches button.on { transform: scale(1.12); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--ink), 0 0 0 4px var(--bone); }

/* pendant */
.namer { display: flex; gap: 8px; margin: 32px 0 14px; }
.namer input { flex: 1; min-width: 0; height: 56px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: 0.04em; outline: none; transition: border-color 0.3s; }
.namer input:focus { border-color: var(--gold); }
.namer .btn { height: 56px; }
.namer.busy .btn { opacity: 0.55; pointer-events: none; }
#namer-note { min-height: 1.5em; }

/* configurator */
.ch-config .col { min-height: 0; }
.config h2 { font-size: clamp(42px, 4.4vw, 72px); margin-bottom: 28px; }
.cfg-group { display: grid; gap: 8px; margin: 0 0 16px; }
.cfg-group .mono { color: var(--muted); font-size: 10px; }
.cfg-specs { margin-top: 20px; }
.cfg-buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.cfg-buy > div { display: grid; }
.cfg-buy .mono { color: var(--muted); font-size: 10px; }
.cfg-buy b { font-family: var(--display); font-size: clamp(32px, 2.9vw, 46px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.cfg-buy small { color: var(--muted); font-size: 12px; }
/* while the configurator owns the canvas, the page lets the pointer through except on the panel */
body.cfg-live main { pointer-events: none; }
body.cfg-live .ch-config .col { pointer-events: auto; }
.drag-hint { position: absolute; right: calc(var(--pad) + 48px); bottom: 30px; display: flex; align-items: center; gap: 12px; margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.drag-hint i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hair); position: relative; }
.drag-hint i::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bone); animation: drag 2.4s var(--ease-io) infinite; }
@keyframes drag { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

/* ---------------------------------------------------------------- flow sections */
.ticker { position: relative; z-index: 3; overflow: hidden; padding: 24px 0; background: var(--ink); border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.ticker-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 50s linear infinite; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; color: var(--bone-2); }
.ticker-track i { font-style: normal; color: var(--gold); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.flow { position: relative; background: var(--ink); padding: clamp(100px, 15vh, 180px) var(--pad); }
.flow-title { font-size: clamp(44px, 5.6vw, 96px); max-width: 12em; margin-bottom: clamp(48px, 7vh, 84px); }
.reveal-io { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-io.in { opacity: 1; transform: none; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--faint); }
.perk { padding: 40px 28px 30px 0; }
.perk + .perk { padding-left: 28px; border-left: 1px solid var(--faint); }
.perk:nth-child(2) { transition-delay: 0.08s; }
.perk:nth-child(3) { transition-delay: 0.16s; }
.perk:nth-child(4) { transition-delay: 0.24s; }
.perk svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 30px; }
.perk h3 { font-size: 26px; letter-spacing: -0.01em; line-height: 1.1; }
.perk p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.reviews { padding-left: 0; padding-right: 0; overflow: hidden; }
.reviews .flow-title { padding: 0 var(--pad); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; width: 400px; padding: 34px 32px 28px; border: 1px solid var(--faint); border-radius: 2px; background: var(--ink-2); }
.marquee blockquote { margin: 0 0 26px; font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.marquee figcaption { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.marquee figcaption::before { content: '★★★★★'; display: block; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 10px; font-size: 11px; }
.faq-list { max-width: 980px; border-top: 1px solid var(--faint); }
.faq details { border-bottom: 1px solid var(--faint); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; cursor: pointer; font-family: var(--display); font-size: clamp(20px, 1.7vw, 27px); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-family: var(--sans); font-weight: 300; font-size: 24px; color: var(--gold); transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 28px; max-width: 46em; color: var(--bone-2); font-weight: 300; }
.footer { padding-bottom: 30px; border-top: 1px solid var(--faint); overflow: hidden; }
.foot-cta h2 { font-size: clamp(44px, 5vw, 86px); }
.news { display: flex; gap: 8px; max-width: 520px; margin-top: 36px; }
.news input { flex: 1; min-width: 0; height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; outline: none; }
.news input:focus { border-color: var(--gold); }
.news .btn { height: 50px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 30px; margin: clamp(64px, 10vh, 120px) 0 0; }
.foot-cols h4 { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-cols a { display: block; padding: 5px 0; color: var(--bone-2); font-size: 14px; transition: color 0.3s; }
.foot-cols a:hover { color: var(--bone); }
.giant { margin: clamp(56px, 9vh, 110px) 0 0; font-family: var(--display); font-weight: 500; font-size: 11.6vw; line-height: 0.82; letter-spacing: -0.04em; white-space: nowrap; text-transform: uppercase; color: var(--bone); opacity: 0.92; font-variation-settings: 'opsz' 12; margin-left: -0.03em; }
.giant em { color: var(--gold); }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--faint); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- drawer, toast */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--ink-2); border-left: 1px solid var(--faint); transform: translateX(102%); transition: transform 0.7s var(--ease); }
body.bag-open .drawer { transform: none; }
body.bag-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--faint); }
.drawer-head h3 { font-size: 28px; }
.x { width: 40px; height: 40px; font-size: 26px; font-weight: 300; line-height: 1; color: var(--bone-2); }
.x:hover { color: var(--bone); }
.drawer-items { flex: 1; overflow: auto; list-style: none; margin: 0; padding: 8px 28px; }
.drawer-items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--faint); }
.drawer-items li b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.drawer-items li span { grid-column: 1; color: var(--muted); font-size: 13px; }
.drawer-items li strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.drawer-items .empty { display: block; color: var(--muted); border: 0; padding: 30px 0; }
.drawer-foot { padding: 22px 28px 28px; border-top: 1px solid var(--faint); display: grid; gap: 14px; }
.drawer-foot > div { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-foot b { font-family: var(--display); font-size: 30px; font-weight: 500; }
.drawer-foot small { display: block; color: var(--muted); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, calc(100% + 60px)); padding: 15px 24px; border-radius: 2px; background: var(--bone); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); visibility: hidden; transition: transform 0.6s var(--ease), visibility 0s linear 0.6s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }
.cursor { display: none !important; }

/* ---------------------------------------------------------------- loader */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 34px; background: var(--ink); transition: opacity 1s var(--ease) 0.2s, visibility 0s linear 1.2s; }
#loader.done { opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease) 0.4s, visibility 0s linear 1.3s; }
#loader .ld-mark, #loader .ld-bar, #loader .ld-meta { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
#loader.done .ld-mark { opacity: 0; transform: translateY(-20px); }
#loader.done .ld-bar, #loader.done .ld-meta { opacity: 0; }
.ld-gem { width: 54px; height: auto; opacity: 0; animation: gemIn 1.4s var(--ease) 0.1s forwards; }
@keyframes gemIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
#loader.done .ld-gem { opacity: 0; transform: translateY(-20px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.ld-mark { display: flex; gap: 0.5em; font-family: var(--display); font-size: clamp(30px, 4.6vw, 64px); font-weight: 500; letter-spacing: 0.3em; line-height: 1; margin-right: -0.3em; text-transform: uppercase; }
.ld-word { display: flex; overflow: hidden; padding-bottom: 0.1em; }
.ld-word i { display: block; font-style: normal; transform: translateY(105%); animation: ldIn 1.1s var(--ease) forwards; }
.ld-word:nth-child(1) i:nth-child(1) { animation-delay: 0.05s; } .ld-word:nth-child(1) i:nth-child(2) { animation-delay: 0.1s; } .ld-word:nth-child(1) i:nth-child(3) { animation-delay: 0.15s; } .ld-word:nth-child(1) i:nth-child(4) { animation-delay: 0.2s; } .ld-word:nth-child(1) i:nth-child(5) { animation-delay: 0.25s; }
.ld-word:nth-child(2) i:nth-child(1) { animation-delay: 0.32s; } .ld-word:nth-child(2) i:nth-child(2) { animation-delay: 0.37s; }
.ld-flow i { color: var(--gold); }
.ld-flow i:nth-child(1) { animation-delay: 0.45s; } .ld-flow i:nth-child(2) { animation-delay: 0.5s; } .ld-flow i:nth-child(3) { animation-delay: 0.55s; } .ld-flow i:nth-child(4) { animation-delay: 0.6s; }
@keyframes ldIn { to { transform: none; } }
.ld-bar { width: min(320px, 70vw); height: 1px; background: var(--faint); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.ld-meta { display: flex; justify-content: space-between; width: min(320px, 70vw); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
#loader.error #ld-text { color: #ff8f8f; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; }
  .nav-right { grid-column: 2; }
  .nav-links { display: none; }
  .index { display: none; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--faint); }
  .perk-grid { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { padding-left: 0; border-left: 0; }
  .perk:nth-child(n + 3) { border-top: 1px solid var(--faint); }
}
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  :root { --col: calc(100vw - 2 * var(--pad)); }
  .nav { height: 62px; }
  .brand { font-size: 14px; letter-spacing: 0.26em; }
  .bag-btn span { display: none; }
  .side-left::before, .ch-hero .pin::before { background: linear-gradient(0deg, rgba(6, 6, 5, 0.94) 0%, rgba(6, 6, 5, 0.7) 40%, transparent 62%); }
  .col { top: auto; bottom: 44px; transform: none; min-height: 0; height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; }
  .col > .step { inset: auto 0 0 0; transform: none; }
  .col-prod { height: 60vh; }
  h2 { font-size: clamp(36px, 10vw, 54px); }
  .prod h2 { font-size: clamp(40px, 11.5vw, 58px); }
  .lead { font-size: 15px; margin-top: 14px; }
  .eyebrow { margin-bottom: 14px; }
  .hero-copy { bottom: 96px; }
  .hero-meta { display: none; }
  .pager { bottom: 18px; }
  .compare { left: var(--pad); right: var(--pad); top: 76px; bottom: auto; width: auto; padding: 10px 16px 6px; }
  .cmp-row { padding: 5px 0; }
  .stone-pick { left: var(--pad); right: var(--pad); top: 72px; }
  .stone-pick .mono { display: none; }
  .seg button { padding: 0 11px; }
  .prod-dots { display: none; }
  .price-row { margin: 14px 0; }
  .specs { margin-top: 16px; }
  .specs dd { font-size: 15px; }
  .swatches { left: var(--pad); right: auto; top: 76px; bottom: auto; }
  .build-steps { margin-top: 20px; }
  .build-steps li { padding: 6px 0; }
  .counters { gap: 22px; margin-top: 18px; padding-top: 16px; }
  .ch-config .col { height: auto; max-height: 62vh; overflow: auto; }
  .config h2 { margin-bottom: 14px; }
  .drag-hint { display: none; }
  .perk-grid { grid-template-columns: 1fr; }
  .perk, .perk + .perk { padding: 28px 0; border-left: 0; }
  .perk + .perk { border-top: 1px solid var(--faint); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .marquee figure { width: 300px; }
  .anno .tag { font-size: 12px; padding: 8px 11px; }
}
@media (max-width: 560px) {
  /* no room for leader-line labels beside the piece: the copy explains the parts */
  .anno .tag, .anno .line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .marquee-track { animation: none !important; }
}
