/* ============================================================================
   NUANSE — process.css · the four stages

   The rail, the docking panels and the stage dots, moved off the home
   page verbatim.

   The .pr-readout rules are carried unused: the live readout was cut from the
   markup in the "cut the 35 strings that explained the page" pass. They move
   with the section rather than being deleted on the way, because deciding the
   readout is gone for good is a content call, not a refactor.

   Loaded after core.css and only by process.html. The chassis — tokens, type,
   nav, cursor, opening frame, next-page link, footer — is in core.css.
   ========================================================================== */

/* ============ 7 · PROCESS ============ */
.process{background:var(--cream)}
.pr-body{display:grid;grid-template-columns:40px minmax(0,1fr);gap:clamp(16px,3vw,48px);
  position:relative}
.pr-rail{position:relative}
.pr-line{position:absolute;top:0;bottom:0;left:50%;width:1px;background:rgba(13,26,65,.16)}
.pr-fill{position:absolute;inset:0;background:var(--copper);transform-origin:top;transform:scaleY(0)}
.rm .pr-fill{transform:none}
.pr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--gap-md)}
.stage{position:relative}
.stage-dot{position:absolute;left:calc(-1 * (clamp(16px,3vw,48px) + 20px));top:34px;width:11px;
  height:11px;margin-left:-5px;border-radius:50%;background:var(--cream);border:1px solid var(--navy);
  transition:background var(--t-mid) var(--ease),border-color var(--t-mid) var(--ease)}
.stage.active .stage-dot{background:var(--copper);border-color:var(--copper)}
.stage-panel{width:min(620px,100%);border:1px solid var(--navy);background:var(--cream);
  padding:clamp(22px,3vw,40px);position:relative;transition:background var(--t-mid) var(--ease)}
.dock-l{margin-right:auto}
.dock-r{margin-left:auto}
.stage-panel .sn{display:flex;justify-content:space-between;color:var(--mute);margin-bottom:26px}
.stage-panel h3{font-family:var(--serif);font-weight:400;font-size:clamp(40px,5vw,64px);
  line-height:.92;letter-spacing:.025em;margin:0 0 18px}
.stage-panel p{margin:0;max-width:48ch;color:var(--navy)}
.stage-panel .out{margin-top:24px;padding-top:14px;border-top:1px dashed rgba(181,101,40,.6);
  display:flex;gap:10px;color:var(--copper-ink)}
.pr-readout{position:sticky;top:110px;align-self:start;border:1px solid var(--navy);
  padding:16px 16px 14px;background:var(--cream)}
.pr-readout .rk{color:var(--mute);margin:0 0 10px}
.pr-readout .rv{overflow:hidden;height:1.5em}
.pr-readout .rv span{display:block}
.pr-readout .rmeta{margin:12px 0 0;color:var(--mute);border-top:1px solid rgba(13,26,65,.15);
  padding-top:10px}
.pr-readout .rmeta b{color:var(--navy);font-weight:500}

/* ============ THE STAGE YOU ARE READING ============
   The note asked for the page to be more dynamic. It already knew which
   stage you were on - process.js has set .active on it since this section
   moved off the home page - and the only thing that said so was an 11px dot.

   So the active panel carries the page: its rule goes navy, its heading and
   its output line come up to full strength, and the three you are not
   reading sit back. Nothing new is claimed and nothing moves on its own;
   what changes is that scrolling the page now does something visible. */
.stage-panel{opacity:.55;transition:opacity var(--t-mid) var(--ease),
  border-color var(--t-mid) var(--ease),transform var(--t-mid) var(--ease)}
.stage.active .stage-panel{opacity:1;border-color:var(--navy)}
.stage-panel{border-color:rgba(13,26,65,.28)}
.stage.active .stage-panel .out{color:var(--copper-ink)}
.stage-panel .out{color:var(--mute)}
/* reduced motion gets the same information without the fade: every panel is
   legible from the first frame and the dot still marks the one you are on */
.rm .stage-panel{opacity:1;transition:none}


/* ============ THE FIGURES ============
   Each stage gets a pen drawing in the half its panel leaves empty: the audit
   under a loupe, the brief being signed, a redline on a pair of letters, the
   monthly numbers. Navy hairlines, copper for the marks a person made. They
   follow the panel's lead: quiet until their stage is the one being read. */
.stage-art{position:absolute;top:50%;margin:0;width:min(340px,calc(100% - 620px - 48px));
  transform:translate(-50%,-50%);opacity:.45;transition:opacity var(--t-mid) var(--ease);pointer-events:none}
.stage:nth-child(odd) .stage-art{left:calc(620px + (100% - 620px) / 2)}
.stage:nth-child(even) .stage-art{left:calc((100% - 620px) / 2)}
.stage.active .stage-art{opacity:1}
.stage-art svg{display:block;width:100%;height:auto;overflow:visible}
.stage-art figcaption{margin-top:10px;text-align:center;color:var(--mute)}
.stage-art path,.stage-art circle{fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.stage-art .nv{stroke:rgba(13,26,65,.5)}
.stage-art .cu{stroke:var(--copper)}
.stage-art .ln{stroke-dasharray:1;stroke-dashoffset:0}
.stage-art .sa-thick{stroke-width:3}
.stage-art .sa-dash{stroke-dasharray:4 6}
.stage-art .sa-fillc{fill:var(--copper)}
.stage-art .sa-slit{stroke:var(--cream);stroke-width:1.4}
.stage-art .sa-sign{stroke-width:2.2;stroke-dasharray:1}
.stage-art .sa-swash{stroke-width:2}
.stage-art .sa-bar{fill:rgba(13,26,65,.1)}
.stage-art .sa-dot{fill:var(--copper);stroke:none}
.stage-art .sa-n{font-family:var(--serif);font-size:20px;fill:var(--copper-ink)}
.stage-art .sa-av{font-family:var(--serif);font-size:150px;letter-spacing:-.02em;fill:var(--navy)}
.stage-art .sa-seal-t{font-family:var(--mono);font-size:9px;letter-spacing:.2em;fill:var(--copper-ink)}

/* ============ RESPONSIVE ============ */
@media (max-width:1100px){
  .pr-body{grid-template-columns:32px minmax(0,1fr)}
  .pr-readout{grid-column:1/-1;grid-row:1;position:sticky;top:70px;z-index:3;display:flex;
    justify-content:space-between;align-items:center;gap:12px;padding:10px 14px}
  .pr-readout .rk,.pr-readout .rmeta{margin:0;border:0;padding:0}
  .pr-readout .rmeta{display:none}
  .stage-dot{left:calc(-1 * (clamp(16px,3vw,48px) + 16px))}
}
/* under 1000px there is no empty half to fill: the figure follows its panel,
   small, on the side the panel does not sit */
@media (max-width:1000px){
  .stage-art{position:static;transform:none;width:min(220px,62%);margin:18px 0 0;opacity:1}
  .stage:nth-child(odd) .stage-art{margin-left:auto}
  .stage:nth-child(even) .stage-art{margin-right:auto}
}
