/* ═══════════════════════════════════════════════════════════════════════════
   Rooms behind the doors
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --card: #f3f0ec; --card-meta: #6f5f55; }
:root[data-theme="dark"] { --card: #211f1d; --card-meta: #b3a294; }

/* while a room covers the page, the page's own scrollbar space is released (the room has its own) */
html.room-open { scrollbar-gutter: auto; }

/* ── the overlay that holds a room ── */
.room-ov { position: fixed; inset: 0; z-index: 70; background: var(--bg); color: var(--ink); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.room-ov[hidden] { display: none; }
.room-ov[data-type="wall"] { background: #050508; color: #ece7e1; overflow: hidden; }
.room-ov__content { position: relative; min-height: 100%; }
/* the dark of the doorway, lifting off the room as you step in */
.room-ov__veil { position: fixed; inset: 0; z-index: 6; background: #0a0908; pointer-events: none; opacity: 1; transition: opacity 0.9s var(--ease) 0.1s; }
.room-ov.on .room-ov__veil { opacity: 0; }
.room-ov.leaving .room-ov__veil, .room-ov.swap .room-ov__veil { opacity: 1; transition: opacity 0.42s ease; }

/* room header: the same navbar as the home page, stuck to the top of the room */
.room-ov .rhdr { position: sticky; top: 0; z-index: 4; }
.room-ov .rhdr.is-scrolled::before { opacity: 1; }

/* floating "Back to the doors" */
.backd {
  position: fixed; left: 24px; bottom: 24px; z-index: 5; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 20px; border-radius: 999px; font-size: 16px; font-weight: 560;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--spring);
}
.backd:hover { transform: translateX(-3px); }
.room-ov[data-type="wall"] .backd { top: 24px; bottom: auto; color: #ece7e1; background: rgba(28, 28, 34, 0.68); border-color: rgba(255, 255, 255, 0.12); }
.room-ov .rtotop { position: fixed; z-index: 5; }

/* entrance: the room's content rises in as the dark lifts */
.room-ov .rin { opacity: 0; transform: translateY(30px); }
.room-ov__content.r-in .rin { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) calc(0.25s + var(--d, 0s)), transform 1.1s var(--ease) calc(0.25s + var(--d, 0s)); }

.rintro { padding-top: clamp(20px, 5vh, 60px); padding-bottom: clamp(30px, 6vh, 70px); }
.rintro h1 { font-size: clamp(52px, 8.6vw, 172px); font-weight: 650; letter-spacing: -0.048em; line-height: 0.95; }
.rintro p { margin-top: clamp(16px, 3vh, 30px); max-width: 37em; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.55; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.rintro .rintro__hint { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.sfw--room { margin-top: 10vh; background: var(--bg); }

/* ═══ screens: stacked project cards ═════════════════════════════════════ */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 6vh; }
.card {
  position: sticky; top: calc(var(--hdr) + 18px); border-radius: 30px; background: var(--card); transform-origin: 50% 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6), 0 30px 60px -30px rgba(26, 24, 24, 0.35), 0 -12px 40px -24px rgba(26, 24, 24, 0.25);
  opacity: 0; translate: 0 60px; transition: opacity 0.9s var(--ease), translate 1.1s var(--ease);
}
:root[data-theme="dark"] .card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.card.seen { opacity: 1; translate: 0 0; }
.card__in { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); align-items: center; gap: 4.5vw; padding: clamp(28px, 5vw, 80px); min-height: min(600px, calc(100vh - var(--hdr) - 70px)); }
.card.alt .card__info { order: 2; }
.card__dim { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.card__meta { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--card-meta); }
.card h2 { margin-top: 18px; font-size: clamp(32px, 3.2vw, 60px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; }
.card .sub { margin-top: 8px; font-size: clamp(16px, 1.15vw, 19px); color: color-mix(in srgb, var(--ink) 74%, transparent); }
.card .desc { margin-top: 24px; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.62; color: color-mix(in srgb, var(--ink) 66%, transparent); }
.card .tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.card .tags li { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 520; }
.card .live { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform 0.5s var(--spring); }
.card .live svg { width: 16px; height: 16px; transition: transform 0.5s var(--spring); }
.card .live:hover { transform: translateY(-2px); }
.card .live:hover svg { transform: translate(2px, -2px); }
.card .links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.card .links .live { margin-top: 0; }
.card .live--code { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.card .note { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.card .note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0533d; box-shadow: 0 0 0 0 rgba(224, 83, 61, 0.5); animation: ping 2s infinite; }
.app { display: flex; align-items: center; gap: 18px; }
.appico { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 28px; color: #fff; object-fit: cover;
  background: linear-gradient(150deg, color-mix(in srgb, var(--a) 62%, white), var(--a) 55%, color-mix(in srgb, var(--a) 70%, black));
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

/* the device leans back a little; hovering the card turns it to face you */
.stage { perspective: 1900px; display: grid; place-items: center; }
.mon { width: 100%; transform: rotateY(-10deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.card.alt .mon { transform: rotateY(10deg) rotateX(4deg); }
.card:hover .mon { transform: rotateY(-3deg) rotateX(1deg); }
.card.alt:hover .mon { transform: rotateY(3deg) rotateX(1deg); }
.mon__body { padding: clamp(7px, 0.8vw, 12px); border-radius: clamp(12px, 1.4vw, 20px); background: #111; box-shadow: 0 0 0 2px #2b2b2b, inset 0 0 0 1px #3a3a3a, 30px 50px 70px -30px rgba(0, 0, 0, 0.5); }
.mon__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #ebe7de; container-type: inline-size; }
.mon__screen > video, .mon__screen > img, .phone__screen > video, .phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mon__neck { width: 15%; height: clamp(34px, 5vw, 76px); margin: 0 auto; background: linear-gradient(90deg, #9c9994, #e9e7e3 45%, #b5b2ad); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.mon__foot { width: 36%; height: 12px; margin: 0 auto; border-radius: 6px 6px 40% 40%; background: linear-gradient(180deg, #e2dfdb, #a19e99); box-shadow: 0 16px 24px -10px rgba(0, 0, 0, 0.45); }

.phone { width: min(310px, 64%); transform: rotateY(-12deg) rotateX(5deg) rotateZ(1.5deg); transition: transform 1.1s var(--ease); }
.card.alt .phone { transform: rotateY(12deg) rotateX(5deg) rotateZ(-1.5deg); }
.card:hover .phone { transform: rotateY(-4deg) rotateX(2deg); }
.card.alt:hover .phone { transform: rotateY(4deg) rotateX(2deg); }
.phone__body { position: relative; padding: 4%; border-radius: 15% / 7%; background: linear-gradient(145deg, #4a4a4e, #111113 38%, #26262a);
  box-shadow: inset 0 0 0 1.5px #6a6a70, 0 0 0 1px #000, 36px 50px 70px -30px rgba(0, 0, 0, 0.55); }
.phone__btn { position: absolute; width: 3px; background: linear-gradient(90deg, #555, #222); border-radius: 2px; }
.phone__btn.l { left: -3px; } .phone__btn.r { right: -3px; }
.phone__screen { position: relative; aspect-ratio: 590 / 1278; border-radius: 12% / 5.6%; overflow: hidden; background: #000; container-type: inline-size; }
.island { position: absolute; top: 1.6%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 3; }
.sbar { position: absolute; inset: 0 0 auto; height: 6.6%; display: flex; justify-content: space-between; align-items: center; padding: 1.4% 9% 0; font-size: 4.4cqw; font-weight: 650; color: #fff; z-index: 2; }
.sbar__r svg { width: 13cqw; height: auto; }
/* the drawn app scrolls under a solid status bar, like the real thing */
.phone__screen:has(.mk--app) .sbar { height: 9%; align-items: flex-start; padding-top: 4.2%; background: linear-gradient(180deg, #0e0f12 72%, rgba(14, 15, 18, 0)); }

/* ── drawn screens (until your own recordings are added): they scroll like a screen recording ── */
.mk { position: absolute; inset: 0; overflow: hidden; font-family: Onest, system-ui, sans-serif; }
.mk__scroll { animation: mkScroll 18s ease-in-out infinite alternate; animation-play-state: paused; }
.card.playing .mk__scroll, .card.playing .mk-bars i { animation-play-state: running; }
@keyframes mkScroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(var(--mk-end, -58%)); } }
.mk p { height: 0.62em; margin: 0.5em 0 0; border-radius: 9px; background: #dcd8d1; width: 82%; }
.mk p.s { width: 54%; }

.mk--site { background: #f8f6f2; color: #1b1919; font-size: 2.15cqw; }
.mk-nav { display: flex; align-items: center; gap: 1.6em; padding: 1.3em 2.4em; }
.mk-nav b { font-weight: 800; letter-spacing: -0.02em; margin-right: auto; font-size: 1.15em; }
.mk-nav span { width: 3.4em; height: 0.5em; border-radius: 9px; background: #cfcac2; }
.mk-nav i { font-style: normal; padding: 0.55em 1.2em; border-radius: 99px; background: var(--a); color: #fff; font-weight: 700; font-size: 0.85em; }
.mk-hero { padding: 3.2em 2.4em 2.6em; }
.mk-hero small { font-size: 0.8em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a); font-weight: 800; }
.mk-hero h4 { margin: 0.4em 0 0.3em; font-size: 4.2em; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; max-width: 11em; }
.mk-btns { display: flex; gap: 0.8em; margin-top: 1.6em; }
.mk-btns em { width: 8em; height: 2.4em; border-radius: 99px; background: var(--a); }
.mk-btns em.o { background: transparent; box-shadow: inset 0 0 0 2px #1b1919; }
.mk-media { position: relative; margin: 0 2.4em; height: 19em; border-radius: 1em; overflow: hidden;
  background: radial-gradient(60% 80% at 25% 30%, color-mix(in srgb, var(--a) 55%, white), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--a) 85%, black), var(--a)); }
.mk-media span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.mk-media span:nth-child(1) { width: 11em; height: 11em; right: 8%; top: 12%; }
.mk-media span:nth-child(2) { width: 22em; height: 6em; left: -4em; bottom: -2em; border-radius: 40%; background: rgba(0, 0, 0, 0.18); }
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; padding: 2.6em 2.4em; }
.mk-cols > div { padding: 1.3em; border-radius: 0.9em; background: #fff; box-shadow: 0 0.4em 1.4em -0.8em rgba(0, 0, 0, 0.25); }
.mk-cols i { display: block; width: 2.6em; height: 2.6em; border-radius: 0.7em; background: color-mix(in srgb, var(--a) 22%, white); margin-bottom: 0.8em; }
.mk-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2em; align-items: center; padding: 0 2.4em 2.6em 0; }
.mk-split .mk-media { height: 15em; }
.mk-media--b { background: linear-gradient(160deg, #2b2826, #6b625a); }
.mk h5 { height: 1.4em; width: 72%; border-radius: 9px; background: #1b1919; margin: 0 0 0.8em; }
.mk-band { margin: 0 2.4em; padding: 2.4em; border-radius: 1em; background: var(--a); display: flex; justify-content: space-between; align-items: center; }
.mk-band h5 { background: #fff; width: 45%; margin: 0; }
.mk-band em { width: 8em; height: 2.4em; border-radius: 99px; background: #fff; }
.mk-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; padding: 2.6em 2.4em; }
.mk-gallery i { aspect-ratio: 3 / 4; border-radius: 0.7em; background: linear-gradient(160deg, color-mix(in srgb, var(--a) 40%, white), color-mix(in srgb, var(--a) 70%, black)); }
.mk-gallery i:nth-child(even) { background: linear-gradient(160deg, #d9d3ca, #8d857b); }
.mk-foot { padding: 2.6em 2.4em 3em; background: #1b1919; color: #f3efe9; }
.mk-foot b { font-size: 2em; letter-spacing: -0.03em; }
.mk-foot p { background: #3a3735; }

.mk--dash { display: grid; grid-template-columns: 4.2em 1fr; background: #f5f6fa; color: #1c1d22; font-size: 2cqw; }
.mk--dash aside { background: #fff; border-right: 1px solid #e6e8ef; display: flex; flex-direction: column; align-items: center; gap: 1.2em; padding-top: 1.2em; }
.mk--dash aside b { width: 2.2em; height: 2.2em; border-radius: 0.6em; background: var(--a); color: #fff; display: grid; place-items: center; font-weight: 800; }
.mk--dash aside i { width: 1.6em; height: 1.6em; border-radius: 0.5em; background: #e7e9f0; }
.mk--dash aside i.on { background: color-mix(in srgb, var(--a) 25%, white); box-shadow: inset 0 0 0 2px var(--a); }
.mk-main { padding: 1.4em 1.8em; display: grid; gap: 1.2em; align-content: start; }
.mk-top { display: flex; align-items: center; gap: 1em; }
.mk-top h4 { margin: 0 auto 0 0; font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.mk-top span { width: 9em; height: 1.8em; border-radius: 0.6em; background: #fff; box-shadow: inset 0 0 0 1px #e3e5ec; }
.mk-top .av { width: 1.8em; border-radius: 50%; background: linear-gradient(135deg, var(--a), #ffa94d); box-shadow: none; }
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.mk-stats > div { background: #fff; border-radius: 0.8em; padding: 0.9em 1em; box-shadow: 0 0 0 1px #e8eaf0; display: grid; gap: 0.25em; }
.mk-stats small { font-size: 0.75em; color: #7a7e8c; }
.mk-stats b { font-size: 1.45em; letter-spacing: -0.02em; }
.mk-stats em { font-style: normal; font-size: 0.72em; font-weight: 700; }
.mk-stats em.up { color: #2b8a3e; } .mk-stats em.down { color: #e03131; }
.mk-chart { background: #fff; border-radius: 0.8em; padding: 1em 1.2em; box-shadow: 0 0 0 1px #e8eaf0; }
.mk-chart__h { display: flex; justify-content: space-between; align-items: center; }
.mk-chart__h h5 { width: 8em; height: 0.9em; margin: 0; background: #2a2c33; }
.mk-chart__h span { width: 6em; height: 1.4em; border-radius: 99px; background: #eef0f6; }
.mk-bars { display: flex; align-items: flex-end; gap: 0.7em; height: 9em; margin-top: 1em; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 0.35em 0.35em 0 0; background: linear-gradient(180deg, var(--a), color-mix(in srgb, var(--a) 40%, white)); transform-origin: bottom;
  animation: mkBar 2.4s ease-in-out var(--d) infinite alternate; animation-play-state: paused; }
@keyframes mkBar { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
.mk-table { background: #fff; border-radius: 0.8em; box-shadow: 0 0 0 1px #e8eaf0; padding: 0.4em 1.2em; }
.mk-table > div { display: grid; grid-template-columns: 1.6em 1fr 0.7fr 3em; align-items: center; gap: 1em; padding: 0.55em 0; border-bottom: 1px solid #f0f1f5; }
.mk-table > div:last-child { border-bottom: 0; }
.mk-table i { width: 1.6em; height: 1.6em; border-radius: 50%; background: color-mix(in srgb, var(--a) 22%, white); }
.mk-table p { margin: 0; background: #e3e5ec; }
.mk-table em { font-style: normal; font-size: 0.8em; font-weight: 700; color: var(--a); text-align: right; }

.mk--app { background: #0e0f12; color: #f2f2f5; font-size: 4.3cqw; }
.mk--app .mk__scroll { padding: 18% 6% 30%; --mk-end: -38%; }
.ma-head { display: flex; align-items: center; gap: 0.6em; }
.ma-head h4 { margin: 0 auto 0 0; font-size: 1.45em; font-weight: 750; letter-spacing: -0.02em; }
.ma-ico { width: 1.8em; height: 1.8em; border-radius: 50%; background: #23252b; }
.ma-plus { width: 1.8em; height: 1.8em; border-radius: 50%; background: #23252b; display: grid; place-items: center; font-weight: 700; }
.ma-card { margin-top: 1.1em; padding: 1.1em; border-radius: 1.1em; background: linear-gradient(150deg, color-mix(in srgb, var(--a) 70%, white), var(--a) 50%, color-mix(in srgb, var(--a) 60%, black)); }
.ma-card small { font-size: 0.7em; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.ma-card b { display: block; margin-top: 0.2em; font-size: 2em; letter-spacing: -0.03em; }
.ma-row { display: flex; gap: 1.4em; margin-top: 0.6em; font-size: 0.78em; font-weight: 650; }
.ma-row i { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: #8ce99a; margin-right: 0.35em; }
.ma-row i.o { background: #ffa8a8; }
.ma-meter { margin-top: 0.8em; height: 0.4em; border-radius: 9px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.ma-meter i { display: block; height: 100%; background: #fff; border-radius: inherit; }
.ma-chips { display: flex; gap: 0.5em; margin: 1.1em 0 0.6em; }
.ma-chips em { width: 4.4em; height: 1.6em; border-radius: 99px; background: #23252b; }
.ma-chips em.on { background: #f2f2f5; }
.ma-item { display: grid; grid-template-columns: 2.1em 1fr auto; gap: 0.7em; align-items: center; padding: 0.7em 0.8em; margin-top: 0.5em; border-radius: 0.9em; background: #17181c; }
.ma-item > i { width: 2.1em; height: 2.1em; border-radius: 0.7em; opacity: 0.9; }
.ma-item p { margin: 0.2em 0; background: #2c2e35; height: 0.5em; }
.ma-item b { font-size: 0.85em; }
.ma-item b.pos { color: #69db7c; } .ma-item b.neg { color: #ff8787; }
.ma-tab { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; display: flex; justify-content: space-around; align-items: center; padding-bottom: 2%; background: rgba(14, 15, 18, 0.92); border-top: 1px solid #222; }
.ma-tab i { width: 1.3em; height: 1.3em; border-radius: 0.4em; background: #3a3c44; }
.ma-tab i.on { background: var(--a); }

/* ═══ line: each brand's prints pegged on a line ═════════════════════════ */
.worlds { display: block; }
.world { position: relative; background: var(--wbg); color: var(--wfg); }
.pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 4vh, 44px); overflow: hidden; }
.w-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2vw 4vw; align-items: end; }
.w-kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--wfg) 72%, transparent); }
.w-kicker i { width: 42px; height: 1px; background: currentColor; }
.w-name { font-size: clamp(42px, 6vw, 120px); font-weight: 720; letter-spacing: -0.048em; line-height: 0.92; }
.w-name em { font-style: normal; color: color-mix(in srgb, var(--wfg) 55%, var(--wbg)); }
.w-desc { font-size: clamp(15px, 1.15vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--wfg) 82%, transparent); }
.w-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.w-tags li { padding: 7px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--wfg) 30%, transparent); font-size: 14px; font-weight: 600; }
.line { position: relative; padding-top: 22px; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 1.5px; background: color-mix(in srgb, var(--wfg) 50%, transparent); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.18); }
.track { display: flex; gap: clamp(26px, 3vw, 56px); width: max-content; padding: 0 var(--gut); will-change: transform; }
.print { position: relative; margin: 0; padding-top: 14px; transform-origin: 50% 0; transform: rotate(calc(var(--r) + var(--sw, 0deg))); }
.peg { position: absolute; top: -8px; left: 50%; z-index: 2; width: 16px; height: 40px; margin-left: -8px; border-radius: 4px; background: linear-gradient(90deg, #a7773f, #edc994 45%, #9c6d38); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35); }
.peg::after { content: ""; position: absolute; left: 1px; right: 1px; top: 15px; height: 5px; border-radius: 2px; background: linear-gradient(180deg, #d6d6d6, #8a8a8a); }
.paper { display: block; padding: 8px; background: #fbfaf7; box-shadow: 0 22px 34px -14px rgba(0, 0, 0, 0.55); cursor: zoom-in; transition: transform 0.6s var(--spring); }
.paper:hover { transform: translateY(5px) rotate(-1.2deg) scale(1.03); }
.paper img { display: block; height: clamp(190px, 37vh, 380px); width: auto; max-width: 78vw; object-fit: contain; }
.w-foot { display: flex; align-items: center; gap: 22px; }
.w-prog { flex: 1; height: 1.5px; background: color-mix(in srgb, var(--wfg) 18%, transparent); }
.w-prog i { display: block; height: 100%; background: var(--wfg); transform-origin: left; transform: scaleX(0); }
.w-hint { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }

/* ═══ wall: endless photo wall in deep space ═════════════════════════════ */
.wall { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; background: radial-gradient(80% 70% at 50% 40%, #0d0c18, #030306 70%); outline: none; }
.wall.drag { cursor: grabbing; }
.wall__space { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall__cells { position: absolute; inset: 0; transform-origin: 50% 50%; }
.ph { position: absolute; left: 0; top: 0; padding: 0; border-radius: 4px; overflow: hidden; background: #15151c; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.9); opacity: 0; scale: 0.9; transition: opacity 1s var(--ease), scale 1.2s var(--ease); cursor: inherit; }
.ph.in { opacity: 1; scale: 1; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.8s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.wall__lbl { position: fixed; top: 24px; right: 24px; height: 52px; display: grid; place-items: center; padding: 0 24px; border-radius: 999px; background: rgba(28, 28, 34, 0.68); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 650; z-index: 3; }
.wall__hint { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; background: rgba(28, 28, 34, 0.7); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; color: rgba(236, 231, 225, 0.8); z-index: 3; transition: opacity 0.6s, transform 0.6s var(--ease); pointer-events: none; }
.wall__hint.off { opacity: 0; transform: translate(-50%, 12px); }

/* ═══ lightbox ═══════════════════════════════════════════════════════════ */
.lb { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; background: rgba(6, 6, 8, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.35s var(--ease); touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb.on { opacity: 1; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 86vw; }
.lb__fig img { max-width: 86vw; max-height: 74vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); opacity: 0; transform: scale(0.97); transition: opacity 0.4s, transform 0.6s var(--ease); }
.lb__fig img.in { opacity: 1; transform: none; }
.lb__fig figcaption { color: rgba(236, 231, 225, 0.7); font-size: 14px; }
.lb__x, .lb__nav { position: fixed; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #ece7e1; background: rgba(40, 40, 46, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 20px; transition: transform 0.5s var(--spring), background-color 0.3s; }
.lb__x { top: 24px; right: 24px; }
.lb__x svg { width: 22px; height: 22px; }
.lb__x:hover { transform: rotate(90deg); }
.lb__prev { left: 24px; top: 50%; margin-top: -27px; }
.lb__next { right: 24px; top: 50%; margin-top: -27px; }
.lb__nav:hover { background: rgba(70, 70, 78, 0.85); }
.lb__nav[hidden] { display: none; }
.lb__count { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: rgba(236, 231, 225, 0.6); }

/* ═══ small screens ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .card { top: calc(var(--hdr) + 10px); border-radius: 22px; }
  .card__in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px 20px 28px; min-height: 0; }
  .card .stage { order: -1; }
  .card.alt .card__info { order: 0; }
  .phone { width: min(230px, 62%); }
  .card h2 { margin-top: 12px; }
  .card .desc { margin-top: 14px; }
  .w-head { grid-template-columns: 1fr; gap: 12px; }
  .w-desc { font-size: 14px; }
  .w-tags { display: none; }
  .paper img { height: clamp(170px, 34vh, 300px); }
  .backd { left: 16px; bottom: 16px; height: 46px; padding: 0 18px 0 16px; font-size: 15px; }
  .room-ov[data-type="wall"] .backd { top: 16px; }
  .wall__lbl { top: 16px; right: 16px; height: 46px; padding: 0 18px; }
  .lb__nav { display: none; }
}

/* a print with a short film: it plays over its cover, the same size */
.paper { position: relative; }
.paper video { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; pointer-events: none; }
.lb__vid { display: block; max-width: 86vw; max-height: 74vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); background: #000; }
.lb__vid[hidden], .lb__fig img[hidden] { display: none; }
