/* Chilli Pepper Software
   Palette: drafting paper, navy ink, chilli red reserved for trust boundaries and actions. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F3F5F6;
  --ink: #13203A;
  --graphite: #4F5A6B;
  --rule: #C9D0D3;
  --chilli: #C21F32;
  --chilli-ink: #FFFFFF;
  --stem: #2E6A4B;
  --grid: rgba(19, 32, 58, 0.06);
  --node-fill: #FFFFFF;
  --floor-line: rgba(19, 32, 58, 0.2);
  --floor-hover: rgba(194, 31, 50, 0.3);

  /* Strapline colours, from the client decks */
  --strap-innovate: #B5473A;
  --strap-design: #0E5C4C;
  --strap-create: #3D5A73;
  --strap-sep: #B7C0C8;

  /* Inverted band */
  --band-bg: var(--ink);
  --band-text: #E9EEF2;
  --band-muted: #A9B4C4;
  --band-rule: #2E3D58;
  --band-accent: #FF6B74;
  --band-stem: #7FCB9C;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  /* One line length for all running text: about 65-70 characters at any font size */
  --measure: 34em;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1828;
    --paper-2: #16223A;
    --ink: #E9EEF2;
    --graphite: #A3AEBE;
    --rule: #2B3A54;
    --chilli: #FF5A66;
    --chilli-ink: #1A0A0D;
    --stem: #7FCB9C;
    --grid: rgba(233, 238, 242, 0.05);
    --node-fill: #16223A;
    --floor-line: rgba(233, 238, 242, 0.12);
    --floor-hover: rgba(255, 90, 102, 0.25);

    --strap-innovate: #D98B82;
    --strap-design: #8FD0BF;
    --strap-create: #9BB0C2;
    --strap-sep: #5A6A78;

    --band-bg: #E9EEF2;
    --band-text: #13203A;
    --band-muted: #4F5A6B;
    --band-rule: #C9D0D3;
    --band-accent: #C21F32;
    --band-stem: #2E6A4B;
  }
}

/* Page colour schemes. Each pillar page can swap the accent and paper tones;
   everything coloured with the tokens follows (buttons, rules, cursor, grid floor).
   The logo keeps its own red. */

/* Engineering & Architecture: blueprint blue */
.theme-engineering {
  --paper: #F5F8FC;
  --paper-2: #E8EEF6;
  --rule: #C4D0DE;
  --chilli: #1D5FA6;
  --chilli-ink: #FFFFFF;
  --grid: rgba(29, 95, 166, 0.08);
  --floor-line: rgba(29, 95, 166, 0.24);
  --floor-hover: rgba(29, 95, 166, 0.24);
}
@media (prefers-color-scheme: dark) {
  .theme-engineering {
    --paper: #0D1A2D;
    --paper-2: #13243D;
    --rule: #274164;
    --chilli: #7DB3FF;
    --chilli-ink: #0A1424;
    --grid: rgba(125, 179, 255, 0.06);
    --node-fill: #13243D;
    --floor-line: rgba(125, 179, 255, 0.16);
    --floor-hover: rgba(125, 179, 255, 0.28);
  }
}

/* Research: lab green, the "design" green from the strapline */
.theme-research {
  --paper: #F5FAF8;
  --paper-2: #E6F1ED;
  --rule: #C2D6CF;
  --chilli: #0E6B57;
  --chilli-ink: #FFFFFF;
  --grid: rgba(14, 107, 87, 0.08);
  --floor-line: rgba(14, 107, 87, 0.22);
  --floor-hover: rgba(14, 107, 87, 0.24);
}
@media (prefers-color-scheme: dark) {
  .theme-research {
    --paper: #0C1E1B;
    --paper-2: #12302B;
    --rule: #24483F;
    --chilli: #6FD3B4;
    --chilli-ink: #06201A;
    --grid: rgba(111, 211, 180, 0.06);
    --node-fill: #12302B;
    --floor-line: rgba(111, 211, 180, 0.15);
    --floor-hover: rgba(111, 211, 180, 0.26);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--chilli);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 10;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--chilli);
  color: var(--chilli-ink);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 120ms ease, transform 120ms ease;
}
.button:hover { background: color-mix(in srgb, var(--chilli) 86%, #000); }
.button:active { transform: translateY(1px); }

.button-small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; white-space: nowrap; flex: none; }

.text-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 120ms ease;
}
.text-link:hover { text-decoration-color: var(--chilli); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark { width: auto; height: 40px; flex: none; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.strap {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.strap .w-innovate { color: var(--strap-innovate); }
.strap .w-design { color: var(--strap-design); }
.strap .w-create { color: var(--strap-create); }
.strap .sep { color: var(--strap-sep); font-weight: 500; }
.strap { white-space: nowrap; }

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { height: 34px; }
  .strap { font-size: 0.5625rem; letter-spacing: 0.08em; }
}
@media (max-width: 359px) {
  .strap { display: none; }
}

.site-nav { display: flex; gap: 24px; }
.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--graphite);
}
.site-nav a:hover { color: var(--ink); }
/* The page you're on: ink colour and a chilli underline */
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--chilli);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Small screens: a "Menu" button that opens a panel. <details> needs no JavaScript. */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before {
  content: "";
  width: 14px;
  height: 10px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
}
.menu[open] summary { border-color: var(--ink); }
.menu-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(19, 32, 58, 0.14);
}
.menu-nav a {
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.menu-nav a:hover { background: var(--paper-2); }
.menu-nav a[aria-current="page"] { color: var(--chilli); }

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu { display: block; }
}
/* Phones: "Email us" moves into the menu so the header has room */
.menu-email { display: none; }
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-inner > .button-small { display: none; }
  .menu-email { display: block; color: var(--chilli); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.9375rem; }
}

/* ---------- Hero ---------- */

.hero {
  --hero-pb: clamp(56px, 8vw, 104px);
  padding-block: clamp(20px, 3.3vw, 47px) var(--hero-pb);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Knowledge graph (pillar pages) ----------
   Sits to the right of the drawn "AI" and the typed name, above the grid floor.
   Builds out after the typing: centre, then branches, then each term, then the
   dashed cross-links. Content comes from tools/knowledge_graphs.py. */
.hero-head { position: relative; }
.kg {
  position: absolute;
  top: 0;
  right: 0;
  /* Clear of the typed name: the longest ("Engineering & Architecture") is about
     13.5 times the typed font size wide. Reaches down to the floor's horizon. */
  width: calc(100% - 13.5 * clamp(1.375rem, 2.9vw, 2.25rem));
  height: calc(100% + clamp(14px, 2vw, 22px));
  overflow: visible;
  pointer-events: none;
  font-family: var(--font);
}
.kg-edge { fill: none; stroke: var(--graphite); stroke-opacity: 0.55; stroke-width: 1.3; }
.kg-link { fill: none; stroke: var(--chilli); stroke-opacity: 0.6; stroke-width: 1.3; stroke-dasharray: 4 4; }
.kg-node text { fill: var(--ink); }
/* A soft drop shadow lifts each box off the page */
.kg-node rect { filter: drop-shadow(0 2px 3px rgba(19, 32, 58, 0.12)) drop-shadow(0 6px 12px rgba(19, 32, 58, 0.08)); }
.kg-centre rect { fill: var(--chilli); }
.kg-centre text { fill: var(--chilli-ink); font-size: 15px; font-weight: 750; text-anchor: middle; }
.kg-branch rect { fill: var(--paper); stroke: var(--chilli); stroke-width: 1.5; }
.kg-branch text { font-size: 14px; font-weight: 700; text-anchor: middle; }
.kg-leaf rect { fill: var(--node-fill); stroke: var(--rule); stroke-width: 1.2; }
.kg-leaf circle { fill: var(--chilli); }
.kg-leaf text { font-size: 13px; font-weight: 550; fill: var(--graphite); }

@media (prefers-reduced-motion: no-preference) {
  .kg { --kg-start: 2.9s; --kg-step: 130ms; }
  .kg-edge {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: kg-draw 420ms ease-out forwards;
  }
  .kg-node {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scale(0.85);
    animation: kg-pop 320ms cubic-bezier(0.3, 0.7, 0.3, 1.2) forwards;
  }
  .kg-link { opacity: 0; animation: kg-fade 600ms ease-out forwards; }
  .kg [data-step="0"] { animation-delay: calc(var(--kg-start) + 0 * var(--kg-step)); }
  .kg [data-step="1"] { animation-delay: calc(var(--kg-start) + 1 * var(--kg-step)); }
  .kg [data-step="2"] { animation-delay: calc(var(--kg-start) + 2 * var(--kg-step)); }
  .kg [data-step="3"] { animation-delay: calc(var(--kg-start) + 3 * var(--kg-step)); }
  .kg [data-step="4"] { animation-delay: calc(var(--kg-start) + 4 * var(--kg-step)); }
  .kg [data-step="5"] { animation-delay: calc(var(--kg-start) + 5 * var(--kg-step)); }
  .kg [data-step="6"] { animation-delay: calc(var(--kg-start) + 6 * var(--kg-step)); }
  .kg [data-step="7"] { animation-delay: calc(var(--kg-start) + 7 * var(--kg-step)); }
  .kg [data-step="8"] { animation-delay: calc(var(--kg-start) + 8 * var(--kg-step)); }
  .kg [data-step="9"] { animation-delay: calc(var(--kg-start) + 9 * var(--kg-step)); }
  .kg [data-step="10"] { animation-delay: calc(var(--kg-start) + 10 * var(--kg-step)); }
  .kg [data-step="11"] { animation-delay: calc(var(--kg-start) + 11 * var(--kg-step)); }
  .kg [data-step="12"] { animation-delay: calc(var(--kg-start) + 12 * var(--kg-step)); }
  .kg [data-step="13"] { animation-delay: calc(var(--kg-start) + 13 * var(--kg-step)); }
  .kg [data-step="14"] { animation-delay: calc(var(--kg-start) + 14 * var(--kg-step)); }
  .kg [data-step="15"] { animation-delay: calc(var(--kg-start) + 15 * var(--kg-step)); }
}
@keyframes kg-draw { to { stroke-dashoffset: 0; } }
@keyframes kg-pop { to { opacity: 1; transform: scale(1); } }
@keyframes kg-fade { to { opacity: 1; } }

/* Tablets: no room beside the heading, so the graph sits below it at full size */
@media (max-width: 999px) {
  .kg {
    position: static;
    display: block;
    width: min(100%, 600px);
    height: auto;
    margin-top: 28px;
  }
}
/* Phones: the labels would be too small to read */
@media (max-width: 699px) {
  .kg { display: none; }
}

/* Receding grid floor. The horizon (vanishing point) is the top edge of .hero-floor,
   just under the typed line; the floor runs forward to the bottom of the hero.
   One inline SVG: lines converge on the horizon and the cross lines close up with depth. */
.hero-floor {
  position: relative;
  margin-top: clamp(14px, 2vw, 22px);
  padding-top: clamp(14px, 2vw, 22px);
}
.hero-floor .lede { margin-top: 0; }
.hero-floor .lede + .lede { margin-top: 14px; }
/* A soft halo in the page colour so grid lines break around the letters */
.hero-floor .lede,
.hero-floor .text-link {
  text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 12px var(--paper);
}
.floor-grid {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: calc(var(--hero-pb) * -1);
  left: 50%;
  width: 100vw;
  height: calc(100% + var(--hero-pb));
  margin-left: -50vw;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 18%, #000 75%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 18%, #000 75%);
}
.floor-lines {
  fill: none;
  stroke: var(--floor-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Hover: the square under the pointer lifts and turns chilli red, then settles back
   slowly, so moving the mouse leaves a short trail. CSS only (the site runs no scripts).
   Only the nearer rows are hoverable; the far rows are tiny and faded.

   Each square is two identical polygons: the first is an invisible hit area that never
   moves; the second is the tile you see, which lifts. If the lifting shape were also the
   hit area, lifting it would pull it out from under the pointer, ending the hover,
   dropping it back, and so on: a flicker. */
.floor-cells polygon:first-child {
  pointer-events: all;
  fill: transparent;
  stroke: none;
}
.floor-cells polygon:nth-child(2) {
  pointer-events: none;
  fill: transparent;
  stroke: transparent;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: fill 900ms ease, stroke 900ms ease, transform 700ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* Each square has an AI term that floats up above it while hovered */
.floor-cells use {
  pointer-events: none;
  opacity: 0;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-anchor: middle;
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke;
  transition: opacity 900ms ease, transform 700ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .floor-cells g:hover polygon:nth-child(2) {
    fill: var(--floor-hover);
    stroke: var(--chilli);
    transition-duration: 80ms;
  }
  .floor-cells g:hover use {
    opacity: 1;
    transition-duration: 120ms;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .floor-cells g:hover polygon:nth-child(2) {
    transform: translateY(-28%);
    filter: drop-shadow(0 4px 3px rgba(19, 32, 58, 0.22));
  }
  .floor-cells use { transform: translateY(6px); }
  .floor-cells g:hover use { transform: translateY(0); }
}

/* The whole hero is type: one large word, then the three things we do with it. */
/* Sets the size of the drawn "AI" below (Inter Tight: its capital I is a plain stroke). */
.hero-title {
  font-size: clamp(7rem, 26vw, 20rem);
  line-height: 1;
  margin-left: -0.03em;
}

/* The A is traced, then the I, then both fill in and build to full weight.
   SVG text in viewBox units, so the trace lengths hold at every screen size. */
.ai-draw {
  display: block;
  height: 0.76em;
  width: auto;
  overflow: visible;
}
.ai-draw text {
  font-family: "Inter Tight", var(--font);
  font-size: 200px;
  letter-spacing: -2px;
  font-weight: 800;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 0;
  stroke-linejoin: round;
  stroke-linecap: round;
}
@media (prefers-reduced-motion: no-preference) {
  .ai-draw text {
    font-weight: 100;
    fill-opacity: 0;
    stroke-width: 5;
    animation:
      ai-fill 450ms ease-out 1750ms forwards,
      ai-weight 1100ms cubic-bezier(0.3, 0.6, 0.2, 1) 1900ms forwards;
  }
  .ai-draw tspan { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
  /* --len is a little longer than each letter's outline at weight 100 */
  .ai-draw .a { --len: 640; animation: ai-trace 1100ms ease-in-out 300ms forwards; }
  .ai-draw .i { --len: 310; animation: ai-trace 500ms ease-in-out 1300ms forwards; }
}
@keyframes ai-trace { to { stroke-dashoffset: 0; } }
@keyframes ai-fill { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes ai-weight { from { font-weight: 100; } to { font-weight: 800; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pillars {
  list-style: none;
  margin: clamp(20px, 3vw, 36px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  /* The full line is about 29.5em wide: sized so it stays on one line down to 820px. */
  font-size: clamp(1.375rem, 2.9vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pillars li { white-space: nowrap; }
.pillars li + li::before {
  content: "/" / "";
  color: var(--chilli);
  font-weight: 400;
  margin-inline: 0.35em;
}
.pillars a {
  text-decoration: none;
  background-image: linear-gradient(var(--chilli), var(--chilli));
  background-size: 0 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 160ms ease;
}
.pillars a:hover { background-size: 100% 3px; }

@media (max-width: 820px) {
  .pillars { flex-direction: column; gap: 4px; font-size: clamp(1.375rem, 6.2vw, 2.25rem); }
  .pillars li { white-space: normal; }
  .pillars li + li::before { content: none; }
}

/* Typed line: after the "AI" is built, a cursor blinks, then types each character.
   Character index = li base + position in its link; the slash before items 2 and 3 takes one step. */
.pillars .ch { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .pillars { --type-start: 2600ms; --type-step: 45ms; }
  .pillars li:nth-child(1) { --base: 0; }
  .pillars li:nth-child(2) { --base: 27; }
  .pillars li:nth-child(3) { --base: 49; }
  .pillars .ch:nth-child(1) { --k: 1; }
  .pillars .ch:nth-child(2) { --k: 2; }
  .pillars .ch:nth-child(3) { --k: 3; }
  .pillars .ch:nth-child(4) { --k: 4; }
  .pillars .ch:nth-child(5) { --k: 5; }
  .pillars .ch:nth-child(6) { --k: 6; }
  .pillars .ch:nth-child(7) { --k: 7; }
  .pillars .ch:nth-child(8) { --k: 8; }
  .pillars .ch:nth-child(9) { --k: 9; }
  .pillars .ch:nth-child(10) { --k: 10; }
  .pillars .ch:nth-child(11) { --k: 11; }
  .pillars .ch:nth-child(12) { --k: 12; }
  .pillars .ch:nth-child(13) { --k: 13; }
  .pillars .ch:nth-child(14) { --k: 14; }
  .pillars .ch:nth-child(15) { --k: 15; }
  .pillars .ch:nth-child(16) { --k: 16; }
  .pillars .ch:nth-child(17) { --k: 17; }
  .pillars .ch:nth-child(18) { --k: 18; }
  .pillars .ch:nth-child(19) { --k: 19; }
  .pillars .ch:nth-child(20) { --k: 20; }
  .pillars .ch:nth-child(21) { --k: 21; }
  .pillars .ch:nth-child(22) { --k: 22; }
  .pillars .ch:nth-child(23) { --k: 23; }
  .pillars .ch:nth-child(24) { --k: 24; }
  .pillars .ch:nth-child(25) { --k: 25; }
  .pillars .ch:nth-child(26) { --k: 26; }

  .pillars .ch {
    --t: calc(var(--type-start) + (var(--base) + var(--k)) * var(--type-step));
    visibility: hidden;
    animation: type-on 1ms var(--t) forwards;
  }
  .pillars li + li::before {
    visibility: hidden;
    animation: type-on 1ms calc(var(--type-start) + var(--base) * var(--type-step)) forwards;
  }

  /* The cursor sits just after the newest character, then moves on */
  .pillars .ch::after,
  .pillars li:first-child .ch:first-child::before {
    content: "";
    position: absolute;
    top: 0.14em;
    bottom: 0.06em;
    width: 0.07em;
    background: var(--chilli);
    visibility: hidden;
  }
  .pillars .ch::after {
    left: calc(100% + 0.03em);
    animation: caret var(--type-step) linear var(--t) forwards;
  }
  /* Before typing starts: the cursor blinks at the start of the line */
  .pillars li:first-child .ch:first-child::before {
    left: -0.05em;
    animation: caret-lead 900ms linear calc(var(--type-start) - 900ms) forwards;
  }
  /* At the end: it blinks a few times, then goes */
  .pillars li:last-child .ch:last-child::after {
    animation: caret-end 3200ms linear var(--t) forwards;
  }
}

@keyframes type-on { to { visibility: visible; } }
/* Each caret keyframe set ends on a hidden *range*, not a single 100% keyframe:
   timings from calc() can finish at progress 0.9999…, and visibility part-way
   between visible and hidden counts as visible, which would leave every caret on. */
@keyframes caret {
  0%, 89.9% { visibility: visible; }
  90%, 100% { visibility: hidden; }
}
@keyframes caret-lead {
  0%, 34.9% { visibility: visible; }
  35%, 59.9% { visibility: hidden; }
  60%, 89.9% { visibility: visible; }
  90%, 100% { visibility: hidden; }
}
@keyframes caret-end {
  0%, 15.9% { visibility: visible; }
  16%, 31.9% { visibility: hidden; }
  32%, 47.9% { visibility: visible; }
  48%, 63.9% { visibility: hidden; }
  64%, 79.9% { visibility: visible; }
  80%, 100% { visibility: hidden; }
}

.lede {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--graphite);
  max-width: var(--measure);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* Smooth scrolling only for visitors who haven't turned motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { max-width: 16ch; }
.section-head p { color: var(--graphite); max-width: var(--measure); }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Services */

/* The services list runs the full width of the page */
.service-group + .service-group { margin-top: clamp(40px, 6vw, 64px); }

/* Fact strip: verified numbers from a case study */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border-block: 1px solid var(--rule);
}
.facts > div { padding: 16px 16px 16px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.facts dt {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.facts dd { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--graphite); }

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 12px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--rule); }
}

.checks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.checks li::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--stem);
  border-bottom: 2px solid var(--stem);
  transform: rotate(-45deg) translateY(-1px);
}

.service-list { margin: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 8px 32px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }

.service dt {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.service dd { margin: 0; color: var(--graphite); max-width: var(--measure); }

@media (max-width: 620px) {
  .service { grid-template-columns: 1fr; }
}

/* AI tools: two offers, then the method */

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 80px);
}
.offer {
  padding-top: 22px;
  border-top: 2px solid var(--chilli);
}
.offer h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2; }
.offer p { color: var(--graphite); margin-top: 14px; max-width: var(--measure); }
.offer .offer-for { margin-top: 6px; color: var(--chilli); font-weight: 650; font-size: 0.9375rem; }
.offer .offer-get { margin-top: 20px; color: var(--ink); font-weight: 650; font-size: 0.9375rem; }

.method-block { margin-top: clamp(56px, 8vw, 96px); }
.method-title { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; }

/* A real sequence. The top rule moves from a dashed boundary round the problem (contain),
   to solid ink (fixed), to green (controls in place). */
.method {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  counter-reset: stage;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 48px);
}
.method li {
  counter-increment: stage;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}
.method .method-contain { border-top: 3px dashed var(--chilli); }
.method .method-prevent { border-top-color: var(--stem); }
.method-stage {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.method-stage::before {
  content: counter(stage);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--graphite);
}
.method-contain .method-stage { color: var(--chilli); }
.method-prevent .method-stage { color: var(--stem); }
.method li > p + p { margin-top: 12px; color: var(--graphite); max-width: var(--measure); }

.principles.principles-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(24px, 4vw, 48px);
  max-width: none;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

#ai-tools .actions { margin-top: clamp(40px, 6vw, 56px); }

@media (max-width: 860px) {
  .offers, .method, .principles.principles-row { grid-template-columns: 1fr; }
}

/* For MSPs */


.msp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 80px);
}
.msp h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.msp-problem p { margin-top: 14px; color: var(--graphite); max-width: var(--measure); }
.msp-problem p:first-of-type { color: var(--ink); font-size: 1.1875rem; }
.msp-provide .principles { margin-top: 18px; }

.models-block { margin-top: clamp(48px, 7vw, 80px); }
.models-block > p { margin-top: 8px; color: var(--graphite); }
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 clamp(32px, 5vw, 48px);
  border-block: 1px solid var(--rule);
}
.models > div { padding: 20px 20px 22px 0; }
.models > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.models dt { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.models dd { margin: 8px 0 0; color: var(--graphite); font-size: 1rem; }

@media (max-width: 860px) {
  .msp-grid { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .models > div, .models > div + div { padding: 18px 0; border-left: 0; }
  .models > div + div { border-top: 1px solid var(--rule); }
}

/* Foundationist */

/* Text on the left; Benefits and Features panels on the right */
.fdn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 80px);
  align-items: start;
}
.fdn-aside {
  display: grid;
  gap: 20px;
}
.fdn-panel {
  padding: 22px 24px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--chilli);
  border-radius: 8px;
}
.fdn-panel h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--chilli);
}
.fdn-list { margin: 10px 0 0; }
.fdn-list > div { padding-block: 12px 14px; }
.fdn-list > div + div { border-top: 1px solid var(--rule); }
.fdn-list dt { font-weight: 700; color: var(--ink); font-size: 1rem; }
.fdn-list dd { margin: 4px 0 0; color: var(--graphite); font-size: 0.9375rem; line-height: 1.45; }
.fdn-list .checks { margin-top: 8px; }

@media (max-width: 960px) {
  .fdn-grid { grid-template-columns: 1fr; }
}
.fdn-copy .project-kind { color: var(--chilli); font-weight: 650; font-size: 0.9375rem; }
.fdn-copy h2 { margin-top: 6px; font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.035em; }
.fdn-copy p { color: var(--graphite); max-width: var(--measure); margin-top: 16px; }
.fdn-copy .fdn-lede { color: var(--ink); font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.45; margin-top: 20px; font-weight: 500; }
.fdn-copy .button { margin-top: 32px; }

/* ISO band */

.band {
  background: var(--band-bg);
  color: var(--band-text);
  border-top: 0;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px clamp(40px, 7vw, 104px);
  align-items: start;
}

.band-copy p { color: var(--band-muted); max-width: var(--measure); }
.band-copy h2 { margin-bottom: 24px; }
.band-copy p + p { margin-top: 16px; }

.band-copy .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--band-rule);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--band-text);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--band-stem);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--band-stem) 25%, transparent);
}

.button-on-band {
  margin-top: 32px;
  background: var(--band-accent);
  color: var(--band-bg);
}
.button-on-band:hover { background: color-mix(in srgb, var(--band-accent) 85%, var(--band-text)); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding-block: 22px;
  border-top: 1px solid var(--band-rule);
}
.steps li:last-child { border-bottom: 1px solid var(--band-rule); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--band-accent);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--band-muted); font-size: 1rem; }

@media (max-width: 860px) {
  .band-grid { grid-template-columns: 1fr; }
}

/* Projects */

.shot {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 300ms ease; }
.shot:hover img { transform: scale(1.015); }

.project h3 { font-size: 1.625rem; letter-spacing: -0.02em; margin-top: 4px; }
.project p { color: var(--graphite); margin-top: 12px; max-width: var(--measure); }
.project .project-kind { color: var(--chilli); font-weight: 650; font-size: 0.9375rem; margin-top: 0; }
.project .text-link { display: inline-block; margin-top: 20px; }

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 72px);
  margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.project-feature h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

/* Caseo: the trust-boundary motif again, this time drawn round the client's own machines */
.project-case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

.offline {
  margin: 0;
  padding: 28px 24px 20px;
  border: 1.6px dashed var(--chilli);
  border-radius: 8px;
  position: relative;
}
.offline .offline-label {
  margin: 0;
  max-width: none;
  position: absolute;
  top: -0.75em;
  left: 16px;
  padding-inline: 8px;
  background: var(--paper);
  color: var(--chilli);
  font-size: 0.9375rem;
  font-weight: 650;
}
.offline-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.offline-flow li {
  position: relative;
  padding: 12px 16px;
  background: var(--node-fill);
  border: 1.3px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}
.offline-flow li + li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -23px;
  height: 22px;
  border-left: 1.5px solid var(--graphite);
}
.offline-flow li + li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -8px;
  border: 4.5px solid transparent;
  border-top: 6px solid var(--graphite);
}
.offline figcaption {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--graphite);
}

.inline-link {
  color: var(--chilli);
  font-weight: 600;
  text-underline-offset: 3px;
}

.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(32px, 5vw, 64px);
}
.project-pair .shot { margin-bottom: 24px; }

@media (max-width: 860px) {
  .project-feature, .project-pair { grid-template-columns: 1fr; }
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 80px);
}
.about-body > p { font-size: 1.25rem; line-height: 1.5; max-width: var(--measure); }

.principles {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: var(--measure);
}
.principles li {
  padding-left: 22px;
  position: relative;
  color: var(--graphite);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1.6px dashed var(--chilli);
  border-radius: 2px;
}
.principles strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Contact */

.contact { background: var(--paper-2); }
.contact h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 14ch; }
.contact p { margin-top: 20px; color: var(--graphite); max-width: var(--measure); font-size: 1.1875rem; }

.contact-email {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(1.5rem, 4.6vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--chilli);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration-style: dashed; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.footer-inner p:last-child { margin-left: auto; }
.footer-inner a { color: inherit; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; }
  .footer-inner p:last-child { margin-left: 0; }
}

/* ---------- Inner pages ---------- */

.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
}
.page-hero .lede { max-width: var(--measure); }
.page-hero .lede + .lede { margin-top: 14px; }

/* ---------- Home: the three pillars ---------- */

.pillar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 56px);
}
.pillar {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 2px solid var(--chilli);
}
.pillar h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2; }
.pillar h3 a { text-decoration: none; }
.pillar h3 a:hover { color: var(--chilli); }
.pillar p { margin-top: 14px; color: var(--graphite); }
.pillar .pillar-includes { font-size: 0.9375rem; color: var(--ink); }
.pillar .text-link { margin-top: auto; padding-top: 24px; align-self: flex-start; }

@media (max-width: 900px) {
  .pillar-list { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.post-topic { color: var(--chilli); font-weight: 650; text-decoration: none; }
a.post-topic:hover { text-decoration: underline; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-card {
  padding-block: 28px 32px;
  border-top: 1px solid var(--rule);
}
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card h3 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24ch;
}
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--chilli); }
.post-card > p:not(.post-meta) { margin-top: 12px; color: var(--graphite); max-width: var(--measure); }
.post-card .text-link { display: inline-block; margin-top: 16px; }

/* Article */
.article-head .post-meta { margin-bottom: 18px; }
.article-head h1 { max-width: 20ch; }

.prose > * { max-width: var(--measure); }
.prose h2 {
  margin-top: 48px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 16px; color: var(--graphite); }
.prose strong { color: var(--ink); }
.prose a:not(.text-link) { color: var(--chilli); font-weight: 600; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--chilli); font-weight: 700; }

.prose pre {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--chilli);
  border-radius: var(--radius);
  overflow-x: auto;
  font: 500 0.875rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
  white-space: pre-wrap;
}

/* A two-row before/after comparison */
.compare { margin: 20px 0 0; border-block: 1px solid var(--rule); }
.compare > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 14px;
}
.compare > div + div { border-top: 1px solid var(--rule); }
.compare dt { font-weight: 700; color: var(--graphite); }
.compare > div + div dt { color: var(--chilli); }
.compare dd { margin: 0; color: var(--ink); }

/* Where each rule is enforced: concern on the left, layer on the right */
.layers { margin: 20px 0 0; border-block: 1px solid var(--rule); }
.layers > div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 12px;
}
.layers > div + div { border-top: 1px solid var(--rule); }
.layers dt { font-weight: 700; color: var(--ink); }
.layers dd { margin: 0; color: var(--graphite); }
.layers > div:last-child dt { color: var(--chilli); }
@media (max-width: 560px) {
  .layers > div { grid-template-columns: 1fr; }
}

/* The headline result: before and after */
.result {
  margin: 28px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}
.result > div { padding: 18px 18px 18px 0; }
.result > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.prose .result p { margin: 0; }
.prose .result p + p { margin-top: 6px; font-size: 0.9375rem; }
.prose .result-number {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.result > div + div .result-number { color: var(--chilli); }

.article-cta {
  margin-top: 48px;
  padding: 20px 22px;
  border: 1.6px dashed var(--chilli);
  border-radius: 8px;
}
.prose .article-cta p { margin: 0; color: var(--ink); }
.prose .article-cta p + p { margin-top: 10px; }
.prose .article-back { margin-top: 32px; }

@media (max-width: 480px) {
  .result { grid-template-columns: 1fr; }
  .result > div, .result > div + div { padding: 14px 0; border-left: 0; }
  .result > div + div { border-top: 1px solid var(--rule); }
}

/* ---------- Article versions: Business / Technical ----------
   The address picks the version (#business or #technical) using :target, so it
   works without JavaScript and either version can be linked to directly.
   With no choice yet, the reader sees the two choice cards. */

.version-anchor { display: block; height: 0; scroll-margin-top: 96px; }

.article-version { display: none; }
.article:has(#business:target) [data-version="business"],
.article:has(#technical:target) [data-version="technical"] { display: block; }

/* The choice, shown until one is picked */
.reading-choice h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}
.choice-cards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: calc(var(--measure) * 1.5);
}
.choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  background: var(--paper);
  transition: border-color 120ms ease, transform 120ms ease;
}
.choice-card:hover { border-color: var(--chilli); }
.choice-card:active { transform: translateY(1px); }
.choice-name { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
.choice-card:hover .choice-name { color: var(--chilli); }
.choice-desc { color: var(--graphite); font-size: 1rem; }
.choice-time { margin-top: auto; padding-top: 6px; font-size: 0.875rem; font-weight: 650; color: var(--chilli); }
.article:has(#business:target, #technical:target) .reading-choice { display: none; }

@media (max-width: 640px) {
  .choice-cards { grid-template-columns: 1fr; }
}

/* The switch, shown once a version is picked */
.version-switch {
  display: none;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  font-size: 0.9375rem;
}
.version-switch span { color: var(--graphite); margin-right: 8px; }
.version-switch a {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  color: var(--graphite);
}
.version-switch a:hover { color: var(--ink); border-color: var(--ink); }
.article:has(#business:target, #technical:target) .version-switch { display: flex; }
.article:has(#business:target) .vs-business,
.article:has(#technical:target) .vs-technical {
  background: var(--chilli);
  border-color: var(--chilli);
  color: var(--chilli-ink);
}

/* Business version details */
.prose h3 {
  margin-top: 32px;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.prose .so-what {
  padding-left: 14px;
  border-left: 3px solid var(--chilli);
  color: var(--ink);
}
.prose .version-other { margin-top: 40px; color: var(--graphite); }
.article-body .article-back { margin-top: 32px; }

/* FAQs: question on the left column heading, answers open in place. <details> needs no JavaScript. */
.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq h2 { max-width: 12ch; }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--chilli);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--chilli); }
.faq details p {
  margin: -4px 0 0;
  padding-bottom: 22px;
  max-width: var(--measure);
  color: var(--graphite);
}
@media (max-width: 760px) {
  .faq .wrap { grid-template-columns: 1fr; }
  .faq h2 { max-width: none; }
}

/* Blog "coming soon" page */
.blog-soon .lede + p { margin-top: 20px; color: var(--graphite); }
