/* percei.ai — site stylesheet, 2026-11 tune-up of the 2026-09 redesign (#33).
   Drop-in replacement for the root site.css: every class the generated pages use still works.
   Blue Porcelain, light only. Aim: calm and easy to read for non-technical readers, mostly on phones.
   What changed and why: design/redesign-2026-11/README.md. */

/* Jost is self-hosted (fonts/). Schibsted Grotesk and Caveat still come from the <link> in build.py's head()
   until they are self-hosted too. Sora and JetBrains Mono are no longer used by this stylesheet. */
@font-face { font-family: 'Jost'; src: url('/fonts/Jost-VariableFont_wght.ttf') format('truetype-variations'), url('/fonts/Jost-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --porcelain: #F8FAFE;
  --white: #FFFFFF;
  --ink: #0F172A;
  --body: #2B3A4F;      /* was #334155: a touch darker for long reading, 11:1 on porcelain */
  --muted: #3F4D63;     /* was #475569 */
  --caption: #536176;   /* was #64748B (4.5:1, borderline); now 6:1 so small print stays readable */
  --faint: #94A3B8;     /* decoration only (borders, dashed markers); never text on a light ground */
  --rule: #E2E8F0;
  --rule-soft: #F1F5F9;
  --cobalt: #0047AB;
  --cobalt-hover: #0060D6;
  --cobalt-100: #E8F1FC;
  --cobalt-200: #D1E3F8;
  --cobalt-300: #A8C8F0;
  --cobalt-400: #6FA3E0;
  --seal: #8B5E3C;      /* terracotta accent; 5.3:1 on porcelain, used for "in progress" */
  --seal-soft: #F6EEE7;
  --seal-light: #C8845A;
  --slate-300: #CBD5E1;
  --good: #166534;
  --good-soft: #DCFCE7;

  --f-display: 'Jost', 'Helvetica Neue', system-ui, sans-serif;
  --f-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-italic: var(--f-display);   /* Sora had no italic: the browser was faking a slant. Retired. */
  --f-hand: 'Caveat', 'Segoe Print', cursive;
  --f-mono: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;  /* mock screens only */

  --gutter: clamp(16px, 4.5vw, 56px);
  --section: clamp(48px, 6vw, 80px);   /* one vertical rhythm for every section */
  --measure: 66ch;                      /* comfortable line length for reading */
  --card: 0 4px 18px rgba(15, 23, 42, 0.06);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[id] { scroll-margin-top: 88px; } /* anchors land clear of the sticky nav */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Content width trimmed from 1440 to 1200: shorter lines and a calmer, less spread-out page on large screens. */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 12px; border-radius: 4px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-family: var(--f-body); font-size: 16px; font-weight: 600; color: var(--white); background: var(--cobalt); padding: 12px 24px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.btn:hover { background: var(--cobalt-hover); color: var(--white); }
.btn--lg { font-size: 17px; padding: 15px 30px; min-height: 52px; }
.btn--quiet { background: none; color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt-300); }
.btn--quiet:hover { background: var(--cobalt-100); color: var(--cobalt); }

/* ── nav ── */
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(248, 250, 254, 0.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--rule); }
.site-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--f-display); font-size: 22px; font-weight: 400; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 16px; color: var(--body); text-decoration: none; padding-block: 10px; white-space: nowrap; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--cobalt); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.site-nav .btn { display: inline-block; font-size: 15px; line-height: 22px; padding: 10px 18px; }
/* optional: "Book a <span class="nav-long">30-minute </span>call" in the nav button reads "Book a call" on phones */

/* ── landing: hero ── */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 56px); max-width: 980px; }
/* Weight 300 to 350: thin hairlines at 60px blur on lower-quality phone screens. */
.hero h1 { font-family: var(--f-display); font-size: clamp(36px, 5vw, 58px); font-weight: 350; line-height: 1.1; letter-spacing: -0.015em; }
/* The cobalt words stay; the faked Sora slant goes. Same face as the rest of the line, coloured. */
.hero h1 em { font-family: var(--f-display); font-style: normal; font-weight: 450; color: var(--cobalt); }
.hero .intro { margin-top: 24px; font-size: 19px; line-height: 1.65; color: var(--body); max-width: 58ch; }
.hero .actions { display: flex; align-items: center; gap: 14px 24px; margin-top: 32px; flex-wrap: wrap; }
/* The timing promise is the second most useful line on the page: body colour, not grey fine print. */
.hero .actions p { font-size: 16px; color: var(--body); }

/* Hero "ways in": three plain doors under the hero (new; service pages). */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 52px); padding: 0; list-style: none; }
.ways a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 22px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.ways a:hover { border-color: var(--cobalt-300); box-shadow: var(--card); }
.ways strong { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ways span { font-size: 16px; line-height: 1.55; color: var(--body); }
.ways em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--cobalt); }

.section { border-top: 1px solid var(--rule); padding-block: var(--section); }
.section-head h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.section-head p { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 62ch; }

/* ── landing: how a project runs ── */
.steps { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 16px; margin-top: 32px; }
.step { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.step-when { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--cobalt); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--cobalt-100); color: var(--cobalt); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step h3 { font-size: 21px; font-weight: 600; }
.step p { font-size: 16px; line-height: 1.65; color: var(--body); }
.step--live { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); gap: 14px; }
.step--live .step-when { color: var(--cobalt-200); }
.step--live .step-num { background: rgba(255, 255, 255, 0.16); color: #fff; }
.step--live h3 { color: #fff; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.path { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 16px 18px; }
.path strong { display: block; margin-bottom: 6px; font-size: 16px; color: #fff; }
.path p, .step--live .after { font-size: 15px; line-height: 1.6; color: #E4EEFB; }

/* ── landing: question rows (answer beside an artefact) ── */
/* Text column widened and the gap narrowed, so the answer reads as one block instead of a thin strip
   stranded beside a large picture. */
.qrow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.qrow--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.qrow--flip .qrow-text { order: 2; }
.qrow h2 { font-size: clamp(24px, 2.6vw, 28px); font-weight: 600; line-height: 1.25; margin-bottom: 14px; }
.qrow-text p { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 52ch; }
.qrow-art { min-width: 0; }
.qrow-art .art { margin: 0; }
.caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--caption); }
/* "Illustrative data only" is an honesty label: same readable caption as the rest, not tiny lowercase mono. */
.caption--mono { font-family: var(--f-body); font-size: 14px; }
.caption--mono::first-letter { text-transform: uppercase; }

/* the hand-drawn week-one drawing */
.drawing { background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #E3EBF5 35px, #E3EBF5 36px), var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 32px 32px 26px; }
.drawing-flow { display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; }
.drawing-step { display: flex; align-items: center; }
.drawing-box { border: 1.5px solid var(--body); padding: 10px 15px; background: var(--white); font-family: var(--f-hand); font-size: 20px; line-height: 1.25; color: var(--ink); }
.drawing-step:nth-child(odd) .drawing-box { transform: rotate(-0.8deg); }
.drawing-step:nth-child(even) .drawing-box { transform: rotate(0.6deg); }
.drawing-arrow { width: 48px; height: 26px; flex: none; }
.drawing-notes { display: flex; gap: 10px 40px; margin-top: 20px; flex-wrap: wrap; }
.drawing-notes span { font-family: var(--f-hand); font-size: 20px; color: var(--cobalt); }
.drawing-notes span:first-child { transform: rotate(-1.2deg); }
.drawing-notes span:last-child { transform: rotate(0.8deg); }

/* ── mock dashboards (v1's, kept as they are until real screens exist, #29) ──
   Content untouched. Two quiet changes only: the "Live" dot no longer pulses (movement in the corner of the
   eye while reading), and greyed "queued" text uses the caption colour so it stays legible. */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes barfill { from { width: 8%; } to { width: 62%; } }
.mock { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--card); overflow: hidden; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--rule); }
.mock-tabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mock-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--caption); }
.chip { font-size: 12.5px; font-weight: 600; color: var(--cobalt); background: var(--rule-soft); padding: 3px 11px; border-radius: 99px; white-space: nowrap; }
.chip--plain { font-weight: 500; color: var(--caption); background: none; }
.chip--solid { color: var(--white); background: var(--cobalt); }
.chip--quiet { color: var(--caption); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--cobalt); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.mock-kpis div { padding: 16px 20px; min-width: 0; }
.mock-kpis div + div { border-left: 1px solid var(--rule-soft); }
.mock-kpis span { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--caption); }
.mock-kpis strong { font-size: 20px; font-weight: 600; }
.mock-row { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 0 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .n { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--cobalt); }
.mock-row .t { font-size: 15px; font-weight: 600; display: block; }
.mock-row .s { font-size: 14px; color: var(--caption); display: block; }
.mock-row .time { font-family: var(--f-mono); font-size: 12.5px; color: var(--caption); }
.mock-row--queued .n, .mock-row--queued .t, .mock-row--queued .s, .mock-row--queued .time { color: var(--caption); }
.mock-row--queued .t { font-weight: 500; }
.progress { display: block; margin-top: 6px; width: 200px; max-width: 100%; height: 6px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 62%; border-radius: 99px; background: var(--cobalt); }
.mock-search { padding: 12px 20px; border-bottom: 1px solid var(--rule-soft); }
.mock-search div { display: flex; align-items: center; gap: 9px; background: var(--rule-soft); border-radius: 6px; padding: 9px 14px; font-size: 14px; color: var(--caption); }
.mock-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 14px; color: var(--caption); }
.mock-line code { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.mock-foot { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 12px 20px; font-size: 13px; color: var(--caption); }
.mock-foot strong { color: var(--ink); font-weight: 600; }
.bars { display: grid; grid-template-columns: 1fr 110px 30px; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; }
.bars span:first-child { font-weight: 500; color: var(--body); }
.bars b { font-weight: 600; text-align: right; }
.bars .bar { height: 6px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 99px; }
.mock-sub { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; color: var(--caption); }
.mock-sub b { color: var(--ink); }
.mock-end { display: flex; justify-content: space-between; padding: 12px 20px; background: var(--porcelain); font-size: 13px; }
.mock-end span:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--caption); }
.mock-end span:last-child { font-weight: 600; color: var(--cobalt); }
.mock--narrow { max-width: 460px; margin-inline: auto; }

/* ── live / in progress ──
   Plain words in two colours, no dots and no pills: cobalt for "running today", terracotta for "being built".
   Markup: <span class="state state--live">Live since June 2026</span>
           <span class="state state--building">In progress: pilot since September 2026</span> */
.state { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.state::before { content: ""; flex: none; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: translateY(-4px); }
.state--live { color: var(--cobalt); }
.state--building { color: var(--seal); }

/* ── landing: the record ── */
.record { background: var(--white); border-top: 1px solid var(--rule); }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 24px; flex-wrap: wrap; }
.record-head h2 { font-size: clamp(26px, 3vw, 32px) !important; } /* overrides the inline size build.py writes */
.record-head a { font-size: 16px; font-weight: 600; text-decoration: none; padding-block: 8px; }
.record-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.record-list a { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; padding: 22px 14px; margin-inline: -14px; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; border-radius: 6px; transition: background .2s; }
.record-list li:first-child a { border-top: 0; }
.record-list a:hover { background: var(--porcelain); }
.record-list .sector { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--caption); }
.record-list p { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 70ch; }
.record-list p strong { font-weight: 600; color: var(--ink); }
.record-list .more { font-size: 15px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }

/* ── call to action strip ── */
.cta { border-top: 1px solid var(--rule); background: var(--cobalt-100); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: clamp(40px, 5vw, 56px); flex-wrap: wrap; }
.cta p { font-size: clamp(20px, 2.2vw, 23px); font-weight: 500; line-height: 1.4; max-width: 40ch; }
.cta .mail { display: block; margin-top: 8px; font-size: 16px; font-weight: 400; color: var(--muted); }
.cta .mail a { font-weight: 600; }

/* ── work index ── */
.page-head { padding-block: clamp(48px, 6vw, 72px) 12px; max-width: 900px; }
.page-head h1 { font-family: var(--f-display); font-size: clamp(34px, 4.2vw, 48px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.page-head p { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 58ch; }
.work-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding-block: 44px; border-bottom: 1px solid var(--rule); }
.work-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 320px); gap: 40px; align-items: start; padding-block: 32px; border-bottom: 1px solid var(--rule); }
.work-row--plain { grid-template-columns: 200px minmax(0, 1fr); }
.work-row:last-child { border-bottom: 0; }
.work-row > .sector-label { padding-top: 4px; }
.sector-label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--caption); }
.work-feature h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; max-width: 24ch; margin: 10px 0 14px; }
.work-row h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.work-feature p, .work-row p { font-size: 17px; line-height: 1.68; color: var(--body); max-width: 60ch; }
.work-feature p.sector-label, .work-row p.sector-label { font-size: 15px; color: var(--caption); }
.work-when { margin-top: 12px; font-size: 15px !important; font-weight: 600; color: var(--ink) !important; }
.work-when span { font-weight: 400; color: var(--caption); }
.read { display: inline-block; margin-top: 12px; padding-block: 6px; font-size: 16px; font-weight: 600; text-decoration: none; }
.mini { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; }
.mini div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; color: var(--body); }
.mini div:last-child { border-bottom: 0; }
.mini strong { font-weight: 600; color: var(--ink); }

/* Work index groups (new): "Running today" above "Being built now", so live and in progress are never mixed. */
.work-group { padding-top: var(--section); }
.work-group + .work-group { margin-top: 8px; }
.work-group-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.work-group-head h2 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.work-group-head p { font-size: 16px; color: var(--muted); }
.work-group--building .work-group-head { border-bottom-color: var(--seal); }

/* ── story pages ── */
/* Story column centred on its own reading measure, instead of a 900px box with a narrower paragraph
   hugging its left edge. */
.story { max-width: calc(var(--measure) + 2 * var(--gutter) + 8ch); margin: 0 auto; padding-inline: var(--gutter); }
.crumb { padding-top: clamp(36px, 5vw, 56px); font-size: 15px; color: var(--caption); }
.crumb a { text-decoration: none; padding-block: 6px; }
.story h1 { margin-top: 14px; font-family: var(--f-display); font-size: clamp(32px, 4.2vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch; }
.story .state { margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; border-block: 1px solid var(--rule); }
.facts div { padding: 18px 24px; }
.facts div:first-child { padding-left: 0; }
.facts div + div { border-left: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--caption); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.lede { margin-top: 32px; font-size: 20px; line-height: 1.7; color: var(--ink); max-width: var(--measure); }
.lede + .lede { margin-top: 16px; }
.beat { padding-top: 52px; }
.beat h2 { font-size: clamp(23px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.beat p { font-size: 18px; line-height: 1.75; color: var(--body); max-width: var(--measure); }
.beat p + p { margin-top: 1em; }
.story-end { height: var(--section); }
.art { margin-top: 28px; }
.art .mock { max-width: 440px; }

/* dated timeline */
.timeline { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--card); padding: 26px 28px 24px; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 20px; position: relative; }
.timeline ol::before { content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; background: var(--cobalt-200); }
.timeline li { position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; background: var(--cobalt); }
.timeline li.now::before { background: var(--white); border: 3px solid var(--cobalt); }
.timeline li.next::before { background: var(--white); border: 2px dashed var(--faint); }
.timeline .when { font-size: 14px; font-weight: 600; color: var(--cobalt); }
.timeline li.next .when { color: var(--caption); }
.timeline strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.timeline span:last-child { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* launch-week support log */
.log { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--card); }
.log h3 { padding: 18px 22px 2px; font-size: 16px; font-weight: 600; }
.log-row { display: grid; grid-template-columns: 110px 1fr 1fr 112px; gap: 18px; padding: 14px 22px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--body); }
.log-row + .log-row { border-top: 1px solid var(--rule-soft); }
.log-row--head { font-size: 14px; font-weight: 600; color: var(--caption); }
.log-row .when { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fixed { justify-self: start; font-size: 13px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }

/* figure cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--card); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--f-display); font-size: 40px; font-weight: 400; line-height: 1.1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.stat strong { font-size: 16px; font-weight: 600; }
.stat span { font-size: 14.5px; line-height: 1.5; color: var(--caption); }

/* sample-data product panels */
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--card); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.panel-head strong { font-size: 16px; }
.panel-head span { font-size: 13.5px; color: var(--caption); }
.table-scroll { overflow-x: auto; }
.ratecard { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ratecard th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--caption); padding: 12px 20px 8px; }
.ratecard td { padding: 12px 20px; border-top: 1px solid var(--rule-soft); color: var(--body); }
.ratecard td:first-child { font-weight: 600; color: var(--ink); }
.ratecard td:last-child { font-weight: 600; color: var(--cobalt); }
.planner { max-width: 460px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.planner-day { display: flex; justify-content: space-between; align-items: center; text-align: center; }
.planner-day > span { font-size: 22px; color: var(--caption); }
.planner-day > span:last-child { color: var(--cobalt); }
.planner-day strong { display: block; font-size: 17px; }
.planner-day small { font-size: 14px; color: var(--caption); }
.meal { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 8px; }
.meal small { display: block; font-size: 13px; font-weight: 600; color: var(--caption); }
.meal strong { font-size: 16px; }
.meal .chip { background: var(--cobalt-100); }
.add-meal { text-align: center; padding: 10px; border: 1.5px dashed var(--slate-300); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--cobalt); }

/* ── service pages (new) ──
   One template for "Digitalisation for your business", "AI advice", "Custom business software".
   Order: what it is, who it is for, what you get, how it runs (reuse .steps), common questions, related stories. */
.svc-head { padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 40px); max-width: 860px; }
.svc-head .crumb { padding-top: 0; margin-bottom: 14px; }
.svc-head h1 { font-family: var(--f-display); font-size: clamp(34px, 4.6vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.svc-head .intro { margin-top: 20px; font-size: 19px; line-height: 1.65; color: var(--body); max-width: 58ch; }
.svc-head .actions { display: flex; align-items: center; gap: 12px 20px; margin-top: 28px; flex-wrap: wrap; }
.svc-head .actions p { font-size: 16px; color: var(--body); }
/* "Is this for you?" two plain lists side by side */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fit > div { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; }
.fit h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.55; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
/* "What you get": numbered, plain */
.gets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; counter-reset: get; }
.gets li { counter-increment: get; border-top: 2px solid var(--cobalt); padding-top: 16px; }
.gets li::before { content: counter(get); display: block; font-family: var(--f-display); font-size: 15px; font-weight: 500; color: var(--cobalt); margin-bottom: 6px; }
.gets h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.gets p { font-size: 16.5px; line-height: 1.6; color: var(--body); }

/* ── common questions (new) ──
   Every answer is visible: no accordion to tap open, nothing hidden from a reader or from search.
   Question on the left, answer on the right on wide screens; stacked on phones. */
.faq { margin-top: 28px; border-top: 1px solid var(--rule); }
.faq-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 48px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 19px; font-weight: 600; line-height: 1.4; }
.faq-item p { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 60ch; }
.faq-item p + p { margin-top: 0.8em; grid-column: 2; }

/* ── classes the 2026-11 copy rewrite of build.py introduces (landing services, in-progress lists,
   service pages in the story column). Styled here so this file drops in under either version. ── */
.steps.services { grid-template-columns: repeat(3, 1fr); }
.service-card { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--cobalt-300); box-shadow: var(--card); color: inherit; }
.service-card h3 { color: var(--ink); }
.service-card .more { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 600; color: var(--cobalt); }
.record-head--sub { margin: clamp(40px, 5vw, 56px) 0 14px; }
.record-head--sub h3 { font-size: 22px; font-weight: 600; color: var(--seal); }
.record-list--progress .more { color: var(--seal); }
.page-head--sub { max-width: none; margin-top: var(--section); padding-top: clamp(32px, 4vw, 48px); padding-bottom: 4px; border-top: 2px solid var(--seal); }
.page-head--sub p { max-width: 58ch; }
/* in-progress entries have no story page yet: their status line reads in the in-progress colour */
.page-head--sub ~ .work-row .sector-label { color: var(--seal); font-weight: 600; }
.record-list--progress a { cursor: pointer; }
.record-list--progress .sector { color: var(--seal); font-weight: 600; }
.page-head--sub h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.01em; }
.page-head--sub + .work-row, .page-head--sub ~ .work-row { border-bottom: 1px solid var(--rule); }
/* inside the narrow story column, lists and questions stack instead of using the wide-page columns */
.story .record-list { margin-top: 18px; }
.story .record-list a { grid-template-columns: 1fr; gap: 4px; }
.story .faq-item { grid-template-columns: 1fr; gap: 6px; padding-block: 20px; }
.story .faq-item p + p { grid-column: 1; }
.beat.faq h2 { margin-bottom: 4px; }
.beat.faq .faq-item:first-of-type { border-top: 1px solid var(--rule); margin-top: 14px; }
.beat.faq .faq-item { border-bottom: 1px solid var(--rule); }

/* ── footer ── */
/* Column heads and the bottom line were 10px spaced capitals in a typewriter face at 3.7:1 on the dark ground,
   which fails WCAG AA. Now normal text at 6.9:1 or better. */
.site-footer { background: var(--ink); padding-block: clamp(56px, 7vw, 80px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px 48px; margin-bottom: 48px; }
.footer-brand svg { display: block; width: 44px; height: 22px; margin-bottom: 12px; }
.footer-brand .wordmark { display: block; margin-bottom: 12px; font-family: var(--f-display); font-weight: 300; font-size: 28px; letter-spacing: -0.01em; color: #F1F5F9; }
.footer-brand p { font-family: var(--f-body); font-style: normal; font-weight: 400; font-size: 15px; line-height: 1.55; color: #B6C2D2; max-width: 30ch; }
.footer-brand .c { color: var(--cobalt-400); }
.footer-brand .s { color: var(--seal-light); }
.footer-col h4 { margin: 0 0 14px; font-family: var(--f-body); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; color: #94A3B8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 6px; }
.footer-col a { display: inline-block; padding-block: 4px; font-size: 15px; color: var(--slate-300); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: #94A3B8; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .qrow, .qrow--flip { grid-template-columns: 1fr; gap: 28px; }
  .qrow--flip .qrow-text { order: 0; }
  .qrow-text p { max-width: var(--measure); }
  .work-feature, .work-row, .work-row--plain { grid-template-columns: 1fr; gap: 16px; }
  .work-row > .sector-label { padding-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step--live { grid-column: 1 / -1; }
  .gets { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  /* four links and the button crowd the bar at tablet width; Contact is repeated in the band at the foot of every page */
  .nav-links a[href="#contact"]:not(.btn) { display: none; }
}
@media (max-width: 860px) {
  .ways, .steps.services { grid-template-columns: 1fr; gap: 10px; }
  .ways a { padding: 16px 18px 18px; }
  .ways em { display: none; } /* the whole card is the link; the "read more" line only adds height */
  .faq-item { grid-template-columns: 1fr; }
  .faq-item p + p { grid-column: 1; }
  .fit { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* Phones keep "The work" in the bar. Before, every text link was hidden and the stories had no way in
     from the top of the page. */
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a[href$="work.html"]:not(.btn) { display: inline-block; font-size: 15px; }
  .site-nav .wrap { padding-block: 10px; gap: 10px; }
  .site-nav .btn { min-height: 40px; padding: 9px 12px; font-size: 14px; }
  .nav-long { display: none; }
  .brand span { font-size: 20px; }
  .brand svg { width: 26px; height: 26px; }
  .hero .intro, .svc-head .intro { font-size: 18px; }
  .hero .actions .btn, .svc-head .actions .btn { width: 100%; }
  .steps, .paths { grid-template-columns: 1fr; }
  .gets { grid-template-columns: 1fr; gap: 22px; }
  .record-list a { grid-template-columns: 1fr; gap: 6px; padding-block: 20px; }
  .record-list .sector { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 12px 0; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .lede { font-size: 19px; }
  .beat p { font-size: 17.5px; }
  .timeline { padding: 22px 20px; }
  .timeline ol { grid-auto-flow: row; gap: 18px; }
  .timeline ol::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 30px; }
  .log-row { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
  .log-row--head { display: none; }
  .log-row .fixed { margin-top: 4px; }
  .mock-row { grid-template-columns: 28px 1fr auto; gap: 0 12px; padding-inline: 16px; }
  .mock-row .time { display: none; }
  .mock-row > span:nth-child(2) { min-width: 0; }
  .mock-kpis div { padding: 14px 12px; }
  .mock-kpis span { font-size: 10.5px; letter-spacing: 0; }
  .mock-bar, .mock-line, .mock-foot, .mock-sub, .mock-end, .mock-search, .bars { padding-inline: 16px; }
  .drawing { padding: 22px 18px; }
  .drawing-arrow { width: 34px; }
  .drawing-box { font-size: 19px; }
  .cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 380px) {
  .nav-links a[href$="work.html"]:not(.btn) { display: none; }
}
