/* NAPC motion kit (Ed, 8 Oct 2026: "the animations and interactions are what i want mainly").
   The moves are borrowed from assume-ai.com; the system is NAPC's own: Archivo and Inter, straight edges,
   lime as a fill. The ground colour of the whole page eases between sections as you scroll.
   Under reduced motion everything is drawn at rest.
   Rev C (Ed, 12 Oct 2026): every colour is NAPC's own, in the Blueprint colourway ("go with blue print
   just make it simpler"): tints and shades of NAPC slate (#518196), blueprint blue for the dark bands,
   lime the one fill, NAPC red for the red line (its soft red on blue), moss for trees. Simpler: the
   frame, margin grid references, crosshair, readout and grain are gone, and the paper grid is one
   faint square. */

@font-face{font-family:Inter;src:url(assets/inter.woff2) format('woff2');font-weight:100 900;font-display:swap}
/* Headings in Inter (Ed, 27 Oct 2026: the napc.uk WordPress type, tried on the font trial and put live 4 Nov). The
   Archivo family name points at the Inter file, so every heading, figure and card title follows. */
@font-face{font-family:Archivo;src:url(assets/inter.woff2) format('woff2');font-weight:100 900;font-display:swap}

/* The ground: registered so it can ease from one section's colour to the next. */
@property --g-bg{syntax:'<color>';inherits:true;initial-value:#f8fbfc}
@property --g-ink{syntax:'<color>';inherits:true;initial-value:#172c36}
@property --g-muted{syntax:'<color>';inherits:true;initial-value:#3e5c6a}
@property --g-line{syntax:'<color>';inherits:true;initial-value:#7396a5}
@property --g-soft{syntax:'<color>';inherits:true;initial-value:#eaf2f6}
@property --g-grid{syntax:'<color>';inherits:true;initial-value:rgba(23,44,54,.05)}

:root{
  --ink:#172c36;--muted:#3e5c6a;--line:#7396a5;--hair:#c8d8e0;--mist:#d4e1e8;--lime:#C8D300;--lime-deep:#8a9100;--olive:#518196;
  --paper:#fff;--bg:#f8fbfc;--soft:#eaf2f6;--dark:#224758;--deep:#1d3f4e;--deep-2:#254a5b;--moss:#3e7a5a;--sage:var(--moss);--slate:#518196;
  --red:#a4231f;--red-soft:#f0a9a6;--amber:#8a6d00;
  --ease:cubic-bezier(.16,1,.3,1);
  --g-bg:#f8fbfc;--g-ink:#172c36;--g-muted:#3e5c6a;--g-line:#7396a5;--g-soft:#eaf2f6;--g-grid:rgba(23,44,54,.05);
  --fi:0px;
  transition:--g-bg .9s var(--ease),--g-ink .9s var(--ease),--g-muted .9s var(--ease),--g-line .9s var(--ease),--g-soft .9s var(--ease),--g-grid .9s var(--ease);
  color-scheme:light;
}
:root[data-ground=dark]{--red:#f0a9a6;--g-bg:#1d3f4e;--g-ink:#f5f8fa;--g-muted:#cadbe2;--g-line:#74a0b4;--g-soft:#2e5466;--g-grid:rgba(245,248,250,.045)}
:root[data-ground=soft]{--g-bg:#eaf2f6;--g-ink:#172c36;--g-muted:#3e5c6a;--g-line:#7396a5;--g-soft:#d9e6ec;--g-grid:rgba(23,44,54,.06)}
:root[data-ground=light]{--g-bg:#f8fbfc;--g-ink:#172c36;--g-muted:#3e5c6a;--g-line:#7396a5;--g-soft:#eaf2f6;--g-grid:rgba(23,44,54,.05)}

*{box-sizing:border-box}
html{background-color:var(--g-bg);color:var(--g-ink);overflow-x:clip;
  background-image:linear-gradient(var(--g-grid) 1px,transparent 1px),linear-gradient(90deg,var(--g-grid) 1px,transparent 1px);
  background-size:120px 120px}
body{margin:0;font-family:Inter,system-ui,sans-serif;font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:clip}
/* The reset sits in its own layer, declared first, so it is the weakest rule on the page (Ed, 23 Nov 2026,
   the space check). Unlayered it beat every spacing utility on the older pages (articles, case studies,
   forms), so headings and paragraphs ran together. The Control Room's own rules are unlayered and still win. */
@layer cr-reset{
h1,h2,h3,p,figure,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
}
h1,h2,h3{font-family:Archivo,Inter,sans-serif;font-weight:500;letter-spacing:-.045em;line-height:1.02}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid #518196;outline-offset:4px}
:root[data-ground=dark] :focus-visible{outline-color:var(--lime)}
::selection{background:var(--lime);color:#172c36}

.wrap{width:min(1760px,calc(100% - 2 * var(--fi) - 112px));margin-inline:auto}
@media(max-width:1150px){.wrap{width:calc(100% - 2 * var(--fi) - 64px)}}
@media(max-width:800px){:root{--fi:0px}.wrap{width:calc(100% - 32px)}}

.eyebrow{font-size:.8125rem;font-weight:600;letter-spacing:.14em;line-height:1.5;text-transform:uppercase;color:var(--g-muted)}
.eyebrow b{color:var(--g-ink);font-weight:600;margin-right:14px;font-variant-numeric:tabular-nums}
.sec-head b{display:inline-grid;place-items:center;min-width:32px;height:26px;padding:0 6px;border:1px solid var(--g-ink);margin-right:14px;letter-spacing:.06em}
.lede{font-size:1.1875rem;line-height:1.6;color:var(--g-muted);max-width:620px}
.display{font-size:clamp(2.6rem,1.4rem + 4.4vw,5.6rem)}
.display .thin{font-weight:300;font-stretch:100%;letter-spacing:-.02em}
.tab{font-variant-numeric:tabular-nums}

/* Header: the mark, four doors, the phone. It follows the ground, steps aside when you scroll down and
   comes back when you scroll up (assume-ai's nav). */
.hd{position:fixed;inset:var(--fi) var(--fi) auto;z-index:50;color:var(--g-ink);background:color-mix(in srgb,var(--g-bg) 80%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .55s var(--ease)}
.hd.away{transform:translateY(calc(-100% - var(--fi)))}
.hd .row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;height:84px;border-bottom:1px solid color-mix(in srgb,var(--g-line) 40%,transparent)}
.hd .mark{width:78px;color:var(--g-ink)}
/* The logo in brand slate blue on the light grounds (JM's amends, 27 Oct 2026); on the dark ground (and in
   the dark mode) it stays white, since the slate fails contrast there. */
:root:not([data-mode=dark])[data-ground=light] .hd .mark,:root:not([data-mode=dark])[data-ground=soft] .hd .mark,:root[data-mode=light] .hd .mark{color:#518196}
.hd nav{display:flex;gap:34px;font-size:.875rem;font-weight:500}
.hd nav a,.ul{position:relative;padding:6px 0}
.hd nav a::after,.ul::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--lime);transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.hd nav a:hover::after,.ul:hover::after,.hd nav a[aria-current]::after{transform:scaleX(1);transform-origin:left}
.hd .tel{justify-self:end;font-weight:600;font-size:.875rem;font-variant-numeric:tabular-nums}
@media(max-width:800px){.hd nav{display:none}.hd .row{grid-template-columns:1fr auto;height:70px}.hd .mark{width:64px}}

.mark svg{display:block;width:100%;height:auto;overflow:visible}

/* The title block (assume-ai's bottombar, drawn as a drawing's title block): what this sheet is, its
   number, the scale, the grid square under the pointer, north, then the phone and the one action. */
.bb{position:fixed;left:var(--fi);right:var(--fi);bottom:var(--fi);z-index:49;color:var(--g-ink);background:color-mix(in srgb,var(--g-bg) 90%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--g-line);transition:transform .55s var(--ease)}
.bb.away{transform:translateY(calc(100% + var(--fi)))}
.bb .row{display:flex;align-items:stretch;justify-content:space-between;gap:0;width:100%;height:62px}
.bb .say{display:flex;align-items:stretch;min-width:0}
.tbk{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:0 18px;border-right:1px solid color-mix(in srgb,var(--g-line) 70%,transparent);min-width:0}
.tbk small{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--g-muted);line-height:1}
.tbk b{font-size:.875rem;font-weight:600;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tbk.tbk-mk{width:84px;padding:0 14px}
.tbk.tbk-mk .mark{width:52px}
.tbk.tbk-ref b{color:var(--g-ink);min-width:2.2em}
.tbk.tbk-ref b.flash{animation:refflash .5s var(--ease)}
@keyframes refflash{0%{background:var(--lime);color:#1d3f4e}100%{background:transparent}}
.tbk.tbk-nth{padding:0 16px;align-items:center}
.tbk.tbk-nth svg{width:20px;height:28px;transition:transform 1.2s var(--ease)}
.bb .go{display:flex;align-items:center;gap:22px;padding:0 10px 0 22px;border-left:1px solid color-mix(in srgb,var(--g-line) 70%,transparent)}
.bb .go a.tel{font-weight:600;font-size:.9375rem;font-variant-numeric:tabular-nums}
.bb .btn{min-height:42px;padding:9px 16px;font-size:.875rem}
@media(max-width:1100px){.tbk.tbk-opt{display:none}}
@media(max-width:700px){.bb .say{display:none}.bb .go{flex:1;justify-content:center;border-left:0}}

/* Buttons: still square, still 54px. On hover a fill sweeps across from the left and the arrow steps
   along its own direction (assume-ai's pill, squared off). */
.btn{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:54px;padding:14px 24px;border:1px solid transparent;background:none;font-size:.9375rem;font-weight:600;line-height:1.3;cursor:pointer;transition:color .35s var(--ease),border-color .35s var(--ease)}
.btn::before{content:"";position:absolute;inset:0;z-index:-1;transform:scaleX(0);transform-origin:right;transition:transform .5s var(--ease)}
.btn:hover::before,.btn:focus-visible::before{transform:scaleX(1);transform-origin:left}
.btn .ar{display:inline-block;transition:transform .4s var(--ease)}
.btn:hover .ar{transform:translateX(4px)}
.btn .ar.dn{transform:none}
.btn:hover .ar.dn{transform:translate(3px,3px)}
.btn.lime{background:var(--lime);color:#172c36}
.btn.lime::before{background:var(--g-ink)}
.btn.lime:hover{color:var(--g-bg)}
.btn.line{border-color:var(--g-line);color:var(--g-ink)}
.btn.line::before{background:var(--lime)}
.btn.line:hover{color:#172c36;border-color:var(--lime)}
.btn.ink{background:var(--g-ink);color:var(--g-bg)}
.btn.ink::before{background:var(--lime)}
.btn.ink:hover{color:#172c36}

/* Reveals: text rises out of a mask line by line; blocks fade up with a stagger (--d). */
.rv{opacity:0;transform:translateY(34px);transition:opacity .95s var(--ease) var(--d,0s),transform .95s var(--ease) var(--d,0s)}
.rv.in{opacity:1;transform:none}
.mask{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.mask>.rise{display:block;transform:translateY(118%);transition:transform 1.15s var(--ease) var(--d,0s)}
.mask.in>.rise{transform:none}

/* Dark bands (the grain that was here is gone, Rev C). */
.grain{position:relative;isolation:isolate}

/* The section rule: number, name, a hairline. */
.sec-head{display:flex;align-items:center;gap:18px}
.sec-head::after{content:"";flex:1;height:1px;background:var(--g-line);opacity:.7;transform-origin:left;transform:scaleX(0);transition:transform 1.4s var(--ease) .2s}
.sec-head.in::after{transform:scaleX(1)}

/* Mockup label, bottom left, above the bar. */
.mock-tag{position:fixed;left:calc(var(--fi) + 16px);bottom:calc(var(--fi) + 74px);z-index:60;font:600 11px/1.4 Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;background:var(--deep);color:#f5f8fa;padding:6px 10px}
.mock-tag a{color:var(--lime)}

@media(prefers-reduced-motion:reduce){
  :root{transition:none}
  .rv,.mask>.rise{opacity:1!important;transform:none!important;transition:none!important}
  .sec-head::after{transform:none;transition:none}
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
}
