:root{
  --cream:#FFFBF5;--white:#FFFFFF;--sunk:#F7F1E7;--cool:#EEF4F4;--ink:#243233;--body:#4B5563;
  --muted:#656C7A;--warm-muted:#726B5E;--line:#E7E1D7;--line2:#DCD3C4;
  --teal:#4C6C6D;--peru:#CD853F;--peru-d:#9E5615;--peru-text:#9E5615;--peach:#E7BB8F;--slate-l:#4C6C6D;--muted2:#656C7A;
  --font:'Manrope',system-ui,sans-serif;--mono:'Spline Sans Mono',ui-monospace,monospace;--shell:1200px;--ease:cubic-bezier(.16,1,.3,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:var(--font);background:var(--cream);color:var(--body);-webkit-font-smoothing:antialiased;overflow-x:hidden;}
.shell{max-width:var(--shell);margin:0 auto;padding:0 clamp(20px,4vw,44px);}
a{color:inherit;text-decoration:none;}
header{position:sticky;top:0;z-index:50;background:rgba(255,251,245,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);}
.nav{height:64px;display:flex;align-items:center;justify-content:space-between;gap:22px;}
.brand{display:flex;align-items:center;gap:9px;} .brand img{display:block;} .brand span{font-size:1.0625rem;font-weight:800;color:var(--ink);letter-spacing:-.01em;}
.navlinks{display:flex;align-items:center;gap:clamp(17px,2.2vw,30px);}
.navlinks a{font-size:0.9375rem;color:var(--body);font-weight:500;} .navlinks a:hover{color:var(--ink);}
.navcta{font-size:0.8125rem;font-weight:700;color:#fff !important;background:linear-gradient(180deg,#A6631F,#95571A);padding:9px 17px;border-radius:8px;box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 6px 14px -8px rgba(150,84,22,.6);}
@media(max-width:860px){.navlinks a:not(.navcta){display:none;}}
.btn{display:inline-flex;align-items:center;gap:9px;font-size:0.9375rem;font-weight:700;padding:13px 24px;border-radius:9px;cursor:pointer;transition:transform .2s var(--ease),box-shadow .25s;}
.btn-peru{color:#fff;background:linear-gradient(180deg,#A6631F,#95571A);border:1px solid #9E5615;box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 10px 22px -10px rgba(150,84,22,.65),0 2px 5px rgba(60,40,20,.16);}
.btn-peru:hover{transform:translateY(-2px);}
.btn-ghost{background:var(--white);color:var(--ink);border:1px solid var(--line2);box-shadow:0 6px 16px -12px rgba(60,40,20,.35);}
.klabel{font-family:var(--mono);font-size:0.8125rem;letter-spacing:.06em;text-transform:uppercase;color:var(--warm-muted);}
.klabel .live{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--peru);margin-right:8px;vertical-align:middle;box-shadow:0 0 0 0 rgba(205,133,63,.5);animation:beacon 2.6s var(--ease) infinite;}
@keyframes beacon{0%{box-shadow:0 0 0 0 rgba(205,133,63,.5)}70%{box-shadow:0 0 0 7px rgba(205,133,63,0)}100%{box-shadow:0 0 0 0 rgba(205,133,63,0)}}
.tinyh{font-family:var(--mono);font-size:0.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--peru-text);}

/* ---- hero: copy held to the shell, instrument panel released to the viewport edge ----
   The left padding reproduces .shell's centring by hand. A real .shell would also cap the
   RIGHT edge, and releasing that edge is the point: it buys the instrument panel back the
   width a shell-width column would have taken from it.

   Measured, so nobody re-derives it: the OLD 6x1 strip rendered each card near 205px at a
   1440 viewport. Confining a 3x2 grid to a shell column would have dropped that to ~150px.
   Bleeding recovers most of it but not all, so the panel alone was NOT enough to fix the
   sub-11px labels. The label sizes in the SVG were raised as well. Both were needed. */
.hero{padding:clamp(18px,1.7vw,24px) 0 clamp(14px,1.2vw,18px);
background:var(--sunk);border-bottom:1px solid var(--line);overflow:hidden;}
.hero-inner{display:grid;grid-template-columns:minmax(300px,37%) minmax(0,1fr);
gap:clamp(24px,3vw,52px);align-items:center;
padding-left:max(20px,calc((100% - 1120px) / 2 + 20px));}
.hero-copy h1{font-family:var(--font);font-weight:800;color:var(--ink);letter-spacing:-.03em;
line-height:1.03;font-size:clamp(34px,3.6vw,52px);max-width:15ch;margin-bottom:20px;}
.hero-copy .lede{font-size:1.0625rem;line-height:1.62;color:var(--body);max-width:44ch;
margin-bottom:30px;}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
.hero-panel{position:relative;min-width:0;}
/* Rule 4 of .impeccable.md: a number on the page is a claim. These instruments are not
   measured client results and must never be readable as such. */
.panel-note{font-family:var(--mono);font-size:0.6875rem;color:var(--muted2);margin-top:8px;}

/* Below the split the panel stops bleeding and sits under the copy at full width, so the
   instruments keep the whole column rather than 58% of it. */
@media(max-width:1000px){
  .hero-inner{grid-template-columns:1fr;gap:34px;
  padding-left:clamp(20px,5vw,44px);padding-right:clamp(20px,5vw,44px);}
  .hero-copy h1{max-width:18ch;}
}

/* ---- phone: index instead of diagram ----
   Under ~700px the six-card grid cannot carry legible labels at any scale, so the diagram is
   swapped for a navigable index rather than shrunk into illegibility. */
.hero-index{display:none;}
@media(max-width:700px){
  .hero-panel{display:none;}
  .hero-index{display:block;list-style:none;margin:0;padding:0;
  border-top:1px solid var(--line2);}
  .hero-index li{display:grid;grid-template-columns:2.6ch 1fr;gap:2px 12px;
  align-items:baseline;padding:14px 10px;border-bottom:1px solid var(--line2);}
  .hero-index span{font-family:var(--mono);font-size:0.6875rem;color:var(--muted2);}
  .hero-index a{font-size:1.0625rem;font-weight:700;color:var(--ink);}
  .hero-index em{grid-column:2;font-style:normal;font-family:var(--mono);font-size:0.6875rem;
  color:var(--muted2);}
  .hero-index .found a{color:var(--peru-text);}
}

/* svg map */
.maprect{fill:var(--white);stroke:var(--line);stroke-width:1;}
.maprect.live{stroke:rgba(205,133,63,.5);}
.maprect.dead{fill:var(--sunk);stroke:var(--line2);}
.nlab{font-family:var(--mono);font-size:0.8125rem;fill:var(--ink);}
.edge{fill:none;stroke:var(--line2);stroke-width:1.5;}
.edge.live{stroke:var(--peru);stroke-width:2;}
.edge.dead{stroke:var(--slate-l);stroke-width:1.5;stroke-dasharray:5 5;}
.flowdash{fill:none;stroke:var(--peru);stroke-width:2;stroke-dasharray:6 10;animation:march 1.4s linear infinite;}
@keyframes march{to{stroke-dashoffset:-16;}}
.pulse{fill:var(--peru);}
.port{fill:var(--white);stroke:var(--peru);stroke-width:2;} .port.dead{stroke:var(--slate-l);}
@media(prefers-reduced-motion:reduce){.flowdash{animation:none;} .klabel .live{animation:none;}}

/* .panel-note lays the replay control and the caption on one line. The .replay button
   itself is already styled in index.html; do NOT restyle it here, the inline block wins
   anyway and a second definition is just drift. */
.panel-note{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;}

/* Skip link and main landmark. Neither existed: 19 of 20 pages had header, content, footer
   and no <main>, so a screen reader had no way past the nav and a keyboard user tabbed the
   whole nav on every page. The link is off-screen until focused. */
.skiplink{position:absolute;left:-9999px;top:0;z-index:100;background:var(--white);color:var(--ink);
  font-weight:700;font-size:0.875rem;padding:10px 16px;border:1px solid var(--line2);border-radius:0 0 8px 0;}
.skiplink:focus{left:0;}

/* ---- the layer-page instrument pair ----
   She called these "the main event": they are the only real instrument on a layer page, and
   they were a 760px panel sitting in a 1032px column with the right side empty. Now they run
   the full column and carry the page.
   The card entrance is CSS; what happens INSIDE the governed svg is /_h/instr.js, which reads
   the geometry rather than hard-coding a keyframe per layer. */
.ba2{max-width:none;gap:clamp(16px,2vw,28px);}
.ba2 figure{padding:clamp(18px,2.2vw,30px);opacity:0;transform:translateY(14px);
  transition:opacity .62s cubic-bezier(.22,1,.36,1),transform .62s cubic-bezier(.22,1,.36,1),
             border-color .3s ease,box-shadow .3s ease;}
.ba2.in figure{opacity:1;transform:none;}
.ba2.in figure.g{transition-delay:.18s;}            /* governance arrives second */
.ba2 figure.g{box-shadow:0 1px 2px rgba(60,40,20,.05),0 18px 34px -24px rgba(60,40,20,.42);}
.ba2 .st{font-size:0.75rem;margin-bottom:14px;}
.ba2 figcaption{font-size:0.75rem;margin-top:14px;line-height:1.55;}
.band{padding:clamp(44px,5.6vw,86px) 0;}
@media(max-width:820px){.ba2 figure{padding:18px;}}
@media(prefers-reduced-motion:reduce){
  .ba2 figure{opacity:1;transform:none;transition:none;}
  .ba2.in figure.g{transition-delay:0s;}
}
