/* ==========================================================================
   Muhammad Irfan — personal site, v2
   Corporate palette: white and cool grey, deep navy, corporate blue, and
   four supporting accents used per theme. Source Serif 4 for large headlines
   only; IBM Plex Sans for everything else.
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #12294A;
  --navy-3: #1E3A60;
  --white: #FFFFFF;
  --grey: #F4F6FA;
  --grey-2: #E9EDF4;
  --text: #14213A;
  --muted: #4B5770;
  --on-navy: #C8D3E4;
  --on-navy-2: #9FB0C9;
  --rule: #E1E6EE;
  --rule-strong: #C9D2DF;

  /* Accents: base (graphics), ink (AA text on white), soft (tint) */
  --blue: #2563EB;    --blue-ink: #1D4ED8;    --blue-soft: #EAF1FE;
  --teal: #0EA5A4;    --teal-ink: #0F766E;    --teal-soft: #E5F6F5;
  --emerald: #10B981; --emerald-ink: #047857; --emerald-soft: #E6F7F0;
  --amber: #F59E0B;   --amber-ink: #B45309;   --amber-soft: #FEF4E2;
  --violet: #6D5BD0;  --violet-ink: #5B47C2;  --violet-soft: #EFEDFB;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 6px;
  --r: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 20px -10px rgba(11, 31, 58, .18);
  --shadow-lift: 0 2px 4px rgba(11, 31, 58, .06), 0 20px 40px -18px rgba(11, 31, 58, .32);
}

/* Accent switch: any element with .acc-* exposes --acc, --acc-ink, --acc-soft */
.acc-blue    { --acc: var(--blue);    --acc-ink: var(--blue-ink);    --acc-soft: var(--blue-soft); }
.acc-teal    { --acc: var(--teal);    --acc-ink: var(--teal-ink);    --acc-soft: var(--teal-soft); }
.acc-emerald { --acc: var(--emerald); --acc-ink: var(--emerald-ink); --acc-soft: var(--emerald-soft); }
.acc-amber   { --acc: var(--amber);   --acc-ink: var(--amber-ink);   --acc-soft: var(--amber-soft); }
.acc-violet  { --acc: var(--violet);  --acc-ink: var(--violet-ink);  --acc-soft: var(--violet-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
main { display: block; flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

h1, h2 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .55em; text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3, h4 { font-family: var(--sans); font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.005em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.22rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 400; font-size: .75rem; color: var(--muted); margin-top: 3px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: .5rem .7rem; text-decoration: none; color: var(--navy);
  font-size: .95rem; font-weight: 500; border-radius: var(--r-sm);
}
.nav-list a:hover { background: var(--grey); color: var(--blue-ink); }
.nav-list a[aria-current="page"] { color: var(--blue-ink); background: var(--blue-soft); }
.nav-list .nav-cta a { background: var(--navy); color: #fff; margin-left: .4rem; padding-inline: 1rem; }
.nav-list .nav-cta a:hover { background: var(--blue); color: #fff; }
.nav-list .nav-cta a[aria-current="page"] { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: .5rem .75rem; font: 500 .9rem var(--sans); color: var(--navy); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

@media (max-width: 1040px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(11, 31, 58, .35); display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: .2rem; }
  .js .nav-list a { padding: .8rem .9rem; font-size: 1.05rem; }
  .js .nav-list .nav-cta a { margin: .5rem 0 0; text-align: center; }
  .no-js .nav-list { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.sec-label { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; font-size: .95rem; font-weight: 500; color: var(--muted); }
.sec-label .num {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .45rem;
  border-radius: var(--r-sm); background: var(--blue-soft); color: var(--blue-ink);
  font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.section--navy .sec-label { color: var(--on-navy-2); }
.section--navy .sec-label .num { background: rgba(255, 255, 255, .1); color: #fff; }

.sec-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { margin: 0; max-width: 20ch; }
.sec-head p { margin: 0; color: var(--muted); }
.section--navy .sec-head p { color: var(--on-navy); }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }

.lede { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.6; }
.more-link { margin-top: 1.75rem; font-weight: 500; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.3rem; border-radius: var(--r-sm); font: 500 1rem/1.2 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--whatsapp { background: #128C7E; color: #fff; }
.btn--whatsapp:hover { background: #0E6F64; color: #fff; }
.section--navy .btn--ghost, .band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--navy .btn--ghost:hover, .band .btn--ghost:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(37, 99, 235, .07), transparent 60%),
    linear-gradient(var(--white), var(--grey));
  border-bottom: 1px solid var(--rule);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr); gap: 4.5rem; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.hero-meta li {
  margin: 0; font-size: .88rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-ink);
}
.hero h1 { margin-bottom: .4em; }
.hero-statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.32; color: var(--navy);
  margin: 0 0 1.5rem; max-width: 31ch; padding-left: 1.25rem; border-left: 4px solid var(--blue);
}
.hero-intro .scope-line { font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: .5rem; }
.hero-intro p { max-width: 58ch; }

/* Portrait: image is a 4:5 crop with headroom; the blue frame sits behind,
   offset down-right, and stays inside the column thanks to the padding. */
.portrait { margin: 0; width: 100%; max-width: 420px; justify-self: center; }
.portrait-frame { position: relative; display: block; padding: 0 18px 18px 0; }
.portrait-frame::before {
  content: ""; position: absolute; top: 18px; left: 18px; right: 0; bottom: 0;
  border-radius: var(--r); background: linear-gradient(135deg, var(--blue), var(--teal));
}
.portrait-frame img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0;
  border-radius: var(--r); box-shadow: var(--shadow-lift); background: #ECEEF1;
}
.portrait figcaption { margin-top: .9rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 959px) {
  .portrait { order: -1; max-width: 300px; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Cards (shared)
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }

.card {
  --acc: var(--blue); --acc-ink: var(--blue-ink); --acc-soft: var(--blue-soft);
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--acc);
  border-radius: var(--r); padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card-foot { margin-top: auto; padding-top: .4rem; }
.card-link { font-weight: 600; font-size: .95rem; color: var(--acc-ink); }
.card--link .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card--tint { background: linear-gradient(180deg, var(--acc-soft), #fff 70%); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: var(--acc); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 8px 18px -10px var(--acc);
}
.icon-tile svg { width: 26px; height: 26px; }

.tag {
  align-self: flex-start; display: inline-block; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-ink);
}
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 600; color: var(--acc-ink); background: var(--acc-soft);
  border-radius: 999px; padding: .2rem .65rem;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.num-badge {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--acc); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem;
}
.evidence {
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--rule-strong);
  font-size: .92rem; color: var(--text); line-height: 1.5;
}
.evidence strong { display: block; color: var(--acc-ink); font-size: .8rem; margin-bottom: .2rem; }

/* --------------------------------------------------------------------------
   Results: coloured stat cards with charts
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.stat {
  border-radius: var(--r); padding: 1.5rem 1.4rem 1.4rem; color: #fff; position: relative; overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--navy-3);
  display: flex; flex-direction: column; gap: .9rem;
}
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--acc); }
.stat-figure { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.stat-figure small { font-size: .5em; font-weight: 400; color: var(--acc); margin-left: .08em; }
.stat-label { margin: 0; font-size: .97rem; line-height: 1.45; color: var(--on-navy); }
.stat-chart { margin-top: auto; }
.stat-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.stat-chart .track { stroke: rgba(255, 255, 255, .12); }
.stat-chart .fill { stroke: var(--acc); }
.stat-chart text { fill: var(--on-navy-2); font: 500 11px var(--sans); }
.stat-note { margin-top: 1.5rem; font-size: .92rem; color: var(--on-navy-2); max-width: 75ch; }

.ring-wrap { display: flex; align-items: center; gap: 1rem; }
.ring-wrap svg { width: 92px; height: 92px; flex: none; }
.ring-wrap p { margin: 0; font-size: .85rem; color: var(--on-navy-2); line-height: 1.4; }

.streak { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.streak span {
  height: 34px; border-radius: 5px; background: var(--acc); opacity: .92;
  display: grid; place-items: center; color: #06281D; font: 700 .72rem var(--sans);
}
.streak-legend { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .78rem; color: var(--on-navy-2); }

/* --------------------------------------------------------------------------
   Career span bar (home)
   -------------------------------------------------------------------------- */
.span-chart { margin: 0 0 2.5rem; }
.span-bar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.span-bar span {
  display: flex; align-items: center; padding: 0 .8rem; background: var(--acc); color: #fff;
  font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; min-width: 0;
}
.span-bar span + span { border-left: 2px solid #fff; }
.span-axis { position: relative; height: 1.6rem; margin-top: .45rem; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.span-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.span-axis span:first-child { transform: none; }
.span-axis span:last-child { transform: translateX(-100%); }
.span-chart figcaption { font-size: .88rem; color: var(--muted); margin-top: .25rem; }

.arc { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.arc li {
  margin: 0; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--r); background: #fff;
  border: 1px solid var(--rule); border-left: 4px solid var(--acc);
}
.arc .years { display: block; font-weight: 600; font-size: .85rem; color: var(--acc-ink); margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.arc h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.arc p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.5; }
.arc li.is-next { background: var(--navy); border-color: var(--navy); border-left-color: var(--blue); }
.arc li.is-next .years { color: #9CC0FF; }
.arc li.is-next h3 { color: #fff; }
.arc li.is-next p { color: var(--on-navy); }

/* --------------------------------------------------------------------------
   Principles (navy)
   -------------------------------------------------------------------------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: p; }
.principles li {
  margin: 0; padding: 1.4rem 1.3rem; border-radius: var(--r); background: var(--navy-2);
  border: 1px solid var(--navy-3); counter-increment: p; position: relative;
}
.principles li::before {
  content: counter(p); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--acc); color: #fff; font-weight: 700; margin-bottom: .9rem;
}
.principles h3 { color: #fff; font-size: 1.1rem; }
.principles p { margin: 0; color: var(--on-navy); font-size: .98rem; }

/* --------------------------------------------------------------------------
   Inner page intro
   -------------------------------------------------------------------------- */
.page-intro {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(900px 400px at 100% 0%, rgba(37, 99, 235, .08), transparent 60%), var(--grey);
  border-bottom: 1px solid var(--rule);
}
.kicker { display: inline-block; color: var(--blue-ink); background: var(--blue-soft); font-weight: 600; font-size: .88rem; padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.page-intro h1 { max-width: 20ch; }
.page-intro .lede { max-width: 62ch; color: var(--muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Journey
   -------------------------------------------------------------------------- */
.journey-layout { display: grid; gap: 2.5rem; }
.story-index { display: none; }
@media (min-width: 1120px) {
  .journey-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 4rem; align-items: start; }
  .journey-layout .timeline { grid-column: 1; grid-row: 1; }
  .story-index { display: block; grid-column: 2; grid-row: 1; position: sticky; top: 6.5rem; }
  .story-index p { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .75rem; }
  .story-index ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  .story-index li { margin: 0; }
  .story-index a {
    display: block; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.35;
    padding: .55rem .75rem; border-radius: var(--r-sm); border-left: 3px solid var(--acc); background: var(--grey);
  }
  .story-index a:hover { color: var(--navy); background: var(--acc-soft); }
  .story-index span { display: block; font-weight: 600; color: var(--acc-ink); font-size: .82rem; }
}

.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 0; bottom: 2rem; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--violet), var(--teal) 35%, var(--amber) 60%, var(--blue) 85%);
}
.chapter { position: relative; margin: 0; padding: 0 0 clamp(3rem, 7vw, 5rem) 5.5rem; }
.chapter:last-child { padding-bottom: 0; }
.chapter-marker { position: absolute; left: 0; top: 0; width: 66px; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.chip {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: #fff;
  border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--acc), var(--shadow);
}
.chip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.chip--dot { width: 24px; height: 24px; margin: 21px; border: 4px solid #fff; background: var(--acc); }
.chip--today { width: 86px; height: 86px; margin-inline: -10px; }
.chip-label { font-size: .78rem; font-weight: 700; color: #fff; background: var(--acc); padding: .05rem .5rem; border-radius: 999px; line-height: 1.5; }
.chapter-years { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--acc-ink); background: var(--acc-soft); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.chapter-head h2 { margin-bottom: .3rem; }
.chapter-role { color: var(--muted); font-size: .98rem; margin: 0 0 1.25rem; }
.scene {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.42rem); line-height: 1.45;
  color: var(--navy); margin: 0 0 1.25rem; max-width: 48ch; padding-left: 1rem; border-left: 3px solid var(--acc);
}
.chapter-body { max-width: 74ch; }
.chapter-body h3 { font-size: 1rem; margin: 1.75rem 0 .6rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.worktypes { columns: 2 230px; column-gap: 2rem; display: block; }
.worktypes li { break-inside: avoid; margin-bottom: .55rem; }

.outcome {
  margin-top: 1.5rem; background: var(--acc-soft); border-radius: var(--r); padding: 1.2rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--acc) 25%, transparent);
}
.outcome h3 { margin: 0 0 .5rem !important; color: var(--acc-ink); font-size: .95rem; }
.outcome p:last-child { margin-bottom: 0; }
.outcome-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 1.5rem; }
.outcome-figs div { background: #fff; border-radius: var(--r-sm); padding: .75rem .9rem; }
.outcome-figs strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.outcome-figs span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .25rem; }

/* Audit summary + sector bar chart */
.sector-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.sector-summary div { background: var(--violet-soft); border-radius: var(--r-sm); padding: .9rem 1rem; }
.sector-summary strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--violet-ink); }
.sector-summary span { display: block; font-size: .86rem; color: var(--muted); margin-top: .35rem; line-height: 1.35; }

.barchart { margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); }
.barchart figcaption { font-weight: 600; color: var(--navy); margin-bottom: .9rem; font-size: 1rem; }
.barchart figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.barchart table { width: 100%; border-collapse: collapse; }
.barchart th { text-align: left; font-weight: 500; font-size: .9rem; color: var(--text); padding: .3rem .75rem .3rem 0; width: 42%; line-height: 1.3; }
.barchart td { padding: .3rem 0; }
.bar { display: flex; align-items: center; gap: .5rem; }
.bar i { display: block; height: 16px; border-radius: 4px; background: var(--violet); min-width: 4px; }
.bar b { font-weight: 600; font-size: .9rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.barchart tfoot th, .barchart tfoot td { border-top: 1px solid var(--rule); padding-top: .55rem; font-weight: 600; }
@media (max-width: 520px) { .barchart th { width: 50%; font-size: .85rem; } }

/* Next chapter */
.next-chapter { background: var(--navy); color: var(--on-navy); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.6rem); }
.next-chapter h2 { color: #fff; }
.next-chapter .scene { color: #fff; }
.next-chapter p { color: var(--on-navy); }
.next-chapter .chapter-years { background: rgba(255, 255, 255, .12); color: #fff; }
.next-chapter .checklist li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ */
.faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq-item { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1.25rem 1.4rem; display: grid; gap: .4rem 3rem; }
.faq-item h3 { margin: 0; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .faq-item { grid-template-columns: 17rem minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */
.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.creds li { margin: 0; }
.creds .card { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
.creds .year { flex: none; display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.creds h3 { margin: .1rem 0 .3rem; }
.creds p { margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.pill-row li { margin: 0; border-radius: 999px; padding: .5rem 1rem; font-weight: 500; font-size: .97rem; background: var(--acc-soft, var(--blue-soft)); color: var(--acc-ink, var(--blue-ink)); }

/* --------------------------------------------------------------------------
   Insights series
   -------------------------------------------------------------------------- */
.series { background: var(--navy); color: var(--on-navy); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 3rem); }
.series h2 { color: #fff; margin-bottom: .4rem; }
.series > p { color: var(--on-navy); }
.series .sec-label { color: var(--on-navy-2); }
.series .sec-label .num { background: var(--blue); color: #fff; }
.series-list { list-style: none; padding: 0; margin: 2rem 0 1.75rem; display: grid; grid-template-columns: 1fr; gap: .9rem; counter-reset: s; }
@media (min-width: 600px) { .series-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .series-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.series-list li { margin: 0; background: var(--navy-2); border: 1px solid var(--navy-3); border-top: 3px solid var(--acc); border-radius: var(--r-sm); padding: 1.1rem 1.15rem 1.25rem; counter-increment: s; }
.series-list li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--acc); line-height: 1; margin-bottom: .6rem; }
.series-list h3 { color: #fff; font-size: 1.02rem; margin-bottom: .35rem; }
.series-list p { color: var(--on-navy); font-size: .93rem; margin: 0; line-height: 1.5; }

.note { background: var(--blue-soft); border-radius: var(--r); padding: 1.5rem 1.6rem; display: grid; gap: .5rem 2rem; align-items: center; }
.note h2 { font-size: 1.5rem; margin: 0; }
.note p { margin: 0; color: var(--text); }
@media (min-width: 820px) { .note { grid-template-columns: 16rem minmax(0, 1fr); } }

/* Tools */
.tools-note { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tools-note li { margin: 0; display: flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .85rem; font-size: .93rem; color: var(--text); }
.tools-note svg { width: 18px; height: 18px; color: var(--emerald-ink); flex: none; }

/* --------------------------------------------------------------------------
   Expertise
   -------------------------------------------------------------------------- */
.exp-card h3 { font-size: 1.15rem; }
.exp-card ul { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.exp-card ul li { margin: 0; font-size: .84rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .contact-hero { grid-template-columns: 200px minmax(0, 1fr); gap: 3rem; } }
.contact-hero img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  border: 5px solid #fff; box-shadow: 0 0 0 3px var(--blue), var(--shadow-lift);
}
.contact-methods { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact-methods .card h2 { font-family: var(--sans); font-size: 1.15rem; margin: 0 0 .3rem; letter-spacing: 0; }
.contact-value { font-size: 1.12rem; font-weight: 600; color: var(--navy); margin: 0 0 1rem; word-break: break-word; }
.contact-value a { color: var(--navy); text-decoration-color: var(--acc); }
.contact-methods .btn-row { margin-top: auto; }

.form-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .form-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.msg-form { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--blue); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--text); background: var(--grey);
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-sm); padding: .7rem .85rem; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-error { color: #B91C1C; font-size: .9rem; margin: 0; }

/* --------------------------------------------------------------------------
   Bands (CTA)
   -------------------------------------------------------------------------- */
.band {
  background: linear-gradient(120deg, var(--navy) 0%, #13336A 60%, var(--blue-ink) 130%);
  color: var(--on-navy); border-radius: var(--r); padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.band h2 { color: #fff; margin: 0 0 .4rem; }
.band p { margin: 0; color: var(--on-navy); }
.band .btn-row { margin-top: 0; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.band .btn--primary { background: #fff; color: var(--navy); }
.band .btn--primary:hover { background: var(--blue-soft); color: var(--navy); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: 3rem 2.25rem; font-size: .94rem; }
.site-footer a { color: #E3EAF5; }
.site-footer a:hover { color: #9CC0FF; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--navy-3); }
@media (min-width: 820px) { .footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand p { margin: 0; max-width: 44ch; }
.footer-brand strong { display: block; font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: .2rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .45rem 2.5rem; }
.footer-nav li { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .timeline::before { left: 23px; }
  .chapter { padding-left: 3.75rem; }
  .chapter-marker { width: 50px; }
  .chip { width: 50px; height: 50px; }
  .chip--dot { width: 20px; height: 20px; margin: 15px; }
  .chip--today { width: 62px; height: 62px; margin-inline: -6px; }
  .sector-summary div { padding: .75rem .7rem; }
  .sector-summary strong { font-size: 1.8rem; }
  .sector-summary span { font-size: .8rem; }
  .span-bar span { font-size: 0; padding: 0; }
  .creds .card { flex-direction: column; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .msg-form { display: none; }
  .section--navy, .series, .next-chapter, .site-footer, .band, .stat { background: #fff !important; color: #000 !important; }
}
h2.h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.22rem); line-height: 1.3; letter-spacing: -.005em; margin: 0 0 .5em; }
.exp-card h2.h3 { font-size: 1.18rem; }

/* ==========================================================================
   v2 additions: synthesis, sector lessons, convergence, knowledge library
   ========================================================================== */

/* Synthesis */
.synth { background:
  radial-gradient(800px 420px at 0% 0%, rgba(109, 91, 208, .08), transparent 60%),
  radial-gradient(800px 420px at 100% 100%, rgba(16, 185, 129, .08), transparent 60%), #fff; }
.synth-grid { display: grid; gap: 2.5rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 1000px) { .synth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; } }
.synth-name {
  display: inline-block; margin: 0 0 1rem; font-weight: 600; font-size: .9rem; color: #fff;
  background: linear-gradient(90deg, var(--violet), var(--blue)); padding: .3rem .8rem; border-radius: 999px;
}
.synth-copy h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); max-width: 24ch; }
.synth-copy .lede { color: var(--muted); }

.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: .6rem; }
.ladder li { margin: 0 0 0 calc((4 - var(--i)) * 0px); }
@media (min-width: 640px) { .ladder li { margin-left: calc((4 - var(--i)) * 4.5%); } }
.ladder a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center;
  text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--rule);
  border-left: 6px solid var(--acc); border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ladder a:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); color: var(--text); }
.step-n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; }
.step-body strong { display: block; color: var(--navy); font-size: 1.05rem; }
.step-body span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.step-src { font-size: .78rem; font-weight: 600; color: var(--acc-ink); background: var(--acc-soft); padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .step-src { display: none; } .ladder a { grid-template-columns: auto minmax(0, 1fr); } }

.gets-title { font-size: 1.2rem; margin-bottom: 1rem; }
.get-card { padding: 1.3rem 1.2rem; }
.get-card h3 { color: var(--acc-ink); font-size: 1.05rem; }
.get-card p { font-size: .95rem; }

/* Sector lessons */
.lessons { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 0 0 1.5rem; }
.lesson { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--acc); border-radius: var(--r); padding: 1rem 1.05rem 1.1rem; box-shadow: var(--shadow); }
.lesson header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .6rem; margin-bottom: .4rem; }
.lesson h4 { margin: 0; font-size: 1rem; }
.lesson-count { font-size: .76rem; font-weight: 600; color: var(--acc-ink); background: var(--acc-soft); padding: .1rem .5rem; border-radius: 999px; }
.lesson-work { font-size: .82rem; color: var(--muted); margin: 0 0 .75rem; line-height: 1.45; }
.lesson dl { margin: 0; display: grid; gap: .6rem; }
.lesson dt { font-size: .74rem; font-weight: 700; color: var(--acc-ink); }
.lesson dd { margin: .1rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--text); }

/* Convergence */
.cv-figure { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(.75rem, 2vw, 1.5rem); box-shadow: var(--shadow); }
.cv { width: 100%; height: auto; display: block; }
.cv--narrow { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) { .cv--wide { display: none; } .cv--narrow { display: block; } }
.cv text { font-family: var(--sans); }
.cv .cv-s { font-size: 14px; font-weight: 500; fill: #4A3DA8; }
.cv .cv-sm { font-size: 12px; font-weight: 600; fill: #4A3DA8; }
.cv .cv-c { font-size: 14.5px; font-weight: 600; fill: #fff; }
.cv .cv-c2 { font-size: 12.5px; fill: #ECFDF5; }
.cv .cv-k1 { font-family: var(--serif); font-size: 23px; font-weight: 600; fill: #fff; }
.cv .cv-k2 { font-size: 13px; fill: #9CC0FF; }

/* Knowledge library */
.lib-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: .75rem; margin-top: 2rem; max-width: 900px; }
.lib-stats div { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.lib-stats div:nth-child(1) { border-top: 4px solid var(--blue); }
.lib-stats div:nth-child(2) { border-top: 4px solid var(--violet); }
.lib-stats div:nth-child(3) { border-top: 4px solid var(--teal); }
.lib-stats div:nth-child(4) { border-top: 4px solid var(--emerald); }
.lib-stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--navy); }
.lib-stats span { display: block; font-size: .9rem; color: var(--muted); margin-top: .3rem; }

.filters { position: sticky; top: 4.5rem; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border: 1px solid var(--rule); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: 1.75rem; box-shadow: var(--shadow); display: grid; gap: .6rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filter-label { font-size: .82rem; font-weight: 700; color: var(--navy); min-width: 6.5rem; }
.chip-btn {
  font: 500 .85rem/1.2 var(--sans); color: var(--navy); background: var(--grey); border: 1.5px solid var(--rule);
  border-radius: 999px; padding: .38rem .75rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip-btn:hover { border-color: var(--blue); }
.chip-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-status { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .filters { position: static; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .chip-btn { white-space: nowrap; }
  .filter-label { min-width: auto; margin-right: .3rem; white-space: nowrap; }
}

.lib-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.lib-cluster { padding: 1.6rem 1.5rem; }
.lib-cluster:hover { transform: none; }
.lib-cluster[hidden] { display: none; }
.lib-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.lib-head .icon-tile { margin: 0; flex: none; }
.lib-num { margin: 0; font-size: .8rem; font-weight: 700; color: var(--acc-ink); }
.lib-name { font-family: var(--sans); font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; margin: .1rem 0 0; }
.lib-question { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.4; color: var(--navy) !important; margin-bottom: 1rem !important; }
.lib-who { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.lib-who > span { font-size: .8rem; font-weight: 700; color: var(--navy); margin-right: .2rem; }
.lib-who ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.lib-who li { margin: 0; font-size: .8rem; font-weight: 500; padding: .18rem .6rem; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); }
.lib-impact { background: var(--grey); border-radius: var(--r-sm); padding: .8rem 1rem; color: var(--text) !important; font-size: .95rem !important; }
.lib-impact strong { display: block; font-size: .78rem; color: var(--acc-ink); margin-bottom: .15rem; }
.lib-content { display: grid; gap: .8rem; margin-top: .3rem; }
.lib-series { border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; }
.lib-series summary { cursor: pointer; padding: .8rem 1rem; display: grid; gap: .1rem; list-style: none; position: relative; padding-right: 2.5rem; }
.lib-series summary::-webkit-details-marker { display: none; }
.lib-series summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; }
.lib-series[open] summary::after { content: "\2212"; }
.lib-series summary:hover .lib-series-title { color: var(--acc-ink); }
.lib-series-title { font-weight: 700; color: var(--navy); }
.lib-meta { font-size: .8rem; color: var(--muted); font-weight: 400; }
.lib-series ol { margin: 0; padding: .2rem 1rem 1rem 2.4rem; display: grid; gap: .35rem; border-top: 1px solid var(--rule); padding-top: .8rem; }
.lib-series ol li::marker { color: var(--acc-ink); font-weight: 700; }
.lib-series li, .lib-items li { margin: 0; font-size: .93rem; line-height: 1.45; }
.lib-series a, .lib-items a { color: var(--navy); text-decoration-color: var(--acc); font-weight: 500; }
.lib-series a:hover, .lib-items a:hover { color: var(--acc-ink); }
.lib-sum { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.lib-items-title { font-weight: 700; color: var(--navy) !important; margin: 0 0 .4rem !important; font-size: .95rem !important; }
.lib-items ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.lib-items li::marker { color: var(--acc); }
.lib-tools { margin-top: 1rem; }
.lib-tools p { font-size: .8rem !important; font-weight: 700; color: var(--navy) !important; margin-bottom: .4rem !important; }
.lib-tools .pill-row li { font-size: .85rem; padding: .3rem .75rem; }
.lib-note { margin-top: 1rem !important; font-size: .86rem !important; border-left: 3px solid var(--amber); padding: .5rem .8rem; background: var(--amber-soft); color: #78350F !important; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pipeline { border: 1.5px dashed var(--amber); background: var(--amber-soft); border-radius: var(--r-sm); padding: .8rem 1rem; }
.pipeline .badge { --acc: var(--amber); --acc-ink: var(--amber-ink); --acc-soft: #fff; margin-bottom: .4rem; }
.pipeline p { margin: 0 !important; color: var(--navy) !important; font-size: .95rem !important; }

.tk-card { padding: 1.3rem 1.2rem; }
.tk-card h3 { font-size: 1.02rem; }
.tk-card p { font-size: .92rem; margin-bottom: .6rem; }
.tk-who { font-size: .85rem !important; }
.tk-who strong { color: var(--acc-ink); margin-right: .3rem; }
.tk-card .card-link a { color: var(--acc-ink); font-weight: 600; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 9px; margin-bottom: .9rem; }
.icon-tile--sm svg { width: 22px; height: 22px; }
.contact-methods .icon-tile svg { width: 24px; height: 24px; }

/* Accent classes must win over component defaults (.card sets blue) */
.acc-blue.acc-blue       { --acc: var(--blue);    --acc-ink: var(--blue-ink);    --acc-soft: var(--blue-soft); }
.acc-teal.acc-teal       { --acc: var(--teal);    --acc-ink: var(--teal-ink);    --acc-soft: var(--teal-soft); }
.acc-emerald.acc-emerald { --acc: var(--emerald); --acc-ink: var(--emerald-ink); --acc-soft: var(--emerald-soft); }
.acc-amber.acc-amber     { --acc: var(--amber);   --acc-ink: var(--amber-ink);   --acc-soft: var(--amber-soft); }
.acc-violet.acc-violet   { --acc: var(--violet);  --acc-ink: var(--violet-ink);  --acc-soft: var(--violet-soft); }

/* Five-up grids: 5 across on wide screens, 2 + 3 on medium, 1 on small */
@media (min-width: 700px) and (max-width: 1099px) {
  .grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--5 > * { grid-column: span 2; }
  .grid--5 > *:nth-child(1), .grid--5 > *:nth-child(2) { grid-column: span 3; }
}
@media (min-width: 1100px) { .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } .grid--5 .card { padding: 1.4rem 1.2rem; } .grid--5 .card p { font-size: .94rem; } }

/* Library: one topic per row, two internal columns on wide screens */
.lib-grid { grid-template-columns: 1fr !important; }
.lib-body { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .lib-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: start; } }
.lib-side .lib-impact { margin-bottom: 0; }
.lib-cluster { padding: clamp(1.4rem, 3vw, 2rem); }

/* Sector lessons: lead sector spans the row */
@media (min-width: 560px) { .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lessons .lesson:first-child { grid-column: 1 / -1; } }
.worktypes li { font-size: .97rem; }
@media (max-width: 640px) {
  .stat-chart svg { max-width: 210px; }
  .stats { gap: .9rem; }
  .get-card, .tk-card { padding: 1.1rem 1.1rem; }
}
.stats { grid-template-columns: 1fr; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--exp { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--exp { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--exp > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .grid--exp { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--exp > * { grid-column: span 2; }
  .grid--exp > :nth-child(1), .grid--exp > :nth-child(2) { grid-column: span 3; }
  .grid--exp > :last-child { grid-column: span 2; }
}
.cv--narrow .cv-sm { font-size: 14.5px; }
.cv--narrow .cv-c { font-size: 17px; }
.cv--narrow .cv-c2 { font-size: 14px; }
.cv--narrow .cv-k1 { font-size: 24px; }
.cv--narrow .cv-k2 { font-size: 14px; }

/* v3: tool subtitle, audit stories */
.tool-sub { line-height: 1.45; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: -.35rem 0 .6rem; }
.story-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.story { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--story-acc, var(--blue)); border-radius: 14px; padding: 1.4rem 1.5rem; }
.story .tag { margin-bottom: .6rem; }
.story h4 { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.story p { margin: 0 0 .7rem; }
.story .story-lesson { font-weight: 600; color: var(--navy, #0B1F3A); margin: 0; }

/* ===== v4: more breathing room, fewer cramped rows ===== */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sec-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.grid { gap: 1.75rem; }
.card { padding: clamp(1.6rem, 2.4vw, 2.1rem); }
.card p { font-size: 1.02rem; line-height: 1.65; }
.card h3 { line-height: 1.3; }
.more-link { margin-top: 2.25rem; }

/* five areas on Home: 3 + 2, wide enough to read */
@media (min-width: 900px) { .grid--areas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--areas > * { grid-column: span 2; }
  .grid--areas > :nth-child(4) { grid-column: 2 / span 2; } }

/* principles and timeline cards: a little more room */
.principles { gap: 1.5rem; }
.principles li { padding: 1.75rem 1.6rem; }
.arc { gap: 1.25rem; }

/* fold-out blocks (Journey sectors, Library related posts) */
.more-block { margin: 2rem 0 2.5rem; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.more-block > summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.more-block > summary::-webkit-details-marker { display: none; }
.more-block > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.more-block[open] > summary::after { content: "\2212"; }
.more-block[open] > summary { border-bottom: 1px solid var(--rule); }
.more-block > :not(summary) { margin-inline: 1.4rem; }
.more-block > .lessons { margin-top: 1.4rem; }
.more-block > :last-child { margin-bottom: 1.4rem; }
.lesson dd, .lesson .lesson-work { font-size: .95rem; line-height: 1.55; }

.lib-items--fold { margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.lib-items--fold > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; list-style: none; font-weight: 600; color: var(--navy); }
.lib-items--fold > summary::-webkit-details-marker { display: none; }
.lib-items--fold > summary::before { content: "+"; color: var(--blue); font-weight: 700; margin-right: .1rem; }
.lib-items--fold[open] > summary::before { content: "\2212"; }
.lib-items--fold ul { margin-top: .9rem; }
.lib-grid { gap: 2rem !important; }
.lib-cluster { padding: clamp(1.75rem, 3vw, 2.5rem); }
.lib-body { gap: 2rem; }
.lib-impact { line-height: 1.6; }

/* stories: two per row on wide screens, more space */
.story-grid { gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.story { padding: 1.6rem 1.75rem; }
.story p { line-height: 1.65; }
h3 + .story-grid, .journey-layout h3 { margin-top: 2.5rem; }
