/* Ghostwriting: the client loop. Without JavaScript the six steps are a plain list with every sentence, beside
   a finished board. With it (.is-armed) the list is a stepper as tall as the board: six one-line rows, and one slot
   under them that shows the sentence of the active step. The active step is data-step on the section (1 to 6);
   the board sets it while it draws and a hover, focus or click on a row sets it. Every sentence stays in the page
   for screen readers; only its opacity changes. The board is a decorative illustration (aria-hidden). */
.gw-lead{margin:0 0 32px;max-width:68ch;color:var(--muted);text-wrap:pretty}
.gw-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:48px;align-items:start}
.gw-group{margin:0 0 8px;font-size:var(--t-meta);color:var(--muted)}
.gw-steps{list-style:none;margin:0 0 24px;padding:0;border-top:1px solid var(--line)}
.gw-steps li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.gw-n{font-size:var(--t-meta);font-weight:400;color:var(--muted);line-height:1.6;padding-top:1px}
.gw-steps h3{margin:0;font-size:16px;font-weight:600}
.gw-say{margin:2px 0 0;color:var(--muted)}
.gw-say p{margin:0;text-wrap:pretty}
.gw-say .gw-human{color:var(--accent);font-weight:500}
.gw-visual{margin:0;min-width:0;position:sticky;top:24px}
.gw-replay{color:var(--muted);background:none;border:0;padding:0;min-height:44px;font:inherit;font-size:14px;text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:5px}
.gw-replay:hover{color:var(--ink);text-decoration-color:var(--ink)}
.gw-a.is-armed{--gw-slot:7.5em;--gw-in:220ms;--gw-out:120ms}
.is-armed .gw-grid{align-items:stretch}
.is-armed .gw-visual{position:static;align-self:start}
.is-armed .gw-copy{position:relative;display:flex;flex-direction:column;padding-bottom:var(--gw-slot)}
.is-armed .gw-group{margin:0;padding:0 0 6px 14px}
.is-armed .gw-steps~.gw-group{padding-top:14px}
.is-armed .gw-steps{display:flex;flex-direction:column;flex:2 1 auto;margin:0}
.is-armed .gw-steps~.gw-steps{flex-grow:4}
.is-armed .gw-steps li{display:flex;flex:1 1 auto;min-height:48px;padding:0}
.is-armed .gw-steps :is(li>div,h3){flex:1;display:flex;align-items:stretch}
.gw-step{position:relative;flex:1;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 8px 0 14px;background:none;border:0;color:var(--muted);font:inherit;text-align:left;transform-origin:0 50%;transition:transform 160ms var(--lf-ease)}
.gw-step .gw-n{flex:0 0 20px;padding:0;line-height:inherit}
.gw-step:focus-visible{outline-offset:-3px}
.gw-step:active{transform:scale(.97)}
.gw-step::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--accent);opacity:0;transition:opacity var(--gw-out) var(--lf-ease)}
.is-armed .gw-say{position:absolute;left:0;right:0;bottom:0;margin:0;padding-left:14px;border-left:2px solid var(--accent);color:var(--ink);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity var(--gw-out) var(--lf-ease),transform var(--gw-out) var(--lf-ease)}
:is(.gw-a[data-step="1"] .gw-step[data-step="1"],.gw-a[data-step="2"] .gw-step[data-step="2"],.gw-a[data-step="3"] .gw-step[data-step="3"],.gw-a[data-step="4"] .gw-step[data-step="4"],.gw-a[data-step="5"] .gw-step[data-step="5"],.gw-a[data-step="6"] .gw-step[data-step="6"]){color:var(--ink)}
:is(.gw-a[data-step="1"] .gw-step[data-step="1"],.gw-a[data-step="2"] .gw-step[data-step="2"],.gw-a[data-step="3"] .gw-step[data-step="3"],.gw-a[data-step="4"] .gw-step[data-step="4"],.gw-a[data-step="5"] .gw-step[data-step="5"],.gw-a[data-step="6"] .gw-step[data-step="6"]) .gw-n{color:var(--accent)}
:is(.gw-a[data-step="1"] .gw-step[data-step="1"],.gw-a[data-step="2"] .gw-step[data-step="2"],.gw-a[data-step="3"] .gw-step[data-step="3"],.gw-a[data-step="4"] .gw-step[data-step="4"],.gw-a[data-step="5"] .gw-step[data-step="5"],.gw-a[data-step="6"] .gw-step[data-step="6"])::before{opacity:1;transition-duration:var(--gw-in)}
:is(.gw-a[data-step="1"] li[data-step="1"],.gw-a[data-step="2"] li[data-step="2"],.gw-a[data-step="3"] li[data-step="3"],.gw-a[data-step="4"] li[data-step="4"],.gw-a[data-step="5"] li[data-step="5"],.gw-a[data-step="6"] li[data-step="6"]) .gw-say{opacity:1;transform:none;pointer-events:auto;transition-duration:var(--gw-in);transition-delay:80ms}
html[data-paused=true] :is(.gw-step,.gw-say,.gw-hot),html[data-paused=true] .gw-step::before{transition:none!important}
html[data-paused=true] .gw-step:active{transform:none}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="playing"]) :is(.gw-step,.gw-say,.gw-hot),:root:not([data-motion="playing"]) .gw-step::before{transition:none!important}:root:not([data-motion="playing"]) .gw-step:active{transform:none}}
@media(min-width:1200px){.gw-a.is-armed{--gw-slot:128px}.is-armed .gw-say{font-size:var(--t-read);line-height:1.5}}
@media(max-width:1199.98px){.gw-grid{grid-template-columns:1fr;gap:32px}.gw-visual{position:static;order:-1;max-width:720px}.is-armed .gw-say{bottom:auto;top:calc(100% - var(--gw-slot) + 16px)}}
@media(min-width:520px) and (max-width:1199.98px){.gw-a.is-armed{--gw-slot:88px}}

/* Option A: the green chalkboard (the Proof of work board from portfolio.css, .board).
   Each box draws in chalk, then its words appear, top to bottom, then the loop arrow draws back to Strategy.
   Named illustration exception (DESIGN.md): long chalk durations on the house curve, plays once, never loops. */
/* Two drawings of one board: the wide one beside or above the steps, the tall one under 520px,
   where the wide one would shrink its smallest words under 12px. The tall one stops at 400px wide. */
.gw-board .gw-tall{display:none;max-width:400px;margin:0 auto}
.gw-board .gw-tall .gw-label{font-size:16px}
@media(max-width:519.98px){.gw-board .gw-wide{display:none}.gw-board .gw-tall{display:block}}
.gw-board .gw-label{font-family:var(--font-ui);font-weight:500;font-size:15px;fill:#d3dfbd}
.gw-board .gw-l{fill:none;stroke:#e2e4b8;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.gw-board .gw-l :is(rect,path){stroke-dasharray:1;stroke-dashoffset:0}
/* The active step's box: an accent wash and edge over the chalk box. Not before the board has started to draw. */
.gw-board .gw-hot{fill:var(--accent);fill-opacity:.14;stroke:var(--accent);stroke-width:3;stroke-linejoin:round;opacity:0;transition:opacity var(--gw-out) var(--lf-ease)}
.gw-board :is(.gw-a.is-playing[data-step="1"] [data-step="1"],html[data-paused=true] .gw-a[data-step="1"] [data-step="1"],.gw-a.is-playing[data-step="2"] [data-step="2"],html[data-paused=true] .gw-a[data-step="2"] [data-step="2"],.gw-a.is-playing[data-step="3"] [data-step="3"],html[data-paused=true] .gw-a[data-step="3"] [data-step="3"],.gw-a.is-playing[data-step="4"] [data-step="4"],html[data-paused=true] .gw-a[data-step="4"] [data-step="4"],.gw-a.is-playing[data-step="5"] [data-step="5"],html[data-paused=true] .gw-a[data-step="5"] [data-step="5"],.gw-a.is-playing[data-step="6"] [data-step="6"],html[data-paused=true] .gw-a[data-step="6"] [data-step="6"]) .gw-hot{opacity:1;transition-duration:var(--gw-in)}
@keyframes gw-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes gw-fade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
html[data-paused=false] .gw-a.is-armed:not(.is-playing) .gw-board :is(.gw-t){opacity:0}
html[data-paused=false] .gw-a.is-armed:not(.is-playing) .gw-board .gw-l :is(rect,path){stroke-dashoffset:1}
html[data-paused=false] .gw-a.is-playing .gw-board .gw-l :is(rect,path){animation:gw-draw .7s var(--lf-ease) var(--d) both}
html[data-paused=false] .gw-a.is-playing .gw-board .gw-loop path{animation-duration:1.1s}
html[data-paused=false] .gw-a.is-playing .gw-board .gw-t{animation:gw-fade .5s var(--lf-ease) var(--d) both}
