/* Tool openers (brief v5). The hero text on the reading-start side, a large drawing of the tool's own idea on the other.
   Fail-open: every rule below describes the resting, complete drawing. Motion lives only under .op-play and starts from
   "before" states with backwards fill, so without it (reduced motion, background tab, settled page) nothing is hidden. */
.ppm .thero.op .wrap{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;min-height:0;padding-top:34px;padding-bottom:44px;align-items:center}
.ppm .thero.op h1{font-size:clamp(36px,3.8vw,58px);line-height:1.16;margin:8px 0 14px}
[lang|="en"] .ppm .thero.op h1{letter-spacing:-.015em}
.ppm .thero.op .lede{font-size:19px;max-width:540px}
.ppm .thero.op .cta{margin-top:22px}
.ppm .op-k{display:flex;align-items:center;gap:12px;margin-top:22px;font-size:17px;font-weight:600;color:#cfd3d8;line-height:1.3}
.ppm .op-k::before{content:"";width:40px;height:4px;background:var(--red);flex:none}

.ppm .op-art{position:relative;min-width:0;color:#fff;font-size:15px;line-height:1.45}

.ppm .op-d,.ppm .op-m{position:relative;z-index:1}
.ppm .op-m{display:none}
.ppm .op-cap{margin-top:16px;padding:2px 14px 2px 0;border-inline-start:4px solid var(--red);padding-inline-start:14px;font-size:15.5px;line-height:1.6;color:#e4e6e9;max-width:620px}
.ppm .op-cap b{color:#fff}

/* a stage: ratio box, SVG and HTML labels in the same units */
.ppm .op-stage{position:relative;width:100%}
.ppm .op-stage>svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.ppm .op-l{position:absolute;transform:translate(var(--tx,0),var(--ty,0));white-space:nowrap;font-size:15px;line-height:1.35}

/* ---------- Tool 1: week x ladder ---------- */
.ppm .op1-grid{position:relative;display:grid;grid-template-columns:132px repeat(7,minmax(0,1fr));grid-template-rows:repeat(4,minmax(62px,auto)) 56px 22px 30px}
.ppm .op1-band{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.16);transition:background .3s}
.ppm .op1-band.hot{background:rgba(216,30,50,.2);border-top-color:rgba(216,30,50,.7)}
.ppm .op1-rung{grid-column:1;align-self:center;padding-inline-end:12px;font-size:15px;font-weight:600;color:#aeb3b9;white-space:nowrap}
.ppm .op1-rung.hot{color:#fff}
.ppm .op1-rung.hot::after{content:"";display:inline-block;width:8px;height:8px;margin-inline-start:8px;background:var(--red);border-radius:50%;vertical-align:middle}
.ppm .op1-col{grid-row:1/6;border-inline-start:1px dashed rgba(255,255,255,.14)}
.ppm .op1-day{grid-row:7;align-self:end;text-align:center;font-size:14px;color:#aeb3b9;white-space:nowrap}
.ppm .op1-ev{position:relative;align-self:center;margin:6px 5px;padding:7px 8px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.35;text-align:center;box-shadow:4px 4px 0 rgba(0,0,0,.35)}
.ppm .op1-ev.un{background:transparent;color:#fff;border:2px solid #fff;box-shadow:none;justify-self:start;width:max-content;max-width:170px}
.ppm .op1-ev{overflow-wrap:normal;word-break:keep-all;hyphens:none}
.ppm .op1-br{grid-row:6;height:14px;margin:0 6px;border:4px solid var(--red);border-top:0;transform-origin:center}
.ppm .op1-cap{margin-top:18px}
.ppm .op1-c{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(5,13px) 16px 22px}
.ppm .op1-c .op1-band{border-top-color:rgba(255,255,255,.1)}
.ppm .op1-c .op1-ev{margin:1px 6px;padding:0;min-height:11px;box-shadow:none}
.ppm .op1-c .op1-ev.un{border-width:2px}
.ppm .op1-c .op1-br{height:10px;border-width:3px;margin:2px 6px 0}
.ppm .op1-c .op1-day{font:600 13px/1 "IBM Plex Sans",ui-monospace,monospace}

/* ---------- Tool 2: track, gates, ways out ---------- */
.ppm .op2-main{stroke:#fff;stroke-width:6;stroke-linecap:round;fill:none}
.ppm .op2-b{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.ppm .op2-b.fix,.ppm .op2-b.wait{stroke:var(--amber)}
.ppm .op2-b.stop{stroke:var(--red)}
.ppm .op2-end.wait{fill:var(--ink);stroke:var(--amber);stroke-width:5}
.ppm .op2-end.fix{fill:none;stroke:var(--amber);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.ppm .op2-end.stop{stroke:var(--red);stroke-width:8;stroke-linecap:round}
.ppm .op2-g{fill:#fff}
.ppm .op2-gl{font-size:16px;font-weight:700;color:#fff}
.ppm .op2-t{font-size:15px;color:#e4e6e9}
.ppm .op2-t b{display:inline-block;margin-inline-end:10px;padding:2px 8px;font-size:14px;font-weight:700;background:var(--amber);color:var(--ink)}
.ppm .op2-t.stop b{background:var(--red);color:#fff}
.ppm .op2-t.go b{background:#fff;color:var(--ink)}
.ppm .op2-trk{position:absolute;inset:0;pointer-events:none}
.ppm .op2-tok{padding:8px 16px;border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:15px;box-shadow:0 0 0 5px var(--ink)}
.ppm .op-m .op2-gl{font-size:13px}
.ppm .op-m .op2-tok{font-size:13px;padding:5px 12px;box-shadow:0 0 0 4px var(--ink)}
.ppm .op-m .op2-main{stroke-width:4}

/* ---------- Tool 3: the sheet and the sentence ---------- */
.ppm .op3-sheet{position:relative;background:var(--bg);color:var(--ink);padding:26px 34px 30px;box-shadow:10px 10px 0 rgba(0,0,0,.35);border-inline-start:6px solid var(--red)}
.ppm .op3-k{font-size:14px;font-weight:700;color:var(--ink2);padding-bottom:12px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.ppm .op3-s{font-size:clamp(20px,1.75vw,25px);line-height:2.45;font-weight:500;color:var(--ink)}
.ppm .op3-code{font:600 .85em/1 "IBM Plex Sans",ui-monospace,monospace;padding:3px 6px;border:1.5px solid var(--ink);white-space:nowrap}
[dir="rtl"] .ppm .op3-code{font-family:"IBM Plex Sans Arabic",sans-serif;font-size:.9em}
.ppm .op3-sw{position:relative;display:inline-block;line-height:1.2;vertical-align:baseline;white-space:nowrap}
.ppm .op3-sw s{position:absolute;bottom:calc(100% + 1px);inset-inline-start:0;font-size:14px;font-weight:600;line-height:1.1;color:var(--ink2);text-decoration:none;white-space:nowrap;
  background:linear-gradient(var(--red),var(--red)) no-repeat 0 55%/100% 2px}
.ppm .op3-sw b{display:inline-block;padding:2px 8px;background:var(--ink);color:#fff;font-weight:600}
.ppm .op3-sw.cut b{min-width:4.2em}
.ppm .op-m .op3-sheet{padding:14px 16px 16px;box-shadow:6px 6px 0 rgba(0,0,0,.35)}
.ppm .op-m .op3-k{font-size:13px;padding-bottom:8px}
.ppm .op-m .op3-s{font-size:16px;line-height:2.5}
.ppm .op-m .op3-sw s{font-size:13px}

/* ---------- Tool 4: rings ---------- */
.ppm .op4-r{fill:none;stroke:rgba(255,255,255,.55);stroke-width:1.5}
.ppm .op4-r.knows{fill:rgba(216,30,50,.28);stroke:var(--red);stroke-width:2.5}
.ppm .op4-core{fill:#fff}
.ppm .op4-msg{stroke:#fff;stroke-width:3;fill:none}
.ppm .op4-id{stroke:var(--red);stroke-width:10;fill:none}
.ppm .op4-stop{stroke:var(--red);stroke-width:6;stroke-linecap:round}
.ppm .op4-you{font-weight:700;color:var(--ink);font-size:15px}
.ppm .op4-ring{white-space:normal;text-align:center;font-size:15px;font-weight:600;color:#e4e6e9;line-height:1.3}
.ppm .op4-ring.knows{color:#fff}
.ppm .op4-tk{font-size:14px;font-weight:700;letter-spacing:0}
.ppm .op4-tk.id{color:#fff;background:var(--red);padding:1px 8px}
.ppm .op4-tk.msg{color:#fff}
.ppm .op-m .op4-you,.ppm .op-m .op4-ring{font-size:13px}
.ppm .op-m .op4-msg{stroke-width:2}
.ppm .op-m .op4-id{stroke-width:7}
.ppm .op4-cap{margin-top:14px}

/* ---------- motion: one entrance per opener, only when it can be seen ---------- */
@media (prefers-reduced-motion:no-preference){
  /* 1: incidents land on their days in time order, then the bracket joins them and the rung lights */
  .ppm .op-play .op1-ev{animation:opland .55s calc(.35s + var(--i) * .3s) var(--ease) backwards}
  .ppm .op-play .op1-br{animation:opbar .6s 1.75s var(--ease) backwards}
  .ppm .op-play .op1-band.hot,.ppm .op-play .op1-rung.hot{animation:ophot .7s 2.2s ease backwards}
  .ppm .op-play .op1-cap{animation:opfade .6s 2.35s ease backwards}
  /* 2: the channel rides the track; each gate opens as it arrives; then the ways out draw */
  .ppm .op-play .op2-trk{animation:opride 1.9s .35s cubic-bezier(.45,0,.25,1) backwards}
  .ppm .op-play .op2-g.up{animation:opgateu .35s calc(.75s + var(--i) * .45s) var(--ease) backwards}
  .ppm .op-play .op2-g.dn{animation:opgated .35s calc(.75s + var(--i) * .45s) var(--ease) backwards}
  .ppm .op-play .op2-b{stroke-dasharray:1;animation:opdraw .8s calc(1.9s + var(--i) * .2s) var(--ease) backwards}
  .ppm .op-play .op2-t,.ppm .op-play .op2-end{animation:opfade .5s 2.5s ease backwards}
  /* 3: bars sweep over the identifying words, carrying the safer wording */
  .ppm .op-play .op3-sw b{animation:opsweep .55s calc(.6s + var(--i) * .35s) var(--ease) backwards}
  .ppm .op-play .op3-sw s{animation:opstrike .4s calc(.75s + var(--i) * .35s) ease backwards}
  [dir="rtl"] .ppm .op-play .op3-sw b{animation-name:opsweepr}
  /* 4: rings spread from you; the message runs out to the public, the identity stops at the intermediary */
  .ppm .op-play .op4-r{animation:opring .7s calc(.25s + var(--i) * .18s) var(--ease) backwards}
  .ppm .op-play .op4-ring{animation:opfade .45s calc(.55s + var(--i) * .18s) ease backwards}
  .ppm .op-play .op4-msg{stroke-dasharray:1;stroke-dashoffset:0;animation:opdraw 1.3s 1.25s var(--ease) backwards}
  .ppm .op-play .op4-id{stroke-dasharray:1;animation:opdraw .6s 1.25s var(--ease) backwards}
  .ppm .op-play .op4-stop{animation:opfade .3s 1.8s ease backwards}
  .ppm .op-play .op4-tk,.ppm .op-play .op4-cap{animation:opfade .5s 2s ease backwards}
}
/* after the rest of the page settles (proto.js, 4s), nothing is left mid-motion */
.pp-settled .ppm .op-play *{animation:none!important}
@keyframes opfade{from{opacity:0}}
@keyframes opland{from{opacity:0;transform:translateY(-28px)}}
@keyframes opbar{from{transform:scaleX(0)}}
@keyframes ophot{from{background:transparent;color:#aeb3b9}}
@keyframes opride{from{transform:translateX(var(--dx))}}
@keyframes opgateu{from{transform:translateY(20px)}}
@keyframes opgated{from{transform:translateY(-20px)}}
@keyframes opdraw{from{stroke-dashoffset:1}}
@keyframes opsweep{from{clip-path:inset(0 100% 0 0)}}
@keyframes opsweepr{from{clip-path:inset(0 0 0 100%)}}
@keyframes opstrike{from{background-size:0 2px}}
@keyframes opring{from{transform:scale(.15);opacity:0}}

/* the drawing bleeds to the screen edge on the far side where lines run on (tools 2 and 4) or the page slides in (3) */
@media (min-width:1100px){
  .ppm .op-2,.ppm .op-3,.ppm .op-4{margin-inline-end:calc(-1 * max(32px, (100vw - 1276px) / 2))}
  .ppm .op-3 .op3-sheet{border-inline-end:0}
}
@media (max-width:1099px){
  .ppm .thero.op .wrap{grid-template-columns:1fr;gap:28px}
  .ppm .op-art{max-width:780px}
}
/* phone: the compact drawing, after the button, so the reading starts soon */
@media (max-width:640px){
  .ppm .thero.op .wrap{gap:20px;padding-top:20px;padding-bottom:26px}
  .ppm .thero.op h1{font-size:34px;margin:4px 0 10px}
  .ppm .thero.op .lede{font-size:17px;line-height:1.7}
  .ppm .op-k{margin-top:14px;font-size:15px}
  .ppm .thero.op .cta{margin-top:16px}
  .ppm .op-d{display:none}
  .ppm .op-m{display:block}
  .ppm .op-cap{font-size:14px;margin-top:10px}
}
.ppm .op1-c .op1-ev.un{width:auto;justify-self:stretch;max-width:none}

/* Tool 2: the Word title under the working name (owner 2026-11-20) */
.ppm .op-sub{font-size:clamp(16px,1.5vw,19px);font-weight:600;color:#c9ccd1;margin:-6px 0 16px;line-height:1.5;max-width:560px}
.ppm .op-sub::before{content:"";display:inline-block;width:22px;height:3px;background:var(--red);vertical-align:middle;margin-inline-end:10px}
