/* ============================================================================
   Noveii · scrollcraft build. Theme tokens + the page's own markup.
   The engine (scrollcraft.css/js) is untouched. Everything with a data-nv-*
   attribute is driven by noveii.js off --sc-p.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --nv-mix: 0;                          /* 0 = light (gallery white), 1 = dark (beneath the surface) */
  --u: 1;                               /* scene unit, set by JS */

  --l-canvas: #F6F6F3;  --d-canvas: #08090D;
  --l-surface: #FFFFFF; --d-surface: #10121A;
  --l-ink: #0E0F14;     --d-ink: #EDEEF4;
  --l-soft: #5B5E6B;    --d-soft: #9A9DAC;
  --l-accent: #4F46E5;  --d-accent: #818CF8;
  --l-accent-ink: #FFFFFF; --d-accent-ink: #08090D;
  --nv-indigo: #4338CA;                 /* the one constant across both modes */

  --sc-canvas: var(--l-canvas); --sc-surface: var(--l-surface); --sc-ink: var(--l-ink);
  --sc-ink-soft: var(--l-soft); --sc-accent: var(--l-accent); --sc-accent-ink: var(--l-accent-ink);

  --sc-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sc-font-text:    "Geist", "Segoe UI", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --sc-shadow-color: 232 30% 6%;
  --sc-r-sm: 6px; --sc-r-md: 10px; --sc-r-lg: 16px;
  --sc-track-tight: -0.03em;
}

html { background: var(--sc-canvas); }
body { color: var(--sc-ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- chrome -- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sc-4) var(--sc-gutter);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--sc-ink); }
.chrome__mark { width: 26px; height: 26px; color: var(--sc-accent); }
.chrome__word { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; }
.chrome__ii { color: var(--sc-accent); }
.chrome__cta {
  font-size: var(--sc-t-sm); font-weight: 500; text-decoration: none;
  color: var(--sc-ink); padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--sc-hairline-strong);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out);
}
.chrome__cta:hover { border-color: var(--sc-accent); color: var(--sc-accent); }


/* ----------------------------------------------------------------- world -- */
.world__stage { background: var(--sc-canvas); }
.world__stage::after {
  /* a very soft vignette so the void reads as a lit room, not a blank page */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, color-mix(in oklab, var(--sc-ink) calc(3% + var(--nv-mix) * 9%), transparent) 100%);
}


/* the hall: a faint architectural ground for the opening, scroll-zoomed */
.hall { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; z-index: 0; opacity: 0; transform-origin: 50% 40%; will-change: transform, opacity; pointer-events: none; }

.cam {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1400px; perspective-origin: 50% 50%;
  overflow: clip;
}
.scene {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d; transform-origin: 0 0;
  will-change: transform;
}
.grp { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0; will-change: transform; }
.obj { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform, opacity; }
.obj[hidden] { display: block; visibility: hidden; }
.face {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  backface-visibility: hidden; will-change: opacity;
  contain: layout paint;
}
.face--t { opacity: 1; }
.face--c { opacity: 0; }

/* the sheet */
.plate-t {
  width: 960px; height: 680px; border-radius: 6px;
  background: linear-gradient(180deg, #FFFFFF, #F1F1EE);
  border: 1px solid rgba(20, 22, 30, 0.08);
  box-shadow: 0 40px 90px -30px rgba(10, 12, 30, 0.35), 0 8px 24px -12px rgba(10, 12, 30, 0.18);
}
.plate-c {
  width: 960px; height: 680px; border-radius: 6px;
  background: var(--sc-surface);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
  box-shadow: 0 40px 90px -30px rgba(4, 6, 20, calc(0.25 + var(--nv-mix) * 0.5));
}
.plate-c::before {
  /* the 8px baseline grid, visible when we look beneath */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: repeating-linear-gradient(180deg, color-mix(in oklab, var(--sc-accent) 9%, transparent) 0 1px, transparent 1px 32px);
  opacity: 0.5;
}
.plate-c__tag {
  position: absolute; left: 16px; bottom: -28px;
  font-family: var(--sc-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft);
}

/* --- template faces: deliberately default ------------------------------- */
.tnav { width: 900px; height: 56px; display: flex; align-items: center; gap: 22px; padding: 0 20px; }
.tnav i { display: block; background: #D9DAD6; border-radius: 4px; }
.tnav__logo { width: 96px; height: 18px; }
.tnav__pill { width: 58px; height: 10px; }
.tnav__btn { margin-left: auto; width: 110px; height: 34px; border-radius: 6px; background: #C9CAC5 !important; }

.thero { width: 460px; height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.thero i { display: block; background: #DCDDD9; border-radius: 4px; }
.thero__h { width: 92%; height: 34px; }
.thero__h--short { width: 62%; }
.thero__p { width: 88%; height: 12px; margin-top: 8px; background: #E6E7E3; }
.thero__p--short { width: 54%; margin-top: 0; }
.thero__btn { width: 150px; height: 42px; border-radius: 6px; margin-top: 10px; background: #C9CAC5; }

.tphoto { width: 400px; height: 250px; border-radius: 6px; overflow: hidden; background: #E3E4E0; }
.tphoto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }

.tcard { width: 290px; height: 150px; border-radius: 8px; background: #FFFFFF; border: 1px solid #E3E4DF; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tcard i { display: block; background: #DCDDD9; border-radius: 4px; }
.tcard__ico { width: 34px; height: 34px; border-radius: 50%; background: #E8E9E5; margin-bottom: 6px; }
.tcard__h { width: 60%; height: 14px; }
.tcard__p { width: 92%; height: 9px; background: #E9EAE6; }
.tcard__p--short { width: 70%; }

.tstrip { width: 900px; height: 60px; border-radius: 6px; background: #F4F4F1; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.tstrip i { display: block; background: #DCDDD9; border-radius: 4px; }
.tstrip__q { width: 26px; height: 26px; border-radius: 50%; }
.tstrip__bar { width: 300px; height: 10px; }
.tstrip__bar--short { width: 160px; }

.tform { width: 700px; height: 70px; display: flex; align-items: center; gap: 12px; }
.tform i { display: block; height: 44px; border-radius: 6px; background: #FFFFFF; border: 1px solid #DCDDD9; flex: 1; }
.tform__btn { flex: none !important; width: 130px; background: #C9CAC5 !important; border-color: #C9CAC5 !important; }

.tfoot { width: 900px; height: 40px; display: flex; align-items: center; gap: 18px; }
.tfoot i { display: block; height: 9px; width: 180px; background: #DCDDD9; border-radius: 4px; }
.tfoot__bar--short { width: 90px; }

.tblob { width: 220px; height: 220px; border-radius: 50%; filter: blur(2px); }
.tblob--a { background: radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.55), rgba(79, 70, 229, 0.18) 60%, transparent 72%); }
.tblob--b { background: radial-gradient(circle at 60% 50%, rgba(56, 189, 248, 0.5), rgba(99, 102, 241, 0.18) 60%, transparent 72%); }

/* --- custom faces: the rebuilt Northpeak site ---------------------------- */
.face--c { color: var(--sc-ink); font-family: var(--sc-font-text); }
.cnav { width: 900px; height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 22px; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.cnav__logo { font-family: var(--sc-font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.cnav__links { display: flex; gap: 22px; font-size: 14px; color: var(--sc-ink-soft); }
.cnav__btn { margin-left: auto; font-size: 13px; font-weight: 500; padding: 9px 14px; border-radius: 6px; background: var(--sc-accent); color: var(--sc-accent-ink); }

.chero { width: 460px; height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.chero__eyebrow { font-family: var(--sc-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.chero__h1 { font-family: var(--sc-font-display); font-weight: 600; font-size: 44px; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.chero__p { font-size: 15px; line-height: 1.5; color: var(--sc-ink-soft); max-width: 40ch; }
.chero__cta { display: flex; gap: 10px; margin-top: 6px; }
.chero__btn { font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 6px; background: var(--sc-accent); color: var(--sc-accent-ink); }
.chero__ghost { font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 6px; border: 1px solid color-mix(in oklab, var(--sc-ink) 18%, transparent); }

.cimg { width: 320px; height: 220px; border-radius: 8px; overflow: hidden; background: #0E1016; }
.cimg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

.cmodes { width: 300px; height: 200px; border-radius: 8px; overflow: hidden; display: flex; position: relative; border: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.cmodes__half { flex: 1; padding: 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.cmodes__half--light { background: #F6F6F3; }
.cmodes__half--dark { background: #0E1016; }
.cmodes__bar { display: block; height: 10px; width: 80%; border-radius: 3px; }
.cmodes__bar--w { width: 55%; }
.cmodes__half--light .cmodes__bar { background: #1A1B22; }
.cmodes__half--dark .cmodes__bar { background: #ECEDF3; }
.cmodes__btn { display: block; width: 62px; height: 22px; border-radius: 5px; margin-top: 8px; }
.cmodes__half--light .cmodes__btn { background: #4F46E5; }
.cmodes__half--dark .cmodes__btn { background: #818CF8; }
.cmodes__tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9A9DAC; background: linear-gradient(90deg, rgba(246,246,243,0.92), rgba(14,16,22,0.92)); }
.cmodes__half--light ~ .cmodes__tag { color: #5B5E6B; }

.crow { width: 460px; height: 52px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 16px; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent); padding-top: 2px; }
.crow b { font-family: var(--sc-font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.crow span { font-size: 14px; color: var(--sc-ink-soft); }
.crow em { font-style: normal; font-family: var(--sc-font-mono); font-size: 11px; color: var(--sc-ink-soft); }

.carea { width: 460px; height: 36px; font-family: var(--sc-font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); display: flex; align-items: center; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent); }

.cform { width: 400px; height: 260px; border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in oklab, var(--sc-ink) 4%, var(--sc-surface)); border: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.cform__title { font-family: var(--sc-font-display); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.cform__f { display: block; }
.cform__l { display: block; font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); margin-bottom: 3px; }
.cform__v { display: block; height: 30px; line-height: 28px; padding: 0 10px; border-radius: 5px; font-size: 13px; background: var(--sc-surface); border: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); }
.cform__btn { margin-top: 4px; align-self: flex-start; font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 6px; background: var(--sc-accent); color: var(--sc-accent-ink); transition: transform 120ms var(--sc-ease-out); }
.cform__btn.is-pressed { transform: scale(0.96); }

.cfoot { width: 900px; height: 44px; display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--sc-ink-soft); border-top: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.cfoot span:first-child { font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-ink); }

.cschema { width: 160px; height: 30px; display: flex; align-items: center; gap: 8px; font-family: var(--sc-font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--sc-ink); border: 1px solid color-mix(in oklab, var(--sc-accent) 55%, transparent); border-radius: 999px; padding: 0 12px; background: var(--sc-surface); }
.cschema i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }

/* --- annotations, wires, subsystem labels -------------------------------- */
.ann { opacity: 0; }
.ann svg { position: absolute; left: 0; top: 0; width: 120px; height: 40px; overflow: visible; }
.ann path { fill: none; stroke: var(--sc-ink); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.ann span { position: absolute; left: 0; top: 40px; white-space: nowrap; font-family: var(--sc-font-mono); font-size: calc(11px / var(--u)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink); background: var(--sc-canvas); padding: 2px 6px; }
.ann[data-nv-obj="ann2"] span { left: auto; right: -120px; }
.ann[data-nv-obj="ann4"] span { top: -26px; }

.wires { opacity: 0; }
.wires svg { position: absolute; left: -700px; top: -450px; width: 1400px; height: 900px; overflow: visible; }
.wires path { fill: none; stroke: var(--sc-accent); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; opacity: 0.9; }
.wires path.pulse { stroke-width: 2.5; stroke-dasharray: 0.03 0.22; stroke-dashoffset: var(--pulse, 0); opacity: 0; filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.9)); }
.wires.is-pulsing path.pulse { opacity: 1; }

/* the inspection scan */
.scan { opacity: 0; }
.scan::before { content: ""; position: absolute; left: -480px; top: -1px; width: 960px; height: 2px; background: var(--l-accent); box-shadow: 0 0 22px 5px rgba(79, 70, 229, 0.35); }

/* the space beneath */
.beneath { opacity: 0; }
.beneath img { position: absolute; left: -2700px; top: -1520px; width: 5400px; height: 3040px; max-width: none; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 72%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 72%); }

.sys { opacity: 0; width: 0; height: 0; }
.sys b { position: absolute; top: -16px; white-space: nowrap; display: block; font-family: var(--sc-font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--sc-ink); }
.sys--l b { right: 0; text-align: right; }
.sys--r b { left: 0; }

/* --- the packet ---------------------------------------------------------- */
.packet { opacity: 0; }
.packet__f {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  white-space: nowrap; font-family: var(--sc-font-mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; background: var(--nv-indigo); color: #FFFFFF;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--nv-indigo) 22%, transparent), 0 6px 18px -6px rgba(67, 56, 202, 0.7);
  opacity: 0;
}
.packet__f.is-on { opacity: 1; }

/* --- operations ---------------------------------------------------------- */
.floor { opacity: 0; }
.floor svg { position: absolute; left: -1500px; top: -1200px; width: 3000px; height: 2400px; }
.floor path { stroke: color-mix(in oklab, var(--d-accent) 85%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.floor svg { mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); }

.panel {
  opacity: 0; color: var(--sc-ink);
}
.panel > * { position: relative; }
.panel { --pw: 360px; --ph: 232px; }
.panel--quote { --pw: 400px; --ph: 300px; }
.panel::before {
  content: ""; position: absolute; left: calc(var(--pw) * -0.5); top: calc(var(--ph) * -0.5); width: var(--pw); height: var(--ph);
  border-radius: 10px; background: var(--sc-surface);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent);
  box-shadow: 0 30px 70px -30px rgba(4, 6, 20, 0.7), var(--sc-edge);
}
.panel > * { position: absolute; left: calc(var(--pw) * -0.5 + 20px); width: calc(var(--pw) - 40px); }
.panel__head { top: calc(var(--ph) * -0.5 + 18px); display: flex; justify-content: space-between; align-items: center; font-family: var(--sc-font-display); font-weight: 600; font-size: 16px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.panel__state { font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-accent); border: 1px solid color-mix(in oklab, var(--sc-accent) 50%, transparent); padding: 3px 8px; border-radius: 999px; }
.panel__state--paid { color: #22C55E; border-color: rgba(34, 197, 94, 0.5); }
.panel__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.35; opacity: 0; transform: translate3d(0, 6px, 0); }
.panel__row b { font-weight: 600; font-family: var(--sc-font-display); font-size: 15px; }
.panel__row span { color: var(--sc-ink-soft); }
.panel__row b + span { color: var(--sc-ink-soft); font-size: 12px; }
.panel__row--src span:first-child { font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel__row--num { font-variant-numeric: tabular-nums; }
.panel__row--num b { font-family: var(--sc-font-text); font-size: 14px; }
.panel__sample { top: calc(var(--ph) * 0.5 + 10px); font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--sc-ink-soft); white-space: nowrap; }
/* row stacking */
.panel__lines { top: calc(var(--ph) * -0.5 + 62px); border-collapse: collapse; font-size: 12.5px; }
.panel__lines td { padding: 5px 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 8%, transparent); }
.panel__lines tr { opacity: 0; }
.panel__lines td:nth-child(2), .panel__lines td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); white-space: nowrap; padding-left: 12px; }
.panel__lines td:nth-child(3) { color: var(--sc-ink); }
.panel__total { top: calc(var(--ph) * 0.5 - 44px); display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sc-font-display); font-weight: 600; font-size: 15px; opacity: 0; }
.panel__total b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.panel__week { display: flex; gap: 6px; opacity: 0; }
.panel__week i { flex: 1; height: 26px; border-radius: 5px; border: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); display: grid; place-items: center; font-style: normal; font-family: var(--sc-font-mono); font-size: 10px; color: var(--sc-ink-soft); }
.panel__week i.is-on { background: var(--sc-accent); color: var(--sc-accent-ink); border-color: transparent; }

/* explicit row positions per panel (rows are absolutely stacked; the head is child 1) */
[data-nv-obj="lead"] > :nth-child(2) { top: calc(var(--ph) * -0.5 + 64px); }
[data-nv-obj="lead"] > :nth-child(3) { top: calc(var(--ph) * -0.5 + 96px); }
[data-nv-obj="lead"] > :nth-child(4) { top: calc(var(--ph) * -0.5 + 118px); }
[data-nv-obj="lead"] > :nth-child(5) { top: calc(var(--ph) * -0.5 + 150px); }
[data-nv-obj="lead"] > :nth-child(6) { top: calc(var(--ph) * -0.5 + 174px); }
[data-nv-obj="lead"] > .panel__sample { top: calc(var(--ph) * 0.5 + 10px); }
[data-nv-obj="job"] > :nth-child(2) { top: calc(var(--ph) * -0.5 + 64px); }
[data-nv-obj="job"] > :nth-child(3) { top: calc(var(--ph) * -0.5 + 100px); }
[data-nv-obj="job"] > :nth-child(4) { top: calc(var(--ph) * -0.5 + 142px); }
[data-nv-obj="job"] > :nth-child(5) { top: calc(var(--ph) * -0.5 + 172px); }
[data-nv-obj="invoice"] > :nth-child(2) { top: calc(var(--ph) * -0.5 + 64px); }
[data-nv-obj="invoice"] > :nth-child(3) { top: calc(var(--ph) * -0.5 + 94px); }
[data-nv-obj="invoice"] > :nth-child(4) { top: calc(var(--ph) * -0.5 + 124px); }
[data-nv-obj="invoice"] > :nth-child(5) { top: calc(var(--ph) * -0.5 + 164px); }

.procline { opacity: 0; }
.procline svg { position: absolute; left: -600px; top: -20px; width: 1200px; height: 40px; overflow: visible; }
.procline path { fill: none; stroke: var(--sc-ink); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.procline circle { fill: var(--sc-canvas); stroke: var(--sc-ink); stroke-width: 1; }
.dcap { opacity: 0; }
.dcap b { position: absolute; left: 0; top: 0; translate: -50% 0; white-space: nowrap; font-family: var(--sc-font-display); font-weight: 500; font-size: calc(15px / var(--u)); letter-spacing: -0.01em; color: var(--sc-ink); }
.proc { opacity: 0; }
.proc b, .proc span { position: absolute; left: 0; translate: -50% 0; white-space: nowrap; display: block; text-align: center; }
.proc b { top: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: calc(15px / var(--u)); letter-spacing: -0.01em; color: var(--sc-ink); }
.proc span { top: 22px; font-size: 12px; color: var(--sc-ink-soft); }

/* ------------------------------------------------------------------ copy -- */
/* One block at a time, centred, in a band the world composition never
   occupies: the top band, the bottom band, or the middle when nothing else
   is on screen. */
.copy {
  left: 0; right: 0; inset-inline: 0; margin-inline: auto;
  width: min(46rem, 88vw); max-width: none;
  text-align: center; color: var(--sc-ink);
}
.copy--top { top: clamp(5.5rem, 12vh, 9rem); }
.copy--bottom { bottom: clamp(3.5rem, 9vh, 7rem); }
.copy--mid { top: 50%; translate: 0 -50%; }
/* colour is inherited from the block on purpose: the site stylesheet gives
   headings their own ink in a base layer, and these must follow the world. */
.copy__h, .land__h, .close__h { color: inherit; }
.copy__h { font-size: var(--sc-t-2xl); font-weight: 500; letter-spacing: var(--sc-track-tight); line-height: 1.04; max-width: 20ch; margin-inline: auto; }
.copy__h--xl { font-size: var(--sc-t-3xl); max-width: 16ch; }
.copy__h--lg { font-size: var(--sc-t-3xl); max-width: none; }
.copy__h--md { font-size: var(--sc-t-xl); max-width: none; }
.copy__p { margin: var(--sc-4) auto 0; font-size: var(--sc-t-lg); line-height: 1.45; color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }
.copy__wipe { display: inline-block; padding: 0.08em 0.06em 0.16em; margin: -0.08em -0.06em -0.16em; }
.copy--indigo { width: max-content; max-width: 88vw; color: #FFFFFF; padding: 0.85rem 1.5rem; border-radius: var(--sc-r-md); }
.copy--indigo .copy__h { color: #FFFFFF; }

/* plates: a soft wash of the canvas under each copy block, mounted as a
   SIBLING so the contrast pass can measure it (see verify.md). */
.nv-plate {
  position: absolute; z-index: calc(var(--sc-z-copy) - 1); pointer-events: none; opacity: 0;
  border-radius: 28px;
  background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  box-shadow: 0 0 34px 26px color-mix(in oklab, var(--sc-canvas) 80%, transparent);
}
.nv-plate--indigo {
  border-radius: var(--sc-r-md); background: var(--nv-indigo);
  box-shadow: 0 18px 40px -16px rgba(67, 56, 202, 0.5);
}

/* --------------------------------------------------------------- landing -- */
.land {
  /* the landing is always light: the world has come to rest here */
  --sc-canvas: var(--l-canvas); --sc-surface: var(--l-surface); --sc-ink: var(--l-ink); --sc-ink-soft: var(--l-soft);
  --sc-accent: var(--l-accent); --sc-accent-ink: var(--l-accent-ink);
  background: var(--sc-canvas); color: var(--sc-ink);
  position: relative; z-index: 2;
}
.land--proof { padding-block: var(--sc-7) var(--sc-9); }
.land--pricing { padding-block: var(--sc-9); border-top: 1px solid var(--sc-hairline); }
.land__wrap { max-width: 68rem; }
.land__h { max-width: 18ch; }
.land__lede { margin: var(--sc-5) 0 0; color: var(--sc-ink-soft); max-width: 52ch; text-wrap: pretty; }
.land__note { margin: var(--sc-7) 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

.proof { margin-top: var(--sc-7); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sc-6) var(--sc-8); }
.proof__item { margin: 0; padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline); }
.proof__item:first-child { grid-row: span 2; }
.proof__item blockquote { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; max-width: 30ch; }
.proof__item:first-child blockquote { font-size: var(--sc-t-xl); }
.proof__item figcaption { margin-top: var(--sc-4); font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }

/* ------------------------------------------------------------ pricing --
   A short pinned sequence. The ground is a material that blends between
   plans: silver, gold, indigo, black. The blend happens in the gaps between
   plans, never under legible copy; JS crossfades the four layers and writes
   the blended ink as rgb() on the stage. */
.pricing { --pr-ink: #15161C; --pr-soft: #4A4E5C; --pr-bg: #E6E8EC; }
.pricing__stage { color: var(--pr-ink); background: #E6E8EC; }
.pr-ground { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.pr-ground__m { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.pr-ground__m--silver { opacity: 1; background: linear-gradient(155deg, #F5F6F8 0%, #D6DAE0 36%, #F2F3F5 60%, #C4C9D1 100%); }
.pr-ground__m--gold   { background: linear-gradient(155deg, #F8EED8 0%, #DEC48A 36%, #FAF1DC 60%, #C2A159 100%); }
.pr-ground__m--blue   { background: linear-gradient(155deg, #17153F 0%, #2B2782 40%, #1B1850 68%, #3B33AE 100%); }
.pr-ground__m--black  { background: linear-gradient(155deg, #0B0B0E 0%, #17171C 42%, #09090C 72%, #221D17 100%); }
.pr-ground__sheen {
  position: absolute; inset: -30% -60%; pointer-events: none; will-change: transform;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%);
  mix-blend-mode: soft-light;
}

.pr-head, .pr-plan {
  position: absolute; z-index: 2; left: 0; right: 0; margin-inline: auto;
  width: min(44rem, 88vw); text-align: center;
}
.pr-head { top: 50%; translate: 0 -50%; }
.pr-head__h { font-size: var(--sc-t-3xl); font-weight: 500; letter-spacing: var(--sc-track-tight); line-height: 1.02; margin: 0; color: var(--pr-ink); }
.pr-head__p { margin: var(--sc-4) auto 0; font-size: var(--sc-t-lg); line-height: 1.45; color: var(--pr-soft); max-width: 40ch; text-wrap: pretty; }

.pr-plan { top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; color: var(--pr-ink); }
.pr-plan__name { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); letter-spacing: -0.02em; }
.pr-plan__flag { display: inline-block; margin-left: 0.6em; font-style: normal; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.1em; text-transform: uppercase; vertical-align: middle; color: var(--pr-soft); }
.pr-plan__from { margin-top: var(--sc-6); font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pr-soft); }
.pr-plan__price { display: block; font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); letter-spacing: -0.04em; line-height: 1; margin-top: var(--sc-2); font-variant-numeric: tabular-nums; }
.pr-plan__for { margin: var(--sc-5) auto 0; font-size: var(--sc-t-lg); line-height: 1.4; max-width: 34ch; color: var(--pr-soft); text-wrap: pretty; }
.pr-plan__inc { list-style: none; margin: var(--sc-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.4rem; font-size: var(--sc-t-sm); color: var(--pr-soft); }
.pr-plan__inc li { position: relative; }
.pr-plan__inc li + li::before { content: ""; position: absolute; left: -0.9rem; top: 0.62em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.pr-plan__cta {
  display: inline-flex; align-items: center; margin-top: var(--sc-7);
  padding: 0.9rem 1.45rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: var(--sc-t-base); background: var(--pr-ink); color: var(--pr-bg);
  transition: opacity var(--sc-d-fast) var(--sc-ease-out);
}
.pr-plan__cta:hover { opacity: 0.86; }
.pr-plan__cta:active { translate: 0 1px; }

.land--close { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--sc-hairline); }
.close { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sc-10) var(--sc-gutter) var(--sc-8); }
.close__mark { width: 34px; height: 34px; color: var(--sc-accent); margin-bottom: var(--sc-6); }
.close__h { max-width: 14ch; }
.close__p { margin: var(--sc-5) 0 0; color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; }
.cta {
  display: inline-flex; align-items: center; margin-top: var(--sc-7);
  padding: 0.95rem 1.5rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: var(--sc-t-base); background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.55);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.cta:hover { background: #4338CA; box-shadow: 0 18px 36px -14px rgba(79, 70, 229, 0.6); }
.cta:active { translate: 0 1px; }

.foot { padding: var(--sc-6) var(--sc-gutter) var(--sc-6); border-top: 1px solid var(--sc-hairline); max-width: var(--sc-maxw); margin-inline: auto; width: 100%; }
.foot__row { display: flex; flex-wrap: wrap; gap: var(--sc-4) var(--sc-6); align-items: baseline; justify-content: space-between; }
.foot__row--links { margin-top: var(--sc-4); justify-content: flex-start; font-size: var(--sc-t-sm); }
.foot__row a { text-decoration: none; color: var(--sc-ink-soft); }
.foot__row a:hover { color: var(--sc-ink); }
.foot__brand { font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-ink) !important; font-size: 1.05rem; letter-spacing: -0.02em; }
.foot__mail { color: var(--sc-ink) !important; font-size: var(--sc-t-sm); }
.foot__small { margin: var(--sc-4) 0 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .face, .panel, .panel__row, .panel__lines tr, .panel__total, .panel__week, .sys, .ann, .wires, .proc, .procline, .packet { transition: opacity 150ms var(--sc-ease-out); }
}

/* ---------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  .chrome { padding: var(--sc-3) var(--sc-gutter); }
  .chrome__cta { font-size: 0.8rem; }

  .copy { width: min(46rem, 90vw); }
  .copy--top { top: clamp(5.75rem, 12vh, 7.5rem); }
  .copy--bottom { bottom: clamp(3rem, 8vh, 6rem); }
  .copy__h { font-size: var(--sc-t-xl); }
  .copy__h--xl { font-size: var(--sc-t-2xl); }
  .copy__h--lg { font-size: var(--sc-t-2xl); }
  .copy__p { font-size: var(--sc-t-base); }
  .sys b { font-size: calc(13px / var(--u)); left: 0; right: auto; translate: -50% 0; text-align: center; top: -8px; }
  .proc b { font-size: calc(11px / var(--u)); }
  .dcap b { font-size: calc(12px / var(--u)); }
  .plate-c__tag { font-size: calc(9px / var(--u)); }

  .proof { grid-template-columns: 1fr; }
  .proof__item:first-child { grid-row: auto; }
  .ledger__row { grid-template-columns: 1fr 1fr; }
  .ledger__inc { grid-column: 1 / -1; }
  .ledger__cta { grid-column: 1 / -1; justify-self: start; }
  .pr-head__h { font-size: var(--sc-t-2xl); }
  .pr-plan__price { font-size: clamp(3rem, 2rem + 8vw, 4.6rem); }
  .pr-plan__inc { flex-direction: column; gap: 0.25rem; }
  .pr-plan__inc li + li::before { display: none; }
  .close { padding-top: var(--sc-9); }
  .foot { padding-bottom: calc(var(--sc-6) + 3rem + env(safe-area-inset-bottom)); }
  .close__h { font-size: var(--sc-t-2xl); }
}
