/* Wily Wren: the site's own styles, on top of the boilerplate's site.css (blocks, forms, cookie banner).
   Ported from the design phase (_design/tokens.css + _design/site.css, 3 Nov 2026), then homepage v2
   (_design/pages/home-v2.html, 5 Nov 2026): Hanken Grotesk text, one colour per pair of services.
   The design pages stay in _design/ as the reference. */

/* ---------- Fonts (self-hosted, OFL; latin subsets from Google Fonts) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/hanken-latin.134accbe7d0e.woff2") format("woff2"); }   /* the face the wordmark is drawn from (5 Nov); made locally, latin, wght 400-600 */
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/geist-mono-500-latin.c15c192528ff.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin.200b77ac17aa.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Paper and ink. Clean white, never cream. */
  --white:  #ffffff;
  --ink:    #141414;  /* headlines, buttons */
  --ink-2:  #3a3a37;  /* body text */
  --ink-3:  #6a6a65;  /* secondary text, labels */
  --ink-4:  #767670;  /* captions, meta (darker than the design's #9b9b95: 4.6:1 on white, 5 Nov) */
  --line:   #e3e3df;  /* hairlines */
  --line-2: #ecece8;  /* faint rules */
  --wash:   #f5f5f3;  /* the rare tinted panel */

  /* The accent (Petrol) and its tints */
  --accent: #0d6466;
  --accent-tint:  color-mix(in oklab, var(--accent) 6%, white);
  --accent-wash:  color-mix(in oklab, var(--accent) 14%, white);
  --accent-light: color-mix(in oklab, var(--accent) 50%, white);
  --logo-dot: var(--accent);

  /* One colour per pair of services (5 Nov): AI and automation in Petrol (also the brand colour),
     websites and apps in Indigo, search and ads in Ember. [data-group] sets --c to the pair's colour. */
  --petrol: #0d6466;
  --web:    #4849a9;
  --warm:   #c64f17;

  /* Type: one font strongly (sans), one font rarely (serif), mono for data */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono:  "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --headline-weight: 400;

  /* Fluid scale, 390px to 1440px viewport */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-h3:   clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --text-h2:   clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-hero: clamp(3rem, 1.5rem + 6vw, 6.75rem);

  /* Space and layout */
  --gutter:   clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max:      80rem;
  --measure:  38rem;
  --header-h: 4.5rem;
  --radius:   4px;

  /* The boilerplate's variables, pointed at ours (blocks, forms, cookie banner) */
  --color-text: var(--ink-2);
  --color-text-muted: var(--ink-3);
  --color-bg: var(--white);
  --color-bg-off-white: var(--wash);
  --color-dark: var(--ink);
  --color-border: var(--line);
  --container-max: var(--max);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font: 400 var(--text-base)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Small mono label: section numbers, metadata, the investigator's notes */
.eyebrow {
  margin: 0;
  font: 500 var(--text-xs)/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) { font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.menu-btn {
  display: none;
  padding: 0.5rem 0;
  border: 0; background: none;
  font: 500 0.9375rem/1 var(--font-sans);
  color: var(--ink);
}
@media (max-width: 60rem) {
  .site-nav ul, .site-nav .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Buttons. Ink by default: the accent is kept for one small element per screen. */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.4em;
  border-radius: var(--radius);
  background: var(--btn-bg, var(--ink));
  color: var(--btn-fg, var(--white));
  font: 500 1rem/1 var(--font-sans);
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--small { padding: 0.7em 1.05em; font-size: 0.875rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 13vh, 9rem) clamp(3rem, 9vh, 6.5rem);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-title { margin: 0; font-weight: inherit; }
.hero-label { display: block; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.hero-label {
  font: 500 0.8125rem/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-headline {
  display: block;
  max-width: 9.5em;
  font-family: var(--font-serif);
  font-weight: var(--headline-weight);
  font-size: var(--text-hero);
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
/* On phones a long label can drop its last group to a line of its own */
@media (max-width: 40rem) {
  .label-sep { display: none; }
  .label-line { display: block; }
}
.dot { color: var(--accent); }
.hero-explainer {
  max-width: var(--measure);
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 clamp(2rem, 5vh, 2.75rem);
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

/* The thread: faint scattered lines, the messy picture a client arrives with */
.thread {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.thread line, .thread path { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.thread circle { fill: var(--line); }
@media (max-width: 40rem) { .thread { opacity: 0.6; } }

/* Proof strip: three anonymised findings */
.proof { padding-bottom: clamp(3rem, 8vh, 5rem); }
.proof .eyebrow { margin-bottom: 1.25rem; }
.proof-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0; padding: 0; list-style: none;
}
.proof-list li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.proof-quote {
  margin: 0 0 0.75rem;
  font: 400 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)/1.25 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.proof-meta { margin: 0; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
@media (max-width: 48rem) {
  .proof-list { grid-template-columns: 1fr; gap: 0; }
  .proof-list li { padding-block: 1.1rem; }
}

/* ===== Homepage, round 3 (3 Nov 2026) ===== */


/* The logo: one SVG symbol, sized by its cap height */
.logo { display: inline-flex; color: var(--ink); text-decoration: none; }
/* The logo files carry a small clear margin (4% of their height) so no edge sits on the box edge and gets clipped.
   --logo-h includes it. Width follows the viewBox. */
.logo svg { display: block; height: var(--logo-h, 1.75rem); width: auto; aspect-ratio: 6143.48 / 1078.67; overflow: visible; margin-left: calc(var(--logo-h, 1.75rem) * -0.037); /* the margin, so the mark still lines up with the text */ }
.site-header .logo { --logo-h: 1.75rem; }
@media (max-width: 40rem) { .site-header .logo { --logo-h: 1.5rem; } }

/* Sections: a hairline, a numbered label, a serif headline */
.sec { padding-block: clamp(4.5rem, 11vh, 8rem); }
.sec-head { max-width: none; }
.sec-title { max-width: 15em; }
.sec-head .eyebrow { padding-top: 1rem; border-top: 1px solid var(--line); }
.sec-label { display: block; }
.sec-title {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  font: var(--headline-weight) var(--text-h2)/1.05 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.sec-lead { max-width: var(--measure); margin: 1.25rem 0 0; font-size: var(--text-lead); line-height: 1.55; }
.sec-head--rule { max-width: none; }
.sec-head--rule .eyebrow { max-width: none; }
.more { display: inline-flex; gap: 0.5em; margin-top: 1.75rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.2em; }
.more:hover { border-color: var(--ink); }

/* 01 The path: one line that splits at Build and rejoins at Refine. Lines are drawn by script; nodes are HTML. */
.flow { position: relative; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0; list-style: none; }
.flow-list { margin: 0; padding: 0; list-style: none; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines path { fill: none; stroke: var(--ink-4); stroke-width: 1; }
.node { position: relative; z-index: 1; display: block; width: 11px; height: 11px; margin: calc(var(--row-pad) + var(--text-h3) * 0.6 - 5.5px) auto 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); }
.node--key { background: var(--accent); border-color: var(--accent); }
.step, .branch { --row-pad: 1.75rem; display: grid; grid-template-columns: 2.75rem 1fr; }
.step-body { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; align-items: baseline; padding-block: var(--row-pad); border-top: 1px solid var(--line-2); }
.step-verb { margin: 0; padding-right: 2rem; font: 600 var(--text-h3)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); }
.step-n { display: inline-block; min-width: 2.4em; font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--ink-4); vertical-align: 0.45em; }
.step-text { max-width: 36rem; margin: 0; }
.step-note { display: block; margin-top: 0.5rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.branches { display: grid; grid-template-columns: 1fr 1fr; }
.branch { --row-pad: 2.25rem; }
.step--join .step-body { border-top: 0; }
.branch .node { margin-top: calc(var(--row-pad) + 1.25rem * 0.6 - 5.5px); }
.branch-body { padding-block: var(--row-pad) 2.25rem; padding-right: 2rem; }
.branch-title { margin: 0 0 0.4rem; font: 600 1.25rem/1.2 var(--font-sans); color: var(--ink); }
.branch-text { margin: 0; }
.branch-toggle { display: none; }
.foundation { position: relative; display: grid; grid-template-columns: minmax(16rem, 5fr) 7fr; gap: 1.5rem 3rem; margin-top: 1.5rem; padding: 1.75rem 1.75rem 1.75rem 2.75rem; background: var(--wash); border-radius: var(--radius); }
.foundation-pin { position: absolute; top: 0; left: calc(1.375rem); width: 1px; height: 1px; }
.foundation h3 { margin: 0.5rem 0 0.4rem; font: 600 1.25rem/1.25 var(--font-sans); color: var(--ink); }
.foundation p { margin: 0; }
.foundation ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.foundation li { padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 56rem) {
  .step-body { grid-template-columns: 1fr; }
  .step-text { margin-top: 0.5rem; }
  .foundation { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .branches { grid-template-columns: 1fr; }
  .branch-toggle { display: flex; gap: 0.25rem; margin: 0 0 0.25rem 2.75rem; padding: 0.25rem; width: max-content; background: var(--wash); border-radius: 999px; }
  .branch-toggle button { padding: 0.55rem 1rem; border: 0; border-radius: 999px; background: none; font: 500 0.875rem/1 var(--font-sans); color: var(--ink-3); cursor: pointer; }
  .branch-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
  .flow[data-show="systems"] .branch--vis, .flow[data-show="visibility"] .branch--sys { display: none; }
  .foundation ul { grid-template-columns: 1fr; gap: 0.75rem; }
  .foundation { padding: 1.5rem 1.25rem 1.5rem 2.75rem; }
}

/* 02 Where AI belongs */
.ai-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); max-width: 60rem; margin: clamp(2rem, 5vh, 3rem) 0 0; padding: 0; list-style: none; }
.ai-points li { display: grid; grid-template-columns: 1.75em 1fr; padding-block: 1rem; border-top: 1px solid var(--line-2); font-size: 1.0625rem; color: var(--ink-2); }
.ai-points li::before { content: "–"; color: var(--ink-4); }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0; list-style: none; }
.use { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.use-art { height: 6.5rem; margin: 0 0 1.25rem; color: var(--ink); }
.use-art svg { width: 100%; height: 100%; }
.use-art * { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.use-art text { fill: currentColor; stroke: none; font: 500 9px var(--font-mono); }
.use-art .faint { stroke: var(--ink-4); }
.use-art .solid { fill: currentColor; }
.use h3 { margin: 0 0 0.4rem; font: 600 1.0625rem/1.3 var(--font-sans); color: var(--ink); }
.use p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
.use--more { justify-content: flex-end; border-style: dashed; background: none; }
.use--more a { color: var(--ink); font-weight: 500; text-decoration: none; }
@media (max-width: 72rem) { .uses { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 48rem) {
  .ai-points { grid-template-columns: 1fr; }
  .uses { display: flex; gap: 0.75rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .uses::-webkit-scrollbar { display: none; }
  .use { flex: 0 0 min(78%, 20rem); scroll-snap-align: start; }
}

/* 03 Built properly, and two-column sections */
.cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; margin: 0; padding: 0; list-style: none; }
.facts li { padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.facts .mono { display: block; margin-bottom: 0.6rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.facts b { display: block; font-weight: 500; font-size: 1.125rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 56rem) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } }

/* 04 The full picture: a sample briefing */
.picture-list { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.picture-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line-2); font-size: 0.9375rem; }
.picture-list .mono { font: 500 var(--text-xs)/1.9 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.briefing { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.18); font-size: 0.875rem; }
.briefing-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2); font: 400 0.6875rem/1 var(--font-mono); color: var(--ink-4); }
.briefing-bar .tag { margin: 0; }
.briefing-body { padding: clamp(1.25rem, 3vw, 2rem); }
.briefing-title { margin: 0.6rem 0 1.25rem; font: 400 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--font-serif); letter-spacing: -0.015em; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.25rem; }
.kpis div { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.kpis dt { font: 500 0.625rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.kpis dd { margin: 0.3rem 0 0; font: 600 1.375rem/1 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.chart { width: 100%; height: auto; margin-bottom: 1.25rem; }
.chart .grid { stroke: var(--line-2); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.chart .mark { stroke: var(--ink-4); stroke-dasharray: 2 3; }
.chart text { font: 500 9px var(--font-mono); fill: var(--ink-4); }
.chart .end { fill: var(--accent); }
.briefing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.briefing-cols h4, .dont h4 { margin: 0 0 0.3rem; font: 500 0.625rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.briefing-cols p { margin: 0; line-height: 1.5; }
.dont { margin-top: 1.25rem; padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.dont ul { margin: 0; padding-left: 1.1rem; line-height: 1.5; }
@media (max-width: 40rem) { .kpis dd { font-size: 1.125rem; } .briefing-cols { grid-template-columns: 1fr; } .picture-list li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* 05 Findings */
.findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0; list-style: none; }
.finding { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.finding .proof-meta { margin-bottom: 1.25rem; }
.finding-quote { margin: 0 0 1rem; font: 400 clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem)/1.12 var(--font-serif); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.finding p { max-width: 34rem; margin: 0; }
.finding .more { margin-top: 1.25rem; }
@media (max-width: 48rem) { .findings { grid-template-columns: 1fr; } }

/* 06 Principles and about */
.principles { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.principles li { display: grid; grid-template-columns: 3rem 1fr; padding-block: 1.1rem; border-top: 1px solid var(--line); font-size: 1.125rem; line-height: 1.45; color: var(--ink); counter-increment: p; }
.principles li::before { content: "0" counter(p); padding-top: 0.3em; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--ink-4); }
.story { max-width: 34rem; margin: 1.5rem 0 0; }
.story p { margin: 0 0 1em; }

/* 07 Closing: the thread resolves into the mark */
.closing { position: relative; overflow: hidden; padding-block: clamp(5rem, 14vh, 10rem); }
.closing .wrap { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 3rem; }
.closing-title { margin: 0 0 1.5rem; font: var(--headline-weight) clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem)/1 var(--font-serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.closing p:not(.eyebrow) { max-width: 30rem; margin: 0 0 2rem; font-size: var(--text-lead); }
.closing-art { position: relative; justify-self: center; width: min(100%, 22rem); }
.closing-art svg { width: 100%; height: auto; }
.closing-art .thread-in { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 48rem) { .closing .wrap { grid-template-columns: 1fr; } .closing-art { order: -1; justify-self: start; width: 9rem; } }

/* Footer */
.site-footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.site-footer .logo { --logo-h: 1.375rem; color: var(--ink); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a, .site-footer .footer-link { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover, .site-footer .footer-link:hover { color: var(--ink); }
.site-footer .footer-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.site-footer small { font: 400 var(--text-xs)/1.4 var(--font-mono); color: var(--ink-4); }

/* ===== Round 3b (3 Nov 2026): the accent as a recurring signal, not a single dot ===== */
.sec-n, .hero-label .sep { color: var(--accent); }
.more span[aria-hidden] { color: var(--accent); }
.more:hover { border-color: var(--accent); }

/* Proof strip: a short accent rule over each finding */
.proof-list li { position: relative; }
.proof-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--accent); }

/* The path is drawn in the accent; Investigate, the paid core, is filled */
.flow-lines path { stroke: var(--accent); stroke-width: 1.5; }
.node { border: 1.5px solid var(--accent); }
.node--key { box-shadow: 0 0 0 5px var(--accent-wash); }
.foundation { background: var(--accent-tint); }
.foundation .eyebrow { color: var(--accent); }

/* A tinted section: white cards on the accent's palest tint */
.sec--tint { background: var(--accent-tint); }
.sec--tint .ai-points li { border-color: var(--accent-wash); }
.sec--tint .use { border-color: var(--accent-wash); }
.sec--tint .use--more { border-color: var(--accent-light); }
.use-art .acc { stroke: var(--accent); }
.use-art .acc.solid, .use-art text.acc { fill: var(--accent); }

/* An ink section: built properly */
.sec--ink { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.sec--ink .eyebrow { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.16); }
.sec--ink .sec-n, .sec--ink .facts .mono { color: var(--accent-light); }
.sec--ink .sec-title, .sec--ink .facts b { color: var(--white); }
.sec--ink .sec-lead { color: rgba(255, 255, 255, 0.72); }
.sec--ink .facts li { border-color: rgba(255, 255, 255, 0.16); }

/* The full picture: the sample briefing sits on a tinted stage */
.stage { padding: clamp(1.5rem, 3.5vw, 3rem); background: var(--accent-tint); border-radius: 10px; }
.chart .line--after { stroke: var(--accent); stroke-width: 2; }
.kpis .key dd { color: var(--accent); }

/* Findings and principles */
.finding { border-top: 2px solid var(--accent); }
.principles li::before { color: var(--accent); }

/* Closing: the accent arrives in full, where the thread completes */
.closing--accent { background: var(--accent); color: rgba(255, 255, 255, 0.86); }
.closing--accent .eyebrow, .closing--accent .sec-n { color: rgba(255, 255, 255, 0.78); }   /* 4.9:1 on Petrol */
.closing--accent .closing-title { color: var(--white); }
.closing--accent .dot { color: inherit; }
.closing--accent .btn { --btn-bg: var(--white); --btn-fg: var(--ink); }
.closing-art { color: var(--ink); }
.closing--accent .closing-art { color: var(--white); }
.closing--accent .closing-art .thread-in { stroke: rgba(255, 255, 255, 0.35); }
.closing--accent + .site-footer { border-top: 0; }

/* ===== Build (3 Nov 2026): parts the design phase didn't need ===== */

/* Anchored sections clear the top of the window */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 4.75rem; }   /* clears the sticky header (3.75rem once scrolled) */
.skip-link { position: absolute; left: var(--gutter); top: -3rem; z-index: 10; padding: 0.6rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 0.75rem; }

/* Header: the CTA stays visible; on phones the links fold into a menu */
.site-nav a.btn { color: var(--btn-fg, var(--white)); }
.menu-btn { cursor: pointer; align-items: center; gap: 0.5rem; }
.menu-btn svg { width: 1.125rem; height: 1.125rem; }
.menu-btn .i-close { display: none; }
.site-header.is-open .menu-btn .i-open { display: none; }
.site-header.is-open .menu-btn .i-close { display: block; }
@media (max-width: 60rem) {
  .site-nav { gap: 1.25rem; }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .site-nav ul {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.5rem var(--gutter) 1.5rem; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 20, 20, 0.18);
  }
  .site-header.is-open .site-nav ul a { display: block; padding: 0.9rem 0; border-top: 1px solid var(--line-2); font-size: 1.0625rem; color: var(--ink); }
  .site-header.is-open .site-nav ul li:first-child a { border-top: 0; }
}
@media (max-width: 40rem) {
  .site-nav .btn { display: none; }
  .site-header.is-open .site-nav ul .menu-cta { display: block; }
}
.menu-cta { display: none; }
.menu-cta a { font-weight: 500; }
.menu-cta .arrow { display: inline-block; width: 1em; height: 1em; margin-left: 0.25em; vertical-align: -0.15em; }

/* Inner pages (General page): a serif heading on the same grid as the homepage */
.page-header { padding-block: clamp(3rem, 9vh, 6rem) clamp(1.5rem, 4vh, 2.5rem); }
.page-header__inner, .block__inner { width: min(100% - 2 * var(--gutter), var(--max)); max-width: none; padding-inline: 0; }
.block__inner--narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-left: max(var(--gutter), (100% - var(--max)) / 2); }
.breadcrumbs ol { margin: 0 0 clamp(1.25rem, 3vh, 2rem); font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.page-header__heading { max-width: 14em; margin: 0; font: var(--headline-weight) clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem)/1 var(--font-serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.page-header__lead { max-width: var(--measure); margin: 1.5rem 0 0; font-size: var(--text-lead); line-height: 1.55; color: var(--ink-2); }
.section-spacing { padding-block: clamp(2rem, 6vh, 3.5rem); }
.block-heading { font: 600 var(--text-h3)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); }
.block-eyebrow { font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--ink-3); }

/* Numbered steps (contact: what happens next) */
.block-numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.block-numbered__item { display: block; padding-top: 1.1rem; border-top: 1px solid var(--line); position: relative; }
.block-numbered__item::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--accent); }
.block-numbered__n { display: block; margin-bottom: 0.75rem; font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--accent); opacity: 1; }   /* the boilerplate fades it to 50%, too pale for the small mono */
.block-numbered__title { margin: 0 0 0.4rem; font: 600 1.125rem/1.3 var(--font-sans); color: var(--ink); }
.block-numbered__text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 48rem) { .block-numbered { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Text pages (privacy) */
.block-rich-text { font-size: 1.0625rem; line-height: 1.65; }
.block-rich-text h2 { margin: 2.25rem 0 0.6rem; font: 600 1.25rem/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.block-rich-text h3 { margin: 1.75rem 0 0.5rem; font: 600 1.0625rem/1.35 var(--font-sans); color: var(--ink); }
.block-rich-text p, .block-rich-text ul, .block-rich-text ol { margin: 0 0 1em; }
.block-rich-text li { margin-bottom: 0.35em; }
.block-rich-text a { color: var(--ink); text-decoration-color: var(--accent-light); text-underline-offset: 3px; }
.block-rich-text a:hover { text-decoration-color: var(--accent); }

/* Contact form */
.block--contact-form .block__inner { width: min(100% - 2 * var(--gutter), 40rem); margin-left: max(var(--gutter), (100% - var(--max)) / 2); }
.block-contact-form__heading { margin: 0 0 1.5rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.block-contact-form__intro { margin-bottom: 1.5rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field__label { margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.form-field__required { color: var(--accent); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="url"], .form-field input[type="tel"],
.form-field input[type="number"], .form-field textarea, .form-field select {
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit;
  transition: border-color 0.15s;
}
.form-field input:hover, .form-field textarea:hover { border-color: var(--ink-4); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-field textarea { min-height: 9rem; }
.form-field__help { font-size: var(--text-sm); color: var(--ink-3); }
.contact-form .button { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.6em; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); font: 500 1rem/1 var(--font-sans); }
.contact-form .button:hover { opacity: 1; background: #000; }
.contact-form .button:disabled { opacity: 0.6; cursor: wait; }
.block-contact-form__message { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.block-contact-form__message--success { background: var(--accent-tint); color: var(--ink); border-left: 3px solid var(--accent); }
.block-contact-form__message--error { background: #fdf0ee; color: #8a2a1b; border-left: 3px solid #c0392b; }
.form-note { margin: 1.25rem 0 0; font-size: var(--text-sm); color: var(--ink-3); }
.form-note a { color: var(--ink-2); }

/* Error pages */
.error-page { padding: clamp(4rem, 14vh, 9rem) 0; text-align: left; }   /* on the site's left grid (the boilerplate centres it) */
.error-page h1 { margin: 1.5rem 0 1.25rem; font: var(--headline-weight) clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem)/1 var(--font-serif); letter-spacing: -0.025em; color: var(--ink); }
.error-page p:not(.eyebrow) { max-width: var(--measure); margin: 0 0 2rem; font-size: var(--text-lead); }
.closing .eyebrow + .closing-title { margin-top: 1.5rem; }
.site-footer__socials { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.social-chip { display: inline-block; padding: 0.3em 0.55em; border: 1px solid var(--line); border-radius: var(--radius); font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--ink-3); text-decoration: none; }
.social-chip:hover { border-color: var(--ink); color: var(--ink); }

/* Cookie banner and preferences (4 Nov 2026): a card in the site's type and buttons, not the boilerplate's bar.
   "Only necessary" and "Accept all" stay equally prominent (Irish DPC guidance); Preferences is the quiet one. */
.cookie-consent-banner {
  left: auto; right: var(--gutter); bottom: var(--gutter);
  width: min(100% - 2 * var(--gutter), 27rem);
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px -12px rgb(20 20 20 / 0.22);
}
.cookie-consent-banner__inner { display: block; }
.cookie-consent-banner__title { margin: 0 0 0.6rem; font: var(--headline-weight) 1.625rem/1.1 var(--font-serif); letter-spacing: -0.015em; color: var(--ink); }
.cookie-consent-banner__body { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.cookie-consent-banner__body p { margin: 0; }
.cookie-consent-banner__link {
  display: inline-block; margin-top: 0.6rem; font-size: var(--text-sm); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent-light); text-underline-offset: 3px;
}
.cookie-consent-banner__link:hover { text-decoration-color: var(--accent); }
.cookie-consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }
.cookie-consent-banner__actions .cookie-btn--outline {
  order: 3; grid-column: 1 / -1; justify-self: start;
  padding: 0.35rem 0; border: 0; background: none; color: var(--ink-3);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
}
.cookie-consent-banner__actions .cookie-btn--outline:hover { color: var(--ink); background: none; text-decoration-color: currentColor; }
.cookie-btn {
  padding: 0.85em 1.1em;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font: 500 0.9375rem/1 var(--font-sans);
  transition: background-color 0.15s, color 0.15s;
}
.cookie-btn--solid { background: var(--ink); color: var(--white); }
.cookie-btn:hover { opacity: 1; background: var(--wash); }
.cookie-btn--solid:hover { background: #000; }
@media (max-width: 30rem) {
  .cookie-consent-banner { right: 0.75rem; bottom: 0.75rem; width: calc(100% - 1.5rem); padding: 1.25rem 1.25rem 1rem; }
}

.cookie-preferences-modal { background: rgb(20 20 20 / 0.45); }
.cookie-preferences-content { max-width: 36rem; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 70px -20px rgb(20 20 20 / 0.4); }
.cookie-preferences-header { padding: 1.25rem 1.5rem; border-color: var(--line); }
.cookie-preferences-header h2 { font: var(--headline-weight) 1.75rem/1.1 var(--font-serif); letter-spacing: -0.015em; color: var(--ink); }
.cookie-preferences-close { color: var(--ink-3); border-radius: var(--radius); }
.cookie-preferences-close:hover { color: var(--ink); }
.cookie-preferences-body { padding: 1.25rem 1.5rem; }
.cookie-preferences-info { margin-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.cookie-preferences-info h3 { margin: 1.25rem 0 0.4rem; font: 600 1rem/1.3 var(--font-sans); color: var(--ink); }
.cookie-preferences-info h3:first-child { margin-top: 0; }
.cookie-preferences-info p, .cookie-preferences-info ul { margin: 0 0 0.75em; }
.cookie-category { margin-bottom: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.cookie-category__header { margin-bottom: 0.35rem; gap: 1rem; }
.cookie-category__header h4 { font: 600 1rem/1.3 var(--font-sans); color: var(--ink); }
.cookie-category p { font-size: var(--text-sm); line-height: 1.55; color: var(--ink-3); }
.cookie-toggle { flex: none; font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
/* The checkbox drawn as a switch; on is the accent */
.cookie-toggle input {
  appearance: none; -webkit-appearance: none; margin: 0;
  position: relative; width: 2.5rem; height: 1.375rem; border-radius: 999px;
  background: var(--line); cursor: pointer; transition: background-color 0.2s;
}
.cookie-toggle input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.375rem - 6px); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: transform 0.2s;
}
.cookie-toggle input:checked { background: var(--accent); }
.cookie-toggle input:checked::before { transform: translateX(1.125rem); }
.cookie-toggle input:disabled { background: var(--accent-light); cursor: default; }
.cookie-toggle input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cookie-toggle span:empty { display: none; }
.cookie-preferences-footer { padding: 1rem 1.5rem; border-color: var(--line); }
@media (prefers-reduced-motion: reduce) {
  .cookie-toggle input, .cookie-toggle input::before, .cookie-btn { transition: none; }
}

/* Contact (4 Nov 2026): the form on a pale Petrol panel; on wide screens the steps sit beside it,
   so the form is on the first screen. Applies wherever a numbered list is followed by a contact form. */
.block--contact-form .block__inner { padding: clamp(1.25rem, 3vw, 2.75rem); border-radius: 8px; background: var(--accent-tint); }
.block--contact-form .block-heading { margin-top: 0; }
.block--contact-form .block-contact-form__message--success { background: var(--white); }
@media (min-width: 60rem) {
  .page-body:has(> .block--numbered + .block--contact-form) {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
    width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
    padding-block: clamp(1rem, 3vh, 2rem) clamp(3.5rem, 9vh, 6rem);
  }
  .page-body:has(> .block--numbered + .block--contact-form) > .block--numbered,
  .page-body:has(> .block--numbered + .block--contact-form) > .block--contact-form { padding-block: 0; }
  .page-body:has(> .block--numbered + .block--contact-form) .block__inner { width: auto; margin: 0; }
  .page-body:has(> .block--numbered + .block--contact-form) > .block--numbered { position: sticky; top: 2rem; padding-top: clamp(1.25rem, 3vw, 2.75rem); }
  .page-body:has(> .block--numbered + .block--contact-form) .block-numbered { grid-template-columns: 1fr; gap: 1.75rem; }
}


/* ===== Homepage v2 (5 Nov 2026), from _design/pages/home-v2.html: built section by section with Seb.
   The design phase's options are resolved to the chosen ones; the hero as decided in _design/lab/hero-rotate.html. ===== */

/* One colour per pair. Petrol is also the brand colour (logo, links). */
:root { --logo-dot: var(--petrol); }
[data-group="ai"]  { --c: var(--petrol); }
[data-group="web"] { --c: var(--web); }
[data-group="vis"] { --c: var(--warm); }

/* The label: three pairs, an index to the rotating word. Separators stay neutral: colour means a pair. */
.hero-label { display: block; margin-bottom: clamp(1.25rem, 3vh, 2rem); padding-right: 2.75rem;
  font: 500 0.8125rem/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hero-label .pair { white-space: nowrap; transition: color 0.45s ease; }
.hero-label .idx { transition: color 0.45s ease; }
.hero-label .sep { color: var(--ink-4); }
/* the space after each separator is a real space (a place to wrap), so the left margin matches it */
.hero-label .pair-sep { margin: 0 0.5em 0 1.18em; color: var(--ink-4); }
.hero-label .pair-sep::before { content: "/"; }
.hero-label .idx.is-on { color: var(--c); }

/* The headline: "[term] that earns its place." Only the term moves. */
.hero-head { position: relative; }
.hero-headline { max-width: none; }
.rot { position: relative; display: block; white-space: nowrap;
  /* a window just taller than the letters: the words slide through it */
  padding-block: 0.1em 0.24em; margin-block: -0.1em -0.24em; clip-path: inset(0 -0.15em); }
.rot-word { display: inline-block; color: var(--c); will-change: transform, opacity;
  transition: transform var(--rot-dur, 650ms) cubic-bezier(0.65, 0, 0.35, 1), opacity var(--rot-dur, 650ms) ease, filter var(--rot-dur, 650ms) ease, color 0.3s; }
.rot-word.leaving { position: absolute; left: 0; top: 0.1em; }
/* Slide: the old word drops out of the window, the next drops in from above, like a wheel turning down */
.rot-word.leaving  { transform: translateY(0.62em); opacity: 0; }
.rot-word.entering { transform: translateY(-0.62em); opacity: 0; }
.rot-word.leaving, .rot-word.entering { filter: blur(0.05em); }
.hl-rest { display: block; }
.dot { color: var(--petrol); transition: color 0.45s ease; }
.hero-headline .dot { color: var(--c-now, var(--petrol)); }   /* the hero's full stop only */

/* Pause control: top right of the headline block, out of the way of the words */
.rot-ctl { position: absolute; top: calc((0.8125rem * 1.6 - 1.75rem) / 2); right: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink-3); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.rot-ctl:hover { color: var(--ink); border-color: var(--ink-3); }
.rot-ctl svg { width: 0.6875rem; height: 0.6875rem; }
.rot-ctl [data-icon] { display: none; }
.rot-ctl[data-state="playing"] [data-icon="pause"], .rot-ctl[data-state="paused"] [data-icon="play"], .rot-ctl[data-state="done"] [data-icon="replay"] { display: block; }
@media (prefers-reduced-motion: reduce) { .rot-ctl { display: none; } .rot-word { transition: none; } }

/* What an investigation answers: in the sans (the serif is for statements), rules in the pair's colour */
.proof-quote { font: 500 var(--text-lead)/1.5 var(--font-sans); letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.proof-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--c, var(--ink)); }
.proof-list li { position: relative; }
.proof-meta { color: var(--ink-3); }

/* Header: "How we work" */
.site-nav .btn { white-space: nowrap; }

/* Logo: larger, and its small left offset snapped to a whole pixel, so the stems don't sit between pixels */
.site-header .logo { --logo-h: 2.25rem; }
@media (max-width: 40rem) { .site-header .logo { --logo-h: 1.75rem; } }
.logo svg { margin-left: round(calc(var(--logo-h, 1.75rem) * -0.037), 1px); }

/* Button arrow: drawn, so it sits centred on the text */
.btn .arrow { width: 1em; height: 1em; flex: none; }

/* Hanken Grotesk: the face the wordmark is drawn from. Its lowercase is about 7% shorter than Geist's, which the
   sizes were set in, so it's matched on x-height. Serif and mono, labels and headlines keep their size. */
body { font-size-adjust: 0.53; }
.hero-label, .hero-headline, .proof-meta, .eyebrow, .step-n, .step-note { font-size-adjust: none; }
:is(.proof-quote, .sec-title, .mono, .closing-title) { font-size-adjust: none; }

/* The explainer: two paragraphs; the words that go with the term on show are marked in its colour */
.hero-explainer { margin-bottom: 0; }
.hero-explainer + .hero-explainer { margin-top: 0.85em; }
.hero .btn--primary { margin-top: clamp(2rem, 5vh, 2.75rem); }
.echo { background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%;
  transition: background-size 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.15s; }
.echo { background-image: linear-gradient(color-mix(in oklab, var(--c) 30%, white), color-mix(in oklab, var(--c) 30%, white)); background-size: 0% 0.45em; background-position: 0 88%; }
.echo.is-on { background-size: 100% 0.45em; }
@media (prefers-reduced-motion: reduce) { .echo { transition: none; } }


/* ===== 01 How we work (5 Nov, v2 round 2) ===== */
.sec-n { color: var(--petrol); }
.flow { position: relative; margin-top: clamp(2.5rem, 6vh, 4rem); }
.flow-list { position: relative; margin: 0; padding: 0; list-style: none; }
.flow-lines, .flow-pulse { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines { z-index: 0; }
/* "We": a large outlined word behind the start of the path, so the steps read "We listen, investigate…". It draws its
   outline in Petrol as the section comes into view, then a faint fill comes in, and it settles at 25% (Seb, 5 Nov: more subtle, a slower fade). */
.flow-we { position: absolute; left: -0.3rem; top: 0; z-index: 0; width: clamp(16rem, 30vw, 30rem); height: auto; overflow: visible; pointer-events: none;
  opacity: 0; transition: opacity 4.5s ease; }
.flow-we.is-off { display: none; }
/* Hanken 500, as merged outlines (tools/we_path.py): outlined text would show the variable font's overlapping
   pieces as small spikes inside the letters. The fill is a Petrol gradient, strong at the top, fading out below. */
.flow-we .we-fill { fill-opacity: 0; }
.flow-we .we-s0 { stop-color: var(--petrol); stop-opacity: 0.5; }
.flow-we .we-s1 { stop-color: var(--petrol); stop-opacity: 0.03; }
.flow-we .we-line { fill: none; stroke: var(--petrol); stroke-width: 5; stroke-linejoin: round; stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.flow.we-on .flow-we { opacity: 0.25; }
.flow.we-on .flow-we .we-line { animation: we-draw 3.6s cubic-bezier(0.45, 0.05, 0.25, 1) forwards; }
.flow.we-on .flow-we .we-fill { animation: we-fill 2.8s ease 2.8s forwards; }
@keyframes we-draw { to { stroke-dashoffset: 0; } }
@keyframes we-fill { to { fill-opacity: 1; } }
.flow-pulse { z-index: 3; }
.flow-lines path { fill: none; stroke-width: 1.5; stroke-linecap: round; transition: stroke-width 0.25s; }
.pulse { opacity: 0; transition: opacity 0.2s; }
.pulse.on { opacity: 1; }
.pulse .halo { opacity: 0.16; }

/* Steps: more room, and 12px nodes so the line runs through their exact centre */
.node { position: relative; z-index: 1; display: block; width: 12px; height: 12px; margin: calc(var(--row-pad) + var(--verb-size) * 0.6 - 6px) auto 0;
  border: 1.5px solid var(--c, var(--petrol)); border-radius: 50%; background: var(--white);
  transition: background-color 0.3s, box-shadow 0.3s; }
.node.is-lit, .step:hover .node { background: var(--c, var(--petrol)); box-shadow: 0 0 0 5px color-mix(in oklab, var(--c, var(--petrol)) 16%, white); }
.step { --row-pad: 2.4rem; --verb-size: var(--text-h3); display: grid; grid-template-columns: 2.75rem 1fr; }
.step-body { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; align-items: baseline; padding-block: var(--row-pad); border-top: 1px solid var(--line-2); }
.step--join .step-body { border-top: 0; }
.step-verb { margin: 0; padding-right: 2rem; font: 600 var(--text-h3)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); transition: transform 0.2s; }
.step-n { display: inline-block; min-width: 2.4em; font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--ink-3); vertical-align: 0.45em; }
.step-text { max-width: 36rem; margin: 0; }
.step-note { display: block; margin-top: 0.5rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.step:hover .step-verb { transform: translateX(3px); }

/* Build: three equal panels in a row, on the text column. The fork bar runs above them, each drop lands on its
   panel's colour rule, and the join bar runs below. No lines between the panels. */
.branch-row { padding: 0 0 0 2.75rem; }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-block: 3.25rem; }
.branch { display: block; }
.branch .node { display: none; }
.stream { position: relative; height: 100%; padding: 1.6rem var(--pad) 1.4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; }
/* The colour rule is the panel's own rounded top edge: clipped to a short rule at rest, the whole edge on hover
   or while the pulse runs through, so it follows the corners */
.stream { --pad: 1.5rem; }
.stream::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 12px; border-top: 2px solid var(--c); border-radius: 8px 8px 0 0;
  clip-path: inset(0 calc(100% - var(--pad) - 2.5rem) 0 var(--pad)); transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
/* The pulse passing through: a soft band of the stream's colour sweeps down the panel, and each item's title
   takes the colour as the band reaches it */
.stream::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--c) 11%, transparent) 50%, transparent) no-repeat 0 -67% / 100% 40%; }
.stream.is-sweep::after { animation: sweep var(--sweep, 1.6s) cubic-bezier(0.45, 0, 0.55, 1) forwards; }
@keyframes sweep { 0% { opacity: 1; background-position: 0 -67%; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 167%; } }
.stream-list > div { position: relative; }
.stream-list > div::before { content: ""; position: absolute; left: calc(-1 * var(--pad)); top: 0.95rem; width: 2px; height: 1.15rem; background: var(--c);
  transform: scaleY(0); transition: transform 0.3s ease; }
.stream-list > div.is-hit::before { transform: scaleY(1); }
.stream-list dt { transition: color 0.3s ease; }
.stream-list > div.is-hit dt { color: var(--c); }
.stream-title { margin: 0 0 0.4rem; font: 600 1.375rem/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--c); }
.stream-lead { margin: 0 0 1rem; color: var(--ink-2); }
.stream-list { margin: 0; }
.stream-list > div { padding-block: 0.8rem; border-top: 1px solid var(--line-2); }
.stream-list > div:last-child { padding-bottom: 0; }
.stream-list dt { font: 600 0.9375rem/1.4 var(--font-sans); color: var(--ink); }
.stream-list dd { margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
/* Hover, or the pulse passing through: the rule runs across the top and the border takes the colour */
.stream:hover, .stream.is-lit { border-color: color-mix(in oklab, var(--c) 65%, white); background: color-mix(in oklab, var(--c) 2.5%, white);
  box-shadow: 0 16px 36px -22px color-mix(in oklab, var(--c) 75%, transparent); }
.stream:hover::before, .stream.is-lit::before { clip-path: inset(0 0 0 0); }
.branch-toggle { display: none; }

/* Where the path lands: measurement and reporting. The line ends at the dot beside the label; the panel lights
   up softly when the pulse arrives. */
.landing { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; margin-top: 0.5rem; padding: 2rem 2rem 2rem 0;
  background: var(--wash); border-radius: 10px; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.8s, box-shadow 0.8s; }
.landing.is-lit { background: color-mix(in oklab, var(--petrol) 7%, white); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--petrol) 22%, white); }
.landing-pin { --row-pad: 0px; --verb-size: 0.75rem; grid-row: 1; margin-top: calc(0.75rem * 0.7 - 6px); }
.landing-head { grid-column: 2; }
.landing-head p:last-child { max-width: 62rem; }
.landing .eyebrow { color: var(--ink-3); }
.landing-head h3 { margin: 0.6rem 0 0.5rem; font: 600 var(--text-h3)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); }
.landing-head p:last-child { margin: 0; color: var(--ink-2); }
.landing-cols { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.landing-cols li { position: relative; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.landing-cols li::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--petrol);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.landing.is-lit .landing-cols li::before { transform: scaleX(1); }
.landing.is-lit .landing-cols li:nth-child(2)::before { transition-delay: 0.12s; }
.landing.is-lit .landing-cols li:nth-child(3)::before { transition-delay: 0.24s; }
.landing.is-lit .landing-cols li:nth-child(4)::before { transition-delay: 0.36s; }
.landing.is-lit .landing-pin { animation: ping 1.3s ease-out 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--petrol) 50%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.landing-cols h4 { margin: 0 0 0.3rem; font: 600 0.9375rem/1.35 var(--font-sans); color: var(--ink); }
.landing-cols p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }

@media (max-width: 64rem) {
  .step-body { grid-template-columns: 1fr; }
  .step-text { margin-top: 0.5rem; }
  .landing-cols { grid-template-columns: repeat(2, 1fr); }
}
/* Below 60rem: one stream at a time, chosen with the toggle; the line runs beside it in its colour */
@media (max-width: 60rem) {
  .branch-row { padding-left: 0; }
  .branches { grid-template-columns: 1fr; gap: 0; padding-block: 0.5rem 0; }
  .branch { display: grid; grid-template-columns: 2.75rem 1fr; }
  .branch .node { --row-pad: 0px; --verb-size: 1.375rem; display: block; margin-top: calc(1.6rem + 1.375rem * 0.6 - 6px); }
  .flow[data-show="ai"] .branch:not([data-group="ai"]), .flow[data-show="web"] .branch:not([data-group="web"]), .flow[data-show="vis"] .branch:not([data-group="vis"]) { display: none; }
  .branch-toggle { display: grid; grid-template-columns: repeat(3, auto); gap: 0.25rem; margin: 0.25rem 0 0.5rem 2.75rem; padding: 0.25rem; width: max-content; max-width: calc(100% - 2.75rem); background: var(--wash); border-radius: 10px; }
  .branch-toggle button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.75rem; border: 0; border-radius: 7px; background: none; font: 500 0.8125rem/1.2 var(--font-sans); text-align: left; color: var(--ink-3); cursor: pointer; }
  .branch-toggle i { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c); }
  .branch-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
  .landing { padding: 1.5rem 1.25rem 1.5rem 0; }
}
@media (max-width: 40rem) { .landing-cols { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 30rem) {
  .branch-toggle { grid-template-columns: 1fr; width: calc(100% - 2.75rem); }
  .stream { --pad: 1.25rem; padding-top: 1.4rem; padding-bottom: 1.25rem; }
  .branch .node { margin-top: calc(1.4rem + 1.375rem * 0.6 - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .step-verb, .stream, .stream::before, .node, .landing, .flow-lines path, .landing-cols li::before { transition: none; }
  .flow-we { opacity: 0.25; transition: none; }
  .flow-we .we-line, .flow.we-on .flow-we .we-line { animation: none; stroke-dashoffset: 0; }
  .flow-we .we-fill, .flow.we-on .flow-we .we-fill { animation: none; fill-opacity: 1; }
}

/* ===== 02 What we build (5 Nov, v2) ===== */
.sec--wash { background: var(--wash); }
/* The headline on the left, the four points beside it, each marked with the logo's diamond */
.what-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; }
.what-head .sec-head { margin-bottom: 0; }
.what-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.what-points li { position: relative; padding: 0.9rem 0 1rem 1.3rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.what-points li::before { content: ""; position: absolute; left: 0.15rem; top: calc(0.9rem + 0.5em); width: 6px; height: 6px; background: var(--petrol); transform: rotate(45deg); }

/* The cards: three across, one height per row; the colour of the pair is the label, the top rule and the drawing's
   one awake element. "Something else in mind?" fills whatever is left of the last row. */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: clamp(2.5rem, 6vh, 3.5rem) 0 0; padding: 0; list-style: none; }
.use { --pad: 1.4rem; position: relative; display: flex; flex-direction: column; padding: 1.2rem var(--pad) 1.4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s; }
.use::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 12px; border-top: 2px solid var(--c); border-radius: 8px 8px 0 0;
  clip-path: inset(0 calc(100% - var(--pad) - 2.5rem) 0 var(--pad)); transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.use:hover { border-color: color-mix(in oklab, var(--c) 60%, white); box-shadow: 0 16px 36px -24px color-mix(in oklab, var(--c) 75%, transparent); }
.use:hover::before { clip-path: inset(0 0 0 0); }
.use .use-tag { margin: 0 0 0.75rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.use-art { height: 6.25rem; margin: 0 0 1.25rem; }
.use-art svg { display: block; width: 100%; height: 100%; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.use-art svg * { vector-effect: non-scaling-stroke; }
.use-art .faint { color: var(--ink-4); }
.use-art .solid { fill: currentColor; }
.use-art .acc { color: var(--c); }
.use-art text { fill: currentColor; stroke: none; font: 500 9px var(--font-mono); }
.use h3 { margin: 0 0 0.35rem; font: 600 1.0625rem/1.3 var(--font-sans); color: var(--ink); }
.use p:not(.use-tag) { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }

/* Loading in: the cards appear one by one, each briefly lit in its colour (the rule across, the border, a faint wash),
   which then fades out slowly. The drawings stay still until hover. */
.uses.will-reveal > .use { opacity: 0; transform: translateY(14px); }
.uses.will-reveal > .use.is-in { opacity: 1; transform: none; }
.use.is-settling { transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 1.5s ease, background-color 1.5s ease, box-shadow 1.5s ease; }
.use.is-settling::before { transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.35, 1); }
.use.is-ping { border-color: color-mix(in oklab, var(--c) 60%, white); background: color-mix(in oklab, var(--c) 5%, white); box-shadow: 0 16px 36px -24px color-mix(in oklab, var(--c) 75%, transparent); }
.use.is-ping::before { clip-path: inset(0 0 0 0); }
/* Waking up, on hover: one element per drawing moves once */
.use-art .wake-pulse, .use-art .wake-nudge, .use-art .wake-scan, .use-art .wake-pop { transform-box: fill-box; transform-origin: center; }
.use-art .wake-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.use.is-awake .wake-pulse { animation: w-pulse 0.9s ease; }
.use.is-awake .wake-nudge { animation: w-nudge 0.9s ease; }
.use.is-awake .wake-draw { animation: w-draw 1.1s cubic-bezier(0.45, 0, 0.25, 1); }
.use.is-awake .wake-scan { animation: w-scan 1.5s ease-in-out; }
.use.is-awake .wake-pop { animation: w-pop 0.9s cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes w-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22); } }
@keyframes w-nudge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(6px); } }
@keyframes w-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes w-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(42px); } }
@keyframes w-pop { from { opacity: 0.2; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Something else in mind? */
.use--more { justify-content: space-between; gap: 1.5rem; border-style: dashed; border-color: var(--ink-4); background: transparent; }
.use--more::before { display: none; }
.use--more h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.use--more .btn { align-self: flex-start; color: var(--white); }   /* the design CSS colours this card's links ink */
.use--more:hover { border-color: var(--ink-3); box-shadow: none; }
.uses:has(> .use:last-child:nth-child(3n + 2)) > .use--more { grid-column: span 2; }
.uses:has(> .use:last-child:nth-child(3n + 1)) > .use--more { grid-column: span 3; }
.uses:has(> .use:last-child:nth-child(3n + 2)) > .use--more, .uses:has(> .use:last-child:nth-child(3n + 1)) > .use--more { flex-direction: row; align-items: center; padding: 2rem 2.25rem; }
.uses:has(> .use:last-child:nth-child(3n + 2)) > .use--more .btn, .uses:has(> .use:last-child:nth-child(3n + 1)) > .use--more .btn { align-self: center; flex: none; }

@media (max-width: 64rem) {
  .what-head { grid-template-columns: 1fr; align-items: start; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .uses:has(> .use:last-child) > .use--more { grid-column: auto; flex-direction: column; align-items: stretch; padding: 1.2rem var(--pad) 1.4rem; }
  .uses:has(> .use:last-child:nth-child(2n + 1)) > .use--more { grid-column: span 2; flex-direction: row; align-items: center; padding: 1.75rem 2rem; }
  .uses:has(> .use:last-child) > .use--more .btn { align-self: flex-start; }
  .uses:has(> .use:last-child:nth-child(2n + 1)) > .use--more .btn { align-self: center; }
}
/* Phones: one swipe row with snap, no carousel */
@media (max-width: 40rem) {
  .what-points { grid-template-columns: 1fr; }
  .uses { display: flex; gap: 0.75rem; margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .uses::-webkit-scrollbar { display: none; }
  .use, .uses:has(> .use:last-child) > .use--more { flex: 0 0 min(80%, 20rem); scroll-snap-align: start; flex-direction: column; align-items: stretch; padding: 1.2rem var(--pad) 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .use, .use::before { transition: none; }
  .use.is-awake .use-art * { animation: none !important; }
  .uses.will-reveal > .use { opacity: 1; transform: none; }
}

/* ===== 03 Built properly (5 Nov, v2): the page's dark section ===== */
.sec--dark { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, 0.72);
  --on-ink: color-mix(in oklab, var(--petrol) 50%, white); }
.sec--dark > .wrap { position: relative; z-index: 1; }
.sec--dark .eyebrow { color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.16); }
.sec--dark .sec-n { color: var(--on-ink); }
.sec--dark .sec-title { color: var(--white); }
.sec--dark .sec-lead { color: rgba(255, 255, 255, 0.72); }
/* a faint Petrol glow behind the drawing */
.built-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 30rem at 74% 52%, color-mix(in oklab, var(--petrol) 70%, transparent), transparent 70%); opacity: 0.45; }

.built { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "head art" "facts art"; gap: 0 clamp(2rem, 6vw, 6rem); align-items: start; }
.built-head { grid-area: head; margin-bottom: 0; }
.built-facts { grid-area: facts; margin: clamp(2rem, 5vh, 3rem) 0 0; padding: 0; list-style: none; }
.built-facts li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.25rem 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); cursor: default; }
.built-facts .mono { padding-top: 0.2rem; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); transition: color 0.2s; }
.built-facts b { font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, 0.86); transition: color 0.2s; }
.built-facts li:hover b, .built-facts li.is-on b { color: var(--white); }
.built-facts li:hover .mono, .built-facts li.is-on .mono { color: var(--white); }

/* The drawing: light lines on ink; the part a fact belongs to lights up in Petrol when the fact is hovered */
.built-art { grid-area: art; position: sticky; top: 5rem; margin: 0; }
.built-art svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: rgba(255, 255, 255, 0.62); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.built-art .faint { stroke: rgba(255, 255, 255, 0.28); }
.built-art .wire path { stroke: rgba(255, 255, 255, 0.3); }
.built-art .wire .dash { stroke-dasharray: 3 4; }
.built-art .part { transition: stroke 0.3s, filter 0.3s; }
.built-art .part.is-lit, .built-art .part.is-lit .faint { stroke: var(--on-ink); }
.built-art .part.is-lit { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--petrol) 80%, transparent)); }
.built-art .lbl { fill: rgba(255, 255, 255, 0.5); stroke: none; font: 500 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.built-art .led { fill: var(--on-ink); stroke: none; }
.built-art .tick { stroke: var(--on-ink); }
.built-art .region rect { stroke: rgba(255, 255, 255, 0.3); }
.built-art .region rect.on { fill: color-mix(in oklab, var(--petrol) 55%, transparent); stroke: var(--on-ink); }
.built-art .region text { fill: rgba(255, 255, 255, 0.55); stroke: none; font: 500 9px var(--font-mono); letter-spacing: 0.06em; }
.built-art .region rect.on + text { fill: var(--white); }
/* the heartbeat: a bright stretch runs along the line, again and again */
.built-art .beat-base { stroke: rgba(255, 255, 255, 0.18); }
.built-art .beat { stroke: var(--on-ink); stroke-width: 1.8; stroke-dasharray: 140 860; stroke-dashoffset: 1000; animation: beat 3.6s linear infinite; }
@keyframes beat { to { stroke-dashoffset: 0; } }
.built-art .status { fill: var(--on-ink); stroke: none; transform-box: fill-box; transform-origin: center; animation: status 1.8s ease-in-out infinite; }
@keyframes status { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.built-art .spark { fill: var(--on-ink); stroke: none; opacity: 0; filter: drop-shadow(0 0 5px var(--on-ink)); }
#built.is-paused .beat, #built.is-paused .status { animation-play-state: paused; }

@media (max-width: 64rem) {
  .built { grid-template-columns: 1fr; grid-template-areas: "head" "art" "facts"; }
  .built-art { position: static; margin-top: 2rem; }
}
@media (max-width: 40rem) {
  .built-facts li { grid-template-columns: 1fr; }
  /* the drawing is scaled down to the phone's width, so its labels are set larger to stay readable */
  .built-art .lbl { font-size: 15px; letter-spacing: 0.04em; }
  .built-art .region text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .built-art .beat { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; stroke: rgba(255, 255, 255, 0.4); }
  .built-art .status { animation: none; }
  .built-art .part { transition: none; }
}

/* ===== 04 About (5 Nov, v2): story and principles side by side, then a credentials strip ===== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 6vw, 6rem); align-items: start; }
.about-story .sec-head { margin-bottom: 0; }
.about-story > p { max-width: 34rem; margin: 1.5rem 0 0; font-size: var(--text-lead); line-height: 1.6; color: var(--ink-2); }
.about-story > p + p { margin-top: 1rem; }
.about-story > .motto { margin-top: 1.25rem; font: 500 var(--text-h3)/1.3 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); }
.about-story > .motto + p { margin-top: 1.25rem; }
/* the marker, as in the hero's explainer: it sweeps in when the section comes into view */
.about-story .mark { background: linear-gradient(color-mix(in oklab, var(--petrol) 30%, white), color-mix(in oklab, var(--petrol) 30%, white)) no-repeat 0 88% / 0% 0.45em;
  transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.about-story .mark.is-on { background-size: 100% 0.45em; }

/* The principles: a small mono number; on hover the number gives way to the logo's diamond and the line steps right */
.principles { margin: 0; padding: 0; list-style: none; }   /* its first line sits level with the label's line on the left */
.principles li { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; align-items: baseline; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .n { font: 500 var(--text-xs)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--petrol); transition: opacity 0.2s; }
.principles .t { font-size: 1.125rem; line-height: 1.45; color: var(--ink); transition: transform 0.25s ease; }
.principles li::before { content: ""; position: absolute; left: 0.2rem; top: calc(1.05rem + 0.55em); width: 7px; height: 7px; background: var(--petrol);
  transform: rotate(45deg) scale(0); transition: transform 0.25s ease; }
.principles li:hover::before { transform: rotate(45deg) scale(1); }
.principles li:hover .n { opacity: 0; }
.principles li:hover .t { transform: translateX(4px); }
/* on first view they come in one after another */
.principles.will-reveal li { opacity: 0; transform: translateY(10px); }
.principles.will-reveal li.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Credentials: experience areas coloured by pair where they belong to one, and the sectors */
.creds { grid-column: 1 / -1; display: grid; gap: 1rem; margin: clamp(3rem, 7vh, 4.5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.creds > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem 1.5rem; align-items: baseline; }   /* the label sits on the first line of its row */
.creds dt { font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.creds dd { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.9375rem; line-height: 1.2; color: var(--ink-2); transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.chip[data-group]::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--c); }
.chip[data-group] { border-color: color-mix(in oklab, var(--c) 35%, white); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.creds-note { flex-basis: 100%; margin-top: 0.15rem; font-size: var(--text-sm); color: var(--ink-3); }
.creds-text { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.creds > div { padding-block: 0.25rem; }
.chip[data-group]:hover { border-color: var(--c); background: color-mix(in oklab, var(--c) 6%, white); }

@media (max-width: 64rem) {
  .about { grid-template-columns: 1fr; }
  .principles { margin-top: 2.25rem; padding-top: 0; }
}
@media (max-width: 40rem) {
  .creds > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .principles .t, .principles li::before, .chip { transition: none; }
  .principles.will-reveal li { opacity: 1; transform: none; }
  .about-story .mark { transition: none; background-size: 100% 0.45em; }
}

/* ===== 05 Closing and the footer (5 Nov, v2) ===== */
.closing .closing-title { margin-top: 1.5rem; }
.closing-art { width: min(100%, 24rem); }
@media (max-width: 48rem) { .closing-art { width: 10rem; } }
.closing-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.closing-art .mark-fill { color: var(--white); }
.closing-art .mark-glow { color: var(--white); opacity: 0.3; filter: blur(16px); }
/* With the scroll animation running, the mark waits for its outline to arrive, then fills in slowly */
.js-thread .closing-art .mark-fill, .js-thread .closing-art .mark-glow { opacity: 0; }
/* the fades only once the page has settled, so setting the waiting state doesn't itself animate */
.thread-ready .closing-art .mark-fill { transition: opacity 2.6s ease; }
.thread-ready .closing-art .mark-glow { transition: opacity 3s ease 0.6s; }
.js-thread .closing-art.is-whole .mark-fill { opacity: 1; }
.js-thread .closing-art.is-whole .mark-glow { opacity: 0.3; }

.site-footer .footer-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-3); cursor: pointer; }
.site-footer .footer-link:hover { color: var(--ink); }

/* The thread: the hero's lines, travelling with the page to become the wren. Fixed layers behind the content, so cards,
   panels and text sit on top; over light grounds the layer darkens (multiply), over the dark section a second layer
   lightens (screen), on Petrol plain white as the wren forms. Off on phones (Seb, 5 Nov): the mark simply shows. */
main > section > .wrap, .site-footer .wrap { position: relative; z-index: 1; }
.thread-layer { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; }   /* behind the content (which sits at z-index 1) */
@media (max-width: 48rem) { .thread-layer { display: none; } }
.thread-layer--light { mix-blend-mode: multiply; }
.thread-layer--dark { mix-blend-mode: screen; }
.thread-layer line { stroke-width: 1.25; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-opacity: 0; transition: stroke-opacity 0.35s ease; }
.thread-layer--light line { stroke: #e3e3df; }   /* the hero's own grey */
.thread-layer--dark line { stroke: #34342f; }    /* lightens ink to a quiet grey */
.thread-layer--accent line { stroke: #ffffff; }
.thread-layer.is-done { opacity: 0 !important; transition: opacity 1.6s ease 0.6s; }

/* ===== Sticky header (5 Nov): always in view; once the page has scrolled it gets a frosted ground, a hairline,
   and a slightly more compact height. Section links stop clear of it. ===== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0); transition: background-color 0.3s, box-shadow 0.3s; }
.site-header .wrap { transition: height 0.3s ease; }
.site-header .logo svg { transition: height 0.3s ease; }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled .wrap { height: 3.75rem; }
.site-header.is-scrolled .logo { --logo-h: 1.875rem; }
main > section[id] { scroll-margin-top: 3.75rem; }
.site-header.is-scrolled.is-open { background: var(--white); }   /* the phone menu sits on solid white, not the frosted ground */
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .wrap, .site-header .logo svg { transition: none; } }
