/* ==========================================================================
   PurpleTeamAI — design system
   Phase 2: convergence identity, Bricolage + Newsreader + IBM Plex Mono,
   purple/red/blue topic colour coding, full light + dark themes with
   manual override.

   The name is the design. "Purple team" is red + blue working together;
   red plus blue converging into purple drives the hero, the logo mark,
   and the topic colour coding throughout the system.

   Sections:
     1.  Reset
     2.  Tokens (light + dark + manual override)
     3.  Type ramp
     4.  Layout primitives
     5.  Header + nav + theme toggle
     6.  Hero (homepage)
     7.  Featured card (split layout)
     8.  Archive (3-col grid with hover lift)
     9.  Essay page
    10.  About + Topic pages
    11.  Tag chips (red / blue / purple / neutral)
    12.  Footer
    13.  Convergence figure animation (reduced-motion safe)
    14.  Focus + a11y polish
   ========================================================================== */

/* ------------------------------------------------------------------ 1. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------- 2. Tokens: light default */
:root {
  --paper:        #F5F4F8;
  --surface:      #FFFFFF;
  --ink:          #17131F;
  --ink-soft:     #4B4457;
  --ink-faint:    #8A8298;
  --line:         #E4E0EB;
  --line-soft:    #EEEBF2;
  --accent:       #6C2BD9;
  --accent-ink:   #4C1D95;
  --accent-wash:  #EFE9FB;
  --red:          #B3282E;
  --red-wash:     #FAEAEA;
  --blue:         #1E5AA8;
  --blue-wash:    #E9F0FA;

  /* Typography stacks */
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body:    "Newsreader", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --content-max:  1120px;
  --gutter:       32px;
  --radius-card:  18px;
  --radius-chip:  6px;
  --header-h:     62px;

  /* Type scale */
  --eyebrow-size: 0.72rem;
  --body-size:    1.0625rem;     /* 17px */
  --lede-size:    1.18rem;
  --title-card:   1.24rem;
  --title-feat:   clamp(1.6rem, 3vw, 2.35rem);
  --title-hero:   clamp(2.7rem, 6vw, 4.35rem);
  --title-page:   clamp(2rem, 4vw, 3.2rem);

  /* Body: explicit background from --paper so we can theme the surface cleanly. */
  background: var(--paper);
  color: var(--ink);
}

/* Dark mode: respects OS preference, but loses to a manual data-theme choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #120F19;
    --surface:      #1B1726;
    --ink:          #F2EFF7;
    --ink-soft:     #B6ADC6;
    --ink-faint:    #7C7590;
    --line:         #2B2639;
    --line-soft:    #232032;
    --accent:       #A98BF2;
    --accent-ink:   #C4AEFB;
    --accent-wash:  #241A3D;
    --red:          #E67B80;
    --red-wash:     #301A1E;
    --blue:         #6FA6E0;
    --blue-wash:    #15233A;
  }
}
/* Manual dark override wins both ways. */
:root[data-theme="dark"] {
  --paper:        #120F19;
  --surface:      #1B1726;
  --ink:          #F2EFF7;
  --ink-soft:     #B6ADC6;
  --ink-faint:    #7C7590;
  --line:         #2B2639;
  --line-soft:    #232032;
  --accent:       #A98BF2;
  --accent-ink:   #C4AEFB;
  --accent-wash:  #241A3D;
  --red:          #E67B80;
  --red-wash:     #301A1E;
  --blue:         #6FA6E0;
  --blue-wash:    #15233A;
}

/* --------------------------------------------------------- 3. Type ramp */
html { font-family: var(--font-body); font-size: var(--body-size); line-height: 1.6; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--title-page); font-weight: 800; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.eyebrow, .mono, .archive__date, .featured-card__meta, .post__eyebrow, .section-eyebrow, .tag-grid__count, .site-nav, .post__sep + *, .post__tags, time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--eyebrow-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow { color: var(--ink-soft); }
.lede { font-family: var(--font-body); font-size: var(--lede-size); line-height: 1.55; color: var(--ink-soft); max-width: 33ch; }
.excerpt { font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

/* Links: purple is the system. */
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }

/* ----------------------------------------------------- 4. Layout primitives */
.shell { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.shell--narrow { max-width: 760px; }
.shell--wide { max-width: var(--content-max); }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.skip-link { position: absolute; left: -9999px; top: 0; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; }

/* ------------------------------------------------- 5. Header + nav + theme */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.site-header__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.site-header__mark { width: 32px; height: 32px; flex: 0 0 32px; }
.site-header__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.site-header__wordmark em { color: var(--accent); font-style: normal; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent);
}

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ----------------------------------------------------------- 6. Hero (home) */
.hero { padding: 80px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; gap: 24px; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero__eyebrow::after {
  content: ""; display: inline-block; width: 36px; height: 1px; background: var(--accent);
}

.hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--title-hero);
  line-height: 0.98; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 24px;
  text-wrap: balance;
}
.hero__title em { font-family: var(--font-body); font-style: italic; font-weight: 500; color: var(--accent); }

.hero__lede { font-family: var(--font-body); font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); max-width: 38ch; }

.hero__byline {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.hero__byline::before {
  content: ""; display: inline-block; width: 32px; height: 1px; background: var(--line);
}

.hero__figure {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 8px 0 0;
}
.hero__figure svg { width: 100%; height: auto; max-width: 460px; }
.hero__figure-caption {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------------------------------------------- 7. Featured card (split) */
.featured {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -16px color-mix(in srgb, var(--ink) 12%, transparent);
  overflow: hidden;
  margin-top: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.featured:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line-soft), 0 16px 32px -18px color-mix(in srgb, var(--accent) 24%, transparent); border-color: var(--accent); }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } }

.featured__main { padding: 36px 36px 32px; }
.featured__eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.featured__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.featured__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }
.featured__title { font-family: var(--font-display); font-weight: 700; font-size: var(--title-feat); line-height: 1.1; letter-spacing: -0.022em; margin-bottom: 16px; }
.featured__title a { color: var(--ink); }
.featured__title a:hover { color: var(--accent-ink); }
.featured__excerpt { font-family: var(--font-body); font-size: 1.04rem; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin-bottom: 22px; }
.featured__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }

.featured__cta {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px;
}
.featured__cta::after { content: "→"; transition: transform .15s ease; display: inline-block; }
.featured__cta:hover::after { transform: translateX(4px); }

.featured__aside {
  background: var(--accent-wash);
  border-left: 1px solid var(--line);
  padding: 36px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 820px) { .featured__aside { border-left: 0; border-top: 1px solid var(--line); } }
.featured__aside-label { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.featured__aside-body { font-family: var(--font-body); font-size: 1.08rem; line-height: 1.55; font-style: italic; color: var(--ink); }

/* ----------------------------------------- 8. Archive (3-col with hover) */
.archive__head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 720px) { .archive__head { grid-template-columns: 1fr; } }

.archive__head-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.archive__head-title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.archive__legend { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.archive__legend-swatch { display: inline-flex; align-items: center; gap: 6px; }
.archive__legend-swatch::before { content: ""; width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.archive__legend-swatch--red::before { background: var(--red); }
.archive__legend-swatch--blue::before { background: var(--blue); }
.archive__legend-swatch--purple::before { background: var(--accent); }

.archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 960px) { .archive__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive__grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: var(--accent);
}
.card:hover .card__title a { color: var(--accent-ink); }

.card__date { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--title-card); line-height: 1.18; letter-spacing: -0.015em; }
.card__title a { color: var(--ink); transition: color .15s ease; }
.card__excerpt { font-family: var(--font-body); font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ----------------------------------------------------- 9. Essay (post) page */
.post { padding: 56px 0 32px; }
.post__header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.post__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.post__eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }
.post__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); margin-top: 4px; }
.post__dek { font-family: var(--font-body); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.post__byline { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.post__byline a { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.post__byline a:hover { color: var(--accent-ink); border-color: var(--accent); }
.post__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.post__body { max-width: 660px; font-family: var(--font-body); font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.018em; color: var(--ink); margin-top: 1.6em; }
.post__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); margin-top: 1.4em; }
.post__body p { font-size: 1.12rem; }
.post__body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post__body a:hover { color: var(--accent); }
.post__body blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink-soft); font-style: italic; }
.post__body ul, .post__body ol { padding-left: 1.2em; }
.post__body ul li, .post__body ol li { margin: 0.3em 0; }
.post__body strong { color: var(--ink); }
.post__body code { font-family: var(--font-mono); font-size: 0.92em; background: var(--accent-wash); padding: 0.06em 0.4em; border-radius: 4px; color: var(--accent-ink); }
.post__body pre { background: var(--accent-wash); border: 1px solid var(--line); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 0.9rem; line-height: 1.55; }
.post__body pre code { background: none; padding: 0; color: var(--ink); }

.author-bio {
  margin-top: 56px; padding: 28px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface);
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  max-width: 760px;
}
.author-bio__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.author-bio__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.author-bio__copy { font-family: var(--font-body); color: var(--ink-soft); font-size: 1rem; margin: 6px 0 8px; }
.author-bio a { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-right: 12px; }

.post__nav {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 760px;
}
@media (max-width: 600px) { .post__nav { grid-template-columns: 1fr; } }
.post__nav-link { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.post__nav-link--next { text-align: right; }
.post__nav-label { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.post__nav-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--ink); }

/* -------------------------------------------- 10. About + Topic pages */
.page { padding: 56px 0; }
.page__header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.page__eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.page__title { font-family: var(--font-display); font-weight: 800; font-size: var(--title-page); letter-spacing: -0.022em; color: var(--ink); }
.page__lede { font-family: var(--font-body); font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

.page__back-link { margin-top: 32px; font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.page__back-link a { color: var(--accent-ink); }

.prose { font-family: var(--font-body); font-size: 1.12rem; line-height: 1.7; color: var(--ink); max-width: 660px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.018em; color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); }

.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tag-grid { grid-template-columns: 1fr; } }
.tag-grid__item a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.tag-grid__item a:hover { transform: translateY(-2px); border-color: var(--accent); background: color-mix(in srgb, var(--accent-wash) 60%, var(--surface)); }
.tag-grid__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tag-grid__count { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* --------------------------------------------------- 11. Tag chips (colour) */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-chip);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--ink); }
.chip--red    { color: var(--red);    background: var(--red-wash);    border-color: color-mix(in srgb, var(--red) 22%, transparent); }
.chip--blue   { color: var(--blue);   background: var(--blue-wash);   border-color: color-mix(in srgb, var(--blue) 22%, transparent); }
.chip--purple { color: var(--accent-ink); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.chip--neutral { color: var(--ink-soft); background: var(--surface); border-color: var(--line); }
.chip--red:hover, .chip--blue:hover, .chip--purple:hover { filter: saturate(1.1); }

/* ------------------------------------------------------------ 12. Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line-soft); margin-top: 56px; padding: 36px 0; }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
@media (max-width: 720px) { .site-footer__inner { flex-direction: column; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 4px; max-width: 460px; }
.site-footer__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.site-footer__tagline { font-family: var(--font-body); font-size: 0.98rem; color: var(--ink-soft); }
.site-footer__tagline em { color: var(--accent-ink); font-style: normal; font-weight: 500; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.site-footer__links a {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer__links a:hover { color: var(--ink); }

/* ----------------------------- 13. Convergence figure animation */
.convergence path,
.convergence circle {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.convergence--armed .stroke-red    { animation: draw 1.1s 0.05s ease-out forwards; }
.convergence--armed .stroke-blue   { animation: draw 1.1s 0.25s ease-out forwards; }
.convergence--armed .stroke-purple { animation: draw 0.9s 0.85s ease-out forwards; }
.convergence--armed .node          { animation: pop 0.6s 1.45s cubic-bezier(.2,1.2,.4,1) forwards; opacity: 0; transform-origin: 236px 150px; }
.convergence--armed .ring         { animation: fade 0.5s 1.7s ease-out forwards; opacity: 0; }
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes pop   { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes fade  { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .convergence path, .convergence circle { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .convergence--armed .node, .convergence--armed .ring { opacity: 1; animation: none; }
}

/* ---------------------------------------- 14. Focus + a11y polish */
::selection { background: var(--accent-wash); color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
