:root{
  --bg: #F5F6F3;
  --bg-panel: #FFFFFF;
  --ink: #12181F;
  --ink-soft: #4A5361;
  --line: #D8DCD6;
  --blue: #1E3A8A;
  --blue-bright: #2451D1;
  --trace: #0EA5A0;
  --amber: #C77C22;
  --radius: 2px;
}
*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--trace); color: #fff; }
a{ color: inherit; }
.mono{ font-family: 'IBM Plex Mono', monospace; }
.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--blue-bright); outline-offset: 3px;
}

/* Skip link */
.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--ink); color:#fff; padding:10px 16px;
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; text-decoration:none;
}
.skip:focus{ left:8px; top:8px; }

/* ---------- HEADER / NAV ---------- */
header{
  position: sticky; top:0; z-index: 50;
  background: rgba(245,246,243,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:64px; }
.brand{ font-family:'Space Grotesk'; font-weight:700; font-size:19px; letter-spacing:0.01em; display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--ink); white-space:nowrap; }
.brand-dot{ width:9px; height:9px; background:var(--trace); border-radius:50%; box-shadow:0 0 0 3px rgba(14,165,160,0.15); flex:none; }
.nav-right{ display:flex; align-items:center; gap:28px; }
.navlinks{ display:flex; gap:28px; list-style:none; }
.navlinks a{
  font-family:'IBM Plex Mono'; font-size:12.5px; letter-spacing:0.04em; text-transform:uppercase;
  text-decoration:none; color:var(--ink-soft); transition:color .15s;
  padding-bottom:2px; border-bottom:1px solid transparent; white-space:nowrap;
}
.navlinks a:hover{ color:var(--blue-bright); }
.navlinks a[aria-current="page"]{ color:var(--ink); border-bottom-color:var(--trace); }

/* Mobile nav: wrap onto a second row rather than disappearing —
   sub-pages must stay reachable without a hamburger menu. */
@media (max-width:860px){
  .nav{ flex-wrap:wrap; padding-top:12px; padding-bottom:10px; gap:12px; }
  .nav-right{ width:100%; justify-content:space-between; gap:16px; }
  .navlinks{ gap:18px; flex-wrap:wrap; }
  .navlinks a{ font-size:11.5px; }
}
@media (max-width:420px){
  .navlinks{ gap:14px; }
  .brand{ font-size:16px; }
}

/* ---------- LANGUAGE TOGGLE ---------- */
.lang{
  display:flex; align-items:center; border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; background:var(--bg-panel); flex:none;
}
.lang button{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.06em;
  padding:6px 11px; border:none; background:transparent; color:var(--ink-soft);
  cursor:pointer; transition: background .15s, color .15s; line-height:1.4;
}
.lang button + button{ border-left:1px solid var(--line); }
.lang button:hover{ color:var(--blue-bright); }
.lang button[aria-pressed="true"]{ background:var(--ink); color:#fff; }
.lang button[aria-pressed="true"]:hover{ color:#fff; }

/* ---------- BUTTONS ---------- */
.btn{
  font-family:'IBM Plex Mono'; font-size:13px; letter-spacing:0.03em; text-transform:uppercase;
  padding:13px 24px; border-radius:var(--radius); text-decoration:none; display:inline-block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s, color .15s;
}
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(18,24,31,0.22); }
.btn-ghost{ border:1px solid var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--blue-bright); color:var(--blue-bright); }

/* ---------- ICONS ----------
   Line icons drawn at 24×24, stroked in the accent colour so they read as part
   of the same drawing as the fig. 1 diagram rather than as decoration. */
.ico{
  width:26px; height:26px; display:block;
  fill:none; stroke:var(--trace); stroke-width:1.4;
  stroke-linecap:round; stroke-linejoin:round;
}
.ico-lg{ width:34px; height:34px; }

/* ---------- HERO (home) ---------- */
.hero{ padding: 92px 0 40px; border-top:none; position:relative; overflow:hidden; }
/* Faint blueprint grid — technical texture without competing with the type. */
.hero::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 78% 34%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 78% 34%, #000 0%, transparent 72%);
  opacity:0.5;
}
.eyebrow{
  font-family:'IBM Plex Mono'; font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--trace); display:flex; align-items:center; gap:10px; margin-bottom:28px;
}
.eyebrow::before{ content:''; width:24px; height:1px; background:var(--trace); flex:none; }
h1{
  font-family:'Space Grotesk'; font-weight:600; font-size: clamp(34px, 5.4vw, 58px);
  line-height:1.06; letter-spacing:-0.015em; max-width: 15ch; color: var(--ink);
}
h1 em{ font-style:normal; color: var(--blue-bright); }
.hero-sub{ max-width:56ch; margin-top:24px; font-size:18px; color:var(--ink-soft); }
.hero-cta{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; align-items:center;}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero{ padding: 72px 0 56px; border-top:none; }
.page-hero h1{ max-width:22ch; font-size: clamp(30px, 4.2vw, 46px); }
.page-hero .lede{ margin-top:22px; font-size:18px; max-width:58ch; }
.crumb{
  font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.05em; text-transform:uppercase;
  color:var(--ink-soft); margin-bottom:20px;
}
.crumb a{ color:var(--ink-soft); text-decoration:none; }
.crumb a:hover{ color:var(--blue-bright); }

/* ---------- SIGNAL DIAGRAM ---------- */
.diagram{ margin-top:64px; border:1px solid var(--line); background:var(--bg-panel); border-radius:var(--radius); overflow:hidden; }
.diagram-label{
  font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-soft);
  padding:14px 20px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.diagram svg{ display:block; width:100%; height:auto; }
.node-label{ font-family:'IBM Plex Mono', monospace; font-size:12px; fill: var(--ink); }
.node-sub{ font-family:'IBM Plex Mono', monospace; font-size:9.5px; fill: var(--ink-soft); }
.trace-line{ stroke: var(--line); stroke-width:1.5; fill:none; }
.trace-active{ stroke: var(--trace); stroke-width:1.5; fill:none; stroke-dasharray: 4 4; animation: dash 22s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset: -400; } }
.node-box{ fill:var(--bg); stroke:var(--line); stroke-width:1.2; }
.node-box.hi{ stroke: var(--blue-bright); }
.pulse{ fill: var(--trace); }
/* Rule sits on the wrapper so it spans the figure; the caption inside keeps a
   readable measure. */
.diagram-foot{ border-top:1px solid var(--line); padding:16px 20px; }
.diagram-note{ font-size:14px; color:var(--ink-soft); max-width:80ch; }

/* ---------- SECTIONS ---------- */
section{ padding: 88px 0; border-top:1px solid var(--line); }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:48px; gap:24px; flex-wrap:wrap; }
.section-num{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--trace); }
h2{ font-family:'Space Grotesk'; font-weight:600; font-size: clamp(24px, 3vw, 32px); letter-spacing:-0.01em; line-height:1.18; max-width:24ch; }
h3{ line-height:1.28; }
.lede{ max-width:60ch; color:var(--ink-soft); font-size:17px; }

/* ---------- FACTS STRIP ---------- */
.facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.fact{ background:var(--bg-panel); padding:28px 26px; }
.fact .big{
  font-family:'Space Grotesk'; font-weight:600; font-size:clamp(28px,3.6vw,38px);
  line-height:1; letter-spacing:-0.02em;
}
.fact .big span{ color:var(--trace); }
.fact .cap{
  font-family:'IBM Plex Mono'; font-size:11.5px; text-transform:uppercase; letter-spacing:0.05em;
  color:var(--ink-soft); margin-top:12px; line-height:1.5;
}
@media (max-width:700px){ .facts{ grid-template-columns:1fr; } }

/* ---------- PLAIN-LANGUAGE VALUE CARDS (home) ---------- */
.plain{ display:grid; grid-template-columns: repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.plain-card{ background:var(--bg-panel); padding:32px 28px; }
.plain-card .ico{ margin-bottom:18px; }
.plain-card h3{ font-family:'Space Grotesk'; font-size:18px; font-weight:600; }
.plain-card p{ margin-top:10px; font-size:14.5px; color:var(--ink-soft); }
@media (max-width:820px){ .plain{ grid-template-columns:1fr; } }

/* ---------- TEASER CARDS (home → sub-pages) ---------- */
.teasers{ display:grid; grid-template-columns: repeat(2, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.teaser{
  background:var(--bg-panel); padding:34px 32px; text-decoration:none; display:block;
  transition: background .15s ease;
}
.teaser:hover{ background:#FBFCFA; }
.teaser .k{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--trace); }
.teaser h3{ font-family:'Space Grotesk'; font-size:22px; font-weight:600; margin-top:12px; }
.teaser p{ margin-top:10px; font-size:15px; color:var(--ink-soft); max-width:44ch; }
.teaser .go{
  font-family:'IBM Plex Mono'; font-size:12.5px; text-transform:uppercase; letter-spacing:0.04em;
  color:var(--blue-bright); margin-top:18px; display:inline-block;
}
.teaser:hover .go{ text-decoration:underline; }
@media (max-width:720px){ .teasers{ grid-template-columns:1fr; } }

/* ---------- PEDIGREE ---------- */
.pedigree-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:8px;}
.ped-card{ background:var(--bg-panel); padding:26px 22px; }
.ped-card .co{ font-family:'Space Grotesk'; font-weight:600; font-size:17px; }
.ped-card .role{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--trace); margin-top:10px; }
.ped-card .desc{ font-size:13.5px; color:var(--ink-soft); margin-top:8px; }
@media (max-width:820px){ .pedigree-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .pedigree-grid{ grid-template-columns: 1fr; } }

/* ---------- SERVICES ---------- */
.services{ display:grid; grid-template-columns: repeat(2, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.svc{ background:var(--bg-panel); padding:32px; }
.svc-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.svc .tag{ font-family:'IBM Plex Mono'; font-size:11px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:0.05em; }
.svc h3{ font-family:'Space Grotesk'; font-size:19px; font-weight:600; }
.svc p{ margin-top:10px; font-size:14.5px; color:var(--ink-soft); }
.svc .jargon{
  margin-top:14px; padding-top:12px; border-top:1px dashed var(--line);
  font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-soft); line-height:1.5;
}
@media (max-width:720px){ .services{ grid-template-columns: 1fr; } }

/* ---------- STEPS (timeline) ----------
   A rule runs behind the row with a node on each step, so the four stages read
   as one sequence ending in handover rather than four separate boxes. */
.steps{ display:grid; grid-template-columns:repeat(4, 1fr); gap:32px; position:relative; padding-top:34px; }
.steps::before{
  content:''; position:absolute; top:9px; left:0; right:0; height:1px; background:var(--line);
}
.step{ position:relative; }
.step::before{
  content:''; position:absolute; top:-30px; left:0;
  width:11px; height:11px; border-radius:50%;
  background:var(--bg); border:1.5px solid var(--trace);
}
.step:last-child::before{ background:var(--trace); }
.step .n{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--trace); letter-spacing:0.06em; }
.step h3{ font-family:'Space Grotesk'; font-size:18px; font-weight:600; margin-top:8px; }
.step p{ margin-top:8px; font-size:14px; color:var(--ink-soft); }
@media (max-width:900px){
  .steps{ grid-template-columns:1fr 1fr; gap:36px 32px; }
}
@media (max-width:520px){
  .steps{ grid-template-columns:1fr; padding-top:0; padding-left:26px; gap:30px; }
  .steps::before{ top:6px; bottom:6px; left:4px; right:auto; width:1px; height:auto; }
  .step::before{ top:5px; left:-26px; }
}

/* ---------- VS COMPARISON ---------- */
.vs{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
.vs-col{ background:var(--bg-panel); padding:32px; }
.vs-col.hi{ background:#FBFCFA; }
.vs-head{ display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.vs-head .k{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink-soft); }
.vs-col.hi .vs-head .k{ color:var(--trace); }
.vs ul{ list-style:none; }
.vs li{ padding:12px 0; border-bottom:1px solid var(--line); font-size:14.5px; color:var(--ink-soft); display:flex; gap:12px; align-items:flex-start; }
.vs li:last-child{ border-bottom:none; }
.vs li .m{ font-family:'IBM Plex Mono'; font-size:13px; flex:none; line-height:1.5; }
.vs-col .m{ color:var(--ink-soft); }
.vs-col.hi .m{ color:var(--trace); }
@media (max-width:720px){ .vs{ grid-template-columns:1fr; } }

/* ---------- APPROACH (compare) ---------- */
.approach{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.approach-col .k{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink-soft); margin-bottom:10px; }
.approach-col h3{ font-family:'Space Grotesk'; font-size:20px; font-weight:600; margin-bottom:12px; }
.approach-col p{ color:var(--ink-soft); font-size:15px; }
.approach-col.hi{ border-left:2px solid var(--trace); padding-left:24px; }
@media (max-width:720px){ .approach{ grid-template-columns:1fr; gap:36px; } }

/* ---------- CALLOUT ---------- */
.callout{
  border:1px solid var(--line); border-left:2px solid var(--amber);
  background:var(--bg-panel); padding:28px 30px; border-radius:var(--radius);
}
.callout .k{ font-family:'IBM Plex Mono'; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--amber); }
.callout h3{ font-family:'Space Grotesk'; font-size:19px; font-weight:600; margin-top:10px; }
.callout p{ margin-top:10px; color:var(--ink-soft); font-size:15px; max-width:70ch; }

/* ---------- FAQ ---------- */
.faq{ border:1px solid var(--line); background:var(--bg-panel); border-radius:var(--radius); }
.faq details{ border-bottom:1px solid var(--line); }
.faq details:last-child{ border-bottom:none; }
.faq summary{
  cursor:pointer; padding:22px 26px; font-family:'Space Grotesk'; font-weight:600; font-size:16.5px;
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; font-family:'IBM Plex Mono'; color:var(--trace); font-size:18px; flex:none; }
.faq details[open] summary::after{ content:'–'; }
.faq summary:hover{ color:var(--blue-bright); }
.faq .a{ padding:0 26px 24px; color:var(--ink-soft); font-size:15px; max-width:74ch; }

/* ---------- CONTACT ---------- */
.direct{ margin-top:8px; }
.direct a{ color:var(--blue-bright); text-decoration:none; border-bottom:1px solid rgba(36,81,209,0.35); }
/* The address is a single unbreakable token — scale it down rather than
   letting it push the page wider than the phone. */
.email{ font-size: clamp(15px, 5.4vw, 22px); overflow-wrap:anywhere; }
.contact-cols{ display:grid; grid-template-columns: 1.1fr 1fr; gap:64px; align-items:start; }
@media (max-width:820px){ .contact-cols{ grid-template-columns:1fr; gap:40px; } }
.expect{ list-style:none; }
.expect li{ padding:14px 0; border-bottom:1px solid var(--line); font-size:15px; color:var(--ink-soft); display:flex; gap:14px; }
.expect li:last-child{ border-bottom:none; }
.expect .i{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--trace); flex:none; padding-top:2px; }

/* ---------- CTA STRIP ---------- */
.cta-strip{
  border:1px solid var(--line); background:var(--bg-panel); border-radius:var(--radius);
  padding:44px 40px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-strip h2{ font-size: clamp(22px, 2.6vw, 28px); max-width:20ch; }
.cta-strip p{ color:var(--ink-soft); margin-top:10px; max-width:48ch; font-size:15px; }

/* ---------- FOOTER ---------- */
footer{ border-top:1px solid var(--line); padding:40px 0 32px; }
.foot-nav{ display:flex; gap:26px; flex-wrap:wrap; list-style:none; margin-bottom:26px; }
.foot-nav a{
  font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:0.04em; text-transform:uppercase;
  color:var(--ink-soft); text-decoration:none;
}
.foot-nav a:hover{ color:var(--blue-bright); }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.foot-row span{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--ink-soft); }

@media (prefers-reduced-motion: reduce){
  .trace-active{ animation:none; }
  html{ scroll-behavior:auto; }
  .btn-primary:hover{ transform:none; }
}
