/* ============================================================================
   NUANSE — proofs.css · the pinned proof prints and their case overlay

   Three prints stacked in one place: the section pins, each print's redlines
   draw, and the front one slides away for the next, one print per scroll
   step. Shared by the home page and work/index.html, which carry the same
   section markup; proofs.js drives it.

   Loaded after core.css. The chassis is in core.css.
   ========================================================================== */

/* ============ 4 · WORK ============ */
.work{background:var(--night);color:var(--cream)}
.work-stage{height:100vh;height:100svh;display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:clamp(24px,4vw,64px);
  padding:clamp(90px,12vh,120px) var(--gut) clamp(32px,6vh,56px);overflow:hidden}
.work-copy .lede{margin-top:22px}
.work-count{margin-top:34px;display:flex;align-items:center;gap:14px;color:var(--mute-d)}
.work-count b{color:var(--cream);font-weight:500}
.work-count .bar{flex:0 0 120px;height:1px;background:var(--hair-c);position:relative}
.work-count .bar i{position:absolute;inset:0;background:var(--copper-l);transform-origin:left;
  transform:scaleX(.333)}
.work-hint{color:var(--mute-d);margin-top:14px}
/* the home page's way on to the work index */
.work-all{margin:28px 0 0}
.stack{position:relative;justify-self:center;width:min(430px,34vw);aspect-ratio:4/5.62}
.print{position:absolute;inset:0;cursor:var(--cur-press);outline:none;transform-origin:50% 100%}
/* The card is not a button. The control is the "Proof 01" line inside it — a
   real link or button whose accessible name starts with the words you can see,
   which is what the card could never have. The card keeps the whole-surface
   click; the ring draws around the card, because that is what the control
   opens. No stretched pseudo-element: .print-top is positioned, so one would
   cover the top strip and nothing else. */
.print-go{font:inherit;letter-spacing:inherit;color:var(--frame);font-weight:500;
  background:none;border:0;padding:0;text-decoration:none;cursor:var(--cur-press)}
.print-go:focus-visible{outline:1px dashed var(--copper-l);outline-offset:3px}
@supports selector(:has(*)){
  .print-go:focus-visible{outline:none}
  .print:has(.print-go:focus-visible) .print-paper{outline:1px dashed var(--copper-l);
    outline-offset:6px}
}
.print-paper{position:absolute;inset:0;background:var(--cream);color:var(--navy);padding:12px;
  display:flex;flex-direction:column;gap:10px;box-shadow:0 30px 60px rgba(0,0,0,.35);
  border:1px solid var(--frame)}
.print-paper::before{content:"";position:absolute;inset:5px;border:1px solid var(--frame);
  opacity:.45;pointer-events:none}
/* the three proof frames, as classes rather than style attributes */
.frame-ox{--frame:var(--ox)}
.frame-olive{--frame:var(--olive)}
.frame-royal{--frame:var(--royal)}
.print-top,.print-cap{display:flex;justify-content:space-between;gap:10px;font-family:var(--mono);
  font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);position:relative}
.print-top b{color:var(--frame);font-weight:500}
.print-art{position:relative;flex:1;container-type:size;overflow:hidden;
  border:1px solid rgba(13,26,65,.12)}
/* a real project image, when one is supplied, replaces the drawn art */
.print-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1}
.print-art.has-img .art{display:none}
.redline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;
  z-index:2}
.redline path{fill:none;stroke:var(--copper);stroke-width:2.4;stroke-linecap:round;
  stroke-linejoin:round}
.redline .tag{opacity:0;transform-box:fill-box;transform-origin:50% 50%}
.redline .tag circle{fill:var(--copper-ink)}
.redline .tag text{font-family:var(--mono);font-size:13px;fill:var(--cream);text-anchor:middle;
  dominant-baseline:central;font-weight:500}

/* --- the drawn proof art --- */
.art{position:absolute;inset:0;padding:7cqw;display:flex;flex-direction:column}
.mono-s{font-family:var(--mono);font-size:2.7cqw;letter-spacing:.14em;text-transform:uppercase}
.mono-s.dim{color:var(--mute-d)}
.art-z{background:#F4E6DE;color:var(--ox)}
.z-title{font-family:var(--serif);font-size:17cqw;letter-spacing:-.03em;line-height:.88}
.z-sub{margin-top:2cqw;color:var(--mute)}
.z-sec{margin-top:6cqw;padding-bottom:1.6cqw;border-bottom:1px solid currentColor;display:flex;
  justify-content:space-between}
.z-row{display:flex;justify-content:space-between;gap:3cqw;font-size:3.7cqw;color:var(--navy);
  padding:1.7cqw 0;border-bottom:1px dotted rgba(138,43,29,.32);line-height:1.25}
.z-row span:last-child{font-variant-numeric:tabular-nums;color:var(--ox)}
.art-f{background:var(--cream);color:var(--olive);gap:3cqw}
.f-head{display:flex;justify-content:space-between}
.f-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw;flex:1}
.f-tile{display:grid;place-items:center;position:relative}
.f-tile:nth-child(odd){background:var(--olive);color:var(--blush)}
.f-tile:nth-child(even){background:var(--blush);color:var(--olive)}
.f-tile svg{width:62%}
.f-tile .mono-s{position:absolute;left:2cqw;bottom:1.6cqw;font-size:2cqw}
.f-foot{font-family:var(--serif);font-size:8.4cqw;letter-spacing:-.03em;line-height:.95;
  color:var(--navy)}
.art-g{background:var(--royal);color:var(--cream);gap:3.4cqw}
.g-bar{display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid rgba(252,247,241,.25);padding-bottom:2.6cqw}
.g-bar span:last-child{display:flex;gap:2cqw}
.g-bar i{width:6cqw;height:1.2cqw;background:rgba(252,247,241,.4)}
.g-h{font-family:var(--serif);font-size:9.6cqw;line-height:.98;letter-spacing:-.03em}
.g-strike{position:relative;color:var(--mute-d);display:inline-block}
.g-strike::after{content:"";position:absolute;left:-2%;right:-2%;top:54%;height:.6cqw;
  background:var(--copper-l);transform:rotate(-2deg)}
/* Proof 03 is still in progress, so it carries two small figures from the
   brief instead of a route: the jargon count per draft, and six teams
   joining into one name system. */
.g-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.6cqw;margin-top:auto}
.g-fig{margin:0;border:1px solid rgba(252,247,241,.28);padding:2.4cqw 2.4cqw 2cqw;
  display:flex;flex-direction:column;gap:1.6cqw}
.g-fig svg{display:block;width:100%;height:auto;overflow:visible}
.g-fig figcaption{color:var(--mute-d);font-size:2.1cqw}
.g-fig text{font-family:var(--mono);font-size:7px;letter-spacing:.06em;fill:rgba(252,247,241,.62);
  text-anchor:middle;text-transform:uppercase}
.g-fig .g-v{font-family:var(--serif);font-size:13px;letter-spacing:0;fill:var(--cream)}
.g-base{stroke:rgba(252,247,241,.38);stroke-width:1}
.g-b1{fill:var(--copper-l)}
.g-b0{fill:var(--cream)}
.g-ln{fill:none;stroke:rgba(252,247,241,.5);stroke-width:1.1}
.g-dt{fill:var(--cream)}
.g-nd{fill:var(--copper-l)}
/* in progress: shown, marked up, and not a link */
.print.is-wip{cursor:inherit}
.print-top .wip{font-style:normal;color:var(--copper-l)}

/* ============ REDUCED MOTION ============ */
.rm .work-stage{height:auto;grid-template-columns:1fr;overflow:visible}
.rm .stack{width:min(430px,100%);aspect-ratio:auto;display:flex;flex-direction:column;gap:40px}
.rm .print{position:relative;inset:auto;aspect-ratio:4/5.62}

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  .work-stage{grid-template-columns:1fr;grid-template-rows:auto 1fr;align-items:start;
    padding-top:84px;gap:18px}
  .work-copy .lede,.work-hint{display:none}
  .work-copy .h2{font-size:clamp(40px,11vw,72px)}
  .work-count{margin-top:14px}
  .work-all{margin-top:16px}
  .stack{width:min(78vw,40svh,430px);align-self:center}
  .case-top,.case-grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  .results{grid-template-columns:1fr}
}
