/* MOOD — modern classic.
   Ivory paper, ink and antique gold. Cormorant Garamond for voice, Jost for clarity.
   Classic forms (arches, hairlines, roman numerals) with modern spacing and motion. */
:root {
  --paper: #F6F1E8; --paper2: #FBF8F2; --card: #FFFDF9; --line: #E2D8C7; --line2: #CDBFA8;
  --ink: #1E1B18; --ink2: #3A342E; --muted: #7A6F62; --gold: #A8823E; --gold2: #C6A15E; --danger: #A8452F;
  --theatre: #13201C; --theatre2: #1A2B26; --ivory: #F3EBDD;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif; --sans: 'Jost', 'Futura', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overflow-x: hidden;
  background: radial-gradient(ellipse at 20% 0%, #FDFAF4, transparent 60%), radial-gradient(ellipse at 100% 100%, #EFE6D6, transparent 55%), var(--paper); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.eyebrow { font: 500 .7rem var(--sans); text-transform: uppercase; letter-spacing: .32em; color: var(--gold); margin: 0 0 1rem; }
.sub { color: var(--muted); margin: 0 0 1.6rem; }
.lede { font: italic 400 clamp(1.25rem, 3.4vw, 1.55rem)/1.45 var(--serif); color: var(--ink2); max-width: 32rem; }

/* ------------------------------------------------ screens */
.screen { display: none; min-height: 100dvh; padding: 40px 16px calc(40px + var(--safe-b)); }
.screen.active { display: flex; flex-direction: column; animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
.screen.center { align-items: center; justify-content: center; text-align: center; }
.panel { width: 100%; max-width: 520px; margin: auto; }
.panel.wide { max-width: 1120px; margin: 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid var(--ink); border-radius: 2px;
  padding: 1rem 2.2rem; background: var(--ink); color: var(--paper2); font: 500 .74rem var(--sans); text-transform: uppercase; letter-spacing: .26em;
  transition: background .25s, color .25s, border-color .25s, transform .15s; }
.btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover:not(:disabled) { color: var(--paper2); }
.btn.small { padding: .62rem 1.15rem; font-size: .66rem; letter-spacing: .2em; }

.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: .4rem 0 1.6rem; }
.ornament span { height: 1px; width: 56px; background: currentColor; opacity: .6; }
.ornament i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ------------------------------------------------ intro */
#intro { justify-content: center; }
.intro-grid { width: 100%; max-width: 1120px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
.logo { font: 400 clamp(4.8rem, 17vw, 8.5rem)/1 var(--serif); letter-spacing: .22em; margin: 0 0 .1em -.04em; color: var(--ink); }
.layers { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.layers li { display: flex; gap: 1.2rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.layers b { font: italic 500 1.25rem var(--serif); color: var(--gold); width: 2.2rem; flex: none; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 1.8rem; max-width: 34rem; }
.consent input { margin-top: .2rem; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-badge { margin-top: 1rem; font-size: .76rem; color: var(--danger); letter-spacing: .06em; }
.intro-art { margin: 0; justify-self: center; width: min(100%, 440px); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--line);
  box-shadow: 0 0 0 1px var(--line2), 0 0 0 9px var(--paper), 0 0 0 10px var(--gold2), 0 40px 80px -30px rgba(60, 40, 20, .45); }
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-art figcaption { text-align: center; font: italic 400 1rem var(--serif); color: var(--muted); margin-top: 22px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* ------------------------------------------------ pulse sliders */
#pulse .panel, #styles .panel { background: var(--card); border: 1px solid var(--line); padding: 40px 28px; outline: 1px solid var(--line); outline-offset: -8px; }
.slider { margin-bottom: 1.8rem; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; font-weight: 400; letter-spacing: .04em; }
.slider output { font: italic 500 1.5rem var(--serif); color: var(--gold); }
.slider input { --v: 50%; width: 100%; -webkit-appearance: none; appearance: none; height: 2px; outline: none;
  background: linear-gradient(90deg, var(--ink) var(--v), var(--line2) var(--v)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 1px solid var(--ink); box-shadow: 0 0 0 5px rgba(168, 130, 62, .18); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 1px solid var(--ink); }
.ends { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: .55rem; }

/* ------------------------------------------------ Layer 0 capture */
.cap-wrap { width: 100%; max-width: 440px; margin: 0 auto; text-align: center; }
.cap-stage { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; background: #1A1714; margin: 0 auto 1.6rem;
  box-shadow: 0 0 0 9px var(--paper), 0 0 0 10px var(--gold2), 0 30px 60px -30px rgba(40, 25, 10, .5); }
.cap-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .6s; }
.cap-stage.live video { opacity: 1; }
.cap-oval { position: absolute; inset: 18% 20% 16%; border-radius: 50%; border: 1px solid rgba(246, 241, 232, .85); box-shadow: 0 0 0 999px rgba(20, 17, 14, .5); pointer-events: none; }
.cap-stage.live .cap-oval { animation: ovalPulse 2.4s ease-in-out infinite; }
@keyframes ovalPulse { 50% { border-color: var(--gold2); } }
.cap-start { white-space: nowrap; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cap-arrow { position: absolute; left: 50%; top: 50%; font: 300 4rem var(--serif); color: var(--gold2); transform: translate(-50%, -50%); pointer-events: none; }
.cap-arrow[data-dir="left"] { animation: nudgeL 1.2s ease-in-out infinite; }
.cap-arrow[data-dir="right"] { animation: nudgeR 1.2s ease-in-out infinite; }
.cap-arrow[data-dir="up"] { animation: nudgeU 1.2s ease-in-out infinite; }
.cap-arrow[data-dir="down"] { animation: nudgeD 1.2s ease-in-out infinite; }
@keyframes nudgeL { 50% { transform: translate(-90%, -50%); opacity: .5; } }
@keyframes nudgeR { 50% { transform: translate(-10%, -50%); opacity: .5; } }
@keyframes nudgeU { 50% { transform: translate(-50%, -90%); opacity: .5; } }
@keyframes nudgeD { 50% { transform: translate(-50%, -10%); opacity: .5; } }
.cap-count { position: absolute; left: 0; right: 0; bottom: 6%; font: italic 400 3.4rem var(--serif); color: var(--paper); opacity: 0; transition: opacity .2s; }
.cap-count.on { opacity: 1; }
.cap-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cap-flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cap-label { font-size: 1.85rem; min-height: 2.2em; }
.cap-warn { color: var(--danger); font-size: .88rem; margin: -.8rem 0 1rem; }
.thumbs { display: flex; gap: 10px; justify-content: center; }
.thumb { width: 50px; height: 66px; border-radius: 999px 999px 2px 2px; border: 1px solid var(--line2); background: var(--card) center / cover no-repeat; transform: scaleX(-1); transition: all .3s; }
.cap-skip { position: absolute; left: 50%; top: calc(55% + 52px); transform: translateX(-50%); background: none; border: 0; border-bottom: 1px solid rgba(246, 241, 232, .6);
  color: var(--paper); font: 500 .7rem var(--sans); text-transform: uppercase; letter-spacing: .2em; padding: 6px 2px; white-space: nowrap; }
.cap-skip:hover { color: var(--gold2); border-color: var(--gold2); }
.cap-skip-note { font-size: .78rem; color: var(--muted); margin: .6rem auto 0; max-width: 22rem; }
.cap-skip[hidden], .cap-skip-note[hidden] { display: none; }
.thumb.done { border-color: var(--gold); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold2); }

.scan { position: relative; width: 150px; height: 150px; margin-bottom: 2.4rem; }
.scan i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: ripple 2.6s ease-out infinite; }
.scan i:nth-child(2) { animation-delay: .87s; } .scan i:nth-child(3) { animation-delay: 1.73s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.impression { font: italic 400 clamp(2.8rem, 10vw, 5rem)/1.02 var(--serif); max-width: 14ch; }
#teaser .lede { margin: 0 auto 2.6rem; }

/* ------------------------------------------------ styles grid */
#styles .panel { padding: 40px 20px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.style-card { text-align: left; background: var(--paper2); border: 1px solid var(--line); border-radius: 2px; padding: 10px 10px 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.style-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(60, 40, 20, .5); }
.style-card svg { width: 100%; display: block; margin-bottom: .75rem; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
.style-card strong { display: block; font: 500 1.2rem var(--serif); }
.style-card small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }

/* ------------------------------------------------ builder */
#builder { padding: 0; }
.builder-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); background: var(--paper2); }
.builder-bar h2 { font-size: 2rem; margin: 0; }
.builder-bar small { font: italic 400 1rem var(--serif); color: var(--muted); }
.bar-right { display: flex; align-items: center; gap: 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.room-trail { display: flex; gap: 8px; margin-bottom: 6px; }
.room-trail span { font-size: .64rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.room-trail span + span::before { content: '— '; color: var(--line2); }
.room-trail span.on { color: var(--gold); }
.stage { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 20px 0 0; }
.stage::-webkit-scrollbar { display: none; }
.stage-inner { position: relative; width: max(calc(100% - 40px), 820px); aspect-ratio: 16 / 10; margin: 0 auto; max-width: 1360px;
  box-shadow: 0 0 0 1px var(--line2), 0 0 0 8px var(--paper2), 0 0 0 9px var(--gold2), 0 40px 70px -40px rgba(60, 40, 20, .55); }
#scene, #scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .is-active { filter: drop-shadow(0 0 16px rgba(255, 230, 180, .7)); }
.stage-hint { text-align: center; color: var(--muted); font: italic 400 1rem var(--serif); margin: 22px 16px 140px; }
#hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hotspot .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 400 1.6rem/1 var(--serif); background: rgba(251, 248, 242, .92); color: var(--ink);
  border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(251, 248, 242, .35), 0 6px 16px rgba(0, 0, 0, .18); animation: hot 2.2s infinite; }
.hotspot.filled .dot { width: 28px; height: 28px; font-size: .8rem; animation: none; opacity: .75; }
.hotspot.open .dot { background: var(--ink); color: var(--paper2); border-color: var(--ink); opacity: 1; }
.hotspot .tag { font: 500 .6rem var(--sans); text-transform: uppercase; letter-spacing: .18em; background: rgba(251, 248, 242, .92); color: var(--ink); padding: 4px 10px; border-radius: 1px; white-space: nowrap; }
.hotspot.filled .tag { display: none; }
@keyframes hot { 70% { box-shadow: 0 0 0 16px rgba(168, 130, 62, 0), 0 6px 16px rgba(0, 0, 0, .18); } 0% { box-shadow: 0 0 0 0 rgba(168, 130, 62, .45), 0 6px 16px rgba(0, 0, 0, .18); } }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--gold2);
  transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); max-height: 62dvh; display: flex; flex-direction: column;
  box-shadow: 0 -24px 60px rgba(60, 40, 20, .18); padding-bottom: var(--safe-b); max-width: 900px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 10px; gap: 8px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 1.7rem; }
.sheet-head small { font: italic 400 .98rem var(--serif); color: var(--muted); }
.sheet-head .btn + .btn { margin-left: 6px; }
.sheet-body { overflow-y: auto; padding: 0 20px 20px; }
.sheet-label { font: 500 .62rem var(--sans); text-transform: uppercase; letter-spacing: .26em; color: var(--gold); margin: 18px 0 10px; }
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.variant { background: var(--paper2); border: 1px solid var(--line); border-radius: 2px; padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 400 1rem var(--serif); transition: border-color .2s; }
.variant svg { width: 100%; height: 84px; }
.variant.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .2s; }
.swatch.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px var(--card), 0 0 0 4px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5rem 1rem; border-radius: 1px; background: transparent; border: 1px solid var(--line2); font: 400 .78rem var(--sans); letter-spacing: .08em; }
.chip.on { background: var(--ink); color: var(--paper2); border-color: var(--ink); }
.needs-item.disabled { opacity: .3; pointer-events: none; }

.room-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; width: 100%; max-width: 600px; margin-bottom: 2.2rem; }
.room-card { background: var(--card); border: 1px solid var(--line); border-radius: 999px 999px 2px 2px; padding: 44px 12px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 500 1.25rem var(--serif); transition: border-color .2s, transform .2s; }
.room-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.room-card strong { font-weight: 500; }
.room-ico { width: 60px; height: 42px; border-bottom: 1px solid var(--ink); position: relative; }
.room-ico::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 16px; border: 1px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.room-study::after { left: 20px; right: 4px; height: 20px; border-radius: 0; }
.room-dining::after { left: 6px; right: 6px; height: 12px; border-radius: 0; border-top-width: 3px; }

/* ------------------------------------------------ Layer 2 theatre */
.dark { background: radial-gradient(ellipse at 50% 30%, var(--theatre2), var(--theatre) 70%); color: var(--ivory); }
.orb { width: 128px; height: 128px; border-radius: 50%; margin-bottom: 2.4rem; border: 1px solid var(--gold2); position: relative; animation: orb 3.4s ease-in-out infinite; }
.orb::before, .orb::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid var(--gold2); opacity: .5; }
.orb::before { inset: 14px; } .orb::after { inset: 34px; background: radial-gradient(circle, rgba(198, 161, 94, .6), transparent 70%); }
@keyframes orb { 50% { transform: scale(1.06) rotate(8deg); box-shadow: 0 0 80px 10px rgba(198, 161, 94, .2); } }
.beat { font: italic 400 1.45rem var(--serif); margin: .25rem 0; opacity: 0; transform: translateY(10px); transition: all 1.1s ease; color: #CFC4B1; }
.beat.in { opacity: 1; transform: none; }
.beat.strong { color: var(--ivory); font-size: 1.9rem; }
.retry { margin-top: 2rem; color: var(--ivory); border-color: var(--ivory); }

#reveal { padding: 0; }
#reveal-root { width: 100%; }
.dark .eyebrow { color: var(--gold2); }
.rv-intro { position: fixed; inset: 0; z-index: 30; background: var(--theatre); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; transition: opacity 1.4s; }
.rv-intro.out { opacity: 0; pointer-events: none; }
.rv-intro .beat { font-size: clamp(1.6rem, 5vw, 2.5rem); }
.rv-intro .beat.strong { font-size: clamp(2.1rem, 7vw, 3.4rem); }
.rv-hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px 16px; position: relative; }
.rv-hero::before { content: ''; position: absolute; width: min(78vw, 560px); aspect-ratio: 4 / 5; border: 1px solid rgba(198, 161, 94, .35); border-radius: 999px 999px 0 0; opacity: 0; transition: opacity 2s .4s; }
.rv-hero.in::before { opacity: 1; }
.archetype { position: relative; font: italic 400 clamp(3rem, 12vw, 6.4rem)/1 var(--serif); color: var(--ivory); margin-bottom: .35em; }
.archetype span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(20px); }
.rv-hero.in .archetype span { animation: letter 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes letter { to { opacity: 1; filter: none; transform: none; } }
.archetype-line { position: relative; font: 400 1.4rem var(--serif); color: var(--gold2); max-width: 28rem; opacity: 0; transition: opacity 1s 1.4s; }
.opening { position: relative; max-width: 32rem; font-size: 1.05rem; color: #CFC4B1; opacity: 0; transition: opacity 1s 2.2s; }
.rv-hero.in .archetype-line, .rv-hero.in .opening { opacity: 1; }
.scroll-cue { position: absolute; bottom: 28px; color: var(--gold2); font-family: var(--serif); animation: cue 2s infinite; opacity: 0; transition: opacity 1s 3s; }
.rv-hero.in .scroll-cue { opacity: 1; }
@keyframes cue { 50% { transform: translateY(8px); } }
.rv.chapter, .rv.closing { max-width: 760px; margin: 0 auto; padding: 80px 20px; opacity: 0; transform: translateY(40px); transition: all 1.1s cubic-bezier(.2, .8, .2, 1); position: relative; }
.rv.chapter::before { content: '✦'; display: block; text-align: center; color: var(--gold2); font-size: .8rem; margin-bottom: 56px;
  background: linear-gradient(var(--gold2), var(--gold2)) left 50% / calc(50% - 22px) 1px no-repeat, linear-gradient(var(--gold2), var(--gold2)) right 50% / calc(50% - 22px) 1px no-repeat; opacity: .55; }
.rv.in { opacity: 1; transform: none; }
.chapter h2 { color: var(--ivory); }
.chapter p { color: #CFC4B1; font-size: 1.04rem; }
.chapter .big { font: italic 400 clamp(1.6rem, 5vw, 2.4rem)/1.3 var(--serif); color: var(--ivory); }
.tension .big { border-left: 1px solid var(--gold2); padding-left: 24px; }
.gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px; margin: 2.4rem 0; }
.gauge { position: relative; text-align: center; }
.gauge svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 1.5; }
.gauge .track { stroke: rgba(243, 235, 221, .12); }
.gauge .bar { stroke: var(--gold2); stroke-width: 2.5; stroke-dasharray: var(--dash); stroke-dashoffset: var(--dash); transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1) .2s; }
.rv.in .gauge .bar { stroke-dashoffset: var(--off); }
.gauge b { position: absolute; left: 0; right: 0; top: 26px; font: 400 1.6rem var(--serif); color: var(--ivory); }
.gauge span { display: block; font-size: .6rem; color: #9E9381; text-transform: uppercase; letter-spacing: .22em; margin-top: 4px; }
.observations { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(198, 161, 94, .25); }
.observations li { padding: 14px 0; border-bottom: 1px solid rgba(198, 161, 94, .25); font-size: .95rem; color: #CFC4B1; }
.observations b { font: italic 500 1.1rem var(--serif); color: var(--gold2); margin-right: 12px; }
.snapshots { display: flex; gap: 16px; overflow-x: auto; margin: 1.8rem 0; scroll-snap-type: x mandatory; padding: 10px 2px 8px; }
.snapshots figure { margin: 0; flex: 0 0 min(86%, 520px); scroll-snap-align: start; }
.snapshots svg { width: 100%; aspect-ratio: 16 / 10; display: block; box-shadow: 0 0 0 6px var(--theatre2), 0 0 0 7px rgba(198, 161, 94, .6); }
.snapshots figcaption { font: italic 400 .98rem var(--serif); color: #9E9381; margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 2rem; border-top: 1px solid rgba(198, 161, 94, .3); border-left: 1px solid rgba(198, 161, 94, .3); }
.stats div { border-right: 1px solid rgba(198, 161, 94, .3); border-bottom: 1px solid rgba(198, 161, 94, .3); padding: 18px; }
.stats b { display: block; font: 400 2.6rem/1.1 var(--serif); color: var(--ivory); }
.stats span { font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; color: #9E9381; }
.traits { display: grid; gap: 22px; }
.trait-head { display: flex; justify-content: space-between; align-items: baseline; }
.trait-head strong { font: 500 1.55rem var(--serif); color: var(--ivory); }
.trait-head b { font: italic 400 1.3rem var(--serif); color: var(--gold2); }
.trait-bar { height: 1px; background: rgba(243, 235, 221, .15); margin: 10px 0 8px; }
.trait-bar i { display: block; height: 3px; margin-top: -1px; width: 0; background: var(--gold2); transition: width 1.8s cubic-bezier(.2, .8, .2, 1) .3s; }
.rv.in .trait-bar i { width: var(--w); }
.trait small { color: #9E9381; font-size: .85rem; }
.needs { margin-top: 3.2rem; }
.needs span { display: inline-block; margin: 0 10px 10px 0; padding: .5rem 1.3rem; border: 1px solid var(--gold2); border-radius: 999px; color: var(--ivory); font: italic 400 1.15rem var(--serif); }
.rx { display: grid; gap: 14px; }
.rx article { padding: 26px 24px; border: 1px solid rgba(198, 161, 94, .4); outline: 1px solid rgba(198, 161, 94, .18); outline-offset: -7px; }
.rx em { font: italic 500 1.2rem var(--serif); color: var(--gold2); }
.rx h3 { font-size: 1.55rem; margin: .3rem 0; color: var(--ivory); }
.rx p { margin: 0; font-size: .95rem; }
.pulse-compare { margin-top: 1.8rem; }
.legend { display: flex; gap: 18px; font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: #9E9381; margin-bottom: 16px; }
.legend i { display: inline-block; width: 14px; height: 2px; background: rgba(243, 235, 221, .4); margin-right: 8px; vertical-align: middle; }
.legend i.after, .pulse-bars i.after { background: var(--gold2); }
.pulse-row { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 14px; margin-bottom: 16px; font: 400 1.1rem var(--serif); color: var(--ivory); }
.pulse-bars { display: grid; gap: 5px; }
.pulse-bars i { display: block; height: 3px; width: 0; background: rgba(243, 235, 221, .4); transition: width 1.6s .3s; }
.rv.in .pulse-bars i { width: var(--w); }
.pulse-row em { font-style: italic; text-align: right; color: #9E9381; }
.pulse-row em.up { color: #B7C9A0; } .pulse-row em.down { color: #D99A86; }
.closing { text-align: center; padding-bottom: 110px !important; }
.closing-line { font: italic 400 clamp(2.2rem, 7vw, 3.4rem)/1.15 var(--serif); color: var(--ivory); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 2.4rem 0; }
.dark .btn { background: var(--gold2); border-color: var(--gold2); color: var(--theatre); }
.dark .btn.ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 235, 221, .5); }
.dark .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--theatre); }
.fineprint { font-size: .74rem; color: #8A8070; max-width: 30rem; margin: 0 auto; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 140%); background: var(--ink); color: var(--paper2); padding: 14px 20px; border-radius: 2px;
  z-index: 50; transition: transform .3s, opacity .3s; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); font-size: .88rem; letter-spacing: .02em; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 900px) {
  .stage-hint { margin-bottom: 40px; }
  .sheet { left: 50%; right: auto; width: 660px; transform: translate(-50%, 105%); border: 1px solid var(--line); border-top-color: var(--gold2); }
  .sheet.open { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------ photoreal living room */
.style-photo { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--line); margin-bottom: .75rem; }
.style-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room-options.single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.room-card.photo { border-radius: 2px; padding: 12px 12px 20px; }
.room-card.photo small { font: 500 .62rem var(--sans); text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }
.style-card.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: .75rem; border-radius: 999px 999px 0 0; background: var(--line); }
.style-grid.photo { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.variants.photo { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.variants.photo img, .variants.photo svg { width: 100%; height: 96px; object-fit: contain; display: block; filter: drop-shadow(0 8px 10px rgba(60, 40, 20, .18)); }
.variants.photo .variant span { font-size: 1rem; text-align: center; line-height: 1.2; }
.variants.photo .variant small { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }

/* The selected object keeps its original light; the handle shows selection. */
.photo-stage .scene .is-active { filter: none; }
.photo-stage #scene [data-spot], .photo-stage .hotspot.filled { cursor: grab; touch-action: none; }
.photo-stage.is-dragging, .photo-stage.is-dragging * { cursor: grabbing !important; user-select: none; }
.photo-stage #scene image { -webkit-user-drag: none; }
.hotspot:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; border-radius: 10px; }
