/* The gallery page: one stone presented full-screen, and the page rising over it.
   Layout never depends on the stone; the stone is framed to fit the space the type leaves. */

body { overflow-x: hidden; overscroll-behavior-x: none; }

/* ——— The stone on view ——— */
.hero-stage {
  position: fixed; inset: 0 0 auto 0; height: 100svh; z-index: 0;
  transform-origin: 50% 42%; will-change: transform;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.hero-beam {
  position: absolute; left: 50%; top: 4%; width: 170%; height: 78%; transform: translateX(-50%);
  background: radial-gradient(ellipse 34% 48% at 50% 44%, rgba(255,244,222,.085), transparent 70%);
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-canvas.is-ready { opacity: 1; }
.hero-canvas.is-changing { opacity: 0; transition-duration: .45s; }
.hero-canvas canvas { display: block; width: 100%; height: 100%; -webkit-touch-callout: none; }
.hero-shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.hero-type { position: absolute; inset: 0; pointer-events: none; }
.hero-type a { pointer-events: auto; }

.hero-head {
  position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: baseline;
  padding: calc(env(safe-area-inset-top) + 18px) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
}
.hero-head .wordmark { font-size: 1.02rem; }

.hero-caption {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 132px);
  padding: 0 28px; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity 1.4s ease .5s, transform 1.4s var(--ease) .5s;
}
.is-shown .hero-caption { opacity: 1; transform: none; }
.hero-caption h1 { font-weight: 300; font-size: clamp(2.5rem, 11.5vw, 4rem); line-height: 1; margin: 10px 0 10px; letter-spacing: -.02em; }
.hero-origin { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.02rem; color: var(--muted); }
.hero-caption.is-changing { opacity: 0; transition: opacity .4s ease; }
.hero-hint {
  margin: 0 0 14px; font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-hint.show { opacity: .55; }

.hero-cue {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 50px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 16px;
  font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); text-decoration: none; opacity: 0; transition: opacity 1.4s ease 1.1s, color .3s;
}
.is-shown .hero-cue { opacity: 1; }
.hero-cue i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--muted), transparent); transform-origin: top; animation: cue 3.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ——— The page that rises over it ——— */
.hero-spacer { height: 100svh; }
.rise { position: relative; z-index: 1; background: var(--bg); }
.rise-fade {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 34svh; pointer-events: none; opacity: 0; will-change: opacity;
  background: linear-gradient(rgba(10,9,8,0), rgba(10,9,8,.72) 55%, var(--bg));
}

.particulars { max-width: 560px; margin: 0 auto; padding: 18px 24px 80px; }
.particulars h2 { font-weight: 300; font-size: 2.3rem; line-height: 1.05; margin: 10px 0 26px; }
.particulars .price { margin-top: 30px; }
.includes { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }
.acq-price { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 0; font-family: var(--serif); font-size: 2.2rem; font-feature-settings: "onum", "pnum"; }
.sheet .dialog-zip { margin-top: 8px; }
.particulars .actions { margin-top: 28px; gap: 26px; }

.gallery { max-width: 560px; margin: 0 auto; padding: 72px 24px 24px; border-top: 1px solid var(--faint); }
.gallery-lede { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1.22; margin: 12px 0 44px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.plate { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plate-stone {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin: 0 -24px;
  background: radial-gradient(ellipse 46% 58% at 50% 48%, rgba(255,244,222,.07), transparent 72%);
}
.plate-stone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; scale: 1.32; }
.plate-freeze, .plate-live { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-freeze { opacity: 0; }
.plate-live { opacity: 0; }
.plate-live canvas { display: block; width: 100%; height: 100%; -webkit-touch-callout: none; }
.plate-stone.is-frozen .plate-freeze { opacity: 1; }
.plate-stone.is-frozen > img { opacity: 0; }
/* Live: the turning stone is drawn at the same angle as the still beneath it, and the still
   is gone in the same frame, so there is never a second stone behind the one you turn. */
.plate-stone.is-live .plate-live { opacity: 1; }
.plate-stone.is-live > img, .plate-stone.is-live .plate-freeze { visibility: hidden; }
.plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; }
.plate-head h3 { font-weight: 300; font-size: 1.65rem; line-height: 1.1; margin: 6px 0 0; }
.plate-price { font-family: var(--serif); font-weight: 300; font-size: 1.1rem; font-feature-settings: "onum", "pnum"; white-space: nowrap; color: var(--ink); }
.plate-meta { margin: 6px 0 0; color: var(--muted); font-family: var(--serif); font-weight: 300; font-size: .98rem; font-feature-settings: "onum", "pnum"; }
.plate-meta em { font-style: italic; }
.plate[aria-current="true"] .label { color: var(--gold); }
.plate.is-reserved .plate-price { color: var(--gold); }

.rise .principles { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 560px; padding: 72px 24px 96px; margin: 0 auto; }
.rise footer { flex-direction: column; gap: 6px; padding: 30px 24px calc(30px + env(safe-area-inset-bottom)); }

.contact-cta { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.contact-cta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ——— See it in your space: full screen, nothing scrolls ——— */
.space-dialog {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); overflow: hidden;
}
.space-dialog::backdrop { background: var(--bg); }
.space-dialog[open] { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; } }
.space-dialog .space { opacity: 1; border-radius: 0; }
.space-dialog .frame-btn.back, .space-dialog .frame-actions { top: calc(env(safe-area-inset-top) + 12px); }
.space-dialog .frame-btn.back { left: max(16px, env(safe-area-inset-left)); }
.space-dialog .frame-actions { right: max(16px, env(safe-area-inset-right)); }
.space-dialog .hint { bottom: calc(env(safe-area-inset-bottom) + 24px); white-space: normal; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.space-dialog .drop { inset: calc(env(safe-area-inset-top) + 68px) 16px calc(env(safe-area-inset-bottom) + 24px); padding: 26% 24px 0; }
.space-dialog .sample { top: calc(env(safe-area-inset-top) + 68px + 26% + 120px); }

/* Landscape phone: the stone takes the screen; type steps aside. */
@media (orientation: landscape) and (max-height: 540px) {
  .hero-caption { left: max(22px, env(safe-area-inset-left)); right: auto; bottom: 22px; text-align: left; padding: 0; }
  .hero-caption h1 { font-size: 2rem; margin: 6px 0 4px; }
  .hero-hint { display: none; }
  .hero-cue { left: auto; right: max(22px, env(safe-area-inset-right)); transform: none; bottom: 18px; }
}

/* Wider screens: same page, more room. */
@media (min-width: 900px) {
  .particulars, .gallery, .rise .principles { max-width: 1080px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .particulars { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
  .particulars > .label, .particulars > h2 { grid-column: 1 / -1; }
  .particulars > .specs { grid-row: span 6; }
  .plates { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .plate-stone { margin: 0; }
  .rise .principles { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .rise footer { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cue i { animation: none; }
}
.gallery > h2.label { font-family: var(--sans); font-weight: 500; letter-spacing: .18em; }

/* See it in your space, from the first screen */
.hero-space {
  pointer-events: auto; margin-top: 22px; padding: 11px 22px; border-radius: 999px; cursor: pointer;
  background: rgba(243,238,227,.06); border: 1px solid rgba(243,238,227,.22); color: var(--ink);
  font: 500 .78rem/1 var(--sans); letter-spacing: .06em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s;
}
.hero-space:hover { background: rgba(243,238,227,.12); border-color: rgba(243,238,227,.4); }
.hero-nav { display: flex; gap: 22px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(243,238,227,.3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.spec-link, .includes a, .principles a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(198,160,100,.5); }
.spec-link:hover, .includes a:hover, .principles a:hover { border-color: var(--gold); }
.includes a, .principles a { color: var(--ink); white-space: nowrap; }
@media (orientation: landscape) and (max-height: 540px) { .hero-space { margin-top: 12px; padding: 9px 18px; } }

/* Sample garden: the stone is already standing in it; the way to your own photo is one tap */
.sample-tag, .own-photo { position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .6s ease; white-space: nowrap; }
.sample-tag { top: calc(env(safe-area-inset-top) + 74px); margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(10,9,8,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,238,227,.8); }
.own-photo { bottom: calc(env(safe-area-inset-bottom) + 76px); padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.space.is-sample.is-placed .sample-tag, .space.is-sample.is-placed .own-photo { opacity: 1; pointer-events: auto; }
.space.is-sample .frame-actions label[for="photoInput"] { display: none; }
.rise footer a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--faint); }

/* ——— Two views ——— */
body[data-view="stone"] .hero-spacer { height: 56svh; }
body[data-view="stone"] .hero-caption, body[data-view="stone"] .hero-cue, body[data-view="stone"] .hero-hint { display: none; }
body[data-view="stone"] .rise-fade { height: 10svh; }
body[data-view="stone"] .particulars { padding-top: 6px; }
body[data-view="stone"] .particulars h2 { font-size: clamp(2.4rem, 10vw, 3.4rem); margin-top: 6px; }
body[data-view="home"] .particulars { display: none; }
body[data-view="home"] .gallery { border-top: 0; }
body[data-view="home"] #othersTitle, body[data-view="stone"] #collectionTitle, body[data-view="stone"] .gallery-lede { display: none; }
body[data-view="stone"] #othersTitle { margin-bottom: 36px; }
body[data-view="stone"] .plate[aria-current="true"] { display: none; }
body[data-view="home"] .hero-canvas { cursor: pointer; }

.rise, .hero-caption, .hero-actions { transition: opacity .32s ease; }
body.is-routing .rise, body.is-routing .hero-caption { opacity: 0; }

.hero-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 22px; pointer-events: auto; }
.hero-actions .hero-space { margin-top: 0; }
.hero-details { color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .06em; padding: 11px 4px; border-bottom: 1px solid rgba(243,238,227,.3); padding-bottom: 3px; }
.share { margin-top: 26px; color: var(--muted); font-size: .84rem; }
.share:hover { color: var(--ink); }
@media (orientation: landscape) and (max-height: 540px) { .hero-actions { justify-content: flex-start; margin-top: 12px; } }
.hero-details { line-height: 1.2; padding: 0 2px 3px; }

/* The price block reads as one unit; the actions stand apart from it. */
.particulars .price { margin-top: 36px; }
.particulars .deliver { margin-top: 2px; }
.particulars .zip-message { min-height: 0; margin: 4px 0 0; }
.particulars .zip-message:not(.show) { display: none; }
.particulars .includes { margin-top: 4px; font-size: .78rem; }
.particulars .actions { margin-top: 36px; }

/* The stone's light fades into the page rather than stopping at its edge. */
body[data-view="stone"] .rise-fade { height: 18svh; background: linear-gradient(rgba(10,9,8,0), rgba(10,9,8,.55) 50%, var(--bg)); }

.hero-dims { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .8s ease; }
.hero-dims line { stroke: rgba(243,238,227,.4); stroke-width: 1; }
.hero-dims text { fill: rgba(243,238,227,.85); font-family: var(--serif); font-weight: 300; font-size: 15px; font-feature-settings: "onum", "pnum"; text-anchor: middle; dominant-baseline: middle; }
body.show-dims[data-view="stone"] .hero-dims { opacity: 1; }
.spec-dims { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.spec-dims dd { text-decoration: underline dotted rgba(243,238,227,.35); text-underline-offset: 5px; transition: color .3s; }
body.show-dims .spec-dims dd { color: var(--gold); text-decoration-color: rgba(198,160,100,.6); }

/* How it works: one informational block, clearly apart from the gallery above it. */
.rise .principles {
  max-width: none; margin: 72px 0 0; padding: 56px 24px 64px; gap: 26px;
  background: #13120f; border-top: 1px solid rgba(243,238,227,.2); border-bottom: 1px solid var(--faint);
}
.rise .principles > * { width: 100%; max-width: 512px; margin: 0 auto; }
.rise .principles > .label { margin-bottom: 4px; }
.rise .principles h3 { font-size: 1.15rem; margin: 0 0 4px; }
.rise .principles p { margin: 0; color: rgba(243,238,227,.7); font-size: .92rem; }
@media (min-width: 900px) {
  .rise .principles { grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; column-gap: 56px; padding: 64px var(--gutter) 72px; }
  .rise .principles > * { max-width: none; margin: 0; }
  .rise .principles > .label { grid-column: 1 / -1; }
}

/* A thick footer: how it works, the way in for professionals, then the small print. */
.site-foot { margin-top: 72px; background: #13120f; border-top: 1px solid rgba(243,238,227,.2); }
.site-foot .principles { display: grid; gap: 26px; max-width: 560px; margin: 0 auto; padding: 56px 24px 44px; background: none; border: 0; }
.site-foot .principles > * { max-width: none; margin: 0; }
.foot-technical {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px;
  max-width: 512px; margin: 0 auto 48px; padding: 22px 24px; width: calc(100% - 48px); box-sizing: border-box;
  border: 1px solid rgba(198,160,100,.45); border-radius: 14px; color: var(--ink); text-decoration: none;
  transition: border-color .3s, background .3s;
}
.foot-technical:hover { border-color: var(--gold); background: rgba(198,160,100,.05); }
.foot-technical .label { grid-column: 1; color: var(--gold); }
.foot-technical-title { grid-column: 1; font-family: var(--serif); font-weight: 300; font-size: 1.2rem; line-height: 1.25; }
.foot-arrow { grid-column: 2; grid-row: 1 / 3; font-size: 1.3rem; color: var(--gold); }
.foot-base { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--faint); color: var(--muted); font-size: .74rem; }
.foot-base a { color: inherit; }
@media (min-width: 900px) {
  .site-foot .principles { max-width: 1080px; grid-template-columns: repeat(3, 1fr); column-gap: 56px; padding: 72px var(--gutter) 52px; }
  .site-foot .principles > .label { grid-column: 1 / -1; }
  .foot-technical { max-width: calc(1080px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin-bottom: 64px; }
  .foot-base { flex-direction: row; justify-content: space-between; padding-left: var(--gutter); padding-right: var(--gutter); }
}

.rise footer.site-foot { display: block; padding: 0; }
.site-foot .principles > .label { font-family: var(--sans); font-weight: 500; letter-spacing: .18em; }
.site-foot .principles h3 { color: var(--ink); }
.foot-base { max-width: 560px; margin: 0 auto; box-sizing: border-box; }
@media (min-width: 900px) { .foot-base { max-width: 1080px; } }
.foot-technical .foot-technical-title { color: var(--ink); }

.spec-dims dd { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.measure-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; opacity: .4; transition: opacity .3s; }
.spec-dims:hover .measure-icon, body.show-dims .measure-icon { opacity: .9; }
.specs > .spec-dims { justify-content: space-between; }

/* ——— Acquire: a full screen of its own ——— */
.acquire { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.acquire::backdrop { background: var(--bg); }
.acquire[open] { animation: acq-in .55s var(--ease); }
@keyframes acq-in { from { opacity: 0; transform: translateY(18px); } }
.acq-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.acq-close { position: fixed; z-index: 2; top: calc(env(safe-area-inset-top) + 14px); right: max(16px, env(safe-area-inset-right)); padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(243,238,227,.2); background: rgba(10,9,8,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font: 500 .8rem/1 var(--sans); cursor: pointer; }
.acq-page { max-width: 480px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 64px) 24px calc(env(safe-area-inset-bottom) + 56px); }
.acq-hero { height: 220px; display: grid; place-items: center; margin-bottom: 18px; background: radial-gradient(ellipse 50% 55% at 50% 55%, rgba(255,244,222,.08), transparent 72%); }
.acq-hero img { max-height: 100%; max-width: 78%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.7)); }
.acquire h2 { font-weight: 300; font-size: 2.6rem; line-height: 1.05; margin: 8px 0 6px; }
.acq-origin { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); }
.acq-price-block { margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.acq-price { display: flex; align-items: baseline; gap: 12px; margin: 0; font-family: var(--serif); font-weight: 300; font-size: 2.3rem; font-feature-settings: "onum", "pnum"; }
.acq-price-block .deliver { margin-top: 4px; }
.acq-price-block .zip-message { min-height: 0; margin: 4px 0 0; }
.acq-price-block .zip-message:not(.show) { display: none; }
.acq-price-block .includes { margin-top: 6px; font-size: .8rem; }
.acq-h { margin: 44px 0 18px; }
.acq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.acq-steps li { position: relative; padding-left: 40px; counter-increment: s; }
.acq-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 3px; font-size: .68rem; letter-spacing: .14em; color: var(--gold); }
.acq-steps h4 { margin: 0 0 3px; font-family: var(--serif); font-weight: 400; font-size: 1.08rem; }
.acq-steps p { margin: 0; color: rgba(243,238,227,.7); font-size: .9rem; }
.acq-fields { display: grid; gap: 14px; }
.acq-fields label { display: grid; gap: 6px; }
.acq-fields span { font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.acq-fields input { font: 400 1.05rem/1.3 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(243,238,227,.22); border-radius: 0; padding: 8px 0 10px; outline: none; transition: border-color .3s; }
.acq-fields input:focus { border-color: var(--gold); }
.acq-error { min-height: 1.2em; margin: 16px 0 0; color: var(--gold); font-size: .84rem; }
.acquire .btn.wide { margin-top: 18px; padding: 17px 34px; font-size: 1rem; }
.acquire .fine { text-align: center; }

/* Held: the card arrives slowly, the gold rule draws across, then the details settle in. */
.acq-done { text-align: center; }
.acq-card { padding: 30px 24px 26px; border: 1px solid rgba(198,160,100,.35); border-radius: 18px; background: linear-gradient(180deg, rgba(198,160,100,.06), rgba(198,160,100,0) 55%), var(--raise); text-align: center; }
.acq-held { color: var(--gold); }
.acq-card .acq-hero { margin: 14px 0 6px; }
.acq-rule { display: block; height: 1px; margin: 22px auto 6px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); }
.acq-card .specs { text-align: left; }
.acq-until { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.acq-next { margin: 26px 8px 0; color: rgba(243,238,227,.78); font-size: .95rem; }
.acquire.is-held .acq-card { animation: held-card 1.4s var(--ease) both; }
.acquire.is-held .acq-card .acq-hero img { animation: held-stone 2.2s var(--ease) both .15s; }
.acquire.is-held .acq-rule { animation: held-rule 1.2s var(--ease) both .7s; }
.acquire.is-held .acq-card .specs, .acquire.is-held .acq-until { animation: held-fade 1s ease both 1.1s; }
.acquire.is-held .acq-next, .acquire.is-held .acq-done > .btn { animation: held-fade 1s ease both 1.5s; }
@keyframes held-card { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes held-stone { from { opacity: 0; transform: scale(1.08); filter: drop-shadow(0 16px 18px rgba(0,0,0,.7)) brightness(.4); } }
@keyframes held-rule { to { transform: scaleX(1); } }
@keyframes held-fade { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .acquire.is-held * { animation: none !important; } .acq-rule { transform: none; } }

.acquire .acq-price { justify-content: flex-start; }
.acq-price .price-label { order: -1; }
.acq-price.is-all-in .price-label { order: 2; }
.acquire h3.label { font-family: var(--sans); font-weight: 500; letter-spacing: .18em; }
.space.is-sample .own-photo { bottom: calc(env(safe-area-inset-bottom) + 28px); }
.space.is-sample .hint { bottom: calc(env(safe-area-inset-bottom) + 96px); }

/* ——— In place ——— */
body[data-view="stone"] .inplace { display: none; }
.inplace { padding: 64px 0 8px; }
.inplace > .label, .inplace-lede { max-width: 512px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.inplace > .label { font-family: var(--sans); font-weight: 500; letter-spacing: .18em; }
.inplace-lede { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1.22; margin-top: 12px; margin-bottom: 30px; }
.inplace-strip {
  list-style: none; margin: 0; padding: 0 24px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 440px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.inplace-strip::-webkit-scrollbar { display: none; }
.inplace-strip li { scroll-snap-align: start; }
.inplace-card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.inplace-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--raise); }
.inplace-cap { display: grid; gap: 2px; margin-top: 12px; }
.inplace-cap b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.inplace-cap span { color: var(--muted); font-size: .82rem; }
@media (min-width: 900px) {
  .inplace > .label, .inplace-lede { max-width: 1080px; padding: 0 var(--gutter); }
  .inplace-strip { padding: 0 max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter))) 8px; scroll-padding: 0 max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter))); grid-auto-columns: 380px; }
}

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050404; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: #050404; }
.lightbox[open] { animation: fade .4s ease; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; }
.lb-slide img { display: block; width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; }
.lb-slide figcaption { display: grid; gap: 3px; padding: 18px 24px 0; }
.lb-slide figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.lb-slide figcaption span { color: var(--muted); font-size: .86rem; }
.lb-count { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); transform: translateX(-50%); margin: 0; font-size: .7rem; letter-spacing: .18em; color: var(--muted); }
.gallery { border-top: 0; }

/* Full bleed: the room runs behind Safari's floating toolbar; controls sit clear of it. */
.space-dialog { height: 100lvh; }
.space-dialog .space { height: 100%; }
.space-dialog { --toolbar: calc(100lvh - 100dvh); }
.space.is-sample .own-photo { bottom: calc(var(--toolbar, 0px) + env(safe-area-inset-bottom) + 24px); }
.space.is-sample .hint, .space-dialog .hint { bottom: calc(var(--toolbar, 0px) + env(safe-area-inset-bottom) + 92px); }
.space.is-sample #photo { opacity: 1; transform: none; transition: none; }
.space.is-sample .drop, .space.is-sample .sample { display: none; }
