/* =========================================================
   YesBoss — product pages (hub + 6 product pages)
   Builds on style.css; only product-specific pieces live here.
   ========================================================= */

/* ---------- Product hero ---------- */
.p-hero .hero__lines { opacity: .35; }
.p-hero__copy { position: relative; }
.p-hero__copy .lede { margin-bottom: 34px; }
.p-hero__spaces { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.p-hero__spaces span { color: var(--gold-deep); }
.p-hero__spaces span::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; }
.p-hero__media { width: 100%; }
.p-hero__media video { background: transparent; }
@media (min-width: 1024px) {
  .p-hero__media { width: min(100%, 500px); justify-self: end; box-shadow: 0 50px 100px -40px rgba(30,30,30,.5), 0 0 0 10px var(--white), 0 0 0 11px var(--line); margin-right: 11px; }
}
@media (max-width: 1023px) { .p-hero__media { max-width: 520px; } }

/* ---------- Demo shell ---------- */
.demo__tag {
  position: absolute; z-index: 5; top: 14px; left: 14px; pointer-events: none;
  padding: 7px 11px; border-radius: 999px; background: rgba(30,30,30,.72); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.demo__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo__hint {
  position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  background: rgba(247,247,247,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .6s;
}
.demo__hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
.is-touched .demo__hint { opacity: 0; }
.demo__bar .btn--sm { min-height: 40px; }
.demo__bar .btn:disabled { opacity: .4; pointer-events: none; }
.demo__readout b { font-variant-numeric: tabular-nums; }

/* frames per scene */
.demo__frame { z-index: 1; }
.demo__frame--door { inset: 7% 27% 0; border-bottom: 0; }
.demo__frame--wide { inset: 10% 6% 13%; border-color: #d9d6cf; }
.demo__frame--room { inset: 5% 5% 0; border: 0; box-shadow: none; }
@media (max-width: 640px) {
  .demo__frame--door { inset: 6% 9% 0; }
  .demo__frame--wide { inset: 12% 5% 16%; }
}
.demo__opening { touch-action: pan-y; }
.demo__stage--room { background: #e9e3d8; }

/* ---------- Pleated panels (pleat / crystal / honey) ---------- */
.demo__stack {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(90deg, #c9ccce, #f2f3f3 45%, #b4b8bb);
  box-shadow: 1px 0 0 rgba(0,0,0,.12);
}
.demo__panel { z-index: 1; width: 40%; }
.demo__panel::before, .demo__panel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background: linear-gradient(180deg, #eef0f1, #bfc4c8);
}
.demo__panel::before { top: 0; }
.demo__panel::after { bottom: 0; }
.demo__panel--honey { box-shadow: inset 0 0 40px rgba(110,90,50,.18); }
.demo__panel--crystal { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.demo__frame--room .demo__panel::after { height: 5px; background: #2b2a28; }

.demo__handle { background: linear-gradient(90deg, #f4f2ec, #cfcabe); }
.demo__handle::before { content: ""; position: absolute; inset: 0 -16px; }  /* wider hit area */
.demo__grip {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); transition: transform .4s var(--ease-out), box-shadow .4s;
}
.demo__grip::before, .demo__grip::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 4px solid transparent; transform: translateY(-50%); }
.demo__grip::before { left: 4px; border-right-color: var(--gold-deep); border-left-width: 0; }
.demo__grip::after { right: 4px; border-left-color: var(--gold-deep); border-right-width: 0; }
.demo__handle::after { z-index: -1; }
.demo__handle:hover .demo__grip, .is-dragging .demo__grip { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 6px var(--gold-soft), 0 6px 16px -6px rgba(0,0,0,.35); }
.is-dragging .demo__opening { cursor: ew-resize; }

/* ---------- Invisible grill cables ---------- */
.demo__track {
  position: absolute; z-index: 2; left: 0; right: 0; height: 8px; pointer-events: none;
  background: linear-gradient(180deg, #f1f2f2, #bdc2c5);
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.demo__track--top { top: 0; }
.demo__track--bottom { bottom: 0; }
.demo__cables { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; cursor: grab; transition: opacity .6s var(--ease-out); }
.demo__cables:active { cursor: grabbing; }
.demo__grillwrap { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.demo__boxgrill { width: 100%; height: 100%; }
.demo--cables.is-box .demo__grillwrap { opacity: 1; transform: none; }
.demo--cables.is-box .demo__cables { opacity: 0; pointer-events: none; }
.demo--cables.is-box .demo__track { opacity: 0; }

/* ---------- King Kong sliding panels ---------- */
.demo__rail { position: absolute; z-index: 3; left: 0; right: 0; height: 6px; background: #3a3a3a; pointer-events: none; }
.demo__rail--top { top: 0; }
.demo__rail--bottom { bottom: 0; }
.demo__slide { will-change: transform; background-color: rgba(60,60,60,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.demo__slide--a { z-index: 1; }
.demo__slide--b { z-index: 2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), -8px 0 18px -10px rgba(0,0,0,.45); }
.demo__slide::after { content: ""; position: absolute; top: 50%; right: 8px; width: 4px; height: 40px; transform: translateY(-50%); border-radius: 3px; background: #2a2a2a; }
.demo__slide--b::after { right: auto; left: 8px; }

/* ---------- ROD exploded view: dark technical drawing, metallic parts ---------- */
.explode {
  position: relative; border-radius: 14px; overflow: hidden; padding: clamp(20px, 3vw, 40px) 8px;
  background-color: #141312;
  background-image:
    radial-gradient(55% 65% at 50% 48%, rgba(212,175,106,.13), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px, 16px 16px, 16px 16px; background-position: center, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
.explode svg { max-height: 74svh; margin-inline: auto; }
.explode .demo__tag { position: absolute; background: rgba(255,255,255,.08); color: var(--paper); border: 1px solid rgba(255,255,255,.14); }
.explode__part { cursor: pointer; filter: drop-shadow(0 12px 14px rgba(0,0,0,.5)); transition: opacity .35s, filter .35s; }
.explode__frame { fill: url(#alu); stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.explode__rail { fill: #e3e6e8; stroke: rgba(0,0,0,.25); }
.explode__tab rect { fill: url(#alu); stroke: rgba(255,255,255,.4); stroke-width: 1.2; }
.explode__tab circle { fill: #3a3d40; }
.explode__rods rect { fill: url(#rodG); }
.explode__ferrule rect { fill: url(#aluH); stroke: rgba(0,0,0,.3); stroke-width: .8; }
.explode__track { fill: url(#alu); stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.explode__slots rect { fill: #121212; }
.explode__bar { fill: url(#alu); stroke: rgba(255,255,255,.3); stroke-width: 1; }
.explode__label path { fill: none; stroke: rgba(212,175,106,.75); stroke-width: 1.3; stroke-dasharray: 4 4; }
.explode__label circle { fill: var(--gold); }
.explode text { font-size: 21px; letter-spacing: .08em; fill: rgba(247,247,247,.9); font-weight: 500; }
.explode__n { fill: var(--gold); }
/* focus a part: the rest dims, the part glows */
.explode.has-focus .explode__part:not(.is-focus) { opacity: .18; }
.explode__part.is-focus { filter: drop-shadow(0 0 10px rgba(232,200,130,.55)) drop-shadow(0 12px 14px rgba(0,0,0,.5)); }
.explode__part.is-focus .explode__label text { fill: #fff; }
.explode__info {
  position: absolute; top: clamp(16px, 2.4vw, 28px); right: clamp(16px, 2.4vw, 28px); width: 250px; padding: 14px 16px; border-radius: 14px;
  color: var(--paper); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.explode__info span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.explode__info b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.explode__info p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(247,247,247,.68); }
.explode__info.is-swap { animation: infoSwap .35s var(--ease-out); }
@keyframes infoSwap { from { opacity: .2; transform: translateY(4px); } }
.explode__stamp { position: absolute; left: clamp(16px, 2.4vw, 28px); bottom: clamp(12px, 2vw, 22px); margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,247,247,.35); }
.explode__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.explode__chips button {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s;
}
.explode__chips button span { font-family: var(--mono); font-size: 10.5px; color: var(--gold-deep); }
.explode__chips button:hover { border-color: var(--gold); color: var(--ink); }
.explode__chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.explode__chips button[aria-pressed="true"] span { color: var(--gold); }
@media (max-width: 720px) {
  .explode__label text { display: none; }
  .explode { display: flex; flex-direction: column; padding-top: 52px; }
  .explode__info { position: static; width: auto; margin: 8px 8px 0; }
  .explode__stamp { display: none; }
}
@media (prefers-reduced-motion: reduce) { .explode__part, .explode__info.is-swap { transition: none; animation: none; } }

/* ---------- Construction ---------- */
.p-made__media { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.p-made__media.media-frame--land { aspect-ratio: 4 / 3; }
.p-made__media img { position: absolute; inset: 0; }
.p-made__cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 1;
  padding: 8px 12px; border-radius: 8px; background: rgba(20,20,20,.6); color: #fff;
  font-size: 10px; letter-spacing: .08em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.p-made__list { margin: 30px 0 26px; font-size: 17px; }
.p-made__note { padding: 14px 16px; border-left: 2px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 22px; }

/* ---------- Where it fits ---------- */
.p-fit { display: grid; gap: 28px; }
@media (min-width: 960px) { .p-fit { grid-template-columns: .8fr 1.2fr; align-items: end; gap: 80px; } }
.apps { list-style: none; margin: 0; padding: 0; }
.app--sm { padding: 8px 13px; font-size: 13px; gap: 8px; }
.app--sm svg { width: 15px; height: 15px; }

/* ---------- Gallery ---------- */
.p-gallery { grid-auto-flow: dense; }
.gallery__hit { position: absolute; inset: 0; display: block; }
.gallery__item figcaption { pointer-events: none; z-index: 2; }
.gallery__item:focus-within figcaption { opacity: 1; transform: none; }
.gallery__item video { pointer-events: none; }
.gallery__item:hover .gallery__hit img { transform: scale(1.05); }
@media (min-width: 900px) { .gallery__item--big { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 899px) {
  .gallery__item--big { grid-column: span 2; aspect-ratio: 4 / 3; }
  .gallery__item--tall { aspect-ratio: 3 / 4; }
}
.gallery__more {
  cursor: default; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px; background: var(--ink); color: var(--paper);
}
.gallery__more .mono { color: var(--gold); margin: 0; }
.gallery__more-t { margin: 0 0 10px; color: rgba(247,247,247,.72); font-size: 14px; line-height: 1.45; }
.gallery__more .link-arrow { color: var(--paper); align-self: flex-start; font-size: 13px; }

/* ---------- FAQ ---------- */
.p-faq { align-items: start; }

/* ---------- Related + prev/next ---------- */
@media (min-width: 720px) { .range--two { grid-template-columns: repeat(2, 1fr); } }
.p-rel__all { justify-self: start; }
@media (min-width: 960px) { .p-rel__all { justify-self: end; } }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-strong); }
.pnav__link { display: grid; gap: 8px; padding: 26px 0; transition: color .3s; }
.pnav__link--next { text-align: right; justify-items: end; }
.pnav__dir { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-deep); }
.pnav__dir svg { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.pnav__name { font-size: clamp(17px, 2vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.pnav__link--prev:hover svg { transform: translateX(-4px); }
.pnav__link--next:hover svg { transform: translateX(4px); }
.pnav__link:hover .pnav__name { color: var(--gold-deep); }

/* ---------- Hub ---------- */
.p-index { border-block: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.p-index::-webkit-scrollbar { display: none; }
.p-index ol { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.p-index li + li { border-left: 1px solid var(--line); }
.p-index a { display: inline-flex; align-items: baseline; gap: 10px; padding: 18px 22px; font-size: 14px; font-weight: 600; transition: background .3s; }
.p-index a:hover { background: var(--white); }
.p-index .mono { color: var(--gold-deep); font-size: 11px; }
@media (min-width: 1100px) { .p-index ol { min-width: 0; } .p-index li { flex: 1; } .p-index a { width: 100%; } }

.pfam__head { display: grid; gap: 14px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 760px; }
.pfam__n { color: var(--gold-deep); }
.pfam__head .lede { margin: 0; }

.prow { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.prow + .prow { margin-top: clamp(80px, 11vw, 150px); }
@media (min-width: 960px) {
  .prow { grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 7vw, 110px); }
  .prow--flip { grid-template-columns: 1.15fr .85fr; }
  .prow--flip .prow__media { order: 2; }
}
.prow__media {
  position: relative; display: block; aspect-ratio: 4 / 5; max-height: 680px; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3);
  box-shadow: 0 40px 80px -40px rgba(30,30,30,.4);
}
.prow__media img, .prow__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.prow__media:hover img, .prow__media:hover video { transform: scale(1.04); }
@media (max-width: 959px) { .prow__media { max-width: 520px; } }
.prow__num { font-family: var(--mono); font-size: clamp(48px, 6vw, 92px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 22px; letter-spacing: -.04em; }
.prow__title { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.04em; margin-bottom: 14px; }
.prow__title a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease-out); }
.prow__title a:hover { background-size: 100% 2px; }
.prow__tagline { font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; letter-spacing: -.015em; color: var(--ink-2); margin-bottom: 16px; }
.prow__text { color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.prow__cta { margin-top: 30px; }

.p-unsure {
  display: grid; gap: 24px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--white);
}
.p-unsure .h3 { max-width: 26ch; }
@media (min-width: 900px) { .p-unsure { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .demo__hint i { animation: none; }
  .prow__media:hover img, .prow__media:hover video { transform: none; }
}

/* pleat legibility: lighter weave, stronger fold shading */
.demo__panel--pleat {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, rgba(255,255,255,.06) 1px calc(var(--p, 24px) * .5), rgba(0,0,0,.3) calc(var(--p, 24px) * .5) calc(var(--p, 24px) - 1px), rgba(0,0,0,.45) calc(var(--p, 24px) - 1px) var(--p, 24px)),
    repeating-linear-gradient(0deg, rgba(35,35,35,.32) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(35,35,35,.32) 0 1px, transparent 1px 3px);
  background-color: rgba(70,70,70,.16);
}
.demo__grillwrap { box-shadow: inset 0 0 0 6px #3f3d39; }

/* ---------- A closer look (product visualisations) ---------- */
.p-look__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) { .p-look__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.p-look__grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
@media (min-width: 900px) { .p-look__grid { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.p-look__grid figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-3); box-shadow: 0 40px 80px -50px rgba(30,30,30,.5); }
.p-look__room { aspect-ratio: 3 / 2; }
.p-look__studio { aspect-ratio: 1; }
@media (min-width: 900px) { .p-look__studio { aspect-ratio: auto; } }
.p-look__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.p-look__grid figure:hover img { transform: scale(1.04); }
.p-look__grid figcaption { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(20,20,20,.45); color: rgba(255,255,255,.85); font-size: 9.5px; }
.p-look__note { margin-top: 14px; }

/* ---------- Pleated mesh demo: photo scene + realistic mesh ---------- */
/* any demo on a photo: the frame is pinned to the photo's opening */
.demo__stage--photo, .demo__stage--photo.demo__stage--room { aspect-ratio: 16 / 10; background: #d8d2c6; }
.demo__stage--photo .demo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__stage--photo .demo__frame { border: 0; box-shadow: none; border-radius: 0;
  inset: var(--op-t) var(--op-r) var(--op-b) var(--op-l); }
/* fixed top + bottom guide tracks across the whole opening */
.demo--pleat .demo__opening::before, .demo--pleat .demo__opening::after { content: ""; position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, #f2f3f2 0%, #c9cccb 45%, #e4e6e5 70%, #a9adad 100%); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.demo--pleat .demo__opening::before { top: 0; height: 9px; }
.demo--pleat .demo__opening::after { bottom: 0; height: 6px; }
/* fixed side profile the mesh folds into */
.demo--pleat .demo__stack { width: 14px; z-index: 3;
  background: linear-gradient(90deg, #a9adad 0%, #eef0ef 30%, #d3d6d5 60%, #9ea2a2 100%);
  box-shadow: 2px 0 4px rgba(0,0,0,.25); }
/* the mesh: fine charcoal weave + soft accordion folds + slight tint */
.demo--pleat .demo__panel--pleat {
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.22) 0, rgba(255,255,255,.08) calc(var(--p, 24px) * .25),
      rgba(0,0,0,.02) calc(var(--p, 24px) * .5),
      rgba(0,0,0,.26) calc(var(--p, 24px) * .85), rgba(0,0,0,.36) var(--p, 24px)),
    repeating-linear-gradient(0deg, rgba(30,30,30,.30) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(30,30,30,.22) 0 1px, transparent 1px 2px);
  background-color: rgba(48,50,50,.18);
  -webkit-backdrop-filter: blur(.5px) saturate(.85) brightness(.92); backdrop-filter: blur(.5px) saturate(.85) brightness(.92);
  box-shadow: inset 0 10px 14px -10px rgba(0,0,0,.35), inset 0 -10px 14px -10px rgba(0,0,0,.35); }
.demo--pleat .demo__panel::before, .demo--pleat .demo__panel::after { display: none; }
/* leading aluminium profile with a dark pull handle */
.demo--pleat .demo__handle { width: 16px; margin-left: -8px; z-index: 4;
  background: linear-gradient(90deg, #9fa3a3 0%, #f1f2f1 35%, #cfd2d1 65%, #8f9393 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 6px 0 14px -4px rgba(0,0,0,.35); }
.demo--pleat .demo__handle::after { width: 6px; height: 64px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2a, #4a4a4a 50%, #222); }
.demo--pleat .demo__grip { opacity: .95; }
@media (max-width: 640px) { .demo__stage--photo { aspect-ratio: 16 / 10; } .demo__stage--photo .demo__frame { inset: var(--op-t) var(--op-r) var(--op-b) var(--op-l); } }

/* King Kong on a photo: dark anodised aluminium sashes with fine silver mesh */
.demo--slide .demo__stage--photo .demo__rail { height: 7px; background: linear-gradient(180deg, #4a4a4a, #1f1f1f); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.demo--slide .demo__stage--photo .demo__slide { border: 8px solid #262626;
  border-image: linear-gradient(90deg, #1b1b1b, #3d3d3d 45%, #232323) 1;
  background:
    repeating-linear-gradient(0deg, rgba(200,204,206,.42) 0 1px, transparent 1px 2.4px),
    repeating-linear-gradient(90deg, rgba(200,204,206,.34) 0 1px, transparent 1px 2.4px);
  background-color: rgba(40,42,44,.20);
  -webkit-backdrop-filter: blur(.5px) brightness(.93); backdrop-filter: blur(.5px) brightness(.93);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.25); }
.demo--slide .demo__stage--photo .demo__slide--b { box-shadow: -10px 0 20px -10px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.25); }
.demo--slide .demo__stage--photo .demo__slide::after { width: 5px; height: 56px; background: linear-gradient(90deg, #111, #3a3a3a 50%, #111); }

/* Partitions on a photo: ceiling track across the opening, softer realistic pleats */
.demo__stage--photo.demo__stage--room .demo__opening::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background: linear-gradient(180deg, #f4f4f2 0%, #d5d6d3 55%, #b9bbb8 100%); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.demo__stage--photo.demo__stage--room .demo__panel::before { display: none; }
.demo__stage--photo.demo__stage--room .demo__panel::after { height: 4px; background: rgba(60,58,54,.55); }
.demo__stage--photo.demo__stage--room .demo__stack { width: 12px; background: linear-gradient(90deg, #b8bab7, #f2f2f0 40%, #cfd0cd 70%, #a9aba8); box-shadow: 2px 0 5px rgba(0,0,0,.2); }
.demo__stage--photo.demo__stage--room .demo__handle { width: 14px; margin-left: -7px;
  background: linear-gradient(90deg, #b5b7b4 0%, #f5f5f3 40%, #d9dad7 70%, #a7a9a6 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 6px 0 14px -4px rgba(0,0,0,.3); }
.demo__stage--photo .demo__panel--crystal {
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.50) 0, rgba(255,255,255,.14) calc(var(--p, 24px) * .18),
      rgba(255,255,255,.03) calc(var(--p, 24px) * .5),
      rgba(150,175,185,.16) calc(var(--p, 24px) * .8), rgba(110,130,140,.26) var(--p, 24px)),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 40%, rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(1.2px) brightness(1.03); backdrop-filter: blur(1.2px) brightness(1.03); }
.demo__stage--photo .demo__panel--honey {
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.30) 0, rgba(255,255,255,.08) calc(var(--p, 24px) * .25),
      rgba(0,0,0,0) calc(var(--p, 24px) * .5),
      rgba(110,85,45,.18) calc(var(--p, 24px) * .82), rgba(95,72,35,.28) var(--p, 24px)),
    linear-gradient(180deg, #EFE5CC, #E4D6B6);
  box-shadow: inset 0 12px 16px -12px rgba(0,0,0,.25); }

/* King Kong: front panel can be dragged */
.demo--slide .demo__slide--b { touch-action: pan-y; }
.demo--slide.is-dragging .demo__slide { transition: none; }
.demo--slide.is-dragging .demo__slide--b { cursor: grabbing !important; }
.demo--slide .demo__slide--b:hover { box-shadow: -10px 0 20px -10px rgba(0,0,0,.55), 0 0 0 2px rgba(212,175,106,.55); }
