/* Fiber Velocity — site theme.
   Tokens and components are taken from the fiber-velocity.pages.dev reference;
   the CMS section kinds (prose, stat_band, card_grid, steps, diagram, cta, journey)
   are mapped onto them below. Admin uses admin.css and is not affected. */

:root {
  --cyan: #00AFC8;
  --cyan-deep: #008DA1;
  --lime: #B6EC2C;
  --night: #061820;
  --ink: #073142;
  --ink-2: #0B4054;
  --white: #FFFFFF;
  --off: #F7FAFB;
  --steel: #5A7480;
  --steel-on-ink: #7B95A0;
  --mist: #EDF2F4;
  --tint: #D9F2F6;
  --lime-tint: #EDFAD0;
  --text: #3C5763;
  --rule: #E1E8EB;
  --rule-ink: #12455A;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Legacy names read by the server-rendered diagrams (lib/diagrams.js). */
  --fv-night: var(--night); --fv-ink: var(--ink); --fv-cyan: var(--cyan);
  --fv-lime: var(--lime); --fv-white: var(--off); --fv-steel: var(--steel);
  --fv-diagram-fg: var(--ink); --fv-diagram-muted: var(--steel);
  --fv-diagram-surface: var(--white); --fv-diagram-line: #CBD6DA;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--cyan-deep); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.012em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; color: var(--steel); }
.lede { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 34em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 3px; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--cyan); color: var(--night); transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--cyan-deep); color: var(--white); }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow:hover { color: var(--cyan-deep); }
.link-arrow svg { width: 16px; height: 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--cyan); color: var(--night); padding: .7rem 1rem; border-radius: 3px; }

/* Lockup. Colour reaches the <use> shadow tree through inherited `color`. */
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.lockup svg.mark { height: 40px; width: auto; display: block; }
.lockup .name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.022em; color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.93); backdrop-filter: saturate(150%) blur(8px); -webkit-backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--rule); }
.nav .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.nav .wrap > * { flex-shrink: 0; } /* nothing squeezes; overflow is detected and collapsed instead */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--night); }
.nav-links a.btn:hover { color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
/* The nav collapses to the menu when its links do not fit: site.js measures and sets
   .compact, so CMS nav edits cannot overflow. The media query is the no-JS fallback. */
.nav.compact .nav-toggle { display: inline-flex; }
.nav.compact .nav-links { display: none; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; max-height: calc(100vh - 80px); overflow-y: auto; }
.nav.compact .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.nav.compact .nav-links a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 12px; }
.nav.compact .nav-links a:last-child { border-bottom: 0; }
.nav.compact .nav-links .btn { margin-top: 12px; }
.nav.compact[data-open="true"] .nav-links { display: flex; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 12px; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .btn { margin-top: 12px; }
  .nav[data-open="true"] .nav-links { display: flex; }
}

/* ----------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-copy .label { color: var(--cyan-deep); }
.hero-copy h1 { max-width: 16ch; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-home .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-home .hero-copy h1 { max-width: none; }
@media (max-width: 860px) { .hero-home .wrap { grid-template-columns: 1fr; } }

/* Passings grid (home hero) */
.passings { display: flex; flex-direction: column; gap: 14px; }
.passings-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.passings-grid span { aspect-ratio: 1; display: block; color: var(--rule); }
.passings-grid svg { display: block; width: 100%; height: 100%; fill: var(--mist); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: fill .88s ease, stroke .88s ease, color .88s ease; }
.passings-grid span.on { color: var(--cyan); }
.passings-grid span.on svg { fill: var(--cyan); }
.passings-grid span.next { color: var(--lime); }
.passings-grid span.next svg { fill: var(--lime-tint); }
.passings-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--steel); }
.passings-key i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--rule); }
.passings-key svg { display: block; width: 100%; height: 100%; fill: var(--mist); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.passings-key i.on { color: var(--cyan); } .passings-key i.on svg { fill: var(--cyan); }
.passings-key i.next { color: var(--lime); } .passings-key i.next svg { fill: var(--lime-tint); }
.passings-note { font-size: 14px; color: var(--text); max-width: 34em; }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.hero + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.section-head.solo { grid-template-columns: minmax(0, 1fr); }
.section-head .label { margin-bottom: 14px; display: block; }
.section-head h2 { max-width: 14em; }
.section-head > .head-right { margin-top: 29px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.section-head.solo > .head-right { margin-top: 0; }
.section-head + * { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head > .head-right { margin-top: 0; } }

/* Prose from the CMS (markdown) */
.prose { color: var(--text); max-width: 36em; }
.prose > * + * { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--cyan-deep); box-shadow: inset 0 -1px 0 currentColor; }
.prose h3 { color: var(--ink); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.prose ol { counter-reset: li; }
.prose li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--cyan); }
.prose ol li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; font-family: var(--mono); font-size: 13px; color: var(--cyan-deep); }
.prose blockquote { margin: 0; border-left: 3px solid var(--cyan); padding-left: 20px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.28; letter-spacing: -0.014em; color: var(--ink); }

/* Themes. light = white, ink = mist band, night = night band, signal = CTA band. */
.t-ink { background: var(--mist); border-top-color: transparent; }
.t-ink + .section, .section + .t-ink { border-top-color: transparent; }
.t-night, .t-signal {
  background: var(--night); color: var(--white); border-top-color: transparent;
  --fv-diagram-fg: var(--white); --fv-diagram-muted: #9FB4BD;
  --fv-diagram-surface: rgba(255,255,255,.06); --fv-diagram-line: rgba(255,255,255,.2);
}
.t-night + .section, .t-signal + .section { border-top-color: transparent; }
.t-night .label, .t-signal .label { color: var(--lime); }
.t-night h2, .t-signal h2 { color: var(--white); }
.t-night .prose, .t-signal .prose { color: #B9CBD3; }
.t-night .prose strong, .t-signal .prose strong,
.t-night .prose h3, .t-signal .prose h3,
.t-night .prose blockquote, .t-signal .prose blockquote { color: var(--white); }
.t-night .prose a, .t-signal .prose a { color: #6FD3E2; }
.t-night .prose ol li::before, .t-signal .prose ol li::before { color: #6FD3E2; }
/* The CTA band gets the reference's oversized heading. */
.t-signal h2, .k-cta h2 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.03em; line-height: 1; font-weight: 700; }
.k-cta .section-head { align-items: center; }
.k-cta .section-head > .head-right { margin-top: 0; }

/* -------------------------------------------------- stat band (figures) */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fig { padding: 4px clamp(20px, 2.4vw, 34px); border-left: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; gap: 10px; }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig .v { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.fig .k { font-size: 15.5px; font-weight: 600; color: var(--white); line-height: 1.35; }
.fig .s { font-size: 13.5px; color: var(--steel-on-ink); line-height: 1.45; }
/* On a light band the lime would disappear, so the figures switch to ink. */
.t-light .fig, .t-ink .fig { border-left-color: var(--rule); }
.t-light .fig .v, .t-ink .fig .v { color: var(--ink); }
.t-light .fig .k, .t-ink .fig .k { color: var(--ink); }
.t-light .fig .s, .t-ink .fig .s { color: var(--steel); }
.k-stat_band.t-night { padding: clamp(48px, 6vw, 76px) 0; }
@media (max-width: 860px) {
  .figs { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 34px; }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) { .figs { grid-template-columns: 1fr; } .fig { border-left: 0; padding-left: 0; } }

/* ------------------------------------------------------ card grid (stack) */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack.n-4, .stack.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { border-color: var(--cyan); box-shadow: 0 1px 10px rgba(7,49,66,.06); color: var(--ink); }
.card h3 { font-size: 17px; letter-spacing: -0.008em; }
.card p { color: var(--text); font-size: 14.5px; line-height: 1.5; }
.card .rule { width: 26px; height: 3px; background: var(--cyan); border-radius: 2px; margin-top: auto; }
.t-night .card, .t-signal .card { background: var(--ink); border-color: var(--rule-ink); color: var(--white); }
.t-night .card p, .t-signal .card p { color: #B9CBD3; }
.t-night a.card:hover, .t-signal a.card:hover { color: var(--white); border-color: var(--cyan); }
@media (max-width: 980px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .stack, .stack.n-4, .stack.n-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--mist); border-radius: 4px; padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--cyan-deep); letter-spacing: 0.08em; text-transform: uppercase; }
.step .n::after { counter-increment: s; content: " " counter(s, decimal-leading-zero); }
.step p { color: var(--text); font-size: 14.5px; }
.t-ink .step { background: var(--white); }
.t-night .step, .t-signal .step { background: var(--ink); }
.t-night .step p, .t-signal .step p { color: #B9CBD3; }
.t-night .step .n, .t-signal .step .n { color: var(--lime); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- diagrams */
.diagram-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 6px; background: var(--white); padding: clamp(12px, 2vw, 24px); }
.t-ink .diagram-frame { border-color: transparent; }
.t-night .diagram-frame, .t-signal .diagram-frame { background: rgba(255,255,255,.03); border-color: var(--rule-ink); }
.fv-diagram { display: block; width: 100%; height: auto; min-width: 640px; font-family: var(--body); }

/* --------------------------------------------------------------- journey */
/* The reference's ink journey card, made live. */
.journey {
  margin-top: clamp(32px, 4vw, 48px); background: var(--ink); color: var(--white); border-radius: 3px; overflow: hidden;
  --fv-rule: rgba(255,255,255,.18); --fv-muted: var(--steel-on-ink);
}
.t-night .journey, .t-signal .journey { box-shadow: inset 0 0 0 1px var(--rule-ink); }
.journey-head { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; padding: 24px; }
.journey-head .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); flex: 0 0 100%; }
.journey-head .q { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; flex: 1 1 16rem; min-width: 0; }
.journey-open {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 3px; cursor: pointer;
  background: rgba(0,175,200,.16); color: #6FD3E2; box-shadow: inset 0 0 0 1px rgba(0,175,200,.45);
  font-family: var(--body); font-size: 14px; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.journey-open:hover { background: var(--cyan); color: var(--night); }
.journey-open svg { width: 16px; height: 16px; }
.journey[data-open="true"] .journey-open svg { transform: rotate(90deg); }
.journey-body { display: none; padding: 0 24px 26px; }
.journey[data-open="true"] .journey-body { display: block; border-top: 1px solid var(--fv-rule); padding-top: 24px; }

.j-progress { display: flex; gap: 5px; margin-bottom: 18px; }
.j-progress i { width: 24px; height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; }
.j-progress i.on { background: var(--cyan); }
.j-prompt { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; margin: 0 0 6px; max-width: 34em; }
.j-helper { font-size: 14px; color: var(--steel-on-ink); margin: 0 0 18px; max-width: 40em; }
.j-options { display: grid; gap: 8px; margin: 18px 0; }
.j-option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 13px 16px; border: 1px solid var(--rule-ink); border-radius: 3px;
  background: var(--ink-2); color: var(--white); cursor: pointer;
  font: 400 15px/1.45 var(--body); transition: border-color .15s ease, background .15s ease;
}
.j-option:hover { border-color: var(--cyan); }
.j-option[aria-pressed="true"] { border-color: var(--cyan); background: rgba(0,175,200,.16); }
.j-option .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: .3em; border: 2px solid var(--steel-on-ink); }
.j-option[aria-pressed="true"] .dot { background: var(--cyan); border-color: var(--cyan); }
.j-input {
  width: 100%; max-width: 34rem; margin: 6px 0 18px; padding: 12px 14px; border-radius: 3px;
  border: 1px solid var(--rule-ink); background: var(--ink-2); color: var(--white); font: 400 15px var(--body);
}
.j-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,175,200,.25); }
.j-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.j-next { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 3px; cursor: pointer; background: var(--cyan); color: var(--night); font: 600 15px var(--body); }
.j-next:hover { background: var(--cyan-deep); color: var(--white); }
.j-next:disabled { opacity: .4; cursor: not-allowed; background: var(--cyan); color: var(--night); }
.j-skip { background: none; border: 0; color: var(--steel-on-ink); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.j-skip:hover { color: var(--white); }
.j-outcome { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.j-outcome h3 { color: var(--lime); font-size: 22px; }
.j-outcome > div { color: #B9CBD3; max-width: 40em; }
.j-outcome > div > * + * { margin-top: 12px; }
.j-outcome strong { color: var(--white); }
.j-error { color: #FF8A75; font-size: 14px; }

/* ---------------------------------------------------------------- footer */
/* One slim row, as on the reference: brand, section links, then the legal line. */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-foot .brand { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.site-foot .brand svg.mark { width: 60px; height: auto; display: block; }
.site-foot .brand p { font-size: 13px; color: var(--steel); max-width: 30em; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.site-foot nav a { color: var(--text); }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .legal { width: 100%; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--steel); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .legal .tag { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-deep); }
/* Two dark bands in a row need a seam, or they read as one block. */
.t-night + .t-night, .t-night + .t-signal, .t-signal + .t-night, .t-signal + .t-signal { border-top: 1px solid var(--rule-ink); }

/* Stat bands with fewer than four figures */
.figs.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .figs.n-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .figs.n-3, .figs.n-2 { grid-template-columns: 1fr; } }

/* Capability groups: a card grid whose cards carry an item list (reference "groups").
   Bullets stay folded until the box is clicked; site.js toggles .open. */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grp { padding: 30px 32px 34px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.grp h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; letter-spacing: -0.015em; }
.grp h3 svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--cyan); }
.grp h3 a { color: inherit; }
.grp h3 a:hover { color: var(--cyan-deep); }
.grp > p { color: var(--text); font-size: 15.5px; }
.grp ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--text); }
.grp li { padding-left: 18px; position: relative; }
.grp li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--cyan); }
.grp.fold { cursor: pointer; }
.grp-toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-deep); }
.grp-toggle svg { width: 14px; height: 14px; transition: transform .35s; }
.grp.open .grp-toggle svg { transform: rotate(180deg); }
.grp .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s; }
.grp .more > ul { overflow: hidden; min-height: 0; margin-top: 0; }
.grp.open .more { grid-template-rows: 1fr; }
.grp.open .more > ul { margin-top: 4px; }
.grp.fold li { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.grp.fold.open li { opacity: 1; transform: none; }
.grp.fold.open li:nth-child(1) { transition-delay: .12s; }
.grp.fold.open li:nth-child(2) { transition-delay: .22s; }
.grp.fold.open li:nth-child(3) { transition-delay: .32s; }
.grp.fold.open li:nth-child(4) { transition-delay: .42s; }
.grp.fold.open li:nth-child(5) { transition-delay: .52s; }
.grp.fold.open li:nth-child(n+6) { transition-delay: .6s; }
/* Without JS the lists simply stay open. */
.no-js .grp .more { grid-template-rows: 1fr; }
.no-js .grp.fold li { opacity: 1; transform: none; }
.no-js .grp-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .grp .more, .grp-toggle svg, .grp.fold li { transition: none; } }
.t-night .groups, .t-signal .groups { border-color: var(--rule-ink); }
.t-night .grp, .t-signal .grp { border-color: var(--rule-ink); }
.t-night .grp > p, .t-night .grp ul, .t-signal .grp > p, .t-signal .grp ul { color: #B9CBD3; }
@media (max-width: 800px) { .groups { grid-template-columns: 1fr; } .grp { padding: 26px 22px 30px; } }

/* Fit: open columns under a heavy rule (reference "Who it is for") */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.fit-item { padding: 24px 0 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.fit-item h3 a { color: inherit; }
.fit-item p { color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* About: an aside card beside the section copy */
.k-prose.has-aside .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.k-prose.has-aside .section-head { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.k-prose.has-aside .section-head > .head-right { margin-top: 0; }
.aside-card { border: 1px solid var(--rule); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.aside-card .avatar { width: 84px; height: 46px; display: flex; align-items: center; color: var(--ink); }
.aside-card .avatar svg { width: 100%; height: auto; }
.aside-card .who { display: flex; flex-direction: column; gap: 2px; }
.aside-card .who strong { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.aside-card .who span { font-size: 14px; color: var(--steel); }
.aside-card .prose { font-size: 15px; }
@media (max-width: 760px) { .k-prose.has-aside .wrap { grid-template-columns: 1fr; } }

/* Contact: copy and direct lines on the left, the form on the right */
.k-prose.has-form .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.k-prose.has-form .section-head { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.k-prose.has-form .section-head > .head-right { margin-top: 0; }
.contact-direct { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.contact-direct span { color: var(--steel); font-size: 13px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid #CBD6DA; border-radius: 3px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.field textarea { min-height: 132px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--steel); font-size: 13px; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--text); background: var(--tint); border-radius: 3px; padding: 12px 14px; display: none; }
.form-note.show { display: block; }
.form-note.err { background: #FDECEC; color: #8A1F1F; }
@media (max-width: 760px) { .k-prose.has-form .wrap { grid-template-columns: 1fr; } .contact-form { grid-template-columns: 1fr; } }
