.fig-reveal { container-type: inline-size; max-width: 1100px; margin: 0 auto 44px; padding: clamp(8px, 2.4vw, 34px) clamp(4px, 2vw, 28px); background: #f1ddbd; border-radius: 4px; color: #3a2412; }
/* botanical decoration, scoped to the fig-reveal section only. Four corner pieces cut from the approved frame artwork sit behind the painting (blended with "darken", so the painting's paper disappears and the line art stays visible at the edges). --bw is the scaled width of the whole 1122px-wide image; every piece is cut from it with background-position, so nothing is stretched. */
.fig-reveal { --bw: clamp(230px, 50cqw, 520px); --u: calc(var(--bw) / 1122); --bo: .9; --bpad: clamp(4px, 2vw, 28px); position: relative; isolation: isolate; }
.fig-reveal .fr-base { mix-blend-mode: darken; }
.fig-reveal .fr-branch { position: relative; }
.fig-reveal::before, .fig-reveal::after, .fig-reveal .fr-branch::before, .fig-reveal .fr-branch::after { content: ''; position: absolute; z-index: -1; pointer-events: none; opacity: var(--bo); mix-blend-mode: darken; background-image: url(assets/botanical-frame.png); background-repeat: no-repeat; background-size: var(--bw) auto; }
/* top-left: fig branch, swirl and left-edge vine */
.fig-reveal::before { top: 0; left: 0; width: calc(var(--u) * 760); height: calc(var(--u) * 650); background-position: 0 0; }
/* bottom-right: leaves, figs and right-edge vine */
.fig-reveal::after { bottom: 0; right: 0; width: calc(var(--u) * 492); height: calc(var(--u) * 545); background-position: calc(var(--u) * -630) calc(var(--u) * -850); }
/* top-right sprig at the head of every branch, so tall sections stay balanced */
.fig-reveal .fr-branch::after { top: 0; right: calc(-1 * var(--bpad)); width: calc(var(--u) * 252); height: calc(var(--u) * 360); background-position: calc(var(--u) * -870) 0; }
/* bottom-left vine at the foot of every branch */
.fig-reveal .fr-branch::before { bottom: 0; left: calc(-1 * var(--bpad)); width: calc(var(--u) * 340); height: calc(var(--u) * 435); background-position: 0 calc(var(--u) * -950); }
.fig-reveal .fr-hint { text-shadow: 0 0 6px #f1ddbd, 0 0 6px #f1ddbd, 0 0 10px #f1ddbd; }
.fig-reveal[hidden] { display: none; }
.fig-reveal .fr-branch { display: block; }
.fig-reveal .fr-branch + .fr-branch { margin-top: clamp(22px, 6cqw, 76px); }
.fig-reveal .fr-stage { position: relative; margin: 0 auto; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* keep the stages hidden until every fig is drawn in its resting (slightly open) state, so a fully closed fig never flashes */
.fig-reveal:not(.is-ready) .fr-stage { visibility: hidden; }
/* soften the painting's own top/bottom edges so each branch blends into the cream panel */
.fig-reveal .fr-base { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.6%, #000 97.4%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 2.6%, #000 97.4%, transparent 100%); }
.fig-reveal .fr-base { position: absolute; display: block; max-width: none; pointer-events: none; }
.fig-reveal .fr-fig { position: absolute; pointer-events: none; }
.fig-reveal .fr-canvas { display: block; width: 100%; height: 100%; max-width: none; }

.fig-reveal .fr-hit { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; clip-path: ellipse(50% 50% at 50% 50%); outline: none; touch-action: manipulation; }
.fig-reveal .fr-hit:disabled { cursor: default; }
.fig-reveal .fr-hit:focus-visible { background: rgba(255, 244, 214, .18); }
.fig-reveal .fr-jewel-hit { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: none; outline: none; touch-action: manipulation; }
.fig-reveal .fr-jewel-hit.is-active { pointer-events: auto; }
.fig-reveal .fr-jewel-hit:focus-visible { outline: 2px solid rgba(60, 36, 18, .7); outline-offset: 2px; border-radius: 12px; }

.fig-reveal .fr-label { position: absolute; display: flex; flex-direction: column; gap: .15em; font-size: clamp(10px, 1.7cqw, 19px); line-height: 1.15; z-index: 2; }
.fig-reveal .fr-align-center { transform: translateX(-50%); align-items: center; text-align: center; }
.fig-reveal .fr-align-left { align-items: flex-start; }
.fig-reveal .fr-align-right { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.fig-reveal .fr-view { display: block; padding: .1em; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: inherit; }
.fig-reveal .fr-name { display: block; font-family: var(--sans, 'Archivo', system-ui, sans-serif); font-weight: 800; font-size: 1.3em; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid rgba(58, 36, 18, 0); transition: border-color .3s; }
.fig-reveal .fr-view:hover .fr-name, .fig-reveal .fr-view:focus-visible .fr-name { border-bottom-color: rgba(58, 36, 18, .8); }
.fig-reveal .fr-row { display: flex; align-items: center; gap: .5em; padding: 0 .1em; white-space: nowrap; }
.fig-reveal .fr-price { font-family: var(--mono, 'Space Mono', ui-monospace, monospace); font-weight: 700; font-size: .95em; letter-spacing: .06em; }
.fig-reveal .fr-close { background: none; border: 0; padding: 0 .3em; cursor: pointer; color: rgba(58, 36, 18, .62); font-family: var(--mono, 'Space Mono', ui-monospace, monospace); font-size: 1.5em; line-height: 1; margin: -.4em 0; visibility: hidden; opacity: 0; transition: opacity .4s ease .5s; }
.fig-reveal .fr-label.is-open .fr-close { visibility: visible; opacity: 1; }
.fig-reveal .fr-close:hover, .fig-reveal .fr-close:focus-visible { color: #3a2412; }
.fig-reveal .fr-hint { margin: clamp(10px, 2vw, 22px) 0 0; text-align: center; font-family: var(--mono, 'Space Mono', ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
/* instruction written on the leaf above each fig; never intercepts taps */
.fig-reveal .fr-leaf-hint { position: absolute; z-index: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); text-align: center; pointer-events: none; user-select: none; -webkit-user-select: none; font-family: var(--sans, 'Archivo', system-ui, sans-serif); font-weight: 700; font-size: clamp(7px, 1.05cqw, 13px); line-height: 1.25; letter-spacing: .12em; color: #FFF4D6; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }
.fig-reveal .fr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
/* the fig reveal replaces the card grid on collection pages that use it (grid markup and data stay in the page) */
.fig-reveal.is-ready ~ .product-grid { display: none; }
@container (max-width: 480px) {
  .fig-reveal .fr-name { font-size: 1.15em; letter-spacing: .03em; }
}
