/* ==========================================================================
   MYSTIC — product page (v12)
   The homepage stage, for one script: a dark set, red light that follows the
   mouse, giant type, the screen leaning toward you. Then numbered sections
   with hairlines, like the rest of the store.
   ========================================================================== */

/* ---------- the stage ---------- */
.pm { --px: 0; --py: 0; position: relative; isolation: isolate; overflow: hidden; margin-top: -68px; padding: 96px 0 0; }
.pm-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pm-bg { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(90px) saturate(1.5); opacity: .3; }
.pm-light { position: absolute; inset: 0; background:
  radial-gradient(34% 52% at calc(72% + var(--px) * 6%) 44%, rgba(229,36,63,.42), transparent 70%),
  radial-gradient(70% 40% at 50% 112%, rgba(229,36,63,.24), transparent 70%); }
.pm-beams { position: absolute; inset: 0; }
.pm-beams i { position: absolute; top: -10%; width: 24vw; height: 120%; background: linear-gradient(180deg, rgba(255,90,110,.14), transparent 70%); filter: blur(28px); transform-origin: 50% 0; }
.pm-beams i:first-child { left: 52%; transform: rotate(16deg); animation: pmSway 9s ease-in-out infinite; }
.pm-beams i:last-child { right: 4%; transform: rotate(-16deg); animation: pmSway2 11s ease-in-out infinite; }
@keyframes pmSway { 50% { transform: rotate(8deg); } }
@keyframes pmSway2 { 50% { transform: rotate(-8deg); } }
.pm-stage::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7,6,6,.75), transparent 20%, transparent 72%, #070606 99%),
  linear-gradient(90deg, rgba(7,6,6,.7), transparent 50%); }

.pm-in .crumbs { padding-block: 26px 0; }
.pm-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 88px); align-items: center; margin-top: clamp(28px, 5vh, 56px); }

/* ---------- the copy ---------- */
.pm-copy > :not(.pm-title) { animation: fadeup 1s var(--ease-out) both; }
.pm-copy > .sh-label { animation-delay: .05s; }
.pm-copy > .pm-tag { animation-delay: .45s; }
.pm-copy > .pm-ed { animation-delay: .55s; }
.pm-copy > .pm-edline { animation-delay: .6s; }
.pm-copy > .pm-ctas { animation-delay: .7s; }
.pm-copy > .pm-note { animation-delay: .8s; }
.pm-title { margin: 22px 0 20px; font: 600 clamp(52px, 5.4vw, 96px)/.94 var(--font); letter-spacing: -.055em; }
.pm-title em { font-style: normal; color: #5f5856; }
.pm-tag { max-width: 40ch; margin: 0; font-size: 18px; line-height: 1.55; color: #b9b2b0; }

/* the edition switch: the homepage switch, with prices */
.pm-ed { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 34px; padding: 5px; border-radius: 999px; background: rgba(18,15,16,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2); }
.pm-ed.one { grid-template-columns: auto; }
.pm-ed button, .pm-ed .seg { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: color .45s; }
.pm-ed b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .65; transition: opacity .45s; }
.pm-ed [aria-checked="true"] { color: #0b0a0a; }
.pm-ed [aria-checked="true"] b { opacity: 1; }
.pm-ed button:not([aria-checked="true"]):not(.na):hover { color: var(--text); }
.pm-ed .na { cursor: help; color: var(--dim); }
.pm-ed .na b { font-size: 13px; font-weight: 500; }
.pm-ed .knob { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--text); box-shadow: 0 12px 30px -12px rgba(255,255,255,.45); transition: transform .7s var(--ease-out); }
.pm-ed[data-on="source"] .knob { transform: translateX(100%); }
.pm-ed.one .knob { width: calc(100% - 10px); }
.pm-ed .ico-sm { width: 17px; height: 17px; }
.pm-ed .shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.lock { width: 18px; height: 18px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock circle { fill: currentColor; stroke: none; }
.lock-arc { transform-box: fill-box; transform-origin: 100% 100%; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
[data-ed="source"][aria-checked="true"] .lock-arc { transform: translateY(-2.5px) rotate(-34deg); }
.pm-edline { margin: 14px 0 0 24px; font: 500 12.5px/1.2 var(--code); color: var(--dim); }
.pm-edline span::before { content: '› '; color: var(--red-hi); }

/* buttons */
.pm-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ba { --h: 64px; justify-content: space-between; gap: 28px; min-width: 300px; padding: 0 10px 0 26px; border-radius: 18px; font-size: 17.5px; letter-spacing: -.01em; }
.ba-price { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-variant-numeric: tabular-nums; transition: background-color .3s; }
.ba:hover .ba-price { background: rgba(0,0,0,.28); }
.ba-price:empty { display: none; }
.ba.is-in .ba-price { background: rgba(98,227,160,.1); box-shadow: inset 0 0 0 1px rgba(98,227,160,.3); }
.pm-ctas .bn { --h: 64px; gap: 0; padding: 0 28px; border-radius: 18px; font-size: 16.5px; background: rgba(27,23,24,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bn-go { display: inline-grid; place-items: center; width: 0; overflow: hidden; opacity: 0; transition: width .4s var(--ease-out), opacity .3s, margin .4s var(--ease-out); }
.bn:hover .bn-go { width: 16px; margin-left: 10px; opacity: 1; }
.pm-note { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.pm-note b { font-weight: 600; color: var(--red-hi); }
.pm-note s { margin-left: 4px; }
/* why it's safe to buy: four small promises under the buttons */
.pm-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 18px; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pm-trust li { display: flex; align-items: center; gap: 9px; }
.pm-trust .ico-sm { width: 15px; height: 15px; flex: none; color: var(--red-hi); }
.pm-alt { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); }
.pm-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pm-alt a:hover { color: var(--red-hi); }

/* the screen: leans toward the mouse, glows red behind */
.pm-media { position: relative; min-width: 0; perspective: 1600px; animation: pmIn 1.5s var(--ease-out) both .2s; }
@keyframes pmIn { from { opacity: 0; transform: translateY(40px); filter: blur(14px); } }
.pm-media::before { content: ''; position: absolute; inset: 8% 4% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(229,36,63,.55), transparent); filter: blur(46px); }
.pm-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 26px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 70px 120px -40px #000; transform: rotateY(calc(-6deg + var(--px) * -8deg)) rotateX(calc(2deg + var(--py) * 6deg)); transition: transform 1s var(--ease-out); view-transition-name: hero-shot; }
.pm-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.1), transparent 34%); }
.pm-slides { position: absolute; inset: 0; z-index: 0; }
.pm-slide { position: absolute; inset: 0; }
.pm-slide > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.4s var(--ease-out), filter .6s; }
.pm-frame:hover .pm-slide > img { transform: scale(1.07); filter: brightness(.78); }
.pm-frame.playing { transform: none; }
.pm-frame.playing::after, .pm-frame.playing .pm-zoom, .pm-frame.playing .pm-count { display: none; }
.pm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-bg { transition: opacity .9s; }
.pm-bg.dim { opacity: .06; }

/* a new shot is revealed behind a glowing red line, the old one sinks back */
.pm-slide.in-r { animation: pmWipeR 1s var(--ease-out) backwards; }
.pm-slide.in-l { animation: pmWipeL 1s var(--ease-out) backwards; }
.pm-slide.in-r > img, .pm-slide.in-l > img { animation: pmShot 1.6s var(--ease-out) backwards; }
.pm-frame .pm-slide.out > img { transform: scale(.94); filter: brightness(.3) blur(3px); transition-duration: 1s; }
@keyframes pmWipeR { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes pmWipeL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes pmShot { from { transform: scale(1.16); filter: brightness(1.5) saturate(1.3); } }
.pm-wipe { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2px; margin-left: -1px; pointer-events: none; opacity: 0; background: #ff6b7e;
  box-shadow: 0 0 14px 2px rgba(255,61,87,.9), 0 0 60px 14px rgba(229,36,63,.45); }
.pm-wipe.go-r { animation: pmLineR 1s var(--ease-out), pmLineFade 1s linear; }
.pm-wipe.go-l { animation: pmLineL 1s var(--ease-out), pmLineFade 1s linear; }
@keyframes pmLineR { from { left: 100%; } to { left: 0; } }
@keyframes pmLineL { from { left: 0; } to { left: 100%; } }
@keyframes pmLineFade { 0%, 62% { opacity: 1; } 100% { opacity: 0; } }

/* counter and arrows on the screen */
.pm-count { position: absolute; left: 18px; top: 16px; z-index: 3; display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 13px; border-radius: 999px; font: 600 12px/1 var(--code); letter-spacing: .08em; color: rgba(255,255,255,.55); background: rgba(10,9,9,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pm-count b { font-weight: 600; color: #fff; }
.pm-count i { font-style: normal; color: var(--red-hi); }
.pm-arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(10,9,9,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s, transform .5s var(--ease-out), background-color .3s, box-shadow .3s; }
.pm-arrow.prev { left: 18px; transform: translateX(-12px); }
.pm-arrow.next { right: 18px; transform: translateX(12px); }
.pm-arrow.prev .ico-sm { transform: scaleX(-1); }
.pm-frame:hover .pm-arrow, .pm-arrow:focus-visible { opacity: 1; transform: none; }
.pm-arrow:hover { background: var(--red); box-shadow: 0 12px 30px -8px rgba(229,36,63,.9); }
.pm-arrow:active { transform: scale(.92); }
.pm-frame:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }
@media (hover: none) { .pm-arrow { width: 40px; height: 40px; margin-top: -20px; opacity: .9; transform: none; } }

/* the film strip: one thumb per shot, the live one fills a red bar before the next takes over */
.pm-reel { display: flex; gap: 12px; margin-top: 24px; padding: 6px 4px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.pm-reel::-webkit-scrollbar { display: none; }
.pm-reel.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.pm-reel.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px); mask-image: linear-gradient(90deg, transparent, #000 70px); }
.pm-reel.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); }
.pm-thumb { position: relative; flex: none; width: clamp(88px, 8.2vw, 122px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #000; scroll-snap-align: center; opacity: .45; filter: saturate(.5); box-shadow: 0 0 0 1px rgba(255,255,255,.1); animation: fadeup .9s var(--ease-out) backwards var(--d, 0s); transition: opacity .4s, filter .4s, transform .5s var(--ease-out), box-shadow .4s; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.pm-thumb:hover { opacity: .9; filter: none; transform: translateY(-4px); }
.pm-thumb:hover img { transform: scale(1.1); }
.pm-thumb[aria-selected="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--red-hi), 0 14px 32px -10px rgba(229,36,63,.95); }
.pm-thumb:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.pt-n { position: absolute; left: 8px; bottom: 7px; font: 600 10px/1 var(--code); letter-spacing: .1em; color: #fff; text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.pt-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 6px 18px -4px rgba(229,36,63,.9); }
.pt-play .ico-sm { width: 12px; height: 12px; margin-left: 2px; }
.pt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-hi); box-shadow: 0 0 10px rgba(255,61,87,.8); transform: scaleX(0); transform-origin: 0 50%; }
.pm-media.auto .pm-thumb[aria-selected="true"] .pt-bar { animation: ptBar 6.5s linear forwards; }
.pm-media.auto:hover .pt-bar, .pm-media.auto.is-off .pt-bar { animation-play-state: paused; }
.pm-media.auto.stopped .pm-thumb .pt-bar { animation: none; }
@keyframes ptBar { to { transform: scaleX(1); } }

/* full-size viewer with arrows */
.lightbox .lb-arrow { top: 50%; margin-top: -22px; }
.lightbox .lb-arrow.prev { left: 18px; right: auto; }
.lightbox .lb-arrow.prev .ico { transform: scaleX(-1); }
.lightbox img { cursor: default; }
.lightbox img.swap { animation: lbSwap .5s var(--ease-out); }
@keyframes lbSwap { from { opacity: 0; transform: scale(.97); } }
.lb-count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 600 12px/1 var(--code); letter-spacing: .1em; color: var(--muted); }
.lb-count b { color: #fff; font-weight: 600; }
.pm-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 16px; color: #fff; }
.pm-play i { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 12px rgba(229,36,63,.22), 0 24px 60px -10px rgba(229,36,63,.9); animation: ring 2.4s infinite; transition: transform .45s var(--ease-out); }
.pm-play i .ico { width: 30px; height: 30px; margin-left: 4px; }
.pm-play span { padding: 9px 16px; border-radius: 999px; background: rgba(10,9,9,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-out); }
.pm-play:hover i { transform: scale(1.08); }
.pm-play:hover span, .pm-play:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .pm-play span { opacity: 1; transform: none; } }
.pm-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(10,9,9,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.pm-frame:hover .pm-zoom, .pm-zoom:focus-visible { opacity: 1; }

/* the four numbers along the bottom of the stage */
.pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 8vh, 88px) 0 0; border-top: 1px solid var(--line); animation: fadeup 1s var(--ease-out) both .9s; }
.pm-stats > div { padding: 26px 24px 40px 0; }
.pm-stats dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.pm-stats dd { margin: 12px 0 0; font: 600 clamp(28px, 2.6vw, 40px)/1 var(--font); letter-spacing: -.045em; }
.pm-stats dd small { margin-left: 4px; font-size: .4em; letter-spacing: 0; color: var(--dim); }

/* ---------- sections below ---------- */
.pm-sec { padding-block: clamp(80px, 9vw, 140px) 0; }
.pm-about { max-width: 1120px; margin: 28px 0 0; font: 600 clamp(28px, 3vw, 46px)/1.2 var(--font); letter-spacing: -.04em; text-wrap: pretty; }
.pm-about em { font-style: normal; color: #5f5856; }

/* features: an index, the way the homepage lists things */
.pm-feats { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.pm-feats li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, .8fr); gap: 24px; align-items: baseline; padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); }
.pm-feats li::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out); }
.pf-n { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--dim); }
.pf-t { font: 600 clamp(26px, 2.7vw, 42px)/1.05 var(--font); letter-spacing: -.045em; color: #8a8381; transition: color .5s, transform .8s var(--ease-out); }
.pf-d { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.pm-feats li:hover::after { transform: scaleX(1); }
.pm-feats li:hover .pf-t { color: var(--text); transform: translateX(14px); }
@media (hover: none) { .pf-t { color: var(--text); } }

/* requirements: heading on the left, hairline rows on the right */
.pm-reqs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pm-reqs .sh-title { font-size: clamp(40px, 4.2vw, 66px); }
.pm-req { margin: 0; border-bottom: 1px solid var(--line); }
.pm-req > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.pm-req dt { font: 600 clamp(17px, 1.4vw, 20px)/1.3 var(--font); letter-spacing: -.02em; color: #9a9391; }
.pm-req dd { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.pm-req a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red-line); }

#pairs { padding-bottom: 40px; }
#seen { padding-block: 72px 120px; border-top: 0; }
.sticky-buy b small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--dim); }
.toast small a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pm-grid, .pm-reqs { grid-template-columns: 1fr; }
  .pm-media { order: -1; }
  .pm-frame { transform: none; }
}
@media (max-width: 680px) {
  .pm { padding-top: 84px; }
  .pm-title { font-size: clamp(42px, 12vw, 56px); }
  .pm-tag { font-size: 16.5px; }
  .pm-ed { display: grid; width: 100%; }
  .pm-ed button, .pm-ed .seg { gap: 7px; height: 52px; padding: 0 10px; font-size: 14px; }
  .pm-ed .na b { display: none; }
  .pm-edline { margin-left: 4px; }
  .pm-ctas { display: grid; }
  .ba { min-width: 0; width: 100%; }
  .pm-ctas .bn { width: 100%; }
  .pm-play i { width: 70px; height: 70px; }
  .pm-count { left: 12px; top: 12px; padding: 6px 10px; font-size: 11px; }
  .pm-reel { gap: 9px; margin-top: 16px; }
  .pm-thumb { width: 84px; }
  .pm-stats { grid-template-columns: 1fr 1fr; }
  .pm-stats > div { padding: 22px 12px 22px 0; }
  .pm-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pm-feats li { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; }
  .pf-d { grid-column: 2; font-size: 15.5px; }
  .pm-req > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-frame { transform: none; }
  .pm-beams i, .pm-play i, .pm-thumb { animation: none; }
}
