/* ==========================================================================
   RADOCO — "story" product pages (scroll-driven, Apple-style)
   Loaded only on products listed in _src/data/stories.mjs
   ========================================================================== */
.ps { --ink: #f5f5f7; --mute: #86868b; --mute-2: #a1a1a6; --light: #f5f5f7; --light-ink: #1d1d1f; --light-mute: #6e6e73; --r: 28px;
  --wrap: 1120px; --pad: max(24px, calc((100vw - var(--wrap)) / 2)); --ease: cubic-bezier(.16, 1, .3, 1);
  background: #000; color: var(--ink); font-family: "Inter", var(--font-text); -webkit-font-smoothing: antialiased; overflow: clip; }
.ps h1, .ps h2, .ps h3 { font-family: "Inter", var(--font-title); color: var(--ink); }
.ps .light { background: var(--light); color: var(--light-ink); }
.ps .light h2, .ps .light h3 { color: var(--light-ink); }
.ps-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ps-h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 12px; }
.ps-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--mute-2); max-width: 640px; margin: 0; line-height: 1.5; }
.light .ps-sub { color: var(--light-mute); }
.ps-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 980px; background: var(--primary); color: #fff; font: 500 15px/1 "Inter", var(--font-text); letter-spacing: -.01em; white-space: nowrap; transition: transform .35s var(--ease), background .25s; border: 0; }
.ps-pill:hover { background: var(--primary-dark); color: #fff; transform: scale(1.03); }
.ps-pill.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .28); }
.ps-pill.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ps-pill.dis { background: #2a2a2d; color: var(--mute); pointer-events: none; }
.ps-pill.sm { height: 32px; padding: 0 16px; font-size: 13px; }
.ps-link { color: var(--primary); font-weight: 500; }
.ps-link:hover { color: #ff5c5c; }
.ps-link svg, .ps-pill svg { width: 16px; height: 16px; }

/* story pages: the global header scrolls away, the local nav sticks instead */
.page-story .header-main.is-sticky { position: static; height: var(--header-h); background: none; box-shadow: none; animation: none; }
.page-story .header-main.is-sticky .logo img { height: 46px; }
.page-story .scroll-top { display: none; }

/* ---------- reveal (blur → sharp) ---------- */
[data-rv] { opacity: 0; transform: translateY(26px); filter: blur(12px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform, filter; }
[data-rv].in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { [data-rv] { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---------- hero ---------- */
.ps-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; padding: calc(var(--topbar-h) + var(--header-h) + 4vh) 24px 0; text-align: center; overflow: hidden; --p: 0; }
.ps-beam { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 50% -5%, rgba(255, 255, 255, .22), transparent 70%),
  radial-gradient(38% 30% at 50% 78%, rgba(221, 51, 51, .18), transparent 70%);
  opacity: 0; animation: ps-beam 2.2s var(--ease) .2s forwards; }
@keyframes ps-beam { to { opacity: 1; } }
.ps-hero-copy { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.ps-eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); margin: 0 0 16px; }
.ps-h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin: 0 0 20px; }
.ps-h1 .w { display: inline-block; background: linear-gradient(180deg, #fff 35%, #8e8e93 130%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(.35em); filter: blur(14px); animation: ps-word 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
@keyframes ps-word { to { opacity: 1; transform: none; filter: blur(0); } }
.ps-intro { font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--mute-2); max-width: 720px; margin: 0 auto 24px; letter-spacing: -.01em; }
.ps-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ps-price { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ps-price small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.ps-cta .wish { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--mute-2); font: 500 14px "Inter", var(--font-text); padding: 0; transition: color .25s; }
.ps-cta .wish:hover, .ps-cta .wish.active { color: #ff5c5c; }
.ps-cta .wish svg { width: 18px; height: 18px; }
.ps-hero-img { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-top: 4vh; }
.ps-hero-img .in-wrap { opacity: 0; transform: translateY(60px) scale(.94); filter: blur(24px); animation: ps-hero-in 1.6s var(--ease) .35s forwards; }
@keyframes ps-hero-in { to { opacity: 1; transform: none; filter: blur(0); } }
.ps-hero-img img { display: block; width: auto; height: min(58svh, 620px); max-width: 92vw; object-fit: contain; filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .7));
  transform: translateY(calc(var(--p) * 90px)) scale(calc(1 - var(--p) * .14)); opacity: calc(1 - var(--p) * .7); transform-origin: 50% 100%; will-change: transform, opacity; }
.ps-hero-img.wide img { height: min(44svh, 470px); }
.ps-hero-img::after { content: ""; position: absolute; left: 50%; bottom: -6vh; width: min(70vw, 900px); height: 22vh; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .9), transparent 70%); pointer-events: none; }
.ps-hero .scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 12px; opacity: calc(1 - var(--p) * 3); }
.ps-hero .scroll-hint::before { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: ps-hint 1.8s ease-in-out infinite; }
@keyframes ps-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- local nav ---------- */
.ps-nav { position: sticky; top: 0; z-index: 150; height: 52px; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ps-nav .ps-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.ps-nav .name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; flex: 0 1 auto; }
.ps-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ps-nav ul a { font-size: 12.5px; color: var(--mute-2); letter-spacing: -.01em; transition: color .25s; white-space: nowrap; }
.ps-nav ul a:hover, .ps-nav ul a.on { color: #fff; }
.ps-nav .right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ps-nav .right .price { font-size: 13px; color: var(--mute-2); white-space: nowrap; }

/* ---------- statement (word scrub) ---------- */
.ps-statement { padding: 22vh 24px 18vh; }
.ps-statement p { max-width: 980px; margin: 0 auto; font-size: clamp(26px, 3.5vw, 46px); font-weight: 600; letter-spacing: -.025em; line-height: 1.16; }
.ps-statement .w { color: rgba(255, 255, 255, .2); transition: color .45s ease; }
.ps-statement .w.on { color: var(--ink); }

/* ---------- highlights carousel ---------- */
.ps-highlights { padding: 110px 0 100px; }
.ps-highlights .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.ps-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px var(--pad) 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-track.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ps-tile { flex: 0 0 min(76vw, 620px); aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; scroll-snap-align: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .08); position: relative; transition: transform .6s var(--ease); }
.ps-tile img { width: 100%; height: 100%; object-fit: contain; }
.ps-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ps-ctrl { display: flex; align-items: center; gap: 14px; }
.ps-dots { display: flex; gap: 8px; }
.ps-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .18); transition: background .3s, transform .3s; }
.ps-dots span.on { background: var(--light-ink); transform: scale(1.2); }
.ps-arrow { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #e8e8ed; color: var(--light-ink); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, transform .3s var(--ease); }
.ps-arrow:hover { background: #dcdce1; transform: scale(1.06); }
.ps-arrow:disabled { opacity: .35; pointer-events: none; }
.ps-arrow svg { width: 16px; height: 16px; }

/* ---------- pinned feature story ---------- */
.ps-story { position: relative; height: calc((var(--n) + 1) * 100vh); }
.ps-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 60px; padding: 52px var(--pad) 0; }
.ps-steps { position: relative; min-height: 360px; }
.ps-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(46px); filter: blur(10px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); pointer-events: none; }
.ps-step.on { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.ps-step.past { opacity: 0; transform: translateY(-46px); }
.ps-step .n { color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.ps-step h3 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 18px; }
.ps-step p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--mute-2); max-width: 500px; margin: 0; }
.ps-prog { position: absolute; left: calc(var(--pad) - 40px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.ps-prog span { width: 3px; height: 26px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .4s; }
.ps-prog span.on { background: var(--ink); }
.ps-stage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; max-height: 74vh; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.ps-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.1); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.ps-stage img.on { opacity: 1; transform: none; }
.ps-stage.cut { background: radial-gradient(60% 60% at 50% 45%, #2a2a2e, #0a0a0b 80%); box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ps-stage.cut img { padding: 9%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transform: translate(var(--sx, 0), var(--sy, 0)) scale(calc(var(--sc, 1) * .92)); }
.ps-stage.cut img.on { transform: translate(var(--sx, 0), var(--sy, 0)) scale(var(--sc, 1)); }

/* ---------- stats ---------- */
.ps-stats { padding: 130px 0 110px; }
.ps-stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.ps-stat .v { font-size: clamp(54px, 6.6vw, 100px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(90deg, #fff, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-stat .v small { font-size: .42em; font-weight: 600; letter-spacing: -.02em; margin-left: 4px; }
.ps-stat .l { color: var(--mute); font-size: 16px; margin-top: 10px; letter-spacing: -.01em; }

/* ---------- bento gallery ---------- */
.ps-gallery { padding: 100px 0; }
.ps-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ps-bento a, .ps-bento div { grid-column: span 2; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); display: block; }
.ps-bento > :nth-child(1), .ps-bento > :nth-child(2) { grid-column: span 3; aspect-ratio: 3 / 2; }
.ps-bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ps-bento > :hover img { transform: scale(1.05); }

/* ---------- set / variants ---------- */
.ps-set, .ps-variants { padding: 110px 0; }
.ps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 44px; }
.ps-card { position: relative; display: block; border-radius: var(--r); background: linear-gradient(180deg, #1c1c1f, #0e0e10); border: 1px solid rgba(255, 255, 255, .08); padding: 34px 30px 30px; text-align: center; color: var(--ink); transition: transform .6s var(--ease), border-color .3s; overflow: hidden; }
.ps-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .22); color: var(--ink); }
.ps-card .pic { height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.ps-card .pic img { max-height: 100%; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); transition: transform .8s var(--ease); }
.ps-card:hover .pic img { transform: translateY(-8px) scale(1.04); }
.ps-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.ps-card .meta { color: var(--mute); font-size: 14px; margin-bottom: 16px; }
.ps-card .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); vertical-align: -2px; margin-right: 8px; }
.ps-card.current { border-color: var(--primary); }
.ps-card.current::after { content: "Selected"; position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

/* ---------- specs ---------- */
.ps-specs { padding: 120px 0 90px; }
.ps-specs .cols { display: grid; grid-template-columns: 1fr 2fr; gap: 40px 80px; margin-top: 50px; }
.ps-specs dl { margin: 0; }
.ps-specs .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ps-specs .row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ps-specs dt { color: var(--mute); font-size: 15px; }
.ps-specs dd { margin: 0; color: var(--ink); font-size: 16px; }
.ps-specs .about h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.ps-specs .about p, .ps-specs .about li { color: var(--mute-2); font-size: 15px; line-height: 1.6; }
.ps-specs .about strong { color: var(--ink); font-weight: 600; }
.ps-specs .about ul { padding-left: 18px; }
.ps-specs .note { margin-top: 36px; padding: 22px 26px; border-radius: 18px; background: #101012; border: 1px solid rgba(255, 255, 255, .08); color: var(--mute-2); font-size: 14px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.ps-faq { padding: 100px 0 120px; }
.ps-faq .list { margin-top: 40px; border-top: 1px solid rgba(0, 0, 0, .12); }
.ps-faq details { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.ps-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.02em; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #e8e8ed; display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 20px; transition: transform .4s var(--ease), background .25s; }
.ps-faq details[open] summary::after { transform: rotate(45deg); background: var(--light-ink); color: #fff; }
.ps-faq details p { margin: 0 0 26px; color: var(--light-mute); font-size: 17px; line-height: 1.55; max-width: 800px; }

/* ---------- lineup ---------- */
.ps-lineup { padding: 100px 0 110px; }
.ps-lineup .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.ps-lineup .ps-track { padding-bottom: 20px; }
.ps-pcard { flex: 0 0 300px; scroll-snap-align: start; background: #fff; border-radius: 24px; padding: 30px 26px 26px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, .05); transition: transform .6s var(--ease), box-shadow .6s; color: var(--light-ink); }
.ps-pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .1); color: var(--light-ink); }
.ps-pcard .pic { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.ps-pcard .pic img { max-height: 100%; width: auto; max-width: 88%; object-fit: contain; transition: transform .8s var(--ease); }
.ps-pcard:hover .pic img { transform: scale(1.05); }
.ps-pcard small { color: var(--light-mute); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ps-pcard h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 8px; color: var(--light-ink); line-height: 1.25; }
.ps-pcard .p { font-size: 15px; color: var(--light-mute); margin-bottom: 18px; }
.ps-pcard .p b { color: var(--light-ink); font-weight: 600; }
.ps-pcard .row { margin-top: auto; display: flex; gap: 14px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ps-nav ul { display: none; }
  .ps-stats .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ps-sticky { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 26px; padding-top: 64px; padding-bottom: 28px; }
  .ps-stage { order: -1; aspect-ratio: 1; height: min(44vh, calc(100vw - 48px)); width: auto; max-width: 100%; }
  .ps-steps { min-height: 250px; }
  .ps-step { justify-content: flex-start; }
  .ps-step h3 { font-size: clamp(28px, 6vw, 40px); margin: 10px 0 12px; }
  .ps-prog { display: none; }
  .ps-bento > * { grid-column: span 3 !important; }
  .ps-specs .cols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ps-hero { padding-top: calc(var(--header-h) + 5vh); }
  .ps-hero-img img { height: min(46svh, 420px); }
  .ps-hero-img.wide img { height: auto; width: 92vw; max-height: 40svh; }
  .ps-nav .name { font-size: 16px; }
  .ps-nav .right .price { display: none; }
  .ps-highlights, .ps-gallery, .ps-set, .ps-variants, .ps-lineup { padding: 80px 0; }
  .ps-stats { padding: 90px 0 70px; }
  .ps-stat .v { font-size: clamp(44px, 12vw, 64px); }
  .ps-specs .row { grid-template-columns: 1fr; gap: 4px; }
  .ps-bento > * { grid-column: span 6 !important; }
  .ps-pcard { flex-basis: 260px; }
}
[dir="rtl"] .ps-step .n, [dir="rtl"] .ps-price, [dir="rtl"] .stat b { direction: ltr; unicode-bidi: isolate; display: inline-block; }
