/* Print shop — builds on the site's style.css */
.shop-intro { max-width: 1500px; margin: 0 auto clamp(48px, 8vh, 96px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.shop-intro h1 { margin: 0; }
.shop-intro p { margin: 0; color: var(--bone-dim); max-width: 46ch; }
.shop-lede { max-width: 46ch; } /* measured in the serif, so the notes below end where the paragraph does */
.shop-lede > p { max-width: none; }
.shop-lede > p:first-child { text-wrap: pretty; }
.nw { white-space: nowrap; }
.shop-notes .shop-freeship .note { display: block; }
.shop-notes .shop-freeship .note-sep { display: none; }
/* Shipping notes: one tight, even stack under the intro */
.shop-notes { display: grid; justify-items: start; gap: 7px; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--rule); line-height: 1.6; }
.shop-notes .shop-freeship { color: var(--ember); letter-spacing: .12em; } /* first statement fits the paragraph width on one line */
.shop-notes .shop-duties { color: var(--mute); text-transform: none; letter-spacing: .04em; }
.shop-notes .shop-policies { margin-top: 5px; }

.shop-filters { max-width: 1500px; margin: 0 auto clamp(28px, 5vh, 48px); }
.shop-filters .chip { background: none; cursor: pointer; }
.shop-filters .chip.on { background: var(--bone); }
.chip-n { color: var(--ember); margin-right: 4px; }
.shop-filters .chip.on .chip-n { color: var(--ink); }
.pd-duties { color: var(--mute); margin: -12px 0 24px; text-transform: none; letter-spacing: .04em; }
.pd-duties.is-country, .shop-duties.is-country { color: var(--ember); }
.pd-story { color: var(--mute); margin: -24px 0 36px; line-height: 1.8; }
.pd-story a { color: var(--bone-dim); }
.pd-story a:hover { color: var(--bone); }
.print-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px) clamp(16px, 2.4vw, 40px); }
.print-card { text-decoration: none; display: grid; gap: 14px; }
.print-img { position: relative; display: block; background: var(--ink-2); aspect-ratio: 4 / 5; transition: background .4s; }
.print-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0,0,0,.6)); transition: transform 1s var(--ease); }
.print-card:hover .print-img { background: #1a1814; }
.print-card:hover .print-img img { transform: scale(1.02); }
.print-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; }
.print-meta .mono { color: var(--mute); }
.print-title { font-family: var(--serif); font-size: 24px; }

.pd { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pd-info h1 { margin-bottom: 16px; }
.pd-line { font-family: var(--serif); font-size: 22px; color: var(--bone-dim); margin: 0 0 40px; }
.pd-opts { display: grid; gap: 24px; margin-bottom: 32px; }
.pd-opts fieldset { border: 0; padding: 0; margin: 0; }
.pd-opts legend { color: var(--bone-dim); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--rule); color: var(--bone-dim); transition: border-color .3s, color .3s; }
.chip:hover:not(:disabled) { color: var(--bone); border-color: var(--bone-dim); }
.chip.on { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.chip:disabled { opacity: .3; cursor: not-allowed; }
.pd-price { font-family: var(--serif); font-size: 40px; font-weight: 300; margin: 0 0 20px; }
.pd-buy:disabled { opacity: .45; cursor: not-allowed; }
.pd-buy:disabled:hover { background: none; color: inherit; border-color: var(--bone-dim); }
.pd-msg { color: var(--ember); min-height: 1.5em; margin: 14px 0 0; }
.pd-spec { margin: 40px 0 0; border-top: 1px solid var(--rule); display: grid; }
.pd-spec div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pd-spec dt { color: var(--mute); }
.pd-spec dd { margin: 0; color: var(--bone-dim); text-transform: none; letter-spacing: .04em; }
.back { display: inline-block; margin-bottom: 40px; color: var(--bone-dim); text-decoration: none; }
.back:hover { color: var(--bone); }

@media (max-width: 760px) {
  .shop-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filters .chip { flex: none; }
}
@media (max-width: 960px) {
  .print-grid { grid-template-columns: 1fr 1fr; }
  .shop-intro { grid-template-columns: 1fr; }
  /* Tablets keep the print page in two columns, so price and "Add to cart" sit beside the photo */
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .pd-img { position: static; }
  .pd-img img { max-height: 70vh; }
}
@media (max-width: 560px) {
  .print-grid { grid-template-columns: 1fr; }
}

.pd-ship { color: var(--bone-dim); margin: -8px 0 6px; min-height: 1.4em; }
.pd-eta { color: var(--mute); margin: 0 0 20px; text-transform: none; letter-spacing: .04em; }

/* Product preview — to scale, from Prodigi's specs */
.pd-view { position: sticky; top: 100px; }
.pd-carousel { position: relative; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(12,11,9,.72); border: 1px solid rgba(235,228,214,.35); color: var(--bone); font-family: var(--mono); font-size: 16px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .3s, border-color .3s, transform .3s; z-index: 2; }
.pd-nav:hover { background: rgba(12,11,9,.9); border-color: rgba(235,228,214,.7); transform: translateY(-50%) scale(1.06); }
.pd-prev { left: 10px; } .pd-next { right: 10px; }
.pd-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-dots button { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--rule); color: var(--bone-dim); }
.pd-dots button.on { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.pd-stage { position: relative; height: min(72vh, 640px); background: #d9d4cb; overflow: hidden; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.pd-stage.is-print { background: linear-gradient(#dcd7ce, #cfc9bf); }
.pd-stage.is-wall { display: block; background: #d3cdc2; }
.room { position: absolute; inset: 0; background: linear-gradient(#ddd7cc, #d4cec2); }
.room-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #8f877b; stroke: #8f877b; }
.room-svg .lt { fill: #a69e92; stroke: none; } .room-svg .lt2 { fill: #b8b1a5; stroke: none; } .room-svg .ln { fill: none; stroke: #7e776b; }
.room-svg .floor { fill: #a39b8e; stroke: none; }
.room-svg rect, .room-svg path:not(.ln), .room-svg circle { stroke: none; }
.pc { position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 28px -10px rgba(0,0,0,.45); }
.pc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-paper { background: #fbfaf7; }
.pc-frame { box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 1px 1px 0 rgba(255,255,255,.12), 0 2px 3px rgba(0,0,0,.3), 0 18px 32px -12px rgba(0,0,0,.5); }
.pc-white { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 2px 3px rgba(0,0,0,.18), 0 18px 32px -12px rgba(0,0,0,.4); }
.pc-window { width: 100%; height: 100%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.pc-window img { box-shadow: none; }
.pc-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.07), transparent 40%); }
.pd-corner { position: absolute; right: 14px; bottom: 12px; margin: 0; width: 84px; text-align: center; }
.pd-corner img { width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.pd-corner figcaption { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #565046; margin-top: 4px; }
.wall-piece { position: absolute; left: 50%; transform: translateX(-50%); }
.wall-ref { position: absolute; left: 12px; bottom: 12px; font-size: 9px; letter-spacing: .12em; color: #565046; }
.pd-facts { display: grid; gap: 4px; margin-top: 12px; font-size: 10.5px; letter-spacing: .1em; color: var(--bone-dim); text-transform: none; }
@media (max-width: 960px) { .pd-stage { height: min(60vh, 560px); } .pd-dots button { padding: 7px 8px; } }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } .pd-view { position: static; } .pd-stage { height: 62vh; } }

.pd-stage.is-photo { background: var(--ink-2); }
.pd-photo { max-width: 92%; max-height: 92%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85); }

.pd-static { min-height: 110vh; } /* the pre-render placeholder holds the page open, so nothing below it jumps when the print page draws */
.pd-static img { max-width: 100%; height: auto; }

/* Cart — slides in from the right, same ink and mono as the rest */
.cart-lock, .cart-lock body { overflow: hidden; }
.cart { position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.cart.open { visibility: visible; pointer-events: auto; transition: none; }
.cart-scrim { position: absolute; inset: 0; background: rgba(6, 6, 5, .6); opacity: 0; transition: opacity .5s var(--ease); }
.cart.open .cart-scrim { opacity: 1; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ink); border-left: 1px solid var(--rule); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); outline: none; }
.cart.open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px 20px; border-bottom: 1px solid var(--rule); color: var(--bone-dim); }
.cart-x { color: var(--bone-dim); } .cart-x:hover { color: var(--bone); }
.cart-lines { list-style: none; margin: 0; padding: 0 28px; overflow-y: auto; flex: 1; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.cart-line img { width: 64px; height: 64px; object-fit: cover; }
.cart-line p { margin: 0; }
.cart-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.cart-title .mono { color: var(--mute); font-size: 9.5px; margin-left: 4px; }
.cart-opt { color: var(--bone-dim); margin-top: 4px !important; font-size: 10px; letter-spacing: .12em; }
.cart-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px !important; color: var(--bone); }
.cart-qty button { width: 26px; height: 26px; border: 1px solid var(--rule); color: var(--bone-dim); line-height: 1; }
.cart-qty button:hover { color: var(--bone); border-color: var(--bone-dim); }
.cart-qty .cart-rm { display: grid; place-items: center; width: 26px; height: 26px; border: 0; color: var(--mute); margin-left: 4px; transition: color .3s var(--ease); }
.cart-qty .cart-rm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cart-qty .cart-rm:hover, .cart-qty .cart-rm:focus-visible { color: var(--ember); }
.cart-price { font-family: var(--serif); font-size: 19px; }
.cart-empty { padding: 48px 0; color: var(--bone-dim); }
.cart-empty p { font-family: var(--serif); font-size: 24px; margin: 0 0 16px; }
.cart-empty a { color: var(--bone-dim); }
.cart-foot { padding: 20px 28px 28px; border-top: 1px solid var(--rule); }
.cart-foot[hidden] { display: none; }
.cart-nudge { color: var(--ember); margin: 0 0 18px; line-height: 1.8; text-transform: none; letter-spacing: .06em; }
.cart-nudge:empty { display: none; }
.cart-nudge button { color: var(--bone); border-bottom: 1px solid var(--ember); letter-spacing: .14em; }
.cart-code label { display: block; color: var(--mute); margin-bottom: 8px; }
.cart-code-row { display: flex; border: 1px solid var(--rule); }
.cart-code-row input { flex: 1; min-width: 0; background: none; border: 0; color: var(--bone); font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding: 11px 12px; }
.cart-code-row input:focus { outline: 1px solid var(--bone-dim); outline-offset: -1px; }
.cart-code-row button { padding: 0 16px; border-left: 1px solid var(--rule); color: var(--bone-dim); }
.cart-code-row button:hover { color: var(--bone); }
.cart-code-msg { min-height: 1.4em; margin: 8px 0 10px; color: var(--bone-dim); text-transform: none; letter-spacing: .06em; }
.cart-sum { margin: 0 0 6px; display: grid; gap: 6px; }
.cart-sum div { display: flex; justify-content: space-between; color: var(--bone-dim); }
.cart-sum dd { margin: 0; }
.cart-sum .cart-disc { color: var(--ember); }
.cart-sum .cart-disc[hidden] { display: none; }
.cart-sum .cart-total { color: var(--bone); padding-top: 8px; border-top: 1px solid var(--rule); margin-top: 4px; }
.cart-sum .cart-total dd { font-family: var(--serif); font-size: 26px; letter-spacing: 0; text-transform: none; }
.cart-ship { color: var(--mute); margin: 0 0 18px; text-transform: none; letter-spacing: .06em; line-height: 1.7; }
.cart-checkout { width: 100%; justify-content: center; }
.pd-multi { color: var(--ember); margin: 14px 0 0; text-transform: none; letter-spacing: .06em; }
.pd-multi:empty { display: none; }
@media (max-width: 560px) { .cart-head, .cart-lines, .cart-foot { padding-left: 18px; padding-right: 18px; } }
.shop-policies { display: inline-block; margin-top: 10px; color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--rule); }
.shop-policies:hover { color: var(--bone); }
.cart-ship a { color: var(--bone-dim); }

/* From the same chapter: three neighbouring prints under each print page */
.pd-kin { max-width: 1500px; margin: clamp(80px, 12vh, 140px) auto 0; padding-top: 32px; border-top: 1px solid var(--rule); }
.pd-kin .dateline a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--rule); }
.pd-kin .dateline a:hover { color: var(--bone); }
.pd-kin-grid { margin-top: 28px; }
.pd-kin-note { color: var(--bone-dim); margin: 32px 0 0; text-transform: none; letter-spacing: .06em; }

/* ── Photographed rooms + after dark ──
   The room photo covers the stage. Turning off the lights: the room dims, a brass picture light comes on,
   then the whole screen follows and only the print is left in the light. */
.room-photo { background: #1a1714; }
.room-img { position: absolute; max-width: none; display: block; }
/* wall continued above the photo on narrow stages: the photo's own top, stretched and blurred */
.room-fill { inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; object-position: 50% 0; filter: blur(28px); transform: scaleY(1.6); transform-origin: top; }
.room-fade { -webkit-mask-image: linear-gradient(transparent, #000 var(--fade)); mask-image: linear-gradient(transparent, #000 var(--fade)); }
.fs-ld-dark { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; /* dark, never black: the furniture stays just visible, a little darker at the edges like a room at night */
  background: radial-gradient(70% 70% at 50% 40%, rgba(7,7,10,.925) 20%, rgba(5,5,6,.978) 100%);
  transition: opacity 1.8s cubic-bezier(.4,0,.2,1); will-change: opacity; }
.fs-ld-piece { z-index: 3; }
.fs-ld-piece .pc { transition: box-shadow 1.6s var(--ease); }
.fs-ld-piece .pc img { transition: filter 1.4s var(--ease); }
.is-room .wall-ref { z-index: 4; color: #6b6458; transition: opacity 1.2s var(--ease); }

/* brass picture light: always on the wall, lit only after dark */
.fs-ld-lamp { position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; filter: drop-shadow(3px 5px 4px rgba(60,45,25,.28)); transition: filter 1.8s cubic-bezier(.4,0,.2,1); }
.fs-ld-hood { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fs-ld-rod { position: absolute; left: 50%; top: 88%; width: var(--rod); height: calc(var(--stem) + 12%); transform: translateX(-50%); border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #6e5427, #e2c88e 40%, #b08f4c 60%, #5e4723); }
.fs-ld-strip { fill: #d8cfbf; transition: fill .2s; }
.fs-ld-lamp::after { content: ""; position: absolute; left: -2%; right: -2%; top: 88%; height: 140%; pointer-events: none; opacity: 0;
  background: radial-gradient(52% 70% at 50% 0%, rgba(255,232,190,.55), rgba(255,210,150,.16) 45%, transparent 80%); filter: blur(4px); }
.fs-ld-beam { position: absolute; z-index: -1; left: 50%; top: -14%; width: 170%; height: 130%; transform: translateX(-50%); pointer-events: none; opacity: 0;
  background: radial-gradient(46% 60% at 50% 0%, rgba(255,214,160,.30), rgba(255,196,130,.11) 42%, rgba(255,190,120,.035) 62%, transparent 78%); filter: blur(8px); }
.fs-ld-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(rgba(255,226,180,.06), transparent 35%, rgba(0,0,0,.22) 100%); }
.fs-ld-dust { position: absolute; left: -35%; top: -10%; width: 170%; height: 115%; pointer-events: none; opacity: 0; transition: opacity 2.5s ease; }

/* museum label, legible only in the light spill */
.fs-ld-label { position: absolute; z-index: 3; width: min(200px, 26%); display: grid; gap: .45em; color: #b7ad9b; opacity: 0; transform: translateY(6px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); font-size: 12px; pointer-events: none; }
.fs-ld-label.under { left: 12%; right: 12%; width: auto; justify-items: center; text-align: center; }
.fs-ld-label b { font-family: var(--serif); font-weight: 400; font-size: 1.8em; line-height: 1; color: #e6dccb; }
.fs-ld-label i { font-family: var(--serif); font-size: 1.15em; line-height: 1.25; }
.fs-ld-label .mono { font-size: .72em; letter-spacing: .18em; text-transform: uppercase; color: #8b8170; }

/* the switch: one pill, one easing, the label cross-fades instead of jumping */
.fs-ld-switch { --sw-ease: cubic-bezier(.65,0,.35,1); position: absolute; z-index: 5; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 11px;
  padding: 8px 15px 8px 9px; border-radius: 999px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #3d3830;
  background: rgba(244,240,232,.82); border: 1px solid rgba(0,0,0,.07); box-shadow: 0 6px 18px -8px rgba(0,0,0,.35);
  transition: color .9s var(--sw-ease), background-color .9s var(--sw-ease), border-color .9s var(--sw-ease), box-shadow .9s var(--sw-ease), transform .25s var(--sw-ease); }
.fs-ld-switch:hover { background-color: rgba(252,249,243,.95); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.4); }
.fs-ld-switch:active { transform: translateY(0) scale(.98); }
.fs-ld-toggle { position: relative; flex: none; width: 30px; height: 16px; border-radius: 999px; background: #bdb5a7; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); transition: background-color .7s var(--sw-ease); }
.fs-ld-toggle span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .55s var(--sw-ease), background-color .7s var(--sw-ease), box-shadow .7s var(--sw-ease); }
.fs-ld-words { display: grid; }
.fs-ld-words > span { grid-area: 1 / 1; transition: opacity .45s var(--sw-ease), transform .45s var(--sw-ease); }
.fs-ld-words > span + span { opacity: 0; transform: translateY(5px); }
.fs-ld-switch[aria-pressed="true"] { color: #a0957f; background-color: rgba(18,16,13,.62); border-color: rgba(235,228,214,.12); box-shadow: 0 6px 18px -8px rgba(0,0,0,.8); }
.fs-ld-switch[aria-pressed="true"] .fs-ld-toggle { background-color: #3a352e; }
.fs-ld-switch[aria-pressed="true"] .fs-ld-toggle span { transform: translateX(14px); background-color: #e0a56b; box-shadow: 0 0 8px rgba(224,165,107,.6); }
.fs-ld-switch[aria-pressed="true"] .fs-ld-words > span:first-child { opacity: 0; transform: translateY(-5px); }
.fs-ld-switch[aria-pressed="true"] .fs-ld-words > span + span { opacity: 1; transform: none; }

/* ── stage 1: dusk in the room ── */
.is-room.dusk .fs-ld-dark { opacity: 1; }
.is-room.dusk .fs-ld-piece .pc { box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.5), 0 30px 40px -18px rgba(0,0,0,.85); }
.is-room.dusk .fs-ld-piece .pc img { filter: brightness(.35) saturate(.7); }
.is-room.dusk .fs-ld-lamp { filter: brightness(.42) saturate(.8); }
.is-room.dusk .wall-ref { opacity: 0; }

/* ── stage 2: the picture light comes on, with the little stutter of a real bulb ── */
.is-room.lamp .fs-ld-beam { animation: fs-ld-on 1.1s steps(1, end) forwards, fs-ld-breathe 9s ease-in-out 1.1s infinite; }
.is-room.lamp .fs-ld-glow { animation: fs-ld-on 1.1s steps(1, end) forwards; }
.is-room.lamp .fs-ld-lamp, .is-room.lit .fs-ld-lamp { filter: brightness(.95) drop-shadow(0 1px 8px rgba(255,214,160,.35)); }
.is-room.lamp .fs-ld-strip, .is-room.lit .fs-ld-strip { fill: #fffaf0; filter: drop-shadow(0 0 6px rgba(255,236,200,.9)); }
.is-room.lamp .fs-ld-lamp::after { animation: fs-ld-on 1.1s steps(1, end) forwards; }
.is-room.lit .fs-ld-lamp::after { opacity: 1; }
.is-room.lamp .fs-ld-piece .pc img, .is-room.lit .fs-ld-piece .pc img { filter: brightness(1.04) contrast(1.06) saturate(1.04); transition: filter .9s .25s var(--ease); }
.is-room.lamp .fs-ld-piece .pc, .is-room.lit .fs-ld-piece .pc { box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), inset 0 3px 2px -1px rgba(255,220,170,.18), 0 2px 2px rgba(0,0,0,.7), 0 40px 46px -20px rgba(0,0,0,.95); }
.is-room.lamp .fs-ld-dust, .is-room.lit .fs-ld-dust { opacity: 1; }
@keyframes fs-ld-on { 0% { opacity: 0; } 8% { opacity: .55; } 14% { opacity: .1; } 22% { opacity: .8; } 30% { opacity: .45; } 40%, 100% { opacity: 1; } }
@keyframes fs-ld-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .93; } }
.is-room.label .fs-ld-label { opacity: 1; transform: none; }

/* ── stage 3: the whole screen follows ── */
.fs-ld-night { position: fixed; inset: 0; z-index: 95; background: #050403; opacity: 0; pointer-events: none; transition: opacity 2.4s cubic-bezier(.4,0,.2,1); will-change: opacity; }
body.after-dark .fs-ld-night { opacity: .9; pointer-events: auto; cursor: pointer; }
body.after-dark .pd-view { z-index: 96; }
.pd-dots, .pd-facts, .pd-nav { transition: opacity 1.2s var(--ease); }
body.after-dark .pd-dots, body.after-dark .pd-facts, body.after-dark .pd-nav { opacity: 0; pointer-events: none; }

/* lights back on: quicker than going dark, the way a room feels when you flick the switch */
.is-room.waking .fs-ld-dark { transition-duration: .9s; }
.is-room.waking .fs-ld-piece .pc img { transition-duration: .7s; }
/* redrawn while already dark (size change, resize): arrive lit, no replay of the stutter */
.is-room.lit .fs-ld-beam, .is-room.lit .fs-ld-glow { opacity: 1; }
.is-room.still *, .is-room.still { transition: none !important; }

@media (max-width: 760px) {
  body.after-dark .pd-view { position: relative; }
  /* on phones the furniture sits low, so the switch lives up on the empty wall */
  .fs-ld-switch { right: 10px; bottom: auto; top: 10px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .is-room.lamp .fs-ld-beam, .is-room.lamp .fs-ld-glow { animation: none; opacity: 1; }
  .fs-ld-night, .fs-ld-dark, .fs-ld-label { transition-duration: .4s; }
}

/* under the picture light the frame's top rail throws a thin shadow onto the print, the way a real one does */
.fs-ld-piece .pc-window { position: relative; }
.fs-ld-piece .pc-window::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.14) 1.6%, transparent 4.5%); transition: opacity .8s .3s; }
.is-room.lamp .fs-ld-piece .pc-window::before, .is-room.lit .fs-ld-piece .pc-window::before { opacity: 1; }
.fs-ld-beam, .fs-ld-glow, .fs-ld-lamp::after { will-change: opacity; }

/* switching views: the old view stays on top and dissolves once the new one is decoded, so nothing pops */
.pd-ghost { position: absolute; z-index: 1; pointer-events: none; transition: opacity .34s cubic-bezier(.4,0,.2,1); }
.pd-ghost.gone { opacity: 0; }
.pd-nav { z-index: 2; }

/* frame colours: one row of swatches under "Framed", named above */
.pd-colours { margin-top: 14px; }
.pd-colour-name { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); margin: 0 0 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 1px solid rgba(235,228,214,.22); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); cursor: pointer;
  outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .25s, transform .25s var(--ease); }
.swatch:hover { transform: scale(1.08); outline-color: rgba(235,228,214,.35); }
.swatch.on { outline-color: var(--bone); }

/* chapter filters: "All" as a tall tile, then the chapters in an even 5-column grid, numerals in one column */
@media (min-width: 761px) {
  .shop-filters { display: grid; grid-template-columns: minmax(104px, .55fr) repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
  .shop-filters .chip { display: grid; grid-template-columns: 4.3em minmax(0, 1fr); column-gap: 4px; align-items: center; text-align: left; padding: 12px 14px; min-width: 0; line-height: 1.5; letter-spacing: .12em; }
  .shop-filters .chip:first-child { grid-row: span 2; display: flex; align-items: center; justify-content: center; text-align: center; }
  .shop-filters .chip-n { margin: 0; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .shop-filters .chip { grid-template-columns: minmax(0, 1fr); row-gap: 3px; align-content: center; }
}

/* ── Phones: bigger type and tap targets, larger photos in the grid, and the light switch in its own bar ── */
.pd-lightbar { display: none; }
@media (max-width: 760px) {
  /* labels that are 10–11px on desktop read at 12–13px here */
  .pd-info .mono, .shop-notes, .shop-notes .mono, .print-meta .mono { font-size: 12.5px; letter-spacing: .12em; }
  .pd-spec dt, .pd-spec dd { font-size: 12.5px; line-height: 1.6; }
  .pd-dots button { font-size: 12px; padding: 11px 12px; letter-spacing: .1em; }
  .pd-facts { font-size: 12.5px; letter-spacing: .06em; line-height: 1.6; }
  .chip { font-size: 13px; padding: 13px 15px; letter-spacing: .1em; }
  .shop-filters .chip { font-size: 12.5px; }
  .pd-colour-name { font-size: 12.5px; }
  .swatches { gap: 12px; }
  .swatch { width: 40px; height: 40px; }
  .pd-buy { width: 100%; min-height: 58px; font-size: 13px; }
  .cart-opt { font-size: 12px; }
  /* the photograph fills more of its tile */
  .print-img img { inset: 5%; width: 90%; height: 90%; }
  .print-title { font-size: 27px; }
  /* light switch: off the photo, a full-width bar right under it */
  .pd-stage .fs-ld-switch { display: none; }
  .pd-lightbar:not([hidden]) { display: block; margin-top: 10px; }
  .pd-lightbar .fs-ld-switch { position: static; transform: none; width: 100%; justify-content: center; gap: 14px; padding: 14px 18px; font-size: 12px; letter-spacing: .16em; border-radius: 999px; }
  .pd-lightbar .fs-ld-switch:hover, .pd-lightbar .fs-ld-switch:active { transform: none; }
  .pd-lightbar .fs-ld-toggle { width: 36px; height: 20px; }
  .pd-lightbar .fs-ld-toggle span { width: 16px; height: 16px; }
  .pd-lightbar .fs-ld-switch[aria-pressed="true"] .fs-ld-toggle span { transform: translateX(16px); }
}

/* ── The light switch sits in the row of view buttons, right after them, in the same style ── */
.fs-ld-short { display: none; }
@media (min-width: 761px) {
  .pd-viewbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-top: 10px; }
  .pd-viewbar .pd-dots { display: contents; }
  .pd-lightbar:not([hidden]) { display: flex; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--rule); }
  .pd-lightbar .fs-ld-switch { position: static; transform: none; display: inline-flex; align-items: center; gap: 9px; height: 100%;
    padding: 7px 11px; border-radius: 0; font-size: 10px; letter-spacing: .14em; color: var(--bone-dim); background: none;
    border: 1px solid var(--rule); box-shadow: none; transition: color .5s, border-color .5s, background-color .5s; }
  .pd-lightbar .fs-ld-switch:hover { transform: none; box-shadow: none; color: var(--bone); border-color: var(--bone-dim); background: none; }
  .pd-lightbar .fs-ld-switch:active { transform: none; }
  .pd-lightbar .fs-ld-words { display: none; }
  .pd-lightbar .fs-ld-short { display: inline; }
  .pd-lightbar .fs-ld-toggle { width: 22px; height: 12px; background-color: #3a352e; box-shadow: inset 0 0 0 1px rgba(235,228,214,.18); }
  .pd-lightbar .fs-ld-toggle span { top: 2px; left: 2px; width: 8px; height: 8px; background-color: var(--bone-dim); box-shadow: none; }
  .pd-lightbar .fs-ld-switch[aria-pressed="true"] { color: var(--bone); border-color: var(--ember); background: none; }
  .pd-lightbar .fs-ld-switch[aria-pressed="true"] .fs-ld-toggle span { transform: translateX(10px); background-color: var(--ember); box-shadow: 0 0 6px rgba(224,165,107,.7); }
  body.after-dark .pd-dots button { opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease); }
}
@media (max-width: 760px) {
  .pd-viewbar { display: flex; flex-direction: column; gap: 0; }
  .pd-lightbar { order: -1; }
}

/* the toggle's dot is the brand's ember dot (the one after the F.): soft when the lights are on, glowing when they're off */
.fs-ld-toggle span { background-color: #a9764a; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.fs-ld-switch[aria-pressed="true"] .fs-ld-toggle span { background-color: #e0a56b; box-shadow: 0 0 8px rgba(224,165,107,.65); }
@media (min-width: 761px) {
  .pd-lightbar .fs-ld-toggle span { background-color: #a9764a; box-shadow: none; }
  .pd-lightbar .fs-ld-switch[aria-pressed="true"] .fs-ld-toggle span { background-color: #e0a56b; box-shadow: 0 0 6px rgba(224,165,107,.7); }
}
