/* Generated by scripts/build-sample-bundles.py from assets/js/samples.js and assets/css/samples.css. Do not edit. */
/* =====================================================================
   Parsa Dev live samples (shown on the Features pages)
   Every colour comes from the site theme (--primary, --accent, --ink …), so samples follow the palette
   picker and Light / Night. Each sample is fenced under its own pds- class. ".is-playing" plays a
   sample once on phones, which can't hover.
   Licence note: PDS-01 to PDS-05 started from MIT-licensed Uiverse.io designs (credits beside each).
   ===================================================================== */

/* keyboard users get the same effect as a mouse hover, plus a clear focus ring */
.pds-ink:focus-visible, .pds-plane:focus-visible, .pds-glide:focus-visible,
.pds-bloom__tile:focus-visible, .pds-petal:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px;
}

/* ---------- people who turn motion off on their device get instant, still changes ---------- */
@media (prefers-reduced-motion: reduce) {
  [class*="pds-"], [class*="pds-"]::before { transition: none !important; animation: none !important; }
}

/* ---------- shared scroll window for header samples (PDS-11 onwards) ---------- */
.pds-win {
  position: relative; width: min(100%, 520px); height: 320px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); scrollbar-width: thin;
}
.pds-win:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.pds-win__page { margin-top: -3.6rem; }
.pds-win__hero { display: grid; place-items: end start; height: 210px; padding: 1.2rem; color: #fff; font-family: var(--font-display, Georgia, serif); font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pds-win__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 1rem; }
.pds-win__row i { height: 90px; border-radius: 12px; background: linear-gradient(160deg, var(--primary-tint), color-mix(in srgb, var(--accent) 55%, var(--surface))); }
.pds-win__row i:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 45%, var(--surface)), var(--primary-tint)); }
.pds-win__band { height: 140px; margin: 0 1rem 1rem; border-radius: 14px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.pds-win__band--alt { background: linear-gradient(90deg, var(--accent), var(--primary-deep)); }

/* ---------- PDS-25 Step Bounce ---------- */
.pds-step, .pds-step * { box-sizing: border-box; }
.pds-step { display: grid; justify-items: center; gap: .9rem; margin: 0 auto; }
.pds-step .pds-step__stage { position: relative; width: 13.2em; height: 11.6em; font-size: 13px; }
.pds-step .pds-step__bar { position: absolute; left: 8.8em; top: 4.6em; width: 4.4em; height: .7em; border-radius: .4em;
  background: var(--ink-faint); box-shadow: 0 .3em 0 var(--border-strong); opacity: 0;
  animation: pds-step-stairs 4s ease-in-out infinite; }
.pds-step .pds-step__bar:nth-child(2) { animation-delay: -1s; }
.pds-step .pds-step__bar:nth-child(3) { animation-delay: -2s; }
.pds-step .pds-step__bar:nth-child(4) { animation-delay: -3s; }
.pds-step .pds-step__ball { position: absolute; left: 6.1em; top: 5em; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--primary) 45%, #fff) 0 10%, var(--primary) 50%, var(--primary-deep));
  box-shadow: 0 0 0 .3em color-mix(in srgb, var(--primary-tint) 85%, transparent), 0 .9em 1.4em -.3em var(--primary-tint);
  transform-origin: 50% 100%;
  animation: pds-step-hop .5s cubic-bezier(.3, .7, .45, 1) infinite alternate, pds-step-squash .5s linear infinite alternate; }
.pds-step .pds-step__label { margin: 0; font-size: .9rem; letter-spacing: .02em; color: var(--ink-muted); }
@keyframes pds-step-stairs {
  0% { opacity: 0; translate: 0 0; }
  25% { opacity: 1; translate: 0 0; }
  50% { opacity: 1; translate: -3.6em 3em; }
  75% { opacity: 1; translate: -7.2em 6em; }
  100% { opacity: 0; translate: -7.2em 6em; }
}
@keyframes pds-step-hop { to { translate: 0 -4.6em; } }
@keyframes pds-step-squash { 0% { scale: 1.24 .74; } 18% { scale: .88 1.14; } 45%, 100% { scale: 1 1; } }
@media (max-width: 420px) { .pds-step .pds-step__stage { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .pds-step .pds-step__bar { animation-play-state: paused; }
  .pds-step .pds-step__ball { animation: none; }
}

/* ---------- PDS-26 Parsa Dev Signature ---------- */
.pds-sig, .pds-sig * { box-sizing: border-box; }
.pds-sig { display: grid; justify-items: center; gap: .7rem; width: min(100%, 22rem); margin: 0 auto; }
.pds-sig .pds-sig__row { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; }
.pds-sig .pds-sig__art { display: block; flex: 0 1 auto; width: 17rem; max-width: calc(100% - 3.1rem); height: auto; overflow: visible; }
.pds-sig .pds-sig__word { font-family: var(--font-display, Georgia, serif); font-size: 56px; font-style: italic; font-weight: 600;
  fill: color-mix(in srgb, var(--accent) 80%, var(--primary)); fill-opacity: 0;
  stroke: var(--primary); stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 0 600;
  animation: pds-sig-write 3.6s ease-in-out infinite; }
.pds-sig .pds-sig__swash { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 100 120; stroke-dashoffset: 102; animation: pds-sig-swash 3.6s ease-in-out infinite; }
.pds-sig .pds-sig__spin { flex: none; display: block; width: 2.5rem; height: 2.5rem; }
.pds-sig .pds-sig__spin svg { display: block; width: 100%; height: 100%; animation: pds-sig-spin 1.1s linear infinite; }
.pds-sig .pds-sig__spin circle { fill: none; stroke-width: 3.5; }
.pds-sig .pds-sig__track { stroke: color-mix(in srgb, var(--border-strong) 70%, transparent); }
.pds-sig .pds-sig__tail { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 18 82.53; stroke-dashoffset: 18; }
.pds-sig .pds-sig__head { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 34 66.53; }
.pds-sig .pds-sig__label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
@keyframes pds-sig-write {
  0% { stroke-dasharray: 0 600; fill-opacity: 0; stroke-opacity: 1; }
  48% { stroke-dasharray: 600 0; fill-opacity: 0; stroke-opacity: 1; }
  66% { stroke-dasharray: 600 0; fill-opacity: 1; stroke-opacity: 1; }
  86% { stroke-dasharray: 600 0; fill-opacity: 1; stroke-opacity: 1; }
  100% { stroke-dasharray: 600 0; fill-opacity: 0; stroke-opacity: 0; }
}
@keyframes pds-sig-swash {
  0%, 42% { stroke-dashoffset: 102; opacity: 1; }
  62%, 86% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes pds-sig-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pds-sig .pds-sig__word { animation: none; stroke-dasharray: none; fill-opacity: 1; }
  .pds-sig .pds-sig__swash { animation: none; stroke-dashoffset: 0; }
  .pds-sig .pds-sig__spin svg { animation: none; }
}

/* ---------- PDS-39 Tally Board ---------- */
.pds-tally, .pds-tally * { box-sizing: border-box; }
.pds-tally { position: relative; container-type: inline-size; display: grid; gap: .7rem; width: min(100%, 400px); margin: 0 auto; padding: 1rem; overflow: hidden;
  border-radius: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-tally p { margin: 0; }
.pds-tally .pds-tally__head { display: flex; align-items: center; gap: .65rem; }
.pds-tally .pds-tally__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.pds-tally .pds-tally__mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pds-tally .pds-tally__who { min-width: 0; }
.pds-tally .pds-tally__name { font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
.pds-tally .pds-tally__when { font-size: .72rem; color: var(--ink-muted); }
.pds-tally .pds-tally__chip { margin-left: auto; padding: .26rem .55rem; border-radius: 999px; border: 1px dashed var(--border-strong);
  font: 600 .6rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pds-tally .pds-tally__hero { position: relative; overflow: hidden; min-height: 122px; padding: .85rem 1rem 1rem; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 15%, var(--surface)), color-mix(in srgb, var(--accent) 7%, var(--surface))); }
.pds-tally .pds-tally__label { font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-muted); }
.pds-tally .pds-tally__num { position: relative; font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.4rem; font-weight: 600;
  line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pds-tally .pds-tally__hero .pds-tally__num { z-index: 1; font-size: clamp(1.85rem, 9cqi, 2.4rem); }
.pds-tally .pds-tally__delta { position: relative; z-index: 1; display: inline-flex; gap: .3rem; margin-top: .3rem; padding: .2rem .5rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.pds-tally .pds-tally__spark { position: absolute; right: .7rem; bottom: .8rem; width: 42%; height: 50px; overflow: visible; }
.pds-tally .pds-tally__area { fill: color-mix(in srgb, var(--primary) 14%, transparent); opacity: var(--p, 1); }
.pds-tally .pds-tally__line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100 102; stroke-dashoffset: 0; }
.pds-tally .pds-tally__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pds-tally .pds-tally__tile { display: grid; gap: .3rem; min-width: 0; padding: .75rem .8rem; border-radius: 14px;
  background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-tally .pds-tally__bar { display: block; height: 6px; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.pds-tally .pds-tally__bar i { display: block; height: 100%; border-radius: inherit; transform-origin: left center;
  transform: scaleX(calc(var(--w, 1) * var(--p, 1))); background: linear-gradient(90deg, var(--primary), var(--accent)); }
.pds-tally .pds-tally__sub { overflow: hidden; font-size: .66rem; color: var(--ink-muted); white-space: nowrap; text-overflow: ellipsis; }
.pds-tally .pds-tally__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.pds-tally .pds-tally__note { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--ink-muted); }
.pds-tally .pds-tally__note::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pds-tally .pds-tally__replay { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .5rem .95rem; border: 0; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary); cursor: pointer;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 70%, transparent); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pds-tally .pds-tally__replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
:is(.pds-tally .pds-tally__replay:hover, .pds-tally .pds-tally__replay:focus-visible, .is-playing .pds-tally .pds-tally__replay) { transform: translateY(-1px); }
:is(.pds-tally .pds-tally__replay:hover, .pds-tally .pds-tally__replay:focus-visible, .is-playing .pds-tally .pds-tally__replay) svg { transform: rotate(-300deg); }
.pds-tally .pds-tally__replay:active { transform: scale(.97); }
.pds-tally .pds-tally__replay:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-tally .pds-tally__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .pds-tally *, .pds-tally *::before { transition: none !important; animation: none !important; }
}

/* ---------- PDS-40 Endless Ribbon ---------- */
.pds-ribbon, .pds-ribbon * { box-sizing: border-box; }
.pds-ribbon { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; width: min(100%, 520px); margin: 0 auto; padding: 1.1rem 0; overflow: hidden; color: var(--ink); }
.pds-ribbon p { margin: 0; }
.pds-ribbon .pds-ribbon__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0 1rem; }
.pds-ribbon .pds-ribbon__title { font-family: var(--font-display, Georgia, serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.pds-ribbon .pds-ribbon__eyebrow { display: block; margin-bottom: .2rem; font: 600 .62rem/1.3 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.pds-ribbon .pds-ribbon__pause { flex: none; display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--border-strong); font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--surface); cursor: pointer;
  box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--ink) 50%, transparent); transition: color .25s, border-color .25s; }
:is(.pds-ribbon .pds-ribbon__pause:hover, .pds-ribbon .pds-ribbon__pause:focus-visible) { color: var(--primary); border-color: var(--primary); }
.pds-ribbon .pds-ribbon__icon { display: block; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.pds-ribbon.is-paused .pds-ribbon__icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor; }
.pds-ribbon :is(.pds-ribbon__pause, .pds-ribbon__strip):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-ribbon .pds-ribbon__strip { margin: 0 .5rem; padding: .35rem 0; border-radius: 18px; }
.pds-ribbon .pds-ribbon__strip:focus-visible { outline-offset: 0; }
.pds-ribbon .pds-ribbon__mask { overflow: hidden; padding: .3rem 0 .7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 10%, var(--ink) 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) 10%, var(--ink) 90%, transparent); }
.pds-ribbon .pds-ribbon__track { display: flex; width: max-content; animation: pds-ribbon-slide 28s linear infinite; }
.pds-ribbon .pds-ribbon__strip--logos .pds-ribbon__track { animation-duration: 36s; animation-direction: reverse; }
:is(.pds-ribbon .pds-ribbon__strip:hover, .pds-ribbon .pds-ribbon__strip:focus-within, .pds-ribbon.is-paused .pds-ribbon__strip) .pds-ribbon__track { animation-play-state: paused; }
.pds-ribbon .pds-ribbon__group { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0 .6rem 0 0; list-style: none; }
.pds-ribbon .pds-ribbon__pill { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px;
  white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 20px -16px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-ribbon .pds-ribbon__pill svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.pds-ribbon .pds-ribbon__kicker { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; font: 600 .64rem/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pds-ribbon .pds-ribbon__chip { padding: .24rem .5rem; border-radius: 999px; border: 1px dashed var(--border-strong); letter-spacing: .06em; }
.pds-ribbon .pds-ribbon__logo { flex: none; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem; border-radius: 14px; white-space: nowrap;
  font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface-sunk) 75%, transparent); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.pds-ribbon .pds-ribbon__glyph { flex: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pds-ribbon .pds-ribbon__glyph.is-b { border-radius: 5px; transform: rotate(45deg) scale(.8); background: linear-gradient(135deg, var(--gold), var(--primary)); }
.pds-ribbon .pds-ribbon__glyph.is-c { border-radius: 50% 0; background: linear-gradient(135deg, var(--accent), var(--primary-deep)); }
.pds-ribbon .pds-ribbon__glyph.is-d { border-radius: 4px 4px 11px 11px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 45%, var(--primary))); }
.pds-ribbon .pds-ribbon__glyph.is-e { background: radial-gradient(circle, transparent 4px, var(--primary-deep) 5px); }
.pds-ribbon .pds-ribbon__note { padding: 0 1rem; font-size: .74rem; color: var(--ink-muted); }
@keyframes pds-ribbon-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pds-ribbon .pds-ribbon__track { animation: none; }
  .pds-ribbon .pds-ribbon__strip { overflow-x: auto; scrollbar-width: thin; }
  .pds-ribbon .pds-ribbon__mask { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pds-ribbon .pds-ribbon__group[aria-hidden="true"], .pds-ribbon .pds-ribbon__pause { display: none; }
}

/* ---------- PDS-41 Word Rise ---------- */
.pds-rise, .pds-rise * { box-sizing: border-box; }
.pds-rise { position: relative; container-type: inline-size; display: grid; gap: .8rem; width: min(100%, 480px); margin: 0 auto; padding: 1.4rem 1.3rem 1.2rem; overflow: hidden;
  border-radius: 24px; color: var(--ink); border: 1px solid var(--border);
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 62%), var(--surface);
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-rise p { margin: 0; }
.pds-rise .pds-rise__eyebrow { font: 600 .64rem/1.3 var(--font-mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.pds-rise .pds-rise__line { min-height: 2.2em; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.45rem, 8.4cqi, 2.5rem); font-weight: 600;
  line-height: 1.1; letter-spacing: -.02em; }
.pds-rise .pds-rise__w, .pds-rise .pds-rise__c { display: inline-block; }
.pds-rise .pds-rise__w { white-space: nowrap; }
.pds-rise .pds-rise__w.is-key { position: relative; font-style: italic; color: var(--primary); }
.pds-rise .pds-rise__w.is-key::after { content: ""; position: absolute; left: 0; right: .12em; bottom: -.02em; height: .085em; border-radius: 1em;
  background: var(--gold); transform-origin: left center; }
.pds-rise .pds-rise__sub { max-width: 34ch; font-size: .9rem; line-height: 1.5; color: var(--ink-muted); }
.pds-rise.is-waiting :is(.pds-rise__words, .pds-rise__sub) { opacity: 0; }
.pds-rise.is-on[data-mode="word"] .pds-rise__w, .pds-rise.is-on[data-mode="letter"] .pds-rise__c {
  animation: pds-rise-in .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 95ms); }
.pds-rise.is-on[data-mode="letter"] .pds-rise__c { animation-duration: .6s; animation-delay: calc(var(--i) * 26ms); }
.pds-rise.is-on .pds-rise__w.is-key::after { animation: pds-rise-line .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--pds-rise-end, 0ms); }
.pds-rise.is-on .pds-rise__sub { animation: pds-rise-in .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--pds-rise-end, 0ms); }
.pds-rise .pds-rise__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; }
.pds-rise .pds-rise__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-rise .pds-rise__opt { margin: 0; padding: .42rem .9rem; border: 0; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 700;
  color: var(--ink-muted); background: transparent; cursor: pointer; transition: color .25s, background .25s, box-shadow .25s; }
.pds-rise .pds-rise__opt:hover { color: var(--ink); }
.pds-rise .pds-rise__opt[aria-pressed="true"] { color: var(--ink); background: var(--surface);
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-rise .pds-rise__replay { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .5rem .95rem; border: 0; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary); cursor: pointer;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 70%, transparent); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pds-rise .pds-rise__replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
:is(.pds-rise .pds-rise__replay:hover, .pds-rise .pds-rise__replay:focus-visible, .is-playing .pds-rise .pds-rise__replay) { transform: translateY(-1px); }
:is(.pds-rise .pds-rise__replay:hover, .pds-rise .pds-rise__replay:focus-visible, .is-playing .pds-rise .pds-rise__replay) svg { transform: rotate(-300deg); }
.pds-rise .pds-rise__replay:active { transform: scale(.97); }
.pds-rise :is(.pds-rise__opt, .pds-rise__replay):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-rise .pds-rise__note { font-size: .7rem; line-height: 1.45; color: var(--ink-muted); }
.pds-rise .pds-rise__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes pds-rise-in { from { opacity: 0; filter: blur(10px); transform: translateY(.45em); } }
@keyframes pds-rise-line { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .pds-rise *, .pds-rise *::after { animation: none !important; transition: none !important; }
}

/* ---------- PDS-42 Shimmer List ---------- */
.pds-shim, .pds-shim * { box-sizing: border-box; }
.pds-shim { position: relative; display: grid; gap: .7rem; width: min(100%, 340px); margin: 0 auto; color: var(--ink); }
.pds-shim p { margin: 0; }
.pds-shim .pds-shim__app { display: grid; gap: .7rem; padding: .9rem; overflow: hidden; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-shim .pds-shim__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.pds-shim .pds-shim__brand { font-family: var(--font-display, Georgia, serif); font-size: 1rem; font-weight: 600; }
.pds-shim .pds-shim__chip { padding: .24rem .5rem; border-radius: 999px; border: 1px dashed var(--border-strong);
  font: 600 .58rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pds-shim .pds-shim__profile { display: flex; align-items: center; gap: .65rem; }
.pds-shim .pds-shim__avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--bg); background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.pds-shim .pds-shim__who { display: grid; gap: .25rem; min-width: 0; }
.pds-shim .pds-shim__name { font-size: .92rem; font-weight: 700; }
.pds-shim .pds-shim__meta { font-size: .72rem; color: var(--ink-muted); }
.pds-shim .pds-shim__card { display: grid; gap: .35rem; }
.pds-shim .pds-shim__pic { display: block; width: auto; height: 76px; margin-bottom: .15rem; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 24%, var(--surface)), color-mix(in srgb, var(--primary) 18%, var(--surface))); }
.pds-shim .pds-shim__pic::before { content: ""; position: absolute; left: 50%; top: 54%; width: 92px; height: 48px; transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 48% 52% 42% 46% / 64% 62% 38% 36%;
  background: repeating-linear-gradient(115deg, transparent 0 20px, color-mix(in srgb, var(--gold) 62%, #000) 20px 22.5px),
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 78%, #fff), color-mix(in srgb, var(--gold) 72%, #000));
  box-shadow: 0 12px 18px -10px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-shim .pds-shim__row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pds-shim .pds-shim__title { font-size: .9rem; font-weight: 700; }
.pds-shim .pds-shim__price { flex: none; font-family: var(--font-mono, ui-monospace, monospace); font-size: .8rem; font-weight: 600; color: var(--primary); }
.pds-shim .pds-shim__desc { font-size: .74rem; color: var(--ink-muted); }
.pds-shim .pds-shim__list { display: grid; gap: .5rem; margin: 0; padding: .65rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.pds-shim .pds-shim__list li { display: flex; align-items: center; gap: .65rem; }
.pds-shim .pds-shim__thumb { flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--gold) 75%, #000) 0 6px, transparent 7px),
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 50%, var(--surface)), color-mix(in srgb, var(--gold) 30%, var(--surface))); }
.pds-shim .pds-shim__list li + li .pds-shim__thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, var(--surface)), color-mix(in srgb, var(--gold) 40%, var(--surface))); }
.pds-shim .pds-shim__item { margin-right: auto; font-size: .84rem; font-weight: 600; }
/* each bone is shaped by its real content; the overlay sits on top while loading */
.pds-shim :where(.pds-shim__bone) { position: relative; width: fit-content; max-width: 100%; }
.pds-shim .pds-shim__bone::after { content: ""; position: absolute; inset: 0; border-radius: 6px; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 65%, transparent) 50%, transparent 70%) 0 0 / 220% 100% no-repeat,
    color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.pds-shim :is(.pds-shim__avatar, .pds-shim__pic, .pds-shim__thumb)::after { border-radius: inherit; }
.pds-shim.is-loading .pds-shim__bone { color: transparent; }
.pds-shim.is-loading :is(.pds-shim__avatar, .pds-shim__pic, .pds-shim__thumb) { background: transparent; }
.pds-shim.is-loading .pds-shim__bone::after { opacity: 1; animation: pds-shim-sweep 1.4s linear infinite; }
.pds-shim:not(.is-loading) .pds-shim__bone { transition: color .5s cubic-bezier(.22, 1, .36, 1) calc(var(--d, 0) * 1ms); }
.pds-shim:not(.is-loading) .pds-shim__bone::after { transition: opacity .55s cubic-bezier(.22, 1, .36, 1) calc(var(--d, 0) * 1ms); }
.pds-shim .pds-shim__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 0 .3rem; }
.pds-shim .pds-shim__status { display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--ink-muted); }
.pds-shim .pds-shim__status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pds-shim.is-loading .pds-shim__status::before { background: var(--gold); animation: pds-shim-pulse .9s ease-in-out infinite alternate; }
.pds-shim .pds-shim__reload { flex: none; display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .5rem .95rem; border: 0; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary); cursor: pointer;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 70%, transparent); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pds-shim .pds-shim__reload svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
:is(.pds-shim .pds-shim__reload:hover, .pds-shim .pds-shim__reload:focus-visible, .is-playing .pds-shim .pds-shim__reload) { transform: translateY(-1px); }
:is(.pds-shim .pds-shim__reload:hover, .pds-shim .pds-shim__reload:focus-visible, .is-playing .pds-shim .pds-shim__reload) svg { transform: rotate(-300deg); }
.pds-shim .pds-shim__reload:active { transform: scale(.97); }
.pds-shim .pds-shim__reload:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@keyframes pds-shim-sweep { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
@keyframes pds-shim-pulse { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .pds-shim *, .pds-shim *::after { animation: none !important; transition: none !important; }
}

/* ---------- PDS-43 Lively Loops ---------- */
.pds-loops, .pds-loops * { box-sizing: border-box; }
.pds-loops { position: relative; display: grid; gap: .75rem; width: min(100%, 360px); margin: 0 auto; color: var(--ink); }
.pds-loops .pds-loops__stage { position: relative; display: block; height: 220px; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--border); background: radial-gradient(90% 85% at 50% 38%, var(--surface), var(--surface-sunk));
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-loops .pds-loops__tag { position: absolute; top: .7rem; left: .8rem; z-index: 1; padding: .26rem .55rem; border-radius: 999px; border: 1px solid var(--border);
  font: 600 .58rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface) 85%, transparent); }
.pds-loops .pds-loops__art { display: block; width: 100%; height: 100%; overflow: visible; }
.pds-loops .pds-loops__halo { fill: color-mix(in srgb, var(--primary) 11%, transparent); }
.pds-loops .pds-loops__scene { display: none; }
.pds-loops:is([data-scene="launch"]) .pds-loops__launch, .pds-loops:is([data-scene="done"]) .pds-loops__done,
.pds-loops:is([data-scene="like"]) .pds-loops__like { display: inline; }
.pds-loops .pds-loops__art :is(.pds-loops__body, .pds-loops__nose, .pds-loops__fin, .pds-loops__window, .pds-loops__heart) {
  stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.pds-loops .pds-loops__art :is(.pds-loops__ship, .pds-loops__flame, .pds-loops__flame-in, .pds-loops__puffs circle, .pds-loops__disc,
  .pds-loops__ring, .pds-loops__wave, .pds-loops__dots, .pds-loops__heart) { transform-box: fill-box; transform-origin: center; }
/* 1 · Launch */
.pds-loops .pds-loops__body { fill: var(--surface); }
.pds-loops .pds-loops__nose { fill: var(--primary); }
.pds-loops .pds-loops__fin { fill: var(--primary-deep); }
.pds-loops .pds-loops__window { fill: var(--accent); }
.pds-loops .pds-loops__shine { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, #fff); stroke-width: 2.2; stroke-linecap: round; }
.pds-loops .pds-loops__flame { fill: var(--gold); transform-origin: 50% 0; animation: pds-loops-flicker .18s ease-in-out infinite alternate; }
.pds-loops .pds-loops__flame-in { fill: color-mix(in srgb, var(--gold) 40%, #fff); transform-origin: 50% 0; animation: pds-loops-flicker .13s ease-in-out infinite alternate; }
.pds-loops .pds-loops__ship { animation: pds-loops-bob 1.6s ease-in-out infinite; }
.pds-loops .pds-loops__streaks path { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2.5; stroke-linecap: round;
  animation: pds-loops-streak .9s linear infinite; }
.pds-loops .pds-loops__streaks path:nth-child(2) { animation-delay: -.3s; }
.pds-loops .pds-loops__streaks path:nth-child(3) { animation-delay: -.55s; }
.pds-loops .pds-loops__streaks path:nth-child(4) { animation-delay: -.75s; }
.pds-loops .pds-loops__puffs circle { fill: color-mix(in srgb, var(--ink) 9%, var(--surface)); stroke: color-mix(in srgb, var(--ink) 20%, transparent); stroke-width: 1.5;
  animation: pds-loops-puff 1.2s ease-out infinite; }
.pds-loops .pds-loops__puffs circle:nth-child(2) { animation-delay: -.4s; }
.pds-loops .pds-loops__puffs circle:nth-child(3) { animation-delay: -.8s; }
/* 2 · Success */
.pds-loops .pds-loops__done { animation: pds-loops-fade 2.8s linear infinite; }
.pds-loops .pds-loops__disc { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); animation: pds-loops-pop 2.8s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.pds-loops .pds-loops__ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100 102;
  transform: rotate(-90deg); animation: pds-loops-ring 2.8s cubic-bezier(.22, 1, .36, 1) infinite; }
.pds-loops .pds-loops__tick { fill: none; stroke: var(--accent-deep); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100 102; animation: pds-loops-tick 2.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.pds-loops .pds-loops__burst path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100 102; stroke-dashoffset: 101;
  animation: pds-loops-burst 2.8s cubic-bezier(.22, 1, .36, 1) infinite; }
.pds-loops .pds-loops__burst path:nth-child(even) { stroke: var(--primary); }
/* 3 · Like */
.pds-loops .pds-loops__heart { fill: var(--primary); animation: pds-loops-heart 2.4s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.pds-loops .pds-loops__wave { fill: none; stroke: var(--primary); opacity: 0; animation: pds-loops-wave 2.4s cubic-bezier(.22, 1, .36, 1) infinite; }
.pds-loops .pds-loops__dots { opacity: 0; animation: pds-loops-dots 2.4s cubic-bezier(.22, 1, .36, 1) infinite; }
.pds-loops .pds-loops__dots circle { fill: var(--gold); }
.pds-loops .pds-loops__dots circle:nth-child(even) { fill: var(--accent); }
.pds-loops.is-paused .pds-loops__art * { animation-play-state: paused; }
/* controls */
.pds-loops .pds-loops__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.pds-loops .pds-loops__picks { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-loops .pds-loops__pick { margin: 0; padding: .42rem .8rem; border: 0; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 700;
  color: var(--ink-muted); background: transparent; cursor: pointer; transition: color .25s, background .25s, box-shadow .25s; }
.pds-loops .pds-loops__pick:hover { color: var(--ink); }
.pds-loops .pds-loops__pick[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-loops .pds-loops__play { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .95rem; border: 0; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary); cursor: pointer;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.pds-loops .pds-loops__play:active { transform: scale(.97); }
.pds-loops .pds-loops__icon { display: block; width: 9px; height: 11px; border-inline: 3px solid currentColor; }
.pds-loops.is-paused .pds-loops__icon { width: 0; height: 0; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent currentColor; }
.pds-loops :is(.pds-loops__pick, .pds-loops__play):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-loops .pds-loops__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pds-loops .pds-loops__facts li { padding: .3rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 600; color: var(--ink-muted);
  background: var(--surface); border: 1px solid var(--border); }
.pds-loops .pds-loops__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes pds-loops-bob { 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes pds-loops-flicker { from { transform: scale(.86, .72); } to { transform: scale(1.06, 1.12); } }
@keyframes pds-loops-streak { from { transform: translateY(-40px); opacity: 0; } 25%, 70% { opacity: 1; } to { transform: translateY(60px); opacity: 0; } }
@keyframes pds-loops-puff { from { transform: scale(.3); opacity: .9; } to { transform: translateY(14px) scale(1.5); opacity: 0; } }
@keyframes pds-loops-fade { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pds-loops-pop { 0% { transform: scale(0); } 22%, 100% { transform: scale(1); } }
@keyframes pds-loops-ring { 0% { stroke-dashoffset: 101; } 30%, 100% { stroke-dashoffset: 0; } }
@keyframes pds-loops-tick { 0%, 28% { stroke-dashoffset: 101; } 48%, 100% { stroke-dashoffset: 0; } }
@keyframes pds-loops-burst { 0%, 44% { stroke-dashoffset: 101; } 66%, 100% { stroke-dashoffset: -101; } }
@keyframes pds-loops-heart { 0%, 6% { transform: scale(.6); fill: var(--surface); } 16% { transform: scale(1.22); fill: var(--primary); }
  26% { transform: scale(.94); } 36%, 82% { transform: scale(1); fill: var(--primary); } 100% { transform: scale(.6); fill: var(--surface); } }
@keyframes pds-loops-wave { 0%, 8% { transform: scale(.3); opacity: 0; stroke-width: 16; } 12% { opacity: .8; } 42%, 100% { transform: scale(1.4); opacity: 0; stroke-width: 1; } }
@keyframes pds-loops-dots { 0%, 10% { transform: scale(.55); opacity: 0; } 18% { opacity: 1; } 46%, 100% { transform: scale(1.18); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pds-loops .pds-loops__art *, .pds-loops .pds-loops__pick { animation: none !important; transition: none !important; }
}

/* ---------- PDS-44 Silk Scroll ---------- */
.pds-silk, .pds-silk *, .pds-silk *::before { box-sizing: border-box; }
.pds-silk { --pds-silk-ease: cubic-bezier(.22, 1, .36, 1); --pds-silk-deep: color-mix(in srgb, var(--primary) 62%, #0a0f1c);
  position: relative; container-type: inline-size; width: min(100%, 520px); margin: 0 auto; overflow: hidden;
  text-align: start; line-height: 1.5; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-silk .pds-silk__chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.1rem; padding: 0 .8rem;
  background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-silk .pds-silk__lights { display: flex; gap: .3rem; }
.pds-silk .pds-silk__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pds-silk .pds-silk__url { padding: .1rem .9rem; border-radius: 999px; font: 500 .66rem/1.5 var(--font-mono, ui-monospace, monospace);
  color: var(--ink-faint); background: var(--surface); }
.pds-silk .pds-silk__win { position: relative; height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pds-silk .pds-silk__win:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
@supports selector(:has(a)) {
  .pds-silk .pds-silk__win:focus-visible { outline: none; }
  .pds-silk:has(.pds-silk__win:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
}
.pds-silk .pds-silk__nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; height: 3rem; padding: 0 .5rem 0 1rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--border); }
.pds-silk .pds-silk__logo { font-family: var(--font-display, Georgia, serif); font-size: 1rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.pds-silk .pds-silk__logo b { margin-left: .2em; font-weight: inherit; color: var(--primary); }
.pds-silk .pds-silk__links { display: flex; margin-left: auto; }
.pds-silk .pds-silk__link { position: relative; padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--ink-muted); transition: color .3s ease; }
.pds-silk .pds-silk__link::before { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .15rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform .5s var(--pds-silk-ease); }
.pds-silk .pds-silk__link:hover, .pds-silk .pds-silk__link[aria-current="location"] { color: var(--ink); }
.pds-silk .pds-silk__link[aria-current="location"]::before { transform: scaleX(1); }
.pds-silk .pds-silk__link:focus-visible, .pds-silk .pds-silk__top:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-silk .pds-silk__sec { padding: 1.3rem 1.2rem 1.6rem; }
.pds-silk .pds-silk__sec + .pds-silk__sec { border-top: 1px solid var(--border); }
.pds-silk .pds-silk__kicker { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.pds-silk .pds-silk__title { margin: .3rem 0 .4rem; font-family: var(--font-display, Georgia, serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.pds-silk .pds-silk__text { margin: 0; max-width: 36ch; font-size: .84rem; color: var(--ink-muted); }
.pds-silk .pds-silk__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
.pds-silk .pds-silk__tiles i { height: 72px; border-radius: 12px; background: linear-gradient(150deg, var(--primary-tint), color-mix(in srgb, var(--accent) 45%, var(--surface))); }
.pds-silk .pds-silk__tiles i:nth-child(2) { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 40%, var(--surface)), var(--primary-tint)); }
.pds-silk .pds-silk__tiles i:nth-child(3) { background: linear-gradient(150deg, var(--pds-silk-deep), var(--primary)); }
.pds-silk .pds-silk__tiles i:nth-child(4) { background: linear-gradient(150deg, var(--primary-tint), color-mix(in srgb, var(--primary) 35%, var(--surface))); }
.pds-silk .pds-silk__cards { display: grid; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.pds-silk .pds-silk__cards li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .7rem .9rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); font-size: .84rem; }
.pds-silk .pds-silk__cards b { color: var(--ink); }
.pds-silk .pds-silk__cards span { font-size: .74rem; text-align: end; color: var(--ink-faint); }
.pds-silk .pds-silk__sec--end { min-height: 272px; background: radial-gradient(120% 80% at 100% 0%, var(--primary-tint), transparent 70%); }
.pds-silk .pds-silk__top { margin-top: 1rem; padding: .6rem 1.05rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; color: #fff; background: var(--pds-silk-deep);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--ink) 60%, transparent); transition: transform .25s var(--pds-silk-ease); }
.pds-silk .pds-silk__top:hover { transform: translateY(-1px); }
.pds-silk .pds-silk__hint { position: absolute; left: 50%; bottom: .8rem; z-index: 3; translate: -50% 0; padding: .35rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: opacity .4s ease, translate .5s var(--pds-silk-ease); }
.pds-silk.is-scrolled .pds-silk__hint { opacity: 0; translate: -50% .5rem; }
.is-playing .pds-silk .pds-silk__hint { animation: pds-silk-nudge 1.2s var(--pds-silk-ease) 2; }
@keyframes pds-silk-nudge { 50% { translate: -50% -.35rem; } }
.pds-silk .pds-silk__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 360px) {
  .pds-silk .pds-silk__logo { display: none; }
  .pds-silk .pds-silk__links { margin-inline: auto; }
  .pds-silk .pds-silk__link { padding-inline: .5rem; }
}

/* ---------- PDS-45 Page Turn ---------- */
.pds-turn, .pds-turn *, .pds-turn *::before { box-sizing: border-box; }
.pds-turn { --pds-turn-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-turn-deep: color-mix(in srgb, var(--primary) 62%, #0a0f1c); --pds-turn-deep2: color-mix(in srgb, var(--accent) 52%, #0a0f1c);
  position: relative; container-type: inline-size; width: min(100%, 520px); margin: 0 auto; overflow: hidden;
  text-align: start; line-height: 1.5; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-turn .pds-turn__chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.1rem; padding: 0 .8rem;
  background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-turn .pds-turn__lights { display: flex; gap: .3rem; }
.pds-turn .pds-turn__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pds-turn .pds-turn__url { padding: .1rem .9rem; border-radius: 999px; font: 500 .66rem/1.5 var(--font-mono, ui-monospace, monospace);
  color: var(--ink-faint); background: var(--surface); }
.pds-turn .pds-turn__count { justify-self: end; font: 600 .68rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; color: var(--ink-muted); }
.pds-turn .pds-turn__win { position: relative; height: 320px; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none; }
.pds-turn .pds-turn__win::-webkit-scrollbar { display: none; }
.pds-turn .pds-turn__win:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
@supports selector(:has(a)) {
  .pds-turn .pds-turn__win:focus-visible { outline: none; }
  .pds-turn:has(.pds-turn__win:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
}
.pds-turn .pds-turn__slide { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; overflow: hidden;
  padding: 1.4rem 3.4rem 1.5rem 1.3rem; scroll-snap-align: start; scroll-snap-stop: always; }
.pds-turn .pds-turn__slide--1 { color: #fff; background: radial-gradient(90% 80% at 92% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%), var(--pds-turn-deep); }
.pds-turn .pds-turn__slide--2 { background: radial-gradient(90% 80% at 92% 0%, var(--primary-tint), transparent 70%), var(--surface); }
.pds-turn .pds-turn__slide--3 { color: #fff; background: radial-gradient(90% 80% at 92% 0%, color-mix(in srgb, var(--gold) 36%, transparent), transparent 70%), var(--pds-turn-deep2); }
.pds-turn .pds-turn__slide--4 { background: radial-gradient(90% 80% at 92% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--surface-sunk); }
.pds-turn .pds-turn__num { font: 600 .68rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pds-turn .pds-turn__title { margin: .55rem 0 .35rem; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.7rem, 8cqi, 2.5rem);
  font-weight: 600; line-height: 1.05; color: inherit; }
.pds-turn .pds-turn__text { margin: 0; max-width: 30ch; font-size: .88rem; opacity: .9; }
:is(.pds-turn .pds-turn__slide--2, .pds-turn .pds-turn__slide--4) .pds-turn__num { color: var(--primary); opacity: 1; }
:is(.pds-turn .pds-turn__slide--2, .pds-turn .pds-turn__slide--4) .pds-turn__text { color: var(--ink-muted); opacity: 1; }
.pds-turn .pds-turn__copy { transition: opacity .6s ease .12s, transform .8s var(--pds-turn-ease) .12s; }
.pds-turn.is-ready .pds-turn__slide:not(.is-on) .pds-turn__copy { opacity: 0; transform: translateY(18px); }
/* a simple line drawing on each page: browser, shop bag, phone, chat bubble */
.pds-turn .pds-turn__art { position: absolute; top: 1.5rem; right: 3.8rem; border: 2px solid currentColor; opacity: .55;
  transform: rotate(-6deg); transition: opacity .7s ease .1s, transform .9s var(--pds-turn-ease) .1s; }
.pds-turn.is-ready .pds-turn__slide:not(.is-on) .pds-turn__art { opacity: 0; transform: translateY(26px) rotate(-16deg) scale(.9); }
.pds-turn .pds-turn__art::before { content: ""; position: absolute; }
.pds-turn .pds-turn__slide--1 .pds-turn__art { width: 132px; height: 92px; border-radius: 12px; }
.pds-turn .pds-turn__slide--1 .pds-turn__art::before { left: 0; right: 0; top: 18px; border-top: 2px solid; }
.pds-turn .pds-turn__slide--2 .pds-turn__art { width: 92px; height: 82px; margin-top: 28px; border-radius: 10px 10px 20px 20px; color: var(--primary); }
.pds-turn .pds-turn__slide--2 .pds-turn__art::before { left: 50%; top: -30px; width: 42px; height: 30px; margin-left: -21px; border: 2px solid; border-bottom: 0; border-radius: 22px 22px 0 0; }
.pds-turn .pds-turn__slide--3 .pds-turn__art { width: 64px; height: 112px; border-radius: 16px; }
.pds-turn .pds-turn__slide--3 .pds-turn__art::before { left: 50%; top: 8px; width: 20px; height: 4px; margin-left: -10px; border-radius: 4px; background: currentColor; }
.pds-turn .pds-turn__slide--4 .pds-turn__art { width: 118px; height: 74px; border-radius: 22px 22px 22px 6px; color: var(--accent-deep); }
.pds-turn .pds-turn__slide--4 .pds-turn__art::before { left: 31px; top: 31px; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 22px 0 currentColor, 44px 0 currentColor; }
.pds-turn .pds-turn__back { margin-top: .9rem; padding: .55rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600; color: #fff; background: var(--pds-turn-deep); transition: transform .25s var(--pds-turn-ease); }
.pds-turn .pds-turn__back:hover { transform: translateY(-1px); }
.pds-turn .pds-turn__back:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* progress dots, outside the scrolling area so they stay put */
.pds-turn .pds-turn__dots { position: absolute; right: .55rem; top: calc(2.1rem + 160px); z-index: 2; translate: 0 -50%; display: grid; padding: .3rem 0;
  border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--ink) 60%, transparent); }
.pds-turn .pds-turn__dot { position: relative; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.pds-turn .pds-turn__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 999px;
  background: var(--ink-faint); transition: height .45s var(--pds-turn-ease), margin .45s var(--pds-turn-ease), background-color .3s ease; }
.pds-turn .pds-turn__dot:hover::before { background: var(--ink); }
.pds-turn .pds-turn__dot[aria-current="step"]::before { height: 18px; margin-top: -9px; background: var(--primary); }
.pds-turn .pds-turn__dot:focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; }
.pds-turn .pds-turn__hint { position: absolute; left: .9rem; top: calc(2.1rem + .9rem); z-index: 2; padding: .3rem .75rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border);
  transition: opacity .4s ease, translate .5s var(--pds-turn-ease); }
.pds-turn.is-scrolled .pds-turn__hint { opacity: 0; translate: 0 -.4rem; }
.is-playing .pds-turn .pds-turn__hint { animation: pds-turn-nudge 1.2s var(--pds-turn-ease) 2; }
@keyframes pds-turn-nudge { 50% { translate: 0 .3rem; } }
.pds-turn .pds-turn__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 400px) {
  .pds-turn .pds-turn__art { top: 3.6rem; right: 3rem; scale: .78; transform-origin: 100% 0; }
}

/* ---------- PDS-46 Sunset Layers ---------- */
.pds-sunset, .pds-sunset *, .pds-sunset *::before { box-sizing: border-box; }
.pds-sunset { --pds-sunset-y: 0; --pds-sunset-p: 0; --pds-sunset-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; container-type: inline-size; width: min(100%, 520px); margin: 0 auto; overflow: hidden;
  text-align: start; line-height: 1.5; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-sunset .pds-sunset__chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.1rem; padding: 0 .8rem;
  background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-sunset .pds-sunset__lights { display: flex; gap: .3rem; }
.pds-sunset .pds-sunset__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pds-sunset .pds-sunset__url { padding: .1rem .9rem; border-radius: 999px; font: 500 .66rem/1.5 var(--font-mono, ui-monospace, monospace);
  color: var(--ink-faint); background: var(--surface); }
.pds-sunset .pds-sunset__win { position: relative; height: 290px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pds-sunset .pds-sunset__win:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
@supports selector(:has(a)) {
  .pds-sunset .pds-sunset__win:focus-visible { outline: none; }
  .pds-sunset:has(.pds-sunset__win:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
}
/* the scene: a sky plus five layers, each pushed down by a different share of the scroll */
.pds-sunset .pds-sunset__hero { position: relative; height: 270px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 24%, var(--surface)), color-mix(in srgb, var(--gold) 28%, var(--surface)) 80%); }
.pds-sunset .pds-sunset__dusk { position: absolute; inset: 0; opacity: calc(var(--pds-sunset-p) * .6);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 30%, #0a0f1c), transparent 85%); }
.pds-sunset .pds-sunset__layer { position: absolute; will-change: transform; }
.pds-sunset .pds-sunset__sun { right: 14%; top: 44px; width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, color-mix(in srgb, var(--gold) 45%, #fff), var(--gold) 72%);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold) 16%, transparent), 0 0 60px 16px color-mix(in srgb, var(--gold) 45%, transparent);
  transform: translate3d(0, calc(var(--pds-sunset-y) * .78px), 0); }
.pds-sunset .pds-sunset__clouds { inset: 0; transform: translate3d(calc(var(--pds-sunset-y) * -.15px), calc(var(--pds-sunset-y) * .58px), 0); }
.pds-sunset .pds-sunset__clouds i { position: absolute; height: 15px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, var(--primary-tint)); }
.pds-sunset .pds-sunset__clouds i::before, .pds-sunset .pds-sunset__clouds i::after { content: ""; position: absolute; bottom: 30%; aspect-ratio: 1; border-radius: 50%; background: inherit; }
.pds-sunset .pds-sunset__clouds i::before { left: 16%; width: 30%; }
.pds-sunset .pds-sunset__clouds i::after { left: 38%; width: 42%; }
.pds-sunset .pds-sunset__clouds i:nth-child(1) { left: 6%; top: 30px; width: 84px; }
.pds-sunset .pds-sunset__clouds i:nth-child(2) { left: 42%; top: 22px; width: 56px; opacity: .8; }
.pds-sunset .pds-sunset__clouds i:nth-child(3) { right: 5%; top: 100px; width: 78px; }
.pds-sunset .pds-sunset__far, .pds-sunset .pds-sunset__near { left: -2%; width: 104%; }
.pds-sunset .pds-sunset__far { bottom: 34px; height: 112px; transform: translate3d(0, calc(var(--pds-sunset-y) * .34px), 0); }
.pds-sunset .pds-sunset__far path { fill: color-mix(in srgb, var(--primary) 42%, var(--surface)); }
.pds-sunset .pds-sunset__near { bottom: -14px; height: 104px; transform: translate3d(0, calc(var(--pds-sunset-y) * .06px), 0); }
.pds-sunset .pds-sunset__near path { fill: color-mix(in srgb, var(--accent) 46%, #0a0f1c); }
.pds-sunset .pds-sunset__title { left: 1.3rem; top: 66px; opacity: calc(1 - var(--pds-sunset-p) * 1.15);
  transform: translate3d(0, calc(var(--pds-sunset-y) * .48px), 0); }
.pds-sunset .pds-sunset__title span { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.pds-sunset .pds-sunset__title h4 { margin: .1rem 0 0; font-family: var(--font-display, Georgia, serif); font-size: clamp(2.1rem, 10cqi, 3rem);
  font-weight: 600; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.pds-sunset.is-flat .pds-sunset__layer { transform: none; }
.pds-sunset.is-flat .pds-sunset__title { opacity: 1; }
.pds-sunset.is-flat .pds-sunset__dusk { opacity: 0; }
.pds-sunset .pds-sunset__hint { position: absolute; left: 50%; bottom: .8rem; z-index: 3; translate: -50% 0; padding: .3rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  transition: opacity .4s ease, translate .5s var(--pds-sunset-ease); }
.pds-sunset.is-scrolled .pds-sunset__hint { opacity: 0; translate: -50% .5rem; }
.is-playing .pds-sunset .pds-sunset__hint { animation: pds-sunset-nudge 1.2s var(--pds-sunset-ease) 2; }
@keyframes pds-sunset-nudge { 50% { translate: -50% -.35rem; } }
.pds-sunset .pds-sunset__page { padding: 1.2rem 1.2rem 1.5rem; }
.pds-sunset .pds-sunset__kicker { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.pds-sunset .pds-sunset__head { margin: .3rem 0 .8rem; font-family: var(--font-display, Georgia, serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.pds-sunset .pds-sunset__list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.pds-sunset .pds-sunset__list li { display: flex; gap: .7rem; align-items: baseline; padding: .65rem .8rem; border-radius: 12px;
  background: var(--surface-sunk); border: 1px solid var(--border); font-size: .82rem; color: var(--ink-muted); }
.pds-sunset .pds-sunset__list b { flex: none; font: 600 .7rem/1 var(--font-mono, ui-monospace, monospace); color: var(--primary); }
.pds-sunset .pds-sunset__bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-top: 1px solid var(--border); background: var(--surface-sunk); }
.pds-sunset .pds-sunset__calm { display: inline-flex; flex: none; align-items: center; gap: .5rem; padding: .3rem .75rem .3rem .35rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 600; color: var(--ink); }
.pds-sunset .pds-sunset__calm:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-sunset .pds-sunset__knob { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--border-strong); transition: background-color .3s ease; }
.pds-sunset .pds-sunset__knob::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 35%, transparent); transition: translate .35s var(--pds-sunset-ease); }
.pds-sunset .pds-sunset__calm[aria-checked="true"] .pds-sunset__knob { background: var(--primary); }
.pds-sunset .pds-sunset__calm[aria-checked="true"] .pds-sunset__knob::before { translate: 12px 0; }
.pds-sunset .pds-sunset__note { min-width: 0; font-size: .74rem; line-height: 1.35; color: var(--ink-muted); }

/* ---------- PDS-47 Launch Story ---------- */
.pds-launch, .pds-launch *, .pds-launch *::before { box-sizing: border-box; }
.pds-launch { --pds-launch-p: 0; --pds-launch-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; container-type: inline-size; width: min(100%, 520px); margin: 0 auto; overflow: hidden;
  text-align: start; line-height: 1.5; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-launch .pds-launch__chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.1rem; padding: 0 .8rem;
  background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-launch .pds-launch__lights { display: flex; gap: .3rem; }
.pds-launch .pds-launch__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pds-launch .pds-launch__url { padding: .1rem .9rem; border-radius: 999px; font: 500 .66rem/1.5 var(--font-mono, ui-monospace, monospace);
  color: var(--ink-faint); background: var(--surface); }
.pds-launch .pds-launch__win { position: relative; height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pds-launch .pds-launch__win:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
@supports selector(:has(a)) {
  .pds-launch .pds-launch__win:focus-visible { outline: none; }
  .pds-launch:has(.pds-launch__win:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
}
.pds-launch .pds-launch__grid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
/* the pinned scene */
.pds-launch .pds-launch__pin { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; height: 320px; background: radial-gradient(80% 60% at 50% 60%, var(--primary-tint), transparent 70%); }
.pds-launch .pds-launch__meta { display: flex; align-items: center; gap: .55rem; }
.pds-launch .pds-launch__ring { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.pds-launch .pds-launch__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pds-launch .pds-launch__ring circle { fill: none; stroke: var(--border); stroke-width: 3.5; }
.pds-launch .pds-launch__ring .pds-launch__arc { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (4 + var(--pds-launch-p) * 96)); transition: stroke-dashoffset .2s linear; }
.pds-launch .pds-launch__n { position: relative; font: 700 .8rem/1 var(--font-mono, ui-monospace, monospace); color: var(--ink); }
.pds-launch .pds-launch__label { font-size: .74rem; font-weight: 600; white-space: nowrap; color: var(--ink-muted); }
.pds-launch .pds-launch__phone { position: relative; flex: none; width: 10.4em; height: 18.4em; padding: .55em; font-size: 10px; border-radius: 1.9em;
  background: color-mix(in srgb, var(--ink) 90%, var(--primary)); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.pds-launch .pds-launch__phone::before { content: ""; position: absolute; left: 50%; top: 1em; z-index: 2; width: 3em; height: .8em; margin-left: -1.5em;
  border-radius: 1em; background: color-mix(in srgb, var(--ink) 90%, var(--primary)); }
.pds-launch .pds-launch__screen { position: absolute; inset: .55em; display: flex; flex-direction: column; gap: .7em; padding: 2.4em .9em .9em;
  overflow: hidden; border-radius: 1.45em; background: var(--surface); font-size: 1em; line-height: 1.2; color: var(--ink-muted);
  opacity: 0; transform: translateY(1.4em) scale(.96); transition: opacity .45s ease, transform .65s var(--pds-launch-ease); }
.pds-launch .pds-launch__screen > b { font-family: var(--font-display, Georgia, serif); font-size: 1.6em; font-weight: 600; color: var(--ink); }
:is(.pds-launch [data-step="1"] .pds-launch__screen--1, .pds-launch [data-step="2"] .pds-launch__screen--2,
  .pds-launch [data-step="3"] .pds-launch__screen--3, .pds-launch [data-step="4"] .pds-launch__screen--4) { opacity: 1; transform: none; }
/* 1 Plan: a checklist that ticks itself */
.pds-launch .pds-launch__row { display: flex; align-items: center; gap: .6em; padding: .6em; border-radius: .7em; background: var(--surface-sunk); font-size: 1.05em; }
.pds-launch .pds-launch__row i { width: 1.2em; height: 1.2em; border-radius: 50%; border: .15em solid var(--border-strong); transition: background-color .3s ease, border-color .3s ease; }
.pds-launch [data-step="1"] .pds-launch__row i { background: var(--accent); border-color: var(--accent); }
.pds-launch [data-step="1"] .pds-launch__row:nth-child(3) i { transition-delay: .2s; }
.pds-launch [data-step="1"] .pds-launch__row:nth-child(4) i { transition-delay: .4s; }
/* 2 Design: colours and a page layout */
.pds-launch .pds-launch__swatch { display: flex; gap: .5em; }
.pds-launch .pds-launch__swatch i { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--primary); }
.pds-launch .pds-launch__swatch i:nth-child(2) { background: var(--accent); }
.pds-launch .pds-launch__swatch i:nth-child(3) { background: var(--gold); }
.pds-launch .pds-launch__wire { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.pds-launch .pds-launch__wire i { height: 2.8em; border-radius: .6em; background: var(--surface-sunk); border: .1em dashed var(--border-strong); }
.pds-launch .pds-launch__wire i:first-child { grid-column: 1 / -1; height: 4.4em; background: var(--primary-tint); }
/* 3 Build: lines of code and a loading bar */
.pds-launch .pds-launch__code { display: grid; gap: .55em; }
.pds-launch .pds-launch__code i { height: .6em; border-radius: .3em; background: var(--primary); width: 70%; }
.pds-launch .pds-launch__code i:nth-child(2) { width: 55%; margin-left: 1em; background: var(--accent); }
.pds-launch .pds-launch__code i:nth-child(3) { width: 62%; margin-left: 1em; background: var(--gold); }
.pds-launch .pds-launch__code i:nth-child(4) { width: 40%; margin-left: 2em; background: var(--ink-faint); }
.pds-launch .pds-launch__code i:nth-child(5) { width: 30%; }
.pds-launch .pds-launch__load { height: .7em; margin-top: auto; border-radius: 1em; overflow: hidden; background: var(--surface-sunk); }
.pds-launch .pds-launch__load i { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.4s var(--pds-launch-ease) .2s; }
.pds-launch [data-step="3"] .pds-launch__load i, .pds-launch [data-step="4"] .pds-launch__load i { width: 100%; }
/* 4 Launch: live badge and a big tick */
.pds-launch .pds-launch__screen--4 { align-items: center; justify-content: center; padding-top: 1.6em; text-align: center; }
.pds-launch .pds-launch__live { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 1em; font-size: 1em; font-weight: 700;
  color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pds-launch .pds-launch__live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 .25em color-mix(in srgb, var(--accent) 30%, transparent); }
.pds-launch .pds-launch__tick { position: relative; width: 5em; height: 5em; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 1em 2em -1em color-mix(in srgb, var(--primary) 80%, transparent); transform: scale(.6); transition: transform .7s var(--pds-launch-ease) .15s; }
.pds-launch .pds-launch__tick::before { content: ""; position: absolute; left: 1.75em; top: 1.2em; width: 1.3em; height: 2.2em;
  border: solid var(--surface); border-width: 0 .4em .4em 0; transform: rotate(40deg); }
.pds-launch [data-step="4"] .pds-launch__tick { transform: scale(1); }
.pds-launch .pds-launch__screen--4 > b { font-size: 1.4em; }
/* the story that scrolls past */
.pds-launch .pds-launch__steps { margin: 0; padding: 116px 1.1rem 136px .4rem; list-style: none; }
.pds-launch .pds-launch__step { min-height: 180px; opacity: .4; transform: translateY(8px); transition: opacity .5s ease, transform .7s var(--pds-launch-ease); }
.pds-launch .pds-launch__step.is-on { opacity: 1; transform: none; }
.pds-launch .pds-launch__num { font: 600 .7rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; color: var(--primary); }
.pds-launch .pds-launch__step h5 { margin: .4rem 0 .35rem; font-family: var(--font-display, Georgia, serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.pds-launch .pds-launch__step p { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--ink-muted); }
.pds-launch .pds-launch__hint { position: absolute; left: 73%; bottom: .8rem; z-index: 3; translate: -50% 0; padding: .3rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  transition: opacity .4s ease, translate .5s var(--pds-launch-ease); }
.pds-launch.is-scrolled .pds-launch__hint { opacity: 0; translate: -50% .5rem; }
.is-playing .pds-launch .pds-launch__hint { animation: pds-launch-nudge 1.2s var(--pds-launch-ease) 2; }
@keyframes pds-launch-nudge { 50% { translate: -50% -.35rem; } }
/* narrow boxes get the stacked phone version: a slim pinned strip on top, the steps below */
@container (max-width: 400px) {
  .pds-launch .pds-launch__grid { grid-template-columns: minmax(0, 1fr); }
  .pds-launch .pds-launch__pin { z-index: 2; flex-direction: row; justify-content: space-between; height: auto; padding: .6rem 1rem;
    background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .pds-launch .pds-launch__meta { flex-direction: column; align-items: flex-start; }
  .pds-launch .pds-launch__phone { font-size: 5.4px; }
  .pds-launch .pds-launch__steps { padding: 1.2rem 1.1rem 150px; }
  .pds-launch .pds-launch__step { min-height: 160px; }
  .pds-launch .pds-launch__hint { left: 50%; }
}

/* ---------- PDS-48 Magnet Glow ---------- */
.pds-magnet, .pds-magnet *, .pds-magnet *::before { box-sizing: border-box; }
.pds-magnet { --pds-magnet-x: 50%; --pds-magnet-y: 40%; --pds-magnet-lx: 50%; --pds-magnet-ly: 50%; --pds-magnet-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-magnet-deep: color-mix(in srgb, var(--primary) 62%, #0a0f1c);
  position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(100%, 520px); height: 320px; margin: 0 auto; padding: 2.6rem 1.2rem 1.6rem; overflow: hidden; text-align: center; line-height: 1.4;
  color: var(--ink); border: 1px solid var(--border); border-radius: 20px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary-tint) 80%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ink) 55%, transparent);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
/* faint dot grid everywhere, a brighter one only around the pointer */
.pds-magnet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.6px); background-size: 18px 18px; }
.pds-magnet .pds-magnet__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--primary) 1.3px, transparent 1.9px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120px circle at var(--pds-magnet-x) var(--pds-magnet-y), var(--ink), transparent);
  mask-image: radial-gradient(120px circle at var(--pds-magnet-x) var(--pds-magnet-y), var(--ink), transparent); }
.pds-magnet .pds-magnet__spot { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(230px circle at var(--pds-magnet-x) var(--pds-magnet-y), color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%); }
.pds-magnet .pds-magnet__chip { position: absolute; top: .8rem; left: .8rem; display: inline-flex; align-items: center; gap: .45rem; max-width: calc(100% - 1.6rem);
  padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-muted); background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); }
.pds-magnet .pds-magnet__chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pds-magnet.is-auto .pds-magnet__chip::before { background: var(--gold); animation: pds-magnet-blink 1.6s ease-in-out infinite; }
@keyframes pds-magnet-blink { 50% { opacity: .3; } }
/* the title leans toward the pointer and lights up where it is */
.pds-magnet .pds-magnet__title { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: clamp(2.5rem, 14cqi, 4rem); font-weight: 600;
  line-height: 1.05; letter-spacing: -.02em; color: var(--ink);
  background: radial-gradient(circle at var(--pds-magnet-lx) var(--pds-magnet-ly), var(--primary), color-mix(in srgb, var(--accent) 55%, var(--primary)) 50px, var(--ink) 150px);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: perspective(700px) translate(var(--pds-magnet-tx, 0px), var(--pds-magnet-ty, 0px)) rotateX(var(--pds-magnet-rx, 0deg)) rotateY(var(--pds-magnet-ry, 0deg)); }
.pds-magnet .pds-magnet__sub { margin: .5rem 0 1.3rem; font-size: .82rem; color: var(--ink-muted); }
/* a magnetic button */
.pds-magnet .pds-magnet__btn { position: relative; padding: .8rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; color: #fff; background: var(--pds-magnet-deep);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
  transform: translate(var(--pds-magnet-bx, 0px), var(--pds-magnet-by, 0px)); transition: box-shadow .35s ease; }
.pds-magnet .pds-magnet__btn span { display: inline-block; transform: translate(calc(var(--pds-magnet-bx, 0px) * .4), calc(var(--pds-magnet-by, 0px) * .4)); }
:is(.pds-magnet .pds-magnet__btn:hover, .pds-magnet .pds-magnet__btn:focus-visible, .pds-magnet.is-hot .pds-magnet__btn, .is-playing .pds-magnet .pds-magnet__btn) {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 20%, transparent), 0 18px 36px -12px color-mix(in srgb, var(--primary) 80%, transparent); }
.pds-magnet .pds-magnet__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* the custom cursor (ring) and the trailing dot */
.pds-magnet .pds-magnet__ring, .pds-magnet .pds-magnet__dot { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; border-radius: 50%; opacity: 0; }
.pds-magnet .pds-magnet__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent);
  transition: opacity .3s ease, scale .4s var(--pds-magnet-ease), background-color .3s ease, border-color .3s ease; }
.pds-magnet .pds-magnet__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--primary); box-shadow: 0 0 12px var(--primary); transition: opacity .3s ease; }
.pds-magnet.is-live .pds-magnet__ring, .pds-magnet.is-live .pds-magnet__dot { opacity: 1; }
.pds-magnet.is-hot .pds-magnet__ring { scale: 1.9; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
@media (pointer: fine) { .pds-magnet.is-ready, .pds-magnet.is-ready .pds-magnet__btn { cursor: none; } }
.pds-magnet .pds-magnet__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

