/* =========================================================================
   H Byte interactive portfolio: the studio desk, the collection and the viewer
   ========================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pf-section { padding-top: clamp(40px, 5vw, 72px); }
:root { --pf-ease: cubic-bezier(.2, .7, .1, 1); --paper-shadow: 0 1px 2px rgba(20,16,10,.18), 0 18px 30px -16px rgba(20,16,10,.45), 0 6px 12px -8px rgba(20,16,10,.3); }

/* ------------------------------------------------------------------ desk */
.desk-head { max-width: 640px; margin-bottom: clamp(20px, 3vw, 32px); }
.desk-head h2 { font-size: var(--t-2xl); margin: 8px 0 10px; }
.desk-head p { color: var(--ink-2); }
.desk { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.desk-surface {
  position: relative; aspect-ratio: 16 / 8.2; border-radius: 22px; overflow: hidden; perspective: 1600px;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255,255,255,.75), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(120,90,60,.12), transparent 60%),
    repeating-linear-gradient(94deg, rgba(120,90,60,.035) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #efe7dc, #e4d8c8);
  box-shadow: inset 0 0 0 1px rgba(120,90,60,.08), 0 40px 70px -50px rgba(60,40,20,.55);
}
.desk-light {   /* soft window light falling across the desk */
  position: absolute; inset: 0; pointer-events: none; z-index: 30;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0 18%, transparent 18% 26%, rgba(255,255,255,.14) 26% 40%, transparent 40%);
  mix-blend-mode: soft-light;
}
.desk-obj {
  --tx: 0deg; --ty: 0deg;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(var(--r)) rotateX(var(--tx)) rotateY(var(--ty)); transform-style: preserve-3d;
  transition: transform .5s var(--pf-ease), z-index 0s .2s; z-index: 1;
}
.desk-obj > .pv { transition: transform .5s var(--pf-ease), filter .5s var(--pf-ease); filter: drop-shadow(0 10px 12px rgba(40,25,10,.28)); }
.desk-obj:hover, .desk-obj:focus-visible { z-index: 20; transition: transform .5s var(--pf-ease), z-index 0s; }
.desk-obj:hover > .pv, .desk-obj:focus-visible > .pv { transform: translateY(-10px) scale(1.06); filter: drop-shadow(0 28px 26px rgba(40,25,10,.35)); }
.desk-obj:focus-visible { outline: none; }
.desk-obj:focus-visible > .pv { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 6px; }
.desk-tag {
  position: absolute; left: 50%; bottom: -14px; transform: translate(-50%, 6px) rotate(calc(var(--r) * -1)); white-space: nowrap; pointer-events: none;
  display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 40px; background: rgba(7,20,66,.9); color: #fff;
  font: 500 12px/1 var(--f-body); opacity: 0; transition: opacity .25s, transform .35s var(--pf-ease); z-index: 2;
}
.desk-tag b { font-weight: 700; color: #9fc2ff; }
.desk-obj:hover .desk-tag, .desk-obj:focus-visible .desk-tag { opacity: 1; transform: translate(-50%, 0) rotate(calc(var(--r) * -1)); }
.desk-obj--cup .pv-product { aspect-ratio: 1; }

/* ------------------------------------------------------- shared previews */
.pv { display: block; position: relative; width: 100%; }
.pv img { display: block; width: 100%; height: auto; }
.pv-print { background: #fff; padding: 3%; box-shadow: var(--paper-shadow); }
.pv-print--landscape img { aspect-ratio: 16 / 9; object-fit: cover; }
.pv-sheets { aspect-ratio: 989 / 1400; }
.pv-sheet { position: absolute; inset: 0; box-shadow: var(--paper-shadow); background: #fff; overflow: hidden; border-radius: 2px; }
.pv-sheet img { width: 100%; height: 100%; object-fit: cover; }
.pv-sheet--back { transform: translate(9%, 4%) rotate(6deg); filter: brightness(.94); }
.pv-book { aspect-ratio: 760 / 1074; }
.pv-book-pages { position: absolute; inset: 1.5% -3% -2% 2%; background: repeating-linear-gradient(90deg, #f7f4ee 0 1px, #e3ddd2 1px 2px); border-radius: 2px 4px 4px 2px; box-shadow: var(--paper-shadow); }
.pv-book-cover { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 4px 4px 2px; box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2); }
.pv-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.18) 3%, transparent 8%); }
.pv-cards { aspect-ratio: 1.7 / 1.25; }
.pv-bcard { position: absolute; width: 86%; aspect-ratio: 900 / 530; border-radius: 4px; overflow: hidden; box-shadow: var(--paper-shadow); }
.pv-bcard img { width: 100%; height: 100%; object-fit: cover; }
.pv-bcard--back { right: 0; bottom: 0; transform: rotate(5deg); }
.pv-bcard--front { left: 0; top: 0; transform: rotate(-4deg); }
.pv-logo { background: #fff; border-radius: 4px; box-shadow: var(--paper-shadow); overflow: hidden; }
.pv-logo-art { display: grid; place-items: center; aspect-ratio: 1.6; padding: 14%; }
.pv-logo-art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pv-logo-pal { display: flex; height: 12%; min-height: 10px; }
.pv-logo-pal i { flex: 2; } .pv-logo-pal i + i { flex: 1; }
.pv-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: var(--paper-shadow); }
.pv-phone { width: 62%; margin: 0 auto; aspect-ratio: 9 / 18.5; padding: 3.5%; border-radius: 26px; background: #111; box-shadow: inset 0 0 0 2px #333, var(--paper-shadow); }
.pv-phone-screen { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; background: #222; }
.pv-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.pv-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); transition: transform .3s var(--pf-ease); }
.pv-play svg { width: 22px; height: 22px; fill: var(--navy); margin-left: 3px; }
.pv-laptop { width: 100%; }
.pv-laptop-lid { display: block; margin: 0 8%; padding: 3% 3% 3.6%; border-radius: 12px 12px 3px 3px; background: linear-gradient(180deg, #2b2d33, #121317); }
.pv-laptop-screen { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9.6; background: #fff; }
.pv-laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pv-laptop-base { display: block; height: 0; padding-bottom: 3.6%; border-radius: 2px 2px 14px 14px / 2px 2px 60% 60%; background: linear-gradient(180deg, #e7e9ee, #a9aeb8); box-shadow: 0 14px 20px -12px rgba(0,0,0,.4); }
.pv-product { aspect-ratio: 4 / 5; }
.pv-cup { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------- 3D cylinder (bottle, jar, bucket) */
.pv-product, .pv-cyl { display: grid; place-items: end center; }
.cyl-scene { position: relative; perspective: 1400px; perspective-origin: 50% 30%; margin-bottom: 4%; }
.cyl { position: absolute; left: 50%; width: 0; transform-style: preserve-3d; }
.cyl-face { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cyl-shade { position: absolute; left: 0; right: 0; pointer-events: none; border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.08) 14%, rgba(255,255,255,.3) 27%, rgba(255,255,255,0) 40%, rgba(0,0,0,0) 66%, rgba(0,0,0,.16) 86%, rgba(0,0,0,.48)); }
.cyl-cap { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.cyl-cap--gold { width: 46%; border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 4px), linear-gradient(90deg, #5a4416, #d9b964 22%, #fff1bf 34%, #e0bf6a 46%, #a7822e 70%, #4a370f); }
.cyl-cap--white { width: 64%; border-radius: 40% 40% 6px 6px / 50% 50% 6px 6px; background: linear-gradient(90deg, #b9bec8, #ffffff 30%, #f4f5f8 55%, #a9afba); }
.cyl-cap--dropper { width: 30%; border-radius: 48% 48% 8px 8px / 30% 30% 6px 6px; background: linear-gradient(180deg, transparent 68%, #c9a54c 68%), linear-gradient(90deg, #0b0b0d, #3a3a40 35%, #121215 70%, #000); }
.cyl-cap--lid { width: 104%; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #9ea6b3, #f4f6f9 30%, #e1e5eb 60%, #8d95a3); }
.cyl-handle { position: absolute; left: 6%; right: 6%; top: -14%; height: 30%; border: 3px solid #9aa3b2; border-bottom: 0; border-radius: 50% 50% 0 0 / 80% 80% 0 0; }
.cyl-ground { position: absolute; left: 4%; right: 4%; bottom: -5%; height: 9%; background: radial-gradient(closest-side, rgba(20,15,10,.4), transparent); filter: blur(3px); z-index: -1; }

/* -------------------------------------------------------------- toolbar */
.pf-collection { margin-top: clamp(56px, 7vw, 96px); scroll-margin-top: 100px; }
.pf-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; position: sticky; top: calc(var(--header) + 8px); z-index: 20; padding: 10px; margin: 0 -10px; border-radius: 18px; background: rgba(245,247,251,.86); backdrop-filter: blur(10px); }
.pf-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-filter { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 9px 14px; border-radius: 40px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 13px var(--f-body); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pf-filter span { font-size: 11px; font-weight: 600; color: var(--ink-2); opacity: .7; }
.pf-filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.pf-filter.is-on { background: var(--navy); color: #fff; box-shadow: none; }
.pf-filter.is-on span { color: #9fc2ff; opacity: 1; }
.pf-search { display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 14px; height: 42px; border-radius: 40px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pf-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.pf-search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; flex: none; }
.pf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 15px var(--f-body); color: var(--ink); }
.pf-count { margin: 18px 0 22px; font-size: 14px; color: var(--ink-2); }
.pf-empty { padding: 40px 0; text-align: center; color: var(--ink-2); }
.pf-empty button { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------- the grid */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(16px, 2vw, 26px); }
.pf-item[hidden] { display: none; }
.pf-item.is-in { animation: pf-in .5s var(--pf-ease) both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pf-card {
  --tx: 0deg; --ty: 0deg; --gx: 50%; --gy: 0%;
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; border-radius: 20px; text-align: left;
  background: radial-gradient(90% 70% at 50% 25%, #ffffff, #f1eee9 70%, #e8e3db); perspective: 1000px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(60,40,20,.06); transition: box-shadow .4s var(--pf-ease);
}
.pf-card::after {   /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 50% at var(--gx) var(--gy), rgba(255,255,255,.5), transparent 70%);
}
.pf-stage { display: grid; place-items: center; aspect-ratio: 4 / 4.6; padding: 13% 14% 16%; transform: rotateX(var(--tx)) rotateY(var(--ty)); transform-style: preserve-3d; transition: transform .5s var(--pf-ease); }
.pf-stage > .pv { transition: transform .6s var(--pf-ease), filter .6s var(--pf-ease); filter: drop-shadow(0 12px 14px rgba(40,25,10,.18)); }
.pf-stage--website .pv, .pf-stage--poster .pv-print--landscape { width: 100%; }
.pf-stage--video .pv { width: 70%; }
.pf-stage--product3d .pv-product { width: 100%; }
.pf-hint {
  position: absolute; left: 14px; right: 14px; bottom: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(7,20,66,.86); color: #fff;
  font: 500 12.5px/1.4 var(--f-body); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--pf-ease); pointer-events: none;
}
.pf-card:hover, .pf-card:focus-visible { box-shadow: 0 0 0 1.5px var(--blue), 0 30px 50px -30px rgba(7,20,66,.45); }
.pf-card:hover::after { opacity: 1; }
.pf-card:hover .pf-stage > .pv, .pf-card:focus-visible .pf-stage > .pv { transform: translateZ(40px) scale(1.05); filter: drop-shadow(0 26px 24px rgba(40,25,10,.3)); animation: pf-float 3.6s ease-in-out .5s infinite; }
.pf-card:hover .pf-hint, .pf-card:focus-visible .pf-hint { opacity: 1; transform: none; }
.pf-card:hover .pv-play { transform: translate(-50%, -50%) scale(1.12); }
.pf-card:focus-visible { outline: none; }
@keyframes pf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.pf-meta { padding: 14px 4px 0; }
.pf-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.pf-meta h3 { font-family: var(--f-display); font-size: 16px; font-weight: 600; margin: 4px 0 2px; line-height: 1.3; }
.pf-meta p { font-size: 13px; color: var(--ink-2); margin: 0; }
@media (hover: none) { .pf-hint { display: none; } }

/* ================================================================ viewer */
.pv-noscroll, .pv-noscroll body { overflow: hidden; }
.pv-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(0px, 2vw, 28px); }
.pv-modal[hidden] { display: none; }
.pv-overlay { position: absolute; inset: 0; background: rgba(5,8,20,.72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.pv-dialog {
  position: relative; width: min(1240px, 100%); height: min(860px, 100%); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  border-radius: 22px; color: #fff; background: radial-gradient(70% 60% at 50% 40%, #1d2333, #0c0f18 70%);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s, transform .4s var(--pf-ease);
}
.pv-modal.is-open .pv-overlay { opacity: 1; }
.pv-modal.is-open .pv-dialog { opacity: 1; transform: none; }
.pv-dialog:fullscreen { width: 100%; height: 100%; border-radius: 0; }
.pv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 6px 26px; }
.pv-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fc2ff; }
.pv-heading h2 { font-family: var(--f-display); font-style: normal; font-size: clamp(18px, 2vw, 24px); font-weight: 600; margin: 4px 0 2px; color: #fff; }
.pv-heading p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.pv-tools { display: flex; gap: 6px; flex: none; }
.pv-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s; }
.pv-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pv-btn:hover { background: rgba(255,255,255,.16); }
.pv-btn:disabled { opacity: .3; cursor: default; }
.pv-btn:focus-visible, .pv-nav:focus-visible, .pv-chip:focus-visible { outline: 2px solid #9fc2ff; outline-offset: 2px; }
.pv-body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 0; padding: 10px clamp(56px, 7vw, 90px); overflow: hidden; }
.pv-desc { margin: 0; padding: 10px 26px 20px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 900px; }
.pv-hint { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.pv-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; z-index: 5; transition: background .2s, opacity .2s; }
.pv-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pv-nav:hover { background: rgba(255,255,255,.2); }
.pv-nav:disabled { opacity: 0; pointer-events: none; }
.pv-nav--prev { left: 14px; } .pv-nav--next { right: 14px; }
.pv-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 40px; background: rgba(255,255,255,.08); flex: none; }
.pv-chip { border: 0; padding: 8px 16px; border-radius: 40px; background: none; color: rgba(255,255,255,.75); font: 600 13px var(--f-body); cursor: pointer; transition: background .2s, color .2s; }
.pv-chip:hover { color: #fff; }
.pv-chip.is-on { background: #fff; color: var(--navy); }
.pv-chip--icon { width: 38px; padding: 8px 0; font-size: 20px; line-height: .8; }
.pv-chip:disabled { opacity: .3; cursor: default; }
.pv-bars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pv-count { align-self: center; min-width: 150px; text-align: center; font-size: 13px; color: rgba(255,255,255,.8); }

/* poster, gallery and flat artwork: zoom and pan */
.pv-frame { position: relative; display: grid; place-items: center; width: 100%; flex: 1; min-height: 0; overflow: hidden; cursor: zoom-in; touch-action: none; }
.pv-frame.is-zoomed { cursor: grab; }
.pv-frame[hidden], .pv-switch[hidden], .pv-bars [hidden] { display: none !important; }
.pv-frame > .pv-img { position: absolute; inset: 0; margin: auto; }
.pv-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center; transition: transform .25s ease-out; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); user-select: none; -webkit-user-drag: none; }
.pv-gallery { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; min-height: 0; }
.pv-thumbs { display: flex; gap: 8px; flex: none; }
.pv-thumb { width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .6; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb.is-on { border-color: #fff; opacity: 1; }

/* flipping card / sheet */
.pv-flip { perspective: 1800px; display: grid; place-items: center; transition: transform .3s; }
.pv-flip-card { cursor: grab; touch-action: none; }
.pv-flip-card:active { cursor: grabbing; }
.pv-flip-inner { position: relative; transform-style: preserve-3d; transition: transform .8s var(--pf-ease); }
.pv-flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fff; box-shadow: 0 40px 60px -30px rgba(0,0,0,.8); }
.pv-flip-face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.pv-flip-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 40%); pointer-events: none; }
.pv-flip-face--back { transform: rotateY(180deg); }
.pv-flip--card .pv-flip-inner { width: min(620px, 70vw); aspect-ratio: 900 / 530; }
.pv-flip--card .pv-flip-face { border-radius: 12px; }
.pv-flip--sheet .pv-flip-inner { height: min(56vh, 600px); aspect-ratio: 989 / 1400; }
.pv-card-view { display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* brochure: open flat with an unfolding animation */
.pv-bro { position: relative; display: grid; place-items: center; transition: transform .3s; }
.pv-bro-open { display: none; perspective: 2200px; }
.pv-bro.is-open .pv-flip { display: none; }
.pv-bro.is-open .pv-bro-open { display: flex; }
.pv-panel { height: min(56vh, 600px); aspect-ratio: 989 / 1400; background: #fff; overflow: hidden; box-shadow: 0 40px 60px -30px rgba(0,0,0,.8); }
.pv-panel img { width: 100%; height: 100%; object-fit: cover; }
.pv-bro-open--2 .pv-panel--1 { transform-origin: left center; animation: pv-unfold-r .9s var(--pf-ease) both; box-shadow: inset 10px 0 18px -10px rgba(0,0,0,.4), 0 40px 60px -30px rgba(0,0,0,.8); }
.pv-bro-open--3 .pv-panel { height: min(48vh, 520px); }
.pv-bro-open--3 .pv-panel--0 { transform-origin: right center; animation: pv-unfold-l .9s var(--pf-ease) both; }
.pv-bro-open--3 .pv-panel--2 { transform-origin: left center; animation: pv-unfold-r .9s .15s var(--pf-ease) both; }
@keyframes pv-unfold-r { from { transform: rotateY(-178deg); } to { transform: rotateY(0); } }
@keyframes pv-unfold-l { from { transform: rotateY(178deg); } to { transform: rotateY(0); } }

/* invitation: folded card opening on its hinge */
.pv-invite { perspective: 2200px; transition: transform .3s; }
.pv-invite-book { position: relative; height: min(56vh, 600px); aspect-ratio: 989 / 1400; transition: transform .8s var(--pf-ease); transform-style: preserve-3d; }
.pv-invite.is-open .pv-invite-book { transform: translateX(50%); }
.pv-invite-page, .pv-invite-cover { position: absolute; inset: 0; }
.pv-invite-page { background: #fff; box-shadow: 0 40px 60px -30px rgba(0,0,0,.8); }
.pv-invite-page img, .pv-invite-face img { width: 100%; height: 100%; object-fit: cover; }
.pv-invite-cover { transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s var(--pf-ease); cursor: pointer; z-index: 2; }
.pv-invite.is-open .pv-invite-cover { transform: rotateY(-178deg); }
.pv-invite-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fff; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.pv-invite-face--inner { transform: rotateY(180deg); background: linear-gradient(90deg, #f3efe7, #fbf9f4 70%, #ece6db); }

/* booklet / catalogue: a 3D book */
.pv-book-wrap { display: grid; place-items: center; transition: transform .3s; }
.pvx-book { position: relative; height: min(58vh, 640px); aspect-ratio: 1520 / 1074; perspective: 2600px; transition: transform .7s var(--pf-ease); }
.pvx-book.at-start { transform: translateX(-25%); }
.pvx-book.at-end { transform: translateX(25%); }
.pv-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45,.05,.2,1); cursor: pointer; }
.pv-leaf.is-turned { transform: rotateY(-180deg); }
.pv-leaf-front, .pv-leaf-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fff; }
.pv-leaf-front { border-radius: 0 4px 4px 0; box-shadow: 4px 0 0 -1px #e9e4da, 7px 1px 0 -2px #ddd6c9, 0 30px 40px -24px rgba(0,0,0,.8); }
.pv-leaf-back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; box-shadow: -4px 0 0 -1px #e9e4da, -7px 1px 0 -2px #ddd6c9, 0 30px 40px -24px rgba(0,0,0,.8); }
.pv-page { position: absolute; inset: 0; }
.pv-page img { width: 100%; height: 100%; object-fit: cover; }
.pv-page--blank { background: linear-gradient(135deg, #f7f5ef, #ece8dd); }
.pv-leaf-front .pv-page::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 8%; background: linear-gradient(90deg, rgba(0,0,0,.22), transparent); }
.pv-leaf-back .pv-page::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 8%; background: linear-gradient(270deg, rgba(0,0,0,.22), transparent); }
.pv-leaf:first-child .pv-leaf-front .pv-page::after { width: 3%; }
.pv-page-num { position: absolute; bottom: 6px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.85); color: #333; font: 600 10px var(--f-body); }
.pv-leaf-front .pv-page-num { right: 8px; } .pv-leaf-back .pv-page-num { left: 8px; }
.pv-page-num:empty { display: none; }
.pv-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 40px; background: rgba(7,20,66,.9); color: #fff; font: 600 12px var(--f-body); white-space: nowrap; }
.pv-book-edge { position: absolute; left: 50%; top: 2%; bottom: 2%; width: 6px; margin-left: -3px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.2), rgba(0,0,0,.35)); border-radius: 3px; pointer-events: none; z-index: 100; opacity: .7; transition: opacity .3s; }
.pvx-book.at-start .pv-book-edge, .pvx-book.at-end .pv-book-edge { opacity: 0; }
.pv-switch--book { align-items: center; }

/* logo presentation */
.pv-logo-grid { --z: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(980px, 100%); transform: scale(var(--z)); transition: transform .3s; }
.pv-logo-tile { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; display: grid; place-items: center; transition: transform .3s var(--pf-ease), box-shadow .3s; }
.pv-logo-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -20px rgba(0,0,0,.8); }
.pv-logo-grid.has-big .pv-logo-tile:not(.is-big) { display: none; }
.pv-logo-tile.is-big { grid-column: 1 / -1; aspect-ratio: 16 / 7.5; cursor: zoom-out; }
.pv-logo-cap { position: absolute; left: 10px; bottom: 8px; font: 600 11px var(--f-body); letter-spacing: .04em; color: rgba(0,0,0,.5); }
.pv-logo-tile--dark .pv-logo-cap, .pv-logo-tile--app .pv-logo-cap { color: rgba(255,255,255,.7); }
.pv-logo-mark { max-width: 62%; max-height: 52%; object-fit: contain; }
.pv-logo-tile--primary { background: #fff; }
.pv-logo-tile--dark { background: #0d1120; }
.pv-logo-mark.is-reversed { filter: brightness(0) invert(1); }
.pv-logo-plate { display: grid; place-items: center; width: 70%; aspect-ratio: 2.4; background: #fff; border-radius: 8px; }
.pv-logo-plate .pv-logo-mark { max-width: 84%; max-height: 74%; }
.pv-logo-onbrand { position: absolute; inset: 0; display: grid; place-items: center; }
.pv-logo-tile--brand .pv-logo-cap { color: rgba(0,0,0,.5); }
.pv-logo-tile--palette { background: #fff; }
.pv-swatches { position: absolute; inset: 0 0 30px 0; display: flex; }
.pv-swatch { flex: 1; display: flex; align-items: flex-end; padding: 10px; }
.pv-swatch:first-child { flex: 2; }
.pv-swatch b { font: 600 11px var(--f-body); color: #fff; letter-spacing: .03em; }
.pv-swatch.is-light b { color: rgba(0,0,0,.7); }
.pv-swatch.is-light { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pv-logo-tile--app { background: radial-gradient(80% 70% at 40% 30%, #4a3b2e, #2a2019); }
.pv-app-card { display: grid; place-items: center; width: 54%; aspect-ratio: 900 / 530; background: #fff; border-radius: 5px; transform: rotate(-8deg); box-shadow: 0 20px 26px -14px rgba(0,0,0,.8); }
.pv-app-card-in { display: grid; place-items: center; width: 100%; height: 100%; }
.pv-app-card .pv-logo-mark { max-width: 70%; }
.pv-app-sign { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #e9e6e1, #c9c3ba); }
.pv-app-sign-in { display: grid; place-items: center; width: 66%; aspect-ratio: 2.4; background: linear-gradient(160deg, #fff, #f1f3f6); border-radius: 6px; box-shadow: 16px 20px 26px -12px rgba(40,30,20,.5); transform: perspective(600px) rotateY(-14deg); }
.pv-app-sign-in .pv-logo-mark { max-width: 80%; max-height: 64%; }

/* product in 3D */
.pvx-product { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: 0; }
.pv-product-stage { position: relative; flex: 1; width: 100%; min-height: 0; display: grid; place-items: center; cursor: grab; touch-action: none; transition: transform .3s; container-type: size; overflow: hidden; }
.pv-product-stage.is-grabbing { cursor: grabbing; }
.pv-product-stage[hidden] { display: none; }
.pv-cyl { position: relative; width: min(520px, 90%); height: 100%; transition: transform .3s; }
.pv-product-stage .pv-cup { position: relative; width: min(520px, 90cqw, 96cqh); aspect-ratio: 1; height: auto; transition: transform .3s; }   /* always fits above the buttons */
.pv-frame--flat .pv-img { background: #fff; }
.pv-switch--views[hidden] { display: none; }

/* video */
.pv-video { position: relative; display: grid; place-items: center; flex: 1; width: 100%; min-height: 0; }
.pv-video video { position: absolute; inset: 0; margin: auto; max-height: 100%; max-width: 100%; border-radius: 14px; background: #000; }
.pv-video--ig { container-type: size; }
.pv-ig { --w: min(400px, 92cqw, calc((100cqh - 96px) / 1.25)); container-type: inline-size; width: var(--w); height: calc(96px + var(--w) * 1.25); overflow: hidden; border-radius: 14px; background: #fff; }
.pv-ig iframe { display: block; width: 100%; height: calc(96px + 125cqw + 200px); border: 0; }

/* website and CRM */
.pv-site { display: grid; place-items: center; width: 100%; }
.pv-devices { position: relative; width: min(860px, 100%); }
.pv-lap { position: relative; margin: 0 7%; padding: 2.4% 2.4% 3%; border-radius: 16px 16px 4px 4px; background: linear-gradient(180deg, #2b2d33, #121317); }
.pv-lap-cam { position: absolute; top: 1%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a4050; }
.pv-lap-screen { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9.2; background: #fff; cursor: zoom-in; touch-action: none; }
.pv-lap-screen.is-zoomed { cursor: grab; }
.pv-lap-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .25s ease-out; user-select: none; -webkit-user-drag: none; }
.pv-lap-base { height: 0; padding-bottom: 3%; border-radius: 3px 3px 18px 18px / 3px 3px 60% 60%; background: linear-gradient(180deg, #e7e9ee, #a9aeb8); }
.pvx-phone { position: absolute; right: 2%; bottom: 4%; width: 19%; aspect-ratio: 445 / 900; padding: 1.4%; border-radius: 20px; background: #111; box-shadow: inset 0 0 0 2px #333, 0 30px 40px -20px rgba(0,0,0,.8); }
.pvx-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 14px; }
.pv-visit { color: #9fc2ff; font-weight: 600; font-size: 14px; }

/* -------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .pf-stage { aspect-ratio: 4 / 3; padding: 8% 16% 10%; }
  .desk { padding: 0 0 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }   /* the desk is wider than the phone: swipe to explore it */
  .desk::-webkit-scrollbar { display: none; }
  .desk-surface { width: 860px; border-radius: 0; }
  .desk-tag { font-size: 10px; padding: 5px 9px; }
  .pf-toolbar { position: static; }
  .pf-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px; padding: 0 10px 4px; scrollbar-width: none; }
  .pf-filters::-webkit-scrollbar { display: none; }
  .pf-filter { flex: none; }
  .pf-search { width: 100%; }
  .pv-modal { padding: 0; }
  .pv-dialog { border-radius: 0; }
  .pv-top { padding: 14px 12px 4px 16px; }
  .pv-tools .pv-btn[data-zoom] { display: none; }
  .pv-body { padding: 6px 12px; }
  .pv-nav { top: auto; bottom: 74px; width: 40px; height: 40px; }
  .pv-desc { padding: 8px 16px 16px; font-size: 13px; max-height: 26vh; overflow-y: auto; }
  .pv-flip--sheet .pv-flip-inner, .pv-panel, .pv-invite-book { height: min(48vh, 440px); }
  .pv-bro-open--2 .pv-panel { height: auto; width: 42vw; }
  .pv-invite.is-open .pv-invite-book { transform: translateX(50%) scale(.62); }
  .pvx-book { height: auto; width: 92vw; }
  .pv-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card:hover .pf-stage > .pv { animation: none; }
  .pv-leaf, .pv-flip-inner, .pv-invite-cover, .pv-invite-book, .pv-book { transition-duration: .01s; }
  .pv-panel { animation: none !important; }
}
.pf-section--desk { padding-bottom: 0; }
/* desk pieces are categories: keep their labels visible */
.desk-tag { opacity: 1; transform: translate(-50%, 0) rotate(calc(var(--r) * -1)); flex-direction: column; gap: 3px; padding: 7px 13px 8px; font-size: 11px; color: rgba(255,255,255,.75); }
.desk-tag b { font-size: 13px; color: #fff; }
.desk-obj:hover .desk-tag, .desk-obj:focus-visible .desk-tag { background: var(--blue); transform: translate(-50%, -4px) rotate(calc(var(--r) * -1)); }
.desk-obj--bottle .pv-product { aspect-ratio: 1 / 2.2; }

/* ---------- logo brand presentation ---------- */
.pv-body--logo { justify-content: flex-start; overflow-y: auto; padding-top: 6px; padding-bottom: 18px; scrollbar-width: thin; }
.pv-body--logo .pv-logo-grid { gap: 14px; transform-origin: top center; flex: none; }
.pv-body--logo .pv-logo-tile { aspect-ratio: 4 / 3; border-radius: 16px; }
.pv-body--logo .pv-logo-tile--hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pv-body--logo .pv-logo-tile.is-big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 8; }
.pv-logo-cap { left: 14px; bottom: 11px; font-size: 11.5px; padding: 4px 9px; border-radius: 20px; background: rgba(255,255,255,.72); color: rgba(10,14,25,.72) !important; backdrop-filter: blur(6px); }
.mk { position: relative; display: block; }
.mk-svg, .mk-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mk .pv-logo-mark { max-width: none; max-height: none; object-fit: contain; }
.mk-print { mix-blend-mode: multiply; }
.mk-fill { position: absolute; inset: 0; display: grid; place-items: center; }
.mk-fill::after, .pv-logo-tile--hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 80% at 30% 20%, rgba(255,255,255,.12), transparent 60%); }

/* hero: guideline page */
.pv-logo-tile--hero { background: #fff; background-image: linear-gradient(rgba(22,119,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(22,119,255,.06) 1px, transparent 1px); background-size: 28px 28px; background-position: center; }
.mk-hero { position: absolute; inset: 0; display: grid; place-items: center; }
.mk-guide { position: relative; width: 62%; height: 42%; display: grid; place-items: center; outline: 1px dashed rgba(22,119,255,.45); outline-offset: 0; }
.mk-guide .pv-logo-mark { width: 78%; height: 70%; max-width: none; max-height: none; object-fit: contain; }
.mk-corner { position: absolute; width: 14px; height: 14px; border: 0 solid #1677ff; }
.mk-corner--tl { left: -7px; top: -7px; border-width: 2px 0 0 2px; } .mk-corner--tr { right: -7px; top: -7px; border-width: 2px 2px 0 0; }
.mk-corner--bl { left: -7px; bottom: -7px; border-width: 0 0 2px 2px; } .mk-corner--br { right: -7px; bottom: -7px; border-width: 0 2px 2px 0; }
.mk-hero-note { position: absolute; right: 16px; bottom: 14px; font: 600 11px var(--f-body); letter-spacing: .04em; color: rgba(22,119,255,.75); }
.pv-logo-tile--dark .pv-logo-mark { max-width: 68%; max-height: 46%; }

/* palette */
.pv-logo-tile--palette { background: #fff; }
.pv-swatches { position: absolute; inset: 0; display: flex; }
.pv-swatch { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 12px 12px 44px; }
.pv-swatch:first-child { flex: 1.6; }
.pv-swatch small { font: 600 10.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pv-swatch b { font: 700 13px var(--f-body); color: #fff; letter-spacing: .03em; }
.pv-swatch.is-light b { color: rgba(0,0,0,.78); } .pv-swatch.is-light small { color: rgba(0,0,0,.5); }

/* T-shirt */
.pv-logo-tile--tee { background: radial-gradient(70% 70% at 50% 35%, #f1ede7, #d2cbc0); }
.mk-tee { height: 92%; aspect-ratio: 1; margin-top: -4%; filter: drop-shadow(0 18px 16px rgba(60,45,30,.32)); }
.mk-tee .pv-logo-mark { position: absolute; left: 50%; top: 38%; width: 40%; height: 19%; transform: translate(-50%, -50%); opacity: .93; }

/* cap */
.pv-logo-tile--cap { background: radial-gradient(70% 75% at 50% 32%, #f6f4f0, #d5d0c7); }
.mk-cap { height: 74%; aspect-ratio: 240 / 180; margin-top: -6%; filter: drop-shadow(0 22px 18px rgba(30,25,20,.38)); }
.mk-patch { position: absolute; left: 50%; top: 45%; width: 46%; aspect-ratio: 2.3; background: #f8f7f3; border-radius: 7px;
  transform: translate(-50%, -50%) perspective(260px) rotateX(10deg); box-shadow: 0 2px 3px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.08); }
.mk-patch::after { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(0,0,0,.3); border-radius: 5px; }
.mk-patch .pv-logo-mark { position: absolute; left: 9%; top: 15%; width: 82%; height: 70%; mix-blend-mode: multiply; }

/* shop front at dusk */
.pv-logo-tile--shop { background: linear-gradient(#24324a 0 14%, transparent 14%), repeating-linear-gradient(0deg, transparent 0 13px, rgba(0,0,0,.07) 13px 14px), linear-gradient(#cbb69b, #b49d80); }
.mk-shop { position: absolute; inset: 0; }
.mk-board { position: absolute; left: 8%; right: 8%; top: 20%; height: 27%; display: grid; place-items: center; background: var(--board); border-radius: 3px;
  box-shadow: 0 0 0 3px #2b2f36, 0 7px 0 3px #1c1f24, 0 22px 26px -6px rgba(0,0,0,.55), 0 -10px 40px rgba(255,226,160,.25); }
.mk-board::before { content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: radial-gradient(40% 90% at 22% 0, rgba(255,236,190,.45), transparent 70%), radial-gradient(40% 90% at 50% 0, rgba(255,236,190,.45), transparent 70%), radial-gradient(40% 90% at 78% 0, rgba(255,236,190,.45), transparent 70%); }
.mk-board .pv-logo-mark { position: absolute; left: 13%; top: 14%; width: 74%; height: 72%; }
.mk-lamp { position: absolute; top: 12%; width: 3.4%; height: 7%; border-top: 2px solid #2b2f36; border-right: 2px solid #2b2f36; border-radius: 0 8px 0 0; }
.mk-lamp::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 9px; height: 5px; border-radius: 0 0 6px 6px; background: #2b2f36; box-shadow: 0 5px 12px 4px rgba(255,230,170,.85); }
.mk-lamp--l { left: 20%; } .mk-lamp--c { left: 48.3%; } .mk-lamp--r { left: 76%; }
.mk-front { position: absolute; left: 12%; right: 12%; top: 53%; bottom: 9%; border: 4px solid #2b2f36; border-bottom: 0; overflow: hidden;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0 10%, transparent 10% 28%, rgba(255,255,255,.14) 28% 33%, transparent 33%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), #2b2f36 calc(25% - 3px) 25%), linear-gradient(#f7e7c4, #e9c98d 60%, #c9a46a); }
.mk-door { position: absolute; left: 37.5%; width: 25%; top: 8%; bottom: 0; background: linear-gradient(#fff3d6, #f0d49a); box-shadow: inset 0 0 0 3px #2b2f36; }
.mk-step { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(#8f877c, #6f685f); }

/* stationery flat-lay */
.pv-logo-tile--stat { background: linear-gradient(135deg, #e9e4dc, #d6cfc4); }
.mk-stat { position: absolute; inset: 0; }
.mk-letter { position: absolute; left: 12%; top: 9%; width: 34%; aspect-ratio: 210 / 297; background: #fff; transform: rotate(-7deg); box-shadow: 0 16px 22px -12px rgba(50,35,20,.45); padding: 7% 5%; display: flex; flex-direction: column; gap: 6%; }
.mk-letter .pv-logo-mark { width: 62%; height: 14%; object-position: left; margin-bottom: 8%; }
.mk-line { display: block; height: 3px; border-radius: 2px; background: #e3e6ec; }
.mk-line:nth-child(3n) { width: 70%; }
.mk-env { position: absolute; right: 9%; top: 14%; width: 46%; aspect-ratio: 220 / 110; background: #fbfaf7; transform: rotate(5deg); box-shadow: 0 16px 22px -12px rgba(50,35,20,.45); display: grid; place-items: start; padding: 4% 5%; }
.mk-env .pv-logo-mark { width: 48%; height: 42%; object-position: left top; }
.mk-bcard { position: absolute; right: 18%; bottom: 12%; width: 34%; aspect-ratio: 85 / 55; display: grid; place-items: center; border-radius: 4px; transform: rotate(-12deg); box-shadow: 0 18px 22px -10px rgba(30,20,10,.55); }
.mk-bcard .pv-logo-mark, .mk-bcard .pv-logo-plate { max-width: 76%; max-height: 54%; }

/* social profile on a phone */
.pv-logo-tile--social { background: radial-gradient(70% 80% at 50% 30%, #eef1f7, #cfd6e3); }
.mk-social { position: absolute; left: 50%; top: 9%; height: 118%; aspect-ratio: 9 / 17; transform: translateX(-50%); border-radius: 22px; background: #10131b; padding: 5px; box-shadow: 0 24px 30px -14px rgba(10,20,40,.55); }
.mk-screen { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; border-radius: 18px; overflow: hidden; background: #fff; }
.mk-cover { width: 100%; height: 20%; flex: none; }
.mk-avatar { width: 34%; aspect-ratio: 1; margin-top: -17%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.2); overflow: hidden; flex: none; }
.mk-avatar .pv-logo-mark { width: 80%; height: 60%; }
.mk-name { margin-top: 5%; font: 700 clamp(7px, 1vw, 11px) var(--f-body); color: #10131b; text-align: center; padding: 0 6%; line-height: 1.2; }
.mk-bio { display: block; width: 64%; height: 3px; margin-top: 4%; border-radius: 2px; background: #e3e6ec; } .mk-bio--short { width: 44%; margin-top: 3%; }
.mk-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; margin-top: 9%; }
.mk-post { aspect-ratio: 1; display: grid; place-items: center; }
.mk-post .pv-logo-mark, .mk-post .pv-logo-plate { max-width: 76%; max-height: 50%; }

/* mug */
.pv-logo-tile--mug { background: linear-gradient(#efe9e1 0 60%, #a57b52 60%, #8a6440); }
.mk-mug { height: 54%; aspect-ratio: .82; margin-top: 4%; margin-right: 8%; border-radius: 5px 5px 16px 16px;
  background: linear-gradient(90deg, #c4c4c4, #fff 30%, #f7f7f7 55%, #d0d0d0 85%, #b5b5b5); box-shadow: 16px 18px 20px -10px rgba(60,40,20,.55); }
.mk-mug::before { content: ""; position: absolute; left: 0; right: 0; top: -5%; height: 10%; border-radius: 50%; background: radial-gradient(#3a2416 55%, #e8e8e8 58%); }
.mk-mug::after { content: ""; position: absolute; right: -30%; top: 20%; width: 34%; height: 50%; border: solid #e4e4e4; border-width: 9px 9px 9px 0; border-radius: 0 40% 40% 0; box-shadow: 3px 3px 4px -2px rgba(0,0,0,.25); }
.mk-mug .pv-logo-mark { position: absolute; left: 11%; top: 30%; width: 78%; height: 40%; }

/* call to action */
.pv-cta { flex: none; width: min(980px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(120deg, #1677ff, #0b4fd1); box-shadow: 0 20px 40px -20px rgba(22,119,255,.7); }
.pv-cta-text b { display: block; font: 600 clamp(16px, 1.6vw, 20px)/1.25 var(--f-display); color: #fff; }
.pv-cta-text span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.85); max-width: 560px; }
.pv-cta-acts { display: flex; gap: 10px; flex: none; }
.pv-cta-btn, .pv-cta-wa { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px; font: 700 14px var(--f-body); text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s; }
.pv-cta-btn { background: #fff; color: #0b3fae; } .pv-cta-btn:hover { transform: translateY(-2px); }
.pv-cta-wa { background: #25d366; color: #fff; } .pv-cta-wa:hover { background: #1ebe5a; transform: translateY(-2px); }

@media (max-width: 760px) {
  .pv-body--logo .pv-logo-tile--hero { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .pv-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .pv-cta-acts { flex-direction: column; } .pv-cta-btn, .pv-cta-wa { justify-content: center; }
  .pv-logo-cap { font-size: 10px; left: 8px; bottom: 7px; }
}

/* ---------- interactive desk ---------- */
.desk-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue) !important; }
.desk-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.18); animation: desk-ping 1.8s ease-out infinite; }
@keyframes desk-ping { 0% { box-shadow: 0 0 0 0 rgba(22,119,255,.45); } 100% { box-shadow: 0 0 0 10px rgba(22,119,255,0); } }
.desk-hint-touch { display: none; }
@media (hover: none) { .desk-hint-mouse { display: none; } .desk-hint-touch { display: inline; } }

.desk-obj {
  --rk: 1; --px: 0px; --py: 0px; --dx: 0px; --dy: 0px;
  translate: calc(var(--px) + var(--dx)) calc(var(--py) + var(--dy));
  transform: rotate(calc(var(--r) * var(--rk))) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .55s var(--pf-ease), translate .45s var(--pf-ease), z-index 0s .2s;
}
@media (hover: hover) and (pointer: fine) { .desk-obj { cursor: grab; } }
.desk-obj:hover, .desk-obj:focus-visible, .desk-obj.is-dragging { --rk: .2; }
.desk-obj.is-dragging { cursor: grabbing; transition: transform .4s var(--pf-ease), translate 0s; }
.desk-obj.is-dragging > .pv { transform: translateY(-18px) scale(1.1); filter: drop-shadow(0 44px 34px rgba(40,25,10,.42)); }
.desk-obj.is-dragging .desk-tag { opacity: 0; }

/* gentle floating, each piece on its own beat */
.desk-obj > .pv { animation: desk-float 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -0.8s); }
@keyframes desk-float { from { translate: 0 0; } to { translate: 0 -6px; } }

/* the rest of the desk steps back while you look at one piece */
.desk-surface.has-hover .desk-obj:not(:hover):not(.is-dragging) > .pv { filter: drop-shadow(0 8px 10px rgba(40,25,10,.22)) saturate(.7) brightness(.92); }

/* each piece shows a little more of itself on hover */
.pv-sheet, .pv-bcard, .pv-book-cover { transition: transform .65s var(--pf-ease); }
.desk-obj:hover .pv-sheet--back { transform: translate(30%, 5%) rotate(13deg); }
.desk-obj:hover .pv-sheet--front { transform: translate(-6%, -2%) rotate(-4deg); }
.desk-obj:hover .pv-bcard--back { transform: translate(16%, 20%) rotate(15deg); }
.desk-obj:hover .pv-bcard--front { transform: translate(-8%, -10%) rotate(-10deg); }
.desk-obj--book .pv-book { perspective: 900px; transform-style: preserve-3d; }
.pv-book-cover { transform-origin: left center; }
.desk-obj:hover .pv-book-cover { transform: rotateY(-32deg); box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.35), 14px 6px 20px -6px rgba(0,0,0,.35); }

/* a light sweep across printed pieces */
.desk-obj .pv-print::after, .desk-obj .pv-logo::after, .desk-obj .pv-sheet--front::after, .desk-obj .pv-bcard--front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
}
.desk-obj:hover .pv-print::after, .desk-obj:hover .pv-logo::after, .desk-obj:hover .pv-sheet--front::after, .desk-obj:hover .pv-bcard--front::after { animation: desk-sweep 1.1s ease-out forwards; }
@keyframes desk-sweep { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }

/* the lamp that follows the mouse */
.desk-spot { position: absolute; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 40%), rgba(255,248,230,.55), rgba(255,248,230,0) 65%); mix-blend-mode: soft-light; }
.desk-surface.is-lit .desk-spot { opacity: 1; }

.desk-tidy { position: absolute; right: 16px; bottom: 16px; z-index: 60; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 40px;
  background: rgba(7,20,66,.92); color: #fff; font: 600 13px var(--f-body); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); animation: hc-in .3s var(--pf-ease) both; }
.desk-tidy:hover { background: var(--blue); }
.desk-tidy[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .desk-obj > .pv, .desk-hint::before { animation: none; }
  .desk-obj:hover .pv-print::after, .desk-obj:hover .pv-logo::after, .desk-obj:hover .pv-sheet--front::after, .desk-obj:hover .pv-bcard--front::after { animation: none; }
}

/* the slimmer quote banner under brochures, cards, packaging, videos and websites */
.pv-cta--slim { padding: 12px 14px 12px 20px; gap: 14px; }
.pv-cta--slim .pv-cta-text b { font-size: clamp(15px, 1.35vw, 17px); }
.pv-cta--slim .pv-cta-text span { font-size: 12.5px; margin-top: 2px; }
.pv-cta--slim .pv-cta-btn, .pv-cta--slim .pv-cta-wa { padding: 10px 15px; font-size: 13px; }
@media (max-width: 760px) {
  .pv-cta--slim { flex-direction: row; align-items: center; padding: 10px 10px 10px 14px; }
  .pv-cta--slim .pv-cta-text span { display: none; }
  .pv-cta--slim .pv-cta-acts { flex-direction: row; }
  .pv-cta--slim .pv-cta-wa { font-size: 0; padding: 10px 12px; }
  .pv-cta--slim .pv-cta-wa::before { content: "WhatsApp"; font-size: 13px; }
}
/* leave room for the quote banner under cards, brochures, invitations and catalogues */
.pv-flip--sheet .pv-flip-inner, .pv-panel, .pv-invite-book { height: min(46vh, 540px); }
.pv-bro-open--3 .pv-panel { height: min(40vh, 460px); }
.pvx-book { height: min(48vh, 560px); }
@media (max-width: 760px) { .pv-flip--sheet .pv-flip-inner, .pv-panel, .pv-invite-book { height: min(40vh, 400px); } }
/* website mockups: size by screen height too, so the visit link and quote banner fit below */
.pv-devices { width: min(860px, 100%, calc((100vh - 400px) * 1.6)); width: min(860px, 100%, calc((100dvh - 400px) * 1.6)); }
@media (max-width: 760px) {
  .pv-cta--slim { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .pv-cta--slim .pv-cta-text b { font-size: 15px; }
  .pv-cta--slim .pv-cta-acts { flex-direction: row; gap: 8px; }
  .pv-cta--slim .pv-cta-btn { flex: 1; justify-content: center; }
  .pv-cta--slim .pv-cta-wa { flex: none; }
}

/* the Kaveri Brew pouch standing on the desk (a cut-out photo) */
.desk-obj--pouch .pv-pouch { display: block; aspect-ratio: 449 / 640; }
.desk-obj--pouch .pv-pouch img { width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(14px 18px 14px rgba(60,40,20,.38)) drop-shadow(2px 4px 3px rgba(60,40,20,.3)); }

/* desk hint: a small hand-drawn arrow pointing down at the desk, instead of a pulsing dot */
.desk-hint { gap: 10px; font-weight: 500; }
.desk-hint::before {
  width: 22px; height: 22px; border-radius: 0; box-shadow: none; animation: none; flex: none; background: no-repeat center / contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4c7 0 11 4 11 13'/%3E%3Cpath d='m11 14 4 4 4-4'/%3E%3C/svg%3E");
}
