/* Ring Concierge deck — the Facet Flow 3 Design Studio replay (studio.js).
 * The markup wears FF3's own class strings (assets/ff3/ff3-app.css); this file is
 * only the glue: states, fades and keyframes the replay needs. Light theme only,
 * and everything only fades, as in the product.
 */

/* ---------- show / hide: fades only ---------- */
#rc-studio .rc-fx { transition: opacity var(--rc-fx, 250ms) ease-out; }
#rc-studio .rc-out { opacity: 0 !important; pointer-events: none !important; }
#rc-studio .rc-gone { display: none !important; }
#rc-studio .rc-swapped { transition: opacity 200ms ease-out; }

/* ---------- stage ---------- */
#rc-studio .rc-take-layer { transition: opacity 500ms ease-out; }
#rc-studio .rc-take-layer img { user-select: none; -webkit-user-drag: none; }
#rc-studio .rc-box { position: absolute; }
#rc-studio .rc-cad-view { z-index: 10; background: #fff; --rc-fx: 500ms; }
#rc-studio .rc-cad-view model-viewer {
  width: 100%; height: 100%; display: block; background: transparent;
  --poster-color: transparent; --progress-bar-color: transparent;
}

/* the take washes pale under a sweeping light while the next one renders */
#rc-studio .rc-shimmer-sweep { animation: rc-shimmer 1.8s ease-in-out infinite; }
@keyframes rc-shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(420%); }
}

/* ---------- the version wheel ---------- */
#rc-studio .rc-wheel-card { transform-origin: 50% 50%; will-change: transform, opacity; }
#rc-studio .rc-wheel-card.rc-born { animation: rc-born 400ms ease-out; }
@keyframes rc-born { from { filter: opacity(0); } to { filter: opacity(1); } }
#rc-studio .rc-hub { transition: opacity 300ms ease-out 120ms; }
#rc-studio .rc-hub.rc-moving { opacity: 0; transition-delay: 0s; }

/* ---------- the message bar ---------- */
#rc-studio .rc-field { white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; color: #0f172a; }
#rc-studio .rc-field:empty::before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
#rc-studio .rc-field.rc-caret::after {
  content: ''; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px;
  vertical-align: -0.2em; background: #0f172a; animation: rc-caret 1s steps(1) infinite;
}
#rc-studio .rc-field.rc-caret:empty::after { margin-left: 0; margin-right: 1px; }
#rc-studio .rc-field.rc-caret:empty { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; }
@keyframes rc-caret { 0% { opacity: 1; } 50% { opacity: 0; } }
#rc-studio .rc-extra-chips { transition: opacity 200ms ease-out; }

/* ---------- marks on the take ---------- */
#rc-studio .rc-mark-path { transition: stroke-dashoffset var(--rc-trace, 950ms) linear; }
#rc-studio .rc-mark-label { transition: opacity 200ms ease-out; }
#rc-studio .rc-note-input:focus { outline: none; }

/* ---------- Estimate Price: the block of cards never scrolls; it scales as one to fit (studio.js fitCards) ---------- */
#rc-studio [data-rc="price-fit"] { transition: height 450ms cubic-bezier(.22, 1, .36, 1); }
#rc-studio [data-rc="price-fit"] > section { transform-origin: 50% 0; transition: transform 450ms cubic-bezier(.22, 1, .36, 1); }

/* ---------- Estimate Price: the cards grow and shrink, their words glide ---------- */
#rc-studio .rc-tier { transition: opacity 350ms ease-out; }
#rc-studio .rc-tier.rc-springing {
  transition: opacity 350ms ease-out, height 450ms cubic-bezier(.22, 1, .36, 1), width 450ms cubic-bezier(.22, 1, .36, 1);
}
#rc-studio .rc-flip { transform-origin: 0 0; }
#rc-studio .rc-flip.rc-springing { transition: transform 450ms cubic-bezier(.22, 1, .36, 1); }
#rc-studio .rc-tier-details { transition: opacity 250ms ease-out 120ms; }

/* ---------- dialogs (Generate CAD, Render on Body) ---------- */
#rc-studio .rc-dialog { --rc-fx: 250ms; }
#rc-studio .rc-dialog-panel { transition: transform 250ms ease-out; }
#rc-studio .rc-dialog.rc-out .rc-dialog-panel { transform: scale(.97); }
#rc-studio .rc-dialog-body { transition: opacity 200ms ease-out; }

/* ---------- the lifestyle shots: the Technical drawings slide's stack (tech.css .trsheet) ---------- */
#rc-studio [data-rc="lifestyle"] { --rc-fx: 450ms; }
#rc-studio .rc-life-row { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#rc-studio .rc-life-card {
  flex: 0 0 auto; width: 0; opacity: 0; overflow: hidden; border-radius: 4px; background: #fff;
  box-shadow: 0 24px 60px -22px rgba(10, 25, 60, .4);
  transition: width .65s var(--rc-ease), opacity .45s var(--rc-ease);
}
#rc-studio .rc-life-card.is-on { opacity: 1; }
#rc-studio .rc-life-page > img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- Jewelry Builder: the four takes ---------- */
#rc-studio .rc-builder-card { transition: opacity 350ms ease-out; }
#rc-studio .rc-builder-art { transition: opacity 350ms ease-out; }

