/* ==========================================================================
   Catalyst Group — Fleet Hub design system
   Framework-free. Drop in as /assets/styles/design-system.css and load it
   INSTEAD of main.css. Tokens mirror catalystgroup.tech (hadron.css) so the
   hub reads as the same company.
   Layers: 1 Tokens · 2 Reset/base · 3 Layout · 4 Typography · 5 Components
           6 Org chart · 7 Blog · 8 Utilities · 9 Motion/print
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand color ------------------------------------------------------- */
  --crimson:        #c62828;
  --crimson-deep:   #8e1d1d;
  --crimson-hover:  #b32323;
  --oxblood:        #5c1313;
  --gold:           #e6b325;
  --gold-deep:      #b8890c;
  --gold-light:     #f2cf55;

  /* Neutrals ---------------------------------------------------------- */
  --ink:            #23272e;
  --slate:          #565d69;
  --slate-soft:     #79808c;
  --paper:          #f7f5f2;
  --paper-2:        #efebe4;
  --paper-3:        #e6e0d6;
  --white:          #ffffff;

  /* Dark surfaces (hero maroon) --------------------------------------- */
  --hero-1:         #3c1116;
  --hero-2:         #641619;
  --hero-3:         #210c10;
  --hero-gradient:
    radial-gradient(ellipse 65% 55% at 82% 18%, rgb(230 179 37 / 0.14), transparent 55%),
    radial-gradient(ellipse 55% 60% at 8% 92%,  rgb(140 27 27 / 0.55),  transparent 55%),
    linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 42%, var(--hero-3) 100%);

  /* Semantic aliases (use these in components) ------------------------ */
  --bg:             var(--paper);
  --bg-raised:      var(--white);
  --bg-muted:       var(--paper-2);
  --fg:             var(--ink);
  --fg-muted:       var(--slate);
  --fg-subtle:      var(--slate-soft);
  --accent:         var(--crimson);
  --accent-strong:  var(--crimson-deep);
  --highlight:      var(--gold);
  --link:           var(--crimson-deep);
  --link-hover:     var(--crimson);

  /* Lines ------------------------------------------------------------- */
  --border:         rgb(35 39 46 / 0.12);
  --border-strong:  rgb(35 39 46 / 0.22);
  --border-on-dark: rgb(255 255 255 / 0.16);

  /* Elevation --------------------------------------------------------- */
  --shadow-sm:   0 1px 2px rgb(20 12 14 / 0.06);
  --shadow-md:   0 8px 28px rgb(20 12 14 / 0.10);
  --shadow-lg:   0 20px 50px rgb(20 12 14 / 0.18);
  --shadow-card: 0 1px 0 rgb(20 12 14 / 0.04), 0 12px 30px rgb(20 12 14 / 0.06);

  /* Spacing — 8px scale (name = multiples of 8px) --------------------- */
  --space-0-5:  0.25rem;  /*   4px */
  --space-1:    0.5rem;   /*   8px */
  --space-1-5:  0.75rem;  /*  12px */
  --space-2:    1rem;     /*  16px */
  --space-3:    1.5rem;   /*  24px */
  --space-4:    2rem;     /*  32px */
  --space-5:    2.5rem;   /*  40px */
  --space-6:    3rem;     /*  48px */
  --space-8:    4rem;     /*  64px */
  --space-10:   5rem;     /*  80px */
  --space-12:   6rem;     /*  96px */
  --space-16:   8rem;     /* 128px */
  /* Fluid rhythm */
  --space-section: clamp(var(--space-8), 7vw, var(--space-12));   /* between sections */
  --space-block:   clamp(var(--space-4), 4vw, var(--space-6));    /* section head → body */
  --space-gutter:  clamp(var(--space-2), 3.5vw, var(--space-4));  /* page side padding */

  /* Type — fluid modular scale (1.20 @375px → 1.25 @1280px, base 16→18px) */
  --step--2: clamp(0.694rem, 0.684rem + 0.045vw, 0.72rem);   /* 11 → 11.5px */
  --step--1: clamp(0.833rem, 0.806rem + 0.118vw, 0.9rem);    /* 13 → 14.4px */
  --step-0:  clamp(1rem,     0.948rem + 0.221vw, 1.125rem);  /* 16 → 18px   */
  --step-1:  clamp(1.2rem,   1.115rem + 0.365vw, 1.406rem);  /* 19 → 22.5px */
  --step-2:  clamp(1.44rem,  1.308rem + 0.562vw, 1.758rem);  /* 23 → 28px   */
  --step-3:  clamp(1.728rem, 1.534rem + 0.83vw,  2.197rem);  /* 28 → 35px   */
  --step-4:  clamp(2.074rem, 1.795rem + 1.19vw,  2.747rem);  /* 33 → 44px   */
  --step-5:  clamp(2.488rem, 2.096rem + 1.671vw, 3.433rem);  /* 40 → 55px   */
  --step-6:  clamp(2.5rem,   1.982rem + 2.21vw,  3.75rem);   /* 40 → 60px (hero) */

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans:    "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-body:   1.65;
  --tracking-tight: -0.02em;
  --tracking-caps:  0.12em;
  --measure:        65ch;
  --measure-wide:   75ch;

  /* Radius ------------------------------------------------------------ */
  --radius-sm:   0.25rem;
  --radius:      0.5rem;
  --radius-lg:   0.9rem;
  --radius-pill: 9999px;

  /* Motion ------------------------------------------------------------ */
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 320ms;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);   /* brand "out-quint" */
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --lift:     translateY(-3px);

  /* Layout ------------------------------------------------------------ */
  --shell:       72rem;
  --shell-wide:  84rem;
  --header-h:    4.5rem;
  --touch:       2.75rem;
  --z-header:    100;
  --z-nav:       110;
  --z-skip:      1000;

  /* Focus ------------------------------------------------------------- */
  --focus-ring:       0 0 0 3px rgb(198 40 40 / 0.35);
  --focus-ring-dark:  0 0 0 3px rgb(230 179 37 / 0.55);

  /* Tier colors (org chart + badges) ---------------------------------- */
  --tier-senior:      var(--crimson);
  --tier-senior-bg:   rgb(198 40 40 / 0.08);
  --tier-mid:         var(--gold-deep);
  --tier-mid-bg:      rgb(230 179 37 / 0.16);
  --tier-junior:      var(--slate);
  --tier-junior-bg:   rgb(86 93 105 / 0.10);

  color-scheme: light;
}
@media (max-width: 24.375rem) { :root { --header-h: 4rem; } }


/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); letter-spacing: -0.025em; }
h1 { font-size: var(--step-5); line-height: var(--leading-tight); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); }
p  { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

small, .text-small { font-size: var(--step--1); }

/* Links */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgb(142 29 29 / 0.4); transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

/* Focus — one ring for everything */
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }

/* Selection */
::selection { background: rgb(230 179 37 / 0.45); color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-4) 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container { width: min(100% - (var(--space-gutter) * 2), var(--shell)); margin-inline: auto; }
.container--wide { width: min(100% - (var(--space-gutter) * 2), var(--shell-wide)); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-block); }
.section--muted { background: var(--bg-muted); }
.section--white { background: var(--bg-raised); }
.section--dark  { background: var(--ink); color: var(--white); }
.section + .section:not([class*="--"]) { padding-top: 0; }   /* consecutive plain sections don't double-stack */

.section__head { max-width: 60ch; margin-bottom: var(--space-block); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); max-width: none; }
.section__head h2 { margin-bottom: var(--space-1); }
.section__head p  { color: var(--fg-muted); margin: 0; font-size: var(--step-0); }

/* Grids */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 64rem) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .section__head--row { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--crimson-deep);
}
.eyebrow::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.eyebrow--on-dark { color: var(--gold); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-muted); max-width: 48ch; text-wrap: pretty; }
.on-dark .lede { color: rgb(255 255 255 / 0.82); }

/* Long-form prose (post bodies, FAQ answers, lessons) */
.prose { max-width: var(--measure); font-size: var(--step-0); }
.prose > * + * { margin-top: var(--space-2); }
.prose > h2 { margin-top: var(--space-6); font-size: var(--step-2); }
.prose > h3 { margin-top: var(--space-4); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--space-1-5); }
.prose p { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-1); }
.prose li::marker { color: var(--crimson); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: var(--space-4) 0; padding: var(--space-1) 0 var(--space-1) var(--space-3); border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--fg-muted); }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }
.prose pre { background: var(--ink); color: var(--paper); padding: var(--space-3); border-radius: var(--radius); overflow-x: auto; font-size: var(--step--1); line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose figure { margin: var(--space-4) 0; }
.prose figcaption { margin-top: var(--space-1); font-size: var(--step--1); color: var(--fg-subtle); }
.prose hr { margin: var(--space-6) auto; width: 4rem; border-top: 2px solid var(--gold); }
.prose > p:first-of-type::first-letter { /* optional drop cap for essays */ }
.prose--drop > p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--crimson-deep); font-weight: 700; }

/* --------------------------------------------------------------------------
   5. COMPONENTS
   -------------------------------------------------------------------------- */

/* 5.1 Skip link ------------------------------------------------------- */
.skip-link {
  position: fixed; top: 0; left: var(--space-2); z-index: var(--z-skip);
  padding: var(--space-1-5) var(--space-3);
  background: var(--ink); color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transform: translateY(-140%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); color: var(--white); outline: 2px solid var(--gold); }

/* 5.2 Header + nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--hero-3);
  background-image: linear-gradient(90deg, var(--hero-1), var(--hero-3));
  color: var(--white);
  border-bottom: 1px solid var(--border-on-dark);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.2);
}
.site-header--light { background: var(--white); background-image: none; color: var(--ink); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.brand { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; }
.brand__logo { height: 2rem; width: auto; }              /* wordmark asset ~176×51 */
@media (max-width: 24.375rem) { .brand__logo { height: 1.7rem; } }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: var(--space-0-5); margin: 0; padding: 0; list-style: none; }
.nav-list__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: var(--touch);
  padding: var(--space-1) var(--space-1-5);
  color: rgb(255 255 255 / 0.78);
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius);
  transition: color var(--dur-fast) var(--ease);
}
.nav-list__link:hover { color: var(--white); }
.nav-list__link[aria-current="page"] { color: var(--white); }
.nav-list__link[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--space-1-5); right: var(--space-1-5); bottom: 0.55rem;
  height: 2px; background: var(--gold); border-radius: 1px;
}
.nav-list__link:focus-visible { outline-color: var(--gold); }
.site-header--light .nav-list__link { color: var(--slate); }
.site-header--light .nav-list__link:hover, .site-header--light .nav-list__link[aria-current="page"] { color: var(--ink); }
.nav-list__cta { margin-left: var(--space-1); }

/* Hamburger (hidden ≥ 56.25rem / 900px) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch);
  background: transparent; border: 1px solid var(--border-on-dark); border-radius: var(--radius);
  color: inherit;
}
.nav-toggle:focus-visible { outline-color: var(--gold); }
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px; transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 56.25rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-nav);
    display: block;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--hero-3);
    border-bottom: 1px solid var(--border-on-dark);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) var(--space-gutter) var(--space-4);
    /* closed state */
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s; }
  .site-header--light .site-nav { background: var(--white); border-bottom-color: var(--border); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list__link { min-height: 3.25rem; padding-inline: var(--space-2); font-size: var(--step-0); border-bottom: 1px solid var(--border-on-dark); border-radius: 0; }
  .site-header--light .nav-list__link { border-bottom-color: var(--border); }
  .nav-list li:last-child .nav-list__link { border-bottom: 0; }
  .nav-list__link[aria-current="page"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .nav-list__cta { margin: var(--space-2) 0 0; }
  /* No JS: keep the menu reachable */
  @media (scripting: none) { .nav-toggle { display: none; } .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; } }
}

/* 5.3 Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: var(--touch); padding: 0.7rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 600; line-height: 1; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--sm { padding: 0.45rem 1.05rem; font-size: var(--step--2); }
.btn--lg { min-height: 3.1rem; padding: 0.9rem 1.7rem; font-size: var(--step-0); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--crimson); border-color: var(--crimson-deep); color: var(--white); box-shadow: 0 1px 0 rgb(0 0 0 / 0.14); }
.btn--primary:hover { background: var(--crimson-hover); border-color: #7d1717; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: none; box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.2); }
.btn--primary:focus-visible { box-shadow: var(--focus-ring); }

.btn--gold { background: var(--gold); border-color: var(--gold-deep); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold:focus-visible { outline-color: var(--gold); box-shadow: var(--focus-ring-dark); }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.on-dark .btn--ghost { border-color: rgb(255 255 255 / 0.42); color: var(--white); }
.on-dark .btn--ghost:hover { border-color: rgb(255 255 255 / 0.85); color: var(--white); }
.on-dark .btn--ghost:focus-visible { outline-color: var(--gold); box-shadow: var(--focus-ring-dark); }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-1-5); }

/* Text link with arrow (cards, "read more") */
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; font-size: var(--step--1); color: var(--link); text-decoration: none; }
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* 5.4 Hero ------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white);
  background: var(--hero-gradient);
  padding-block: clamp(var(--space-8), 8vw, var(--space-12)) clamp(var(--space-8), 8vw, var(--space-12));
}
.hero::before { /* subtle grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%);
}
.hero::after { /* gold hairline at the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep) 60%, transparent);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(var(--space-4), 5vw, var(--space-8)); }
.hero__title { color: var(--white); font-size: var(--step-6); line-height: 1.06; letter-spacing: -0.025em; margin-bottom: var(--space-3); max-width: 18ch; }
.hero__accent { display: block; background: linear-gradient(92deg, var(--gold) 0%, var(--gold-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { max-width: 44ch; font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin-top: var(--space-4); }
.hero__mark { display: flex; justify-content: center; }
.hero__mark img { width: min(100%, 22rem); filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.35)); }

/* Compact page masthead — used on every interior page for consistency */
.hero--page { padding-block: clamp(var(--space-6), 6vw, var(--space-10)); }
.hero--page .hero__inner { grid-template-columns: 1fr; }
.hero--page .hero__title { font-size: var(--step-5); }

/* Facts strip under the hero (numbers) */
.facts { background: var(--ink); color: var(--white); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: rgb(255 255 255 / 0.08); }
.facts__item { background: var(--ink); padding: var(--space-3) var(--space-3); }
.facts__value { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--gold); margin-bottom: var(--space-1); }
.facts__label { font-size: var(--step--1); color: rgb(255 255 255 / 0.7); }
@media (max-width: 48rem) { .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 51.25rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
}

/* 5.5 Cards ----------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-raised); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3) var(--space-3);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--rule::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--crimson); }
.card--rule-gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.card--rule-slate::before { background: var(--slate); }
a.card { text-decoration: none; }
a.card:hover, .card--link:hover { transform: var(--lift); box-shadow: var(--shadow-md); border-color: rgb(198 40 40 / 0.28); }
.card__glyph { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: var(--space-2); border-radius: var(--radius); background: rgb(198 40 40 / 0.08); color: var(--crimson); }
.card__glyph svg { width: 1.4rem; height: 1.4rem; }
.card__eyebrow { font-size: var(--step--2); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-1); }
.card__title { font-size: var(--step-1); margin-bottom: var(--space-1); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole-card click target */
.card__text { color: var(--fg-muted); font-size: var(--step--1); flex: 1; margin-bottom: var(--space-2); }
.card__meta { font-size: var(--step--1); color: var(--fg-subtle); }
.card__footer { margin-top: auto; }
.card__proof { display: flex; gap: var(--space-1); align-items: flex-start; margin-top: var(--space-2); padding: var(--space-1-5) var(--space-2); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--step--1); line-height: 1.5; }
.card__proof::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.4em; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* 5.6 Numbered steps (replaces .story-list) --------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps--vertical { grid-template-columns: 1fr; max-width: 48rem; }
.step { position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-card); counter-increment: step; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; margin-bottom: var(--space-2); border-radius: var(--radius); border: 3px solid var(--crimson); color: var(--crimson-deep); font-weight: 800; font-size: var(--step--1); }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title { margin-bottom: var(--space-1); font-size: var(--step-1); }
.step__text { color: var(--fg-muted); font-size: var(--step--1); margin: 0; }
.steps--vertical .step { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: var(--space-3); }
.steps--vertical .step__num { margin: 0; grid-row: 1 / span 2; }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

/* 5.7 Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
caption { caption-side: top; text-align: left; padding: var(--space-2) var(--space-2) var(--space-1); font-weight: 700; color: var(--fg); }
th, td { padding: var(--space-1-5) var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { font-size: var(--step--2); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); background: var(--paper); border-bottom: 1px solid var(--border-strong); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgb(230 179 37 / 0.06); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 5.8 Badges / tier pills --------------------------------------------- */
.tier {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.1em 0.6em; border-radius: var(--radius-pill);
  font-size: var(--step--2); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
  white-space: nowrap;
}
.tier::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.tier--senior { color: var(--tier-senior); background: var(--tier-senior-bg); }
.tier--mid    { color: var(--tier-mid);    background: var(--tier-mid-bg); }
.tier--junior { color: var(--tier-junior); background: var(--tier-junior-bg); }

/* 5.9 FAQ (details/summary accordion) --------------------------------- */
.faq { max-width: var(--measure-wide); border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: var(--crimson); clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--crimson-deep); }
.faq__a { padding: 0 0 var(--space-3); color: var(--fg-muted); max-width: var(--measure); }

/* 5.10 Callout / definition boxes ------------------------------------- */
.callout { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); padding: var(--space-3); background: var(--bg-raised); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.callout--crimson { border-left-color: var(--crimson); }
.callout__title { font-weight: 700; margin-bottom: var(--space-0-5); }

/* 5.11 Lists with check / cross markers (lessons page) ---------------- */
.list-marked { list-style: none; margin: 0; padding: 0; }
.list-marked li { position: relative; padding-left: 2rem; margin-bottom: var(--space-2); color: var(--fg-muted); }
.list-marked li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; }
.list-marked--do li::before { background: var(--tier-senior-bg); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23000'/%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; background: var(--crimson); }
.list-marked--dont li::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23000'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; background: var(--slate); }

/* 5.12 Footer --------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.78); padding-block: var(--space-8) var(--space-4); margin-top: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.site-footer__brand img { height: 2.1rem; width: auto; margin-bottom: var(--space-2); }
.site-footer__brand p { max-width: 32ch; font-size: var(--step--1); color: rgb(255 255 255 / 0.6); }
.site-footer__heading { font-size: var(--step--2); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgb(255 255 255 / 0.5); margin: 0 0 var(--space-1-5); }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: var(--space-1); font-size: var(--step--1); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); font-size: var(--step--2); color: rgb(255 255 255 / 0.5); }
@media (max-width: 51.25rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 28.75rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Sticky-footer page shell */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page > main { flex: 1; }


/* --------------------------------------------------------------------------
   6. ORG CHART
   Markup: nested <ul class="org"> lists. Root li = CEO; ul.org__lanes = direct
   reports rendered as columns ≥ 64rem with a horizontal rail; every deeper ul is
   a vertical "elbow" tree. Below 64rem everything is an elbow tree.
   -------------------------------------------------------------------------- */
.org-chart { margin: 0; }
.org-chart__legend { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); font-size: var(--step--1); color: var(--fg-muted); }
.org-chart__legend .tier { font-size: 0.7rem; }

.org {
  --org-line:     var(--border-strong);
  --org-indent:   1.75rem;   /* child offset */
  --org-spine-x:  0.9rem;    /* where the vertical spine sits inside the indent */
  --org-gap:      0.5rem;    /* vertical gap between sibling nodes */
  --org-elbow:    1.5rem;    /* node half-height: where the horizontal elbow meets the node */
  --org-drop:     2.5rem;    /* CEO → lanes rail drop (desktop) */
  list-style: none; margin: 0; padding: 0;
}
.org ul { list-style: none; margin: 0; padding: 0 0 0 var(--org-indent); position: relative; }
.org li { position: relative; }

/* Node card */
.org__node {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-0-5) var(--space-1-5);
  min-height: calc(var(--org-elbow) * 2);
  padding: var(--space-1) var(--space-1-5);
  background: var(--bg-raised);
  border: 1px solid var(--border); border-left: 4px solid var(--tier-color, var(--slate));
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-size: var(--step--1); line-height: 1.3;
}
.org__node[data-tier="senior"] { --tier-color: var(--tier-senior); }
.org__node[data-tier="mid"]    { --tier-color: var(--tier-mid); }
.org__node[data-tier="junior"] { --tier-color: var(--tier-junior); }
.org__name { font-weight: 700; color: var(--ink); }
.org__role { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); }
.org__node .tier { margin-left: auto; }
.org__node--exec { border-left-width: 4px; background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: var(--shadow-md); }
.org__node--exec .org__name { color: var(--white); font-family: var(--font-display); font-size: var(--step-1); }
.org__node--exec .org__role { color: var(--gold); }
.org__node--lead { background: var(--paper-2); }

/* Elbow tree (default at all widths for nested lists) */
.org ul > li { padding-top: var(--org-gap); }
.org ul > li::before {           /* vertical spine */
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--org-spine-x) - var(--org-indent));
  width: 2px; background: var(--org-line);
}
.org ul > li:last-child::before { bottom: auto; height: calc(var(--org-gap) + var(--org-elbow)); }
.org ul > li::after {            /* horizontal elbow into the node */
  content: ""; position: absolute;
  top: calc(var(--org-gap) + var(--org-elbow) - 1px);
  left: calc(var(--org-spine-x) - var(--org-indent));
  width: calc(var(--org-indent) - var(--org-spine-x));
  height: 2px; background: var(--org-line);
}
/* Root li (CEO) has no connectors */
.org > li { padding: 0; }
.org > li::before, .org > li::after { display: none; }

/* Desktop: direct reports become lanes with a horizontal rail.
   Selectors are prefixed with .org so they out-rank the generic tree rules. */
@media (min-width: 64rem) {
  .org > li > .org__node { width: min(100%, 22rem); margin-inline: auto; position: relative; z-index: 1; }
  .org .org__lanes {
    display: grid; grid-template-columns: repeat(var(--org-lane-count, 6), minmax(0, 1fr));
    gap: 0 var(--space-2);
    padding: calc(var(--org-drop) / 2) 0 0 0;
    margin: 0;
    align-items: start;
  }
  .org .org__lanes::before {                  /* stem from the CEO card */
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2px; height: calc(var(--org-drop) / 2); background: var(--org-line);
  }
  .org .org__lanes > li { padding: calc(var(--org-drop) / 2) 0 0 0; }
  .org .org__lanes > li::before {             /* rail segment across the top */
    content: ""; position: absolute; top: 0; bottom: auto; transform: none;
    left: calc(-1 * var(--space-2) / 2); right: calc(-1 * var(--space-2) / 2);
    width: auto; height: 2px; background: var(--org-line);
  }
  .org .org__lanes > li:first-child::before { left: 50%; }
  .org .org__lanes > li:last-child::before  { right: 50%; }
  .org .org__lanes > li:only-child::before  { display: none; }
  .org .org__lanes > li:last-child::before  { height: 2px; }   /* out-rank the elbow-tree last-child rule */
  .org .org__lanes > li::after {              /* stub down into the lane head */
    content: ""; position: absolute; top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    width: 2px; height: calc(var(--org-drop) / 2); background: var(--org-line);
  }
  .org .org__lanes > li > .org__node { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .org .org__lanes > li > .org__node .tier { margin-left: 0; margin-top: 0.25rem; }
  .org .org__lanes ul { --org-indent: 1.1rem; --org-spine-x: 0.55rem; }
  .org .org__lanes .org__node { flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: var(--space-1) var(--space-1); }
  .org .org__lanes .org__node .tier { margin-left: 0; margin-top: 0.2rem; }
  .org .org__lanes .org__node .org__name { font-size: var(--step--1); }
  .org .org__lane--wide { grid-column: span 2; }
}

/* Ultra-narrow: tighten the tree */
@media (max-width: 24.375rem) { .org { --org-indent: 1.25rem; --org-spine-x: 0.6rem; } .org__node { padding-inline: var(--space-1); } }


/* --------------------------------------------------------------------------
   7. BLOG
   -------------------------------------------------------------------------- */
/* 7.1 Index ------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.post-grid .post-card--featured { grid-column: 1 / -1; }
@media (max-width: 64rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .post-grid { grid-template-columns: 1fr; } }

.post-card { position: relative; display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-card); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-card:hover { transform: var(--lift); box-shadow: var(--shadow-md); border-color: rgb(198 40 40 / 0.28); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-1-5); margin-bottom: var(--space-1-5); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); }
.post-card__meta time { color: var(--crimson-deep); }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.post-card__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; margin-bottom: var(--space-1-5); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--crimson-deep); }
.post-card__dek { color: var(--fg-muted); font-size: var(--step--1); flex: 1; margin-bottom: var(--space-2); }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; font-size: var(--step--1); color: var(--fg-subtle); }
.post-card__author { display: flex; align-items: center; gap: var(--space-1); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--hero-2); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; flex: none; }
.post-card--featured { padding: var(--space-4); background: var(--hero-gradient); border-color: transparent; color: var(--white); }
.post-card--featured .post-card__meta { color: rgb(255 255 255 / 0.6); }
.post-card--featured .post-card__meta time { color: var(--gold); }
.post-card--featured .post-card__title { font-size: var(--step-4); max-width: 22ch; }
.post-card--featured .post-card__title a { color: var(--white); }
.post-card--featured .post-card__title a:hover { color: var(--gold-light); }
.post-card--featured .post-card__dek { color: rgb(255 255 255 / 0.8); font-size: var(--step-0); max-width: 55ch; }
.post-card--featured .post-card__footer { color: rgb(255 255 255 / 0.7); }
.post-card--featured .avatar { background: var(--gold); color: var(--ink); }

/* 7.2 Single post ---------------------------------------------------- */
.post-masthead { padding-block: clamp(var(--space-6), 6vw, var(--space-10)); }
.post-masthead .eyebrow { color: var(--gold); }
.post-masthead__title { color: var(--white); font-size: var(--step-5); line-height: 1.08; max-width: 20ch; margin-bottom: var(--space-3); }
.post-masthead__dek { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.82); max-width: 48ch; margin-bottom: var(--space-4); }
.post-masthead__byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: var(--step--1); color: rgb(255 255 255 / 0.75); }
.post-masthead__byline .avatar { background: var(--gold); color: var(--ink); width: 2.4rem; height: 2.4rem; font-size: 0.8rem; }
.post-masthead__author { display: flex; align-items: center; gap: var(--space-1-5); color: var(--white); }
.post-masthead__author strong { display: block; font-weight: 700; }
.post-masthead__who { display: block; }
.post-masthead__who span { display: block; font-size: var(--step--2); color: rgb(255 255 255 / 0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.post-masthead__byline .sep { width: 1px; height: 1.5rem; background: rgb(255 255 255 / 0.25); }
@media (max-width: 30rem) { .post-masthead__byline .sep { display: none; } .post-masthead__byline { gap: var(--space-1) var(--space-2); } }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: var(--space-8); align-items: start; padding-block: var(--space-section); }
.post-body { max-width: var(--measure); }
.post-body > p:first-of-type { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.post-aside { position: sticky; top: calc(var(--header-h) + var(--space-3)); font-size: var(--step--1); color: var(--fg-muted); }
.post-aside__heading { font-size: var(--step--2); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-1-5); }
.post-aside ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.post-aside li { margin-bottom: var(--space-1); }
.post-aside a { text-decoration: none; color: var(--fg-muted); }
.post-aside a:hover { color: var(--crimson-deep); }
@media (max-width: 64rem) { .post-layout { grid-template-columns: 1fr; gap: var(--space-4); } .post-aside { position: static; border-top: 1px solid var(--border); padding-top: var(--space-3); } }

.post-footer { max-width: var(--measure); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.post-footer__tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.tag { display: inline-flex; padding: 0.2em 0.7em; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: var(--step--2); font-weight: 600; color: var(--fg-muted); text-decoration: none; }
.tag:hover { border-color: var(--crimson); color: var(--crimson-deep); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.post-nav a { display: block; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); text-decoration: none; color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.post-nav a:hover { border-color: rgb(198 40 40 / 0.4); box-shadow: var(--shadow-sm); }
.post-nav small { display: block; font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 0.2rem; }
.post-nav--next { text-align: right; }
@media (max-width: 30rem) { .post-nav { grid-template-columns: 1fr; } }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; font-size: var(--step--1); text-decoration: none; }
.back-link svg { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }


/* --------------------------------------------------------------------------
   8. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.on-dark { color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.flow > * + * { margin-top: var(--flow, var(--space-2)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-1-5); align-items: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.measure { max-width: var(--measure); }
.text-muted { color: var(--fg-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); }


/* --------------------------------------------------------------------------
   9. MOTION & PRINT
   -------------------------------------------------------------------------- */
/* Reveal-on-scroll (progressive: add .reveal to blocks; JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover, a.card:hover, .card--link:hover, .post-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-nav, .site-footer, .skip-link, .hero::before, .post-aside, .post-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .post-masthead { background: #fff !important; color: #000 !important; }
  .hero__title, .post-masthead__title { color: #000; }
  a { color: inherit; text-decoration: underline; }
  .org__lanes { display: block !important; }
}

/* Org: "see more" chip for departments charted separately */
.org__node--more { text-decoration: none; background: var(--paper); border-style: dashed; border-left-style: solid; --tier-color: var(--gold-deep); }
.org__node--more .org__role { color: var(--crimson-deep); }
.org__node--more:hover { background: var(--white); border-color: var(--crimson); }

/* --------------------------------------------------------------------------
   10. AVATARS — photo + designed monogram tiles  (CAT-1107)
   Every identity renders as a rounded tile: a real photo where we have one,
   a brand-gradient monogram (serif initial) where we do not — never a plain
   flat initials circle.
   -------------------------------------------------------------------------- */
.avatar { border-radius: var(--radius); overflow: hidden; }
.avatar img, img.avatar { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar--mono {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--oxblood) 100%);
  color: var(--gold-light);
  font-family: var(--font-display); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgb(230 179 37 / 0.35);
}
/* On dark cards (featured post / masthead) flip the monogram to gold-on-oxblood */
.post-card--featured .avatar--mono,
.post-masthead__byline .avatar--mono {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--oxblood); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}

/* Org-node identity tiles */
.org__node { gap: var(--space-0-5) var(--space-1); }
.org__avatar {
  flex: none; width: 1.8rem; height: 1.8rem;
  border-radius: var(--radius-sm); overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
  background: var(--paper-2); color: var(--slate);
}
.org__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org__avatar--mono {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--oxblood) 100%);
  color: var(--gold-light); font-family: var(--font-display);
  box-shadow: inset 0 0 0 1px rgb(230 179 37 / 0.30);
}
.org__node--exec .org__avatar { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); font-size: 1rem; box-shadow: inset 0 0 0 1px rgb(230 179 37 / 0.25); }
.org__node--exec .org__avatar:not(.org__avatar--mono) { background: rgb(255 255 255 / 0.1); }
/* Desktop lanes stack nodes into cards — center the identity tile at the top */
@media (min-width: 64rem) {
  .org .org__lanes > li > .org__node { align-items: center; text-align: center; }
  .org .org__lanes .org__node { align-items: center; text-align: center; }
  .org .org__lanes .org__node .tier { margin-inline: auto; }
}
