/* The Swiss Army knife (v3.1). Each story section opens with a labeled tool marker (p.kt[data-kt 1..5] > .kt__ic + .kt__t);
   the closer holds the knife (src/partials/knife.html): one SVG (two pivots, five tapered steel blades with etched tools,
   a gold handle with the saguaro badge) plus real HTML labels at the blade tips, a phone legend and the caption.
   The tools are CSS masks of 24px line icons (same 1.9 stroke as icons.html). Business side (default): paper, clock,
   wrench, flag, people. Home side (body.pillar-home): calendar, lock, camera, remote, house.
   knife.js adds .kn--armed (blades folded) on pages with markers and plays the assembly once the whole knife is on
   screen; without JS, in still mode, under reduced motion and on pages without markers the knife rests assembled with
   every label. Surfaces: light, gold, dark; knife.js writes data-kn-on from the real background, the class fallbacks
   below cover a page without JS. */

:root{
  --kt-b1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.8h8.2L18.5 7v14.2H6z'/%3E%3Cpath d='M14 3v4.3h4.3M9 11.5h6.5M9 15h6.5M9 18.2h4'/%3E%3C/svg%3E");
  --kt-b2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 7.4V12l3.1 2'/%3E%3C/svg%3E");
  --kt-b3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
  --kt-b4:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 21V3.8M5.5 4.5h11.5l-2.2 4 2.2 4H5.5'/%3E%3C/svg%3E");
  --kt-b5:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.4'/%3E%3Cpath d='M2.8 20c.6-3.6 3.1-5.6 6.2-5.6s5.6 2 6.2 5.6M15.4 4.9a3.4 3.4 0 0 1 0 6.3M17.6 14.6c2 .7 3.3 2.6 3.7 5.4'/%3E%3C/svg%3E");
  --kt-h1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1.8'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M8 14h.01M12 14h.01M16 14h.01M8 17h.01M12 17h.01'/%3E%3C/svg%3E");
  --kt-h2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3M12 14.5v2.4'/%3E%3C/svg%3E");
  --kt-h3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3.3'/%3E%3C/svg%3E");
  --kt-h4:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7.3' y='2.5' width='9.4' height='19' rx='3'/%3E%3Ccircle cx='12' cy='8' r='2.4'/%3E%3Cpath d='M10.2 13.8h.01M13.8 13.8h.01M10.2 17.2h.01M13.8 17.2h.01'/%3E%3C/svg%3E");
  --kt-h5:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v6c0 4.5-3.4 8.2-8 9-4.6-.8-8-4.5-8-9V6z'/%3E%3Cpath d='m8.6 12.2 2.4 2.4 4.6-4.8'/%3E%3C/svg%3E");
}

/* ---------- the tool symbol (markers, labels and the legend share it) ---------- */
.kt__ic::after,.kt:empty,.kn-ico{--kt-i:var(--kt-b1);display:block;background-color:currentColor;
  -webkit-mask:var(--kt-i) center/contain no-repeat;mask:var(--kt-i) center/contain no-repeat}
.kt[data-kt="2"],.kn-ico[data-kt="2"]{--kt-i:var(--kt-b2)}
.kt[data-kt="3"],.kn-ico[data-kt="3"]{--kt-i:var(--kt-b3)}
.kt[data-kt="4"],.kn-ico[data-kt="4"]{--kt-i:var(--kt-b4)}
.kt[data-kt="5"],.kn-ico[data-kt="5"]{--kt-i:var(--kt-b5)}
.kt[data-kt="1"]{--kt-i:var(--kt-b1)}
.pillar-home .kt[data-kt="1"],.pillar-home .kn-ico[data-kt="1"]{--kt-i:var(--kt-h1)}
.pillar-home .kt[data-kt="2"],.pillar-home .kn-ico[data-kt="2"]{--kt-i:var(--kt-h2)}
.pillar-home .kt[data-kt="3"],.pillar-home .kn-ico[data-kt="3"]{--kt-i:var(--kt-h3)}
.pillar-home .kt[data-kt="4"],.pillar-home .kn-ico[data-kt="4"]{--kt-i:var(--kt-h4)}
.pillar-home .kt[data-kt="5"],.pillar-home .kn-ico[data-kt="5"]{--kt-i:var(--kt-h5)}
.kt__ic::after{content:"";--kt-i:inherit}

/* ---------- the marker (contract section 1): first child of a story heading block.
   A 48px gold ring holding a 34px tool, its words to the right in eyebrow caps. Light: gold ring, charcoal words;
   gold sections: night; dark (the night home side): gold-hi. ---------- */
.kt{--kt-ring:var(--gold);--kt-ink:var(--charcoal);display:flex;align-items:center;gap:14px;margin:0 0 18px;color:var(--kt-ring)}
.kt__ic{flex:none;width:48px;height:48px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--kt-ring);display:grid;place-items:center;color:var(--kt-ring)}
.kt__ic::after{width:34px;height:34px}
.kt__t{font-family:var(--f-display);font-weight:600;font-size:var(--fs-label);line-height:1.4;letter-spacing:.32em;
  text-transform:uppercase;color:var(--kt-ink);margin:0}
.section--gold .kt,.on-gold .kt,.kt.kt[data-kn-on="gold"]{--kt-ring:var(--night);--kt-ink:var(--night)}
.pillar-home .kt,.kt.kt[data-kn-on="dark"]{--kt-ring:var(--gold-hi);--kt-ink:var(--gold-hi)}
.kt.kt[data-kn-on="light"]{--kt-ring:var(--gold);--kt-ink:var(--charcoal)}
/* a bare marker from before v3.1 (span.kt, no children) still draws as the plain tool */
.kt:empty{width:46px;height:46px;color:var(--kt-ring)}
@media (max-width:600px){
  .kt{gap:12px;margin-bottom:14px}
  .kt__ic{width:42px;height:42px}
  .kt__ic::after{width:30px;height:30px}
  .kt__t{letter-spacing:.24em;font-size:12.5px}
}

/* ---------- the knife (v3.2): figure > stage (svg + labels), phone legend, caption, Replay.
   The partial is generated by archive/knife-test-v31-2026-10-17/gen_knife.py (viewBox 560 x 318, --u = one unit).
   Five real tools with shaded steel and their own drop shadow, a gold scale over a steel liner, gold leader lines from
   each tip to a numbered label outside the fan. Phones: no leaders or labels, the svg is cropped to the knife and a
   numbered legend sits under it. ---------- */
.kn{
  --kn-h1:#F6E9C2;--kn-h2:#E3CC93;--kn-h3:#C8AC6E;--kn-h4:#A88B4F;--kn-h5:#7C6230;--kn-edge:#6A5427;--kn-hi-o:.85;
  --kn-etch:#6A5427;--kn-etch-lo:rgba(255,255,255,.55);--kn-badge:var(--night);--kn-badge-edge:#6A5427;--kn-mark:var(--gold-hi);
  --kn-chip:var(--night);--kn-chip-ink:var(--cream);--kn-nbg:var(--gold-hi);--kn-nink:var(--night);
  --kn-lead:#A88B4F;--kn-shadow:rgba(17,28,26,.30);--kn-shadow-in:rgba(17,28,26,.42);--kn-ds:rgba(17,28,26,.30);
  display:block;width:min(100%,640px);margin:0;position:relative;user-select:none}
.section--gold .kn,.on-gold .kn,.kn.kn[data-kn-on="gold"]{
  --kn-h1:#56645F;--kn-h2:#2E3C39;--kn-h3:#18231F;--kn-h4:#0C1412;--kn-h5:#040807;--kn-edge:#020403;--kn-hi-o:.35;
  --kn-etch:var(--gold-hi);--kn-etch-lo:rgba(0,0,0,.5);--kn-badge:var(--night);--kn-badge-edge:var(--gold-hi);--kn-mark:var(--gold-hi);
  --kn-chip:var(--night);--kn-chip-ink:var(--cream);--kn-nbg:var(--gold-hi);--kn-nink:var(--night);
  --kn-lead:var(--night);--kn-shadow:rgba(17,28,26,.34);--kn-shadow-in:rgba(17,28,26,.5);--kn-ds:rgba(17,28,26,.34)}
.pillar-home .kn,.kn.kn[data-kn-on="dark"]{
  --kn-h1:#FAEDC6;--kn-h2:#EAD49D;--kn-h3:#CDB176;--kn-h4:#A88B4F;--kn-h5:#76602F;--kn-edge:#5C4A22;--kn-hi-o:.85;
  --kn-etch:#5C4A22;--kn-etch-lo:rgba(255,255,255,.5);--kn-badge:var(--night);--kn-badge-edge:#5C4A22;--kn-mark:var(--gold-hi);
  --kn-chip:var(--gold-hi);--kn-chip-ink:var(--night);--kn-nbg:var(--night);--kn-nink:var(--gold-hi);
  --kn-lead:var(--gold-hi);--kn-shadow:rgba(0,0,0,.55);--kn-shadow-in:rgba(0,0,0,.7);--kn-ds:rgba(0,0,0,.5)}
.kn.kn[data-kn-on="light"]{
  --kn-h1:#F6E9C2;--kn-h2:#E3CC93;--kn-h3:#C8AC6E;--kn-h4:#A88B4F;--kn-h5:#7C6230;--kn-edge:#6A5427;--kn-hi-o:.85;
  --kn-etch:#6A5427;--kn-etch-lo:rgba(255,255,255,.55);--kn-badge:var(--night);--kn-badge-edge:#6A5427;--kn-mark:var(--gold-hi);
  --kn-chip:var(--night);--kn-chip-ink:var(--cream);--kn-nbg:var(--gold-hi);--kn-nink:var(--night);
  --kn-lead:#A88B4F;--kn-shadow:rgba(17,28,26,.30);--kn-shadow-in:rgba(17,28,26,.42);--kn-ds:rgba(17,28,26,.30)}

/* the two front pages hold the knife in a 560px column; v3.2 wants it up to 640px (shared change request filed) */
@media (min-width:901px){
  body .home-close .closer.home-close__grid{grid-template-columns:minmax(0,1fr) min(100%,640px)}
  body .hm-closer.closer{grid-template-columns:minmax(0,1fr) min(640px,54%)}
}
body .hm-closer>.kn[data-knife]{width:min(100%,640px)}

/* one side's words at a time: business by default, home under body.pillar-home */
.kn .kn-h{display:none}
.pillar-home .kn .kn-b{display:none}
.pillar-home .kn .kn-h{display:inline}

/* the stage: 560 x 318 design units */
.kn__stage{position:relative;aspect-ratio:560/318;container-type:inline-size}
.kn__labs{--u:calc(100cqw/560);position:absolute;inset:0;margin:0;pointer-events:none}
.kn__svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.kn__shadow{fill:var(--kn-shadow)}
.kn__shadow--in{fill:var(--kn-shadow-in)}
.kn__ds{flood-color:var(--kn-ds);flood-opacity:1}

/* steel: dark back edge, a crisp specular band, a lighter ground edge with a bright cutting line */
.kn__bl{--a:var(--ao);transform-box:view-box;transform:rotate(calc(-1deg*var(--a)))}
.kn__steel{fill:url(#kn-steel);stroke:#525C64;stroke-width:.8;stroke-linejoin:round}
.kn__bevel{fill:url(#kn-bev);opacity:.9}
.kn__edge{fill:none;stroke:#fff;stroke-width:.7;stroke-linecap:round}
.kn__spine{fill:none;stroke:#fff;stroke-width:.8;stroke-linecap:round;opacity:.9}
.kn__grind{fill:none;stroke:#7A848B;stroke-width:.6;stroke-linecap:round}
.kn__nick{fill:none;stroke:#6E777E;stroke-width:1.1;stroke-linecap:round}
.kn__wire-o{fill:none;stroke:#4C565E;stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}
.kn__wire-b{fill:none;stroke:#7D878F;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.kn__wire-fo{fill:none;stroke:#4C565E;stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}
.kn__wire{fill:none;stroke:#D3D9DD;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.kn__wire-hi{fill:none;stroke:#fff;stroke-width:.8;stroke-linecap:round;stroke-linejoin:round;transform:translateY(-.7px)}
.kn__spring-o{fill:none;stroke:#4C565E;stroke-width:3.4;stroke-linecap:round}
.kn__spring{fill:none;stroke:#E4E8EB;stroke-width:1.4;stroke-linecap:round}
.kn__screw{fill:url(#kn-rivet);stroke:#4C565E;stroke-width:.8}
.kn__gl{fill:url(#kn-glint);opacity:0;pointer-events:none}
.kn--glint .kn__gl{opacity:1}

/* handle: a steel liner with the tool slot, the gold scale with its bevel, highlight, rivets, shield and engraved name */
.kn__liner{fill:url(#kn-steel);stroke:#4C565E;stroke-width:.8}
.kn__slot{fill:none;stroke:#1C2326;stroke-width:2;stroke-linecap:round;opacity:.42}
.kn__h1{stop-color:var(--kn-h1)}
.kn__h2{stop-color:var(--kn-h2)}
.kn__h3{stop-color:var(--kn-h3)}
.kn__h4{stop-color:var(--kn-h4)}
.kn__h5{stop-color:var(--kn-h5)}
.kn__hd{transform-box:fill-box;transform-origin:50% 50%}
.kn__hd.is-click{animation:kn-click .26s cubic-bezier(.3,.7,.4,1)}
@keyframes kn-click{35%{transform:scale(1.016)}}
.kn__body{fill:url(#kn-hand);stroke:var(--kn-edge);stroke-width:1.2}
.kn__bev{fill:none;stroke:url(#kn-hbev);stroke-width:1.3}
.kn__hi{fill:url(#kn-hshine);opacity:var(--kn-hi-o)}
.kn__rivet{fill:url(#kn-rivet);stroke:#58626A;stroke-width:1}
.kn__rivet-in{fill:none;stroke:#7F8990;stroke-width:.8;opacity:.8}
.kn__badge{fill:var(--kn-badge);stroke:var(--kn-badge-edge);stroke-width:1}
.kn__mark{fill:none;stroke:var(--kn-mark);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.kn__trace{fill:none;stroke:var(--kn-mark);stroke-width:.9;stroke-linecap:round;opacity:.7}
.kn__brand{font-family:var(--f-display);font-weight:700;font-size:9.6px;letter-spacing:3.4px;fill:var(--kn-etch)}
.kn__brand--lo{fill:var(--kn-etch-lo)}

/* leader lines: a gold dot at the tip, a thin line to the label */
.kn__ld path{fill:none;stroke:var(--kn-lead);stroke-width:1.15;stroke-dasharray:1;stroke-dashoffset:0}
.kn__ld circle{fill:var(--kn-lead)}

/* labels: a numbered badge and the word, in real text, outside the fan (--x, --y in design units; t = above, b = below) */
.kn__lab{position:absolute;z-index:3;left:calc(var(--x)*var(--u));top:calc(var(--y)*var(--u));translate:-50% -100%;
  display:inline-flex;align-items:center;gap:calc(6*var(--u));padding:calc(3.2*var(--u)) calc(11*var(--u)) calc(3.2*var(--u)) calc(3.2*var(--u));
  border-radius:999px;background:var(--kn-chip);color:var(--kn-chip-ink);font-family:var(--f-display);font-weight:700;
  font-size:max(11px,calc(11*var(--u)));line-height:1.2;letter-spacing:.01em;white-space:nowrap;box-shadow:0 8px 18px -10px rgba(17,28,26,.7)}
.kn__lab[data-at="b"]{translate:-50% 0}
.kn__n{flex:none;display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--kn-nbg);color:var(--kn-nink);
  font-family:var(--f-display);font-weight:800;font-size:.8em;line-height:1;font-variant-numeric:tabular-nums}

/* legend: phones only */
.kn__leg{display:none;list-style:none;margin:14px 0 0;padding:0;grid-template-columns:1fr 1fr;gap:10px 16px}
.kn__leg li{display:flex;align-items:center;gap:9px;font-family:var(--f-display);font-weight:600;font-size:14px;line-height:1.25;margin:0}
.kn__leg .kn__n{font-size:12px;width:22px;height:22px;background:var(--kn-chip);color:var(--kn-chip-ink)}

/* caption and Replay */
.kn__cap{margin:18px 0 0;max-width:48ch;transition:opacity .6s var(--ease)}
.kn__lead{display:block;font-weight:600;font-size:16px;line-height:1.5}
.kn__sub{display:block;margin-top:6px;font-size:14px;line-height:1.5}
.pillar-home .kn .kn__lead.kn-h,.pillar-home .kn .kn__sub.kn-h{display:block}
.kn__replay{margin:10px 0 0;padding:6px 0;background:none;border:0;color:inherit;cursor:pointer;font-family:var(--f-display);
  font-weight:600;font-size:13px;letter-spacing:.06em;text-decoration:underline;text-decoration-color:var(--kn-lead);
  text-decoration-thickness:1.5px;text-underline-offset:5px;opacity:.8;transition:opacity .3s var(--ease)}
.kn__replay:hover,.kn__replay:focus-visible{opacity:1}
.kn__replay[hidden],html.still .kn__replay{display:none}

@media (max-width:600px){
  .kn__stage{aspect-ratio:428/250;overflow:clip;overflow-clip-margin:16px}
  .kn__svg{left:-15.42%;top:-20%;width:130.84%;height:127.2%;max-width:none}
  .kn__lab,.kn__ld{display:none}
  .kn__leg{display:grid}
  .kn__cap{margin-top:14px}
  .kn__lead{font-size:15px}
}

/* ---------- motion (knife.js), never in still mode. Armed = tools folded, leaders, labels, legend and caption waiting.
   Each tool in turn: .is-in on its leader and label (the line draws, the label lands), then .is-out swings the tool open
   on a spring with a small settle; the handle gets .is-click as it locks. ---------- */
html:not(.still) .kn--armed .kn__bl{transition:transform .62s cubic-bezier(.3,1.3,.5,1)}
html:not(.still) .kn--armed .kn__bl:not(.is-out){--a:var(--a0)}
html:not(.still) .kn--armed .kn__ld path{transition:stroke-dashoffset .36s cubic-bezier(.4,0,.2,1)}
html:not(.still) .kn--armed .kn__ld circle{transition:opacity .2s var(--ease)}
html:not(.still) .kn--armed .kn__ld:not(.is-in) path{stroke-dashoffset:1}
html:not(.still) .kn--armed .kn__ld:not(.is-in) circle{opacity:0}
html:not(.still) .kn--armed .kn__lab{transition:opacity .3s var(--ease),transform .42s var(--ease)}
html:not(.still) .kn--armed .kn__lab:not(.is-in){opacity:0;transform:translateY(calc(6*var(--u)))}
html:not(.still) .kn--armed .kn__lab[data-at="b"]:not(.is-in){transform:translateY(calc(-6*var(--u)))}
html:not(.still) .kn--armed .kn__leg li{transition:opacity .35s var(--ease)}
html:not(.still) .kn--armed .kn__leg li:not(.is-on){opacity:.3}
html:not(.still) .kn--armed .kn__cap{opacity:0}
