/* Platform page press animation (patterns/platform-press.php, assets/js/platform-press.js).
   Loaded on /platform/ (inc/platform-press.php).

   Three states:
   - no class      no JavaScript: the story as a plain, readable list
   - .pp--live     the pinned, scroll-driven scene (JS adds .pp--portrait on narrow or tall screens)
   - .pp--still    reduced motion: the same story as a series of still drawings */

.pp {
    --pp-purple: #581cb6;
    --pp-ink: #200e3c;
    --pp-text: #242027;
    --pp-lav: #f6f1fc;
    --pp-lav2: #ede4fa;
    --pp-border: #dfd2f1;
    --pp-line: #b9a8d9;
    --pp-top: 77px;
    position: relative;
    margin: 0 !important;
    max-width: none !important;
    background: #fff;
    color: var(--pp-text);
    font-family: "Albert Sans", sans-serif;
}

.pp *,
.pp *::before,
.pp *::after,
.ppt,
.ppt *,
.ppt *::before,
.ppt *::after { box-sizing: border-box; }

/* ---------- Type ---------- */

.pp h2,
.pp h3 {
    margin: 0;
    color: var(--pp-ink);
    font-family: Greed, sans-serif;
    font-weight: 400;
    letter-spacing: -0.012em;
    text-wrap: balance;
}
.pp h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1; }
.pp h2 em { font-style: italic; }
.pp h3 { font-size: clamp(27px, 2.9vw, 44px); line-height: 1.06; }
.pp p { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; text-wrap: pretty; }
.pp h3 + p,
.pp h2 + p { margin-top: 0.85em; }
.pp .pp-lede + .pp-lede { margin-top: 0.6em; }

.pp .pp-eyebrow,
.pp .pp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--pp-purple);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pp .pp-step span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pp-purple);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0;
}
.pp .pp-step--next::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.pp-beats,
.pp-next,
.pp-rail { margin: 0; padding: 0; list-style: none; }

.pp .pp-next { margin-top: 22px; border-top: 1px solid var(--pp-border); counter-reset: pp 4; }
.pp .pp-next li {
    position: relative;
    padding: 13px 0 13px 40px;
    border-bottom: 1px solid var(--pp-border);
    font-size: 15px;
    line-height: 1.45;
    counter-increment: pp;
}
.pp .pp-next li::before {
    content: counter(pp);
    position: absolute;
    left: 0;
    top: 12px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--pp-line);
    border-radius: 50%;
    color: var(--pp-purple);
    font-size: 12px;
    font-weight: 600;
}
.pp .pp-next strong { display: block; color: var(--pp-ink); font-weight: 600; }

.pp .pp-cta { margin-top: 24px; }
.pp .pp-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 8px;
    background: var(--pp-purple);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s;
}
.pp .pp-cta a::after { content: "→"; transition: transform 0.2s; }
.pp .pp-cta a:hover { background: #4a169c; }
.pp .pp-cta a:hover::after { transform: translateX(3px); }
.pp .pp-cta a:focus-visible { outline: 2px solid var(--pp-ink); outline-offset: 3px; }

.pp .pp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.pp-replay { display: none; }
.pp--live .pp-replay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--pp-purple);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.pp-replay::before { content: "↺"; font-size: 17px; }
.pp-replay:hover { text-decoration: underline; }
.pp-replay:focus-visible { outline: 2px solid var(--pp-ink); outline-offset: 3px; }

/* ---------- No JavaScript: a plain list ---------- */

.pp-track { max-width: 760px; margin: 0 auto; padding: 96px 24px; }
.pp-scene,
.pp-tags,
.pp-rail,
.pp-cue { display: none; }
.pp-beat + .pp-beat,
.pp-beats { margin-top: 56px; }

/* ---------- Live: the pinned scene ---------- */

.pp--live .pp-track { max-width: none; height: 660vh; padding: 0; }
.pp--live .pp-stage {
    position: sticky;
    top: var(--pp-top);
    height: calc(100vh - var(--pp-top));
    height: calc(100svh - var(--pp-top));
    min-height: 480px;
    overflow: hidden;
    background:
        radial-gradient(120% 95% at 62% 48%, #fff 0%, #fbf9fe 42%, var(--pp-lav) 78%, var(--pp-lav2) 100%);
}
.pp--live .pp-scene,
.pp-still { display: block; }
.pp--live .pp-scene { position: absolute; inset: 0; }
.pp--live .pp-beats { margin: 0; }
.pp--live .pp-tags { display: none; }

.pp-svg,
.pp-ov {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.pp--live .pp-beat {
    position: absolute;
    z-index: 3;
    left: clamp(24px, 6vw, 104px);
    width: min(31vw, 430px);
    margin: 0;
    opacity: 0;
    will-change: opacity, transform;
}
.pp--live .pp-beat[data-pos="l"] {
    top: 50%;
    transform: translateY(calc(-50% + var(--pp-shift, 0px)));
}
.pp--live .pp-beat[data-pos="tl"] {
    top: clamp(36px, 10%, 104px);
    transform: translateY(var(--pp-shift, 0px));
}
.pp--live .pp-beat[data-pos="r"] {
    left: auto;
    right: clamp(24px, 6vw, 104px);
    top: 47%;
    width: min(33vw, 440px);
    transform: translateY(calc(-50% + var(--pp-shift, 0px)));
}
.pp--live .pp-intro { width: min(44vw, 640px); }
.pp--live .pp-intro .pp-lede { max-width: 26em; }

.pp--live .pp-cue {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    color: var(--pp-purple);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pp-cue span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--pp-purple);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(88, 28, 182, 0.16);
}
.pp-cue svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--pp-purple);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pp-cue 1.5s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
@keyframes pp-cue {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(5px); }
}

.pp-veil {
    position: absolute;
    z-index: 4;
    inset: 0;
    background: radial-gradient(120% 95% at 62% 48%, #fff 0%, #fbf9fe 42%, var(--pp-lav) 78%, var(--pp-lav2) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.pp-veil.is-on { opacity: 1; }

/* Rail: where you are in the six steps */
.pp--live .pp-rail {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: clamp(14px, 2.2vw, 34px);
    transform: translateX(-50%);
    white-space: nowrap;
}
.pp-rail li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a79db9;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.pp-rail span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: 0;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pp-rail li.is-done { color: var(--pp-ink); }
.pp-rail li.is-on { color: var(--pp-purple); }
.pp-rail li.is-on span { border-color: var(--pp-purple); background: var(--pp-purple); color: #fff; }

/* Portrait: words dock to the bottom, the scene plays above them */
.pp--portrait .pp-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: var(--pp-fog-top, 46%) 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.94) 72px, #fff 150px);
    opacity: var(--pp-fog, 0);
    pointer-events: none;
}
.pp--portrait .pp-beat,
.pp--portrait .pp-beat[data-pos] {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 62px;
    width: auto;
    transform: translateY(var(--pp-shift, 0px));
}
.pp--portrait .pp-intro,
.pp--portrait .pp-intro[data-pos] { top: 28px; bottom: auto; }
.pp--portrait .pp-cue { margin-top: 20px; }
.pp--portrait .pp-cue span { width: 42px; height: 42px; }
.pp--portrait h2 { font-size: clamp(36px, 10.5vw, 56px); }
.pp--portrait h3 { font-size: clamp(25px, 7vw, 34px); }
.pp--portrait .pp-eyebrow,
.pp--portrait .pp-step { margin-bottom: 12px; }
.pp--portrait .pp-handoff h3 { font-size: 22px; }
.pp--portrait .pp-next { margin-top: 12px; }
.pp--portrait .pp-next li { padding: 7px 0 7px 32px; font-size: 13px; line-height: 1.35; }
.pp--portrait .pp-next li::before { top: 8px; width: 20px; height: 20px; font-size: 11px; }
.pp--portrait .pp-next strong { display: inline; }
.pp--portrait .pp-next strong::after { content: ". "; }
.pp--portrait .pp-cta { margin-top: 12px; }
.pp--portrait .pp-cta a { padding: 11px 16px; font-size: 14px; }
.pp--portrait .pp-rail { bottom: 18px; gap: 10px; }
.pp--portrait .pp-rail li { gap: 6px; font-size: 0; }
.pp--portrait .pp-rail li.is-on { font-size: 11px; }

/* ---------- The drawing ---------- */

.pp-svg polygon,
.pp-svg path,
.pp-svg line,
.pp-svg polyline,
.pp-svg circle,
.pp-svg ellipse { vector-effect: non-scaling-stroke; }

.pp-dots { fill: #cbbde6; }
.pp-shadow { fill: rgba(88, 28, 182, 0.055); }

.pp-box polygon { stroke: var(--pp-line); stroke-width: 1; stroke-linejoin: round; transition: fill 0.35s, stroke 0.35s; }
.pp-box .f-t { fill: #fff; }
.pp-box .f-x { fill: #f8f4fd; }
.pp-box .f-y { fill: #efe8fa; }
.pp-slab .f-x { fill: #e9dff7; }
.pp-slab .f-y { fill: #e2d6f3; }
.pp-backwall .f-x { fill: #f3edfb; }
.pp-backwall .f-y { fill: #f9f6fd; }

.pp-zone { transition: none; }
.pp-roomtint { fill: rgba(88, 28, 182, 0.09); stroke: var(--pp-purple); stroke-width: 1.5; stroke-linejoin: round; }

.pp-beacon.is-on polygon,
.pp-gw.is-on polygon { stroke: var(--pp-purple); }
.pp-beacon.is-on .f-t { fill: #8f62e3; }
.pp-beacon.is-on .f-x { fill: var(--pp-purple); }
.pp-beacon.is-on .f-y { fill: #4a169c; }
.pp-gw polygon { stroke: #9d8bc4; }
.pp-ant { stroke: #9d8bc4; stroke-width: 1.5; stroke-linecap: round; transition: stroke 0.35s; }
.pp-led { fill: #cfc2e8; transition: fill 0.35s; }
.pp-gw.is-on ~ .pp-ant,
.pp-gwset.is-on .pp-ant { stroke: var(--pp-purple); }
.pp-gwset.is-on .pp-led { fill: var(--pp-purple); }

.pp-fig-shadow { fill: rgba(32, 14, 60, 0.1); }
.pp-fig-body,
.pp-fig-head { stroke-width: 1.25; stroke-linejoin: round; }
.pp-fig--staff .pp-fig-body,
.pp-fig--staff .pp-fig-head { fill: #fff; stroke: #7c68a8; }
.pp-fig--other .pp-fig-body,
.pp-fig--other .pp-fig-head { fill: #d5cfdf; stroke: #8b849b; }
.pp-lanyard { fill: none; stroke: #7c68a8; stroke-width: 1; stroke-linejoin: round; }
.pp-disc { fill: #fff; stroke: #7c68a8; stroke-width: 1.25; transition: fill 0.25s, stroke 0.25s; }
.pp-disc.is-on { fill: var(--pp-purple); stroke: var(--pp-purple); }

.pp-ring,
.pp-tick { fill: none; stroke: var(--pp-purple); }
.pp-ring { stroke-width: 1.5; }
.pp-tick { stroke-width: 1.25; }
.pp-trail { fill: none; stroke: var(--pp-purple); stroke-linecap: round; vector-effect: none !important; }
.pp-head { fill: var(--pp-purple); }
.pp-wave { fill: none; stroke: var(--pp-purple); stroke-width: 1.5; stroke-linecap: round; }
.pp-link { fill: none; stroke: var(--pp-purple); stroke-width: 1.25; stroke-dasharray: 2 5; stroke-linecap: round; }
.pp-lot { fill: #f4f0fa; stroke: var(--pp-line); stroke-width: 1; stroke-linejoin: round; }
.pp-bay { stroke: var(--pp-line); stroke-width: 1; }
.pp-mast { fill: none; stroke: #9d8bc4; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.35s; }
.pp-mast--thin { stroke-width: 0.9; }
.pp-mast-panel { fill: #fff; stroke: #9d8bc4; stroke-width: 1.25; stroke-linejoin: round; transition: fill 0.35s, stroke 0.35s; }
.pp-mast-base { fill: rgba(32, 14, 60, 0.08); }
.pp-mastset.is-on .pp-mast { stroke: var(--pp-purple); }
.pp-mastset.is-on .pp-mast-panel { fill: var(--pp-purple); stroke: var(--pp-purple); }
.pp-dotted { fill: none; stroke: var(--pp-purple); stroke-linecap: round; vector-effect: none !important; }
.pp-dotted--sos { stroke: #cf3a45; }
.pp-sos-end { fill: #fff; stroke: #cf3a45; stroke-width: 1.5; }
.pp-roomtint.is-ok { fill: rgba(52, 162, 107, 0.12); stroke: #34a26b; }
.pp-phone.is-on.is-ok { fill: #34a26b; stroke: #34a26b; }
.pp-console.is-on.is-ok polygon { stroke: #34a26b; }
.pp-console.is-on.is-ok .f-t { fill: #34a26b; }
.pp-beacon.is-net polygon { stroke: var(--pp-purple); }
.pp-beacon.is-net .f-t { fill: #e4d6fa; }
.pp-beacon.is-net .f-x { fill: #cdb6f3; }
.pp-beacon.is-net .f-y { fill: #bb9fec; }
.pp-console polygon { stroke: #9d8bc4; }
.pp-console.is-on polygon { stroke: var(--pp-purple); }
.pp-console.is-on .f-t { fill: var(--pp-purple); }
.pp-phone { fill: #fff; stroke: #7c68a8; stroke-width: 1; transition: fill 0.25s, stroke 0.25s; }
.pp-phone.is-on { fill: var(--pp-purple); stroke: var(--pp-purple); }
.pp-fig--resp .pp-fig-body,
.pp-fig--resp .pp-fig-head { fill: #f3edfb; stroke: #8f7eb5; }

/* Overlay: the close-up of the wearable button */
.pp-leader { stroke: var(--pp-purple); stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
.pp-card { filter: drop-shadow(0 10px 22px rgba(32, 14, 60, 0.18)); }
.pp-card-body { fill: #fff; stroke: #cbbde6; stroke-width: 1; }
.pp-card-band { fill: #fbdcde; transition: fill 0.3s; }
.pp-card.is-ok .pp-card-band { fill: #34a26b; }
.pp-card-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s; }
.pp-card.is-ok .pp-card-check { opacity: 1; }
.pp-card.is-ok .pp-card-ring,
.pp-card.is-ok .pp-card-dot { opacity: 0; }
.pp-card-tap { fill: none; stroke: #34a26b; stroke-width: 2; }
.pp-card-ring { fill: none; stroke: #cf3a45; stroke-width: 1.75; }
.pp-card-dot { fill: #cf3a45; }
.pp-card-line { stroke: #dfd2f1; stroke-width: 3; stroke-linecap: round; }
.pp-card text { font-family: "Albert Sans", sans-serif; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pp-card-room { fill: var(--pp-ink); font-size: 9px; }
.pp-card-room--light { fill: #a3232d; font-size: 11px; transition: fill 0.3s; }
.pp-card.is-ok .pp-card-room--light { fill: #fff; }
.pp-card-body { stroke: #efc4c7; }
.pp-card.is-ok .pp-card-body { stroke: #bfe3d0; }
.pp-lens { filter: drop-shadow(0 14px 28px rgba(32, 14, 60, 0.16)); }
.pp-lens-bg { fill: #fff; stroke: var(--pp-border); stroke-width: 1; }
.pp-lens-lanyard { fill: none; stroke: #b9a8d9; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pp-lens-disc { fill: #fbf9fe; stroke: #9d8bc4; stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.pp-lens-inner { fill: none; stroke: #dfd2f1; stroke-width: 1.5; transition: stroke 0.3s; }
.pp-lens-glyph { fill: none; stroke: #9d8bc4; stroke-width: 2; stroke-linecap: round; transition: stroke 0.3s; }
.pp-lens.is-on .pp-lens-disc { fill: var(--pp-purple); stroke: var(--pp-purple); }
.pp-lens.is-on .pp-lens-inner { stroke: rgba(255, 255, 255, 0.35); }
.pp-lens.is-on .pp-lens-glyph { stroke: #fff; }
.pp-lens-dot { fill: #fff; stroke: #b9a8d9; stroke-width: 1.25; transition: fill 0.2s, stroke 0.2s; }
.pp-lens-dot.is-on { fill: var(--pp-purple); stroke: var(--pp-purple); }

/* Labels pinned to things in the drawing */
.pp-tag {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    padding: 6px 10px;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32, 14, 60, 0.08);
    color: var(--pp-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -100%) translateY(-18px);
}
.pp-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 12px;
    background: var(--pp-line);
}
.pp-tag[data-tag="button"],
.pp-tag[data-tag="backup"] { transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, 0) translateY(14px); }
.pp-tag[data-tag="button"] { transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, 0); }
.pp-tag[data-tag="button"]::after,
.pp-tag[data-tag="backup"]::after { display: none; }
.pp-tag[data-tag="roomtag"] {
    border-color: var(--pp-purple);
    background: var(--pp-purple);
    box-shadow: 0 6px 18px rgba(88, 28, 182, 0.28);
    color: #fff;
    transform: translate(var(--x, 0), var(--y, 0)) translate(20px, -20%);
}
.pp-tag[data-tag="roomtag"]::after { display: none; }

.pp-tag[data-tag="going"],
.pp-tag[data-tag="closed"] { border-color: #34a26b; background: #34a26b; box-shadow: 0 6px 18px rgba(52, 162, 107, 0.3); color: #fff; }
.pp-tag[data-tag="going"]::after,
.pp-tag[data-tag="closed"]::after { background: #34a26b; }
.pp-tag[data-tag="sos"] {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 12px;
    row-gap: 5px;
    align-items: center;
    padding: 14px 18px 14px 14px;
    border-color: #efc4c7;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(32, 14, 60, 0.14);
    letter-spacing: 0;
    text-transform: none;
    transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -50%);
}
.pp-tag[data-tag="sos"]::after { display: none; }
.pp-tag[data-tag="sos"] b {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fbdcde;
    color: #a3232d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.pp-tag[data-tag="sos"] strong { align-self: end; font-size: 17px; font-weight: 700; }
.pp-tag[data-tag="sos"] em {
    align-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5d5470;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pp-tag[data-tag="sos"] em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cf3a45; }

/* The record, shown with step 6 */
:is(.pp, .ppt) .pp-log {
    position: relative;
    max-width: 300px;
    margin: 22px 0 0 0;
    padding: 14px 16px 6px;
    border: 1px solid var(--pp-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 0 -4px #fff, 0 8px 0 -3px var(--pp-border), 0 16px 0 -8px #fff, 0 16px 0 -7px var(--pp-border), 0 22px 30px rgba(32, 14, 60, 0.08);
}
:is(.pp, .ppt) .pp-log p { display: flex; align-items: center; justify-content: space-between; font-size: 14px; line-height: 1; }
:is(.pp, .ppt) .pp-log strong { color: var(--pp-ink); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
:is(.pp, .ppt) .pp-log span { padding: 5px 9px; border-radius: 999px; background: #34a26b; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
:is(.pp, .ppt) .pp-log ul { margin: 12px 0 0; padding: 0; list-style: none; }
:is(.pp, .ppt) .pp-log li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--pp-lav2); color: #5d5470; font-size: 13px; line-height: 1.2; white-space: nowrap; }
:is(.pp, .ppt) .pp-log li::after { content: ""; flex: 1; height: 5px; border-radius: 3px; background: var(--pp-lav2); }
:is(.pp, .ppt) .pp-log .pp-log-head { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--pp-lav2); }
:is(.pp, .ppt) .pp-bars { display: flex; align-items: flex-end; gap: 7px; height: 54px; margin: 12px 0 10px; }
:is(.pp, .ppt) .pp-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--pp-lav2); }
:is(.pp, .ppt) .pp-bars i:nth-child(1) { height: 38%; }
:is(.pp, .ppt) .pp-bars i:nth-child(2) { height: 62%; }
:is(.pp, .ppt) .pp-bars i:nth-child(3) { height: 46%; }
:is(.pp, .ppt) .pp-bars i:nth-child(4) { height: 80%; background: #cdb6f3; }
:is(.pp, .ppt) .pp-bars i:nth-child(5) { height: 55%; }
:is(.pp, .ppt) .pp-bars i:nth-child(6) { height: 100%; background: var(--pp-purple); }
:is(.pp, .ppt) .pp-bars i:nth-child(7) { height: 70%; background: #cdb6f3; }
:is(.pp, .ppt) .pp-bars i:nth-child(8) { height: 48%; }
.pp .pp-record .pp-cta { margin-top: 34px; }
.pp--portrait .pp-log { display: none; }
.pp--portrait .pp-record .pp-cta { margin-top: 14px; }

/* ---------- Six-step section frames (/platform/) ----------
   The same drawing, small, in place of each image in the page's own six-step section.
   Each is a still that says its step on its own. Some play a short clip when their step is hovered
   or focused (on touch screens, when it scrolls into view). */

.ppt {
    --pp-purple: #581cb6;
    --pp-ink: #200e3c;
    --pp-text: #242027;
    --pp-lav: #f6f1fc;
    --pp-lav2: #ede4fa;
    --pp-border: #dfd2f1;
    --pp-line: #b9a8d9;
    position: relative;
    aspect-ratio: 3 / 2;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    background: radial-gradient(120% 95% at 50% 45%, #fff 0%, var(--pp-lav) 80%, var(--pp-lav2) 100%);
    font-family: "Albert Sans", sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ppt:hover { border-color: #bb9fec; }
/* The frame that is playing is clearly marked. */
.ppt.is-playing { border-color: var(--pp-purple); box-shadow: 0 0 0 2px var(--pp-purple), 0 16px 34px rgba(88, 28, 182, 0.18); }

/* Step numbers as purple circles. */
.ppt-num {
    display: inline-grid;
    place-items: center;
    width: 1.55em;
    height: 1.55em;
    margin-right: 0.5em;
    border-radius: 50%;
    background: #581cb6;
    color: #fff;
    font-family: "Albert Sans", sans-serif;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: 0.16em;
}

/* Each step's points (two at most), in place of its paragraph. */
.ppt-points { margin: 0; padding: 0 0 0 1.15em; }
.ppt-points li { margin: 0; padding-left: 0.15em; }
.ppt-points li + li { margin-top: 0.35em; }
.ppt-points li::marker { color: #581cb6; }
.ppt .pp-tag { padding: 5px 8px; font-size: 9.5px; }
.ppt .pp-tag[data-tag="sos"] { column-gap: 9px; row-gap: 3px; padding: 10px 13px 10px 10px; }
.ppt .pp-tag[data-tag="sos"] b { width: 36px; height: 36px; font-size: 12px; }
.ppt .pp-tag[data-tag="sos"] strong { font-size: 14px; }
.ppt .pp-tag[data-tag="sos"] em { font-size: 10px; }
/* The stills leave out what a small frame doesn't need. */
.ppt .pp-tag[data-tag="gateway"],
.ppt .pp-tag[data-tag="cell"],
.ppt .pp-tag[data-tag="backup"] { display: none; }
.ppt--quiet .pp-dotted,
.ppt--quiet .pp-wave,
.ppt--quiet .pp-trail,
.ppt--quiet .pp-link { display: none; }
/* Step 1: the person causing the situation, in red. */
.ppt--threat .pp-fig--other .pp-fig-body,
.ppt--threat .pp-fig--other .pp-fig-head { fill: #f8c5c8; stroke: #cf3a45; stroke-width: 1.75; }
.ppt--threat .pp-fig--other .pp-fig-shadow { fill: rgba(207, 58, 69, 0.22); }

/* Step 6: the dashboard on a desktop computer. */
.ppt--dash { cursor: default; }
.ppt--dash svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ppd-shadow { fill: rgba(88, 28, 182, 0.08); }
.ppd-body { fill: #fff; }
.ppd-lid { fill: none; stroke: #b9a8d9; stroke-width: 1.5; }
.ppd-screen { fill: #fbf9fe; }
.ppd-side { fill: #f1ebfa; }
.ppd-dot { fill: #d9cbef; }
.ppd-dot.is-on { fill: var(--pp-purple); }
.ppd-panel { fill: #fff; stroke: var(--pp-border); stroke-width: 1; }
.ppd-title,
.ppd-strong,
.ppd-soft,
.ppd-axis { stroke-linecap: round; }
.ppd-title { stroke: var(--pp-ink); stroke-width: 6; }
.ppd-strong { stroke: var(--pp-purple); stroke-width: 6; }
.ppd-soft { stroke: #e4d9f4; stroke-width: 4; }
.ppd-axis { stroke: var(--pp-border); stroke-width: 1; }
.ppd-bar { fill: #e4d9f4; transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.5s cubic-bezier(0.3, 0, 0.2, 1); }
.ppd-bar.is-mid { fill: #bb9fec; }
.ppd-bar.is-top { fill: var(--pp-purple); }
.ppd-ring { fill: none; stroke: #e4d9f4; stroke-width: 9; }
.ppd-arc { fill: none; stroke: var(--pp-purple); stroke-width: 9; stroke-linecap: round; }
.ppd-base { fill: #efe8fa; stroke: #b9a8d9; stroke-width: 1.5; stroke-linejoin: round; }
.ppd-notch { fill: #cdb6f3; }
.ppd-chin { fill: #f6f1fc; }
.ppd-frame { fill: none; stroke: #dfd2f1; stroke-width: 1; }
/* While it plays, the bars rise. */
@media (prefers-reduced-motion: no-preference) {
    .ppt--dash.is-playing .ppd-bar { animation: ppd-rise 0.8s cubic-bezier(0.3, 0, 0.2, 1) backwards; }
    .ppt--dash.is-playing .ppd-bar:nth-of-type(odd) { animation-delay: 0.08s; }
}
@keyframes ppd-rise {
    from { transform: scaleY(0.25); }
    to { transform: scaleY(1); }
}

/* ---------- Reduced motion: stills ---------- */

.pp--still .pp-track { max-width: 1160px; padding: clamp(64px, 9vw, 120px) 24px; }
.pp--still .pp-intro { max-width: 720px; }
.pp--still .pp-beats { margin-top: 0; }
.pp--still .pp-beat:not(.pp-intro) {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(28px, 5vw, 72px);
    align-content: center;
    margin-top: clamp(48px, 7vw, 88px);
}
.pp--still .pp-beat:not(.pp-intro) > * { grid-column: 2; }
.pp--still .pp-beat > .pp-still {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 8;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 18px;
    background: radial-gradient(120% 95% at 50% 45%, #fff 0%, var(--pp-lav) 80%, var(--pp-lav2) 100%);
}
@media (max-width: 800px) {
    .pp--still .pp-beat:not(.pp-intro) { display: block; }
    .pp--still .pp-beat > .pp-still { margin-bottom: 24px; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-cue svg { animation: none; }
    .pp *, .pp *::before, .pp *::after { transition: none !important; }
}
