@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin.woff2") format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* WGTECH site styles.
   The page is light and mostly type. The one busy thing is the worked
   example under the headline: a document on the left, what the software
   read from it on the right. Everything below it is plain text, laid out
   differently section by section. The page closes on a dark band with the
   contact address. One typeface throughout (Archivo); the example document
   is set in its condensed width so it reads as a form, not as our own
   words. */

:root {
  /* Palette */
  --c-paper: #F5F6FA;
  --c-surface: #FFFFFF;
  --c-ink: #171C3A;
  --c-muted: #565C76;
  --c-accent: #2A3BCB;
  --c-accent-ink: #FFFFFF;
  --c-signal: #A85F08;
  --c-signal-wash: #FBEFD9;
  --c-rule: #D3D7E4;
  --c-wash: #E7EAF6;
  --c-night: #141939;
  --c-night-raised: #1E2452;
  --c-night-fg: #F1F3FB;
  --c-night-muted: #B4BAD9;
  --c-night-rule: #30376C;
  --c-night-accent: #A9B3FF;

  /* Working tokens. The .night and .day scopes below remap these. */
  --paper: var(--c-paper);
  --surface: var(--c-surface);
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --accent: var(--c-accent);
  --accent-ink: var(--c-accent-ink);
  --signal: var(--c-signal);
  --signal-wash: var(--c-signal-wash);
  --rule: var(--c-rule);
  --wash: var(--c-wash);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: 1.5rem;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-paper: #0E1124;
    --c-surface: #161A33;
    --c-ink: #E9EBF5;
    --c-muted: #A6ACC5;
    --c-accent: #98A5FF;
    --c-accent-ink: #0E1124;
    --c-signal: #F0AE55;
    --c-signal-wash: #3A2B10;
    --c-rule: #2B3052;
    --c-wash: #232849;
    --c-night: #1A2054;
    --c-night-raised: #252C6A;
    --c-night-fg: #F1F3FB;
    --c-night-muted: #BDC3E4;
    --c-night-rule: #394184;
    --c-night-accent: #B3BCFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-paper: #0E1124;
  --c-surface: #161A33;
  --c-ink: #E9EBF5;
  --c-muted: #A6ACC5;
  --c-accent: #98A5FF;
  --c-accent-ink: #0E1124;
  --c-signal: #F0AE55;
  --c-signal-wash: #3A2B10;
  --c-rule: #2B3052;
  --c-wash: #232849;
  --c-night: #1A2054;
  --c-night-raised: #252C6A;
  --c-night-fg: #F1F3FB;
  --c-night-muted: #BDC3E4;
  --c-night-rule: #394184;
  --c-night-accent: #B3BCFF;
  color-scheme: dark;
}

.night {
  --paper: var(--c-night);
  --surface: var(--c-night-raised);
  --ink: var(--c-night-fg);
  --muted: var(--c-night-muted);
  --accent: var(--c-night-accent);
  --accent-ink: var(--c-night);
  --rule: var(--c-night-rule);
  --wash: var(--c-night-raised);
  color: var(--ink);
}
.day {
  --paper: var(--c-paper);
  --surface: var(--c-surface);
  --ink: var(--c-ink);
  --muted: var(--c-muted);
  --accent: var(--c-accent);
  --accent-ink: var(--c-accent-ink);
  --rule: var(--c-rule);
  --wash: var(--c-wash);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: var(--step--1); line-height: 1.5; color: var(--muted); }
.prose p { max-width: 34em; }
.prose > * + * { margin-top: 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--c-surface); color: var(--c-ink); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 120%; font-size: 1.125rem; letter-spacing: 0.01em; }
.brand svg { width: 1.375rem; height: 1.375rem; color: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); font-size: 0.9375rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.4rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav .nav-cta { font-weight: 650; color: var(--accent); }
@media (max-width: 940px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- Opening ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }
.hero h1 { font-weight: 690; font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.024em; max-width: 14em; }
.lede { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.5; max-width: 33em; }
.actions { margin-top: clamp(1.5rem, 3vw, 1.75rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; font-size: 0.9375rem; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 650; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; padding: 0.8rem 1.2rem; border-radius: 3px; border: 0; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.hero-note { margin-top: 1.1rem; font-size: var(--step-0); color: var(--muted); }

/* ---------- The worked example ---------- */
.demo-intro { margin-top: clamp(2.75rem, 6vw, 4.5rem); font-size: var(--step-0); color: var(--muted); }
.demo { position: relative; margin-top: 0.9rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 28, 58, 0.04), 0 2rem 3rem -2.25rem rgba(23, 28, 58, 0.4); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding-inline: clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--rule); }
.tabs { display: flex; gap: clamp(1rem, 2.4vw, 1.75rem); overflow-x: auto; max-width: 100%; }
.tab { flex: none; min-height: 3.1rem; font-size: 0.9375rem; padding: 0.2rem 0 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline-offset: -3px; }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); font-weight: 600; line-height: 1; padding-block: 0.9rem; color: var(--accent); transition: color 0.3s; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status.wait { color: var(--signal); }
.status.done { color: var(--ink); }
html.anim .status.run::before { animation: blink 0.9s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
html.anim .demo:not(.live) #demo-panel { visibility: hidden; }

.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--rule); }
.flow-steps li { position: relative; padding: 1.15rem 0.75rem 0 0; font-size: var(--step--1); line-height: 1.35; color: var(--muted); }
.flow-steps li::before { content: ""; position: absolute; left: 0; top: 0.3rem; right: 0; height: 2px; background: linear-gradient(to right, var(--accent) 50%, var(--rule) 50%); background-size: 200% 100%; background-position: 100% 0; transition: background-position 0.5s var(--ease); }
.flow-steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--rule); transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.flow-steps b { display: block; font-size: var(--step-0); font-weight: 650; color: var(--ink); transition: color 0.25s; }
.flow-steps .done::before { background-position: 0 0; }
.flow-steps .done::after { background: var(--accent); border-color: var(--accent); }
.flow-steps .now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--wash); }
.flow-steps .now b { color: var(--accent); }
.flow-steps .wait::after { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash); }
.flow-steps .wait b { color: var(--signal); }
@media (max-width: 760px) {
  .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .flow-steps li { padding: 0 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
  .flow-steps li::before { display: none; }
  .flow-steps li::after { top: 0.3rem; }
}

.demo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.pane { padding: 1.25rem clamp(1rem, 2.5vw, 1.5rem); min-width: 0; }
.pane + .pane { border-left: 1px solid var(--rule); }
.pane-label { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
/* The incoming document: a sheet lying on the desk, set in the condensed width. */
.demo-grid > .pane:first-child { background: var(--paper); }
.doc-body { position: relative; overflow: hidden; margin-top: 0.8rem; max-width: 31rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 1px 2px rgba(23, 28, 58, 0.05), 0 14px 24px -18px rgba(23, 28, 58, 0.35); padding: 1.35rem 1.5rem 1.5rem; font-size: 0.9688rem; font-stretch: 88%; line-height: 1.7; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.doc-body p.sp { height: 0.7rem; }
.doc-body mark { background: var(--wash); color: inherit; padding: 0.1em 0.2em; margin: 0 -0.2em; border-radius: 0.2em 0.55em 0.25em 0.5em / 0.5em 0.25em 0.55em 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background 0.3s, color 0.2s; }
.doc-body mark.off { background: transparent; }
.doc-body mark.flag { background: var(--signal-wash); }
.doc-body mark.hot { background: var(--accent); color: var(--accent-ink); }
.doc-body mark.flag.hot { background: var(--signal); color: var(--surface); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2.6rem; margin-top: -2.6rem; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, transparent, var(--wash)); border-bottom: 2px solid var(--accent); }
.doc-body.scanning .scan { opacity: 0.6; animation: scan 1.7s linear forwards; }
@keyframes scan { from { top: 0; } to { top: calc(100% + 2.6rem); } }

.fields { margin-top: 0.8rem; display: grid; }
.field { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.1rem 0.75rem; width: 100%; text-align: left; padding: 0.55rem 0.6rem; border: 0; border-top: 1px solid var(--rule); border-left: 3px solid transparent; background: transparent; cursor: pointer; font-size: var(--step-0); line-height: 1.4; transition: background 0.2s, border-color 0.3s; }
.fields li:first-child .field { border-top: 0; }
.field .f-label { color: var(--muted); }
.field .f-value { font-weight: 600; font-variant-numeric: tabular-nums; justify-self: start; border-radius: 3px; transition: color 0.25s, background 0.4s; }
.field .f-note { grid-column: 2; font-size: var(--step--1); color: var(--muted); transition: opacity 0.3s, color 0.3s; }
.field .f-note.fn { visibility: hidden; }
.field.flag .f-note.fn { visibility: visible; }
.field.pending { cursor: default; }
.field.pending .f-value { color: transparent; background: var(--wash); }
.field.pending .f-note { opacity: 0; }
.field.just .f-value { animation: land 0.55s var(--ease); }
@keyframes land { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.doc-body mark.ping { animation: ping 0.7s var(--ease); }
@keyframes ping { 0%, 35% { background: var(--accent); color: var(--accent-ink); } }
html.anim .decision:not(.wait) .choice.primary { animation: nudge 1.5s ease-out 0.5s 2; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 var(--accent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.field.hot { background: var(--wash); }
.field.flag { border-left-color: var(--signal); }
.field.flag .f-note { color: var(--signal); font-weight: 600; }
.field.flag.hot { background: var(--signal-wash); }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) { .field { grid-template-columns: minmax(0, 1fr); } .field .f-note { grid-column: 1; } }

.decision { border-top: 1px solid var(--rule); padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.9rem 1.5rem; align-items: center; min-height: 4.6rem; }
.decision > * { transition: opacity 0.35s, transform 0.35s var(--ease); }
.decision.wait > * { opacity: 0; transform: translateY(6px); visibility: hidden; }
.issue { font-size: var(--step-0); line-height: 1.45; }
.issue b { color: var(--signal); font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { min-height: 2.75rem; font-size: var(--step-0); font-weight: 600; padding: 0.6rem 0.95rem; border-radius: 4px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.choice:hover { background: var(--ink); color: var(--paper); }
.choice.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.outcome { font-size: var(--step-0); line-height: 1.45; }
.again { min-height: 2.75rem; font-size: var(--step--1); font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.45rem 0.75rem; cursor: pointer; transition: border-color 0.15s; }
.again:hover { border-color: var(--accent); }
.result { grid-column: 1 / -1; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--paper); padding: 0.85rem 1rem; }
.result-title { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.result dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem 1.25rem; margin-top: 0.6rem; }
.result dt { font-size: var(--step--1); color: var(--muted); }
.result dd { font-size: var(--step-0); font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.result p { font-size: var(--step-0); line-height: 1.5; margin-top: 0.5rem; max-width: 46em; }
html.anim .result { animation: arrive 0.5s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .decision { grid-template-columns: minmax(0, 1fr); } }
.demo-note { border-top: 1px solid var(--rule); padding: 0.8rem clamp(1rem, 2.5vw, 1.5rem); font-size: var(--step--1); line-height: 1.5; color: var(--muted); }


/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.section h2, .contact h2 { font-weight: 690; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -0.018em; }
.section h3 { font-weight: 650; line-height: 1.25; }
.section-lead { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.45; max-width: 32em; color: var(--muted); }
.section-foot { margin-top: clamp(1.5rem, 3vw, 2rem); max-width: 46em; }

/* ---------- What it can take off your desk ----------
   Jobs by team. Each tile is a title, what comes in, what comes out, and
   what is left for a person. */
.use-tabs { display: none; flex-wrap: wrap; gap: 0.4rem; margin-top: clamp(1.25rem, 3vw, 1.75rem); }
html.js .use-tabs { display: flex; }
.use-tab { min-height: 2.6rem; padding: 0.45rem 0.9rem; border: 1px solid var(--rule); border-radius: 4px; background: transparent; color: var(--ink); font-size: var(--step-0); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.use-tab:hover { border-color: var(--ink); }
.use-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.use-panel { margin-top: 1.25rem; }
.use-panel > h3 { margin-bottom: 0.8rem; font-size: var(--step-2); }
html.js .use-panel:not(.on) { display: none; }
html.js .use-panel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.use { display: grid; align-content: start; gap: 0.75rem; padding: 1rem 1rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.use h4 { font-size: var(--step-1); font-weight: 650; line-height: 1.25; }
.io { display: grid; font-size: var(--step--1); line-height: 1.35; }
.io span { padding: 0.5rem 0.65rem; border-radius: 4px; }
.io .in { background: var(--paper); border: 1px solid var(--rule); color: var(--muted); }
.io .out { background: var(--wash); border: 1px solid var(--wash); font-weight: 600; }
.io i { position: relative; justify-self: start; width: 2px; height: 0.85rem; margin-left: 1.1rem; background: var(--accent); }
.io i::after { content: ""; position: absolute; left: -4px; bottom: -1px; border: 5px solid transparent; border-top: 6px solid var(--accent); border-bottom: 0; }
.use .you { font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
html.anim .use-panel.on .use { animation: arrive 0.35s var(--ease) both; }
html.anim .use-panel.on .use:nth-child(2) { animation-delay: 0.05s; }
html.anim .use-panel.on .use:nth-child(3) { animation-delay: 0.1s; }
html.anim .use-panel.on .use:nth-child(4) { animation-delay: 0.15s; }
@media (max-width: 960px) { .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .use-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inside your OA system ----------
   A made-up OA screen with one request in it. The visitor changes a rule
   on the right and the request's route and the record update. */
.oa { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.25rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.oa-win { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 28, 58, 0.04), 0 1.75rem 2.5rem -2.25rem rgba(23, 28, 58, 0.4); }
.oa-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.9rem; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.oa-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rule); }
.oa-bar span { margin-left: 0.6rem; }
.oa-body { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); }
.oa-nav { display: grid; gap: 0.15rem; align-content: start; padding: 0.9rem 0.6rem; border-right: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.oa-nav li { padding: 0.4rem 0.6rem; border-radius: 4px; }
.oa-nav .on { background: var(--wash); color: var(--ink); font-weight: 600; }
.oa-main { padding: 1.15rem 1.25rem 1.5rem; min-width: 0; }
.oa-req b { display: block; font-size: var(--step-1); font-weight: 650; }
.oa-req span { font-size: var(--step-0); color: var(--muted); }
.oa-route { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.oa-route li { position: relative; display: grid; align-content: start; gap: 0.15rem; min-height: 6.4rem; padding: 0.65rem 0.75rem 0.8rem; background: var(--surface); border: 1px solid var(--rule); border-top-width: 3px; border-radius: 5px; font-size: var(--step--1); line-height: 1.35; color: var(--muted); transition: border-color 0.25s, background 0.25s, opacity 0.25s; }
.oa-route li + li::before { content: ""; position: absolute; left: calc(-0.9rem - 1px); top: 1.2rem; width: 0.9rem; height: 2px; background: var(--rule); }
.oa-route b { font-size: var(--step-0); font-weight: 650; color: var(--ink); transition: color 0.25s; }
.oa-route em { font-style: normal; font-size: 0.75rem; font-weight: 650; color: var(--accent); }
.oa-route strong { justify-self: start; margin-top: 0.35rem; padding: 0.15rem 0.45rem; border-radius: 3px; font-size: 0.75rem; font-weight: 650; line-height: 1.35; background: var(--accent); color: var(--accent-ink); transition: background 0.25s; }
.oa-route .done { border-top-color: var(--accent); }
.oa-route .agent { border-color: var(--accent); background: var(--wash); }
.oa-route .agent.over strong { background: var(--signal); color: var(--surface); }
.oa-route .wait { border-top-color: var(--signal); background: var(--signal-wash); }
.oa-route .wait b { color: var(--signal); }
.oa-route .passed-by { border-style: dashed; opacity: 0.55; }
.oa-side { display: grid; grid-template-rows: auto 1fr; gap: 1.25rem; }
.oa-rule, .oa-log { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem 1.15rem; }
.oa-label { font-size: var(--step--1); color: var(--muted); }
.oa-rule-name { margin-top: 0.2rem; font-size: var(--step-0); font-weight: 650; line-height: 1.35; }
.stepper { margin-top: 0.8rem; display: flex; align-items: center; gap: 0.75rem; }
.stepper output { min-width: 3.3ch; text-align: center; font-size: 2rem; font-weight: 690; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stepper button { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.3rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background 0.15s, color 0.15s, opacity 0.15s; }
html.js .stepper button { display: inline-grid; place-items: center; }
.stepper button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.oa-log ol { margin-top: 0.6rem; display: grid; align-content: start; gap: 0.45rem; min-height: 6.6rem; font-size: var(--step--1); line-height: 1.4; }
.oa-log li { position: relative; padding-left: 0.9rem; }
.oa-log li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; background: var(--accent); }
.oa-log li.mine::before { background: var(--signal); }
html.anim .oa-log li.fresh { animation: arrive 0.4s var(--ease) both; }
.oa-points { margin-top: clamp(1.5rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 4vw, 3rem); font-size: var(--step-0); line-height: 1.45; }
.oa-points b { display: block; margin-bottom: 0.15rem; font-size: var(--step-1); font-weight: 650; }
@media (max-width: 960px) {
  .oa { grid-template-columns: minmax(0, 1fr); }
  .oa-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
}
@media (max-width: 700px) {
  .oa-body { grid-template-columns: minmax(0, 1fr); }
  .oa-nav { display: none; }
  .oa-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oa-route li { min-height: 0; }
  .oa-route li + li::before { display: none; }
  .oa-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .oa-side { grid-template-columns: minmax(0, 1fr); } }

/* ---------- What we take on ---------- */
.cards { display: grid; gap: 1.75rem clamp(1.25rem, 3vw, 2rem); }
.cards.main { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.cards.also { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3vw, 2rem); }
.pic { display: flex; align-items: center; justify-content: center; height: 11rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.cards.also .pic { height: 9.25rem; }
.card > h3 { margin-top: 0.9rem; font-size: var(--step-2); }
.cards.also .card > h3 { font-size: var(--step-1); }
.card > p { margin-top: 0.3rem; max-width: 34em; font-size: var(--step-0); line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .cards.also { grid-template-columns: minmax(0, 1fr); } .cards.also .pic { height: 11rem; } .cards.also .vig { transform: scale(1.3); } }
@media (max-width: 700px) { .cards.main { grid-template-columns: minmax(0, 1fr); } }

/* A small picture for each service. Each plays once when its card scrolls into view. */
.vig { position: relative; flex: none; width: 11rem; height: 7.4rem; font-size: 0.625rem; line-height: 1.3; font-weight: 600; transform: scale(1.3); }
.cards.also .vig { transform: scale(1.08); }
.vig i, .vig span, .vig b, .vig em { display: block; font-style: normal; }
.vig * { transition: background 0.4s, opacity 0.4s, transform 0.5s var(--ease), left 1.3s var(--ease), border-color 0.4s; }

/* Documents in, table rows out */
.v-doc { position: absolute; left: 0.8rem; top: 0.8rem; bottom: 0.8rem; width: 3.9rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 0.55rem 0.45rem; display: grid; gap: 0.36rem; align-content: start; }
.v-doc i { height: 4px; border-radius: 2px; background: var(--rule); }
.v-doc i:nth-child(1) { width: 60%; }
.v-doc i:nth-child(2) { width: 90%; background: var(--accent); }
.v-doc i:nth-child(3) { width: 75%; }
.v-doc i:nth-child(4) { width: 85%; background: var(--accent); }
.v-doc i:nth-child(5) { width: 50%; }
.v-doc i:nth-child(6) { width: 70%; background: var(--signal); }
.v-arrow { position: absolute; left: 5.05rem; top: 50%; width: 0.95rem; height: 2px; background: var(--muted); }
.v-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 5px solid var(--muted); border-right: 0; }
.v-table { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); width: 3.9rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 3px; }
.v-table i { height: 0.72rem; border-radius: 2px; background: var(--wash); }
.v-table i:nth-child(2), .v-table i:nth-child(4) { background: var(--accent); }
.v-table i:nth-child(6) { background: var(--signal); }
html.anim .card:not(.in) .v-doc i, html.anim .card:not(.in) .v-table i { background: var(--rule); }
html.anim .card:not(.in) .v-table i { background: var(--wash); }
.card.in .v-doc i:nth-child(2) { transition-delay: 0.2s; }
.card.in .v-table i:nth-child(2) { transition-delay: 0.45s; }
.card.in .v-doc i:nth-child(4) { transition-delay: 0.7s; }
.card.in .v-table i:nth-child(4) { transition-delay: 0.95s; }
.card.in .v-doc i:nth-child(6) { transition-delay: 1.2s; }
.card.in .v-table i:nth-child(6) { transition-delay: 1.45s; }

/* A request passing along an approval chain */
.v-line { position: absolute; left: 16%; right: 16%; top: 2.55rem; height: 2px; background: var(--rule); }
.v-node { position: absolute; top: 2.05rem; width: 1.05rem; height: 1.05rem; margin-left: -0.525rem; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent); }
.v-node.n1 { left: 16%; } .v-node.n2 { left: 50%; } .v-node.n3 { left: 84%; }
.v-token { position: absolute; top: 2.3rem; left: 84%; width: 0.55rem; height: 0.55rem; margin-left: -0.275rem; border-radius: 50%; background: var(--accent); opacity: 0; }
.vig-flow b { position: absolute; top: 3.5rem; width: 33%; margin-left: -16.5%; text-align: center; color: var(--muted); font-weight: 600; }
.vig-flow .l1 { left: 16%; } .vig-flow .l2 { left: 50%; } .vig-flow .l3 { left: 84%; }
.v-stamp { position: absolute; left: 50%; bottom: 0.7rem; transform: translateX(-50%); padding: 0.22rem 0.55rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
html.anim .card:not(.in) .v-node { background: var(--surface); border-color: var(--rule); }
html.anim .card:not(.in) .v-token { left: 16%; opacity: 1; }
html.anim .card:not(.in) .v-stamp { opacity: 0; transform: translateX(-50%) translateY(5px); }
.card.in .v-token { transition: left 1.3s var(--ease) 0.2s, opacity 0.25s 1.45s; }
.card.in .v-node.n1 { transition-delay: 0.15s; }
.card.in .v-node.n2 { transition-delay: 0.75s; }
.card.in .v-node.n3 { transition-delay: 1.35s; }
.card.in .v-stamp { transition-delay: 1.6s; }

/* A question, an answer, and where the answer came from */
.vig-chat { display: grid; align-content: center; gap: 0.4rem; padding: 0.75rem; }
.vig-chat .q { justify-self: end; max-width: 80%; background: var(--accent); color: var(--accent-ink); padding: 0.3rem 0.5rem; border-radius: 8px 8px 2px 8px; margin: 0; }
.vig-chat .a { justify-self: start; max-width: 85%; background: var(--wash); color: var(--ink); padding: 0.3rem 0.5rem; border-radius: 8px 8px 8px 2px; margin: 0; }
.vig-chat .src { justify-self: start; display: flex; align-items: center; gap: 0.3rem; color: var(--muted); }
.vig-chat .src::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
html.anim .card:not(.in) .vig-chat > * { opacity: 0; transform: translateY(6px); }
.card.in .vig-chat .q { transition-delay: 0.15s; }
.card.in .vig-chat .a { transition-delay: 0.7s; }
.card.in .vig-chat .src { transition-delay: 1.2s; }

/* A web page and a phone screen */
.v-web { position: absolute; left: 0.8rem; top: 0.8rem; width: 6.7rem; height: 4.7rem; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); padding: 0.85rem 0.45rem 0.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; align-content: start; }
.v-web::before { content: ""; position: absolute; left: 0; right: 0; top: 0.5rem; border-top: 1.5px solid var(--ink); }
.v-web i { height: 0.7rem; border-radius: 2px; background: var(--wash); }
.v-web i:nth-child(1) { grid-column: 1 / -1; background: var(--accent); }
.v-phone { position: absolute; right: 0.8rem; bottom: 0.7rem; width: 2.6rem; height: 4.9rem; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--surface); padding: 0.5rem 0.3rem; display: grid; gap: 0.3rem; align-content: start; }
.v-phone i { height: 0.6rem; border-radius: 2px; background: var(--wash); }
.v-phone i:nth-child(1) { height: 1.1rem; background: var(--accent); }
html.anim .card:not(.in) .v-web i, html.anim .card:not(.in) .v-phone i { opacity: 0; transform: translateY(4px); }
.card.in .v-web i:nth-child(1) { transition-delay: 0.15s; }
.card.in .v-web i:nth-child(2) { transition-delay: 0.3s; }
.card.in .v-web i:nth-child(3) { transition-delay: 0.45s; }
.card.in .v-phone i:nth-child(1) { transition-delay: 0.7s; }
.card.in .v-phone i:nth-child(2) { transition-delay: 0.85s; }
.card.in .v-phone i:nth-child(3) { transition-delay: 1s; }

/* The same grid with fewer cells switched on */
.vig-model { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 0.9rem; align-content: center; }
.vig-model i { aspect-ratio: 1; border-radius: 2px; background: var(--accent); }
.vig-model i:nth-child(3n+2), .vig-model i:nth-child(7n), .vig-model i:nth-child(5n+4) { opacity: 0.14; }
html.anim .card:not(.in) .vig-model i { opacity: 1; }
.card.in .vig-model i:nth-child(3n+2) { transition-delay: 0.3s; }
.card.in .vig-model i:nth-child(7n) { transition-delay: 0.7s; }
.card.in .vig-model i:nth-child(5n+4) { transition-delay: 1.1s; }


/* ---------- Is your job worth automating? ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.checker { margin-top: 1.25rem; display: grid; gap: 0.5rem; max-width: 30rem; }
.checker label { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); font-size: var(--step-0); line-height: 1.35; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.checker label:hover { border-color: var(--accent); }
.checker input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin: 0; border: 1.5px solid var(--muted); border-radius: 3px; background: var(--surface); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.checker input:checked { background: var(--accent); border-color: var(--accent); }
.checker input:checked::after { content: ""; width: 0.36rem; height: 0.68rem; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.checker label.on { border-color: var(--accent); background: var(--wash); }
.verdict { margin-top: 0.6rem; min-height: 2.9em; font-size: var(--step-1); line-height: 1.45; }
.verdict b { font-weight: 690; }
.verdict.good b { color: var(--accent); }
.verdict.poor b { color: var(--signal); }
.calc { padding: 1.25rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.calc h3 { font-size: var(--step-2); }
.calc-row { margin-top: 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: baseline; font-size: var(--step-0); }
.calc-row output { font-size: var(--step-2); font-weight: 690; font-variant-numeric: tabular-nums; }
.calc-row input { display: none; grid-column: 1 / -1; width: 100%; height: 1.75rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
html.js .calc-row input { display: block; }
.calc-result { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: var(--step-1); line-height: 1.4; }
.calc-result b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 690; line-height: 1.05; letter-spacing: -0.024em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-result span { color: var(--muted); }
.calc .small { margin-top: 0.9rem; }
@media (max-width: 900px) { .fit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How a project goes ---------- */
.steps4 { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem clamp(1.25rem, 3vw, 2rem); counter-reset: stage; }
.steps4 li { counter-increment: stage; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.steps4 li::before { content: counter(stage); display: block; margin-bottom: 0.7rem; font-size: 2.25rem; font-weight: 690; line-height: 1; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps4 h3 { font-size: var(--step-1); }
.steps4 p { margin-top: 0.25rem; font-size: var(--step-0); line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Who you'd be working with ---------- */
.people { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 5rem); }
.person h3 { font-size: var(--step-2); }
.person .role { margin-top: 0.15rem; font-size: var(--step-0); color: var(--muted); }
.person .bio { margin-top: 0.8rem; max-width: 34em; font-size: var(--step-0); line-height: 1.55; }
.linklist { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.9rem; font-size: var(--step-0); font-weight: 600; }
.chips { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.chips div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.chips dt { font-size: var(--step--1); color: var(--muted); }
.chips dd { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips span { padding: 0.2rem 0.5rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); font-size: var(--step--1); line-height: 1.35; }
.new { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 46rem; padding: 0.9rem 1.1rem; background: var(--wash); border-radius: 4px; font-size: var(--step-0); line-height: 1.5; }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing band: contact and footer ---------- */
.end { background: var(--paper); }
.contact { padding-block: clamp(3.75rem, 8vw, 6rem) clamp(3.25rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.contact h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.04; letter-spacing: -0.024em; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.address a { font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); overflow-wrap: anywhere; }
.copy { font-size: var(--step--1); font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 3px; padding: 0.45rem 0.75rem; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.contact .prose .small { margin-top: 1.5rem; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: var(--step--1); line-height: 1.6; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 3rem; align-items: start; }
.foot p { max-width: 44em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot a { color: var(--ink); }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Plain pages (privacy, 404) ---------- */
.doc { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-weight: 690; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem); line-height: 1.08; letter-spacing: -0.022em; }
.doc h2 { font-size: var(--step-2); font-weight: 650; margin-top: 2.25rem; }
.doc p, .doc ul { margin-top: 0.9rem; }
.doc ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.doc .small { margin-top: 0.75rem; }
