/* 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-28 Aurora Card ---------- */
/* ---------- PDS-28 Aurora Card ---------- */
.pds-aurora, .pds-aurora *, .pds-aurora::before, .pds-aurora *::before { box-sizing: border-box; }
.pds-aurora { position: relative; isolation: isolate; overflow: hidden; display: block; width: min(100%, 220px); height: 290px; margin: 0 auto;
  border-radius: 16px; color: #fff; text-align: start; background: color-mix(in srgb, var(--primary) 18%, #0d0f16);
  box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--primary) 70%, transparent); transition: box-shadow .3s ease; }
/* the hidden light beam: a tall bar that spins behind the glass */
.pds-aurora::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 0; width: 80px; height: 360px;
  translate: -50% -50%; rotate: 0deg; opacity: 0; pointer-events: none;
  background: linear-gradient(var(--primary) 16%, color-mix(in srgb, var(--gold) 75%, var(--accent)) 50%, var(--accent) 84%);
  animation: pds-aurora-spin 8s linear infinite paused; transition: opacity .3s ease; }
/* frosted glass panel, inset 2px so the beam glows through the gap */
.pds-aurora .pds-aurora__panel { position: absolute; inset: 2px; z-index: 1; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.35rem 1.25rem 1.15rem; border-radius: 14px;
  background: color-mix(in srgb, color-mix(in srgb, var(--primary) 12%, #0b0d14) 72%, transparent);
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent); }
.pds-aurora .pds-aurora__panel::before { content: ""; position: absolute; top: -56px; right: -48px; width: 160px; height: 160px;
  border-radius: 50%; pointer-events: none; background: color-mix(in srgb, var(--accent) 60%, var(--primary));
  filter: blur(44px); opacity: .16; transition: opacity .3s ease; }
.pds-aurora .pds-aurora__panel > * { position: relative; margin: 0; }
.pds-aurora .pds-aurora__eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--primary) 22%, #fff); }
.pds-aurora .pds-aurora__eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.pds-aurora .pds-aurora__price { margin-top: auto; font-family: var(--font-display, Georgia, serif); font-size: 2.35rem;
  line-height: 1; letter-spacing: -.01em; color: #fff; }
.pds-aurora .pds-aurora__from { display: block; margin-bottom: .3rem; font-size: .95rem; font-style: italic;
  color: color-mix(in srgb, #fff 70%, transparent); }
.pds-aurora .pds-aurora__line { margin-top: .55rem; font-size: .86rem; line-height: 1.45; color: color-mix(in srgb, #fff 74%, transparent); }
.pds-aurora .pds-aurora__cta { display: flex; align-items: center; gap: .4rem; margin-top: 1.05rem; padding-top: .85rem;
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: color-mix(in srgb, var(--primary) 28%, #fff); transition: color .3s ease; }
.pds-aurora .pds-aurora__link { text-decoration: underline 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, #fff 35%, transparent); transition: text-decoration-color .3s ease; }
.pds-aurora .pds-aurora__arrow { display: inline-block; transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
/* hover, keyboard focus and the phone play-through all wake the beam */
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) { box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--primary) 85%, transparent); }
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora)::before { opacity: 1; animation-play-state: running; }
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) .pds-aurora__panel::before { opacity: .5; }
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) .pds-aurora__cta { color: #fff; }
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) .pds-aurora__link { text-decoration-color: var(--gold); }
:is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) .pds-aurora__arrow { translate: 4px 0; }
.pds-aurora:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pds-aurora .pds-aurora__panel { background: color-mix(in srgb, var(--primary) 12%, #0b0d14); }
}
@keyframes pds-aurora-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .pds-aurora::before { animation: none; rotate: 40deg; }
  .pds-aurora .pds-aurora__arrow { transition: none; }
  :is(.pds-aurora:hover, .pds-aurora:focus-visible, .is-playing .pds-aurora) .pds-aurora__arrow { translate: none; }
}

/* ---------- PDS-61 Flip Trio ---------- */
.pds-fliptrio, .pds-fliptrio * { box-sizing: border-box; }
.pds-fliptrio { container: pds-fliptrio / inline-size; width: min(100%, 520px); margin: 0 auto; color: var(--ink); }
.pds-fliptrio__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pds-fliptrio__card { height: 248px; }
.pds-fliptrio__btn { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 20px; background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-fliptrio__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* the card itself turns over; perspective lives in the transform so the button stays flat */
.pds-fliptrio__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: perspective(1100px) rotateY(0deg); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.pds-fliptrio__card.is-flipped .pds-fliptrio__inner, .is-playing .pds-fliptrio__card .pds-fliptrio__inner { transform: perspective(1100px) rotateY(180deg); }
.is-playing .pds-fliptrio__card:nth-child(2) .pds-fliptrio__inner { transition-delay: .12s; }
.is-playing .pds-fliptrio__card:nth-child(3) .pds-fliptrio__inner { transition-delay: .24s; }
.pds-fliptrio__face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .4rem; padding: 1rem .95rem .95rem;
  overflow: hidden; border-radius: 20px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pds-fliptrio__front { transform: rotateY(0deg); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 40%, color-mix(in srgb, var(--primary-tint) 70%, var(--surface)));
  box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--ink) 55%, transparent); }
.pds-fliptrio__back { transform: rotateY(180deg); color: #fff;
  background: radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    linear-gradient(155deg, color-mix(in srgb, var(--primary) 56%, #0b1020), color-mix(in srgb, var(--primary-deep) 24%, #070a14));
  box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent); }
.pds-fliptrio__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 85%, transparent); }
.pds-fliptrio__card.is-app .pds-fliptrio__icon { background: linear-gradient(135deg, var(--primary-deep), var(--accent-deep)); }
.pds-fliptrio__card.is-ai .pds-fliptrio__icon { background: linear-gradient(135deg, var(--accent-deep), var(--primary-deep)); }
.pds-fliptrio__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pds-fliptrio__title { margin-top: .45rem; font-family: var(--font-display, Georgia, serif); font-size: 1.18rem; font-weight: 600; line-height: 1.1; }
.pds-fliptrio__line { font-size: .78rem; line-height: 1.45; color: var(--ink-muted); }
.pds-fliptrio__hint { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto;
  font: 600 .64rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pds-fliptrio__hint::before { content: "\21BB"; font-size: .95rem; line-height: 1; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.pds-fliptrio__from { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, #fff 74%, transparent); }
.pds-fliptrio__price { font-family: var(--font-display, Georgia, serif); font-size: 1.85rem; line-height: 1; letter-spacing: -.01em; }
.pds-fliptrio__ticks { display: grid; gap: .35rem; margin-top: .5rem; font-size: .74rem; line-height: 1.35; color: color-mix(in srgb, #fff 88%, transparent); }
.pds-fliptrio__ticks span { display: flex; gap: .4rem; }
.pds-fliptrio__ticks span::before { content: "\2713"; flex: none; font-weight: 700; color: color-mix(in srgb, var(--gold) 55%, #fff); }
.pds-fliptrio__back .pds-fliptrio__hint { color: color-mix(in srgb, #fff 82%, transparent); }
.pds-fliptrio__back .pds-fliptrio__hint::before { content: "\21BA"; }
.pds-fliptrio__note { margin: .95rem 0 0; text-align: center; font-size: .74rem; line-height: 1.45; color: var(--ink-muted); }
/* narrow boxes (phones): the three cards stack as wide strips */
@container pds-fliptrio (max-width: 439px) {
  .pds-fliptrio__cards { grid-template-columns: 1fr; gap: 10px; }
  .pds-fliptrio__card { height: 108px; }
  .pds-fliptrio__face { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: .85rem; row-gap: .2rem; padding: .85rem .95rem; }
  .pds-fliptrio__icon { grid-row: 1 / 4; width: 40px; height: 40px; }
  .pds-fliptrio__title { margin: 0; font-size: 1.05rem; }
  .pds-fliptrio__line { font-size: .74rem; }
  .pds-fliptrio__hint { align-self: end; }
  .pds-fliptrio__back { grid-template-rows: auto auto 1fr; column-gap: 1rem; }
  .pds-fliptrio__price { font-size: 1.55rem; }
  .pds-fliptrio__back .pds-fliptrio__ticks { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
  .pds-fliptrio__back .pds-fliptrio__hint { grid-column: 1; grid-row: 3; }
}

/* ---------- PDS-62 Glare Tilt ---------- */
@property --pds-tg-x { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pds-tg-y { syntax: "<number>"; inherits: true; initial-value: 0; }
.pds-tiltglare, .pds-tiltglare * { box-sizing: border-box; }
.pds-tiltglare { --pds-tg-max: 13deg; --pds-tg-pop: 1; position: relative; display: grid; justify-items: center; gap: .9rem;
  width: min(100%, 320px); margin: 0 auto; padding: 0; color: var(--ink); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pds-tiltglare.is-calm { --pds-tg-max: 3deg; --pds-tg-pop: 0; }
/* the card leans toward the pointer; its layers sit at different depths */
.pds-tiltglare__card { position: relative; display: block; width: min(100%, 232px); padding: 8px; border-radius: 22px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); transform-style: preserve-3d;
  transform: perspective(900px) rotateX(calc(var(--pds-tg-y, 0) * var(--pds-tg-max) * -1)) rotateY(calc(var(--pds-tg-x, 0) * var(--pds-tg-max))) scale(var(--pds-tg-s, 1));
  box-shadow: calc(var(--pds-tg-x, 0) * -18px) calc(var(--pds-tg-y, 0) * -18px + 26px) 46px -24px color-mix(in srgb, color-mix(in srgb, var(--primary) 25%, #000) 55%, transparent);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), box-shadow .9s cubic-bezier(.22, 1, .36, 1); }
.pds-tiltglare.is-tilting .pds-tiltglare__card { --pds-tg-s: 1.03; transition-duration: .18s; }
.pds-tiltglare.is-calm .pds-tiltglare__card { --pds-tg-s: 1; }
.pds-tiltglare__card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.pds-tiltglare__card:focus-visible:not(:hover) { --pds-tg-x: .5; --pds-tg-y: -.4; --pds-tg-gx: .5; --pds-tg-gy: -.4; }
.pds-tiltglare__art { height: 150px; border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gold) 52%, transparent), transparent 46%),
    linear-gradient(165deg, color-mix(in srgb, var(--primary) 52%, #0b1020), color-mix(in srgb, var(--accent) 26%, #070a14)); }
.pds-tiltglare__jar { position: absolute; top: 18px; left: calc(50% - 52px); width: 104px; height: 121px; overflow: visible;
  transform: translateZ(calc(var(--pds-tg-pop) * 44px)); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.pds-tiltglare__shade { fill: color-mix(in srgb, color-mix(in srgb, var(--primary) 20%, #000) 45%, transparent); }
.pds-tiltglare__glass { fill: color-mix(in srgb, #fff 14%, transparent); stroke: color-mix(in srgb, #fff 62%, transparent); stroke-width: 1.5; }
.pds-tiltglare__wax { fill: color-mix(in srgb, var(--gold) 22%, #fff7ec); }
.pds-tiltglare__label { fill: color-mix(in srgb, var(--primary-deep) 55%, #0b1020); }
.pds-tiltglare__ltext { font-family: var(--font-mono, ui-monospace, monospace); font-size: 6.5px; font-weight: 600; letter-spacing: .8px;
  text-anchor: middle; fill: color-mix(in srgb, var(--gold) 45%, #fff); }
.pds-tiltglare__wick { fill: none; stroke: color-mix(in srgb, var(--primary) 15%, #1b1b1b); stroke-width: 2; stroke-linecap: round; }
.pds-tiltglare__flame { fill: color-mix(in srgb, var(--gold) 60%, #fff); transform-box: fill-box; transform-origin: 50% 100%;
  animation: pds-tiltglare-flicker 2.4s ease-in-out infinite; }
.pds-tiltglare__body { position: relative; display: block; padding: .85rem .8rem .7rem;
  transform: translateZ(calc(var(--pds-tg-pop) * 16px)); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.pds-tiltglare__chip { display: inline-block; padding: .22rem .5rem; border-radius: 999px; font: 600 .58rem/1.2 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.pds-tiltglare__name { margin: .5rem 0 .15rem; font-family: var(--font-display, Georgia, serif); font-size: 1.12rem; font-weight: 600; line-height: 1.15; }
.pds-tiltglare__meta { margin: 0; font-size: .72rem; line-height: 1.4; color: var(--ink-muted); }
.pds-tiltglare__row { display: flex; align-items: center; justify-content: space-between; margin: .65rem 0 0; }
.pds-tiltglare__price { font-family: var(--font-display, Georgia, serif); font-size: 1.3rem; font-weight: 600; }
.pds-tiltglare__bag { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.pds-tiltglare__bag svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the soft light that follows the pointer across the card */
.pds-tiltglare__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transform: translateZ(1px);
  background: radial-gradient(circle at calc(50% + var(--pds-tg-gx, var(--pds-tg-x, 0)) * 55%) calc(50% + var(--pds-tg-gy, var(--pds-tg-y, 0)) * 55%),
    color-mix(in srgb, #fff 42%, transparent), color-mix(in srgb, #fff 6%, transparent) 36%, transparent 60%);
  transition: opacity .5s ease; }
:is(.pds-tiltglare.is-tilting, .is-playing .pds-tiltglare) .pds-tiltglare__glare, .pds-tiltglare__card:focus-visible .pds-tiltglare__glare { opacity: 1; }
.pds-tiltglare.is-calm.is-tilting .pds-tiltglare__glare { opacity: .55; }
.pds-tiltglare__bar { display: grid; justify-items: center; gap: .45rem; }
.pds-tiltglare__calm { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .4rem .85rem .4rem .45rem; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--ink) 40%, transparent); }
.pds-tiltglare__calm:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-tiltglare__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); transition: background .3s ease; }
.pds-tiltglare__track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-muted); transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .3s ease; }
.pds-tiltglare__calm[aria-checked="true"] .pds-tiltglare__track { background: var(--primary); }
.pds-tiltglare__calm[aria-checked="true"] .pds-tiltglare__track::before { background: var(--bg); transform: translateX(14px); }
.pds-tiltglare__status { margin: 0; max-width: 32ch; min-height: 2.9em; font-size: .74rem; line-height: 1.45; text-align: center; color: var(--ink-muted); }
/* phones: a gentle sway shows the tilt and the shine */
.is-playing .pds-tiltglare { animation: pds-tiltglare-sway 2.6s cubic-bezier(.45, 0, .55, 1); }
@keyframes pds-tiltglare-sway {
  0%, 100% { --pds-tg-x: 0; --pds-tg-y: 0; }
  30% { --pds-tg-x: -.75; --pds-tg-y: -.55; }
  68% { --pds-tg-x: .8; --pds-tg-y: .4; }
}
@keyframes pds-tiltglare-flicker {
  0%, 100% { transform: scale(1, 1); }
  40% { transform: scale(.94, 1.06) rotate(-2deg); }
  70% { transform: scale(1.04, .96) rotate(1.5deg); }
}

/* ---------- PDS-63 Bento Board ---------- */
.pds-bento, .pds-bento * { box-sizing: border-box; }
.pds-bento { container: pds-bento / inline-size; width: min(100%, 520px); margin: 0 auto; color: var(--ink); }
.pds-bento__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin: 0 0 .75rem; }
.pds-bento__title { font-family: var(--font-display, Georgia, serif); font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.pds-bento__note { font: 500 .62rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pds-bento__grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 100px 100px 96px;
  grid-template-areas: "web web shop app" "web web ai app" "care live live live"; }
.pds-bento__tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: .75rem .8rem;
  overflow: hidden; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 10px 24px -20px color-mix(in srgb, var(--ink) 50%, transparent);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1), border-color .3s ease; }
.pds-bento__tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-bento__tile:is(:hover, :focus-visible) { transform: translateY(-4px); border-color: var(--border-strong);
  box-shadow: 0 22px 34px -22px color-mix(in srgb, var(--ink) 58%, transparent); }
.pds-bento__tile.is-web { grid-area: web; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%),
  linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--primary-tint) 60%, var(--surface))); }
.pds-bento__tile.is-shop { grid-area: shop; }
.pds-bento__tile.is-ai { grid-area: ai; }
.pds-bento__tile.is-app { grid-area: app; color: #fff; border-color: transparent;
  background: radial-gradient(90% 60% at 50% 32%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    linear-gradient(170deg, color-mix(in srgb, var(--primary) 56%, #0b1020), color-mix(in srgb, var(--primary-deep) 22%, #060912)); }
.pds-bento__tile.is-care { grid-area: care; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface)); }
.pds-bento__tile.is-live { grid-area: live; background: linear-gradient(100deg, var(--surface) 30%, color-mix(in srgb, var(--accent) 14%, var(--surface))); }
.pds-bento__txt { position: relative; z-index: 1; display: grid; gap: .15rem; }
.pds-bento__txt b { font-family: var(--font-display, Georgia, serif); font-size: .98rem; font-weight: 600; line-height: 1.1; }
.pds-bento__txt small { font: 500 .64rem/1.3 var(--font-mono, ui-monospace, monospace); letter-spacing: .02em; color: var(--ink-muted); }
.pds-bento__tile.is-web .pds-bento__txt b { font-size: 1.3rem; }
.pds-bento__tile.is-app .pds-bento__txt small { color: color-mix(in srgb, #fff 78%, transparent); }
/* small icon tiles */
.pds-bento__icon { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pds-bento__tile.is-ai .pds-bento__icon { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pds-bento__tile.is-care .pds-bento__icon { color: color-mix(in srgb, var(--gold) 70%, var(--ink)); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.pds-bento__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the website tile: a little browser */
.pds-bento__browser { position: absolute; top: 16px; right: -14px; display: grid; grid-template-rows: 13px 1fr 34%; gap: 7px; width: 80%; height: 64%;
  padding: 0 9px 9px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--ink) 55%, transparent); transform: rotate(-3deg); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.pds-bento__bar { margin: 0 -9px; border-radius: 10px 10px 0 0; background: radial-gradient(circle at 9px 7px, var(--gold) 2.2px, transparent 2.8px),
  radial-gradient(circle at 17px 7px, var(--accent) 2.2px, transparent 2.8px), radial-gradient(circle at 25px 7px, var(--primary) 2.2px, transparent 2.8px), var(--surface-sunk); }
.pds-bento__hero { display: grid; align-content: center; gap: 4px; padding: 0 9px; border-radius: 7px;
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 55%), linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.pds-bento__hero i { width: 60%; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--bg) 85%, transparent); }
.pds-bento__hero i:nth-child(2) { width: 40%; opacity: .7; }
.pds-bento__hero i:nth-child(3) { width: 24%; height: 9px; margin-top: 3px; border-radius: 5px; background: var(--gold); opacity: 1; }
.pds-bento__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pds-bento__cards i { border-radius: 6px; background: var(--primary-tint); }
.pds-bento__cards i:nth-child(2) { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.pds-bento__cards i:nth-child(3) { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
/* the app tile: a phone whose screen plays like a short video */
.pds-bento__video { position: absolute; top: .65rem; left: .65rem; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .45rem .22rem .38rem;
  border-radius: 999px; font: 600 .56rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: color-mix(in srgb, #fff 16%, transparent); }
.pds-bento__video::before { content: ""; border-style: solid; border-width: 3.5px 0 3.5px 6px; border-color: transparent transparent transparent currentColor; }
.pds-bento__phone { position: absolute; top: 34px; left: calc(50% - 32px); width: 64px; height: 118px; padding: 4px; border-radius: 16px;
  background: color-mix(in srgb, #fff 16%, transparent); transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 32%, transparent), 0 16px 26px -14px color-mix(in srgb, color-mix(in srgb, var(--primary) 30%, #000) 70%, transparent); }
.pds-bento__screen { display: block; height: 100%; overflow: hidden; border-radius: 12px; background: var(--bg); }
.pds-bento__feed { display: grid; gap: 4px; padding: 0 5px 4px; animation: pds-bento-feed 6s linear infinite; }
.pds-bento__feed i { height: 20px; border-radius: 5px; background: var(--primary-tint); }
.pds-bento__feed i:nth-child(3n+1) { height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
/* the live-samples tile: controls that switch on */
.pds-bento__ctrls { position: absolute; top: 50%; right: 1rem; display: flex; align-items: center; gap: 12px; transform: translateY(-50%); }
.pds-bento__tog { position: relative; width: 36px; height: 21px; border-radius: 999px; background: var(--border-strong); transition: background .4s ease; }
.pds-bento__tog::before { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 30%, transparent); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.pds-bento__sld { position: relative; width: 70px; height: 6px; border-radius: 6px; background: var(--border); }
.pds-bento__sld::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: var(--accent-deep); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.pds-bento__sld::after { content: ""; position: absolute; top: 50%; left: 30%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-deep); transition: left .6s cubic-bezier(.22, 1, .36, 1); }
.pds-bento__try { padding: .35rem .7rem; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--bg); background: var(--ink); transition: background .3s ease; }
/* hover, keyboard focus and the phone play-through */
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__icon { transform: rotate(-8deg) scale(1.1); }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__browser { transform: rotate(0deg) translateY(-3px); }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__phone { transform: translateY(-4px) rotate(-3deg); }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__tog { background: var(--accent-deep); }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__tog::before { transform: translateX(15px); }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__sld::before { width: 78%; }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__sld::after { left: 78%; }
:is(.pds-bento__tile:hover, .pds-bento__tile:focus-visible, .is-playing .pds-bento__tile) .pds-bento__try { background: var(--primary); }
.is-playing .pds-bento__tile { animation: pds-bento-lift 1.3s cubic-bezier(.22, 1, .36, 1) both; }
.is-playing .pds-bento__tile:nth-child(2) { animation-delay: .1s; }
.is-playing .pds-bento__tile:nth-child(3) { animation-delay: .2s; }
.is-playing .pds-bento__tile:nth-child(4) { animation-delay: .3s; }
.is-playing .pds-bento__tile:nth-child(5) { animation-delay: .4s; }
.is-playing .pds-bento__tile:nth-child(6) { animation-delay: .5s; }
@keyframes pds-bento-lift { 45% { transform: translateY(-5px); box-shadow: 0 22px 34px -22px color-mix(in srgb, var(--ink) 58%, transparent); } }
@keyframes pds-bento-feed { to { transform: translateY(-50%); } }
/* narrow boxes (phones): two columns, same tiles */
@container pds-bento (max-width: 399px) {
  .pds-bento__title { font-size: 1rem; }
  .pds-bento__grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 100px 78px 78px 78px;
    grid-template-areas: "web web" "shop app" "ai app" "care live"; }
  .pds-bento__tile { padding: .6rem .65rem; border-radius: 16px; }
  .pds-bento__txt b { font-size: .9rem; }
  .pds-bento__tile.is-web .pds-bento__txt b { font-size: 1.15rem; }
  .pds-bento__browser { top: 12px; right: -12px; width: 54%; height: 82%; }
  .pds-bento__phone { top: 12px; left: auto; right: 12px; width: 46px; height: 86px; padding: 3px; border-radius: 12px; }
  .pds-bento__screen { border-radius: 9px; }
  .pds-bento__icon { top: .55rem; right: .55rem; width: 32px; height: 32px; border-radius: 10px; }
  .pds-bento__icon svg { width: 17px; height: 17px; }
  .pds-bento__ctrls { top: .6rem; right: .6rem; transform: none; }
  .pds-bento__sld, .pds-bento__try { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pds-bento__sld::after { transition: none; }
}

/* ---------- PDS-64 Snap Reel ---------- */
.pds-reel, .pds-reel * { box-sizing: border-box; }
.pds-reel { --pds-reel-p: 0; container: pds-reel / inline-size; width: min(100%, 500px); margin: 0 auto; color: var(--ink); }
.pds-reel :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-reel :where(button, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-reel__top { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; padding: 0 .25rem; }
.pds-reel__title { display: grid; gap: .25rem; margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.pds-reel__eyebrow { font: 600 .6rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.pds-reel__auto { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem .45rem .7rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: .74rem; font-weight: 600; box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--ink) 40%, transparent); }
.pds-reel__ico { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pds-reel:not(.is-auto) .pds-reel__ico { width: 0; height: 0; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent currentColor; }
/* the strip: native swipe with snap points, next slides peek in at the sides */
.pds-reel__track { position: relative; display: flex; gap: 12px; padding: 4px 8% 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.pds-reel__track::-webkit-scrollbar { display: none; }
.pds-reel__slide { --pds-reel-a: var(--primary); flex: 0 0 84%; min-width: 0; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always;
  border-radius: 20px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--ink) 55%, transparent); transform: scale(.93); opacity: .55;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
.pds-reel__slide.is-current { transform: none; opacity: 1; }
.pds-reel__slide.is-s2 { --pds-reel-a: var(--accent); }
.pds-reel__slide.is-s3 { --pds-reel-a: var(--gold); }
.pds-reel__slide.is-s4 { --pds-reel-a: var(--primary-deep); }
.pds-reel__slide.is-s5 { --pds-reel-a: var(--accent-deep); }
.pds-reel__art { position: relative; display: grid; place-items: center; height: 138px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--pds-reel-a) 60%, transparent), transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--pds-reel-a) 48%, #0b1020), color-mix(in srgb, var(--primary-deep) 20%, #05070f)); }
.pds-reel__art::before { content: ""; position: absolute; left: -30px; bottom: -64px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, #fff 9%, transparent); }
.pds-reel__art::after { content: ""; position: absolute; right: 16%; top: 20%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, #fff 24%, transparent); }
.pds-reel__art svg { position: relative; width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transform: scale(.82); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.pds-reel__slide.is-current .pds-reel__art svg { transform: none; }
.pds-reel__cap { display: grid; gap: .2rem; padding: .8rem 1rem .95rem; }
.pds-reel__tag { font: 600 .6rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.pds-reel__cap b { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; font-weight: 600; line-height: 1.2; }
.pds-reel__cap small { font-size: .76rem; line-height: 1.4; color: var(--ink-muted); }
/* arrows and dots; the current dot fills up while auto-play counts down */
.pds-reel__nav { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .3rem; }
.pds-reel__arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 8px 16px -12px color-mix(in srgb, var(--ink) 50%, transparent); transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.pds-reel__arrow:is(:hover, :focus-visible) { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.pds-reel__arrow:active { transform: scale(.94); }
.pds-reel__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-reel__dots { display: flex; align-items: center; gap: 8px; }
.pds-reel__dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong);
  transition: width .45s cubic-bezier(.22, 1, .36, 1), background .3s ease; }
.pds-reel__dot::after { content: ""; position: absolute; inset: -10px -5px; }
.pds-reel__dot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform: scaleX(0); transform-origin: left center; }
.pds-reel__dot[aria-current="true"] { width: 28px; background: color-mix(in srgb, var(--primary) 24%, var(--border)); }
.pds-reel__dot[aria-current="true"]::before { transform: scaleX(var(--pds-reel-p)); transition: transform .12s linear; }
.pds-reel:not(.is-auto) .pds-reel__dot[aria-current="true"]::before { transform: none; }
.pds-reel__status { margin: .5rem 0 0; text-align: center; font: 500 .64rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); }
@container pds-reel (max-width: 379px) {
  .pds-reel__title { font-size: 1.02rem; }
  .pds-reel__track { padding-inline: 7%; gap: 10px; }
  .pds-reel__slide { flex-basis: 86%; }
  .pds-reel__art { height: 120px; }
  .pds-reel__cap { padding: .7rem .85rem .85rem; }
}

/* ---------- PDS-65 Lightbox Gallery ---------- */
.pds-gallery, .pds-gallery * { box-sizing: border-box; }
.pds-gallery { position: relative; container: pds-gallery / inline-size; width: min(100%, 520px); margin: 0 auto; color: var(--ink); }
.pds-gallery :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-gallery :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-gallery__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin-bottom: .7rem; }
.pds-gallery__title { margin: 0; }
.pds-gallery__eyebrow { font: 600 .62rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pds-gallery__filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.pds-gallery__chip { padding: .38rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .74rem; font-weight: 600;
  color: var(--ink-muted); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.pds-gallery__chip:hover { color: var(--ink); border-color: var(--border-strong); }
.pds-gallery__chip[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
/* the grid keeps its height while filtering, so nothing jumps */
.pds-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 116px); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pds-gallery__item { min-width: 0; margin: 0; animation: pds-gallery-in .45s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: var(--pds-gallery-d, 0s); }
.pds-gallery__item[hidden] { display: none; }
.pds-gallery__item:nth-child(2) { --pds-gallery-d: .06s; }
.pds-gallery__item:nth-child(3) { --pds-gallery-d: .12s; }
.pds-gallery__item:nth-child(4) { --pds-gallery-d: .18s; }
.pds-gallery__item:nth-child(5) { --pds-gallery-d: .24s; }
.pds-gallery__item:nth-child(6) { --pds-gallery-d: .3s; }
.pds-gallery__tile { position: relative; isolation: isolate; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; text-align: start;
  box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--ink) 55%, transparent); }
/* "photos": theme gradients with simple drawings, so they follow the palette and Night mode */
.pds-gallery [data-ph="p1"] { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 58%, #2a1a0c), color-mix(in srgb, var(--primary) 30%, #120c08)); }
.pds-gallery [data-ph="p2"] { background: linear-gradient(170deg, color-mix(in srgb, var(--primary) 60%, #0b1020), color-mix(in srgb, var(--accent) 34%, #071012)); }
.pds-gallery [data-ph="p3"] { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 50%, #0b1410), color-mix(in srgb, var(--gold) 26%, #120c08)); }
.pds-gallery [data-ph="p4"] { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 40%, #0a0716), color-mix(in srgb, var(--primary) 46%, #0b1020)); }
.pds-gallery [data-ph="p5"] { background: linear-gradient(165deg, color-mix(in srgb, var(--accent-deep) 44%, #0d0f12), color-mix(in srgb, var(--gold) 36%, #1a1208)); }
.pds-gallery [data-ph="p6"] { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 40%, #0b1020), color-mix(in srgb, var(--gold) 48%, #24160a)); }
.pds-gallery__ph { position: absolute; inset: 0; display: block; animation: pds-gallery-load .9s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: var(--pds-gallery-d, 0s); }
.pds-gallery__ph svg, .pds-gallery__big svg { display: block; width: 100%; height: 100%; }
.pds-gallery__ph svg { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.pds-gallery__w { fill: color-mix(in srgb, #fff 88%, transparent); }
.pds-gallery__w2 { fill: color-mix(in srgb, #fff 20%, transparent); }
.pds-gallery__ws { fill: none; stroke: color-mix(in srgb, #fff 80%, transparent); stroke-width: 2.4; stroke-linecap: round; }
.pds-gallery__g { fill: color-mix(in srgb, var(--gold) 72%, #fff); }
.pds-gallery__a { fill: color-mix(in srgb, var(--accent) 65%, #fff); }
.pds-gallery__br { fill: color-mix(in srgb, var(--gold) 35%, #3b2412); }
.pds-gallery__sun { fill: color-mix(in srgb, var(--gold) 40%, transparent); }
.pds-gallery__cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.4rem .65rem .5rem; font-size: .74rem; font-weight: 700; line-height: 1.2; color: #fff;
  background: linear-gradient(transparent, color-mix(in srgb, color-mix(in srgb, var(--primary) 14%, #05070d) 78%, transparent)); }
.pds-gallery__tile::after { content: "+"; position: absolute; top: .45rem; right: .45rem; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; font-size: 1.05rem; font-weight: 700; line-height: 1; color: #fff; background: color-mix(in srgb, #fff 22%, transparent);
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
:is(.pds-gallery__tile:hover, .pds-gallery__tile:focus-visible, .is-playing .pds-gallery__item:first-child .pds-gallery__tile) .pds-gallery__ph svg { transform: scale(1.08); }
:is(.pds-gallery__tile:hover, .pds-gallery__tile:focus-visible, .is-playing .pds-gallery__item:first-child .pds-gallery__tile)::after { opacity: 1; transform: none; }
.pds-gallery__live { margin: .6rem 0 0; font-size: .72rem; line-height: 1.4; text-align: center; color: var(--ink-muted); }
/* the lightbox opens inside the sample box, not over the whole page */
.pds-gallery__box { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; padding: .6rem; border-radius: 18px;
  color: #fff; background: color-mix(in srgb, color-mix(in srgb, var(--primary) 14%, #05070d) 94%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: pds-gallery-open .4s cubic-bezier(.22, 1, .36, 1); }
.pds-gallery__box[hidden] { display: none; }
.pds-gallery__box:focus { outline: none; }
.pds-gallery__stage { position: relative; min-height: 0; touch-action: pan-y; }
.pds-gallery__fig { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 13px; }
.pds-gallery__big { position: absolute; inset: 0; display: block; }
.pds-gallery__big svg { overflow: visible; }
.pds-gallery__big.is-in { animation: pds-gallery-zoom .45s cubic-bezier(.22, 1, .36, 1); }
.pds-gallery__figcap { position: absolute; inset: auto 0 0; padding: 2rem 1rem .75rem; font-family: var(--font-display, Georgia, serif); font-size: 1.1rem; font-weight: 600;
  background: linear-gradient(transparent, color-mix(in srgb, color-mix(in srgb, var(--primary) 14%, #05070d) 80%, transparent)); }
.pds-gallery__nav, .pds-gallery__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  background: color-mix(in srgb, #fff 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 26%, transparent); transition: background .25s ease, transform .25s ease; }
.pds-gallery__nav { position: absolute; top: 50%; z-index: 1; margin-top: -19px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pds-gallery__nav.is-prev { left: .6rem; }
.pds-gallery__nav.is-next { right: .6rem; }
.pds-gallery__nav:is(:hover, :focus-visible), .pds-gallery__close:is(:hover, :focus-visible) { background: color-mix(in srgb, #fff 30%, transparent); }
.pds-gallery__nav:active, .pds-gallery__close:active { transform: scale(.93); }
.pds-gallery__nav svg, .pds-gallery__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-gallery__box :where(button):focus-visible { outline-color: color-mix(in srgb, var(--primary) 35%, #fff); }
.pds-gallery__bar { display: flex; align-items: center; gap: .7rem; padding: 0 .2rem; }
.pds-gallery__count { font: 600 .8rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; }
.pds-gallery__tip { flex: 1; min-width: 0; overflow: hidden; font-size: .7rem; white-space: nowrap; text-overflow: ellipsis; color: color-mix(in srgb, #fff 68%, transparent); }
@keyframes pds-gallery-in { from { opacity: 0; transform: scale(.96); } }
@keyframes pds-gallery-load { from { opacity: .35; filter: blur(10px); transform: scale(1.12); } }
@keyframes pds-gallery-open { from { opacity: 0; transform: scale(.97); } }
@keyframes pds-gallery-zoom { from { opacity: .3; transform: scale(1.04); } }
@container pds-gallery (max-width: 399px) {
  .pds-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 88px); }
  .pds-gallery__cap { padding: 1.1rem .55rem .45rem; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pds-gallery__tile::after { transition: none; }
}

/* ---------- PDS-66 Project Journey ---------- */
.pds-journey, .pds-journey * { box-sizing: border-box; }
.pds-journey { width: min(100%, 440px); margin: 0 auto; color: var(--ink); }
.pds-journey__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; padding: 0 .2rem; }
.pds-journey__title { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.pds-journey__chip { flex: none; padding: .25rem .55rem; border-radius: 999px; font: 600 .58rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
/* its own small scroll box; at the top or bottom the page carries on scrolling */
.pds-journey__box { position: relative; height: 300px; overflow-y: auto; padding: 1.1rem 1rem 0 .9rem; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: 0 18px 36px -28px color-mix(in srgb, var(--ink) 50%, transparent);
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.pds-journey__box:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-journey__rail { position: relative; padding-bottom: 90px; }
.pds-journey__line { position: absolute; top: 20px; left: 20px; width: 3px; height: 0; margin-left: -1.5px; border-radius: 3px; background: var(--border); }
.pds-journey__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--primary), var(--accent));
  transform: scaleY(0); transform-origin: top; transition: transform .25s linear; }
.pds-journey__list { position: relative; display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.pds-journey__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .85rem; align-items: start; margin: 0; }
.pds-journey__node { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--ink-faint);
  transition: background .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pds-journey__node svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-journey__step.is-seen .pds-journey__node { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.pds-journey__step.is-now .pds-journey__node { transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent); }
/* steps ahead wait faded; each one slides in as the line reaches it */
.pds-journey__card { display: grid; gap: .2rem; padding: .7rem .85rem .8rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
  opacity: .4; transform: translateX(10px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1), border-color .4s ease, background .4s ease, box-shadow .4s ease; }
.pds-journey__step.is-seen .pds-journey__card { opacity: 1; transform: none; }
.pds-journey__step.is-now .pds-journey__card { border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary-tint) 55%, var(--surface)); box-shadow: 0 14px 26px -20px color-mix(in srgb, var(--primary) 70%, transparent); }
.pds-journey__when { font: 600 .62rem/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pds-journey__name { font-family: var(--font-display, Georgia, serif); font-size: 1.02rem; font-weight: 600; line-height: 1.2; }
.pds-journey__note { font-size: .76rem; line-height: 1.45; color: var(--ink-muted); }
.pds-journey__end { margin: 1.4rem 0 0 52px; font-size: .72rem; color: var(--ink-muted); }
.pds-journey__now { margin: .6rem 0 0; text-align: center; font: 500 .64rem/1.3 var(--font-mono, ui-monospace, monospace); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-muted); }

/* ---------- PDS-67 Plan Picker ---------- */
.pds-plans, .pds-plans * { box-sizing: border-box; }
.pds-plans { --pds-plans-ease: cubic-bezier(.22, 1, .36, 1);
  display: grid; gap: .7rem; width: min(100%, 520px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-plans :where(button) { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-plans :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-plans :is(p, ul) { margin: 0; }
.pds-plans .pds-plans__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.pds-plans .pds-plans__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.pds-plans .pds-plans__switch { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .75rem .32rem .38rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .76rem; font-weight: 600; }
.pds-plans .pds-plans__track { position: relative; flex: none; width: 2.1rem; height: 1.2rem; border-radius: 99px;
  background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background .3s, box-shadow .3s; }
.pds-plans .pds-plans__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--ink-muted); transition: transform .4s var(--pds-plans-ease), background .3s; }
.pds-plans .pds-plans__switch[aria-checked="true"] .pds-plans__track { background: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pds-plans .pds-plans__switch[aria-checked="true"] .pds-plans__track::after { transform: translateX(.9rem); background: var(--bg); }
/* the sideways rail: snaps card by card, fades at the edge until the end is reached */
.pds-plans .pds-plans__rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: none; border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, var(--ink) calc(100% - 28px), transparent); }
.pds-plans .pds-plans__rail::-webkit-scrollbar { display: none; }
.pds-plans .pds-plans__rail.is-end { -webkit-mask-image: none; mask-image: none; }
.pds-plans .pds-plans__rail:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pds-plans .pds-plans__list { display: flex; gap: .6rem; width: max-content; padding: .8rem 2px 1.1rem; list-style: none; }
.pds-plans .pds-plans__card { position: relative; display: flex; flex-direction: column; flex: 0 0 146px; scroll-snap-align: start;
  padding: .9rem .85rem .85rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: 0 14px 28px -24px color-mix(in srgb, var(--ink) 65%, transparent);
  transition: transform .45s var(--pds-plans-ease), box-shadow .45s var(--pds-plans-ease), border-color .3s; }
.pds-plans .pds-plans__card:nth-child(1) { --pds-plans-dot: var(--primary); }
.pds-plans .pds-plans__card:nth-child(2) { --pds-plans-dot: var(--accent); }
.pds-plans .pds-plans__card:nth-child(3) { --pds-plans-dot: var(--gold); }
.pds-plans .pds-plans__card:nth-child(4) { --pds-plans-dot: var(--primary-deep); }
.pds-plans .pds-plans__card.is-best { border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--primary) 75%, transparent); }
:is(.pds-plans .pds-plans__card:hover, .pds-plans .pds-plans__card:focus-within, .is-playing .pds-plans .pds-plans__card.is-best) {
  transform: translateY(-3px); box-shadow: 0 20px 34px -22px color-mix(in srgb, var(--primary) 60%, transparent); }
.pds-plans .pds-plans__list .pds-plans__card.is-picked { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 18px 34px -24px color-mix(in srgb, var(--primary) 75%, transparent); }
.pds-plans .pds-plans__ribbon { position: absolute; top: -.6rem; left: .75rem; padding: .16rem .5rem; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; color: var(--bg); background: var(--primary); }
.pds-plans .pds-plans__tier { display: flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-muted); }
.pds-plans .pds-plans__tier::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pds-plans-dot); }
.pds-plans .pds-plans__price { margin-top: .35rem; font-family: var(--font-display, Georgia, serif); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.pds-plans .pds-plans__save { display: flex; flex-wrap: wrap; gap: .1rem .4rem; margin-top: .35rem;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .64rem; color: var(--ink-muted); }
.pds-plans .pds-plans__save s { text-decoration-color: var(--ink-faint); }
.pds-plans .pds-plans__save b { color: var(--accent-deep); }
.pds-plans .pds-plans__ticks { display: grid; gap: .3rem; margin-top: .65rem; padding: .65rem 0 0; border-top: 1px dashed var(--border-strong);
  list-style: none; font-size: .74rem; line-height: 1.3; }
.pds-plans .pds-plans__ticks li { position: relative; padding-left: 1.15rem; }
.pds-plans .pds-plans__ticks li::before { content: ""; position: absolute; left: 0; top: .08rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.pds-plans .pds-plans__ticks li::after { content: ""; position: absolute; left: .29rem; top: .22rem; width: .22rem; height: .4rem;
  border: solid var(--accent-deep); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
/* the care plan slides open under each price */
.pds-plans .pds-plans__care { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .45s var(--pds-plans-ease), opacity .3s, visibility .45s, margin .45s var(--pds-plans-ease); }
.pds-plans .pds-plans__care > div { min-height: 0; overflow: hidden; }
.pds-plans.is-care .pds-plans__care { grid-template-rows: 1fr; opacity: 1; visibility: visible; margin-top: .6rem; }
.pds-plans .pds-plans__carebox { display: grid; gap: .1rem; padding: .45rem .55rem; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.pds-plans .pds-plans__carebox b { font-size: .76rem; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--gold) 55%, var(--ink)); }
.pds-plans .pds-plans__carebox span { font-size: .66rem; line-height: 1.3; color: var(--ink-muted); }
.pds-plans .pds-plans__foot { margin-top: auto; padding-top: .75rem; }
.pds-plans .pds-plans__choose { width: 100%; padding: .48rem .6rem; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); font-size: .78rem; font-weight: 700; transition: background .25s, color .25s, border-color .25s; }
.pds-plans .pds-plans__choose:hover { border-color: var(--primary); color: var(--primary-deep); }
.pds-plans .is-best .pds-plans__choose, .pds-plans .pds-plans__choose[aria-pressed="true"] { border-color: transparent; color: var(--bg); background: var(--primary); }
.pds-plans .pds-plans__choose[aria-pressed="true"], .pds-plans .is-best .pds-plans__choose:hover { background: var(--primary-deep); color: var(--bg); }
.pds-plans .pds-plans__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: -.4rem; }
.pds-plans .pds-plans__live { font-size: .74rem; line-height: 1.4; color: var(--ink-muted); }
.pds-plans .pds-plans__arrows { display: flex; flex: none; gap: .35rem; }
.pds-plans .pds-plans__arrow { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--border-strong);
  border-radius: 50%; background: var(--surface); transition: border-color .25s, color .25s, opacity .25s; }
.pds-plans .pds-plans__arrow:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-deep); }
.pds-plans .pds-plans__arrow:disabled { opacity: .35; cursor: default; }
.pds-plans .pds-plans__arrow svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .pds-plans *, .pds-plans *::before, .pds-plans *::after { transition: none !important; }
}

/* ---------- PDS-68 Kind Words ---------- */
.pds-praise, .pds-praise * { box-sizing: border-box; }
.pds-praise { --pds-praise-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; isolation: isolate; display: grid; gap: .9rem; width: min(100%, 440px); margin: 0 auto; padding: 1.1rem 1.15rem .95rem;
  container-type: inline-size; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; color: var(--ink); text-align: start;
  background: radial-gradient(circle 220px at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), var(--surface);
  box-shadow: 0 30px 60px -42px color-mix(in srgb, var(--ink) 65%, transparent); }
.pds-praise :where(button) { margin: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-praise :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-praise :is(p, figure, blockquote) { margin: 0; }
.pds-praise .pds-praise__mark { position: absolute; top: 2.1rem; right: 1rem; z-index: -1; pointer-events: none;
  font-family: var(--font-display, Georgia, serif); font-size: 6rem; line-height: 1; color: color-mix(in srgb, var(--primary) 16%, transparent); }
.pds-praise .pds-praise__head { display: flex; align-items: center; gap: .55rem; }
.pds-praise .pds-praise__chip { padding: .18rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink)); background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.pds-praise .pds-praise__title { font-family: var(--font-display, Georgia, serif); font-size: 1rem; font-weight: 600; }
.pds-praise .pds-praise__pause { display: grid; place-items: center; width: 2rem; height: 2rem; margin-left: auto; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); color: var(--ink-muted); transition: color .25s, border-color .25s; }
.pds-praise .pds-praise__pause:hover { color: var(--ink); border-color: var(--border-strong); }
.pds-praise .pds-praise__pause svg { width: .85rem; height: .85rem; }
.pds-praise .pds-praise__i-play, .pds-praise.is-paused .pds-praise__i-pause { display: none; }
.pds-praise.is-paused .pds-praise__i-play { display: block; }
/* slides share one grid cell, so the card never jumps in height */
.pds-praise .pds-praise__stage { display: grid; touch-action: pan-y; }
.pds-praise .pds-praise__slide { grid-area: 1 / 1; display: grid; align-content: start; gap: .75rem;
  opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(4px);
  transition: opacity .45s ease, transform .6s var(--pds-praise-ease), filter .45s ease, visibility .6s; }
.pds-praise .pds-praise__slide.is-on { opacity: 1; visibility: visible; transform: none; filter: none; }
.pds-praise .pds-praise__slide:nth-child(1) { --pds-praise-c: var(--primary); }
.pds-praise .pds-praise__slide:nth-child(2) { --pds-praise-c: var(--accent); }
.pds-praise .pds-praise__slide:nth-child(3) { --pds-praise-c: var(--gold); }
.pds-praise .pds-praise__slide:nth-child(4) { --pds-praise-c: var(--primary-deep); }
.pds-praise .pds-praise__stars { display: flex; gap: .12rem; font-size: 1rem; line-height: 1; color: var(--gold); }
.pds-praise .pds-praise__stars i { font-style: normal; }
.pds-praise .pds-praise__stars .is-off { color: var(--border-strong); }
.pds-praise .pds-praise__quote p { font-family: var(--font-display, Georgia, serif); font-size: 1.06rem; line-height: 1.45; letter-spacing: -.005em; }
.pds-praise .pds-praise__who { display: flex; align-items: center; gap: .7rem; }
.pds-praise .pds-praise__avatar { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: color-mix(in srgb, var(--pds-praise-c) 60%, var(--ink));
  background: color-mix(in srgb, var(--pds-praise-c) 20%, var(--surface));
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--pds-praise-c) 45%, transparent); }
.pds-praise .pds-praise__name { display: grid; line-height: 1.3; }
.pds-praise .pds-praise__name b { font-size: .88rem; }
.pds-praise .pds-praise__name small { font-size: .74rem; color: var(--ink-muted); }
.pds-praise .pds-praise__nav { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.pds-praise .pds-praise__arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border-strong);
  border-radius: 50%; background: var(--surface); transition: border-color .25s, color .25s, transform .35s var(--pds-praise-ease); }
.pds-praise .pds-praise__arrow:hover { border-color: var(--primary); color: var(--primary-deep); transform: scale(1.06); }
.pds-praise .pds-praise__arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pds-praise .pds-praise__dots { display: flex; align-items: center; }
.pds-praise .pds-praise__dot { position: relative; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 8px; background: none; }
/* the active dot is a little track that fills until the next quote */
.pds-praise .pds-praise__dot::before, .pds-praise .pds-praise__dot::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  border-radius: 99px; translate: -50% -50%; background: var(--border-strong); transition: width .45s var(--pds-praise-ease), background .3s; }
.pds-praise .pds-praise__dot::after { opacity: 0; }
.pds-praise .pds-praise__dot[aria-current="true"]::before { width: 22px; background: color-mix(in srgb, var(--primary) 28%, transparent); }
.pds-praise .pds-praise__dot[aria-current="true"]::after { left: calc(50% - 11px); translate: 0 -50%; opacity: 1; background: var(--primary);
  width: max(7px, calc(var(--pds-praise-p, 0) * 22px)); transition: width .1s linear; }
.pds-praise .pds-praise__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 300px) {
  .pds-praise .pds-praise__title, .pds-praise .pds-praise__mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pds-praise *, .pds-praise *::before, .pds-praise *::after { transition: none !important; }
}

/* ---------- PDS-69 Clear Answers ---------- */
.pds-faq, .pds-faq * { box-sizing: border-box; }
.pds-faq { --pds-faq-ease: cubic-bezier(.22, 1, .36, 1);
  container-type: inline-size; display: grid; gap: .7rem; width: min(100%, 480px); margin: 0 auto; padding-inline: 6px; color: var(--ink); text-align: start; }
.pds-faq :where(button) { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-faq :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-faq :is(p, h3) { margin: 0; }
.pds-faq .pds-faq__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.pds-faq .pds-faq__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.pds-faq .pds-faq__one { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .75rem .32rem .38rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .76rem; font-weight: 600; }
.pds-faq .pds-faq__track { position: relative; flex: none; width: 2.1rem; height: 1.2rem; border-radius: 99px;
  background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background .3s, box-shadow .3s; }
.pds-faq .pds-faq__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--ink-muted); transition: transform .4s var(--pds-faq-ease), background .3s; }
.pds-faq .pds-faq__one[aria-checked="true"] .pds-faq__track { background: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pds-faq .pds-faq__one[aria-checked="true"] .pds-faq__track::after { transform: translateX(.9rem); background: var(--bg); }
/* the list scrolls inside the box if several answers are open */
.pds-faq .pds-faq__list { display: grid; align-content: start; gap: .45rem; max-height: 344px; margin: -6px; padding: 6px;
  overflow-y: auto; scrollbar-width: thin; }
.pds-faq .pds-faq__item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  box-shadow: 0 10px 22px -20px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: border-color .3s, box-shadow .45s var(--pds-faq-ease); }
.pds-faq .pds-faq__item.is-open { border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--primary) 75%, transparent); }
.pds-faq .pds-faq__q { font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.pds-faq .pds-faq__btn { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; padding: .75rem .85rem .75rem .95rem;
  border: 0; border-radius: 13px; background: none; text-align: start; font-size: .9rem; font-weight: 600; line-height: 1.3; transition: color .25s; }
.pds-faq .pds-faq__btn:hover { color: var(--primary-deep); }
.pds-faq .pds-faq__icon { position: relative; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--ink);
  background: var(--surface-sunk); transition: background .3s, color .3s, transform .5s var(--pds-faq-ease); }
.pds-faq .pds-faq__icon::before, .pds-faq .pds-faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: .6rem; height: 2px;
  border-radius: 2px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--pds-faq-ease); }
.pds-faq .pds-faq__icon::after { rotate: 90deg; }
.pds-faq .is-open .pds-faq__icon { color: var(--bg); background: var(--primary); transform: rotate(180deg); }
.pds-faq .is-open .pds-faq__icon::after { rotate: 0deg; }
/* smooth height: the answer row grows from 0fr to 1fr */
.pds-faq .pds-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--pds-faq-ease); }
.pds-faq .pds-faq__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .5s; }
.pds-faq .pds-faq__inner p { padding: 0 .95rem .85rem; font-size: .84rem; line-height: 1.55; color: var(--ink-muted);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .5s var(--pds-faq-ease); }
.pds-faq .is-open .pds-faq__a { grid-template-rows: 1fr; }
.pds-faq .is-open .pds-faq__inner { visibility: visible; }
.pds-faq .is-open .pds-faq__inner p { opacity: 1; transform: none; transition-delay: .08s; }
.pds-faq .pds-faq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; font-size: .74rem; line-height: 1.4; color: var(--ink-muted); }
.pds-faq .pds-faq__chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .64rem; font-weight: 600; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.pds-faq .pds-faq__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@container (max-width: 380px) {
  .pds-faq .pds-faq__list { max-height: 262px; }
  .pds-faq .pds-faq__title { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pds-faq *, .pds-faq *::before, .pds-faq *::after { transition: none !important; }
}

/* ---------- PDS-70 Team Reveal ---------- */
.pds-team, .pds-team * { box-sizing: border-box; }
.pds-team { --pds-team-ease: cubic-bezier(.22, 1, .36, 1);
  container-type: inline-size; display: grid; gap: .75rem; width: min(100%, 460px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-team :where(button) { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-team :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-team :is(p, ul) { margin: 0; }
.pds-team .pds-team__top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.pds-team .pds-team__chip { padding: .18rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink)); background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.pds-team .pds-team__title { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.pds-team .pds-team__title span { color: var(--ink-muted); font-weight: 400; }
.pds-team .pds-team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0; list-style: none; }
.pds-team .pds-team__card { position: relative; height: 152px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  box-shadow: 0 16px 30px -26px color-mix(in srgb, var(--ink) 65%, transparent);
  transition: transform .45s var(--pds-team-ease), box-shadow .45s var(--pds-team-ease); }
.pds-team .pds-team__card:nth-child(1) { --pds-team-c: var(--primary); }
.pds-team .pds-team__card:nth-child(2) { --pds-team-c: var(--accent); }
.pds-team .pds-team__card:nth-child(3) { --pds-team-c: var(--gold); }
.pds-team .pds-team__card:nth-child(4) { --pds-team-c: var(--primary-deep); }
.pds-team .pds-team__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 56px; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pds-team-c) 24%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--surface))); }
.pds-team .pds-team__card:has(.pds-team__face:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-team .pds-team__face { position: relative; display: grid; justify-items: center; align-content: center; gap: .1rem; width: 100%; height: 100%;
  padding: .7rem .6rem; border: 0; border-radius: inherit; background: none; text-align: center; }
.pds-team .pds-team__face::after { content: "+"; position: absolute; top: .5rem; right: .55rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem;
  border-radius: 50%; font-size: .9rem; line-height: 1; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--border); }
.pds-team .pds-team__avatar { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .45rem; border-radius: 50%;
  font-family: var(--font-display, Georgia, serif); font-size: 1.1rem; font-weight: 600;
  color: color-mix(in srgb, var(--pds-team-c) 60%, var(--ink)); background: color-mix(in srgb, var(--pds-team-c) 20%, var(--surface));
  box-shadow: 0 0 0 3px var(--surface), 0 10px 18px -10px color-mix(in srgb, var(--ink) 60%, transparent); }
.pds-team .pds-team__name { font-size: .86rem; font-weight: 700; line-height: 1.25; }
.pds-team .pds-team__role { font-size: .72rem; color: var(--ink-muted); }
/* the bio slides up over the card */
.pds-team .pds-team__bio { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .3rem; padding: .75rem .8rem; border-radius: inherit;
  background: color-mix(in srgb, var(--pds-team-c) 10%, var(--surface)); transform: translateY(101%); visibility: hidden;
  transition: transform .5s var(--pds-team-ease), visibility .5s; }
.pds-team .pds-team__bio b { font-size: .84rem; line-height: 1.2; }
.pds-team .pds-team__bio small { margin-top: -.25rem; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: color-mix(in srgb, var(--pds-team-c) 55%, var(--ink)); }
.pds-team .pds-team__bio p { font-size: .74rem; line-height: 1.45; color: var(--ink-muted); }
.pds-team .pds-team__links { display: flex; gap: .4rem; margin-top: auto; }
.pds-team .pds-team__icon { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--ink-muted); transition: color .25s, background .25s, border-color .25s, transform .3s var(--pds-team-ease); }
.pds-team .pds-team__icon:is(:hover, :focus-visible) { color: var(--bg); background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.pds-team .pds-team__icon svg { width: 15px; height: 15px; }
:is(.pds-team .pds-team__card:hover, .pds-team .pds-team__card:focus-within, .pds-team .pds-team__card.is-open, .is-playing .pds-team .pds-team__card:first-child) {
  transform: translateY(-3px); box-shadow: 0 20px 34px -24px color-mix(in srgb, var(--pds-team-c) 70%, transparent); }
:is(.pds-team .pds-team__card:hover, .pds-team .pds-team__card:focus-within, .pds-team .pds-team__card.is-open, .is-playing .pds-team .pds-team__card:first-child) .pds-team__bio {
  transform: none; visibility: visible; }
.pds-team .pds-team__live { font-size: .74rem; line-height: 1.4; color: var(--ink-muted); }
/* phones: one person per row, the bio slides in beside the avatar */
@container (max-width: 340px) {
  .pds-team .pds-team__title span { display: none; }
  .pds-team .pds-team__grid { grid-template-columns: 1fr; gap: .45rem; }
  .pds-team .pds-team__card { height: 70px; border-radius: 14px; }
  .pds-team .pds-team__card::before { inset: 0 auto 0 0; width: 3.7rem; height: auto; }
  .pds-team .pds-team__face { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: .75rem; row-gap: 0;
    padding: .5rem 2.4rem .5rem .55rem; text-align: start; }
  .pds-team .pds-team__avatar { grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; margin: 0; font-size: .95rem; }
  .pds-team .pds-team__face::after { top: 50%; right: .7rem; translate: 0 -50%; }
  .pds-team .pds-team__bio { left: 3.7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center;
    column-gap: .4rem; row-gap: .1rem; padding: .35rem .55rem .4rem .65rem; border-radius: 0 14px 14px 0; }
  .pds-team .pds-team__bio b { grid-area: 1 / 1; }
  .pds-team .pds-team__bio small { display: none; }
  .pds-team .pds-team__links { grid-area: 1 / 2; gap: .3rem; margin: 0; }
  .pds-team .pds-team__bio p { grid-area: 2 / 1 / 3 / 3; font-size: .7rem; line-height: 1.35; }
  .pds-team .pds-team__icon { width: 1.65rem; height: 1.65rem; border-radius: 8px; }
  .pds-team .pds-team__icon svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pds-team *, .pds-team *::before, .pds-team *::after { transition: none !important; }
}

/* ---------- PDS-71 Trust Wall ---------- */
.pds-logos, .pds-logos * { box-sizing: border-box; }
.pds-logos { --pds-logos-ease: cubic-bezier(.22, 1, .36, 1); container-type: inline-size;
  display: grid; gap: .75rem; width: min(100%, 500px); margin: 0 auto; padding-inline: 6px; color: var(--ink); text-align: start; }
.pds-logos :where(button) { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-logos :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-logos :is(p, ul) { margin: 0; }
.pds-logos .pds-logos__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.pds-logos .pds-logos__label { display: flex; align-items: center; gap: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted); }
.pds-logos .pds-logos__chip { padding: .18rem .5rem; border-radius: 999px; font-size: .6rem; letter-spacing: .08em;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink)); background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.pds-logos .pds-logos__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-logos .pds-logos__seg button { padding: .3rem .8rem; border: 0; border-radius: 999px; background: none; font-size: .74rem; font-weight: 600;
  color: var(--ink-muted); transition: color .25s, background .25s, box-shadow .25s; }
.pds-logos .pds-logos__seg button[aria-pressed="true"] { color: var(--ink); background: var(--surface);
  box-shadow: 0 2px 8px -3px color-mix(in srgb, var(--ink) 40%, transparent); }
.pds-logos .pds-logos__frame { position: relative; overflow: hidden; margin: -6px; padding: 6px; }
.pds-logos .pds-logos__wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding: 0; list-style: none; }
.pds-logos .pds-logos__wall > li { min-width: 0; }
.pds-logos .pds-logos__wall > li.is-clone { display: none; }
/* one quiet style for every logo, each lights up in its own theme colour */
.pds-logos .pds-logos__wall > li:nth-child(4n+1) .pds-logos__logo { --pds-logos-c: var(--primary); }
.pds-logos .pds-logos__wall > li:nth-child(4n+2) .pds-logos__logo { --pds-logos-c: var(--accent); }
.pds-logos .pds-logos__wall > li:nth-child(4n+3) .pds-logos__logo { --pds-logos-c: var(--gold); }
.pds-logos .pds-logos__wall > li:nth-child(4n+4) .pds-logos__logo { --pds-logos-c: var(--primary-deep); }
.pds-logos .pds-logos__logo { position: relative; display: grid; place-items: center; width: 100%; height: 74px; padding: .4rem; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-faint);
  transition: color .4s ease, background .4s ease, border-color .4s ease, transform .45s var(--pds-logos-ease), box-shadow .45s var(--pds-logos-ease); }
.pds-logos .pds-logos__brand { display: flex; flex-direction: column; align-items: center; gap: .3rem; max-width: 100%; font-size: .78rem; font-weight: 700;
  line-height: 1.1; white-space: nowrap; transition: transform .45s var(--pds-logos-ease); }
.pds-logos .pds-logos__brand.is-serif { font-family: var(--font-display, Georgia, serif); font-size: .86rem; font-weight: 600; }
.pds-logos .pds-logos__brand.is-caps { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.pds-logos .pds-logos__brand svg { flex: none; width: 1.25rem; height: 1.25rem; transition: color .4s ease, transform .5s var(--pds-logos-ease); }
.pds-logos .pds-logos__cs { position: absolute; bottom: .3rem; font-size: .6rem; font-weight: 700; color: var(--primary-deep);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--pds-logos-ease); }
@container (max-width: 400px) {
  .pds-logos .pds-logos__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pds-logos .pds-logos__logo { height: 68px; }
}
.is-playing .pds-logos .pds-logos__logo { transition-delay: var(--pds-logos-d, 0s); }
:is(.pds-logos .pds-logos__logo:hover, .pds-logos .pds-logos__logo:focus-visible, .is-playing .pds-logos .pds-logos__logo) {
  color: var(--ink); border-color: color-mix(in srgb, var(--pds-logos-c) 45%, var(--border));
  background: color-mix(in srgb, var(--pds-logos-c) 10%, var(--surface)); transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--pds-logos-c) 80%, transparent); }
:is(.pds-logos .pds-logos__logo:hover, .pds-logos .pds-logos__logo:focus-visible, .is-playing .pds-logos .pds-logos__logo) .pds-logos__brand { transform: translateY(-8px); }
:is(.pds-logos .pds-logos__logo:hover, .pds-logos .pds-logos__logo:focus-visible, .is-playing .pds-logos .pds-logos__logo) svg { color: var(--pds-logos-c); transform: rotate(-8deg) scale(1.12); }
:is(.pds-logos .pds-logos__logo:hover, .pds-logos .pds-logos__logo:focus-visible, .is-playing .pds-logos .pds-logos__logo) .pds-logos__cs { opacity: 1; transform: none; }
/* strip view: the same logos drift past in a slow loop and pause under the pointer */
.pds-logos[data-view="strip"] .pds-logos__frame {
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 12%, var(--ink) 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) 12%, var(--ink) 88%, transparent); }
.pds-logos[data-view="strip"] .pds-logos__wall { display: flex; gap: 0; width: max-content; animation: pds-logos-drift 30s linear infinite; }
.pds-logos[data-view="strip"] .pds-logos__wall > li { flex: none; width: 150px; padding-right: .5rem; }
.pds-logos[data-view="strip"] .pds-logos__wall > li.is-clone { display: block; }
.pds-logos[data-view="strip"] .pds-logos__frame:is(:hover, :focus-within) .pds-logos__wall { animation-play-state: paused; }
.pds-logos .pds-logos__live { font-size: .74rem; line-height: 1.4; color: var(--ink-muted); }
@keyframes pds-logos-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pds-logos *, .pds-logos *::before, .pds-logos *::after { transition: none !important; animation: none !important; }
  .pds-logos[data-view="strip"] .pds-logos__frame { overflow-x: auto; }
  .pds-logos[data-view="strip"] .pds-logos__wall > li.is-clone { display: none; }
}

/* ---------- PDS-72 Rising Stats ---------- */
.pds-stats, .pds-stats * { box-sizing: border-box; }
.pds-stats { --pds-stats-ease: cubic-bezier(.22, 1, .36, 1); container-type: inline-size;
  display: grid; gap: .8rem; width: min(100%, 520px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-stats :where(button) { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-stats :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-stats :is(p, ul) { margin: 0; }
.pds-stats .pds-stats__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pds-stats .pds-stats__who { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; min-width: 0; }
.pds-stats .pds-stats__chip { padding: .18rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink)); background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.pds-stats .pds-stats__title { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.pds-stats .pds-stats__replay { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface); font-size: .76rem; font-weight: 700; flex: none; position: relative; transition: border-color .25s, color .25s; }
.pds-stats .pds-stats__replay:is(:hover, :focus-visible) { border-color: var(--primary); color: var(--primary-deep); }
.pds-stats .pds-stats__replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--pds-stats-ease); }
.pds-stats .pds-stats__replay:is(:hover, :focus-visible) svg { transform: rotate(-200deg); }
.pds-stats .pds-stats__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: 0; list-style: none; }
@container (min-width: 460px) { .pds-stats .pds-stats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 340px) {
  .pds-stats .pds-stats__top { align-items: flex-start; }
  .pds-stats .pds-stats__title { font-size: 1rem; }
  .pds-stats .pds-stats__replay { padding: .5rem; }
  .pds-stats .pds-stats__rl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.pds-stats .pds-stats__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0;
  padding: .8rem .8rem .65rem; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: 0 16px 30px -26px color-mix(in srgb, var(--ink) 65%, transparent); }
.pds-stats .pds-stats__card:nth-child(2) { --pds-stats-i: 1; }
.pds-stats .pds-stats__card:nth-child(3) { --pds-stats-i: 2; }
.pds-stats .pds-stats__card:nth-child(4) { --pds-stats-i: 3; }
.pds-stats .pds-stats__trend { display: inline-flex; align-items: center; gap: .22rem; padding: .14rem .42rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .6rem; font-weight: 700; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.pds-stats .pds-stats__trend svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pds-stats .pds-stats__trend.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pds-stats-pulse 1.6s ease-out infinite; }
.pds-stats .pds-stats__num { display: flex; align-items: baseline; font-family: var(--font-display, Georgia, serif); font-size: 1.8rem; line-height: 1.05;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pds-stats .pds-stats__num small { margin-left: .04em; font-size: .56em; line-height: 1; color: var(--ink-muted); }
.pds-stats .pds-stats__star { margin-left: .08em; font-size: .62em; color: var(--gold); }
.pds-stats .pds-stats__label { font-size: .73rem; font-weight: 600; line-height: 1.3; color: var(--ink-muted); }
.pds-stats .pds-stats__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* sparkline: draws itself, then the soft area and end dot fade in */
.pds-stats .pds-stats__spark { display: block; width: 100%; height: 30px; margin-top: auto; padding-top: .3rem; overflow: visible; }
.pds-stats .pds-stats__line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--pds-stats-ease) calc(var(--pds-stats-i, 0) * 120ms); }
.pds-stats .pds-stats__area { fill: color-mix(in srgb, var(--primary) 15%, transparent); opacity: 0; transition: opacity .8s ease calc(.6s + var(--pds-stats-i, 0) * 120ms); }
.pds-stats .pds-stats__dot { fill: var(--primary); opacity: 0; transition: opacity .3s ease calc(1.3s + var(--pds-stats-i, 0) * 120ms); }
.pds-stats.is-run .pds-stats__line { stroke-dashoffset: 0; }
.pds-stats.is-run :is(.pds-stats__area, .pds-stats__dot) { opacity: 1; }
.pds-stats.is-reset :is(.pds-stats__line, .pds-stats__area, .pds-stats__dot) { transition: none; }
@keyframes pds-stats-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .pds-stats *, .pds-stats *::before, .pds-stats *::after { transition: none !important; animation: none !important; }
}

