/* Alex Dastmalchi personal brand: design tokens v2.0 (November 2026)
   Source of truth for dastmalchi.com. Do not edit values without
   updating the brand guidelines. Accent: Terracotta #C9663F. */

:root {
  /* ---------- Primitive colors ---------- */
  --color-paper: #FFFFFF;
  --color-cream: #FFF8F2;
  --color-bone-100: #EDE8DF;
  --color-bone-200: #E4DED3;
  --color-sand-300: #D6CFC2;
  --color-stone-400: #A9A49B;
  --color-stone-500: #7E7970;
  --color-stone-600: #5F5B54;
  --color-gunmetal-700: #4E5359;
  --color-slate-800: #34373C;
  --color-slate-900: #2A2D31;
  --color-slate-950: #1F2124;
  --color-terracotta-50: #FBF1EB;
  --color-terracotta-100: #F6E0D4;
  --color-terracotta-200: #EDC3AD;
  --color-terracotta-300: #E3A286;
  --color-terracotta-400: #D97B55;
  --color-terracotta-500: #C9663F;
  --color-terracotta-600: #B3562F;
  --color-terracotta-700: #9A4826;
  --color-terracotta-800: #7A381E;
  --color-terracotta-900: #55250F;
  --color-pine-100: #DCE9E4;
  --color-pine-400: #5DB89A;
  --color-pine-600: #2F6F5E;
  --color-pine-700: #24574A;
  --color-harbor-100: #DDE8EF;
  --color-harbor-400: #7FB0D1;
  --color-harbor-600: #3F6C8C;
  --color-ochre-100: #F3E6C8;
  --color-ochre-400: #D9A441;
  --color-ochre-600: #A8741C;
  --color-crimson-100: #F6DDE0;
  --color-crimson-400: #F08A98;
  --color-crimson-600: #A8263A;

  /* ---------- Semantic colors: light (default) ---------- */
  --bg: var(--color-bone-100);
  --bg-alt: var(--color-bone-200);
  --bg-inverse: var(--color-slate-900);
  --surface: var(--color-paper);
  --surface-raised: var(--color-paper);
  --text: var(--color-slate-900);
  --text-muted: var(--color-gunmetal-700);
  --text-label: var(--color-stone-600);
  --text-inverse: var(--color-bone-100);
  --border: var(--color-sand-300);
  --border-input: var(--color-stone-500);
  --border-strong: var(--color-slate-900);
  --accent: var(--color-terracotta-500);          /* graphics, the period, large type only */
  --accent-text: var(--color-terracotta-700);     /* small text, labels, link hover */
  --accent-fill: var(--color-terracotta-600);     /* filled buttons */
  --on-accent-fill: var(--color-cream);
  --accent-tint: var(--color-terracotta-100);
  --accent-tint-border: var(--color-terracotta-200);
  --link: var(--color-slate-900);
  --link-underline: var(--color-terracotta-500);
  --link-hover: var(--color-terracotta-700);
  --link-visited: var(--color-gunmetal-700);
  --focus-ring: var(--color-terracotta-500);
  --success: var(--color-pine-600);
  --success-bg: var(--color-pine-100);
  --info: var(--color-harbor-600);
  --info-bg: var(--color-harbor-100);
  --warning: var(--color-ochre-600);
  --warning-bg: var(--color-ochre-100);
  --error: var(--color-crimson-600);
  --error-bg: var(--color-crimson-100);

  /* ---------- Data visualization ---------- */
  --viz-1: var(--color-terracotta-500);   /* focus series */
  --viz-2: var(--color-slate-900);
  --viz-3: var(--color-pine-600);
  --viz-4: var(--color-harbor-600);
  --viz-5: var(--color-stone-500);        /* everything else */
  --viz-grid: var(--color-sand-300);
  --viz-axis: var(--color-stone-500);

  /* ---------- Typography ---------- */
  --font-sans: "Bricolage Grotesque", "Bricolage Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: clamp(3.5rem, 2.2rem + 5.5vw, 6rem);
  --leading-display: 0.917;
  --weight-display: 800;
  --tracking-display: -0.05em;
  --text-h1: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  --leading-h1: 1.071;
  --weight-h1: 800;
  --tracking-h1: -0.04em;
  --text-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --leading-h2: 1.100;
  --weight-h2: 800;
  --tracking-h2: -0.035em;
  --text-h3: clamp(1.5rem, 1.4rem + 0.45vw, 1.75rem);
  --leading-h3: 1.214;
  --weight-h3: 600;
  --tracking-h3: -0.02em;
  --text-h4: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);
  --leading-h4: 1.273;
  --weight-h4: 600;
  --tracking-h4: -0.015em;
  --text-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --leading-lead: 1.455;
  --weight-lead: 400;
  --tracking-lead: -0.01em;
  --text-body-lg: clamp(1.125rem, 1.1rem + 0.1vw, 1.1875rem);
  --leading-body-lg: 1.632;
  --weight-body-lg: 400;
  --tracking-body-lg: 0;
  --text-body: clamp(1rem, 0.975rem + 0.1vw, 1.0625rem);
  --leading-body: 1.588;
  --weight-body: 400;
  --tracking-body: 0;
  --text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --leading-small: 1.533;
  --weight-small: 400;
  --tracking-small: 0;
  --text-caption: 0.8125rem;
  --leading-caption: 1.462;
  --weight-caption: 400;
  --tracking-caption: 0.005em;
  --text-label: 0.75rem;
  --leading-label: 1.333;
  --weight-label: 500;
  --tracking-label: 0.14em;
  --text-data: 0.875rem;
  --leading-data: 1.429;
  --weight-data: 400;
  --tracking-data: 0;
  --measure: 42.5rem;                     /* 680px article column */

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);
  --gutter: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --margin: clamp(1.25rem, 4vw, 2.5rem);
  --container: 82.5rem;                   /* 1320px */

  /* ---------- Radius ---------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(42, 45, 49, 0.08);
  --shadow-2: 0 10px 30px rgba(42, 45, 49, 0.12);
  --shadow-3: 0 24px 60px rgba(42, 45, 49, 0.22);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 160ms;
  --dur-3: 240ms;
  --dur-4: 400ms;

  /* ---------- Sizes ---------- */
  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 52px;
  --input-height: 48px;
  --header-height: 72px;
  --focus-width: 3px;
  --focus-offset: 2px;
  --icon-stroke: 1.75px;

  /* ---------- Breakpoints (reference; use in media queries) ----------
     sm 480px · md 768px · lg 1024px · xl 1280px · 2xl 1536px */
}

/* ---------- Semantic colors: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--color-slate-950);
    --bg-alt: var(--color-slate-900);
    --bg-inverse: var(--color-slate-900);
    --surface: var(--color-slate-900);
    --surface-raised: var(--color-slate-800);
    --text: var(--color-bone-100);
    --text-muted: var(--color-stone-400);
    --text-label: var(--color-stone-400);
    --border: var(--color-gunmetal-700);
    --border-input: var(--color-stone-400);
    --border-strong: var(--color-bone-100);
    --accent: var(--color-terracotta-400);
    --accent-text: var(--color-terracotta-400);
    --accent-fill: var(--color-terracotta-400);
    --on-accent-fill: var(--color-slate-900);
    --accent-tint: var(--color-slate-800);
    --accent-tint-border: var(--color-terracotta-700);
    --link: var(--color-bone-100);
    --link-underline: var(--color-terracotta-400);
    --link-hover: var(--color-terracotta-300);
    --link-visited: var(--color-stone-400);
    --focus-ring: var(--color-terracotta-400);
    --success: var(--color-pine-400);
    --success-bg: var(--color-slate-800);
    --info: var(--color-harbor-400);
    --info-bg: var(--color-slate-800);
    --warning: var(--color-ochre-400);
    --warning-bg: var(--color-slate-800);
    --error: var(--color-crimson-400);
    --error-bg: var(--color-slate-800);
    --viz-1: var(--color-terracotta-400);
    --viz-2: var(--color-bone-100);
    --viz-3: var(--color-pine-400);
    --viz-4: var(--color-harbor-400);
    --viz-5: var(--color-stone-400);
    --viz-grid: var(--color-gunmetal-700);
    --viz-axis: var(--color-stone-400);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-3: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}
/* Manual override: <html data-theme="dark"> repeats the dark block above. */

/* ---------- Base usage ---------- */
html { color-scheme: light dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
a { color: var(--link); text-decoration-color: var(--link-underline); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--link-hover); }
/* ===== Fonts (self hosted) ===== */
@font-face{font-family:"Bricolage Grotesque";src:url("/fonts/bricolage-grotesque-var.woff2") format("woff2");font-weight:200 800;font-stretch:100%;font-display:swap}
@font-face{font-family:"DM Mono";src:url("/fonts/dm-mono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DM Mono";src:url("/fonts/dm-mono-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Bricolage Fallback";src:local("Arial");size-adjust:98%;ascent-override:93%;descent-override:24%}

/* ===== Base ===== */
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:light dark;-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:var(--text-body);line-height:var(--leading-body);font-optical-sizing:auto;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
h1,h2,h3,h4{text-wrap:balance}
p,li{text-wrap:pretty}
a{color:var(--link);text-decoration-line:underline;text-decoration-color:var(--link-underline);text-decoration-thickness:2px;text-underline-offset:4px;transition:color var(--dur-1) var(--ease-out)}
a:hover{color:var(--link-hover)}
:focus-visible{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset);border-radius:4px}
button{font:inherit;cursor:pointer}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:0;top:-80px;background:var(--color-bone-100);color:var(--color-slate-900);font-weight:600;padding:12px 18px;border-radius:0 0 12px 0;z-index:100;text-decoration:none}
.skip:focus{top:0}
.wrap{max-width:calc(1200px + 2 * var(--margin));margin-inline:auto;padding-inline:var(--margin)}
.dot{color:var(--accent)}
.on-dark .dot,.site-header .dot,.site-footer .dot{color:var(--color-terracotta-400)}

/* ===== Type ===== */
.display{font-size:var(--text-display);line-height:.92;font-weight:800;letter-spacing:-.05em}
.h1{font-size:var(--text-h1);line-height:1.07;font-weight:800;letter-spacing:-.04em}
.h2{font-size:var(--text-h2);line-height:1.1;font-weight:800;letter-spacing:-.035em}
.h3{font-size:var(--text-h3);line-height:1.22;font-weight:600;letter-spacing:-.02em}
.h4{font-size:var(--text-h4);line-height:1.27;font-weight:800;letter-spacing:-.025em}
.lead{font-size:var(--text-lead);line-height:1.45;letter-spacing:-.01em;color:var(--text-muted)}
.small{font-size:var(--text-small);line-height:1.53}
.caption{font-size:var(--text-caption);line-height:1.46;color:var(--text-label)}
.muted{color:var(--text-muted)}
.label{font-family:var(--font-mono);font-size:.75rem;line-height:1.33;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-text)}
.label.neutral{color:var(--text-label)}
.data{font-family:var(--font-mono);font-size:.75rem;line-height:1.5;color:var(--text-label)}

/* ===== Sections ===== */
.section{padding-block:var(--section-y)}
.section.tight{padding-block:calc(var(--section-y) * .6)}
.alt{background:var(--bg-alt)}
.on-dark{background:var(--color-slate-900);color:var(--color-bone-100);--text:var(--color-bone-100);--text-muted:var(--color-sand-300);--text-label:var(--color-stone-400);--accent-text:var(--color-terracotta-400);--link:var(--color-bone-100);--link-underline:var(--color-terracotta-400);--link-hover:var(--color-terracotta-300);--focus-ring:var(--color-terracotta-400);--border:var(--color-gunmetal-700)}
.stack{display:flex;flex-direction:column;gap:var(--space-5)}
.stack.s{gap:var(--space-3)}.stack.l{gap:var(--space-7)}
.head{display:flex;flex-direction:column;gap:var(--space-3);margin-bottom:var(--space-7)}
.head.row{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:var(--space-4)}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:var(--gutter)}
.split{display:grid;grid-template-columns:1fr;gap:var(--space-6);align-items:center}
@media(min-width:900px){.split{grid-template-columns:1.25fr 1fr;gap:var(--space-8)}.split.rev{grid-template-columns:360px 1fr}}

/* ===== Header ===== */
.site-header{background:var(--color-slate-900);color:var(--color-bone-100);border-bottom:1px solid var(--color-slate-800);position:sticky;top:0;z-index:50}
.site-header .wrap{height:60px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-5)}
.wordmark{font-weight:800;font-size:1.1875rem;letter-spacing:-.04em;line-height:1;color:inherit;text-decoration:none;white-space:nowrap}
.wordmark:hover{color:inherit}
.nav{display:none;gap:var(--space-6);align-items:center}
.nav a:not(.btn){color:var(--color-bone-100);text-decoration:none;font-size:.9375rem;font-weight:500;padding:12px 0;text-underline-offset:8px;text-decoration-color:var(--color-terracotta-400);text-decoration-thickness:2px}
.nav a:not(.btn):hover,.nav a[aria-current=page]{text-decoration-line:underline}
.menu-btn{width:44px;height:44px;margin-right:-10px;border:0;background:transparent;color:var(--color-bone-100);display:flex;align-items:center;justify-content:center}
.mobile-nav{display:none;flex-direction:column;padding:8px var(--margin) 24px;background:var(--color-slate-900)}
.mobile-nav.open{display:flex}
.mobile-nav a:not(.btn){color:var(--color-bone-100);text-decoration:none;font-weight:800;font-size:1.875rem;letter-spacing:-.035em;padding:12px 0;border-bottom:1px solid var(--color-slate-800)}
.mobile-nav .btn{margin-top:20px;justify-content:center}
@media(min-width:1024px){.site-header .wrap{height:72px}.wordmark{font-size:1.375rem}.nav{display:flex}.menu-btn,.mobile-nav,.mobile-nav.open{display:none}}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:12px 22px;border-radius:999px;border:1.5px solid var(--color-slate-900);background:var(--color-slate-900);color:var(--color-bone-100);font-weight:600;font-size:.9375rem;line-height:1;letter-spacing:-.005em;text-decoration:none;white-space:nowrap;transition:background-color var(--dur-1) var(--ease-out),color var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out)}
.btn:hover{background:var(--color-slate-800);border-color:var(--color-slate-800);color:var(--color-bone-100)}
.btn.lg{min-height:52px;padding:16px 28px;font-size:1.0625rem}
.btn.sm{min-height:36px;padding:8px 16px;font-size:.875rem}
.btn.accent{background:var(--color-terracotta-600);border-color:var(--color-terracotta-600);color:var(--color-cream)}
.btn.accent:hover{background:var(--color-terracotta-700);border-color:var(--color-terracotta-700);color:var(--color-cream)}
.btn.secondary{background:transparent;color:var(--text);border-color:currentColor}
.btn.secondary:hover{background:var(--color-slate-900);border-color:var(--color-slate-900);color:var(--color-bone-100)}
.btn.light{background:var(--color-bone-100);border-color:var(--color-bone-100);color:var(--color-slate-900)}
.btn.light:hover{background:var(--color-paper);border-color:var(--color-paper);color:var(--color-slate-900)}
.on-dark .btn.accent,.btn.ondark{background:var(--color-terracotta-400);border-color:var(--color-terracotta-400);color:var(--color-slate-900)}
.on-dark .btn.accent:hover,.btn.ondark:hover{background:var(--color-terracotta-300);border-color:var(--color-terracotta-300);color:var(--color-slate-900)}
.on-dark .btn.secondary{color:var(--color-bone-100)}
.on-dark .btn.secondary:hover{background:var(--color-bone-100);border-color:var(--color-bone-100);color:var(--color-slate-900)}
.btns{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:560px){.btns .btn{flex:1 1 100%;justify-content:center}}

/* ===== Hero ===== */
.hero{padding-block:clamp(2.5rem,1.5rem + 5vw,5.5rem) clamp(3rem,2rem + 5vw,6rem)}
.hero-text{display:flex;flex-direction:column;gap:clamp(1.25rem,1rem + 1vw,1.75rem)}
.hero .lead{max-width:38rem}
.portrait{border-radius:var(--radius-xl);overflow:hidden;aspect-ratio:4/5;background:var(--color-slate-800)}
.portrait img{width:100%;height:100%;object-fit:cover}
.portrait-sm{width:220px;max-width:100%;justify-self:start;box-shadow:12px 12px 0 var(--accent-tint)}
@media(min-width:900px){.portrait-sm{width:280px;justify-self:end;margin-top:var(--space-6)}}
.pulse{width:160px;height:auto}

/* ===== Cards ===== */
.card{background:var(--surface);border-radius:var(--radius-lg);padding:20px;display:flex;flex-direction:column;gap:14px;position:relative;transition:transform var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease-out)}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.card:focus-within{outline:var(--focus-width) solid var(--focus-ring);outline-offset:var(--focus-offset)}
.card .card-link{color:inherit;text-decoration:none}
.card .card-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.card .card-link:focus-visible{outline:none}
.card:hover .card-link{color:var(--link-hover)}
.card-body{display:flex;flex-direction:column;gap:8px;padding:0 4px 4px}
.topic-card{padding:28px;border-radius:20px;gap:14px}
.topic-card .go{font-weight:600;font-size:.9375rem;text-decoration:underline;text-decoration-color:var(--link-underline);text-decoration-thickness:2px;text-underline-offset:4px}
.cover{aspect-ratio:1200/630;border-radius:var(--radius-md);padding:6%;display:flex;flex-direction:column;justify-content:space-between;background:var(--color-slate-900);color:var(--color-bone-100);font-weight:800;font-size:clamp(1.125rem,1rem + .5vw,1.375rem);letter-spacing:-.035em;line-height:1.05;overflow:hidden}
.cover.opinion{background:var(--color-terracotta-500);color:var(--color-cream);font-size:clamp(1.5rem,1.3rem + .8vw,1.875rem);justify-content:flex-end}
.cover.explainer{background:var(--color-bone-200);color:var(--color-slate-900);flex-direction:row;gap:5%;align-items:stretch}
.cover.explainer span{flex:1.6;align-self:flex-end}
.cover.explainer i{flex:1;background:var(--color-paper);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--color-slate-900)}
.cover .pulse{width:100px}
.rows{border-bottom:1px solid var(--border)}
.row-link{display:grid;grid-template-columns:1fr;gap:6px;padding:18px 0;border-top:1px solid var(--border);text-decoration:none;color:var(--text)}
.row-link:hover .h4{color:var(--link-hover)}
@media(min-width:800px){.row-link{grid-template-columns:150px minmax(0,1fr) auto;gap:24px;align-items:baseline}}
.group{display:grid;grid-template-columns:1fr;gap:var(--space-4);margin-bottom:var(--space-7)}
@media(min-width:900px){.group{grid-template-columns:260px minmax(0,1fr);gap:var(--space-7)}}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{background:var(--surface);border:1px solid var(--border-input);border-radius:999px;padding:10px 18px;text-decoration:none;color:var(--text);font-size:.9375rem;font-weight:500}
.tag{display:inline-flex;font-family:var(--font-mono);font-size:.6875rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;background:var(--bg-alt);color:var(--text);border-radius:999px;padding:4px 12px}

/* ===== Article ===== */
.article-head{padding-block:clamp(1.75rem,1rem + 4vw,4rem) clamp(1.5rem,1rem + 2vw,2.5rem)}
.article-head .wrap{max-width:calc(880px + 2 * var(--margin));display:flex;flex-direction:column;gap:clamp(1rem,.8rem + .6vw,1.375rem)}
.crumbs{display:flex;flex-wrap:wrap;gap:10px;font-family:var(--font-mono);font-size:.75rem;color:var(--text-label);list-style:none;padding:0}
.crumbs a{color:inherit;text-decoration:none}.crumbs a:hover{text-decoration:underline}
.crumbs li+li::before{content:"/";margin-right:10px}
.byline{display:flex;gap:14px;align-items:center}
.byline img{width:48px;height:48px;border-radius:999px;object-fit:cover;flex-shrink:0}
.article-main{padding-bottom:var(--section-y)}
.article-grid{max-width:calc(1000px + 2 * var(--margin));margin-inline:auto;padding-inline:var(--margin);display:flex;flex-direction:column;gap:20px}
@media(min-width:1024px){.article-grid{display:grid;grid-template-columns:220px minmax(0,680px);gap:100px;align-items:start}}
.toc{background:var(--surface);border-radius:14px;padding:14px 18px}
.toc summary{font-weight:600;font-size:.9375rem;cursor:pointer;min-height:24px}
.toc ol{list-style:none;padding:12px 0 0;display:flex;flex-direction:column;gap:10px}
.toc a{font-size:.9375rem;color:var(--text-muted);text-decoration:none}
.toc a:hover{color:var(--text);text-decoration:underline}
@media(min-width:1024px){.toc{background:transparent;padding:0;position:sticky;top:96px}.toc summary{list-style:none;pointer-events:none;font-family:var(--font-mono);font-size:.75rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--text-label)}.toc summary::-webkit-details-marker{display:none}}
.prose{display:flex;flex-direction:column;gap:20px;min-width:0}
.prose>p,.prose>ul,.prose>ol{font-size:var(--text-body-lg);line-height:1.63}
.prose>ul,.prose>ol{padding-left:1.4em;display:flex;flex-direction:column;gap:6px}
.prose h2{font-size:var(--text-h2);line-height:1.1;font-weight:800;letter-spacing:-.035em;margin-top:clamp(.75rem,.5rem + 1vw,1.25rem)}
.prose h3{font-size:var(--text-h3);line-height:1.22;font-weight:600;letter-spacing:-.02em}
.callout{border-radius:var(--radius-lg);padding:clamp(18px,1rem + 1vw,24px);display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);background:var(--surface)}
.callout.answer{background:var(--accent-tint);border-color:var(--accent-tint-border)}
.callout.answer p{font-weight:500}
.callout.info{background:var(--info-bg);border-color:var(--info)}
.callout.info .label{color:var(--info)}
.callout.own{background:var(--bg-alt);border-color:var(--bg-alt)}
.callout ul{padding-left:1.25em;display:flex;flex-direction:column;gap:8px}
blockquote.pull{padding-left:clamp(20px,1rem + 1vw,28px);border-left:3px solid var(--accent);font-size:var(--text-h3);line-height:1.25;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md)}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:.9375rem;line-height:1.5}
th{text-align:left;padding:12px 16px;font-family:var(--font-mono);font-size:.6875rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--text-label);border-bottom:2px solid var(--border-strong)}
td{padding:12px 16px;border-bottom:1px solid var(--border);vertical-align:top}
tr:last-child td{border-bottom:0}
td.code{font-family:var(--font-mono);font-size:.875rem;white-space:nowrap}
.faq{border-bottom:1px solid var(--border)}
.faq details{border-top:1px solid var(--border)}
.faq summary{list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:clamp(16px,.8rem + .5vw,20px) 0;font-size:var(--text-h4);line-height:1.27;font-weight:600;letter-spacing:-.015em;cursor:pointer;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:var(--font-mono);font-size:1.375rem;font-weight:400;color:var(--accent-text)}
.faq details[open] summary::after{content:"\2212"}
.faq details p{padding:0 0 20px;color:var(--text-muted);max-width:680px}
.sources{padding-left:1.4em;display:flex;flex-direction:column;gap:8px;font-size:.9375rem;color:var(--text-muted)}
.author{background:var(--surface);border-radius:20px;padding:clamp(20px,1rem + 1vw,28px);display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.author img{width:96px;height:96px;border-radius:999px;object-fit:cover}
.author>div{flex:1 1 260px;display:flex;flex-direction:column;gap:8px}
.facts{border-bottom:1px solid var(--border)}
.facts div{display:grid;grid-template-columns:1fr;gap:2px;padding:14px 0;border-top:1px solid var(--border)}
@media(min-width:700px){.facts div{grid-template-columns:200px minmax(0,1fr);gap:24px}}
.measure{max-width:680px;margin-inline:auto}

/* ===== Newsletter + forms ===== */
.newsletter .wrap{display:grid;grid-template-columns:1fr;gap:var(--space-5);align-items:center}
@media(min-width:900px){.newsletter .wrap{grid-template-columns:1fr 1fr;gap:var(--space-8)}}
.newsletter.light{background:var(--accent-tint)}
.nl-form{display:flex;flex-direction:column;gap:12px}
@media(min-width:560px){.nl-form{flex-direction:row;align-items:flex-end}.nl-form .field{flex:1}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:.9375rem;font-weight:600}
.field .opt{font-weight:400;color:var(--text-label)}
input[type=text],input[type=email],select,textarea{font:inherit;font-size:1.0625rem;width:100%;height:48px;padding:0 14px;border:1.5px solid var(--border-input);border-radius:var(--radius-md);background:var(--surface);color:var(--text)}
textarea{height:auto;min-height:140px;padding:12px 14px;line-height:1.55;resize:vertical}
input:hover,select:hover,textarea:hover,input:focus,select:focus,textarea:focus{border-color:var(--border-strong)}
.on-dark input[type=email]{background:var(--color-slate-950);border-color:var(--color-stone-400);color:var(--color-bone-100)}
input::placeholder{color:var(--text-label)}
.form{background:var(--surface);border-radius:var(--radius-xl);padding:clamp(20px,1rem + 2vw,36px);display:flex;flex-direction:column;gap:18px}
.form .two{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.form .two{grid-template-columns:1fr 1fr}}
.hp{position:absolute;left:-9999px}
.route{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-top:1px solid var(--border)}
.copy-row{display:flex;justify-content:space-between;align-items:center;gap:12px}

/* ===== Footer ===== */
.site-footer{background:var(--color-slate-900);color:var(--color-bone-100);padding-block:clamp(3rem,2rem + 3vw,4.5rem) clamp(2rem,1.5rem + 1vw,2.5rem);--focus-ring:var(--color-terracotta-400)}
.site-footer .wrap{display:flex;flex-direction:column;gap:clamp(2rem,1.5rem + 2vw,3rem)}
.foot-top{display:grid;grid-template-columns:1fr;gap:var(--space-6)}
@media(min-width:900px){.foot-top{grid-template-columns:360px 1fr;gap:var(--space-8)}}
.foot-mark{font-weight:800;font-size:2.25rem;letter-spacing:-.045em;line-height:.92}
.foot-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6)}
@media(min-width:640px){.foot-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}
.foot-cols h2{font-family:var(--font-mono);font-size:.75rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--color-stone-400);margin-bottom:10px}
.foot-cols ul{list-style:none;padding:0;display:flex;flex-direction:column}
.foot-cols a{color:var(--color-bone-100);text-decoration:none;font-size:.9375rem;display:block;padding:6px 0}
.foot-cols a:hover{text-decoration:underline;text-decoration-color:var(--color-terracotta-400)}
.fine{border-top:1px solid var(--color-gunmetal-700);padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:.8125rem;color:var(--color-stone-400)}
.fine a{color:var(--color-stone-400)}
.site-footer p{color:var(--color-stone-400)}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.card:hover{transform:none}}
@media print{.site-header,.site-footer,.newsletter,.toc{display:none}}

:root{--accent-fill-hover:var(--color-terracotta-700);--text-body-lg:clamp(1.125rem,1.1rem + .1vw,1.1875rem)}
.btn.accent{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent-fill)}
.btn.accent:hover{background:var(--accent-fill-hover);border-color:var(--accent-fill-hover);color:var(--on-accent-fill)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--accent-fill-hover:var(--color-terracotta-300)}
.btn:not(.accent):not(.secondary):not(.light):not(.ondark){background:var(--color-bone-100);border-color:var(--color-bone-100);color:var(--color-slate-900)}
.btn.secondary:hover{background:var(--color-bone-100);border-color:var(--color-bone-100);color:var(--color-slate-900)}
.alt .card,.alt .callout,.alt .chip{background:var(--surface-raised)}}

/* ===== Animated visuals (v3) ===== */
.viz{position:relative;width:100%}
.viz svg{display:block;width:100%;height:auto;overflow:visible}
.viz-tile{background:var(--color-slate-900);border-radius:var(--radius-xl);overflow:hidden}
.viz-tile svg{height:100%}
.hero-viz{max-width:560px;margin-inline:auto}
.hub-viz{max-width:520px;margin-inline:auto}
.viz-cap{margin:6px auto 0;max-width:30rem;min-height:6.4em;border-left:2px solid var(--color-terracotta-400);padding:2px 0 2px 16px}
.viz-cap .k{font-family:var(--font-mono);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--color-terracotta-400)}
.viz-cap p{font-size:var(--text-small);line-height:1.55;color:var(--color-sand-300);margin-top:4px}
.vz-spin,.vz-ring,.vz-breathe,.lp-comet,.ai-gate,.sp-wave{transform-box:view-box;transform-origin:var(--o)}
.vz-spin{animation:vz-spin 60s linear infinite}
.vz-spin.rev{animation-direction:reverse;animation-duration:40s}
.vz-ring{animation:vz-ring 3.2s ease-out infinite}
.vz-ring.b{animation-delay:1.6s}
.vz-flow{animation:vz-dash 1.4s linear infinite}
.vz-flow.rev{animation-direction:reverse}
.vz-breathe{animation:vz-breathe 6s ease-in-out infinite}
.vz-breathe.d1{animation-delay:-2s}.vz-breathe.d2{animation-delay:-4s}
@keyframes vz-spin{to{transform:rotate(360deg)}}
@keyframes vz-ring{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.9);opacity:0}}
@keyframes vz-dash{to{stroke-dashoffset:-24}}
@keyframes vz-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.hx-ecg{animation:hx-ecg 1.3s linear infinite}
@keyframes hx-ecg{to{transform:translateX(-64px)}}
.hx-node{cursor:pointer;transition:opacity .35s}
.hx-node:focus{outline:none}
.hx-node .ring{transition:stroke .3s,stroke-opacity .3s}
.hx-node .halo{transition:opacity .35s}
.hx-node.on .ring,.hx-node:focus-visible .ring{stroke:#D97B55;stroke-opacity:1}
.hx-node.on .halo{opacity:.35}
.hx.is-focus .hx-node:not(.on){opacity:.38}
.hx-spoke{stroke-opacity:.45;transition:stroke-opacity .35s,stroke-width .35s}
.hx-spoke.on{stroke-opacity:1;stroke-width:3}
.hx.is-focus .hx-spoke:not(.on){stroke-opacity:.12}
.lp-comet{animation:vz-spin 6s linear infinite}
.lp-step{fill:#34373C;stroke:rgba(237,232,223,.35);stroke-width:1.6;animation:lp-hit 6s linear infinite}
@keyframes lp-hit{0%{fill:#C9663F;stroke:#E3A286}22%,100%{fill:#34373C;stroke:rgba(237,232,223,.35)}}
.ai-n,.sp-live{animation:vz-blink 2s ease-in-out infinite}
@keyframes vz-blink{0%,100%{opacity:.45}50%{opacity:1}}
.ai-gate{animation:vz-ring 2.6s ease-out infinite}
.sp-wave{opacity:0;animation:sp-wave 3.3s ease-out infinite}
@keyframes sp-wave{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.6);opacity:0}}
.sp-bar{transform-box:fill-box;transform-origin:center;animation:sp-bar 1.2s ease-in-out infinite alternate}
@keyframes sp-bar{0%{transform:scaleY(.35)}100%{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){.vz-p{display:none}.vz-spin,.vz-ring,.vz-flow,.vz-breathe,.hx-ecg,.lp-comet,.lp-step,.ai-n,.ai-gate,.sp-wave,.sp-bar,.sp-live{animation:none!important}.vz-ring,.ai-gate,.sp-wave{opacity:0}}
.who{display:flex;gap:16px;align-items:center}
.who img{width:64px;height:64px;border-radius:999px;object-fit:cover;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--accent);flex-shrink:0}
.mono-av{width:48px;height:48px;border-radius:999px;background:var(--color-slate-900);color:var(--color-bone-100);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-weight:800;font-size:.95rem;letter-spacing:-.02em;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(237,232,223,.16)}
.mono-av i{font-style:normal;color:var(--color-terracotta-400)}
.mono-av.lg{width:96px;height:96px;font-size:1.75rem}
/* Pause control for moving visuals (WCAG 2.2.2) */
.viz,.portrait.eco{position:relative}
.vz-pause{position:absolute;top:10px;right:10px;z-index:2;width:36px;height:36px;border-radius:999px;border:1px solid rgba(237,232,223,.35);background:rgba(31,33,36,.72);color:#EDE8DF;display:grid;place-items:center;cursor:pointer;padding:0}
.vz-pause:hover{border-color:#D97B55;color:#E3A286}
.vz-pause:focus-visible{outline:3px solid #D97B55;outline-offset:2px}
.vz-pause svg{width:14px;height:14px}
.is-paused *,.is-paused *::before,.is-paused *::after{animation-play-state:paused!important}
.is-paused .vz-p{display:none}
