/* =====================================================================
   Black Rose: Ring Builder cinematic redesign (2026)
   Scoped under body.ring-2026 so other pages are unaffected.
   Reuses brand tokens from styles.css :root. Light + dark theme.
   Loaded ONLY by ring-builder.html.
   ===================================================================== */

body.ring-2026 {
  --r-ink: var(--ink);
  --r-paper: var(--paper);
  --r-gold: var(--gold);
  --r-muted: var(--smoke);
  --r-line: var(--line);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body.ring-2026.ring-ready [data-cine] { opacity: 0; transform: translateY(48px); will-change: opacity, transform; }
body.ring-2026.ring-ready [data-cine].is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.ring-2026.ring-ready [data-cine-stagger] > * { opacity: 0; transform: translateY(48px); }
body.ring-2026.ring-ready [data-wipe] { clip-path: inset(0 0 100% 0); }

body.ring-2026 main { overflow: clip; }
body.ring-2026 .rb-section { padding: clamp(64px, 9vw, 140px) clamp(20px, 5vw, 72px); position: relative; }
body.ring-2026 .rb-wrap { max-width: 1280px; margin: 0 auto; }
body.ring-2026 .rb-eyebrow { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--r-gold); margin: 0 0 1.1rem; }
body.ring-2026 .rb-display { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.0; letter-spacing: -0.01em; margin: 0; color: var(--r-ink); }
body.ring-2026 .rb-display em { font-style: italic; color: var(--r-gold); }
body.ring-2026 .rb-lede { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; color: var(--r-muted); max-width: 48ch; margin: 1.3rem 0 0; }
body.ring-2026 .rb-actions { margin-top: 2rem; display: flex; gap: 14px; flex-wrap: wrap; }

body.ring-2026 .rb-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 15px 30px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
body.ring-2026 .rb-btn--solid { background: var(--r-gold); color: #fff; }
body.ring-2026 .rb-btn--solid:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(169,119,50,0.32); }
body.ring-2026 .rb-btn--ghost { color: var(--r-ink); border-color: var(--r-line); }
body.ring-2026 .rb-btn--ghost:hover { border-color: var(--r-gold); color: var(--r-gold); transform: translateY(-3px); }
body.ring-2026 .rb-textlink { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--r-ink); text-decoration: none; border-bottom: 1px solid var(--r-gold); padding-bottom: 4px; transition: color 0.3s; }
body.ring-2026 .rb-textlink:hover { color: var(--r-gold); }

/* ---------- HERO ---------- */
body.ring-2026 .rb-hero { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; background: #0b0907; }
body.ring-2026 .rb-hero__media { position: absolute; inset: -8% 0; z-index: 0; }
body.ring-2026 .rb-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); will-change: transform; }
body.ring-2026 .rb-hero__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(8,6,5,0.58) 0%, rgba(8,6,5,0.2) 26%, rgba(8,6,5,0.12) 50%, rgba(8,6,5,0.2) 74%, rgba(8,6,5,0.62) 100%); }
body.ring-2026 .rb-hero__inner { position: relative; z-index: 2; text-align: center; padding: 12vh 22px 0; max-width: 1000px; align-self: start; }
body.ring-2026 .rb-hero__eyebrow { font-size: 0.74rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--champagne); margin: 0 0 1.4rem; text-shadow: 0 1px 14px rgba(8,6,5,0.6); }
body.ring-2026 .rb-hero__title { font-family: var(--display); font-weight: 600; color: #fbf4e8; font-size: clamp(2.8rem, 7.5vw, 6.5rem); line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-shadow: 0 2px 30px rgba(8,6,5,0.55); }
/* Gap between the two headline lines so the ring shows through.
   Extra top/bottom padding + matching negative margin gives the GSAP
   reveal room so ascenders/descenders are never clipped by overflow. */
body.ring-2026 .rb-hero__title .line { display: block; overflow: hidden; padding: 0.12em 0; margin: -0.12em 0; }
body.ring-2026 .rb-hero__title .line + .line { margin-top: clamp(120px, 21vh, 250px); }
body.ring-2026 .rb-hero__title .line > span { display: inline-block; }
body.ring-2026 .rb-hero__title em { font-style: italic; color: var(--champagne); }
body.ring-2026 .rb-hero__sub { color: rgba(251,244,232,0.94); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; max-width: 52ch; margin: 1.6rem auto 0; text-shadow: 0 1px 16px rgba(8,6,5,0.7); }
body.ring-2026 .rb-hero__actions { margin-top: 2.2rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
body.ring-2026 .rb-hero__actions .rb-btn--ghost { color: #fbf4e8; border-color: rgba(251,244,232,0.4); }
body.ring-2026 .rb-hero__actions .rb-btn--ghost:hover { border-color: var(--champagne); color: var(--champagne); }

/* ---------- Process strip ---------- */
body.ring-2026 .rb-process { background: var(--r-paper); }
body.ring-2026 .rb-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
body.ring-2026 .rb-step { border-top: 2px solid var(--r-gold); padding-top: 18px; }
body.ring-2026 .rb-step__num { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--r-gold); }
body.ring-2026 .rb-step strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 6px 0 8px; }
body.ring-2026 .rb-step p { color: var(--r-muted); font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* ---------- Pencil studio ---------- */
body.ring-2026 .rb-studio { background: var(--r-paper); }
body.ring-2026 .rb-studio__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
body.ring-2026 .rb-studio__head .rb-lede { margin-left: auto; margin-right: auto; }
body.ring-2026 .pencil-builder-shell { max-width: 1100px; margin: 0 auto; border: 1px solid var(--r-line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 70px rgba(36,24,16,0.12); background: var(--r-paper); }
body.ring-2026 .pencil-builder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--r-line); flex-wrap: wrap; }
body.ring-2026 .pencil-builder-toolbar span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--r-gold); display: block; }
body.ring-2026 .pencil-builder-toolbar strong { font-family: var(--display); font-size: 1.25rem; }
body.ring-2026 .pencil-builder-shell iframe { width: 100%; min-height: 640px; border: 0; display: block; background: #fff; }
body.ring-2026 .pencil-frame-fallback { padding: 60px 24px; text-align: center; }
body.ring-2026 .pencil-frame-fallback h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 12px 0 8px; }
body.ring-2026 .pencil-frame-fallback p { color: var(--r-muted); margin: 0 0 18px; }

/* ---------- Options grid (beyond a diamond ring) ---------- */
body.ring-2026 .rb-options__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
body.ring-2026 .rb-options__head .rb-lede { margin-left: auto; margin-right: auto; }
body.ring-2026 .rb-options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.ring-2026 .rb-option { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--r-line); border-radius: 10px; background: var(--r-paper); transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
body.ring-2026 .rb-option:hover { transform: translateY(-6px); border-color: var(--r-gold); box-shadow: 0 22px 50px rgba(36,24,16,0.12); }
body.ring-2026 .rb-option .rb-option__icon { width: 40px; height: 40px; color: var(--r-gold); }
body.ring-2026 .rb-option h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 16px 0 8px; }
body.ring-2026 .rb-option p { color: var(--r-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 18px; flex: 1; }

/* ---------- AI generator ---------- */
body.ring-2026 .rb-ai { background: var(--wine); color: #fbf4e8; }
body.ring-2026 .rb-ai__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
body.ring-2026 .rb-ai .rb-eyebrow { color: var(--champagne); }
body.ring-2026 .rb-ai .rb-display { color: #fbf4e8; }
body.ring-2026 .rb-ai .rb-lede { color: rgba(251,244,232,0.9); }
body.ring-2026 .rb-ai__consult { margin: 1.4rem 0 0; }
body.ring-2026 .rb-ai__consult .rb-textlink { color: #fbf4e8; border-color: var(--champagne); }
body.ring-2026 .rb-ai__consult .rb-textlink:hover { color: var(--champagne); }
body.ring-2026 .rb-ai__attempts { display: inline-block; margin-top: 1.4rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne); }
body.ring-2026 .rb-ai__panel { background: rgba(251,244,232,0.06); border: 1px solid rgba(251,244,232,0.16); border-radius: 12px; padding: 26px; }
body.ring-2026 .rb-ai__panel label { display: block; }
body.ring-2026 .rb-ai__panel label > span { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); margin-bottom: 8px; }
body.ring-2026 .rb-ai__panel textarea,
body.ring-2026 .rb-ai__panel input { width: 100%; background: rgba(8,6,5,0.55); border: 1px solid rgba(251,244,232,0.28); border-radius: 8px; color: #fdf8ef; padding: 12px 14px; font: inherit; }
body.ring-2026 .rb-ai__panel textarea::placeholder,
body.ring-2026 .rb-ai__panel input::placeholder { color: rgba(251,244,232,0.62); }
body.ring-2026 .rb-ai__panel textarea:focus,
body.ring-2026 .rb-ai__panel input:focus { outline: none; border-color: var(--champagne); background: rgba(8,6,5,0.68); }
body.ring-2026 .ai-generator-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
body.ring-2026 .ai-generator-actions span { font-size: 0.82rem; color: rgba(251,244,232,0.92); }
body.ring-2026 .ai-generator-result { margin-top: 18px; min-height: 200px; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(251,244,232,0.4); border-radius: 10px; padding: 24px; color: rgba(251,244,232,0.9); }
body.ring-2026 .ai-generator-result img { max-width: 100%; border-radius: 8px; }
body.ring-2026 .ai-send-form { margin-top: 20px; }
body.ring-2026 .ai-send-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
body.ring-2026 .rb-ai .form-note { color: rgba(251,244,232,0.9); font-size: 0.85rem; margin: 12px 0 0; }
body.ring-2026 .rb-ai .button { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
body.ring-2026 .rb-ai .button-dark { background: var(--champagne); color: #1a120a; }
body.ring-2026 .rb-ai .button-light { background: transparent; color: #fbf4e8; border-color: rgba(251,244,232,0.4); }
body.ring-2026 .rb-ai .button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Aftercare / reassurance ---------- */
body.ring-2026 .rb-after { background: var(--r-paper); }
body.ring-2026 .rb-after__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
body.ring-2026 .rb-after article { text-align: center; padding: 28px; }
body.ring-2026 .rb-after article i, body.ring-2026 .rb-after article svg { color: var(--r-gold); width: 30px; height: 30px; }
body.ring-2026 .rb-after h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 14px 0 8px; }
body.ring-2026 .rb-after p { color: var(--r-muted); font-size: 0.94rem; line-height: 1.6; margin: 0; }
body.ring-2026 .rb-after__cta { text-align: center; margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Focus visibility ---------- */
body.ring-2026 a:focus-visible, body.ring-2026 button:focus-visible { outline: 2px solid var(--r-gold); outline-offset: 3px; border-radius: 3px; }

/* =====================================================================
   DARK THEME
   ===================================================================== */
html[data-theme="dark"] body.ring-2026 .rb-process,
html[data-theme="dark"] body.ring-2026 .rb-studio,
html[data-theme="dark"] body.ring-2026 .rb-after { background: #15110f; }
html[data-theme="dark"] body.ring-2026 .rb-display { color: #f7efe4; }
html[data-theme="dark"] body.ring-2026 .rb-display em { color: #d9b46f; }
html[data-theme="dark"] body.ring-2026 .rb-lede { color: #c9bfb2; }
html[data-theme="dark"] body.ring-2026 .rb-eyebrow { color: #d9b46f; }
html[data-theme="dark"] body.ring-2026 .rb-step strong, html[data-theme="dark"] body.ring-2026 .rb-after h2 { color: #f7efe4; }
html[data-theme="dark"] body.ring-2026 .rb-step p, html[data-theme="dark"] body.ring-2026 .rb-after p { color: #c9bfb2; }
html[data-theme="dark"] body.ring-2026 .rb-step, html[data-theme="dark"] body.ring-2026 .rb-after__grid article { }
html[data-theme="dark"] body.ring-2026 .rb-option { background: rgba(247,239,228,0.04); border-color: rgba(247,239,228,0.16); }
html[data-theme="dark"] body.ring-2026 .rb-option h3 { color: #f7efe4; }
html[data-theme="dark"] body.ring-2026 .pencil-builder-shell { background: rgba(247,239,228,0.04); border-color: rgba(247,239,228,0.16); }
html[data-theme="dark"] body.ring-2026 .pencil-frame-fallback h3 { color: #f7efe4; }
html[data-theme="dark"] body.ring-2026 .rb-textlink { color: #f7efe4; border-color: #d9b46f; }
html[data-theme="dark"] body.ring-2026 .rb-btn--ghost { color: #f7efe4; border-color: rgba(247,239,228,0.3); }
html[data-theme="dark"] body.ring-2026 .rb-ai { background: #2a0f16; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  body.ring-2026 .rb-process__grid { grid-template-columns: repeat(2, 1fr); }
  body.ring-2026 .rb-options__grid { grid-template-columns: 1fr; }
  body.ring-2026 .rb-ai__grid { grid-template-columns: 1fr; }
  body.ring-2026 .rb-after__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.ring-2026 .rb-process__grid { grid-template-columns: 1fr; }
  body.ring-2026 .ai-send-fields { grid-template-columns: 1fr; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.ring-2026.ring-ready [data-cine],
  body.ring-2026.ring-ready [data-cine-stagger] > * { opacity: 1 !important; transform: none !important; }
  body.ring-2026.ring-ready [data-wipe] { clip-path: none !important; }
  body.ring-2026 .rb-hero__media img { transform: none !important; }
}
