/* electricmind.com design system
   One stylesheet. Tokens first, then base, layout, components and utilities.
   Rules: one value per job, square corners, mono only for labels, no scroll hijacking. */

@font-face { font-family: "FT System Blank"; src: url("/fonts/ft-system-blank-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Blank"; src: url("/fonts/ft-system-blank-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Blank"; src: url("/fonts/ft-system-blank-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "FT System Mono"; src: url("/fonts/ft-system-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --ink: #19131f;
  --paper: #f5f4f2;
  --paper-alt: #e9e8e4;
  --white: #ffffff;
  --quiet: #6b6058;
  --blue: #3348ff;
  --blue-pressed: #253af3;
  --blue-on-dark: #6d7cfd;
  --neuron: #c89ffd;
  --lilac: #e5d2fc;
  --line: #d8d0c8;
  --field-border: #75695f;
  --on-dark: #f5f4f2;
  --on-dark-quiet: #bab6af;
  --dark-line: #3a3340;

  /* type */
  --font-sans: "FT System Blank", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "FT System Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(3rem, 1.9rem + 4.6vw, 5rem);
  --fs-title: clamp(2.5rem, 1.95rem + 2.3vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-h3: 1.5rem;
  --fs-lead: 1.25rem;
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* space: 4-pixel steps */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(64px, 5vw + 40px, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1280px;
  --measure: 68ch;
  --header-h: 72px;

  --focus: 2px solid var(--blue);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
li, dd, figcaption, blockquote, td, th { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; color: var(--blue-pressed); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--lilac); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: var(--s-4); }

/* ---------- layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--alt { background: var(--paper-alt); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark a { color: var(--blue-on-dark); }
.section--dark a:hover { color: var(--lilac); }
.section + .section:not(.section--alt):not(.section--dark):not(.section--white) { border-top: 1px solid var(--line); }
.grid { display: grid; gap: var(--s-6) var(--s-6); }
/* fixed column counts so a row never ends with one lonely card */
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* two-column state: an odd last card takes the full row */
@media (min-width: 640px) and (max-width: 999px) { .grid--3:not(.grid--feature) > :last-child:nth-child(odd), .grid--4 > :last-child:nth-child(odd) { grid-column: span 2; } .grid--3:not(.grid--feature) > :last-child:nth-child(odd) .card__art { aspect-ratio: 32 / 9; } }
@media (min-width: 640px) { .grid--2 > :last-child:nth-child(odd) { grid-column: span 2; } .grid--2 > :last-child:nth-child(odd) .card__art { aspect-ratio: 32 / 9; } }
/* five items: the first one is featured across two columns (2 + 3, or 2 + 2 + 2 on tablets) */
@media (min-width: 640px) { .grid--feature > :first-child { grid-column: span 2; } .grid--feature > :first-child .card__art { aspect-ratio: 32 / 9; } }
@media (min-width: 1000px) { .grid--feature > :first-child .card__art { aspect-ratio: 11 / 3; } } /* same art height as its 1-column neighbour */
.split { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-8); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 7fr 5fr; }
}
.prose { max-width: var(--measure); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* ---------- type styles */
.label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--quiet); margin: 0 0 var(--s-4); }
.label::before { content: "// "; color: var(--blue); }
.section--dark .label { color: var(--on-dark-quiet); }
.section--dark .label::before { color: var(--neuron); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }
.title { font-size: var(--fs-title); line-height: 1.05; letter-spacing: -0.025em; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.section--dark .lead { color: var(--on-dark); }
.small { font-size: var(--fs-small); }
.quiet { color: var(--quiet); }
.section--dark .quiet { color: var(--on-dark-quiet); }
.mono { font-family: var(--font-mono); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
/* the frosted header only on wide screens: a backdrop filter would trap the full-screen phone menu inside the header */
@media (min-width: 1240px) { .site-header { background: rgba(245, 244, 242, 0.94); backdrop-filter: saturate(140%) blur(8px); } }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand > span { display: block; line-height: 0; }
.brand svg { display: block; max-width: none; width: auto; }
.brand .brand__symbol-svg { height: 30px; }
.brand .brand__wordmark-svg { height: 17px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--s-1); }
.nav-list > li { position: relative; }
.nav-link, .nav-group > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; min-height: 44px;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; border-radius: 0; white-space: nowrap;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s var(--ease); }
.nav-group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-link:hover, .nav-group > summary:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 0.3em; }
.nav-link[aria-current="page"], .nav-group.is-current > summary { color: var(--blue); }
.nav-panel { position: absolute; top: calc(100% + 13px); left: -12px; z-index: 60; width: min(420px, 90vw); background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(25, 19, 31, 0.10); padding: var(--s-3); }
.nav-panel ul { list-style: none; }
.nav-panel a { display: block; padding: var(--s-3) var(--s-3); color: var(--ink); text-decoration: none; }
.nav-panel a:hover { background: var(--paper); }
.nav-panel a strong { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; }
.nav-panel a span { display: block; font-size: var(--fs-small); color: var(--quiet); line-height: 1.4; margin-top: 2px; }
.nav-panel a:hover strong { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.lang-switch { display: flex; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0 4px; color: var(--quiet); text-decoration: none; }
.lang-switch a:hover { color: var(--blue); text-decoration: underline; }
.lang-switch [aria-current="true"] { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--blue); }
.menu-button { display: none; }

@media (max-width: 1239px) {
  .js .menu-button { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--field-border); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: var(--s-5) var(--gutter) var(--s-8); overflow-y: auto; gap: var(--s-5); border-top: 1px solid var(--line); }
  .site-nav { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-group > summary { width: 100%; justify-content: space-between; min-height: 52px; font-size: 0.8125rem; }
  .nav-panel { position: static; width: auto; border: 0; box-shadow: none; background: transparent; padding: 0 0 var(--s-3); }
  .header-actions { justify-content: space-between; }
}
@media (min-width: 1240px) {
  .menu-button { display: none !important; }
}

/* ---------- buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 var(--s-5);
  background: var(--blue); color: var(--white); border: 1px solid var(--blue); border-radius: 0;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.button:hover { background: var(--blue-pressed); border-color: var(--blue-pressed); color: var(--white); text-decoration: none; }
.button::after { content: "\2192"; font-family: var(--font-mono); transition: transform .15s var(--ease); }
.button:hover::after { transform: translateX(3px); }
.button--secondary { background: transparent; color: var(--ink); border-color: var(--field-border); }
.button--secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--dark .button--secondary { color: var(--on-dark); border-color: var(--on-dark-quiet); }
.section--dark .button--secondary:hover { background: var(--on-dark); color: var(--ink); }
.button--small { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-small); }
.button--no-arrow::after { content: none; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link::after { content: " \2192"; font-family: var(--font-mono); }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- page title band and heroes */
.page-head { padding: var(--s-9) 0 var(--s-8); border-bottom: 1px solid var(--line); }
.page-head__grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .page-head__grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.page-head .title { margin-bottom: var(--s-5); max-width: 18ch; }
.page-head .lead { margin-top: 0; }
.page-head__art { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.page-head__art img, .page-head__art svg { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { margin-bottom: var(--s-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--quiet); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero__art { position: absolute; inset: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero__inner { position: relative; padding: clamp(96px, 12vw, 176px) 0 clamp(64px, 8vw, 112px); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 19, 31, 0.92) 0%, rgba(25, 19, 31, 0.78) 45%, rgba(25, 19, 31, 0.25) 100%); }
.hero .display { max-width: 15ch; margin-bottom: var(--s-6); }
.hero .lead { color: var(--on-dark); max-width: 44ch; margin-bottom: var(--s-7); }
.hero .label { color: var(--on-dark-quiet); }
.hero .label::before { color: var(--neuron); }
.hero .button--secondary { color: var(--on-dark); border-color: var(--on-dark-quiet); }
.hero .button--secondary:hover { background: var(--on-dark); color: var(--ink); }
.hero__facts { position: relative; border-top: 1px solid var(--dark-line); }
.hero__facts ul { list-style: none; display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hero__facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hero__facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__facts li { padding: var(--s-5) var(--s-5) var(--s-5) 0; color: var(--on-dark-quiet); font-size: var(--fs-small); line-height: 1.45; }
.hero__facts strong { display: block; color: var(--on-dark); font-size: 1.125rem; font-weight: 500; margin-bottom: 2px; }

/* ---------- section heads */
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--s-8); } }
.section-head .h2 { max-width: 22ch; }
.section-head p { max-width: 56ch; color: var(--quiet); margin: 0; }
.section--dark .section-head p { color: var(--on-dark-quiet); }

/* ---------- cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s var(--ease); height: 100%; }
a.card:hover, .card:has(.card__title a):hover, .card:focus-within { border-color: var(--ink); }
.card__art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line); }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
/* linked pictures zoom a little on hover: cards, and the home page podcast panel */
@media (prefers-reduced-motion: no-preference) {
  .card__art img, a.art-panel img { transition: transform .4s var(--ease); }
  a.card:hover .card__art img, .card:has(.card__title a):hover .card__art img, a.art-panel:hover img { transform: scale(1.04); }
}
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.card__meta { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.card__title { font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title, .card:hover .card__title a { color: var(--blue); }
.card__text { color: var(--quiet); font-size: 1rem; line-height: 1.55; }
.card__more { margin-top: auto; padding-top: var(--s-3); font-weight: 500; color: var(--blue); }
.card__more::after { content: " \2192"; font-family: var(--font-mono); }
.card--plain { background: transparent; }
.card--numbered .card__num { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--blue); letter-spacing: 0.08em; }
.section--dark .card { background: #211a29; border-color: var(--dark-line); color: var(--on-dark); }
.section--dark .card__text, .section--dark .card__meta { color: var(--on-dark-quiet); }
.section--dark a.card:hover, .section--dark .card:has(.card__title a):hover { border-color: var(--on-dark-quiet); }
.section--dark .card:hover .card__title, .section--dark .card:hover .card__title a { color: var(--lilac); }
.section--dark .card__more { color: var(--blue-on-dark); }

/* offering rows (home) */
.offer-list { list-style: none; border-top: 1px solid var(--line); }
.offer-list li { border-bottom: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-6) 0; color: var(--ink); text-decoration: none; }
@media (min-width: 640px) { .offer-row { grid-template-columns: 64px 1fr; column-gap: var(--s-5); align-items: baseline; } .offer-row > :not(.offer-row__num) { grid-column: 2; } }
@media (min-width: 1000px) { .offer-row { grid-template-columns: 64px 5fr 6fr max-content; gap: var(--s-6); } .offer-row > :not(.offer-row__num) { grid-column: auto; } }
.offer-row__num { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--blue); letter-spacing: 0.08em; }
.offer-row__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.offer-row__text { color: var(--quiet); }
.offer-row__more { font-weight: 500; color: var(--blue); justify-self: start; white-space: nowrap; }
@media (min-width: 1000px) { .offer-row__more { justify-self: end; } }
.offer-row__more::after { content: " \2192"; font-family: var(--font-mono); }
.offer-row:hover .offer-row__name { color: var(--blue); }

/* ---------- numbered points and steps */
.points { list-style: none; counter-reset: pt; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { counter-increment: pt; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.points li::before { content: counter(pt, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--blue); letter-spacing: 0.08em; padding-top: 0.35em; }
.points strong { display: block; font-weight: 500; font-size: 1.125rem; line-height: 1.35; margin-bottom: 4px; }
.points span { color: var(--quiet); }
.section--dark .points { border-color: var(--dark-line); }
.section--dark .points li { border-color: var(--dark-line); }
.section--dark .points li::before { color: var(--neuron); }
.section--dark .points span { color: var(--on-dark-quiet); }

.steps { list-style: none; counter-reset: st; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: st; position: relative; padding-top: var(--s-6); border-top: 2px solid var(--ink); }
.steps li::before { content: "Step " counter(st); position: absolute; top: var(--s-3); left: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.steps strong { display: block; font-weight: 500; font-size: 1.125rem; line-height: 1.35; margin: var(--s-3) 0 var(--s-2); }
.steps span { color: var(--quiet); font-size: 1rem; }
.section--dark .steps li { border-color: var(--on-dark); }
.section--dark .steps li::before { color: var(--neuron); }
.section--dark .steps span { color: var(--on-dark-quiet); }

.check-list { list-style: none; display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.section--dark .check-list li::before { border-color: var(--neuron); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag-list li { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); color: var(--quiet); background: var(--white); }

/* ---------- statistics with sources */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); }
.stat { padding: var(--s-5) var(--s-5) var(--s-5) 0; }
.stat__value { font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: var(--s-3); font-size: 1rem; line-height: 1.45; }
.stat__source { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--quiet); }
.section--dark .stats { border-color: var(--dark-line); }
.section--dark .stat__source { color: var(--on-dark-quiet); }

/* ---------- quotes */
.quote { margin: 0; padding: var(--s-6) 0 0; border-top: 2px solid var(--ink); }
.quote blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.005em; }
.quote--large blockquote { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.4; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-mono); color: var(--blue); font-size: 2.5rem; line-height: 0.8; margin-bottom: var(--s-3); }
.quote figcaption { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--quiet); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; }
.section--dark .quote { border-color: var(--on-dark); }
.section--dark .quote blockquote::before { color: var(--neuron); }
.section--dark .quote figcaption, .section--dark .quote figcaption strong { color: var(--on-dark-quiet); }
.section--dark .quote figcaption strong { color: var(--on-dark); }

/* ---------- case studies */
.case-head { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .case-head { grid-template-columns: 7fr 5fr; } }
.facts-box { border: 1px solid var(--line); background: var(--white); }
.facts-box dl { margin: 0; display: grid; }
.facts-box div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.facts-box div:last-child { border-bottom: 0; }
.facts-box dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); padding-top: 0.3em; }
.facts-box dd { margin: 0; }
.notice { border-left: 3px solid var(--blue); background: var(--white); padding: var(--s-4) var(--s-5); font-size: var(--fs-small); color: var(--ink); }

/* ---------- article body */
.article { display: grid; gap: var(--s-7); }
@media (min-width: 1100px) { .article { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); } }
.toc { font-size: var(--fs-small); }
.toc ol { list-style: none; display: grid; gap: var(--s-2); border-left: 1px solid var(--line); }
.toc a { display: block; padding: 2px 0 2px var(--s-4); color: var(--quiet); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }
@media (min-width: 1100px) { .toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.rich { max-width: var(--measure); }
.rich > * + * { margin-top: 1.1em; }
.rich h2 { font-size: var(--fs-h2); margin-top: 1.8em; }
.rich h3 { font-size: 1.375rem; margin-top: 1.6em; line-height: 1.25; }
.rich h4 { font-size: 1.125rem; margin-top: 1.4em; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich li + li { margin-top: 0.45em; }
.rich li::marker { color: var(--blue); }
.rich a { text-decoration: underline; }
.rich blockquote { margin: 1.6em 0; padding: 0 0 0 var(--s-5); border-left: 3px solid var(--blue); font-size: 1.125rem; }
.rich figure { margin: 1.8em 0; }
.rich figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--quiet); }
.rich img { border: 1px solid var(--line); background: var(--white); }
.rich code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-alt); padding: 1px 5px; }
.rich pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: var(--s-5); font-size: var(--fs-small); }
.rich pre code { background: none; padding: 0; }
.rich sup { line-height: 0; }
.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); background: var(--white); }
.table-scroll:focus-visible { outline: var(--focus); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--fs-small); line-height: 1.5; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.table-scroll th { font-weight: 500; background: var(--paper); }
.takeaways { border: 1px solid var(--line); background: var(--white); padding: var(--s-5) var(--s-6); margin-top: var(--s-7); max-width: var(--measure); }
.takeaways h2 { font-size: 1.25rem; margin-bottom: var(--s-4); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); color: var(--quiet); margin-top: var(--s-5); }
.post-meta strong { color: var(--ink); font-weight: 500; }
.post-banner { aspect-ratio: 16 / 7; background: var(--ink); overflow: hidden; margin-top: var(--s-7); }
.post-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- video (click to play) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--s-3); width: 100%; border: 0; background: transparent; color: var(--white); font: 500 1rem var(--font-sans); cursor: pointer; text-decoration: none; }
.video__play span { display: inline-flex; align-items: center; gap: var(--s-3); background: var(--blue); padding: 14px 22px; }
.video__play span::before { content: ""; width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.video__play:hover span { background: var(--blue-pressed); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- people */
.people { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.person { display: flex; flex-direction: column; gap: var(--s-3); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-alt); }
.person__name { font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.person__title { color: var(--quiet); font-size: var(--fs-small); line-height: 1.4; }
.person__link { font-size: var(--fs-small); }
.person__event { margin: 0; padding: var(--s-2) var(--s-3); border-left: 2px solid var(--blue); background: var(--white); font-size: var(--fs-small); line-height: 1.45; }
.person__event span { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

/* ---------- jobs */
.job-list { list-style: none; border-top: 1px solid var(--line); }
.job-list li { border-bottom: 1px solid var(--line); }
.job-row { display: grid; gap: var(--s-2); padding: var(--s-5) 0; color: var(--ink); text-decoration: none; }
@media (min-width: 820px) { .job-row { grid-template-columns: 6fr 3fr 3fr; align-items: baseline; gap: var(--s-5); } }
.job-row__title { font-weight: 500; font-size: 1.125rem; }
.job-row__meta { color: var(--quiet); font-size: var(--fs-small); }
.job-row:hover .job-row__title { color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; margin-bottom: var(--s-6); }
.filters label { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--quiet); }
.filters select, .filters input[type="search"] { min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--field-border); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; border-radius: 0; }
.filters input[type="search"] { min-width: min(100%, 320px); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--field-border); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.result-count { font-size: var(--fs-small); color: var(--quiet); margin-bottom: var(--s-5); }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0; cursor: pointer; font-weight: 500; font-size: 1.125rem; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--blue); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq .faq__answer { padding: 0 0 var(--s-5); max-width: var(--measure); color: var(--quiet); }

/* ---------- timeline (to scale) */
.timeline { position: relative; padding: var(--s-6) 0 0; }
.timeline__axis { position: relative; height: 2px; background: var(--ink); margin: var(--s-7) 0 0; }
.timeline__item { position: absolute; top: -7px; transform: translateX(-50%); }
.timeline__dot { width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--ink); }
.timeline__item--accent .timeline__dot { background: var(--blue); border-color: var(--blue); }
.timeline__list { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: var(--s-7); }
.timeline__list li { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.timeline__year { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--blue); }
.timeline__list strong { display: block; font-weight: 500; margin: var(--s-2) 0 var(--s-1); }
.timeline__list span { color: var(--quiet); font-size: 1rem; }
.timeline__scale { display: flex; justify-content: space-between; margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--quiet); }
.timeline__gap { position: absolute; top: 12px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--quiet); white-space: nowrap; }

/* ---------- next-step band */
.cta-band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band__art { position: absolute; inset: 0; opacity: 0.55; }
.cta-band__art img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__inner { position: relative; display: grid; gap: var(--s-6); padding: var(--s-9) 0; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 7fr 5fr; align-items: end; } }
.cta-band .h2 { max-width: 20ch; }
.cta-band p { color: var(--on-dark-quiet); max-width: 48ch; }
.cta-band .label { color: var(--on-dark-quiet); }
.cta-band .label::before { color: var(--neuron); }

/* ---------- forms */
.form { display: grid; gap: var(--s-5); max-width: 640px; }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 1rem; }
.field .hint { font-size: var(--fs-small); color: var(--quiet); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field-border); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: var(--fs-small); }
.field .error:empty { display: none; }
.checkbox { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-small); line-height: 1.5; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.form-status { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--blue); background: var(--white); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- contact details */
.contact-list { display: grid; gap: var(--s-5); }
.contact-list div { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.contact-list dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); margin-bottom: var(--s-2); }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }

/* ---------- media */
.photo { overflow: hidden; background: var(--paper-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 4 / 5; }
@media (max-width: 959px) { .page-head .photo--tall { aspect-ratio: 16 / 9; } }
.art-panel { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.art-panel img { width: 100%; height: 100%; object-fit: cover; }
.art-panel--video { aspect-ratio: 16 / 9; }
a.art-panel { display: block; }
/* video thumbnails keep 16:9 in wide grid slots, so faces at the edges aren't cropped */
.card__art:has(> .thumb) { aspect-ratio: 16 / 9 !important; }
.figure-caption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--quiet); }

/* ---------- episode */
.episode-links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.episode-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); color: var(--quiet); }

/* ---------- footer */
.site-footer { background: var(--ink); color: var(--on-dark-quiet); font-size: var(--fs-small); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--lilac); text-decoration: underline; }
.footer-top { display: grid; gap: var(--s-7); padding: var(--s-9) 0 var(--s-7); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 4fr 8fr; } }
.footer-brand { display: grid; gap: var(--s-5); align-content: start; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { max-width: 36ch; margin: 0; }
.footer-cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.footer-cols h2 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-quiet); margin-bottom: var(--s-4); }
.footer-cols ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-cols a { display: inline-block; padding: 3px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--dark-line); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--dark-line); }
.social a:hover { border-color: var(--on-dark-quiet); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .lang-switch a, .site-footer .lang-switch span { color: var(--on-dark-quiet); }
.site-footer .lang-switch [aria-current="true"] { color: var(--on-dark); border-bottom-color: var(--neuron); }

/* ---------- cookie notice */
.consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 80; max-width: 560px; background: var(--white); border: 1px solid var(--ink); padding: var(--s-5); box-shadow: 0 18px 40px rgba(25, 19, 31, 0.16); }
.consent p { font-size: var(--fs-small); }
.consent[hidden] { display: none; }

/* ---------- 404 */
.not-found { padding: var(--s-10) 0; }

/* ---------- motion preferences */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fade-in .5s var(--ease) both; }
  @keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- print */
@media print {
  .site-header, .site-footer, .cta-band, .consent, .toc { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
}

/* ---------- one case study on an offering or industry page */
.case-highlight { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .case-highlight { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.case-highlight__art { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.case-highlight__art img { width: 100%; height: 100%; object-fit: cover; }
.case-highlight__body { display: grid; gap: var(--s-4); }
.case-highlight__body > p { margin: 0; max-width: 60ch; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s-4); margin: var(--s-2) 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.mini-stats dt { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.mini-stats dd { margin: 4px 0 0; color: var(--quiet); font-size: var(--fs-small); line-height: 1.45; }
.section--dark .mini-stats { border-color: var(--dark-line); }
.section--dark .mini-stats dd { color: var(--on-dark-quiet); }
.card .tag-list { margin-top: var(--s-2); }

.case-head .facts-box { align-self: start; }

/* ---------- tables, notes and "more" panels inside articles */
.rich .table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.rich table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.rich th, .rich td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rich thead th { font-weight: 500; background: var(--paper-alt); }
.rich tbody th { font-weight: 500; }
.rich tr:last-child > * { border-bottom: 0; }
.rich details.more { border: 1px solid var(--line); background: var(--white); padding: 0 var(--s-5); }
.rich details.more > summary { cursor: pointer; padding: var(--s-4) 0; font-weight: 500; color: var(--blue); }
.rich details.more[open] { padding-bottom: var(--s-5); }
.rich details.more > summary + * { margin-top: 0; }
.rich .callout { border-left: 3px solid var(--blue); background: var(--white); padding: var(--s-5); }
.rich .callout > * + * { margin-top: var(--s-3); }
.rich .video--inline { margin: 1.8em 0; }

/* ---------- podcast chapters */
.chapters { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.chapters li { display: grid; grid-template-columns: 76px 1fr; gap: var(--s-3); }
.chapters li + li { margin-top: 0; }
.chapters__time { font-family: var(--font-mono); font-size: var(--fs-small); }

.person-line { display: block; }
.person-line + .person-line { margin-top: var(--s-3); }
.person-line strong { display: block; font-weight: 500; }
.person-line span { display: block; color: var(--quiet); font-size: var(--fs-small); line-height: 1.45; }
.person__event b { font-weight: inherit; }

.article > * { min-width: 0; }

.header-actions .button { white-space: nowrap; }

@media (max-width: 639px) { .timeline__gap { display: none; } }

/* play buttons inside articles keep their own colours */
.rich .video__play { color: var(--white); text-decoration: none; }
/* long words and addresses never push the page sideways on small phones */
.rich p, .rich li, .rich td, .rich th { overflow-wrap: break-word; }
.rich a { overflow-wrap: anywhere; }
.title, .display, .h2, .rich h2, .rich h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { .title { font-size: 2.125rem; } .display { font-size: 2.5rem; } }
