/* Layout: mobile = one column with a compact photo header, sticky section chips, stacked shelves.
   Desktop (>=1000px) = sticky profile column on the left, shop column on the right.
   Type matches the store: Inter Tight for display, Inter for text, a mono for small spec labels. */
:root {
  --bg: #000;
  --surface: #111113;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.09);
  --fg: #f4f3f1;
  --muted: #a3a2a8;
  --dim: #6f6e75;
  --cta: #ffffff;
  --cta-fg: #0a0a0a;
  --gold: #f6c453;
  --line-2: rgba(255, 255, 255, 0.18);
  --text-2: #dddcd9;
  --soft: rgba(255, 255, 255, 0.08);
  --soft-2: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(0, 0, 0, 0.94);
  --panel: #0d0d0f;
  --panel-a: rgba(13, 13, 15, 0.92);
  --scrim: rgba(0, 0, 0, 0.62);
  --hero-mid: rgba(0, 0, 0, 0.55);
  --ring: #ffffff;
  --tbtn-bg: rgba(0, 0, 0, 0.45);
  --tbtn-fg: #ffffff;
  --lr-bg: #001e36;
  --lr-fg: #31a8ff;
  --f-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rad: 12px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
/* Light mode mirrors the store: white background, #212121 text, grey secondary text, black buttons.
   Uses its own attribute so a host page's data-theme never flips it. */
:root[data-jv-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ececec;
  --line: #e5e5e5;
  --line-2: #d4d4d4;
  --fg: #212121;
  --text-2: #444444;
  --muted: #666666;
  --dim: #999999;
  --cta: #000000;
  --cta-fg: #ffffff;
  --gold: #f5a623;
  --soft: #f3f3f3;
  --soft-2: #e9e9e9;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --panel: #ffffff;
  --panel-a: rgba(255, 255, 255, 0.94);
  --scrim: rgba(0, 0, 0, 0.32);
  --hero-mid: rgba(255, 255, 255, 0.55);
  --ring: #212121;
  --tbtn-bg: rgba(255, 255, 255, 0.88);
  --tbtn-fg: #212121;
  color-scheme: light;
}
:root[data-jv-theme="light"] .wordmark img { filter: invert(1); }
body { transition: background-color .25s ease, color .25s ease; }
*, *::before, *::after { box-sizing: border-box; }
/* Corner radius comes from Settings (--rad on .jv); a section with rounded corners off sets --rad: 0 */
.jv, .blk, .sheet { --r-lg: var(--rad); --r-md: calc(var(--rad) * .85); --r-sm: calc(var(--rad) * .6); --r-btn: min(14px, var(--rad)); }
.blk.square { --rad: 0px; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- page frame ---------- */
.page { min-height: 100vh; }
.main { padding: 0 var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); max-width: 760px; margin: 0 auto; }

/* ---------- profile (mobile) ---------- */
.profile { position: relative; }
.hero { position: relative; height: clamp(250px, 64vw, 400px); overflow: hidden; background: var(--surface); }
.hero img { width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.4s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--hero-mid) 70%, var(--bg) 100%); }
.id { position: relative; z-index: 1; margin-top: -78px; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 10px; text-align: center; }
.wordmark img { width: min(300px, 74vw); height: auto; animation: rise .9s .15s var(--ease) both; }
.name { font: 700 34px/1 var(--f-display); letter-spacing: -0.03em; }
.no-photo .id { margin-top: 0; padding-top: 36px; }
.line { color: var(--muted); font-size: 14px; letter-spacing: 0.01em; animation: rise .9s .25s var(--ease) both; }
.socials { display: flex; gap: 8px; margin-top: 6px; animation: rise .9s .35s var(--ease) both; }
.soc { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font: 500 12.5px/1 var(--f-text); font-variant-numeric: tabular-nums; transition: background .2s; }
.soc svg { font-size: 15px; }
.soc:hover { background: var(--soft-2); }

/* ---------- section chips ---------- */
.jump { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin: 22px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter); background: var(--nav-bg); }
.jump-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump-in > :first-child { margin-left: auto; }
.jump-in > :last-child { margin-right: auto; }
.jump-in::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 7px 12px; border-radius: 999px; font: 500 12.5px/1 var(--f-text); color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: color .2s, background .2s; }
.jump a.on { color: var(--fg); border-color: var(--muted); }
.jump a:hover { color: var(--fg); }
.jump a { transition: color .3s, border-color .3s; }

/* ---------- sections ---------- */
.blk { margin-top: 44px; }
.blk:first-of-type, .jump + .blk { margin-top: 18px; }
.blk.cont { margin-top: 12px; }
.blk.lay-feature:not(.cont) { margin-top: 48px; }
.jump + .blk.lay-feature { margin-top: 18px; }
.sec-head { display: grid; gap: 3px; margin-bottom: 14px; }
.sec-head h2 { font: 600 20px/1.2 var(--f-display); letter-spacing: -0.025em; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 13.5px; }

.eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--cta); color: var(--cta-fg); font: 600 10.5px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--muted); font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- cover (the pack artwork) ---------- */
.cover { position: relative; aspect-ratio: var(--ar, 4/5); width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--surface); container-type: inline-size; isolation: isolate; }
.cover > img, .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.img-missing { background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.cover.has-text::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0) 72%, rgba(0,0,0,.38) 100%); }
.cover-text { position: absolute; z-index: 2; left: var(--cpad); top: var(--cpad); right: var(--cpad); display: grid; gap: min(.8cqw, 2px); color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.cover-kicker { font: 500 min(6.6cqw, 14px)/1.15 var(--f-text); letter-spacing: -0.02em; opacity: .9; }
.cover-title { font: 700 min(9.4cqw, 22px)/1.05 var(--f-text); letter-spacing: -0.03em; }
.compat { position: absolute; z-index: 2; left: var(--cpad); bottom: var(--cpad); display: grid; gap: min(2.4cqw, 6px); color: #fff; }
.compat > span { font: 500 min(3.1cqw, 9px)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.compat > div { display: flex; gap: min(2.2cqw, 5px); }
.compat i { display: grid; place-items: center; width: min(9.2cqw, 24px); height: min(9.2cqw, 24px); border-radius: min(1.9cqw, 5px); background: var(--lr-bg); color: var(--lr-fg); font: 700 min(3.9cqw, 10px)/1 var(--f-text); font-style: normal; letter-spacing: -0.02em; box-shadow: inset 0 0 0 .35cqw rgba(49,168,255,.25); }
/* app tiles: Adobe-style blue for Lr/LrC/Ps, purple for Pr/Ae, neutral for everything else */
.compat i.wide { width: auto; padding: 0 min(2.4cqw, 6px); }
.compat i.app-pr, .compat i.app-ae { background: #00005b; color: #9999ff; box-shadow: inset 0 0 0 .35cqw rgba(153,153,255,.3); }
.compat i.app-dr, .compat i.app-fcp, .compat i.app-capcut, .compat i.app-lf, .compat i.app-edits, .compat i.app-bmc { background: #1c1c1e; color: #f2f2f2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-weight: 600; letter-spacing: -0.01em; }
.compat-inline { position: static; margin-top: 18px; gap: 8px; color: var(--muted); }
.compat-inline > span { font-size: 11px; }
.compat-inline > div { gap: 8px; }
.compat-inline > div { flex-wrap: wrap; }
.compat-inline i { width: 34px; height: 34px; border-radius: 8px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(49,168,255,.25); }
.badge { position: absolute; z-index: 3; top: var(--cpad); left: var(--cpad); }
/* coloured pills (Coming soon, New, Limited time, Bundle deal…), same look as the editor's status chips */
.badge, .row-pill { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 6px; font: 600 12px/1 var(--f-text); letter-spacing: 0; white-space: nowrap; background: var(--pb); color: var(--pf); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pill-amber  { --pb: #ffe9cc; --pf: #7a4100; --pd: #f2b84b; }
.pill-green  { --pb: #dcf3e4; --pf: #0e5a2e; --pd: #5fd08a; }
.pill-red    { --pb: #fddcd7; --pf: #9c1c10; --pd: #ff7a6b; }
.pill-blue   { --pb: #dde7fd; --pf: #1b3a9a; --pd: #7fa8ff; }
.pill-purple { --pb: #ebe3fd; --pf: #47208f; --pd: #b497ff; }
.pill-white  { --pb: #ffffff; --pf: #3a3a3a; --pd: #f3f2f0; }
.pill-black  { --pb: #111111; --pf: #ffffff; --pd: #f3f2f0; }
.badge.pill-black { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
/* in a list row on the dark page: tinted chip instead of a solid one */
:root:not([data-jv-theme="light"]) .row-pill { background: color-mix(in srgb, var(--pd) 14%, transparent); color: var(--pd); }

/* ---------- box mockup tile (section setting: Card images = Box mockup) ---------- */
.cover-tile { background: linear-gradient(150deg, #ececec, #dedede); display: grid; place-items: center; }
.cover-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx { position: relative; width: 58%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; background: #fff; border-radius: 3px; overflow: hidden; container-type: inline-size; box-shadow: 2.2cqw 3cqw 5cqw rgba(0,0,0,.30), .5cqw .8cqw 1.2cqw rgba(0,0,0,.18); transition: transform .5s var(--ease); }
.bx-head { padding: 5cqw 6cqw 4.5cqw; color: #111; display: grid; gap: .8cqw; }
.bx-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin-bottom: 2.5cqw; }
.bx-logo { height: 5.2cqw; width: auto; max-width: 42cqw; object-fit: contain; object-position: left center; display: block; }
.bx-logo.inv { filter: invert(1); opacity: .62; }
.bx-brand { font: 500 4.6cqw/1 var(--f-text); color: #b4b4b4; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-chips { display: flex; gap: 1.4cqw; }
.bx-chips i { font: 600 3.8cqw/1 var(--f-text); font-style: normal; padding: 1cqw 2.4cqw; border: .45cqw solid #111; border-radius: 99px; }
.bx-t { font: 700 16cqw/.92 var(--f-display); letter-spacing: -0.045em; }
.bx-k { font: 700 8.2cqw/1 var(--f-display); letter-spacing: -0.03em; }
.bx-img { position: relative; flex: 1; overflow: hidden; background: #ddd; }
.bx-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .card:hover .bx { transform: translateY(-1.5%); } .card:hover .cover-tile > img { transform: scale(1.03); } }

/* ---------- card mockup (Card images = Card) ---------- */
.cv { position: relative; width: 60%; aspect-ratio: 6 / 7; border-radius: 5cqw; overflow: hidden; container-type: inline-size; background: #ccc; box-shadow: 0 5cqw 9cqw rgba(0,0,0,.22), 0 1cqw 2.5cqw rgba(0,0,0,.12); transition: transform .5s var(--ease); }
.cv > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,0) 32%, rgba(0,0,0,0) 78%, rgba(0,0,0,.3)); }
.cv-t { position: absolute; z-index: 2; left: 8.5cqw; top: 8cqw; right: 8cqw; display: grid; gap: 1.6cqw; color: #fff; }
.cv-t span { font: 400 5.6cqw/1.1 var(--f-text); opacity: .85; }
.cv-t b { font: 600 5.8cqw/1.1 var(--f-text); }
.cv-n { position: absolute; z-index: 2; left: 8.5cqw; right: 8cqw; bottom: 7cqw; color: #fff; font: 600 3.2cqw/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- pack mockup (Card images = Pack) ---------- */
.pk { position: relative; width: 66%; aspect-ratio: 3.4 / 4.4; container-type: inline-size; background: #333; border-radius: 3px; box-shadow: 1.6cqw .4cqw 0 #1b1b1b, 9cqw 6cqw 10cqw rgba(0,0,0,.42), 2cqw 2cqw 3cqw rgba(0,0,0,.25); transition: transform .5s var(--ease); }
.pk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.pk::before { border-radius: 3px; }
.pk::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62) 100%), linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 4%); }
.pk-apps { position: absolute; z-index: 2; top: 5.5cqw; left: 5.5cqw; display: flex; gap: 2cqw; }
.pk-apps i { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 2.4cqw; background: var(--lr-bg); color: var(--lr-fg); font: 700 4.6cqw/1 var(--f-text); font-style: normal; box-shadow: inset 0 0 0 .5cqw rgba(49,168,255,.35); }
.pk-t { position: absolute; z-index: 2; left: 6cqw; right: 6cqw; bottom: 7cqw; display: grid; gap: 1.6cqw; color: #fff; }
.pk-wm { width: 30cqw; height: auto; margin-bottom: 1cqw; }
.pk-by { font: 700 3.4cqw/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.pk-t b { font: 800 11.5cqw/.95 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; }
.pk-t span { font: 500 2.7cqw/1.3 var(--f-text); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .card:hover .cv, .card:hover .pk { transform: translateY(-1.5%); } }

/* one inset for everything printed on a cover: badge, name, app icons */
.cover > * { --cpad: clamp(10px, 5cqw, 16px); }

/* a cover with its name printed on it moves the name down to make room for the badge */
.cover.has-text:has(> .badge) .cover-text { top: calc(var(--cpad) + 30px); }

/* ---------- price / stars (matches the store: was, now | stars (count)) ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-variant-numeric: tabular-nums; }
.prices { display: inline-flex; align-items: baseline; gap: 8px; }
.price { font: 400 13.5px/1.2 var(--f-text); color: var(--fg); }
.was { color: var(--dim); font: 400 13px/1.2 var(--f-text); text-decoration-thickness: 1px; }
.meta-div { width: 1px; height: 13px; background: var(--line-2); }
.stars { display: inline-flex; align-items: center; gap: 5px; }
.star-row { display: inline-flex; gap: 1px; color: var(--gold); font-size: 12px; line-height: 1; }
.star-row i { display: grid; }
.star-row i:not(.on) { opacity: .28; }
.stars .count { color: var(--muted); font-size: 12px; line-height: 1; }

/* ---------- grid cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
.grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.card { display: grid; gap: 9px; align-content: start; min-width: 0; }
.card[role="button"], .row[role="button"] { cursor: pointer; }
.card-body { display: grid; gap: 4px; padding: 2px 2px 0; min-width: 0; }
.card-body h3 { font: 600 14px/1.3 var(--f-text); letter-spacing: -0.005em; }
.card-body p { color: var(--muted); font-size: 12.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .meta-stars { margin-top: 4px; }
.card-body .star-row { font-size: 14px; gap: 1px; }
.card-body .stars .count { font-size: 13px; color: var(--muted); }
.card-body .meta-price { margin-top: 4px; }
.card-body .price { font-size: 14px; letter-spacing: .01em; }
.card-body .was { font-size: 13px; }
.card .cover { transition: transform .35s var(--ease); }
.card:active .cover { transform: scale(.975); }
@media (hover: hover) { .card:hover .cover > img { transform: scale(1.045); } }
.is-soon .cover > img { filter: saturate(.85); }

/* ---------- feature card ---------- */
.feature { display: grid; }
.feature > .eyebrow { justify-self: start; }
.feature-body { display: grid; gap: 16px; margin-top: 16px; align-content: start; }
.feature-main { display: grid; gap: 6px; }
.feature h3 { font: 600 22px/1.15 var(--f-display); letter-spacing: -0.03em; text-wrap: balance; }
.feature .tagline { color: var(--muted); font-size: 14px; max-width: 46ch; }
.feature .meta { margin-top: 4px; }
.feature .price { font-size: 15px; }
.feature .was { font-size: 14px; }
.feature-cta { display: grid; gap: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.checks svg { margin-top: 2px; font-size: 14px; color: var(--fg); opacity: .9; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r-btn); font: 600 14.5px/1 var(--f-display); letter-spacing: -0.01em; transition: transform .2s var(--ease), background .2s, opacity .2s; }
.btn svg { font-size: 16px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--cta); color: var(--cta-fg); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-disabled { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }

/* ---------- rails (horizontal rows: posts, clips) ---------- */
.rail { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > .slide { flex: 0 0 auto; width: 100%; scroll-snap-align: start; min-width: 0; }
.rail.has-more > .slide { width: calc(86% * var(--sk, 1)); }
.rail-cards.has-more > .slide { width: calc(46% * var(--sk, 1)); }

/* ---------- gallery: big stage + thumbnails underneath ---------- */
.gal { display: grid; gap: 12px; min-width: 0; }
.gal-stage { position: relative; aspect-ratio: var(--ar, 4/5); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); touch-action: pan-y; }
.gal-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.gal-item.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.gal-item > .cover, .gal-item > .ba, .gal-item > .vid { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.gal-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-strip { position: relative; min-width: 0; }
.gal-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb { position: relative; flex: none; width: 46px; height: 46px; border-radius: min(var(--r-sm), 8px); overflow: hidden; background: var(--surface); opacity: .55; transition: opacity .2s; }
.gal-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; transition: border-color .2s; pointer-events: none; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { opacity: 1; }
.gal-thumb.on::after { border-color: var(--ring); }
@media (hover: hover) { .gal-thumb:hover { opacity: .85; } }
/* small arrows on the photo itself */
.gal-arrow { position: absolute; z-index: 4; top: 50%; width: 36px; height: 44px; margin-top: -22px; display: grid; place-items: center; font-size: 20px; color: #fff; background: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); transition: opacity .2s, transform .2s; }
.gal-arrow svg { stroke-width: 2.4; }
.gal-arrow:active { transform: scale(.92); }
.gal-prev { left: 2px; }
.gal-next { right: 2px; }
.gal-caps { min-height: 20px; font-size: 13px; color: var(--muted); }
.gal-cap { display: none; }
.gal-cap.on { display: block; }
.gal-cap a, .clip figcaption a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 500; }
.gal-cap svg, .clip figcaption svg { transition: transform .25s var(--ease); }
.gal-cap a:hover svg, .clip figcaption a:hover svg { transform: translateX(3px); }

/* ---------- before / after (RAW / EDITED, preset + camera underneath like the store) ---------- */
.ba { position: relative; aspect-ratio: var(--ar, 4/5); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba img, .ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 64px; margin-left: -32px; touch-action: none; cursor: ew-resize; z-index: 3; }
.ba-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.3); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.ba.dragging .ba-knob { transform: scale(1.08); }
.ba-tag { display: inline-block; padding: 5px 7px; border-radius: 4px; font: 600 9.5px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; }
.ba-tag-l { background: rgba(0,0,0,.62); color: #fff; }
.ba-tag-r { background: #fff; color: #111; }
/* RAW / EDITED sit at the bottom, just above the preset and camera captions */
.ba-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 32px 12px 10px; font: 400 10px/1.35 var(--f-text); color: rgba(255,255,255,.92); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42)); pointer-events: none; }
.ba-col { min-width: 0; display: grid; justify-items: start; gap: 6px; }
.ba-col-r { justify-items: end; text-align: right; }
figure { margin: 0; }
.clip figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- video ---------- */
.vid { position: relative; aspect-ratio: var(--ratio, 4/5); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid-sound { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); }
.rail-clips > .slide { width: calc(70% * var(--sk, 1)); }

/* ---------- posts ---------- */
.rail-posts > .slide { width: calc(80% * var(--sk, 1)); }
.post { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .post:hover img { transform: scale(1.04); } }

/* ---------- list rows ---------- */
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .2s var(--ease); min-width: 0; }
.row:hover { background: var(--surface-2); }
.row:active { transform: scale(.99); }
.row-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-text b { font: 500 13.5px/1.3 var(--f-text); }
.row-text span { color: var(--muted); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 18px; }
.row-end .price { font-size: 13px; color: var(--fg); }
.row-end .was { display: none; }

/* ---------- links ---------- */
.links { display: grid; gap: 8px; }
.lnk { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .2s var(--ease); }
.lnk:hover { background: var(--surface-2); }
.lnk:active { transform: scale(.99); }
.lnk-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 19px; }
.ico-substack { color: #ff6719; }
.lnk-img { width: 34px; height: 34px; border-radius: var(--r-sm); overflow: hidden; }
.lnk-img img { width: 100%; height: 100%; object-fit: cover; }
.lnk-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lnk-text b { font: 500 14px/1.3 var(--f-text); }
.lnk-text span { color: var(--muted); font-size: 12px; }
.lnk-arrow { color: var(--dim); font-size: 18px; transition: transform .25s var(--ease), color .2s; }
.lnk:hover .lnk-arrow { transform: translateX(3px); color: var(--fg); }

/* ---------- email ---------- */
.email { display: flex; gap: 8px; }
.email input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 400 16px var(--f-text); }
.email input:focus { outline: none; border-color: var(--muted); }
.fine { margin-top: 8px; color: var(--dim); font-size: 12.5px; }
.prose { display: grid; gap: 12px; color: var(--muted); max-width: 60ch; }

.foot { margin-top: 64px; color: var(--dim); font-size: 12.5px; text-align: center; }

/* ---------- product sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.sheet-panel { position: relative; display: flex; flex-direction: column; max-height: 94dvh; max-height: 94vh; background: var(--panel); border-radius: min(24px, calc(var(--rad) * 1.6)) min(24px, calc(var(--rad) * 1.6)) 0 0; transform: translateY(100%); transition: transform .45s var(--ease); outline: none; overflow: hidden; }
@supports (height: 1dvh) { .sheet-panel { max-height: 94dvh; } }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 5; display: grid; place-items: center; touch-action: none; }
.sheet-grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.16); font-size: 18px; color: #fff; }

.sheet-scroll { overflow-y: auto; overscroll-behavior-y: none; padding: 0 0 20px; }
.sheet-gallery .gal-stage { touch-action: pan-y; }
.sheet-gallery { padding: 0; }
.sheet-gallery .gal-stage { border-radius: 0; }
.sheet-gallery .gal-strip, .sheet-gallery .gal-caps { margin: 0 16px; }
.sheet-info { padding: 14px 20px 0; display: grid; gap: 8px; }
.sheet-info h2 { font: 600 22px/1.15 var(--f-display); letter-spacing: -0.03em; }
.sheet-info .desc { color: var(--muted); font-size: 14px; margin: 6px 0 8px; max-width: 60ch; }
.sheet-info .checks { margin-top: 4px; }
.sheet-buy { display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel-a); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sheet-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.sheet-buy-price .price { font-size: 16px; }
.sheet-buy .btn { flex: 1; }
body.locked { overflow: hidden; }

/* ---------- reveal animation (content is visible without JS) ---------- */
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* No scroll-triggered reveals: content is always fully visible, so nothing blinks in while scrolling */

/* ---------- optional faint line between sections (Settings > Look) ---------- */
.dividers .blk:not(.cont) { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.dividers .jump + .blk, .dividers .main > .blk:first-child { margin-top: 18px; padding-top: 0; border-top: 0; }

/* ---------- light / dark switch (top right) ---------- */
.jv { position: relative; }
.theme-btn { position: absolute; z-index: 30; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--tbtn-fg); background: var(--tbtn-bg); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.theme-btn .i-sun { display: none; }
:root[data-jv-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-jv-theme="light"] .theme-btn .i-moon { display: none; }

/* Inside the editor's preview the page isn't at the top of the phone screen, so no safe-area offset */
.jv-preview .jump { top: 0; }
.jv-preview .theme-btn { top: 12px; }

/* ---------- full-width sections on phones (section setting) ---------- */
@media (max-width: 639px) {
  .blk.bleed { --rad: 0px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .blk.bleed > .sec-head, .blk.bleed .feature > .eyebrow, .blk.bleed .feature-body, .blk.bleed .gal-strip, .blk.bleed .gal-caps,
  .blk.bleed .clip figcaption, .blk.bleed .list, .blk.bleed .links, .blk.bleed .email, .blk.bleed .fine, .blk.bleed .prose { margin-left: var(--gutter); margin-right: var(--gutter); }
  .blk.bleed .grid { gap: 22px 3px; }
  .blk.bleed .card-body { padding: 0 10px; }
  .blk.bleed .rail { margin-left: 0; margin-right: 0; }
  /* swipe row: the cards already sit inside the page margin, so the text lines up with the image edge */
  .blk.bleed .rail .card-body { padding: 0; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .grid[data-n="2"], .grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail.has-more > .slide { width: calc(58% * var(--sk, 1)); }
  .rail-cards.has-more > .slide { width: calc(31% * var(--sk, 1)); }
  .rail-posts > .slide { width: calc(46% * var(--sk, 1)); }
  .rail-clips > .slide { width: calc(44% * var(--sk, 1)); }
  .clip-one .vid { max-width: 560px; }
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .feature > .eyebrow { grid-column: 1 / -1; }
  .feature-body { margin-top: 4px; }
  .sheet { align-items: center; justify-items: center; padding: 24px; }
  .sheet-panel { width: min(1040px, 100%); max-height: min(860px, 92vh); border-radius: min(24px, calc(var(--rad) * 1.6)); border: 1px solid var(--line); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
  .sheet.open .sheet-panel { opacity: 1; }
  .sheet-grab { display: none; }
  .sheet-scroll { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; padding: 0; }
  .sheet-gallery { position: sticky; top: 0; padding: 20px 0 20px 20px; }
  .sheet-gallery .gal-stage { border-radius: var(--r-md); }
  .sheet-gallery .gal-strip, .sheet-gallery .gal-caps { margin: 0; }
  .sheet-info { padding: 34px 32px 28px; }
  .sheet-buy { padding: 14px 20px; }
  .sheet-buy .btn { flex: 0 0 auto; min-width: 260px; margin-left: auto; }
}

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  html { scroll-padding-top: 72px; }
  .page { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
  .side { position: sticky; top: 0; height: 100vh; padding: 32px 0 32px 32px; }
  .profile { display: flex; flex-direction: column; gap: 22px; }
  .hero { flex: none; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .hero::after { display: none; }
  .photo-round .hero { width: 220px; border-radius: 50%; }
  .id { margin-top: 0; padding: 0 4px; justify-items: start; text-align: left; }
  .wordmark img { width: 280px; }
  .main { max-width: 820px; width: 100%; padding-top: 12px; }
  .jump { margin-top: 20px; border-radius: 0 0 18px 18px; }
  .jump-in > :first-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.compat-inline i.wide { width: auto; padding: 0 10px; font-size: 12.5px; }
.feature .compat-inline { margin-top: 0; }

/* uploaded app icons */
.compat i.has-img, .pk-apps i.has-img, .bx-chips i.has-img { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; overflow: hidden; }
.compat i.has-img img, .pk-apps i.has-img img, .bx-chips i.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx-chips i.has-img { width: 6.5cqw; height: 6.5cqw; border-radius: 1.4cqw; }
