/* =========================================================================
   jcustod.io / Cool Grey & Indigo
   Plain CSS. No build step, no imports, no external requests.
   Token names are load-bearing: every colour token below exists in all four
   theme selectors (:root, prefers-color-scheme dark, [data-theme=dark],
   [data-theme=light]) and the pairs must stay in sync.
   ========================================================================= */

:root {
  /* ---- Cool Grey & Indigo, light ---- */
  --ground:      #F5F6F8;
  --surface:     #FFFFFF;
  --sunken:      #ECEEF2;
  --raised:      #FFFFFF;
  --ink:         #171A21;
  --soft:        #4E5560;
  --faint:       #6F7783;
  --brand:       #3B3F94;
  --brand-dp:    #2E3178;
  --brand-wash:  #E8E9F6;
  --accent:      #A85A22;
  --accent-wash: #F9EEE4;
  --border:      rgba(23, 26, 33, 0.12);
  --hair:        rgba(23, 26, 33, 0.07);
  --veil:        rgba(245, 246, 248, 0.86);
  --shadow:      0 1px 2px rgba(23, 26, 33, 0.05), 0 8px 24px -12px rgba(23, 26, 33, 0.18);
  --shadow-lg:   0 1px 2px rgba(23, 26, 33, 0.05), 0 24px 56px -28px rgba(23, 26, 33, 0.28);
  --btn-ink:     #FFFFFF;

  /* ---- type ---- */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step--2: clamp(0.7734rem, 0.7517rem + 0.1085vw, 0.8375rem);
  --step--1: clamp(0.9rem, 0.8551rem + 0.2246vw, 1.0313rem);
  --step-0:  clamp(1.125rem, 1.0417rem + 0.4167vw, 1.375rem);
  --step-1:  clamp(1.4063rem, 1.2643rem + 0.7109vw, 1.8331rem);
  --step-2:  clamp(1.7578rem, 1.5298rem + 1.1399vw, 2.443rem);
  --step-3:  clamp(2.1973rem, 1.8443rem + 1.7648vw, 3.2569rem);
  --step-4:  clamp(2.7466rem, 2.2152rem + 2.6567vw, 4.3413rem);
  --step-5:  clamp(3.4332rem, 2.6478rem + 3.9272vw, 5.7877rem);

  --leading-flat:  1.05;
  --leading-fine:  1.12;
  --leading-short: 1.25;
  --leading:       1.55;
  --leading-loose: 1.7;
  --kern-tight: -0.03em;
  --kern-caps:   0.1em;

  /* ---- space ---- */
  --space-3xs: clamp(0.3125rem, 0.2483rem + 0.321vw, 0.5625rem);
  --space-2xs: clamp(0.5625rem, 0.418rem + 0.7223vw, 1.125rem);
  --space-xs:  clamp(0.875rem, 0.6764rem + 0.9931vw, 1.6875rem);
  --space-s:   clamp(1.125rem, 0.8361rem + 1.4446vw, 2.25rem);
  --space-m:   clamp(1.6875rem, 1.2541rem + 2.1669vw, 3.375rem);
  --space-l:   clamp(2.25rem, 1.6722rem + 2.8892vw, 4.5rem);
  --space-xl:  clamp(3.375rem, 2.5082rem + 4.3338vw, 6.75rem);
  --space-2xl: clamp(4.5rem, 3.3443rem + 5.7785vw, 9rem);
  --space-3xl: clamp(6.75rem, 5.0165rem + 8.6677vw, 13.5rem);

  /* ---- measure, gutters, geometry ---- */
  --measure: 64ch;
  --measure-tight: 46ch;
  --shell: 68.75rem;      /* 1100px */
  --shell-wide: 78rem;    /* only the worked-example band uses this */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r: 16px;
  --r-s: 10px;
  --pad-card: clamp(1.25rem, 2.4vw, 2rem);
  --ring: inset 0 0 0 1px var(--border);
  --ring-soft: inset 0 0 0 1px var(--hair);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #0F1116;
    --surface:     #191C23;
    --sunken:      #14161C;
    --raised:      #21252E;
    --ink:         #E6E8EE;
    --soft:        #A3AAB6;
    --faint:       #79808B;
    --brand:       #8C90E0;
    --brand-dp:    #A5A8EA;
    --brand-wash:  rgba(140, 144, 224, 0.14);
    --accent:      #DD8B4E;
    --accent-wash: rgba(221, 139, 78, 0.13);
    --border:      rgba(230, 232, 238, 0.14);
    --hair:        rgba(230, 232, 238, 0.08);
    --veil:        rgba(15, 17, 22, 0.86);
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.65);
    --shadow-lg:   0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -28px rgba(0, 0, 0, 0.8);
    --btn-ink:     #12141A;
  }
}
:root[data-theme="dark"] {
  --ground:      #0F1116;
  --surface:     #191C23;
  --sunken:      #14161C;
  --raised:      #21252E;
  --ink:         #E6E8EE;
  --soft:        #A3AAB6;
  --faint:       #79808B;
  --brand:       #8C90E0;
  --brand-dp:    #A5A8EA;
  --brand-wash:  rgba(140, 144, 224, 0.14);
  --accent:      #DD8B4E;
  --accent-wash: rgba(221, 139, 78, 0.13);
  --border:      rgba(230, 232, 238, 0.14);
  --hair:        rgba(230, 232, 238, 0.08);
  --veil:        rgba(15, 17, 22, 0.86);
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg:   0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -28px rgba(0, 0, 0, 0.8);
  --btn-ink:     #12141A;
}
:root[data-theme="light"] {
  --ground:      #F5F6F8;
  --surface:     #FFFFFF;
  --sunken:      #ECEEF2;
  --raised:      #FFFFFF;
  --ink:         #171A21;
  --soft:        #4E5560;
  --faint:       #6F7783;
  --brand:       #3B3F94;
  --brand-dp:    #2E3178;
  --brand-wash:  #E8E9F6;
  --accent:      #A85A22;
  --accent-wash: #F9EEE4;
  --border:      rgba(23, 26, 33, 0.12);
  --hair:        rgba(23, 26, 33, 0.07);
  --veil:        rgba(245, 246, 248, 0.86);
  --shadow:      0 1px 2px rgba(23, 26, 33, 0.05), 0 8px 24px -12px rgba(23, 26, 33, 0.18);
  --shadow-lg:   0 1px 2px rgba(23, 26, 33, 0.05), 0 24px 56px -28px rgba(23, 26, 33, 0.28);
  --btn-ink:     #FFFFFF;
}

/* =========================================================================
   base
   ========================================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--brand);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  text-wrap: balance;
  letter-spacing: var(--kern-tight);
}
h1 { font-size: var(--step-5); line-height: var(--leading-flat); }
h2 { font-size: var(--step-3); line-height: var(--leading-fine); }
h3 { font-size: var(--step-1); line-height: var(--leading-short); letter-spacing: -0.022em; }
h4 { font-size: var(--step-0); line-height: var(--leading-short); letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }

a { color: var(--brand); }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-140%);
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-s) var(--r-s);
  box-shadow: var(--ring), var(--shadow);
}
.skip:focus { transform: translateY(0); }

/* =========================================================================
   layout primitives
   ========================================================================= */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-wide { width: 100%; max-width: var(--shell-wide); margin-inline: auto; padding-inline: var(--gutter); }

/* two tiers of vertical rhythm, plus one outsized tier for the band */
.sec { padding-block: var(--space-xl); }
.sec-major { padding-block: var(--space-2xl); }
.sec-band { padding-block: var(--space-3xl); }

/* figure / ground */
.on-surface { background: var(--surface); }
.on-sunken  { background: var(--sunken); }
.edge-top    { border-top: 1px solid var(--hair); }
.edge-bottom { border-bottom: 1px solid var(--hair); }

section[id], main[id] { scroll-margin-top: 5.5rem; }

.stack   { display: flex; flex-direction: column; gap: var(--space-s); }
.stack-s { display: flex; flex-direction: column; gap: var(--space-2xs); }
.stack-l { display: flex; flex-direction: column; gap: var(--space-m); }

.prose { max-width: var(--measure); }
.prose-tight { max-width: var(--measure-tight); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: var(--kern-caps);
  text-transform: uppercase;
  color: var(--brand);
  line-height: var(--leading-short);
}
.eyebrow-quiet { color: var(--faint); }

.lede {
  font-size: var(--step-1);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--soft);
  max-width: 34ch;
  text-wrap: pretty;
}
.sub {
  font-size: var(--step-0);
  color: var(--soft);
  max-width: var(--measure);
}
.muted { color: var(--soft); }
.fine { font-size: var(--step--1); color: var(--faint); line-height: var(--leading-loose); }

/* section headers share one shape so the page has a repeating beat */
.sec-head { display: flex; flex-direction: column; gap: var(--space-3xs); max-width: 52ch; }
.sec-head h2 { max-width: 20ch; }
.sec-head .sub { max-width: 52ch; }

/* =========================================================================
   header
   ========================================================================= */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--veil);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding-block: 0.75rem;
  flex-wrap: wrap;
}
.wordmark {
  font-size: var(--step--1);
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--brand); }

.navlinks { display: flex; gap: clamp(1rem, 2.2vw, 1.75rem); align-items: center; }
.navlinks a {
  font-size: var(--step--1);
  color: var(--soft);
  text-decoration: none;
  padding-block: 0.25rem;
}
.navlinks a:hover { color: var(--ink); }

.topbar-tools { display: flex; align-items: center; gap: 0.75rem; }

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 999px;
  border: 0;
  box-shadow: var(--ring);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
#theme-toggle:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
#theme-toggle svg { width: 18px; height: 18px; display: block; }
#theme-toggle .ico { display: none; }
#theme-toggle[data-mode="auto"]  .ico-auto  { display: block; }
#theme-toggle[data-mode="light"] .ico-light { display: block; }
#theme-toggle[data-mode="dark"]  .ico-dark  { display: block; }

@media (max-width: 46.875rem) {
  .navlinks {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
    gap: 0.35rem 1.15rem;
  }
  .navlinks a { white-space: nowrap; }
  .btn-sm.hide-sm { display: none; }
  section[id], main[id] { scroll-margin-top: 8rem; }
}

/* =========================================================================
   buttons
   ========================================================================= */

.actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }

.btn {
  font-size: var(--step--1);
  font-weight: 620;
  font-family: inherit;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  background: var(--brand);
  color: var(--btn-ink);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.btn:hover { background: var(--brand-dp); }
.btn-lg { font-size: var(--step-0); padding: 0.9em 1.7em; }
.btn-sm { padding: 0.6em 1.05em; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: var(--ring);
}
.btn-quiet:hover { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

.btn-arrow { font-size: 1.05em; line-height: 1; }

.link-ul { color: var(--brand); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.link-ul:hover { text-decoration-thickness: 2px; }

/* =========================================================================
   1. hero: display type carries the fold, there is no image
   ========================================================================= */

.hero { padding-top: var(--space-2xl); padding-bottom: var(--space-l); }
.hero-inner { display: flex; flex-direction: column; gap: var(--space-3xs); align-items: flex-start; }
.hero h1 { max-width: 15ch; margin-top: var(--space-3xs); }
.hero .lede { max-width: 48ch; margin-top: var(--space-xs); }
.hero .actions { margin-top: var(--space-s); }

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-s);
  font-size: var(--step--1);
  color: var(--faint);
  list-style: none;
  margin-top: var(--space-s);
}
.reassure li { display: flex; align-items: baseline; gap: 0.45rem; max-width: 40ch; }
.tick { color: var(--brand); font-weight: 700; }

/* 2. capability row: hairline separated, labels only */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.caps li {
  padding: var(--space-xs) var(--space-s) var(--space-xs) 0;
  border-bottom: 1px solid var(--hair);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--soft);
  line-height: var(--leading-short);
  text-wrap: balance;
}
.caps li::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--brand);
  margin-bottom: 0.7rem;
  opacity: 0.85;
}

/* =========================================================================
   3. position: the argument that occupies the proof slot. No boxes.
   ========================================================================= */

.arg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: var(--space-m) var(--space-l);
}
.arg {
  border-top: 2px solid var(--ink);
  padding-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}
.arg-out { border-top-color: var(--accent); }
.arg h3 { font-size: var(--step-1); }
.arg p { color: var(--soft); font-size: var(--step--1); line-height: var(--leading); }

/* =========================================================================
   4. services: five long-form blocks with unequal weight
   ========================================================================= */

.svc-list { list-style: none; display: flex; flex-direction: column; }

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: var(--space-s) var(--space-l);
  padding-block: var(--space-m);
  border-top: 1px solid var(--border);
  align-items: start;
}
.svc-num {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: var(--space-3xs);
}
.svc-title { max-width: 14ch; }
.svc-q {
  font-size: var(--step-0);
  color: var(--ink);
  max-width: 40ch;
  font-weight: 500;
  text-wrap: pretty;
}
.svc-body { display: flex; flex-direction: column; gap: var(--space-xs); }
.svc-out { font-size: var(--step--1); color: var(--soft); max-width: 56ch; }

.deliv { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-2xs); }
.deliv li {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--soft);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  box-shadow: var(--ring);
  background: var(--surface);
  line-height: 1.35;
}

/* the lead block gets real weight: a surface card, a bigger title, wider set */
.svc-lead {
  grid-template-columns: minmax(0, 1fr);
  border-top: 0;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--ring), var(--shadow-lg);
  padding: var(--pad-card);
  margin-bottom: var(--space-s);
  gap: var(--space-s);
}
.svc-lead .svc-title { font-size: var(--step-2); max-width: 20ch; }
.svc-lead .svc-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: var(--space-s) var(--space-l);
  align-items: start;
}
.svc-lead .deliv li { background: var(--ground); box-shadow: var(--ring-soft); }
.svc-lead .svc-q { font-size: var(--step-1); line-height: 1.35; letter-spacing: -0.015em; }

@media (max-width: 46.875rem) {
  .svc, .svc-lead .svc-inner { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   5. worked example: the section that breaks the layout rules.
      Full bleed, own background, own width, biggest padding on the page.
   ========================================================================= */

.band { background: var(--sunken); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.band-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  max-width: 56ch;
  margin-bottom: var(--space-l);
}
.band-head h2 { font-size: var(--step-2); max-width: 22ch; }
.band-stack { display: flex; flex-direction: column; gap: var(--space-s); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-s) var(--space-m);
  align-items: start;
}
@media (max-width: 60rem) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

/* a non-card sibling inside the band, so the row is not two matching boxes */
.band-aside { display: flex; flex-direction: column; gap: var(--space-2xs); padding-top: var(--space-3xs); }
.band-aside h3 { font-size: var(--step-0); letter-spacing: -0.012em; }
.band-aside p { color: var(--soft); font-size: var(--step--1); max-width: 46ch; }
.band-aside .note { max-width: 46ch; }

.panel {
  background: var(--raised);
  border-radius: var(--r);
  box-shadow: var(--ring), var(--shadow);
  padding: var(--pad-card);
}
.panel-head { display: flex; flex-direction: column; gap: var(--space-3xs); margin-bottom: var(--space-s); }
.panel-head h3 { font-size: var(--step-0); letter-spacing: -0.012em; }
.panel-head p { font-size: var(--step--1); color: var(--faint); }

.diagram-wrap { overflow-x: auto; }
.diagram-wrap svg { display: block; min-width: 560px; width: 100%; height: auto; }
.dg-label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--soft); }
.dg-txt { font-family: var(--sans); font-size: 12.5px; fill: var(--ink); }
.dg-pill-t { font-family: var(--sans); font-size: 12.5px; font-weight: 650; }
.dg-box-a { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.25; }
.dg-box-g { fill: var(--brand-wash); stroke: var(--brand); stroke-width: 1.25; }
.dg-arr-a { stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: 0.75; }
.dg-arr-g { stroke: var(--brand); stroke-width: 1.5; fill: none; opacity: 0.8; }

/* ---- calculator ---- */
.calc-body { display: flex; flex-direction: column; gap: var(--space-xs); }
.control { display: flex; flex-direction: column; gap: 0.3rem; }
.control-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.control label { font-size: var(--step--1); color: var(--soft); }
.control output { font-size: var(--step--1); font-weight: 680; font-variant-numeric: tabular-nums; color: var(--ink); }
input[type="range"] { width: 100%; height: 1.5rem; margin: 0; }

.result {
  margin-top: var(--space-xs);
  background: var(--sunken);
  border-radius: max(6px, calc(var(--r) - var(--pad-card) / 2));
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.result-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-xs); }
.result-line { display: flex; flex-direction: column; gap: 0.15rem; font-size: var(--step--2); }
.result-line .muted { color: var(--faint); }
.figure { font-size: var(--step-0); font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; }
.fig-now { color: var(--accent); }
.fig-after { color: var(--brand); }
.bars { display: flex; flex-direction: column; gap: 0.6rem; }
.bar-row { display: flex; flex-direction: column; gap: 0.3rem; }
.bar-top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--2); color: var(--soft); }
.bar-track { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 200ms ease; }
.bar-now { background: var(--accent); }
.bar-after { background: var(--brand); }
.note { font-size: var(--step--2); color: var(--faint); line-height: var(--leading); }
.formula { font-family: var(--mono); font-size: var(--step--2); color: var(--faint); }

/* =========================================================================
   6. approach: a ruled sequence with no numbered circles
   ========================================================================= */

.flow {
  list-style: none;
  border-left: 1px solid var(--border);
  padding-left: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 58rem;
}
.flow-step { position: relative; display: flex; flex-direction: column; gap: var(--space-3xs); }
.flow-step::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--space-m) + 5px));
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--surface);
}
.flow-step h3 { font-size: var(--step-1); }
.flow-step p { color: var(--soft); font-size: var(--step--1); max-width: var(--measure); }
.flow-when {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* =========================================================================
   7. engagements
   ========================================================================= */

.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-s); }
.eng {
  background: var(--raised);
  border-radius: var(--r);
  box-shadow: var(--ring), var(--shadow);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.eng h3 { font-size: var(--step-1); }
.eng-def { font-size: var(--step--1); color: var(--soft); max-width: 34ch; }
.eng dl {
  margin: var(--space-2xs) 0 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0;
  font-size: var(--step--2);
  border-top: 1px solid var(--hair);
}
.eng dt {
  grid-column: 1;
  padding: 0.6rem var(--space-2xs) 0.6rem 0;
  color: var(--faint);
  font-weight: 600;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.eng dd {
  grid-column: 2;
  margin: 0;
  padding: 0.6rem 0;
  color: var(--soft);
  border-bottom: 1px solid var(--hair);
  text-align: right;
}
.eng-tag {
  align-self: flex-start;
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: var(--kern-caps);
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-wash);
  padding: 0.3em 0.75em;
  border-radius: 999px;
}
.posture {
  margin-top: var(--space-m);
  border-top: 1px solid var(--border);
  padding-top: var(--space-s);
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: var(--space-s) var(--space-l);
}
@media (max-width: 46.875rem) { .posture { grid-template-columns: minmax(0, 1fr); } }
.posture h3 { font-size: var(--step-0); }
.posture p { color: var(--soft); font-size: var(--step--1); max-width: var(--measure); }

/* =========================================================================
   8. about
   ========================================================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: var(--space-m) var(--space-l);
  align-items: start;
}
@media (max-width: 46.875rem) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.avatar {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  background: var(--brand-wash);
  box-shadow: inset 0 0 0 1px var(--border);
  outline: 1px solid var(--hair);
  outline-offset: 7px;
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
  flex-shrink: 0;
}
.about-body { display: flex; flex-direction: column; gap: var(--space-xs); }
.about-body p { color: var(--soft); max-width: var(--measure); font-size: var(--step--1); }

/* =========================================================================
   9. faq: asymmetric: heading column left, ruled list right
   ========================================================================= */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: var(--space-m) var(--space-l);
  align-items: start;
}
.faq-grid .sec-head h2 { font-size: var(--step-2); }
@media (max-width: 52rem) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--hair); }
summary {
  cursor: pointer;
  padding: var(--space-xs) 0;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.012em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  align-items: baseline;
  text-wrap: balance;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 500; font-size: 1.2em; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 var(--space-xs); color: var(--soft); font-size: var(--step--1); max-width: var(--measure); }

/* =========================================================================
   10. final cta
   ========================================================================= */

.cta-inner { display: flex; flex-direction: column; gap: var(--space-3xs); align-items: flex-start; }
.cta-inner h2 { font-size: var(--step-4); max-width: 16ch; margin-top: var(--space-3xs); }
.cta-inner .sub { margin-top: var(--space-xs); }
.cta-inner .actions { margin-top: var(--space-s); }
.mail-line { display: flex; flex-direction: column; gap: var(--space-3xs); margin-top: var(--space-2xs); }
.mail {
  font-size: var(--step-1);
  font-weight: 640;
  color: var(--brand);
  text-decoration: none;
  word-break: break-word;
  letter-spacing: -0.025em;
}
.mail:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* =========================================================================
   11. footer
   ========================================================================= */

.foot { border-top: 1px solid var(--hair); padding-block: var(--space-l) var(--space-m); }
/* NB: an auto-fit repeat() cannot be mixed with fr tracks, so these are explicit */
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-m) var(--space-s);
}
@media (max-width: 58rem) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot h2, .foot h3 { font-size: var(--step--2); font-weight: 650; letter-spacing: var(--kern-caps); text-transform: uppercase; color: var(--faint); margin-bottom: var(--space-2xs); }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot a { font-size: var(--step--1); color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-mark { font-size: var(--step--1); font-weight: 680; letter-spacing: -0.03em; color: var(--ink); }
.foot-mark span { color: var(--brand); }
.foot-note { font-size: var(--step--2); color: var(--faint); max-width: 34ch; margin-top: var(--space-2xs); line-height: var(--leading); }
.foot-base {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
  justify-content: space-between;
  font-size: var(--step--2);
  color: var(--faint);
}

/* =========================================================================
   404
   ========================================================================= */

.nf { padding-block: var(--space-3xl); }
.nf-inner { display: flex; flex-direction: column; gap: var(--space-3xs); align-items: flex-start; }
.nf-code {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: var(--kern-caps);
  color: var(--faint);
}
.nf-inner h1 { font-size: var(--step-4); max-width: 14ch; margin-top: var(--space-3xs); }
.nf-inner .lede { max-width: 42ch; margin-top: var(--space-xs); }
.nf-inner .actions { margin-top: var(--space-s); }

/* =========================================================================
   motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
