/*
  dominikdrag.com portfolio, the "Drawing office" look (/assets/site-office-20261118/site.css). Main site
  since 18 November 2026. Edit this file by hand; bump its ?v= tag (first 12 hex of its SHA-256) in every
  page. The unlisted preview at /site-office-20261118/ gets a copy from previews/site-office-20261118/build.py.

  THESIS      The B1 "Drawing" look, staged. The page is a drawing office seen sheet by sheet: every
              section is a full-width field in one drafting material, and real things lie or stand on it.
  MATERIALS   Blueprint blue #12389E (first screen, contact), whiteprint paper #F4F6FD (the floor between
              fields: apps, measurements, footer), yellow trace #F5C83A (consulting), a navy pegboard
              #0B2468 (ddskills). Redline red #CF3520 is only for stamps and review marks, on paper or trace.
  PROPS       Real output only: the portrait as a signed print, the engagement plan as a sheet that lies
              across the edge of the first field, six app screens in drawn phones, the app icons, the real
              folder names of the skills. Diagrams are geometry in the plan's own line language.
  VOICES      Sofia Sans as on the main site (Extra Condensed capitals, Condensed labels, regular reading).
              Newsreader Italic is the quiet voice, for asides only: the greeting, "Not to scale", the notes.
  RULES KEPT  Square corners, 1.5px lines, hatching for my own work, the frame line round the page, the
              dimension line after section headings, the title block. Phones and app icons keep their corners.
  MOTION      Each scene plays once when it arrives (html.motion-on.reveal-ready, set by the head script and
              scenes.js) and rests in a correct state without it. Nothing is tied to scroll position.
*/
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Italic-Latin.woff2") format("woff2"); font-style: italic; font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --blue: #12389E;
  --navy: #0B2468;
  --paper: #F4F6FD;
  --trace: #F5C83A;
  --red: #CF3520;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --cond: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --sans: "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --voice: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --frame: clamp(8px, 1.1vw, 16px);
  --margin: clamp(16px, 3.6vw, 52px);
  --pad-sec: clamp(60px, 7vw, 104px);
  --over: clamp(64px, 9vw, 140px);
  --lift: 0 2px 3px rgb(3 12 44 / 0.28), 0 28px 56px -14px rgb(3 12 44 / 0.5);
}

/* ---------- Materials ---------- */
.f-paper, body { --ground: var(--paper); --ink: #12389E; --ink-2: #3550A6; --line: rgb(18 56 158 / 0.5); --line-2: rgb(18 56 158 / 0.2); --wash: rgb(18 56 158 / 0.06); --hatch: rgb(18 56 158 / 0.5); --error: #B4232A; }
.f-blue, .f-navy { --ground: var(--blue); --ink: #FFFFFF; --ink-2: #CBD7FB; --line: rgb(255 255 255 / 0.46); --line-2: rgb(255 255 255 / 0.2); --wash: rgb(255 255 255 / 0.08); --hatch: rgb(255 255 255 / 0.5); --error: #FFC2BC; }
.f-navy { --ground: var(--navy); }
.f-trace { --ground: var(--trace); --ink: #12389E; --ink-2: #243F92; --line: rgb(18 56 158 / 0.6); --line-2: rgb(18 56 158 / 0.26); --wash: rgb(18 56 158 / 0.07); --hatch: rgb(18 56 158 / 0.55); --error: #B4232A; }
.field { background: var(--ground); color: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
body { margin: var(--frame); border: 1.5px solid var(--blue); background: var(--ground); color: var(--ink); font: 18.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--ink); color: var(--ground); }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
input, textarea { caret-color: var(--ink); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font: 600 0.88em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.skip { position: absolute; left: 24px; top: -80px; z-index: 60; background: #FFFFFF; color: var(--blue); padding: 12px 18px; font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.skip:focus { top: 24px; }

.wrap { width: min(100% - 2 * var(--margin), 1320px); margin-inline: auto; }
h1 { font: 650 clamp(50px, 9.4vw, 96px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.004em; }
h2 { display: flex; align-items: center; gap: 18px; font: 650 clamp(34px, 3.8vw, 52px)/0.94 var(--display); text-transform: uppercase; letter-spacing: 0.006em; }
h2::after { content: ""; flex: 1; min-width: 28px; height: 11px; border-right: 1.5px solid var(--line); background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1.5px no-repeat; }
h3 { font: 700 clamp(22px, 2vw, 27px)/1.1 var(--cond); letter-spacing: 0.005em; }
.lead { font-size: clamp(18.5px, 1.5vw, 21px); line-height: 1.48; color: var(--ink-2); max-width: 56ch; }
/* The quiet voice. Asides only. */
.voice { font-family: var(--voice); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 28; text-transform: none; letter-spacing: -0.006em; }
.lead .voice { display: block; margin-top: 0.55em; font-size: 1.09em; line-height: 1.36; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border: 0; border-radius: 0; background: var(--ink); color: var(--ground); font: 750 18px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.07em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 16px; }
.btn:active { transform: scale(0.97); }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.26em; text-decoration-color: var(--line); transition: text-decoration-color 160ms ease; }
.text-link.quiet { font-weight: 500; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px clamp(32px, 5vw, 96px); align-items: end; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-2); }
  .text-link:hover { text-decoration-color: currentColor; }
}

/* ---------- Header strip, on the blueprint ---------- */
.top { border-bottom: 1.5px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px 34px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 21px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.07em; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 21px/1 var(--display); letter-spacing: 0; }
.nav { display: flex; gap: 30px; }
.nav a { font: 600 16.5px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.09em; text-decoration: none; padding: 8px 0; text-underline-offset: 0.36em; text-decoration-thickness: 1.5px; }
.nav a[aria-current] { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } }

/* ---------- 1. First field: the board ----------
   The headline and the signed print share the blueprint. The engagement plan is a sheet of its own that
   lies across the lower edge of the field, half on the blue and half on the paper below. */
.hero { padding-top: clamp(30px, 4vw, 60px); }
.hero-head { display: grid; gap: clamp(26px, 4vw, 72px); align-items: center; }
.hero-main { display: grid; gap: clamp(22px, 2.6vw, 34px); align-content: start; justify-items: start; }
.hero h1 .voice { display: block; margin-bottom: 0.3em; font-size: 0.47em; line-height: 1.08; font-variation-settings: "opsz" 60; letter-spacing: -0.012em; }
.hero-side { display: grid; gap: 26px; justify-items: start; }
.hero-lead { font-size: clamp(18.5px, 1.45vw, 21px); line-height: 1.46; max-width: 60ch; }
/* The print: his photograph on photo paper, signed in the white margin. */
.print { margin: 0; width: 100%; max-width: 330px; justify-self: center; padding: 10px 10px 0; background: #FFFFFF; rotate: 2.4deg; box-shadow: var(--lift); }
.print-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print-sign { display: flex; justify-content: flex-end; padding: 9px 8px 11px; }
.print-sign img { width: 44%; }
@media (min-width: 721px) {
  .p-home .hero-head { grid-template-columns: minmax(0, 1fr) clamp(196px, 24vw, 330px); }
}

.drawing { position: relative; z-index: 2; margin: clamp(40px, 4.6vw, 68px) 0 0; --ground: #0E2F8B; background: var(--ground); color: var(--ink); border: 1.5px solid rgb(255 255 255 / 0.72); box-shadow: var(--lift); }
.plan { --name-w: clamp(76px, 7.4vw, 112px); display: grid; grid-template-columns: var(--name-w) repeat(11, minmax(0, 1fr)); column-gap: 6px; padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.2vw, 30px) clamp(20px, 2.4vw, 32px); }
.ph { grid-row: 1; display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 -3px 4px; padding: 0 8px; border-left: 1.5px solid var(--ink); }
.ph::before, .ph::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.ph b { font: 650 16px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.ph-col { grid-row: 2 / 5; margin: 0 -3px; border-left: 1px solid var(--line-2); pointer-events: none; }
.ph-last { border-right: 1.5px solid var(--ink); }
.ph-col.ph-last { border-right: 1px solid var(--line-2); }
.ln { grid-column: 1; align-self: center; font: 600 16px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; }
/* A step. Solid white is your team, a hatched edge is me, a plain outline is agent work that I review. */
.st { position: relative; z-index: 1; display: grid; align-content: start; gap: 7px; min-height: 96px; margin: 10px 0; padding: 9px 9px 10px; border: 1.5px solid var(--ink); font: 650 clamp(14.5px, 1.16vw, 16.5px)/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; overflow-wrap: break-word; }
.st-n { font: 600 13.5px/1 var(--cond); letter-spacing: 0.06em; }
.st.k-team { background: var(--ink); color: var(--ground); }
.st.k-me { padding: 13px 13px 14px; background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px), var(--ground); }
.st.k-me::before { content: ""; position: absolute; inset: 6px; z-index: -1; background: var(--ground); }
.st-stack { position: relative; z-index: 1; display: grid; gap: 5px; margin: 10px 0; }
.st-stack .st { margin: 0; min-height: 0; grid-template-columns: auto minmax(0, 1fr); gap: 7px; padding: 7px 9px 8px; }
.st-stack .st-n { padding-top: 1px; }
.hand { grid-row: 3; position: relative; z-index: 1; min-height: 50px; display: flex; align-items: center; padding: 6px 4px 6px 11px; font: 600 clamp(13.5px, 1.08vw, 15px)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2); }
.hand::before { content: ""; position: absolute; left: -3.75px; top: -6px; bottom: -6px; width: 1.5px; background: var(--ink); }
.hand::after { content: ""; position: absolute; left: -8px; width: 10px; height: 9px; background: var(--ink); }
.hand.down::after { bottom: -9px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hand.up::after { top: -9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.steps { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.title-block { display: grid; grid-template-columns: 1fr 1.25fr 1.9fr 1fr; border-top: 1.5px solid var(--line); }
.title-block > * { padding: 14px clamp(14px, 1.6vw, 22px) 16px; font-size: 17px; line-height: 1.35; }
.title-block > * + * { border-left: 1.5px solid var(--line); }
.title-block p > span, .tb-keep > span { display: block; margin-bottom: 5px; font: 600 14px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
.title-block b { font-weight: 700; }
.title-block p > span.voice { display: inline; margin: 0; font: italic 400 1.08em/1.3 var(--voice); text-transform: none; letter-spacing: -0.006em; color: var(--ink); white-space: nowrap; }
.tb-keep ul { display: grid; gap: 4px; }
.tb-keep li { position: relative; padding-left: 18px; }
.tb-keep li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 8px; height: 8px; background: var(--ink); }
.tb-legend { display: flex; flex-direction: column; flex-wrap: wrap; align-content: start; justify-content: center; gap: 10px 22px; font: 600 15.5px/1.12 var(--cond); text-transform: uppercase; letter-spacing: 0.07em; }
.tb-legend li { display: inline-flex; align-items: center; gap: 9px; }
.sw { flex: none; width: 28px; height: 16px; border: 1.5px solid var(--ink); }
.sw.k-team { background: var(--ink); }
.sw.k-me { background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 5px); }

/* ---------- 2. Apps: an elevation ----------
   Six bays in the apps' own colours run from frame to frame. Each phone is drawn in ink around a real
   screen and stands on one ground line; the hatching under the line is the drafting mark for ground. */
.apps { padding: var(--pad-sec) 0; }
.bays { margin-top: clamp(36px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bay { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.bay-wall { background: var(--tint); padding: clamp(30px, 3.6vw, 56px) 13% 0; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.phone { position: relative; display: block; max-width: 210px; margin-inline: auto; padding: 3.6%; background: var(--ink); border-radius: 15.5% / 7.2%; transition: transform 500ms var(--settle); }
.phone img { width: 100%; border-radius: 12.6% / 5.8%; }
.phone::after { content: ""; position: absolute; top: 3.1%; left: 50%; width: 27%; height: 2.7%; translate: -50% 0; border-radius: 99px; background: #071433; }
.bay-text { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; align-content: start; align-items: center; padding: 28px clamp(12px, 1.4vw, 22px) 6px; background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px) 0 0 / 100% 11px no-repeat; }
.bay + .bay .bay-text { border-left: 1px solid var(--line-2); }
.app-icon { width: 40px; height: 40px; border-radius: 9px; }
.app-name { font: 700 clamp(21px, 1.8vw, 25px)/1.1 var(--cond); text-decoration: none; }
.app-line { grid-column: 1 / -1; color: var(--ink-2); font-size: 17px; line-height: 1.4; }
.app-store { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; height: 36px; margin-top: 4px; padding: 0 13px; box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.apps-more { margin-top: clamp(28px, 3vw, 44px); }
@media (hover: hover) and (pointer: fine) {
  .bay:hover .phone { transform: translateY(-3.5%); }
  .app-name:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
  .app-store:hover { background: var(--ink); color: var(--ground); }
}

/* ---------- 3. Consulting: on yellow trace ----------
   The main service is a paper sheet with its checks drawn on it. The other three stand on the trace as
   small drawings in place of icons. They are diagrams, not records of a real run. */
.consult { padding: var(--pad-sec) 0; }
.lead-svc { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); box-shadow: var(--lift); rotate: -0.5deg; }
.lead-svc-text { display: grid; gap: 14px; align-content: center; padding: clamp(22px, 2.8vw, 40px); border-left: 1.5px solid var(--line); }
.lead-svc h3 { font-size: clamp(27px, 2.6vw, 36px); }
.lead-svc p { color: var(--ink-2); }
.point h3 a { text-decoration: none; }
.list { display: grid; gap: 10px; margin-top: 4px; }
.list li { position: relative; padding-left: 28px; line-height: 1.4; font-weight: 550; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 13px; height: 13px; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 4.5px); }
.consult-more { margin-top: 30px; }

/* The checks: one task goes in, three things are made for it, the result is stamped. */
.sc-checks { container-type: inline-size; display: grid; align-content: center; padding: clamp(22px, 2.8vw, 40px); }
.ck { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto; align-items: center; }
.ck-task, .ck-list li { font: 650 16px/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; }
.ck-task { max-width: 6.2em; padding: 11px 12px 12px; background: var(--ink); color: var(--ground); }
.ck-wire { position: relative; height: 1.5px; background: var(--ink); transform-origin: 0 50%; }
.ck-wire::after { content: ""; position: absolute; right: -1px; top: -4.5px; width: 9px; height: 10px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ck-list { display: grid; gap: 6px; }
.ck-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px), var(--ground); background-clip: border-box, content-box; white-space: nowrap; }
.tick { flex: none; width: 17px; height: 17px; padding: 1.5px; background: var(--ground); box-shadow: 0 0 0 1.5px var(--ink); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 16; }
.ck-list span { padding: 2px 5px; background: var(--ground); }
.ck-result { position: relative; display: grid; align-content: start; width: 104px; aspect-ratio: 3 / 4; padding: 10px; border: 1.5px solid var(--ink); background: #FFFFFF; font: 600 13.5px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.stamp { display: inline-block; padding: 6px 9px 5px; border: 2.5px solid var(--red); color: var(--red); font: 750 17px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; rotate: -9deg; mix-blend-mode: multiply; }
.ck-result .stamp { position: absolute; left: 50%; top: 52%; translate: -50% -50%; }
@container (max-width: 470px) {
  .ck { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ck-task { max-width: none; }
  .ck-wire { width: 1.5px; height: 22px; transform-origin: 50% 0; }
  .ck-wire::after { right: -4.5px; top: auto; bottom: -1px; width: 10px; height: 9px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
}

.svc-row { margin-top: clamp(44px, 5.4vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(28px, 3.8vw, 60px); }
.svc { display: grid; gap: 10px; align-content: start; }
.svc p { color: var(--ink-2); font-size: 17.5px; }
.sc { position: relative; display: grid; align-content: end; height: 156px; margin-bottom: 14px; }
.sc-cap { font: 600 13.5px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }

/* Native apps: the six icons at the far end of a dimension line from first build to submission. */
.sc-ship { container-type: inline-size; gap: 12px; }
.ship-track { position: relative; display: flex; justify-content: flex-end; align-items: center; height: 60px; padding-right: 4px; }
.ship-track::before { content: ""; position: absolute; left: 4px; top: 50%; width: 46px; height: 46px; translate: 0 -50%; border: 1.5px dashed var(--ink); border-radius: 10px; }
.ship-track img { position: relative; flex: none; width: 46px; height: 46px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ground); }
.ship-track img + img { margin-left: -9px; }
.dim { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-inline: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 5px / 100% 1.5px no-repeat; }
.dim span { padding: 4px 8px 0; }
@container (max-width: 330px) {
  .ship-track::before { content: none; }
}

/* On-device AI and audio: sound goes in and timed lines come out, inside the outline of one laptop. */
.sc-audio { gap: 12px; justify-items: center; }
.dev { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; width: 88%; height: 104px; padding: 12px 14px; border: 1.5px solid var(--ink); border-bottom-width: 0; background: var(--wash); }
.dev::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -7px; height: 7px; border: 1.5px solid var(--ink); background: var(--ground); }
.wave { display: flex; align-items: center; gap: 3px; height: 100%; }
.wave i { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); }
.lines { display: grid; gap: 7px; }
.lines span { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.lines i { display: block; width: var(--w); height: 8px; border: 1px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 5px); transform-origin: 0 50%; }
.sc-audio .sc-cap { margin-top: 7px; }

/* Architecture and reliability: a run of checks with the odd failure, and one of them marked in red. */
.sc-runs { gap: 14px; }
.runs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.runs i { position: relative; aspect-ratio: 1; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 5px); }
.runs i.f { border-color: var(--red); background: linear-gradient(45deg, transparent calc(50% - 1.1px), var(--red) calc(50% - 1.1px) calc(50% + 1.1px), transparent calc(50% + 1.1px)), linear-gradient(-45deg, transparent calc(50% - 1.1px), var(--red) calc(50% - 1.1px) calc(50% + 1.1px), transparent calc(50% + 1.1px)), var(--ground); }
.runs i.mark::after { content: ""; position: absolute; inset: -11px; border: 2.5px solid var(--red); border-radius: 50%; }
.sc-runs .sc-cap { color: #9E2110; }

/* ---------- 4. ddskills: the pegboard ----------
   Each skill is a paper tag on its own peg, with the real folder name from the repository on it. */
.tools { padding: var(--pad-sec) 0; background: radial-gradient(circle, rgb(255 255 255 / 0.2) 1.6px, transparent 2.3px) 0 0 / 30px 30px var(--ground); }
.tools-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px clamp(32px, 5vw, 96px); align-items: end; }
.tools-name { display: block; text-transform: none; font-size: clamp(68px, 10vw, 96px); line-height: 0.84; letter-spacing: 0; }
.tools-name::after { content: none; }
.tools-text { display: grid; gap: 18px; justify-items: start; }
.pegs { grid-column: 1 / -1; margin-top: clamp(34px, 4vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px clamp(18px, 2.6vw, 40px); }
.tag { position: relative; rotate: var(--r); transform-origin: 50% 18px; filter: drop-shadow(0 2px 2px rgb(2 8 30 / 0.4)) drop-shadow(0 18px 20px rgb(2 8 30 / 0.4)); transition: rotate 600ms var(--settle); }
.tag::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 18px; width: 8px; height: 8px; translate: -50% -50%; border-radius: 50%; background: #DCE3FA; box-shadow: 0 2px 3px rgb(2 8 30 / 0.6); }
.tag-body { --ground: var(--paper); --ink: #12389E; --ink-2: #3550A6; --line: rgb(18 56 158 / 0.5); position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 50px 22px 26px; background: var(--ground); color: var(--ink); clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px); -webkit-mask: radial-gradient(circle at 50% 18px, transparent 7px, #000 7.6px); mask: radial-gradient(circle at 50% 18px, transparent 7px, #000 7.6px); }
.tag-body::before { content: ""; position: absolute; left: 50%; top: 18px; width: 26px; height: 26px; translate: -50% -50%; border: 1.5px solid var(--line); border-radius: 50%; }
.tag-path { font: 600 12.5px/1.25 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink-2); overflow-wrap: anywhere; }
.tag-body a { font: 700 22px/1.14 var(--cond); text-decoration: none; }
.tag-body a + span { font-size: 17px; line-height: 1.42; color: var(--ink-2); }
.tools-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-top: 14px; }
.tools-old { font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .tag:hover { rotate: calc(var(--r) * -1.4); }
  .tag-body a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
}

/* ---------- 5. Background: measured ----------
   Where the copy gives a before and an after, the bar is drawn to scale: solid for what is left, hatched
   for what was cut. The two totals keep a plain dimension line. */
.bg { padding: var(--pad-sec) 0; }
.figs { margin-top: clamp(36px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px clamp(18px, 2.4vw, 36px); }
.figs li { display: grid; gap: 12px; align-content: start; }
.figs b { font: 650 clamp(52px, 5.6vw, 78px)/0.86 var(--display); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rule { position: relative; display: block; height: 15px; border-inline: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat; }
.rule.scaled { border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 6px); }
.rule.scaled::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--keep); background: var(--ink); }
.figs span { font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.figs-key { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font: 600 14.5px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.figs-key span { display: inline-flex; align-items: center; gap: 8px; }
.figs-key .voice { font-size: 17.5px; color: var(--ink); }
.sw.k-now { background: var(--ink); }
.bg .links { margin-top: clamp(28px, 3vw, 44px); }

/* ---------- 6. Contact: the blueprint again, with the form as a paper sheet ---------- */
.contact { padding: var(--pad-sec) 0 calc(var(--pad-sec) + 8px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 36px clamp(32px, 5vw, 96px); align-items: start; }
.contact-text { display: grid; gap: 18px; }
.contact-text a { font-weight: 650; text-underline-offset: 0.24em; }
.contact .lead .voice { color: var(--ink); }
.form-sheet { padding: clamp(20px, 2.8vw, 40px); box-shadow: var(--lift); rotate: 0.5deg; }
.form { display: grid; gap: 22px; min-width: 0; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ledger-row { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ledger-label { padding: 0; font: 600 15.5px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
fieldset .ledger-label { margin-bottom: 10px; }
.form input:not([type="radio"]), .form textarea { width: 100%; border: 1.5px solid var(--ink); border-radius: 0; background: #FFFFFF; color: var(--ink); font: 400 18px/1.5 var(--sans); padding: 13px 16px; outline: none; transition: background-color 160ms ease, box-shadow 160ms ease; }
.form input:not([type="radio"]) { height: 54px; }
.form textarea { min-height: 150px; resize: vertical; display: block; }
.form input:not([type="radio"]):focus, .form textarea:focus { box-shadow: 0 0 0 2px var(--ink); }
.form ::placeholder { color: var(--ink-2); opacity: 0.9; }
.ledger-row.is-invalid input:not([type="radio"]), .ledger-row.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1.5px var(--error); }
.field-error { font: 600 15px/1.3 var(--sans); color: var(--error); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.topic { position: relative; display: flex; min-width: 0; cursor: pointer; }
.topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
.topic input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.topic span { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line); background: #FFFFFF; font: 600 17px/1.3 var(--sans); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.topic span::before { content: ""; flex: 0 0 15px; height: 15px; border: 1.5px solid currentColor; }
.topic input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.topic input:checked + span::before { background: var(--ground); box-shadow: inset 0 0 0 2.5px var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .topic:hover input:not(:checked) + span { border-color: var(--ink); } }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.form-alert { padding: 14px 16px; border: 1.5px solid var(--error); background: #FFFFFF; color: #9F1F27; font-size: 16px; }
.form-alert a { font-weight: 700; color: inherit; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-note { font-size: 18px; color: var(--ink-2); }
.form [type="submit"][aria-busy="true"] { cursor: progress; opacity: 0.8; }
.sent { display: grid; gap: 10px; justify-items: start; outline: none; }
.sent .status { margin: 4px 0 14px 2px; padding: 9px 14px 7px; border: 3px solid var(--red); color: var(--red); font: 750 26px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.16em; rotate: -6deg; }
.sent p:not(.status) { color: var(--ink-2); }
.sent .text-link { margin-top: 8px; background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }

/* ---------- Footer: the title block, on paper ---------- */
.foot { padding-bottom: clamp(20px, 2.6vw, 34px); }
body:has(.pv) .foot { padding-bottom: 84px; }   /* room for the preview marker */
.foot-fit { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 2.6vw, 34px); }
.foot-name { font: 650 clamp(64px, 13vw, 96px)/0.84 var(--display); text-transform: uppercase; letter-spacing: 0.006em; }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--line); font-size: 17px; }
.foot-row > * { padding: 16px clamp(14px, 1.8vw, 24px); }
.foot-row > * + * { border-left: 1.5px solid var(--line); }
.foot-row p { color: var(--ink-2); max-width: 52ch; }
.foot-row .voice { font-size: 1.08em; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; align-content: center; gap: 8px 24px; }
.foot-links a { text-underline-offset: 0.24em; text-decoration-color: var(--line); }

/* ==========================================================================================
   The other pages. These rules are the main site's own (site.css and work.css of 12 November 2026),
   copied unchanged; they read the material tokens, so they follow whichever field they sit on.
   The staging that is new for this variant comes after them.
   ========================================================================================== */
/* ---------- Shared ---------- */
h4 { margin: 0; }
.nb { white-space: nowrap; }
.br-wide { display: none; }
code { font: 600 0.88em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.inline-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; text-decoration-color: var(--line); transition: text-decoration-color 160ms ease; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px clamp(32px, 5vw, 96px); align-items: start; }
.stack { display: grid; gap: 14px; }
.stack > p:not(.lead) { color: var(--ink-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero.cover { display: grid; align-content: end; min-height: clamp(280px, 40svh, 440px); }
.hero-side .links { margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .inline-link:hover { text-decoration-color: currentColor; } }
/* ---------- Plans ---------- */
.plan { grid-template-columns: var(--name-w) repeat(var(--cols, 11), minmax(0, 1fr)); }
.plan-bare .hand { min-height: 38px; }
.st.k-sub { border-style: dashed; }
/* The stamp on a checked step */
.mk { align-self: end; margin: 2px -9px -10px; padding: 5px 9px 4px; border-top: 1.5px solid var(--ink); font: 650 13px/1 var(--cond); letter-spacing: 0.09em; }
.st-stack .mk { grid-column: 1 / -1; margin: 1px -9px -8px; }
.st-stack .st.k-sub .mk { border-top-style: dashed; }
.sw.k-sub { border-style: dashed; }
.tb-legend { line-height: 1.12; }
.title-block.tb-3 { grid-template-columns: 1fr 2.2fr 1fr; }
.title-block.tb-4 { grid-template-columns: 0.7fr 2fr 1.1fr 1.3fr; }
.title-block.tb-4 > * { font-size: 16.5px; }
.title-block.tb-4 .tb-legend { font-size: 15px; }
.title-block.tb-4 .tb-legend li { align-items: flex-start; }
.plan-list .who.k-agents { border-style: solid; }
.plan-list .who.k-sub { border-style: dashed; }
@media (max-width: 1200px) { .plan-list ul li { grid-template-columns: 104px minmax(0, 1fr); } }
/* ---------- Consulting ---------- */
.svc-index { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--line); }
.svc-index li { display: grid; gap: 8px; align-content: start; padding: 18px clamp(14px, 1.6vw, 22px) 20px; }
.svc-index li + li { border-left: 1.5px solid var(--line); }
.svc-index .ico { margin-bottom: 4px; }
.svc-index a { font: 700 22px/1.12 var(--cond); text-decoration: none; }
.svc-index span { font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.svc .drawing { margin-top: clamp(28px, 3vw, 44px); }
.svc-lists { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 5vw, 96px); align-items: start; }
.svc-lists h3, .svc-card h3 { padding-bottom: 11px; border-bottom: 1.5px solid var(--ink); font: 650 16px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.svc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.take-list li { position: relative; padding-left: 28px; font-weight: 600; }
.take-list li::before { content: ""; position: absolute; left: 0; top: calc(12px + 0.3em); width: 13px; height: 13px; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 4.5px); }
.svc-note { margin-top: 14px; font-size: 16.5px; line-height: 1.42; color: var(--ink-2); }
/* The other three services, side by side */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card { display: flex; flex-direction: column; gap: 18px; padding: 0 clamp(18px, 2.4vw, 36px); }
.svc-card:first-child { padding-left: 0; }
.svc-card:last-child { padding-right: 0; }
.svc-card + .svc-card { border-left: 1.5px solid var(--line); }
.svc-card h2 { display: block; font-size: clamp(30px, 3vw, 40px); }
.svc-card h2::after { content: none; }
.svc-card .lead { font-size: 17.5px; line-height: 1.46; }
.svc-proof { font-weight: 600; font-size: 17.5px; line-height: 1.42; }
.svc-card .svc-list li { font-size: 17.5px; }
.svc-more-link { margin-top: 4px; }
/* Rows that open */
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; }
.fold[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }
.svc-card .fold { border-block: 1.5px solid var(--ink); }
.svc-card .fold > summary { padding: 13px 0 12px; font: 650 16px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.svc-card .fold .svc-list { border-top: 1px solid var(--line); }
.svc-card .fold .svc-list li:last-child { border-bottom: 0; }
.start-steps { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); counter-reset: start; }
.start-steps li { counter-increment: start; display: grid; gap: 9px; align-content: start; padding: 18px clamp(14px, 1.6vw, 22px) 22px; }
.start-steps li + li { border-left: 1.5px solid var(--line); }
.start-steps li::before { content: counter(start); font: 650 clamp(48px, 5vw, 68px)/0.86 var(--display); }
.start-steps p { font-size: 17px; line-height: 1.42; color: var(--ink-2); }
.qa-rows { margin-top: clamp(26px, 3vw, 40px); border-top: 1.5px solid var(--ink); }
.qa-row { border-bottom: 1px solid var(--line); }
.qa-row > summary { padding: 20px 0; }
.qa-row > p { max-width: 70ch; padding: 0 40px 24px 0; }
@media (hover: hover) and (pointer: fine) {
  .svc-index a:hover, .fold > summary:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
}

/* ---------- Work ---------- */
.app { padding: clamp(40px, 5vw, 72px) 0; }
.app + .app { border-top: 1.5px solid var(--line); }
.app-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; }
.app-head .app-icon { width: 64px; height: 64px; border-radius: 14px; }
.app-head .app-text { display: block; }
.app-head h2 { min-height: 44px; font-size: clamp(34px, 3.6vw, 46px); }
.app-head h2 a { text-decoration: none; }
.app-head .app-line { margin-top: 8px; max-width: 72ch; }
.app-note { margin-top: 4px; font-size: 16.5px; color: var(--ink-2); }
.app-links { display: flex; gap: 8px 22px; padding-top: 11px; white-space: nowrap; }
.app-field { margin-top: clamp(22px, 2.6vw, 34px); }
.shots { --gap: clamp(10px, 1.4vw, 20px); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); gap: var(--gap); overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.shot { scroll-snap-align: start; min-width: 0; }
.shot-link { display: grid; gap: 10px; text-decoration: none; }
.shot-pic { display: block; padding: 1.5px; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--tint, #FFFFFF); }
.shot-pic img { width: 100%; }
.shot-cap { font: 650 15.5px/1.15 var(--cond); text-transform: uppercase; letter-spacing: 0.07em; }
.dd { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.dd-intro { display: grid; gap: 14px; justify-items: start; }
.dd-intro h3 { font: 650 clamp(60px, 7.4vw, 88px)/0.86 var(--display); text-transform: uppercase; letter-spacing: 0.004em; }
.dd-status, .old-status { font: 600 15.5px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.dd-group { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 8px 24px; padding: 18px 0 20px; border-top: 1.5px solid var(--ink); }
.dd-group:last-child { border-bottom: 1.5px solid var(--ink); }
.dd-group h4 { padding-top: 4px; font: 650 15.5px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.dd-list { display: grid; gap: 15px; }
.dd-list li { display: grid; gap: 3px; justify-items: start; }
.dd-list li > a:first-child { font: 700 21px/1.15 var(--cond); text-decoration: none; }
.dd-list span { font-size: 17px; line-height: 1.42; color: var(--ink-2); }
.dd-sub { font-size: 16px; text-underline-offset: 0.24em; text-decoration-color: var(--line); }
.lanes { margin: clamp(28px, 3vw, 44px) 0 0; border: 1.5px solid var(--ink); }
.lanes-body { display: grid; gap: 10px; padding: clamp(16px, 2vw, 26px); }
.lane-row { display: grid; grid-template-columns: clamp(96px, 10vw, 140px) minmax(0, 1fr); align-items: center; gap: 12px; }
.lane-name { font: 650 16px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; }
.lane-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; counter-reset: stage; }
.lane-bars li { counter-increment: stage; display: grid; gap: 7px; align-content: start; min-height: 64px; padding: 8px 9px 10px; border: 1.5px solid var(--ink); font: 650 16px/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; }
.lane-bars li::before { content: counter(stage); font: 600 13.5px/1 var(--cond); letter-spacing: 0.06em; }
.lanes figcaption { padding: 14px clamp(16px, 2vw, 26px) 16px; border-top: 1.5px solid var(--line); font-size: 16.5px; line-height: 1.42; color: var(--ink-2); }
.earlier-list { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.old { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px clamp(16px, 2vw, 28px) 4px; }
.old:first-child { padding-left: 0; }
.old + .old { border-left: 1px solid var(--line); }
.old p:not(.old-status) { font-size: 17.5px; line-height: 1.45; }
.bg-line { max-width: 36ch; font: 600 clamp(24px, 2.6vw, 34px)/1.2 var(--cond); }
.bg-note .links { margin-top: 22px; }
@media (hover: hover) and (pointer: fine) {
  .app-head h2 a:hover, .dd-list li > a:first-child:hover, .shot-link:hover .shot-cap { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
}

/* ---------- Devflow ---------- */
.df-note { padding: 14px 16px 15px; border: 1.5px solid var(--line); background: var(--wash); font-size: 17px; line-height: 1.42; }
.df-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px clamp(32px, 5vw, 96px); align-items: start; padding: clamp(36px, 4.4vw, 60px) 0; }
.df-row + .df-row { border-top: 1.5px solid var(--line); }
.df-row h2 { font-size: clamp(28px, 3vw, 40px); }
.df-text { display: grid; gap: 16px; justify-items: start; }
.df-text p { max-width: 66ch; }
.df-list li { font-weight: 500; }
.df-actions { margin-top: 8px; }
.df-source { font-size: 16.5px; color: var(--ink-2); }

/* ---------- About ---------- */
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 88px); align-items: end; }
.a-icon { margin: 0; padding: 10px; border: 1.5px solid var(--ink); }
.a-icon img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.a-hero-text { display: grid; gap: 24px; justify-items: start; }
.hero.a-hero h1 { max-width: none; }
.a-eng, .a-approach, .a-ai-grid, .a-short-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px clamp(32px, 5vw, 96px); align-items: start; }
.a-eng > h2, .a-approach > h2, .a-ai-grid > h2 { grid-row: span 2; }
.a-prose { display: grid; gap: 18px; }
.a-prose p, .a-approach p, .a-ai-side p { max-width: 66ch; }
.a-first, .a-approach-1 { font-size: clamp(20px, 1.75vw, 23.5px); line-height: 1.42; font-weight: 500; }
.a-approach > p { grid-column: 2; }
.a-statement { grid-column: 2; font: 600 clamp(25px, 2.6vw, 34px)/1.18 var(--cond); }
.a-ai-side { grid-column: 2; display: grid; gap: 14px; justify-items: start; }
.a-short-text { display: grid; gap: 18px; justify-items: start; }
.a-short-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.a-facts { margin: 0; border: 1.5px solid var(--ink); }
.a-facts div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 20px; padding: 13px clamp(14px, 1.6vw, 20px) 14px; }
.a-facts div + div { border-top: 1px solid var(--line); }
.a-facts dt, .r-skills dt, .r-meta { font: 600 14.5px/1.25 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.a-facts dt { padding-top: 4px; }
.a-facts dd, .r-skills dd { margin: 0; }
.a-facts-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.a-facts-links a { text-underline-offset: 0.24em; text-decoration-color: var(--line); }

/* ---------- Résumé ---------- */
.r-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 88px); align-items: end; }
.r-title { margin-top: 14px; font: 650 clamp(22px, 2.3vw, 31px)/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; }
.r-reach-wrap { display: grid; gap: 14px; justify-items: start; padding-bottom: 6px; }
.r-focus { font-size: clamp(18.5px, 1.5vw, 21px); font-weight: 650; }
.r-loc { display: block; font-weight: 400; color: var(--ink-2); }
.r-reach { display: grid; gap: 6px; font-style: normal; }
.r-reach-group { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.r-reach a { text-underline-offset: 0.24em; text-decoration-color: var(--line); }
.r-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.r-print { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
.r-sec { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 14px clamp(28px, 4vw, 72px); align-items: start; padding: clamp(32px, 4vw, 52px) 0; }
.r-sec + .r-sec { border-top: 1.5px solid var(--line); }
.r-sec > h2 { display: block; font-size: clamp(27px, 2.6vw, 35px); }
.r-sec > h2::after { content: none; }
.r-body { grid-column: 2; min-width: 0; }
.r-summary { max-width: 68ch; font-size: clamp(19.5px, 1.6vw, 22px); line-height: 1.45; }
.r-skills { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); border-top: 1.5px solid var(--ink); }
.r-skills div { display: grid; gap: 4px; align-content: start; padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.r-skills .r-wide { grid-column: 1 / -1; }
.r-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; padding: 24px 0; }
.r-role + .r-role { border-top: 1px solid var(--line); }
.r-roles .r-role:first-child, .r-role.r-edu { padding-top: 0; }
.r-roles .r-role:last-child, .r-role.r-edu { padding-bottom: 0; }
.r-role h3, .r-org { grid-column: 1; }
.r-org { font-weight: 650; color: var(--ink-2); }
.r-dates { grid-column: 2; grid-row: 1; padding-top: 5px; font: 600 16px/1.2 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.r-role .list { grid-column: 1 / -1; margin-top: 12px; }
.r-role .list li { max-width: 78ch; font-weight: 400; line-height: 1.45; }
.r-role strong { font-weight: 700; }
.r-edu-note { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-2); }
.r-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); border-top: 1.5px solid var(--ink); }
.r-projects + .r-projects { border-top: 0; }
.r-projects li { padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.r-apps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.r-icon { width: 48px; height: 48px; border-radius: 11px; }
.r-projects h3 a { text-decoration: none; }
.r-meta { margin: 4px 0 6px; }
.r-projects p:not(.r-meta) { font-size: 17px; line-height: 1.42; }
.r-consent { max-width: 96ch; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .r-projects h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1001px) {
  .br-wide { display: inline; }
  .hero.a-hero h1 { font-size: clamp(48px, 5.6vw, 80px); }
}
@media (max-width: 1200px) {
  .title-block.tb-3, .title-block.tb-4 { grid-template-columns: 1fr 1fr; }
  .title-block.tb-3 > :last-child { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 1000px) {
  .split, .dd, .df-row, .a-hero-grid, .a-eng, .a-approach, .a-ai-grid, .a-short-grid, .r-head, .r-sec, .svc-cards { grid-template-columns: minmax(0, 1fr); }
  .svc-card, .svc-card:first-child, .svc-card:last-child { padding: 0; }
  .svc-card + .svc-card { margin-top: 44px; padding-top: 44px; border-left: 0; border-top: 1.5px solid var(--line); }
  .a-approach > p, .a-statement, .a-ai-side, .r-body { grid-column: 1; }
  .a-icon { max-width: 300px; }
  .svc-index, .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-index li:nth-child(odd), .start-steps li:nth-child(odd) { border-left: 0; }
  .svc-index li:nth-child(n + 3) { border-top: 1.5px solid var(--line); }
  .start-steps li:nth-child(n + 3) { border-top: 1.5px solid var(--line); }
  .shots { grid-auto-columns: 30%; }
  .earlier-list { grid-template-columns: minmax(0, 1fr); }
  .old, .old:first-child { padding: 20px 0 22px; }
  .old + .old { border-left: 0; border-top: 1px solid var(--line); }
  .hero.cover { min-height: 0; }
}
@media (max-width: 640px) {
  .title-block.tb-3, .title-block.tb-4 { grid-template-columns: minmax(0, 1fr); }
  .title-block.tb-3 > :last-child { grid-column: auto; }
  .svc-index, .start-steps, .svc-lists, .r-skills, .r-projects { grid-template-columns: minmax(0, 1fr); }
  .svc-index li + li, .start-steps li + li { border-left: 0; border-top: 1.5px solid var(--line); }
  .app-head { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 14px; }
  .app-head .app-icon { width: 52px; height: 52px; border-radius: 12px; }
  .app-head h2 { min-height: 0; }
  .app-links { grid-column: 1 / -1; flex-wrap: wrap; padding-top: 6px; }
  .shots { grid-auto-columns: 58%; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .dd-group, .a-facts div, .lane-row { grid-template-columns: minmax(0, 1fr); }
  .lane-row + .lane-row { margin-top: 8px; }
  .lane-bars { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .r-role { grid-template-columns: minmax(0, 1fr); }
  .r-dates { grid-column: 1; grid-row: auto; padding-top: 2px; }
  .hero-act .btn, .r-acts .btn { width: 100%; }
  .pv { gap: 10px; padding-inline: 11px; font-size: 13.5px; }
}

/* ---------- Apps: a main view and its details ---------- */
.w-app { display: grid; grid-template-columns: clamp(220px, 22vw, 290px) minmax(0, 1fr); grid-template-areas: "main head" "main details"; grid-template-rows: auto 1fr; gap: clamp(20px, 2.4vw, 30px) clamp(28px, 3.6vw, 56px); counter-reset: shot; }
.w-app .app-head { grid-area: head; }
.w-main { grid-area: main; }
.w-details { grid-area: details; min-width: 0; }
.w-app .shot-cap { counter-increment: shot; display: flex; gap: 9px; align-items: baseline; }
.w-app .shot-cap::before { content: counter(shot); flex: none; min-width: 1.1em; font: 600 13.5px/1 var(--cond); letter-spacing: 0.06em; color: var(--ink-2); }
.w-label { margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1.5px solid var(--ink); font: 650 16px/1.1 var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.w-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px clamp(10px, 1.2vw, 16px); }
.w-grid .shot-link { gap: 8px; }
.w-grid .shot-cap { font-size: 13.5px; letter-spacing: 0.06em; }
.w-grid .shot-cap::before { font-size: 12.5px; }

/* ---------- DD Skills: one drawing, thirteen parts ---------- */
.w-skills { margin: clamp(28px, 3vw, 44px) 0 0; }
.w-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(14px, 1.6vw, 22px); padding: clamp(18px, 2.2vw, 30px); }
.w-col { display: grid; gap: 24px; align-content: start; }
.w-group .ph { margin: 0 0 10px; border-right: 1.5px solid var(--ink); }
.w-group ol { display: grid; gap: 8px; }
.w-part { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 13px; padding: 12px 14px 13px; border: 1.5px solid var(--ink); }
.w-part .st-n { grid-row: 1 / span 4; padding-top: 3px; font: 600 14px/1 var(--cond); letter-spacing: 0.06em; }
.w-name { grid-column: 2; justify-self: start; font: 650 19.5px/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; text-decoration: none; }
.w-desc { grid-column: 2; font-size: 16px; line-height: 1.38; color: var(--ink-2); }
.w-sub { grid-column: 2; justify-self: start; font-size: 15.5px; text-underline-offset: 0.24em; text-decoration-color: var(--line); }
.w-part code { grid-column: 2; margin-top: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }
.w-skills .tb-title b { display: block; margin-bottom: 3px; font: 650 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) {
  .w-name:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
  .w-part:hover { background: var(--wash); }
}

@media (max-width: 1000px) {
  .w-app { grid-template-columns: clamp(180px, 26vw, 240px) minmax(0, 1fr); }
  .w-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .w-board { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  /* The thirteen parts become rows under their group label, without boxes or folder names. */
  .w-board { padding: 14px 12px 18px; gap: 18px; }
  .w-col { gap: 18px; }
  .w-group .ph { margin-bottom: 2px; }
  .w-group ol { gap: 0; }
  .w-part { padding: 11px 2px 12px; border: 0; border-bottom: 1px solid var(--line-2); gap: 4px 11px; }
  .w-group ol > .w-part:last-child { border-bottom: 0; }
  .w-part code { display: none; }
  .w-desc { font-size: 15.5px; }
  .w-app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "details"; grid-template-rows: auto; }
  .w-main { max-width: 72%; }
  .w-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; margin-inline: calc(-1 * var(--margin)); padding: 0 var(--margin) 14px; scroll-padding-inline: var(--margin); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
  .w-grid .shot { scroll-snap-align: start; }
}

/* ==========================================================================================
   Staging for the whole site: what this variant adds to the rules above.
   ========================================================================================== */
.nav-cta, .menu-btn { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.voice.voice { font-family: var(--voice); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.006em; }
.band, .sec { padding: var(--pad-sec) 0; }
/* A section that is itself the centred column still colours the full width. */
.sec.wrap.field { box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax); }
/* The section under a sheet that lies across the edge of the first field. */
.hero .drawing, .svc-index-wrap { margin-bottom: calc(-1 * var(--over)); }
.after-over { padding-top: calc(var(--over) + var(--pad-sec)); }
.hero { padding-bottom: clamp(48px, 6vw, 88px); }
.p-home .hero, .p-devflow .hero, .p-consulting .hero, .p-work .hero { padding-bottom: 0; }
.p-home .split { align-items: end; }
/* Pegboard navy */
.start, .w-tools, .a-short { background: radial-gradient(circle, rgb(255 255 255 / 0.2) 1.6px, transparent 2.3px) 0 0 / 30px 30px var(--ground); }
@media (min-width: 1001px) {
  body:not(.p-home) .hero-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 5vw, 88px); }
  body:not(.p-home) .hero h1 { font-size: clamp(48px, 6vw, 84px); }
  .br-wide { display: inline; }
}

/* ---------- Consulting ----------
   The four services are a paper sheet across the lower edge of the first field, each with a small drawing.
   The lead service follows on yellow trace with its plan as a laid blueprint; the first steps are four
   cards dealt on the pegboard navy. */
.svc-index-wrap { position: relative; z-index: 2; display: block; margin-top: clamp(36px, 4.4vw, 64px); box-shadow: var(--lift); }
.svc-index { margin-top: 0; border: 0; }
.svc-index li { padding: clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 26px) clamp(20px, 2.2vw, 30px); }
.svc-index .sc { height: 150px; margin-bottom: 12px; }
.sc-ticks .ck-list { gap: 5px; }
/* The index's own rules for "li" and "span" must not reach into the drawings. */
.svc-index .sc span { font-size: inherit; line-height: inherit; color: inherit; }
.svc-index .lines span { font-size: 12px; line-height: 1; }
.svc-index .ck-list li { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 7px; border: 1.5px solid var(--ink); font-size: 14px; }
.sc-ticks .tick { width: 15px; height: 15px; }
.svc-index .ck-list span { padding: 1px 5px; }
.svc-note.voice { font-size: 19px; line-height: 1.36; color: var(--ink); }
.svc-proof.voice { font-size: 20px; line-height: 1.36; }
.start-steps { border: 0; gap: clamp(14px, 1.8vw, 26px); }
.start-steps li:nth-child(n) { --ground: var(--paper); --ink: #12389E; --ink-2: #3550A6; padding: 20px clamp(16px, 1.8vw, 24px) 26px; border: 0; background: var(--ground); color: var(--ink); rotate: var(--r); box-shadow: var(--lift); }

/* ---------- Drawings that run ----------
   Three of the services have a drawing that shows the work happening: sound becoming timed lines inside
   one laptop, two tasks colliding on shared state until a gate lets them through one at a time, and an
   app travelling from first build to the App Store. Each plays once when it arrives and rests in its
   finished state; a tap or a mouse-over plays it again. They are diagrams, not records of a real run.
   The small versions in the Consulting index keep the earlier, simpler drawings. */
.svc-row .sc, .svc-card .sc { height: 188px; }
.svc-card .sc { margin-bottom: 4px; }
.svc .sc-cap, .svc-card .sc-cap { font-size: 13px; line-height: 1; }
.motion-on [data-replay] { cursor: pointer; }
.rewind, .rewind *, .rewind *::before, .rewind *::after { animation: none !important; }

/* Transcription: the waveform runs in like live audio and the lines write themselves out. The words
   are the service's own. */
.sc-live { container-type: inline-size; gap: 12px; justify-items: center; }
.dev.lv { grid-template-columns: minmax(0, 1fr); gap: 9px; align-content: center; width: 87%; height: 134px; padding: 11px 13px 10px; }
.lv-wave { position: relative; height: 40px; }
.lv-bars { display: flex; align-items: center; gap: 2.5px; height: 100%; }
.lv-bars i { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); }
.lv-head { position: absolute; top: -3px; bottom: -3px; left: 100%; width: 1.5px; background: var(--red); opacity: 0; }
.lv-lines { display: grid; gap: 5px; }
.lv-lines li { display: flex; align-items: baseline; gap: 9px; min-width: 0; white-space: nowrap; }
.lv-lines span { flex: none; font: 600 11.5px/1 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lv-lines em { overflow: hidden; font: normal 500 clamp(10px, 4cqw, 13px)/1.2 var(--sans); color: var(--ink); }
.sc-live .sc-cap { margin-top: 7px; }

/* Concurrency: the run of checks with its odd failure, and under it the cause. Two tasks reach the
   shared state together and collide; a gate then lets them through one at a time. */
.sc-race { gap: 9px; }
.sc-race .sc-cap { color: #9E2110; }
.rc { display: grid; grid-template-columns: minmax(0, 1fr) 9px auto; gap: 0 7px; align-items: stretch; margin-top: 5px; padding-right: 9px; }
.rc-lanes { display: grid; gap: 9px; align-content: center; }
.rc-lanes p { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; color: var(--ink); }
.rc-line { position: relative; flex: 1; height: 1.5px; background: var(--ink); transform-origin: 0 50%; }
.rc-line::after { content: ""; position: absolute; right: -1px; top: -4.5px; width: 9px; height: 10px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.rc-gate { border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 4.5px); transform-origin: 50% 0; }
.rc-box { position: relative; display: grid; align-content: center; width: 5.6em; padding: 9px 10px; border: 1.5px solid var(--ink); font: 650 13.5px/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; }
.rc-box .tick { position: absolute; right: -8px; top: -8px; }
.rc-clash { position: absolute; left: -29px; top: 50%; width: 24px; height: 24px; translate: 0 -50%; border: 2.5px solid var(--red); border-radius: 50%; opacity: 0; background: linear-gradient(45deg, transparent calc(50% - 1.2px), var(--red) calc(50% - 1.2px) calc(50% + 1.2px), transparent calc(50% + 1.2px)), linear-gradient(-45deg, transparent calc(50% - 1.2px), var(--red) calc(50% - 1.2px) calc(50% + 1.2px), transparent calc(50% + 1.2px)), var(--ground); }

/* End to end: one app leaves the first build, passes each station and joins the others at the App Store. */
.sc-route { container-type: inline-size; gap: 9px; }
.sc-route .ship-track img + img { margin-left: -14px; }
.sc-route .ship-track .go { z-index: 1; }
.rt { position: relative; display: flex; justify-content: space-between; align-items: center; height: 13px; }
.rt::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ink); }
.rt i { position: relative; width: 11px; height: 11px; border: 1.5px solid var(--ink); background: var(--ink); }
.rt-labels { position: relative; height: 13px; }
.rt-labels span { position: absolute; top: 0; left: calc(var(--i) * 33.333%); translate: -50% 0; white-space: nowrap; }
.rt-labels span:first-child { translate: 0 0; }
.rt-labels span:last-child { left: 100%; translate: -100% 0; }
@container (max-width: 300px) {
  .svc .rt-labels, .svc-card .rt-labels { font-size: 11px; letter-spacing: 0.04em; }
}
@container (max-width: 268px) {
  .sc-route .ship-track::before { content: none; }
}
@container (max-width: 240px) {
  .sc-ship .ship-track img + img { margin-left: -18px; }
}

/* ---------- Work ----------
   The six icons stand on the lower edge of the first field. Each app is a band in its own colour and its
   screenshots are prints laid on it. DD Skills is a blueprint on the pegboard; the earlier tools are a
   paper sheet on trace. */
.w-icons { position: relative; z-index: 2; display: flex; gap: clamp(8px, 1.6vw, 22px); margin: clamp(30px, 3.6vw, 52px) 0 -40px; }
.w-icons a { display: block; rotate: -3deg; }
.w-icons a:nth-child(even) { rotate: 2.4deg; }
.w-icons img { width: clamp(46px, 6.4vw, 84px); border-radius: 22%; box-shadow: var(--lift); }
.apps-all.field { background: none; }
.w-app { --ground: var(--tint); background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); }
.app + .app { border-top: 0; }
.w-app:first-child { padding-top: calc(clamp(40px, 5vw, 72px) + 40px); }
.w-app .shot-pic { padding: 0; background: none; box-shadow: 0 1px 2px rgb(3 12 44 / 0.25), 0 12px 22px -10px rgb(3 12 44 / 0.45); transition: translate 300ms var(--ease-out); }
.w-main .shot-pic { rotate: -1.3deg; box-shadow: var(--lift); }
.w-app:nth-child(even) .w-main .shot-pic { rotate: 1.2deg; }
.lanes.field { border: 0; box-shadow: var(--lift); rotate: -0.4deg; }
.lanes figcaption .voice { font-size: 1.1em; color: var(--ink); }
.old-status.voice { font-size: 18.5px; line-height: 1.2; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .w-app .shot-link:hover .shot-pic { translate: 0 -4px; }
}

/* ---------- 404 ---------- */
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 88px); align-items: end; }
.nf-code { font: 650 clamp(150px, 24vw, 330px)/0.76 var(--display); letter-spacing: 0.004em; font-variant-numeric: tabular-nums; }
.nf-hero .hero-side { padding-bottom: 10px; }
.hero.nf-hero h1 { font-size: clamp(44px, 5vw, 68px); }
.nf-index { margin-top: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
.nf-index li { display: grid; gap: 7px; align-content: start; padding: 18px 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nf-index a { font: 700 21px/1.15 var(--cond); text-decoration: none; }
.nf-index span { font-size: 17px; line-height: 1.42; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .nf-index a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; } }
@media (max-width: 1000px) {
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
  .nf-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .nf-index { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About ----------
   The signed print again; the path from one prompt to submission drawn in the plan's boxes; the facts
   as a paper sheet on the pegboard navy. */
.a-hero-grid { grid-template-columns: clamp(200px, 26vw, 330px) minmax(0, 1fr); align-items: center; }
.a-icon.print { padding: 10px 10px 0; border: 0; rotate: -2.4deg; justify-self: start; }
.a-icon .print-sign img { width: 44%; aspect-ratio: auto; }
.a-hero h1 .voice + .br-wide { display: none; }
.path { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 8px 0 6px; }
.path li { display: flex; align-items: flex-end; min-height: 72px; padding: 9px 9px 10px; border: 1.5px solid var(--ink); font: 650 clamp(14.5px, 1.2vw, 16.5px)/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.045em; overflow-wrap: break-word; }
.path li.k-team { background: var(--ink); color: var(--ground); }
.a-facts.field { border: 0; box-shadow: var(--lift); rotate: 0.8deg; }

@media (max-width: 1000px) {
  .a-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .a-icon.print { max-width: 240px; }
  .path { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-facts.field, .lanes.field { rotate: none; }
  .svc-card .sc { height: auto; }
}
@media (max-width: 640px) {
  .path { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path li { min-height: 52px; }
  .start-steps li:nth-child(n) { rotate: none; }
  .svc-index li + li { border-left: 0; }
}

/* The preview marker */
.pv { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 99; display: flex; align-items: center; gap: 14px; padding: 10px 14px 9px; background: #0B2468; color: #FFFFFF; border: 1.5px solid #FFFFFF; box-shadow: 0 8px 28px rgb(0 0 0 / 0.28); font: 650 14.5px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.pv span { color: #CBD7FB; }
.pv a { text-underline-offset: 0.3em; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > :nth-child(3) { border-left: 0; }
  .title-block > :nth-child(n + 3) { border-top: 1.5px solid var(--line); }
  /* The plan turned on its side: two lanes as two columns, steps from top to bottom, a label across both
     columns for each phase and an arrow from one column to the other at each handoff. */
  .plan { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; max-width: 620px; margin-inline: auto; padding: 16px 14px 22px; }
  .ph-col { display: none; }
  .plan::before, .plan::after { content: ""; position: absolute; top: 46px; bottom: 18px; width: 1px; background: var(--line-2); }
  .plan::before { left: calc(25% + 4px); }
  .plan::after { right: calc(25% + 4px); }
  .ln { grid-row: 1 !important; align-self: end; padding-bottom: 6px; text-align: center; }
  .ln[style*="grid-row:2"] { grid-column: 1; }
  .ln[style*="grid-row:4"] { grid-column: 2; }
  .ph { grid-column: 1 / -1 !important; grid-row: calc(var(--at) * 3 - 1); position: relative; z-index: 1; height: 34px; margin: 12px 0 4px; border-right: 1.5px solid var(--ink); background: var(--ground); }
  .st, .st-stack { grid-column: 2 !important; grid-row: calc(var(--n) * 3 + 1) !important; margin: 4px 0; }
  .st.k-team { grid-column: 1 !important; }
  .st { min-height: 0; font-size: 16px; }
  .st:not(.k-team):not(.k-me) { background: var(--ground); }
  .st-stack .st { grid-column: auto !important; grid-row: auto !important; margin: 0; }
  .hand { grid-column: 1 / -1 !important; grid-row: calc(var(--n) * 3) !important; justify-content: center; min-height: 0; padding: 7px 0 15px; font-size: 14.5px; text-align: center; }
  .hand::before { left: calc(25% + 4px); right: calc(25% + 4px); top: auto; bottom: 7px; width: auto; height: 1.5px; }
  .hand::after { top: auto; width: 9px; height: 11px; }
  .hand.down::after { bottom: 2px; left: auto; right: calc(25% + 3px); clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .hand.up::after { top: auto; bottom: 2px; left: calc(25% + 3px); clip-path: polygon(100% 0, 100% 100%, 0 50%); }
}
@media (max-width: 1000px) {
  .split, .tools-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bay-text { padding-bottom: 34px; }
  .bay:nth-child(3n + 1) .bay-text { border-left: 0; }
  .lead-svc { grid-template-columns: minmax(0, 1fr); rotate: none; }
  .lead-svc-text { border-left: 0; border-top: 1.5px solid var(--line); }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 48px); align-items: start; }
  .svc .sc { grid-row: 1 / span 2; height: auto; min-height: 96px; margin-bottom: 0; padding-top: 4px; }
  .pegs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-sheet { rotate: none; }
}
@media (max-width: 720px) {
  .print { justify-self: start; max-width: 230px; }
}
@media (max-width: 640px) {
  body { font-size: 17.5px; }
  h2 { display: block; }
  h2::after { content: none; }
  .top-row { padding: 14px 0 6px; min-height: 0; }
  .brand { font-size: 18px; letter-spacing: 0.04em; gap: 9px; }
  .top-cta { padding: 0 12px; font-size: 14.5px; letter-spacing: 0.05em; }
  .nav { order: 3; width: 100%; gap: 22px; }
  .nav a { font-size: 15.5px; }
  .hero-side .btn { width: 100%; }
  .drawing .plan { padding-inline: 10px; column-gap: 10px; }
  .st { font-size: 15px; }
  .st.k-me { padding: 12px 11px 13px; }
  .title-block, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .title-block > * + *, .foot-row > * + * { border-left: 0; border-top: 1.5px solid var(--line); }
  /* Each bay becomes a band in its colour: the words on the left, the top of the phone on the right. */
  .bays { grid-template-columns: minmax(0, 1fr); }
  .bay { grid-template-columns: minmax(0, 1fr) 132px; grid-template-rows: auto; background: var(--tint); border-bottom: 1.5px solid var(--ink); }
  .bay-wall { order: 2; align-self: end; height: 212px; padding: 22px 16px 0 0; border-bottom: 0; background: none; }
  .bay-text, .bay + .bay .bay-text { order: 1; padding: 22px 12px 24px 16px; border-left: 0; background: none; --ink-2: #1F3B92; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc .sc { grid-row: auto; min-height: 0; margin-bottom: 14px; padding-top: 0; }
  .pegs, .form-two, .topics { grid-template-columns: minmax(0, 1fr); }
  .pegs { gap: 30px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv { gap: 10px; padding-inline: 11px; font-size: 13.5px; }
}

/* ---------- Motion ----------
   .motion-on is set in the head when the visitor has not asked for reduced motion; .reveal-ready is set
   by scenes.js once it is watching the scenes. Without either, every scene shows its resting state. */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes set-down { from { opacity: 0; transform: translateY(-28px) rotate(-6deg) scale(1.05); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(34px); } }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hand { from { opacity: 0; } }
@keyframes stand { from { transform: translateY(104%); } }
@keyframes wire { from { transform: scale(0); } }
@keyframes tick { from { stroke-dashoffset: 16; } }
@keyframes pop { from { opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7); } 55% { opacity: 1; transform: scale(0.94); } 100% { transform: none; } }
@keyframes dock { from { transform: translateX(var(--from)); } }
@keyframes level { from { transform: scaleY(0.1); } }
@keyframes write { from { transform: scaleX(0); } }
@keyframes ring { 0% { opacity: 0; transform: scale(1.9); } 60% { opacity: 1; transform: scale(0.92); } 100% { transform: none; } }
@keyframes swing { 0% { rotate: 9deg; } 28% { rotate: -5.5deg; } 52% { rotate: 3.4deg; } 76% { rotate: calc(var(--r) - 1.2deg); } 100% { rotate: var(--r); } }
@keyframes cut { from { width: 100%; } }

/* The first field plays on load. */
.motion-on .hero-main > *, .motion-on .hero-side > * { animation: rise-in 720ms var(--ease-out) backwards; }
.motion-on .hero-side > :nth-child(1) { animation-delay: 120ms; }
.motion-on .hero-side > :nth-child(2) { animation-delay: 200ms; }
.motion-on .print { animation: set-down 900ms var(--settle) 380ms backwards; }
.motion-on .drawing { animation: sheet-in 900ms var(--ease-out) 260ms backwards; }
.motion-on .st, .motion-on .st-stack { animation: plot 460ms var(--ease-out) backwards; animation-delay: calc(800ms + var(--n) * 110ms); }
.motion-on .st-stack .st { animation: none; }
.motion-on .hand { animation: hand 380ms ease-out backwards; animation-delay: calc(870ms + var(--n) * 110ms); }

/* Apps: the phones come up from behind the ground line, one bay after another. */
.motion-on.reveal-ready .bays:not(.is-in) .phone { transform: translateY(104%); }
.motion-on.reveal-ready .bays.is-in .phone { animation: stand 950ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 85ms); }

/* Consulting: the task runs through, the three boxes are ticked, the result is stamped. */
.motion-on.reveal-ready [data-scene]:not(.is-in) :is(.ck-wire, .tick path, .ck-result .stamp) { visibility: hidden; }
.motion-on.reveal-ready [data-scene].is-in .ck-wire { animation: wire 420ms var(--ease-out) 250ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .ck-wire + .ck-list + .ck-wire { animation-delay: 1500ms; }
.motion-on.reveal-ready [data-scene].is-in .tick path { animation: tick 320ms ease-out backwards; animation-delay: calc(700ms + var(--i) * 260ms); }
.motion-on.reveal-ready [data-scene].is-in .ck-result .stamp { animation: stamp 420ms var(--ease-out) 2000ms backwards; }
.motion-on.reveal-ready [data-scene]:not(.is-in) :is(.ship-track img, .runs i) { visibility: hidden; }
.motion-on.reveal-ready [data-scene].is-in .ship-track img { --from: calc(-100cqw + 54px + (5 - var(--i)) * 37px); animation: dock 1100ms var(--ease-out) backwards; animation-delay: calc(200ms + (5 - var(--i)) * 110ms); }
.motion-on.reveal-ready [data-scene]:not(.is-in) .wave i { transform: scaleY(0.1); }
.motion-on.reveal-ready [data-scene]:not(.is-in) .lines i { transform: scaleX(0); }
.motion-on.reveal-ready [data-scene].is-in .wave i { animation: level 520ms var(--settle) backwards; animation-delay: calc(350ms + var(--i) * 45ms); }
.motion-on.reveal-ready [data-scene].is-in .lines i { animation: write 520ms var(--ease-out) backwards; animation-delay: calc(1150ms + var(--i) * 170ms); }
.motion-on.reveal-ready [data-scene].is-in .runs i { animation: pop 1ms linear backwards; animation-delay: calc(500ms + var(--i) * 55ms); }
.motion-on.reveal-ready [data-scene].is-in .runs i.mark::after { animation: ring 460ms var(--ease-out) 2100ms backwards; }

/* ddskills: the tags are hung up and swing until they settle. */
.motion-on.reveal-ready .pegs:not(.is-in) .tag { rotate: 9deg; }
.motion-on.reveal-ready .pegs.is-in .tag { animation: swing 1700ms ease-in-out backwards; animation-delay: calc(var(--i) * 110ms); }

/* Background: each bar starts at its "before" length and is cut to scale. */
.motion-on.reveal-ready .figs:not(.is-in) .rule.scaled::before { width: 100%; }
.motion-on.reveal-ready .figs.is-in .rule.scaled::before { animation: cut 1300ms var(--ease-out) backwards; animation-delay: calc(350ms + var(--i) * 160ms); }

/* Contact: the stamp comes down when the message has gone. */
.motion-on .sent:not([hidden]) .status { animation: stamp 440ms var(--ease-out) 120ms backwards; }

/* The other pages */
@keyframes deal { from { opacity: 0; transform: translateY(28px) rotate(-4deg); } }
.motion-on .hero-head > h1, .motion-on .a-hero-text > *, .motion-on .r-head > * { animation: rise-in 720ms var(--ease-out) backwards; }
.motion-on .a-hero-text > :nth-child(2), .motion-on .r-head > :nth-child(2) { animation-delay: 120ms; }
.motion-on .a-hero-text > :nth-child(3) { animation-delay: 200ms; }
.motion-on .svc-index-wrap { animation: sheet-in 900ms var(--ease-out) 260ms backwards; }
.motion-on .w-icons img { animation: rise-in 700ms var(--ease-out) backwards; }
.motion-on .w-icons a:nth-child(2) img { animation-delay: 70ms; }
.motion-on .w-icons a:nth-child(3) img { animation-delay: 140ms; }
.motion-on .w-icons a:nth-child(4) img { animation-delay: 210ms; }
.motion-on .w-icons a:nth-child(5) img { animation-delay: 280ms; }
.motion-on .w-icons a:nth-child(6) img { animation-delay: 350ms; }
/* Consulting: the four cards are dealt. */
.motion-on.reveal-ready .start-steps:not(.is-in) li { opacity: 0; }
.motion-on.reveal-ready .start-steps.is-in li { animation: deal 820ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 130ms); }
/* Work: the main print is set down, then the others. */
.motion-on.reveal-ready .w-app:not(.is-in) .shot-pic { opacity: 0; }
.motion-on.reveal-ready .w-app.is-in .w-main .shot-pic { animation: set-down 850ms var(--settle) backwards; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot-pic { animation: rise-in 620ms var(--ease-out) 480ms backwards; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot:nth-child(1) .shot-pic { animation-delay: 200ms; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot:nth-child(2) .shot-pic { animation-delay: 260ms; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot:nth-child(3) .shot-pic { animation-delay: 320ms; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot:nth-child(4) .shot-pic { animation-delay: 380ms; }
.motion-on.reveal-ready .w-app.is-in .w-grid .shot:nth-child(5) .shot-pic { animation-delay: 430ms; }
.motion-on.reveal-ready .lanes:not(.is-in) .lane-bars li, .motion-on.reveal-ready .path:not(.is-in) li { clip-path: inset(0 100% 0 0); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li { animation: plot 460ms var(--ease-out) backwards; animation-delay: calc(200ms + var(--l) * 160ms); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li:nth-child(2) { animation-delay: calc(290ms + var(--l) * 160ms); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li:nth-child(3) { animation-delay: calc(380ms + var(--l) * 160ms); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li:nth-child(4) { animation-delay: calc(470ms + var(--l) * 160ms); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li:nth-child(5) { animation-delay: calc(560ms + var(--l) * 160ms); }
.motion-on.reveal-ready .lanes.is-in .lane-bars li:nth-child(6) { animation-delay: calc(650ms + var(--l) * 160ms); }
/* About: the path plots step by step; the facts sheet is set down. */
.motion-on.reveal-ready .path.is-in li { animation: plot 460ms var(--ease-out) backwards; animation-delay: calc(200ms + var(--i) * 120ms); }
.motion-on.reveal-ready .a-facts:not(.is-in) { opacity: 0; }
.motion-on.reveal-ready .a-facts.is-in { animation: set-down 850ms var(--settle) backwards; }

/* The drawings that run. Each has one clock so its parts stay in step. */
@keyframes lv-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lv-head { 0% { left: 0; opacity: 1; } 94% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes rc-a { 0%, 6% { transform: scaleX(0); } 26%, 46% { transform: scaleX(1); } 46.1%, 57% { transform: scaleX(0); } 71%, 100% { transform: scaleX(1); } }
@keyframes rc-b { 0%, 6% { transform: scaleX(0); } 26%, 46% { transform: scaleX(1); } 46.1%, 57% { transform: scaleX(0); } 67%, 79% { transform: scaleX(0.7); } 90%, 100% { transform: scaleX(1); } }
@keyframes rc-clash { 0%, 25% { opacity: 0; transform: scale(1.8); } 30%, 43% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: none; } }
@keyframes rc-gate { 0%, 48% { transform: scaleY(0); } 56%, 100% { transform: none; } }
@keyframes rc-tick { 0%, 91% { stroke-dashoffset: 16; } 98%, 100% { stroke-dashoffset: 0; } }
@keyframes rt-pass { from { background: var(--ground); } }
.motion-on.reveal-ready [data-scene]:not(.is-in) :is(.lv-lines li, .rt i) { visibility: hidden; }
.motion-on.reveal-ready [data-scene]:not(.is-in) .lv-bars { clip-path: inset(0 100% 0 0); }
.motion-on.reveal-ready [data-scene]:not(.is-in) .rc-line { transform: scaleX(0); }
.motion-on.reveal-ready [data-scene]:not(.is-in) .rc-gate { transform: scaleY(0); }
.motion-on.reveal-ready [data-scene].is-in .lv-bars { animation: lv-wipe 3000ms linear 300ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .lv-head { animation: lv-head 3000ms linear 300ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .lv-lines span { animation: pop 1ms linear backwards; animation-delay: calc(520ms + var(--i) * 950ms); }
.motion-on.reveal-ready [data-scene].is-in .lv-lines em { animation: lv-wipe 820ms steps(22) backwards; animation-delay: calc(580ms + var(--i) * 950ms); }
.motion-on.reveal-ready [data-scene].is-in .sc-race .runs i.mark::after { animation-delay: 1900ms; }
.motion-on.reveal-ready [data-scene].is-in .rc-line.a { animation: rc-a 5200ms linear 600ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .rc-line.b { animation: rc-b 5200ms linear 600ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .rc-clash { animation: rc-clash 5200ms linear 600ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .rc-gate { animation: rc-gate 5200ms linear 600ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .rc-box .tick path { animation: rc-tick 5200ms linear 600ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .sc-route .ship-track img { animation: none; }
.motion-on.reveal-ready [data-scene].is-in .sc-route .ship-track .go { --from: calc(-100cqw + 214px); animation: dock 2700ms cubic-bezier(0.45, 0, 0.3, 1) 300ms backwards; }
.motion-on.reveal-ready [data-scene].is-in .rt i { animation: rt-pass 1ms linear backwards; animation-delay: calc(350ms + var(--i) * 880ms); }

@media (prefers-reduced-motion: reduce) {
  .btn, .text-link, .app-store, .topic span, .phone, .tag, .inline-link, .shot-pic { transition: none; }
  .btn:active { transform: none; }
}
/* Print (the résumé): plain black on white, no fields, no props. */
@media print {
  html, body { background: #FFFFFF !important; }
  body { margin: 0; border: 0; font-size: 10.5pt; }
  .field, .hero { --ground: #FFFFFF; --ink: #000000; --ink-2: #333333; --line: rgb(0 0 0 / 0.4); --line-2: rgb(0 0 0 / 0.2); --hatch: rgb(0 0 0 / 0.5); background: #FFFFFF !important; color: #000000; box-shadow: none !important; }
  .skip, .top, .contact, .foot, .pv, .r-acts { display: none !important; }
  .print, .lead-svc, .form-sheet, .tag, .a-facts, .lanes, .start-steps li { rotate: none !important; }
  .hero.cover { min-height: 0; padding: 0 0 14pt; }
  .hero h1 { font-size: 34pt; }
  .r-sec { padding: 12pt 0; }
}
