/* Caelus Space — drawn product renders (shop concept).
   Static CSS drawings of the four products, all made from the same real
   Sentinel-2 crop of San Francisco. Each render sizes itself from its own
   width (container query units), so drop it into any box and it scales.
   The poster follows lib/poster-layout.js exactly: lengths are fractions of
   poster width (cqw), text rows are positioned up from the bottom.
   Used by shop/index.html, shop/snow-globe.html and about.html. */

.stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.stage > * { grid-area: 1 / 1; }
.stage.wall { background:
    radial-gradient(120% 90% at 22% 8%, rgba(255, 236, 210, .10), transparent 55%),
    linear-gradient(115deg, transparent 30%, rgba(255, 240, 220, .04) 30%, rgba(255, 240, 220, .04) 46%, transparent 46%),
    linear-gradient(180deg, #2c2a27 0%, #1f1e1c 70%, #191817 100%); }
.stage.shelf { background:
    linear-gradient(180deg, transparent 0 78%, #3a2c22 78%, #2a2019 81%, #1b1511 100%),
    radial-gradient(70% 60% at 50% 38%, rgba(150, 175, 215, .12), transparent 70%),
    linear-gradient(180deg, #161b24 0%, #10141b 100%); }
.stage.table { background:
    radial-gradient(90% 70% at 70% 15%, rgba(255, 228, 190, .12), transparent 60%),
    repeating-linear-gradient(94deg, rgba(0,0,0,.06) 0 2px, transparent 2px 11px, rgba(255,220,180,.025) 11px 13px, transparent 13px 23px),
    linear-gradient(180deg, #3a2a1f, #271c15); }
.stage.desk { background:
    radial-gradient(80% 60% at 30% 10%, rgba(200, 215, 240, .10), transparent 60%),
    linear-gradient(180deg, #121722 0%, #0d1119 100%); }

/* ---------- Framed print ---------- */
.r-frame { width: 64%; container-type: inline-size; position: relative; }
.r-frame .moulding { padding: 4.2cqw; background: linear-gradient(150deg, #24221f, #0d0d0c 60%);
  box-shadow: 0 6cqw 12cqw rgba(0,0,0,.55), 0 1.2cqw 3cqw rgba(0,0,0,.45), inset 0 0 0 .25cqw rgba(255,255,255,.06); }
.r-frame .glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 18%, rgba(255,255,255,.07) 26%, rgba(255,255,255,.02) 38%, transparent 44%); }
.r-frame.s24x36 { width: 56%; }
.r-frame.s12x16 { width: 50%; }

/* The poster itself. --h is poster height in units of its width ×100
   (133.333 for 12×16 and 18×24, 150 for 24×36). */
.r-poster { --h: 133.333; position: relative; container-type: inline-size; aspect-ratio: 100 / var(--h);
  background: #0b0f1a; overflow: hidden; font-family: Lato, sans-serif; color: #fff;
  box-shadow: inset 0 .8cqw 2cqw rgba(0,0,0,.65); }
.r-poster.tall { --h: 150; }
.r-poster .mat { position: absolute; inset: 2.5cqw; border: max(1px, .5cqw) solid rgba(255,255,255,.85); }
.r-poster .img { position: absolute; left: 5.75cqw; top: 5.75cqw; width: 88.5cqw; height: calc((var(--h) - 53.44) * 1cqw);
  background: #1a1d22 url(/business/sf-sentinel2.jpg) center / cover no-repeat; clip-path: circle(42% at 50% 52%); }
.r-poster .ring { position: absolute; left: calc(50cqw - 38.36cqw); width: 76.72cqw; aspect-ratio: 1; border-radius: 50%;
  top: calc((5.75 + .52 * (var(--h) - 53.44) - 38.36) * 1cqw);
  border: max(1px, .75cqw) solid rgba(255,255,255,.85); box-shadow: 0 0 0 .25cqw rgba(255,255,255,.15); }
.r-poster .row { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; line-height: 1.2;
  transform: translateY(-50%); top: calc((var(--h) - var(--c)) * 1cqw); font-size: calc(var(--s) * 1cqw);
  letter-spacing: calc(var(--t) * 1em); text-indent: calc(var(--t) * 1em); }
.r-poster .message { --c: 32.74; --s: 2.75; --t: .08; font-weight: 300; font-style: italic; color: rgba(255,255,255,.7); }
.r-poster .location { --c: 23.34; --s: 2.75; --t: .2; font-weight: 400; text-transform: uppercase; color: rgba(255,255,255,.9); }
.r-poster .date { --c: 18.45; --s: 2.125; --t: .15; font-weight: 300; text-transform: uppercase; color: rgba(255,255,255,.6); }
.r-poster .coords { --c: 14.25; --s: 1.875; --t: .12; font-weight: 300; text-transform: uppercase; color: rgba(255,255,255,.45); }
.r-poster .divider { position: absolute; left: 46.25cqw; width: 7.5cqw; height: max(1px, .25cqw); top: calc((var(--h) - 28.04) * 1cqw);
  background: rgba(255,255,255,.3); }

/* ---------- Snow globe ---------- */
.r-globe { width: 62%; container-type: inline-size; position: relative; aspect-ratio: 100 / 104; }
/* On a shelf stage (shelf top at 78% of its height) the base sits on the shelf. 4:5 stage: */
.stage.shelf .r-globe { align-self: end; margin-bottom: 26.5%; }
.r-globe .back { position: absolute; left: 8cqw; top: 0; width: 84cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(170, 195, 230, .07) 55%, rgba(10, 14, 20, .55) 100%); }
.r-globe .insert { position: absolute; left: 19cqw; top: 11cqw; width: 62cqw; aspect-ratio: 1; border-radius: 50%;
  background: #1a1d22 url(/business/sf-sentinel2.jpg) center / 118% no-repeat;
  box-shadow: 0 0 0 .5cqw rgba(255,255,255,.18), 0 1cqw 3cqw rgba(0,0,0,.5); }
.r-globe .flakes { position: absolute; left: 8cqw; top: 0; width: 84cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.r-globe .flakes i { position: absolute; width: .9cqw; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.9);
  box-shadow: 0 0 .5cqw rgba(255,255,255,.5); animation: drift 9s linear infinite; }
.r-globe .glass { position: absolute; left: 8cqw; top: 0; width: 84cqw; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 22% at 34% 22%, rgba(255,255,255,.32), rgba(255,255,255,.06) 60%, transparent 72%),
    radial-gradient(ellipse 40% 10% at 64% 88%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 74%, rgba(215, 230, 255, .10) 90%, rgba(0, 0, 0, .35) 99%, rgba(255,255,255,.18) 100%);
  box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.10), inset -1.5cqw -2.2cqw 6cqw rgba(0,0,0,.22); }
.r-globe .glass::after { content: ""; position: absolute; left: 13%; top: 30%; width: 6%; height: 26%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); transform: rotate(18deg); filter: blur(.3cqw); }
.r-globe .base { position: absolute; left: 14cqw; width: 72cqw; top: 76cqw; height: 26cqw; }
.r-globe .collar { position: absolute; left: 6%; right: 6%; top: 0; height: 22%; border-radius: 50% / 100% 100% 30% 30%;
  background: linear-gradient(180deg, #4a3829, #2b2018); box-shadow: inset 0 .4cqw .5cqw rgba(255,235,210,.12); }
.r-globe .body { position: absolute; left: 0; right: 0; top: 14%; bottom: 0; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #1f1712 0%, #4a3727 32%, #5a4430 46%, #3a2b1f 70%, #1a130f 100%); }
.r-globe .plate { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); padding: .9cqw 2.4cqw;
  font: 400 2.3cqw/1.2 Lato, sans-serif; letter-spacing: .22em; white-space: nowrap; color: #2a2116;
  background: linear-gradient(180deg, #eef1f6, #a7b0bf); box-shadow: inset 0 0 0 .15cqw rgba(255,255,255,.3), 0 .15cqw .3cqw rgba(0,0,0,.5); }
.r-globe .shadow { position: absolute; left: 10cqw; width: 80cqw; top: 98cqw; height: 6cqw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
@keyframes drift { from { transform: translateY(-10cqw); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateY(90cqw); opacity: 0; } }

/* ---------- Phone case ---------- */
.r-phone { width: 40%; container-type: inline-size; position: relative; aspect-ratio: 100 / 205; transform: rotate(-7deg); }
.r-phone .case { position: absolute; inset: 0; border-radius: 17cqw; overflow: hidden;
  background: #121315 url(/business/sf-sentinel2.jpg) 40% 50% / auto 100% no-repeat;
  box-shadow: 3cqw 5cqw 8cqw rgba(0,0,0,.55), 1cqw 1.5cqw 2cqw rgba(0,0,0,.45), inset 0 0 0 3cqw #141518, inset 0 0 0 3.4cqw rgba(255,255,255,.08); }
.r-phone .side { position: absolute; right: -1.2cqw; width: 1.4cqw; border-radius: 1cqw; background: linear-gradient(90deg, #1b1c1e, #34363a); }
.r-phone .bump { position: absolute; left: 7cqw; top: 6cqw; width: 42cqw; aspect-ratio: 1; border-radius: 11cqw;
  background: linear-gradient(140deg, #2b2c30, #141517); box-shadow: .6cqw 1.2cqw 2.4cqw rgba(0,0,0,.5), inset 0 0 0 .3cqw rgba(255,255,255,.08); }
.r-phone .lens { position: absolute; width: 14cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(120,150,210,.55) 0 8%, #10131a 20%, #050608 52%, #2a2c31 56%, #0c0d0f 62%, #3a3c42 66%, #15161a 100%); }
.r-phone .flash { position: absolute; width: 4cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f6efdc, #b9ae94); }
.r-phone .sheen { position: absolute; inset: 0; border-radius: 17cqw;
  background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 32%, transparent 70%, rgba(255,255,255,.05)); }

/* ---------- Digital: the two files a buyer receives ---------- */
.r-files { width: 76%; container-type: inline-size; position: relative; aspect-ratio: 1 / 1.05; }
.r-files .file { position: absolute; background: var(--bg-3); border: 1px solid var(--line); border-radius: 2.4cqw;
  padding: 3cqw; box-shadow: 0 4cqw 9cqw rgba(0,0,0,.5); }
.r-files .file.a { left: 0; top: 0; width: 56cqw; transform: rotate(-3deg); }
.r-files .file.b { right: 0; bottom: 0; width: 52cqw; transform: rotate(4deg); }
.r-files .photo { aspect-ratio: 1; background: #1a1d22 url(/business/sf-sentinel2.jpg) center / cover no-repeat; border-radius: 1cqw; }
.r-files .name { display: block; margin-top: 2.4cqw; font: 400 2.5cqw/1.3 Lato, sans-serif; color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-files .tag { position: absolute; top: -2.5cqw; right: -2.5cqw; padding: 1cqw 2.2cqw; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font: 700 2.4cqw/1 Lato, sans-serif; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) { .r-globe .flakes i { animation: none; opacity: .8; } }
