/* yarosoft.com design system
   Tokens first, then base, layout, components. Pages compose these; no page-specific styling.
   Spacing follows an 8px scale. Light theme only. */

:root {
  /* Colour */
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --ink: #17191f;
  --ink-2: #4f5561;          /* secondary text: 7.0:1 on --bg, 7.6:1 on white */
  --ink-3: #6b707b;          /* tertiary (labels, captions): 4.6:1 on --bg */
  --line: #dddde0;
  --line-2: #cfcfd4;
  --line-input: #8a8f99;    /* form field borders: 3.4:1 on white */
  --accent: #3156d8;         /* 5.6:1 on white */
  --accent-hover: #2647bd;
  --accent-press: #1f3ca3;
  --accent-soft: #eef1fc;
  --accent-line: #c9d3f6;
  --ok: #1d7a4d;
  --bad: #b42318;
  --bad-soft: #fdf0ee;

  /* Type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-h1: clamp(36px, 2.4rem + 1.9vw, 58px);
  --fs-h2: clamp(28px, 1.6rem + 1vw, 38px);
  --fs-h3: 20px;
  --fs-lead: clamp(18px, 1.05rem + .25vw, 20px);
  --fs-body: clamp(16px, .97rem + .12vw, 17.5px);
  --fs-small: 15px;
  --fs-label: 12.5px;

  /* Space (8px scale) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s7: 56px; --s8: 64px;
  --s10: 80px; --s12: 96px;
  --section: var(--s12);

  /* Shape */
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 14px;
  --wrap: 1200px;
  --gutter: 40px;
  --header: 76px;
  --t: 180ms ease;
}
@media (max-width: 900px) { :root { --section: var(--s8); --gutter: 32px; } }
@media (max-width: 640px) { :root { --section: var(--s6); --gutter: 20px; --header: 64px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/1.62 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 var(--s2); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
p { margin: 0 0 var(--s2); }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.2em; }
li { margin-bottom: 6px; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px;
  border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-sm { padding: calc(var(--section) * .6) 0; }
.hero + .section-sm { padding-top: 0; }
.section-sm + .section { padding-top: calc(var(--section) * .5); }
.section + .section { padding-top: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .section, .section + .band { padding-top: var(--section); }
.measure { max-width: 66ch; }
.grid-2 { display: grid; gap: var(--s5); }
.grid-3 { display: grid; gap: var(--s3); }
.grid-4 { display: grid; gap: var(--s3); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .grid-2.wide-left { grid-template-columns: 1.15fr .85fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Text helpers */
.label { display: block; font: 600 var(--fs-label)/1.3 var(--sans); text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin: 0 0 var(--s2); }
.label-muted { color: var(--ink-3); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head p:last-child { margin-bottom: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s2) var(--s4); margin-bottom: var(--s6); }
.section-head-row .section-head { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background-color var(--t), border-color var(--t),
  color var(--t), box-shadow var(--t); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-secondary:active { background: var(--surface-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
  min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform var(--t); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
/* Solid background: a backdrop-filter here would trap the fixed mobile menu inside the header */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: var(--s3); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 26px; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav-head { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-link, .nav-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 8px; color: var(--ink-2); font: 550 15.5px/1 var(--sans); text-decoration: none; background: none;
  border: 0; cursor: pointer; transition: color var(--t), background-color var(--t); }
.nav-link:hover, .nav-toggle:hover { color: var(--ink); background: rgba(23, 25, 31, .05); }
.nav-link[aria-current="page"], .nav-toggle.is-current { color: var(--ink); }
.nav-link[aria-current="page"]::after, .nav-toggle.is-current::after { content: ""; position: absolute; left: 14px;
  right: 14px; bottom: -16px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-toggle .chev { width: 12px; height: 12px; transition: transform var(--t); }
.nav-toggle[aria-expanded="true"] { color: var(--ink); background: rgba(23, 25, 31, .05); }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { display: none; position: absolute; top: calc(100% + 10px); left: -8px; width: 340px; margin: 0; padding: 8px;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(23, 25, 31, .08); }
.sub.open { display: block; }
.sub li { margin: 0; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sub a:hover { background: var(--accent-soft); }
.sub a[aria-current="page"] { background: var(--accent-soft); }
.sub-label { display: block; font-weight: 600; font-size: 15.5px; }
.sub-note { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.sub-quiet { border-top: 1px solid var(--line); margin-top: 6px !important; padding-top: 6px; }
.sub-quiet .sub-label { font-weight: 550; color: var(--ink-2); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px var(--sans);
  cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; content: ""; }
.bars::before { position: absolute; top: -5px; } .bars::after { position: absolute; top: 5px; }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 var(--gutter) var(--s4); background: var(--bg); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; height: var(--header);
    border-bottom: 1px solid var(--line); margin: 0 calc(var(--gutter) * -1) var(--s2); padding: 0 var(--gutter); }
  .nav-title { font-weight: 650; }
  .menu-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font: 600 15px var(--sans);
    color: var(--ink); cursor: pointer; }
  .menu-close svg { width: 18px; height: 18px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 4px;
    font-size: 18px; color: var(--ink); border-radius: 0; }
  .nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: none; }
  .nav-toggle .chev { width: 16px; height: 16px; }
  .nav-link[aria-current="page"]::after, .nav-toggle.is-current::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--accent); }
  .sub { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 12px; background: none; }
  .sub a { padding: 10px 12px; }
  .nav-cta { margin-top: var(--s4); min-height: 52px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
}

/* Home hero (slider; the H1 stays fixed above the rotating detail) */
.hero { padding: var(--s8) 0 var(--s6); }
.hero-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); min-height: 520px; }
}
.hero h1 { max-width: 15ch; margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--accent); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.slide.is-active { visibility: visible; opacity: 1; transition: opacity 200ms ease; }
.slide-text .label { margin-bottom: var(--s1); }
.slide-text p { color: var(--ink-2); font-size: var(--fs-lead); max-width: 46ch; margin-bottom: var(--s1); }
.hero .actions { margin-top: var(--s4); }
.hero-art { display: grid; justify-items: center; }
.hero-art .slide { display: flex; justify-content: center; align-items: center; }
.hero-art img { width: 100%; max-width: 560px; height: auto; }
.slider-nav { display: flex; align-items: center; gap: var(--s1); margin-top: var(--s4); }
.sl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t), color var(--t); }
.sl-btn svg { width: 18px; height: 18px; }
.sl-btn:hover { border-color: var(--accent); color: var(--accent); }
.sl-dots { display: flex; align-items: center; gap: 2px; margin: 0 4px; }
.sl-dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid;
  place-items: center; }
.sl-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2);
  transition: background-color var(--t), width var(--t); }
.sl-dot[aria-current="true"]::before { background: var(--accent); width: 26px; border-radius: 6px; }
@media (max-width: 899px) {
  .hero { padding-top: var(--s5); }
  .hero-art img { max-width: 300px; }
  .slider-nav { margin-top: var(--s2); }
}

/* Credibility strip */
.creds { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: var(--s3); }
.cred + .cred { border-top: 1px solid var(--line); }
.cred svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.cred b { display: block; font-weight: 650; font-size: 16px; }
.cred span { display: block; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }
@media (min-width: 900px) {
  .creds { grid-template-columns: repeat(4, 1fr); }
  .cred + .cred { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .creds { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
  .cred:nth-child(4) { border-left: 1px solid var(--line); }
}

/* Panels and cards */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.panel-soft { background: var(--accent-soft); border-color: var(--accent-line); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s4) var(--s3); color: var(--ink); text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t); }
a.card:hover { border-color: var(--accent-line); box-shadow: 0 6px 20px rgba(23, 25, 31, .06); color: var(--ink); }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--ink-2); font-size: var(--fs-small); margin-bottom: var(--s2); }
.card .link-arrow { margin-top: auto; font-size: 15px; min-height: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: var(--s2); }
.icon svg { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: var(--fs-small); color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks-lg li { font-size: var(--fs-body); margin-bottom: 12px; }
.ticks-lg li::before { top: 8px; }

/* Featured case study */
.feature { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; }
.feature-copy { padding: var(--s5) var(--s4); }
.feature-copy h2 { font-size: clamp(26px, 1.4rem + 1vw, 34px); }
.feature-fact { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s2) 0; margin: var(--s3) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-fact b { font-size: 30px; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.feature-fact span { color: var(--ink-2); font-size: var(--fs-small); }
.feature-visual { background: var(--accent-soft); border-top: 1px solid var(--line); padding: var(--s4) var(--s3);
  display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.1fr; }
  .feature-copy { padding: var(--s7) var(--s6); }
  .feature-visual { border-top: 0; border-left: 1px solid var(--line); padding: var(--s5); }
}

/* Diagrams (system diagrams drawn from published project details) */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: var(--s2); font-size: 13.5px; color: var(--ink-3); }
/* On narrow screens diagrams keep a legible size and scroll sideways inside their own box */
.feature > *, .intro-grid > *, .feature-visual > *, .intro-visual > *, .diagram { min-width: 0; max-width: 100%; }
.dg-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 640px) {
  .dg-scroll svg { min-width: 500px; }
  .dg-scroll { margin: 0 calc(var(--s3) * -1); padding: 0 var(--s3) 8px; }
  .diagram figcaption::after { content: " Scroll sideways to see all of it."; }
}
.dg-box { fill: #fff; stroke: #c9d3f6; stroke-width: 1.5; }
.dg-box-strong { fill: #fff; stroke: #3156d8; stroke-width: 2; }
.dg-box-soft { fill: #f7f6f2; stroke: #dddde0; stroke-width: 1.5; }
.dg-zone { fill: none; stroke: #9aa9e6; stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg-line { fill: none; stroke: #3156d8; stroke-width: 2; }
.dg-line-soft { fill: none; stroke: #9aa9e6; stroke-width: 1.6; stroke-dasharray: 4 4; }
.dg-arrow { fill: #3156d8; }
.dg-t { font: 600 14px var(--sans); fill: #17191f; }
.dg-s { font: 400 12px var(--sans); fill: #4f5561; }
.dg-tag { font: 600 10.5px var(--sans); fill: #3156d8; letter-spacing: .08em; text-transform: uppercase; }

/* Outcomes */
.outcomes { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.outcome { padding: var(--s4); }
.outcome + .outcome { border-top: 1px solid var(--line); }
.outcome .num { font: 600 13px var(--mono); color: var(--accent); }
.outcome h3 { font-size: 22px; margin: var(--s1) 0; }
.outcome p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .outcomes { grid-template-columns: repeat(3, 1fr); }
  .outcome + .outcome { border-top: 0; border-left: 1px solid var(--line); }
}

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.process li { counter-increment: step; position: relative; margin: 0; padding: 0 0 var(--s3) 52px; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent);
  font: 700 14px var(--sans); display: grid; place-items: center; }
.process li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1.5px;
  background: var(--accent-line); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 17px; margin: 5px 0 4px; }
.process p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }
@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(7, 1fr); gap: var(--s2); }
  .process li { padding: 52px 0 0; }
  .process li::after { left: 42px; right: -16px; top: 16.5px; bottom: auto; width: auto; height: 1.5px; }
}

/* Founder */
.founder { display: grid; gap: var(--s4); align-items: center; }
.portrait { width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r);
  background: var(--surface-2); }
.founder-name { font-size: 22px; margin: 0; }
.founder-role { color: var(--ink-3); font-size: var(--fs-small); margin: 2px 0 var(--s2); }
.quote { margin: 0 0 var(--s3); padding-left: var(--s3); border-left: 3px solid var(--accent); }
.quote p { font-size: clamp(19px, 1.1rem + .4vw, 23px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink);
  font-weight: 550; margin: 0; }
@media (min-width: 900px) { .founder { grid-template-columns: 280px 1fr; gap: var(--s7); } }

/* Call to action */
.cta { padding: 0 0 var(--section); }
.cta-box { display: grid; gap: var(--s3); align-items: center; background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: var(--s6) var(--s4); }
.cta-box h2 { color: #fff; margin-bottom: var(--s1); }
.cta-box p { color: #c9ccd4; margin: 0; max-width: 58ch; }
.cta-box .btn-primary:hover { background: #4a6be6; }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr auto; padding: var(--s8) var(--s7); gap: var(--s6); } }
.band + .cta { padding-top: var(--section); }

/* Page intro (service pages, work, about) */
.intro { padding: var(--s8) 0 var(--section); }
.intro-grid { display: grid; gap: var(--s5); align-items: center; }
.intro h1 { max-width: 17ch; }
.intro .lead { margin-bottom: 0; }
.intro-visual { display: flex; justify-content: center; }
.intro-visual img { width: 100%; max-width: 520px; height: auto; }
.intro-visual .diagram { width: 100%; max-width: 560px; }
@media (min-width: 900px) {
  .intro { padding: var(--s10) 0 var(--section); }
  .intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s8); }
}
@media (max-width: 899px) { .intro-visual img { max-width: 300px; } }
.intro-plain .intro-grid { grid-template-columns: 1fr; }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: var(--s2); }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }

/* Problem list */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problems li { position: relative; margin: 0; padding: var(--s2) 0 var(--s2) var(--s4); border-bottom: 1px solid var(--line); }
.problems li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); }

/* Engagement steps (compact) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: var(--s2); }
.steps li { counter-increment: st; position: relative; margin: 0; padding: var(--s3) var(--s3) var(--s3) 72px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(st); position: absolute; left: var(--s3); top: var(--s3); width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 14px var(--sans);
  display: grid; place-items: center; }
.steps h3 { font-size: 17px; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: var(--s2); min-height: 64px; padding: var(--s2) 0; font-weight: 650; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 var(--s3); color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin: 0; }

/* Case study: summary, anchor nav, chapters */
.summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  margin: 0; }
.summary div { padding: var(--s3); }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { font: 600 var(--fs-label) var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3);
  margin-bottom: 6px; }
.summary dd { margin: 0; font-size: var(--fs-small); color: var(--ink); line-height: 1.5; }
@media (min-width: 900px) {
  .summary { grid-template-columns: repeat(5, 1fr); }
  .summary div + div { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary div:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
  .summary div:nth-child(4) { border-left: 1px solid var(--line); }
  .summary div:nth-child(5) { grid-column: 1 / -1; }
}
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-soon::before { background: var(--ink-3); }
.status-progress::before { background: #b46f0c; }
.toc { position: sticky; top: var(--header); z-index: 20; background: var(--bg); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.toc ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc li { margin: 0; flex: none; }
.toc a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink-2);
  text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
.toc li:first-child a { padding-left: 0; }
.toc a:hover { color: var(--accent); }
html:has(.toc) { scroll-padding-top: calc(var(--header) + 64px); }
.story { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .story { grid-template-columns: 280px 1fr; gap: var(--s8); } }
.story h2 { font-size: clamp(24px, 1.3rem + .8vw, 30px); }
.story-body { max-width: 68ch; }
.story-body h3 { margin-top: var(--s4); }
.story-body h3:first-child { margin-top: 0; }
.callout { margin: var(--s4) 0 0; padding: var(--s3); background: var(--accent-soft); border-radius: var(--r);
  font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink); }

/* Technical detail ("For your IT person") */
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); }
.spec li { margin: 0; padding: var(--s3); border-top: 1px solid var(--line); }
.spec li:first-child { border-top: 0; }
.spec b { display: block; font-weight: 650; margin-bottom: 4px; }
.spec span { display: block; color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .spec li:nth-child(2) { border-top: 0; }
  .spec li:nth-child(even) { border-left: 1px solid var(--line); }
}
.tech-note { font: 500 13.5px var(--mono); color: var(--ink-3); margin-top: var(--s2); }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--fs-small); }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--surface-2); font: 600 var(--fs-label) var(--sans);
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 650; width: 20%; }
.compare td { color: var(--ink-2); width: 40%; }
.compare td.us { color: var(--ink); background: rgba(238, 241, 252, .6); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr { border-top: 1px solid var(--line); padding: 18px 18px 14px; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th, .compare tbody td { border: 0; padding: 0; width: auto; }
  .compare tbody th { font-size: 16px; margin-bottom: 8px; }
  .compare tbody td { padding: 10px 12px; border-radius: 8px; margin-top: 6px; font-size: 15px; }
  .compare tbody td:not(.us) { background: var(--surface-2); }
  .compare td::before { display: block; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 4px; color: var(--ink-2); content: attr(data-l); }
  .compare td.us::before { color: var(--accent); }
}

/* Work cards */
.work-grid { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t); }
.work-card:hover { border-color: var(--accent-line); box-shadow: 0 6px 20px rgba(23, 25, 31, .06); color: var(--ink); }
.wc-visual { background: var(--accent-soft); padding: var(--s3); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; }
.wc-visual svg { width: 100%; max-width: 480px; height: auto; }
.wc-copy { padding: var(--s4) var(--s3); display: flex; flex-direction: column; }
.wc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-bottom: var(--s2);
  font-size: 13.5px; color: var(--ink-3); }
.wc-meta .label { margin: 0; }
.work-card h3 { font-size: 21px; margin-bottom: var(--s1); }
.work-card p { color: var(--ink-2); font-size: var(--fs-small); }
.work-card .link-arrow { margin-top: auto; color: var(--accent); min-height: 0; }
.soon-card { display: flex; flex-direction: column; padding: var(--s4) var(--s3); background: transparent;
  border: 1px dashed var(--line-2); border-radius: var(--r); }
.soon-card p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }

/* Cost categories */
.cost-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden; }
.cost-item { padding: var(--s4) var(--s3); border-top: 1px solid var(--line); }
.cost-item:first-child { border-top: 0; }
.cost-item h3 { font-size: 18px; margin-bottom: 6px; }
.cost-item p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.cost-item .num { font: 600 13px var(--mono); color: var(--accent); display: block; margin-bottom: var(--s1); }
@media (min-width: 640px) and (max-width: 1023px) {
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .cost-item:nth-child(2) { border-top: 0; }
  .cost-item:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .cost-grid { grid-template-columns: repeat(3, 1fr); }
  .cost-item:nth-child(-n+3) { border-top: 0; }
  .cost-item:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}

/* Enquiry form */
.review-intro { padding: var(--s6) 0 var(--s4); }
.review-intro h1 { font-size: clamp(32px, 1.9rem + 1.2vw, 46px); max-width: 20ch; margin-bottom: var(--s2); }
.review-grid { display: grid; gap: var(--s5); padding-bottom: var(--section); }
@media (min-width: 960px) {
  .review-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s7); align-items: start; }
  .review-aside { position: sticky; top: calc(var(--header) + 24px); }
}
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s3); }
@media (min-width: 640px) { .form { padding: var(--s5); } }
.row { display: grid; gap: 0 var(--s3); }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 var(--s3); }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opt { font-weight: 450; color: var(--ink-3); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; min-height: 50px; font: 16px/1.45 var(--sans); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-input); border-radius: 10px; padding: 12px 14px; transition: border-color var(--t), box-shadow var(--t); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 86, 216, .18); }
.hint { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s3); min-width: 0; }
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 50px; border: 1.5px solid var(--line-input);
  border-radius: 10px; padding: 10px 14px; font-size: 15.5px; cursor: pointer; background: var(--surface);
  transition: border-color var(--t), background-color var(--t); }
.choice span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-input);
  background: #fff; }
.choice input:hover + span { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.choice input:checked + span::before { border: 5px solid var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.err { color: var(--bad); font-size: 14px; margin-top: 6px; }
.err:empty { display: none; }
.field.bad input, .field.bad textarea, .field.bad .choice span { border-color: var(--bad); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: var(--s3); font-weight: 560; }
.form-status.error { background: var(--bad-soft); color: var(--bad); border: 1px solid #f3c7c1; }
.form-note { font-size: 14px; color: var(--ink-3); margin: var(--s2) 0 0; }
.cf-turnstile { margin: 0 0 var(--s3); min-height: 65px; }
.form .btn-primary { width: 100%; }
@media (min-width: 640px) { .form .btn-primary { width: auto; min-width: 220px; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.next { list-style: none; padding: 0; margin: 0; counter-reset: nx; }
.next li { counter-increment: nx; position: relative; padding-left: 44px; margin-bottom: var(--s3); }
.next li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 13.5px var(--sans); display: grid; place-items: center; }
.next b { display: block; }
.next span { color: var(--ink-2); font-size: var(--fs-small); }

/* Prose pages (privacy) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s4); }
.foot-grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand p { color: var(--ink); margin: var(--s2) 0 0; font-weight: 550; max-width: 32ch; }
.foot-brand .foot-small { color: var(--ink-2); font-weight: 400; font-size: var(--fs-small); margin-top: var(--s1); }
.foot-h { font: 600 var(--fs-label) var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3);
  margin: 10px 0 var(--s2); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none;
  font-size: var(--fs-small); }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.foot-plain { color: var(--ink-2); font-size: var(--fs-small); padding: 8px 0; }
.legal { margin: var(--s6) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* Misc */
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Screens from the live systems */
.shots { display: grid; gap: var(--s5); }
.shot { margin: 0; min-width: 0; }
.shot a { display: block; padding: var(--s2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.shot a:hover { border-color: var(--line-2); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 6px; }
.shot figcaption { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-2); max-width: 720px; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.shot figcaption .muted { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 640px) { .shot a { padding: var(--s1); border-radius: 10px; } }

/* Four-up principles: stacked until there is room for four columns */
@media (min-width: 900px) and (max-width: 1099px) {
  .outcomes-4 { grid-template-columns: 1fr; }
  .outcomes-4 .outcome + .outcome { border-left: 0; border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) { .outcomes-4 { grid-template-columns: repeat(4, 1fr); } }

/* Capability list */
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.caps li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.caps b { display: block; font-size: 17px; margin-bottom: 4px; }
.caps span { display: block; color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 700px) { .caps { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(3, 1fr); } }

/* Risk panel (home page) */
.risk-box { margin-top: var(--s5); display: grid; gap: var(--s4); background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: var(--s5) var(--s4); }
.risk-box h3 { color: #fff; font-size: clamp(22px, 1.2rem + .6vw, 28px); line-height: 1.2; margin: 0 0 var(--s2); }
.risk-box p { color: #c9ccd4; margin: 0; }
.risks { list-style: none; margin: 0; padding: 0; }
.risks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: #fff; }
.risks li:last-child { margin-bottom: 0; }
.risks li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid #f29b8f; color: #f29b8f; font: 700 12px/16px var(--sans); text-align: center; }
.risk-answer { border-top: 1px solid #3a3e48; padding-top: var(--s3); }
.risk-answer a { color: #fff; font-weight: 600; white-space: nowrap; margin-left: 4px; }
.risk-answer a::after { content: " \2192"; }
@media (min-width: 900px) {
  .risk-box { grid-template-columns: 1fr 1.15fr; column-gap: var(--s7); padding: var(--s7); }
  .risk-answer { grid-column: 1 / -1; }
}

/* AI race (about page): threats beside the remedy */
.race { display: grid; gap: var(--s3); }
.risk-box-plain { display: block; margin-top: 0; }
.risk-box-plain .risks li { margin-bottom: 18px; color: #c9ccd4; }
.risk-box-plain .risks strong { color: #fff; }
.race-remedy { padding: var(--s5) var(--s4); }
.race-remedy h3 { font-size: clamp(22px, 1.2rem + .6vw, 28px); line-height: 1.2; margin-bottom: var(--s3); }
.race-remedy .ticks li { color: var(--ink-2); }
.race-remedy .ticks strong { color: var(--ink); }
.race-remedy .race-close { font-size: var(--fs-body); font-weight: 600; color: var(--ink); margin: var(--s3) 0; }
.race-remedy .btn { align-self: flex-start; }
@media (min-width: 900px) {
  .race { grid-template-columns: 1fr 1fr; }
  .risk-box-plain, .race-remedy { padding: var(--s6); }
}
