:root {
  --bg: #fbfbfd; --surface: #f0f0f2; --surface2: #e3e3e7;
  --ink: #1d1d1f; --ink-dim: rgba(29,29,31,.62); --divider: rgba(29,29,31,.1);
  --accent: #1f7a53; --accent-ink: #fbfbfd; --accent-text: #1f7a53; --accent-100: #e1ece9;
  --warn: #a6620a; --warn-bg: #fff4e0; --warn-border: rgba(166,98,10,.4);
  --display-font: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1e22; --surface: #28282c; --surface2: #333337;
    --ink: #d4d4d8; --ink-dim: rgba(212,212,216,.56); --divider: rgba(212,212,216,.12);
    --accent: #5fcb98; --accent-ink: #1e1e22; --accent-text: #5fcb98; --accent-100: #283a35;
    --warn: #ffb648; --warn-bg: #2e2210; --warn-border: rgba(255,182,72,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1e22; --surface: #28282c; --surface2: #333337;
  --ink: #d4d4d8; --ink-dim: rgba(212,212,216,.56); --divider: rgba(212,212,216,.12);
  --accent: #5fcb98; --accent-ink: #1e1e22; --accent-text: #5fcb98; --accent-100: #283a35;
  --warn: #ffb648; --warn-bg: #2e2210; --warn-border: rgba(255,182,72,.4);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 120px 0 0;
  margin-bottom: 12px;
}
.back:hover { color: var(--accent-text); }

/* ---- shared floating nav shell (site-nav.js populates anchor pills) ---- */
html { scroll-behavior: smooth; }
.tt { position: relative; }
.tt .tt-bubble { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(3px); background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; line-height: 1.3; padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease; z-index: 80; }
.tt .tt-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.tt:hover .tt-bubble, .tt:focus-visible .tt-bubble { opacity: 1; transform: translateX(-50%) translateY(0); }
.tt-below .tt-bubble { bottom: auto; top: calc(100% + 9px); }
.tt-below .tt-bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }

.logo-pill { position: fixed; top: 18px; left: 20px; z-index: 40; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--bg); border: 1px solid var(--divider); padding: 8px 16px 8px 10px; border-radius: 100px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.18); text-decoration: none; }
.logo-mark { width: 28px; height: 18.5px; background-color: var(--ink); mask-size: contain; -webkit-mask-size: contain; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-position: center; -webkit-mask-position: center; flex-shrink: 0; }

.nav-desktop { position: fixed; top: 18px; right: 20px; z-index: 40; display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); background: var(--bg); border: 1px solid var(--divider); padding: 6px; border-radius: 100px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.18); }
.nav-desktop button, .nav-desktop a.nav-link { font: inherit; background: none; border: 0; cursor: pointer; padding: 8px 13px; border-radius: 100px; transition: background .15s ease, color .15s ease; color: var(--ink-dim); white-space: nowrap; text-decoration: none; }
.nav-desktop button:hover, .nav-desktop a.nav-link:hover { background: var(--surface); }
.nav-desktop a.nav-link.current { background: var(--surface); color: var(--ink); }
.nav-divider { width: 1px; height: 16px; background: var(--divider); margin: 0 4px; flex-shrink: 0; }
.theme-toggle-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; background: none; border: 0; cursor: pointer; flex-shrink: 0; }
.nav-desktop .theme-toggle-btn { padding: 0; }
.theme-toggle-btn:hover { background: var(--surface); }

.dock-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 50; display: none; align-items: center; gap: 4px; padding: 8px; border-radius: 100px; background: var(--bg); border: 1px solid var(--divider); box-shadow: 0 12px 36px -12px rgba(0,0,0,.28); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); max-width: calc(100vw - 24px); overflow-x: auto; }
.dock-wrap button, .dock-wrap a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; color: var(--ink-dim); background: none; border: 0; cursor: pointer; transition: color .15s ease, background .15s ease; }
.dock-wrap button:hover, .dock-wrap a:hover { background: var(--surface); }
.dock-wrap a.current { color: var(--accent-text); }
@media (max-width: 900px) { .dock-wrap { display: flex; } .nav-desktop { display: none; } }

/* ---- meta strip (role / category / timeline) ---- */
.meta-strip { display: flex; gap: 20px 28px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--divider); }
.meta-strip .item { min-width: 0; max-width: 100%; }
.meta-strip .item .label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.meta-strip .item .value { font-size: 14px; font-weight: 600; }

/* ---- anchor pills (auto-populated from section h2s) ---- */
.anchor-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 8px; }
.anchor-pills a { font-size: 12px; font-weight: 600; color: var(--ink-dim); padding: 7px 12px; border-radius: 100px; background: var(--surface); text-decoration: none; }
.anchor-pills a:hover, .anchor-pills a.current { color: var(--ink); background: var(--surface2); }

header.hero {
  padding: 20px 0 clamp(32px, 5vw, 48px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: none;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
h1 {
  font-family: var(--display-font);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.dek {
  color: var(--ink-dim);
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 60ch;
  margin-bottom: 24px;
}

/* Small geometric mark used next to the wordmark */
.mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.mark path { fill: var(--accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  background: var(--surface);
  border: 0;
  border-radius: 100px;
  padding: 7px 14px;
}

.hero-img {
  margin: clamp(8px, 3vw, 16px) auto clamp(40px, 6vw, 64px);
  max-width: 780px;
  padding: 0 clamp(20px, 5vw, 40px);
}
.hero-img img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 0;
}

.inline-img { margin: 24px 0; }
.inline-img img { width: 100%; display: block; border-radius: 14px; border: 1px solid var(--divider); }
.inline-img .caption { margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }
.inline-img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.inline-img-row .inline-img { margin: 0; }

/* Reusable small process card grid (audience types, role breakdown, etc.) */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.approach-card { background: var(--surface); border-radius: 14px; padding: 18px 20px; }
.approach-card .label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.approach-card .title { font-family: var(--display-font); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.approach-card p { font-size: 13px; color: var(--ink-dim); line-height: 1.5; margin: 0; }

/* Compact horizontal timeline strip */
.timeline-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 24px; border-top: 1px solid var(--divider); }
.timeline-strip .step { flex: 1 1 140px; padding: 16px 16px 0; border-left: 1px solid var(--divider); }
.timeline-strip .step:first-child { border-left: 0; }
.timeline-strip .step .date { font-size: 11px; font-weight: 700; color: var(--accent-text); margin-bottom: 4px; }
.timeline-strip .step .desc { font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; }

main.body {
  padding-bottom: 40px;
}
main.body > section:not(:first-child) {
  margin-top: clamp(32px, 5vw, 48px);
}
main.body h2 {
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 22px;
  padding-left: 0;
  border-left: 0;
}
main.body p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}
main.body p + p { margin-top: 12px; }
main.body ul {
  margin-top: 12px;
  padding-left: 20px;
}
main.body li {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 64ch;
}
main.body li::marker { color: var(--accent-text); }
main.body p strong, main.body li strong { color: var(--ink); font-weight: 700; }

.cta {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 24px 28px;
}
.cta .cta-text h3 {
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cta .cta-text p {
  color: var(--ink-dim);
  font-size: 13.5px;
}
.cta a.btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.cta a.btn:hover { opacity: .85; }

.note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

footer {
  max-width: 780px;
  margin: 40px auto 0;
  padding: 24px clamp(20px, 5vw, 40px) 48px;
  border-top: 2px solid var(--divider);
  color: var(--ink-dim);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Password gate */
html.gate-locked body > *:not(.gate-overlay):not(.logo-pill):not(.nav-desktop):not(.dock-wrap) { display: none !important; }
html:not(.gate-locked) .gate-overlay { display: none !important; }

.gate-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  background: var(--surface);
  border: 0;
  border-radius: 24px;
  padding: 56px 40px;
}
.gate-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
}
.gate-kicker {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
}
.gate-title {
  font-family: var(--display-font);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 26ch;
}
.gate-sub {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 40ch;
  line-height: 1.6;
}
.gate-form-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.gate-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface2);
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
}
.gate-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.gate-submit {
  flex-shrink: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.gate-submit:hover { opacity: .85; }
.gate-error {
  font-size: 13px;
  color: var(--accent-text);
}

/* Footer nav links (case study pages) */
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-dim);
}
.footer-links a:hover { color: var(--accent-text); }

/* In-progress badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-bg);
  border: 0;
  border-radius: 100px;
  padding: 7px 14px;
  margin-top: 14px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
}

/* Charts */
.chart-block {
  margin-top: 20px;
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  padding: 26px;
}
.chart-block + .chart-block { margin-top: 16px; }
.chart-title {
  font-family: var(--display-font);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.chart-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-dim);
  font-style: italic;
  max-width: 60ch;
}
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg text { font-family: 'Inter', system-ui, sans-serif; fill: var(--ink); }
.chart-svg .dim { fill: var(--ink-dim); }
.chart-svg .bar { fill: var(--accent); }
.chart-svg .bar-track { fill: var(--surface2); }
.chart-svg .axis-line, .chart-svg .grid-line { stroke: var(--divider); }
.chart-svg .accent-line { stroke: var(--accent); fill: none; stroke-width: 2; }
.chart-svg .accent-dot { fill: var(--accent); }
.chart-svg .outline { stroke: var(--divider); fill: var(--surface2); }
.chart-svg .accent-fill { fill: var(--accent-100); stroke: var(--accent); }

/* Two-column comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 20px 22px;
}
.compare-col h3 {
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.compare-col ul { padding-left: 18px; }
.compare-col li {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.compare-col li::marker { color: var(--accent-text); }

/* Challenges / data tables inside case studies */
table.challenges {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14.5px;
}
table.challenges th, table.challenges td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
table.challenges th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-dim);
}

/* Process / progress stages */
.stage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.stage-row:last-child { margin-bottom: 0; }
.stage-label {
  width: 190px;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.stage-track {
  flex: 1;
  background: var(--surface2);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}
.stage-fill { height: 100%; border-radius: 6px; }
.stage-fill.not-started { width: 3%; background: var(--divider); }
.stage-fill.in-progress { width: 50%; background: var(--accent); opacity: .55; }
.stage-fill.done { width: 100%; background: var(--accent); }
.stage-status {
  width: 96px;
  text-align: right;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-dim);
  flex-shrink: 0;
}

/* AI usage log */
.ai-log-entry {
  border-left: 2px solid var(--accent);
  padding: 2px 0 4px 18px;
  margin-bottom: 20px;
}
.ai-log-entry:last-child { margin-bottom: 0; }
.ai-log-task {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.ai-log-tool {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.ai-log-entry p { font-size: 14.5px; }

/* FAQ accordion */
.faq-group { margin-bottom: 30px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 400;
  transition: transform .15s ease;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 18px;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 66ch;
}
.faq-a a { color: var(--accent-text); text-decoration: underline; }

/* Stats / matrix */
.stat-line {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink);
  max-width: 64ch;
  margin-bottom: 8px;
}
.stat-line strong { color: var(--accent-text); }
.tagbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tagbar-label {
  width: 176px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tagbar-label a { text-decoration: none; color: inherit; }
.tagbar-label a:hover { color: var(--accent-text); }
.tagbar-track {
  flex: 1;
  background: var(--surface2);
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}
.tagbar-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 5px;
  transition: width .2s ease;
}
.tagbar-count {
  width: 22px;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-dim);
  font-weight: 700;
  flex-shrink: 0;
}
.matrix-wrap {
  overflow-x: visible;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
}
table.matrix {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
}
table.matrix th, table.matrix td {
  padding: 10px 5px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  white-space: normal;
  hyphens: auto;
  overflow-wrap: anywhere;
}
table.matrix th:first-child, table.matrix td:first-child { width: 28%; padding-left: 12px; hyphens: none; overflow-wrap: normal; }
table.matrix th:last-child, table.matrix td:last-child { padding-right: 12px; }
table.matrix thead th {
  font-weight: 700;
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .01em;
  vertical-align: bottom;
  border-bottom: 1px solid var(--divider);
}
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix td.dot { text-align: center; color: var(--accent-text); font-weight: 700; }
table.matrix td.proj a { text-decoration: none; font-weight: 600; color: var(--ink); }
table.matrix td.proj a:hover { color: var(--accent-text); }

/* Long-form essay content inside a FAQ accordion answer */
.faq-essay {
  color: var(--ink);
  font-size: 15px;
  max-width: 68ch;
}
.faq-essay p { margin-bottom: 14px; }
.faq-essay h3 {
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  margin: 22px 0 4px;
}
.faq-essay .faq-essay-updated {
  font-size: 12px;
  color: var(--ink-dim);
  font-style: italic;
  margin-bottom: 18px;
}
.faq-essay .faq-essay-see {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: -6px;
}
.faq-essay .faq-essay-see a { color: var(--accent-text); text-decoration: underline; }

/* Tool list on the AI Fluency page */
.tool-list { margin-top: 16px; }
.tool-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.tool-item:last-child { border-bottom: 0; }
.tool-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  min-width: 130px;
}
a.tool-name:hover { color: var(--accent-text); }
.tool-desc { font-size: 14px; color: var(--ink-dim); }
.tool-desc a { color: var(--accent-text); text-decoration: underline; }

/* Interactive trait card (Compass case study) */
.trait-card {
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background .15s ease;
  margin-top: 16px;
  max-width: 480px;
}
.trait-card:hover { background: var(--surface2); }
.trait-card--expanded { background: var(--surface2); }
.trait-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.trait-card__badge { font-size: 15px; font-weight: 700; }
.trait-card__links { margin-top: 6px; font-size: 12px; color: var(--ink-dim); }
.trait-card__links a { color: var(--accent-text); text-decoration: underline; }
.trait-card__chevron {
  background: var(--surface2);
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.trait-card__stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}
.trait-card__stats b { color: var(--ink); }
.trait-card__gap { color: var(--accent-text) !important; }
.trait-card__interpretation {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  color: var(--ink);
  max-width: 58ch;
  cursor: default;
}

/* Rating scale slider (Compass case study) */
.rating-slider-block { margin-top: 18px; max-width: 480px; }
.rating-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
input[type="range"].rating-slider {
  width: 100%;
  accent-color: var(--accent);
}
.rating-slider-value {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-text);
  margin-top: 10px;
}

/* Life-Wheel visualization (Compass case study) */
.life-wheel-block { text-align: center; margin-top: 18px; }
.life-wheel-svg { transition: opacity .2s ease, filter .2s ease; }
.life-wheel-block.locked .life-wheel-svg { opacity: .4; filter: grayscale(1); }
.life-wheel-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-dim);
}
.life-wheel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.life-wheel-legend .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.life-wheel-caption { margin-top: 12px; font-size: 13px; color: var(--ink-dim); }
.life-wheel-unlock-btn {
  margin-top: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.life-wheel-unlock-btn:hover { opacity: .85; }

/* Pull-quote callout ("what I'd tell a recruiter") */
.recruiter-quote {
  margin-top: 20px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  font-size: 16px;
  color: var(--ink);
  font-style: italic;
  max-width: 62ch;
}

/* Self-audit report blocks */
.audit-block { margin-top: 20px; }
.audit-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.audit-block ul { padding-left: 20px; }
.audit-block li { margin-bottom: 12px; max-width: 66ch; }

/* ---- Information-design components for case studies ---- */

/* Facts strip: the recruiter's first scan (role, dates, team, scope, status) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; margin: 4px 0 8px; padding: 18px 20px; background: var(--surface); border-radius: 16px; }
.compare + p, .tree + p, .kv + p, .flow + p, .issues + p, .facts + p { margin-top: 18px; }
main.body .issue p { font-size: 13.5px; line-height: 1.5; margin: 0; }
main.body .issue p + p { margin-top: 6px; }
.flow .t, .decisions .call { color: var(--ink); }
.flow.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 26px; }
.flow.cols-4 > li { margin-right: 0; }
.flow.cols-4 > li:nth-child(4n)::after { display: none; }
@media (max-width: 640px) { .flow.cols-4 { display: flex; } .flow.cols-4 > li:nth-child(4n)::after { display: block; } .flow.cols-4 > li:last-child::after { display: none; } }
.facts .fact .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.facts .fact .v { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.facts .fact .v small { display: block; font-weight: 400; color: var(--ink-dim); font-size: 12px; margin-top: 2px; }

/* Process flow: steps with connectors; wraps to a vertical list on narrow screens */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 0; margin: 16px 0 8px; padding: 0; list-style: none; }
.flow > li { position: relative; flex: 1 1 150px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 14px 16px 14px; margin-right: 26px; }
.flow > li:last-child { margin-right: 0; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--ink-dim); border-right: 2px solid var(--ink-dim); transform: translateY(-50%) rotate(45deg); opacity: .7; }
.flow .n { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.flow .t { font-family: var(--display-font); font-weight: 700; font-size: 14px; line-height: 1.3; }
.flow .d { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; margin-top: 4px; }
.flow > li.muted { background: transparent; box-shadow: inset 0 0 0 1px var(--divider); }
@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow > li { margin-right: 0; margin-bottom: 22px; }
  .flow > li:last-child { margin-bottom: 0; }
  .flow > li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -17px; transform: rotate(135deg); }
}

/* Structure tree: a root with branches (mind-map style, reads left→right) */
.tree { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 0 28px; margin: 16px 0 8px; }
.tree .root { align-self: start; position: sticky; top: 90px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 14px 16px; font-family: var(--display-font); font-weight: 700; font-size: 14px; line-height: 1.3; }
.tree .root small { display: block; font-family: var(--body-font, inherit); font-weight: 400; font-size: 12px; opacity: .75; margin-top: 4px; }
.tree .branches { display: grid; gap: 10px; border-left: 2px solid var(--divider); padding-left: 18px; }
.tree .branch { position: relative; background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.tree .branch::before { content: ""; position: absolute; left: -20px; top: 22px; width: 18px; height: 2px; background: var(--divider); }
.tree .branch .t { font-weight: 700; font-size: 13.5px; }
.tree .branch .t .tag { font-weight: 600; font-size: 10.5px; color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; margin-left: 8px; }
.tree .branch ul { margin: 6px 0 0; padding-left: 16px; }
.tree .branch li { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; margin: 2px 0; }
.tree .branch li::marker { color: var(--accent-text); }
@media (max-width: 560px) { .tree { grid-template-columns: 1fr; } .tree .root { position: static; } .tree .branches { border-left: 0; padding-left: 0; } .tree .branch::before { display: none; } }

/* Issue → what I did → result (the section she cares most about) */
.issues { display: grid; gap: 12px; margin: 16px 0 8px; }
.issue { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; background: var(--surface); border-radius: 14px; overflow: hidden; }
.issue > div { padding: 14px 16px; min-width: 0; }
.issue > div + div { border-left: 1px solid var(--divider); }
.issue .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.issue .fix .k, .issue .result .k { color: var(--accent-text); }
.issue p { font-size: 13px; line-height: 1.5; margin: 0; }
.issue p + p { margin-top: 6px; }
@media (max-width: 720px) { .issue { grid-template-columns: 1fr; } .issue > div + div { border-left: 0; border-top: 1px solid var(--divider); } }

/* Decision list: the call, the reason, the trade-off */
.decisions { display: grid; gap: 10px; margin: 16px 0 8px; padding: 0; list-style: none; }
.decisions > li { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--divider); }
.decisions > li:first-child { border-top: 0; padding-top: 0; }
.decisions .call { font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.decisions .why { font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.decisions .why small { display: block; color: var(--ink-dim); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 560px) { .decisions > li { grid-template-columns: 1fr; } }

/* Dated timeline (vertical): what happened when, with evidence */
.when { list-style: none; margin: 16px 0 8px; padding: 0; border-left: 2px solid var(--divider); }
.when > li { position: relative; padding: 0 0 16px 20px; }
.when > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.when > li:last-child { padding-bottom: 0; }
.when .date { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.when .what { font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.when .what small { color: var(--ink-dim); }

/* Key-value list for compact findings (e.g. research pain points) */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.kv .item { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.kv .item .t { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.kv .item .d { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }

.kv.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .kv.two { grid-template-columns: 1fr; } }
main.body p + .facts, main.body p + .kv { margin-top: 14px; }

/* Evidence caption under quotes: who said it / where it comes from */
.evidence { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }

/* Data-viz card grid (used on the stats page) */
.viz-note { font-size: 14px; color: var(--ink-dim); max-width: 60ch; margin-top: 10px; }
.viz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.chart-card { background: var(--surface); border-radius: 18px; padding: 26px; }
.chart-card .chart-title { font-family: var(--display-font); font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }
.chart-card .chart-caption { font-size: 11px; color: var(--ink-dim); margin-top: 10px; font-style: italic; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-row .label { width: 100px; flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-dim); }
.bar-row .track { flex: 1; background: var(--surface2); border-radius: 5px; height: 10px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 5px; background: var(--accent); transition: width 1s cubic-bezier(.16,1,.3,1); width: 0%; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.donut-center .num { font-family: var(--display-font); font-weight: 800; font-size: 20px; }
.donut-center .lbl { font-size: 9px; color: var(--ink-dim); }
.donut-legend { display: flex; flex-direction: column; gap: 7px; }
.donut-legend .row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; width: fit-content; }
.donut-legend .swatch { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.gauge-row { display: flex; align-items: center; gap: 22px; }
.gauge-copy { min-width: 0; }
.gauge-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display-font); font-weight: 800; font-size: 19px; }
.gauge-copy .gauge-title { font-family: var(--display-font); font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.gauge-copy p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; }
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; background: var(--accent); transition: opacity .6s ease, transform .15s ease; cursor: default; }
.heat-cell:hover { transform: scale(1.18); }
.stage-row-viz { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stage-row-viz .label { width: 100px; flex-shrink: 0; font-size: 12px; font-weight: 600; }
.stage-row-viz .track { flex: 1; background: var(--surface2); border-radius: 5px; height: 9px; overflow: hidden; }
.stage-row-viz .fill { height: 100%; border-radius: 5px; background: var(--accent); transition: width 1s cubic-bezier(.16,1,.3,1); width: 0%; }
.stage-row-viz .status { width: 88px; text-align: right; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-dim); }

/* Sub-headings after prose or a component need air above them */
main.body p + h3, main.body .kv + h3, main.body .tree + h3, main.body .flow + h3, main.body table + h3, main.body .evidence + h3, main.body .facts + h3 { margin-top: 30px; }

/* Unit tabs inside an overview page (same look as the hub's work filter) */
.unit-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 40px 0 8px; padding: 4px; background: var(--surface); border-radius: 100px; width: fit-content; position: sticky; top: 70px; z-index: 5; }
.unit-tabs button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 100px; border: 0; cursor: pointer; background: none; color: var(--ink-dim); transition: background .15s ease, color .15s ease; }
.unit-tabs button.active { background: var(--ink); color: var(--bg); }
main.body > section[hidden], .anchor-pills a[hidden] { display: none; }

/* Donut chart: SVG + legend */
.donut { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin: 16px 0 8px; padding: 18px 20px; background: var(--surface); border-radius: 14px; }
.donut svg { width: 180px; height: 180px; display: block; }
.donut .track { fill: none; stroke: var(--surface2); stroke-width: 18; }
.donut .seg { fill: none; stroke: var(--accent); stroke-width: 18; transform: rotate(-90deg); transform-origin: 60px 60px; }
.donut .seg.s2, .donut .legend .sw.s2 { opacity: .78; }
.donut .seg.s3, .donut .legend .sw.s3 { opacity: .58; }
.donut .seg.s4, .donut .legend .sw.s4 { opacity: .40; }
.donut .seg.s5, .donut .legend .sw.s5 { opacity: .24; }
.donut .seg.s6, .donut .legend .sw.s6 { opacity: .12; }
.donut text { font-family: var(--display-font); fill: var(--ink); }
.donut text.big { font-size: 22px; font-weight: 700; }
.donut text.small { font-size: 9px; fill: var(--ink-dim); font-family: var(--body-font, inherit); }
.donut .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.donut .legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.donut .legend .sw { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.donut .legend .num { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .donut { grid-template-columns: 1fr; justify-items: center; } }

.draft { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
