/* RichpProductions Client Gallery — v2 */
:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", "Cormorant", "GFS Didot", Didot, Georgia, serif;
  --display-weight: 300;
  --display-track: -.005em;
  --accent: #b8976a;
  --gap: 12px;
  --radius: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}
html[data-font="modern"] { --display: "Manrope", "Inter", sans-serif; --display-weight: 600; --display-track: -.045em; }
html[data-font="classic"] { --display: "Playfair Display", Georgia, serif; --display-weight: 400; --display-track: -.015em; }

[data-theme="light"] {
  --bg: #f4f2ee; --bg2: #ebe8e2; --panel: #fbfaf8; --text: #171614; --muted: #8a857d; --line: rgba(23,22,20,.1);
  --tile: #e4e0d9; --glass: rgba(251,250,248,.72); --glass-line: rgba(23,22,20,.08); --glass-text: #171614;
  --shadow: 0 20px 50px -18px rgba(30,25,15,.28), 0 2px 8px rgba(30,25,15,.06);
}
[data-theme="dark"] {
  --bg: #0b0b0a; --bg2: #141412; --panel: #151513; --text: #f2efe9; --muted: #8d887f; --line: rgba(242,239,233,.1);
  --tile: #1a1917; --glass: rgba(26,25,23,.66); --glass-line: rgba(255,255,255,.09); --glass-text: #f2efe9;
  --shadow: 0 24px 60px -16px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
.muted { color: var(--muted); }
.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow.accent { color: var(--accent); }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* film grain */
.grain { position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.preview-banner { position: fixed; z-index: 250; top: 16px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 99px; }

/* ---------------- Buttons */
.pill-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 99px; font: 500 13px var(--sans); letter-spacing: .02em; white-space: nowrap; transition: transform .3s var(--ease-out), background .25s, opacity .25s, border-color .25s; }
.pill-btn.solid { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.pill-btn.solid:hover { transform: translateY(-1px); }
.pill-btn.ghost { border: 1px solid var(--line); }
.pill-btn.ghost:hover { border-color: var(--text); }
.pill-btn.sm { height: 36px; padding: 0 16px; font-size: 12.5px; }
.pill-btn.wide { width: 100%; }
.pill-btn:disabled { opacity: .55; pointer-events: none; }

/* ---------------- Nav */
.nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 3vw, 40px); color: #fff; transition: background .5s var(--ease), color .5s, backdrop-filter .5s, border-color .5s, transform .5s var(--ease-out); border-bottom: 1px solid transparent; }
html[data-cover="split"] .nav, html[data-cover="framed"] .nav { color: var(--text); }
.nav.solid { background: var(--glass); color: var(--glass-text); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border-bottom-color: var(--glass-line); height: 62px; }
.nav-brand { justify-self: start; display: flex; align-items: center; }
.brand-word { font: 600 11.5px var(--sans); letter-spacing: .38em; text-transform: uppercase; }
.brand-logo { max-height: 34px; max-width: 180px; display: block; }
.nav:not(.solid) .brand-logo.inv, html[data-theme="dark"] .brand-logo.inv { filter: brightness(0) invert(1); }
html[data-cover="split"] .nav:not(.solid) .brand-logo.inv, html[data-cover="framed"] .nav:not(.solid) .brand-logo.inv { filter: none; }
html[data-theme="dark"][data-cover] .nav .brand-logo.inv { filter: brightness(0) invert(1); }
.nav-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 22px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
html[data-font="modern"] .nav-title { font-size: 18px; }
.nav.solid .nav-title { opacity: 1; transform: none; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; transition: opacity .4s; }
.nav.solid .nav-progress { opacity: 1; }
.nav-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------------- Cover (shared) */
.cover { position: relative; overflow: hidden; }
.cover-media { position: absolute; inset: 0; background: #0b0b0a; }
.cover-media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.2s var(--ease); }
.cover-media .slide.on { opacity: 1; }
.cover-shade { position: absolute; inset: 0; pointer-events: none; }
.cover-text { position: relative; z-index: 2; }
.cover-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); margin: 0; line-height: .95; text-wrap: balance; }
.cover-meta { font: 400 13px var(--sans); letter-spacing: .08em; opacity: .8; margin: 18px 0 0; }
.btn-enter { margin-top: 34px; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px 0 28px; border-radius: 99px; font: 500 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .35s, color .35s, transform .4s var(--ease-out); }
.btn-enter svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: #fff; color: #111; stroke-width: 1.8; transition: transform .4s var(--ease-out); }
.btn-enter:hover { background: #fff; color: #111; }
.btn-enter:hover svg { transform: translateY(3px); background: var(--accent); color: #fff; }
.cover-dots { position: absolute; z-index: 3; display: flex; gap: 6px; }
.cover-dots i { width: 28px; height: 2px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; position: relative; }
.cover-dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.cover-dots i.on::after { animation: dot var(--slide-ms, 6500ms) linear forwards; }
.cover-dots i.done::after { transform: scaleX(1); }
@keyframes dot { to { transform: scaleX(1); } }

/* text entrance */
.cover-text > * { opacity: 0; transform: translateY(18px); transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out); }
.cover.ready .cover-text > * { opacity: 1; transform: none; }
.cover.ready .cover-text > *:nth-child(2) { transition-delay: .12s; }
.cover.ready .cover-text > *:nth-child(3) { transition-delay: .24s; }
.cover.ready .cover-text > *:nth-child(4) { transition-delay: .36s; }

/* cinematic */
[data-cover="cinematic"] .cover { height: 100vh; height: 100svh; min-height: 560px; color: #fff; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
[data-cover="cinematic"] .cover-shade { background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 24%), linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 42%, rgba(0,0,0,0) 66%); }
[data-cover="cinematic"] .cover-text { padding: 0 24px 15vh; }
[data-cover="cinematic"] .cover-title { font-size: clamp(52px, 8.6vw, 136px); }
[data-cover="cinematic"] .cover-dots { right: clamp(18px, 3vw, 40px); bottom: 34px; }

/* bold */
[data-cover="bold"] .cover { height: 100vh; height: 100svh; min-height: 560px; color: #fff; display: flex; align-items: flex-end; }
[data-cover="bold"] .cover-shade { background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.05) 70%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%); }
[data-cover="bold"] .cover-text { width: 100%; padding: 0 clamp(20px, 4vw, 56px) clamp(36px, 7vh, 72px); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "eyebrow eyebrow" "title title" "meta cta"; align-items: end; column-gap: 30px; }
[data-cover="bold"] .eyebrow { grid-area: eyebrow; }
[data-cover="bold"] .cover-title { grid-area: title; font-size: clamp(64px, 12.5vw, 220px); line-height: .86; margin-left: -.04em; }
[data-cover="bold"] .cover-meta { grid-area: meta; margin-top: 26px; }
[data-cover="bold"] .btn-enter { grid-area: cta; margin-top: 20px; }
[data-cover="bold"] .cover-dots { right: clamp(20px, 4vw, 56px); top: 96px; }

/* split */
[data-cover="split"] .cover { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: var(--bg); }
[data-cover="split"] .cover-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; margin: 14px 14px 14px 0; border-radius: 22px; overflow: hidden; min-height: calc(100svh - 28px); }
[data-cover="split"] .cover-shade { display: none; }
[data-cover="split"] .cover-text { grid-column: 1; grid-row: 1; align-self: center; padding: 110px clamp(26px, 5vw, 80px) 60px; }
[data-cover="split"] .cover-title { font-size: clamp(50px, 6.2vw, 112px); }
[data-cover="split"] .btn-enter { background: var(--text); color: var(--bg); border-color: transparent; }
[data-cover="split"] .btn-enter svg { background: var(--accent); color: #fff; }
[data-cover="split"] .eyebrow { color: var(--accent); }
[data-cover="split"] .cover-dots { right: 36px; bottom: 36px; }

/* framed */
[data-cover="framed"] .cover { padding: 118px clamp(14px, 3vw, 40px) 0; text-align: center; background: var(--bg); display: flex; flex-direction: column; }
[data-cover="framed"] .cover-text { order: -1; }
[data-cover="framed"] .cover-text { padding-bottom: 46px; }
[data-cover="framed"] .cover-title { font-size: clamp(52px, 8vw, 128px); }
[data-cover="framed"] .eyebrow { color: var(--accent); }
[data-cover="framed"] .btn-enter { display: none; }
[data-cover="framed"] .cover-media { position: relative; inset: auto; height: min(72vh, 820px); border-radius: 24px; overflow: hidden; }
[data-cover="framed"] .cover-shade { display: none; }
[data-cover="framed"] .cover-dots { left: 50%; transform: translateX(-50%); bottom: 22px; }

/* ---------------- Gallery main */
main { position: relative; z-index: 2; background: var(--bg); padding: 0 clamp(10px, 2.4vw, 34px) 140px; }
.chapter { padding-top: clamp(70px, 10vw, 140px); }
.chapter:first-child { padding-top: clamp(60px, 8vw, 110px); }
.chapter-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 22px; padding: 0 4px 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.chapter-num { font: 500 12px var(--sans); letter-spacing: .2em; color: var(--accent); padding-bottom: 12px; }
.chapter-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(42px, 5.4vw, 86px); line-height: .95; margin: 0; }
.chapter-count { font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; white-space: nowrap; }
.chapter.solo .chapter-head { display: none; }

/* tiles */
.rows { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; gap: var(--gap); justify-content: center; }
.cols { display: flex; gap: var(--gap); align-items: flex-start; }
.col { flex: 1; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.col .tile { width: 100% !important; }
.feature { display: flex; justify-content: center; }
.tile { position: relative; overflow: hidden; background: var(--tile); cursor: zoom-in; flex: 0 0 auto; border-radius: var(--radius);
  opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.tile.in { opacity: 1; transform: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .9s var(--ease), filter .5s; }
.tile img.ld { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tile:hover::after { opacity: 1; }
.tile:hover img { filter: brightness(1.04); }
.t-actions { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out); }
.tile:hover .t-actions { opacity: 1; transform: none; }
.t-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(20,20,20,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .3s var(--ease-out); text-decoration: none; }
.t-btn:hover { background: rgba(20,20,20,.5); transform: scale(1.06); }
.t-btn svg { width: 18px; height: 18px; }
.t-flags { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px; pointer-events: none; }
.t-flag { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #d64b4b; box-shadow: 0 4px 12px rgba(0,0,0,.18); animation: pop .45s var(--ease-out); }
.t-flag.c { color: #333; }
.t-flag svg { width: 15px; height: 15px; }
.t-flag.h svg { fill: currentColor; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.play i { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s var(--ease-out); }
.tile:hover .play i { transform: scale(1.08); }
.play i::before { content: ""; margin-left: 4px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.dur { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; font: 500 11.5px var(--sans); letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.badge-film { position: absolute; left: 12px; top: 10px; z-index: 2; color: #fff; font: 600 9.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }

/* ---------------- Favorites view */
.fav-panel { padding-top: 120px; }
.fav-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 4px 28px; border-bottom: 1px solid var(--line); }
.fav-top p { margin: 10px 0 0; }
.fav-card { margin: 26px 0 40px; padding: 24px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; position: relative; }
.note-label { display: block; font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.note-saved { position: absolute; right: 30px; top: 24px; font-size: 11.5px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.note-saved.show { opacity: 1; }
.done-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.done-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.done-status { margin: 0; color: var(--muted); font-size: 14px; }
.done-status.sent { color: var(--text); }
.done-status.sent::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.fav-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.fav-empty b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 34px; color: var(--text); margin-bottom: 6px; letter-spacing: var(--display-track); }

/* ---------------- Dock */
.dock { position: fixed; z-index: 70; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: var(--glass); color: var(--glass-text); border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(1.7); -webkit-backdrop-filter: blur(24px) saturate(1.7); box-shadow: var(--shadow); transition: transform .7s var(--ease-out); max-width: calc(100vw - 24px); }
.dock.show { transform: translate(-50%, 0); }
.dock-sets { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 58vw; }
.dock-sets::-webkit-scrollbar { display: none; }
.chip { height: 40px; padding: 0 16px; border-radius: 99px; font: 500 12.5px var(--sans); white-space: nowrap; color: var(--muted); transition: background .3s, color .3s; }
.chip:hover { color: var(--glass-text); }
.chip.on { background: var(--text); color: var(--bg); }
.dock.nosets .dock-sep { display: none; }
.dock-sep { width: 1px; height: 22px; background: var(--glass-line); margin: 0 4px; }
.dock-btn { position: relative; height: 40px; min-width: 40px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; transition: background .2s; }
.dock-btn:hover { background: color-mix(in srgb, var(--glass-text) 9%, transparent); }
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn.on svg { fill: #e05656; stroke: #e05656; }
.dock-menu { display: none; font: 500 12.5px var(--sans); padding: 0 14px 0 12px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 9.5px/17px var(--sans); text-align: center; transform: scale(0); transition: transform .35s var(--ease-out); }
.badge.show { transform: scale(1); }
.badge.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------------- Footer */
.foot { text-align: center; padding: 120px 20px 40px; }
.foot-thanks { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(34px, 4.5vw, 64px); line-height: 1; margin: 0 0 26px; }
.foot .brand-logo { margin: 0 auto 16px; max-height: 40px; }
html[data-theme="dark"] .foot .brand-logo { filter: brightness(0) invert(1); }
.foot .brand-word { display: inline-block; margin-bottom: 16px; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.foot-links a { text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { margin-top: 26px; font: 500 10.5px var(--sans); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.top-link { margin-top: 30px; }

/* ---------------- Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: #060606; color: #fff; opacity: 0; transition: opacity .45s var(--ease); overflow: hidden; touch-action: pan-y; }
.lb.open { opacity: 1; }
.lb-ambient { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(70px) saturate(1.4); opacity: .4; transform: scale(1.1); transition: background-image .8s, opacity .8s; }
.lb-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 26px; }
.lb-info { display: flex; gap: 16px; align-items: baseline; }
.lb-count { font: 500 12px var(--sans); letter-spacing: .2em; }
.lb-set { font: 400 12px var(--sans); color: rgba(255,255,255,.55); letter-spacing: .06em; }
.lb-actions { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); }
.lb-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s; text-decoration: none; }
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn.on { color: #f06a6a; }
.lb-btn.on svg { fill: currentColor; }
#lb-zoom.on, #lb-comment.on { background: rgba(255,255,255,.18); }
#lb-zoom.on svg, #lb-comment.on svg { fill: none; }
.lb-btn .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: none; }
.lb-btn .dot.show { display: block; }
.lb-stage { position: absolute; z-index: 2; inset: 76px 84px 112px; }
.lb-stage .m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease), transform .5s var(--ease-out); }
.lb-stage .m.in { opacity: 1; }
.lb-stage img.m { cursor: zoom-in; }
.lb-stage.zoomed { overflow: hidden; }
.lb-stage.zoomed { overflow: hidden; }
.zv { position: absolute; inset: 0; z-index: 3; overflow: hidden; cursor: zoom-out; opacity: 0; transition: opacity .3s var(--ease); background: #060606; border-radius: 6px; touch-action: none; }
.zv.in { opacity: 1; }
.zv-img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.zv-tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 500 11px var(--sans); letter-spacing: .08em; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); padding: 6px 12px; border-radius: 99px; transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.zv-tag.hide { opacity: 0; }
.lb-stage video.m { background: #000; border-radius: 6px; }
.lb-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); transition: background .2s, transform .3s var(--ease-out); }
.lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-spin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border: 1.5px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-strip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; height: 76px; display: flex; gap: 6px; padding: 0 50vw; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; align-items: center; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button { flex: 0 0 auto; height: 58px; border-radius: 8px; overflow: hidden; opacity: .4; transition: opacity .3s, height .3s var(--ease-out), outline-color .3s; outline: 2px solid transparent; outline-offset: 2px; background: #222; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.on { opacity: 1; height: 70px; outline-color: var(--accent); }
.lb-strip img { height: 100%; width: auto; display: block; }
.lb-comment-box { position: absolute; z-index: 5; right: 18px; top: 80px; width: min(360px, calc(100vw - 36px)); padding: 14px; border-radius: 18px; background: rgba(28,28,26,.82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: rise .35s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }
.lb-comment-box textarea { background: rgba(0,0,0,.3); color: #fff; border-color: rgba(255,255,255,.12); }
.lb-comment-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.muted-l { color: rgba(255,255,255,.5); font-size: 12px; }

/* ---------------- Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.42); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .35s; }
.sheet-wrap.open { opacity: 1; }
.sheet { width: 100%; max-width: 470px; background: var(--panel); color: var(--text); border-radius: 26px; padding: 30px 26px 20px; box-shadow: var(--shadow); transform: translateY(20px) scale(.98); transition: transform .5s var(--ease-out); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grab { display: none; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -14px auto 16px; }
.sheet-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 36px; margin: 0; line-height: 1.05; }
.sheet > .muted { margin: 6px 0 0; font-size: 14px; }
.sheet-list { margin: 20px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.sheet-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; text-align: left; width: 100%; transition: border-color .25s, transform .3s var(--ease-out); }
.sheet-item:hover { border-color: var(--accent); transform: translateX(3px); }
.sheet-item b { font-weight: 500; display: block; }
.sheet-item small { color: var(--muted); font-size: 12.5px; }
.sheet-item .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; flex: 0 0 auto; }
.sheet-item .go svg { width: 16px; height: 16px; stroke-width: 1.8; }
.sheet-item.on { border-color: var(--accent); }

/* ---------------- Toast */
.toast { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -20px); z-index: 400; background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 99px; font: 500 13px var(--sans); opacity: 0; pointer-events: none; transition: all .45s var(--ease-out); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Locked page */
.locked-page { min-height: 100vh; }
.locked { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.locked-media { margin: 14px; border-radius: 22px; background: #0b0b0a center / cover no-repeat; opacity: 0; transition: opacity 1.6s var(--ease); }
.locked-media.in, .locked-media.blank { opacity: 1; }
.locked-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 44px clamp(28px, 5vw, 72px); }
.locked-brand .brand-logo { max-height: 38px; }
html[data-theme="dark"] .locked-brand .brand-logo { filter: brightness(0) invert(1); }
.locked-body { max-width: 400px; }
.locked-body .eyebrow { color: var(--accent); }
.locked-title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(46px, 5vw, 76px); line-height: .98; margin: 0 0 18px; }
.locked-form { display: flex; gap: 8px; margin-top: 28px; padding: 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, box-shadow .2s; }
.locked-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.locked-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; color: var(--text); outline: none; }
.locked-form .pill-btn { height: 44px; }
.error { color: #c0392b; font-size: 13px; min-height: 20px; margin-top: 12px; }
.locked-foot { font: 500 10.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.message-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; }
.message .muted { max-width: 460px; margin: 0 auto; }
.message .cover-title { font-size: clamp(42px, 6vw, 80px); margin-bottom: 18px; }

/* ---------------- Mobile */
@media (max-width: 760px) {
  :root { --gap: 5px; --radius: 6px; }
  .nav { height: 62px; padding: 0 16px; grid-template-columns: auto 1fr; }
  .nav-title { justify-self: end; font-size: 18px; max-width: 55vw; }
  .brand-word { font-size: 10px; letter-spacing: .3em; }
  main { padding: 0 6px 120px; }
  .chapter { padding-top: 64px; }
  .chapter-head { grid-template-columns: 1fr auto; gap: 6px 12px; padding-bottom: 18px; margin-bottom: 16px; }
  .chapter-num { grid-column: 1 / -1; padding: 0; }
  .chapter-count { padding-bottom: 6px; }
  .t-actions { display: none; }
  [data-cover="bold"] .cover-text { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "meta" "cta"; }
  [data-cover="bold"] .cover-title { font-size: clamp(54px, 17vw, 120px); }
  [data-cover="split"] .cover { grid-template-columns: 1fr; grid-template-rows: auto 58svh; }
  [data-cover="split"] .cover-media { grid-column: 1; grid-row: 2; margin: 0 10px 10px; min-height: 0; border-radius: 18px; }
  [data-cover="split"] .cover-text { grid-row: 1; padding: 96px 22px 30px; }
  [data-cover="split"] .btn-enter { display: none; }
  [data-cover="framed"] .cover { padding-top: 96px; }
  [data-cover="framed"] .cover-media { height: 60svh; border-radius: 18px; }
  .dock-sets { display: none; }
  .dock-menu { display: inline-flex; }
  .dock-menu span { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lb-stage { inset: 70px 0 100px; }
  .lb-nav { display: none; }
  .lb-top { padding: 0 8px 0 16px; }
  .lb-set { display: none; }
  .lb-strip button { height: 48px; } .lb-strip button.on { height: 58px; }
  .sheet-wrap { place-items: end center; padding: 0; }
  .sheet { border-radius: 26px 26px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); transform: translateY(100%); }
  .sheet-grab { display: block; }
  .fav-panel { padding-top: 90px; }
  .fav-top { flex-direction: column; align-items: flex-start; }
  .fav-card { padding: 18px; }
  .done-btns, .done-btns .pill-btn { width: 100%; }
  .locked { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48svh auto; }
  .locked-media { margin: 10px 10px 0; border-radius: 18px; }
  .locked-panel { padding: 28px 22px 30px; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .tile { opacity: 1; transform: none; }
}

/* watermark mode: discourage saving */
html.wm img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.proof-tag { position: fixed; z-index: 65; left: clamp(18px, 3vw, 40px); bottom: max(26px, env(safe-area-inset-bottom)); font: 600 10px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: var(--glass); color: var(--glass-text); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@media (max-width: 760px) { .proof-tag { display: none; } }

/* ---------------- v3: cover buttons */
.cover-btns { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cover-btns .btn-enter { margin-top: 0; }
[data-cover="bold"] .cover-btns { grid-area: cta; margin-top: 20px; justify-content: flex-end; }
[data-cover="split"] .cover-btns { justify-content: flex-start; }
[data-cover="framed"] .cover-btns { margin-top: 26px; }
.btn-play { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 16px; border-radius: 99px; font: 500 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .3s, color .3s; }
.btn-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.btn-play:hover { background: rgba(255,255,255,.18); }
[data-cover="split"] .btn-play, [data-cover="framed"] .btn-play { color: var(--text); border-color: var(--line); background: transparent; }
[data-cover="split"] .btn-play:hover, [data-cover="framed"] .btn-play:hover { border-color: var(--text); }
#play-btn svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
@media (max-width: 760px) { [data-cover="split"] .cover-btns { display: flex; } [data-cover="split"] .btn-enter { display: none; } .cover-btns { gap: 8px; } .btn-play span { display: none; } .btn-play { padding: 0 16px; } }

/* ---------------- unlock banner */
.unlock { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: clamp(40px, 6vw, 70px) 4px 0; padding: 26px 30px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.unlock .eyebrow { margin-bottom: 8px; }
.unlock h3 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(28px, 3vw, 40px); margin: 0 0 6px; line-height: 1.05; }
.unlock p.muted { margin: 0; max-width: 560px; }
.unlock-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .unlock { padding: 20px; margin-top: 30px; } .unlock-btns, .unlock-btns .pill-btn { width: 100%; } }

/* ---------------- download size switch */
.seg { display: flex; padding: 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 6px; }
.seg button { flex: 1; height: 38px; border-radius: 99px; font: 500 12.5px var(--sans); color: var(--muted); transition: background .25s, color .25s; }
.seg button.on { background: var(--text); color: var(--bg); }
.sheet-wrap { z-index: 260; }
button.sheet-item { font: inherit; color: inherit; cursor: pointer; }

/* ---------------- guest */
html.guest .t-actions, html.guest .t-flags, html.guest #fav-panel, html.guest .done-row { display: none !important; }
html.guest .tile { cursor: zoom-in; }

/* ---------------- footer extras */
.foot-exp { margin: 22px 0 0; font: 500 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ---------------- slideshow */
.ss { position: fixed; inset: 0; z-index: 280; background: #050505; color: #fff; opacity: 0; transition: opacity .8s var(--ease); cursor: none; }
.ss.open { opacity: 1; }
.ss.awake { cursor: default; }
.ss-amb { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(80px) saturate(1.3); opacity: .35; transition: background-image 1.6s; }
.ss-stage { position: absolute; inset: 4vh 4vw; }
.ss-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.6s var(--ease); }
.ss-img.in { opacity: 1; }
.ss-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; z-index: 2; }
.ss-card.show { opacity: 1; }
.ss-card span { font: 500 12px var(--sans); letter-spacing: .4em; color: var(--accent); }
.ss-card b { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(48px, 7vw, 110px); line-height: 1; }
.ss-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); z-index: 3; }
.ss-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.ss-controls { position: absolute; z-index: 4; left: 50%; bottom: 30px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(28,28,26,.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); opacity: 0; transition: opacity .5s, transform .5s var(--ease-out); }
.ss.awake .ss-controls { opacity: 1; transform: translate(-50%, 0); }
.ss-controls .lb-btn.big { width: 50px; height: 50px; background: #fff; color: #111; }
.ss-controls .lb-btn.big svg { width: 20px; height: 20px; }
.ss-controls .lb-btn.big path[d^="M8 5.5"] { fill: currentColor; stroke: none; }
.ss-controls .lb-btn.off { opacity: .45; }
.ss-sep { width: 1px; height: 22px; background: rgba(255,255,255,.15); margin: 0 4px; }
@media (max-width: 760px) { .ss-stage { inset: 0; } .ss-controls { bottom: max(24px, env(safe-area-inset-bottom)); } }

/* ---------------- install hint */
.install { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 20px; background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; }
.install.open { transform: none; opacity: 1; }
.install img { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; object-fit: cover; }
.install div { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.install div b { color: var(--text); }
.install div > b:first-child { display: block; font-size: 14px; margin-bottom: 2px; }
.ios-share { width: 15px; height: 15px; vertical-align: -2px; }
.install-x { width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); flex: 0 0 auto; }

/* ---------------- review card */
.review-card { text-align: center; }
.stars { color: var(--accent); font-size: 26px; letter-spacing: .2em; margin-bottom: 6px; }
.review-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }

/* email sign-in: stacked fields */
.locked-form.stack { flex-direction: column; border-radius: 22px; padding: 8px; gap: 0; }
.locked-form.stack input { flex: none; height: 50px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.locked-form.stack input:last-of-type { border-bottom: 0; }
.locked-form.stack .pill-btn { margin-top: 8px; width: 100%; height: 48px; }

/* v7: pick limit + print orders */
.pick-extra { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 14px; }
.pick-extra[hidden] { display: none; }
.pick-extra b { font-weight: 600; }
.pill-btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.sheet-item .price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.print-thumb { height: 160px; border-radius: 16px; background: var(--line) center/cover; margin-bottom: 4px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.cart-line > i { width: 52px; height: 52px; border-radius: 10px; background: var(--line) center/cover; flex: none; }
.cl-t { flex: 1; min-width: 0; }
.cl-t b { display: block; font-weight: 500; }
.cl-t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-q { display: flex; align-items: center; gap: 4px; }
.cl-q button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 16px; cursor: pointer; }
.cl-q span { min-width: 20px; text-align: center; font-weight: 600; }
.cl-p { min-width: 56px; text-align: right; font-weight: 500; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 4px; font-size: 16px; }
.cart-total b { font-size: 20px; font-weight: 600; }
.cart-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cart-form input, .cart-form textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--accent); }
.cart-err { margin: 0; min-height: 1em; font-size: 13px; color: #b0402c; }
.pill-btn.wide { width: 100%; }
#cart-btn[hidden] { display: none; }
.sheet { max-height: 88vh; overflow-y: auto; }
