/* ══════════════════════════════════════════
   CLOSING THE CARE GAP — css/care-gap.css
   Page-specific styles for the Care Gap case study.
   Requires: css/global.css, css/nav.css
   ══════════════════════════════════════════ */
   
:root {
    /* ── index.html design system (source of truth) ── */
    --bg: #E8EBF1;
    --ink: #1B232E;
    --muted: #525C6B;
    --muted-soft: #616B7A;
    /* per-study accent — teal-leaning slate (Care Gap) */
    --accent: #2C6E72;
    --accent-deep: #1D4B4E;
    --accent-soft: rgba(44,110,114,0.12);
    /* atmosphere orbs (one accent-tinted) */
    --orb-cool: #C7D3EC;
    --orb-warm: #EADFDD;
    --orb-aqua: #CDE2E6;
    /* universal shell accent */
    --shell-accent: #3D5A80;
    --shell-accent-deep: #2C435F;
    --shell-accent-soft: rgba(61,90,128,0.12);
    /* glass */
    --glass: rgba(255,255,255,0.45);
    --glass-2: rgba(255,255,255,0.62);
    --glass-3: rgba(255,255,255,0.80);
    --glass-edge: rgba(255,255,255,0.72);
    --glass-shadow: 0 14px 44px rgba(27,35,46,0.10);
    --glass-inset: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 0 0 1px rgba(255,255,255,0.18);

    /* ── compatibility remap: existing page tokens → the glass/slate system ──
       (the whole page re-skins through these aliases; only --accent changes per study) */
    --paper:      var(--bg);
    --paper-2:    var(--glass-2);
    --mist:       rgba(255,255,255,0.22);
    --ink-soft:   var(--muted);
    --ink-faint:  var(--muted-soft);
    --teal:       var(--accent);
    --teal-deep:  var(--accent-deep);
    --teal-soft:  #7FA6AA;
    --coral:      var(--muted);
    --coral-deep: #3C4654;
    --line:       rgba(27,35,46,0.10);
    --line-soft:  rgba(27,35,46,0.06);
    --serif: 'General Sans', 'Inter', system-ui, sans-serif;
    --sans:  'Satoshi', 'Inter', system-ui, sans-serif;
    --shadow-sm: 0 2px 14px rgba(27,35,46,0.06);
    --shadow-md: var(--glass-shadow);
    --shadow-lg: 0 22px 60px rgba(27,35,46,0.13);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
  }
  a { text-decoration: none; color: inherit; }
  button { font-family: inherit; cursor: pointer; }
  img { max-width: 100%; display: block; }
  ::selection { background: rgba(44,110,114,0.18); }
  :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

  /* ───────── Reveal ───────── */
  .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1),
                transform 0.7s cubic-bezier(0.22,0.61,0.36,1);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .scroll-dot { animation: none !important; }
  }

  /* ───────── Layout shells ───────── */
  main { position: relative; z-index: 1; }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 2.4rem; }
  .wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 2.4rem; }
  .band { padding: 6.5rem 0; position: relative; }
  .band--mist { background: var(--mist); }
  .band--paper2 { background: var(--paper-2); }
  .band--deep {
    background: var(--teal-deep);
    color: #EAF2F0;
  }
  @media (max-width: 760px) { .band { padding: 4.5rem 0; } }

  /* ───────── Section intro ───────── */
  .eyebrow {
    .eyebrow--center { justify-content: center; }.eyebrow--center { justify-content: center; }
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 1.2rem 0;
  }
  .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
  .band--deep .eyebrow { color: var(--teal-soft); }

  .sec-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.08; letter-spacing: -0.01em;
    color: var(--ink); margin: 0 0 1rem 0;
  }
  .sec-title em { font-style: italic; color: var(--teal); }
  .band--deep .sec-title { color: #FCFBF8; }
  .sec-lede {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    line-height: 1.45; color: var(--ink-soft);
    margin: 0 0 2.8rem 0; max-width: 640px;
  }
  .band--deep .sec-lede { color: #BFD6D2; }

  .sub-head {
    .sub-head--push { margin-top: 3.4rem; }
    font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--teal-deep);
    margin: 3rem 0 1rem 0;
    display: flex; align-items: center; gap: 0.8rem;
  }
  .sub-head::before {
    content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px;
  }

  /* ───────── Prose ───────── */
  .prose p {
    font-family: var(--sans); font-size: 1.04rem; font-weight: 400;
    line-height: 1.82; color: var(--ink-soft);
    max-width: 660px; margin: 0 0 1.2rem 0;
  }
  .prose ul, .prose ol {
    font-size: 1.0rem; color: var(--ink-soft);
    line-height: 1.8; max-width: 660px;
    padding-left: 1.3rem; margin: 0 0 1.5rem 0;
  }
  .prose li { margin-bottom: 0.4rem; }
  .prose li::marker { color: var(--teal); }
  .hl {
    background: linear-gradient(180deg, transparent 58%, rgba(221,115,85,0.24) 58%);
    padding: 0 0.1em; color: var(--ink);
  }
  .lead-em {
    font-family: var(--serif); font-style: italic; font-weight: 500;
    color: var(--teal-deep); font-size: 1.06em;
  }
  .term { color: var(--teal-deep); font-weight: 700; }
/* ───────── Reading progress ───────── */
  .read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    z-index: 120; transition: width 0.1s linear;
  }

  /* ───────── Section TOC (sticky) ───────── */
  html { scroll-behavior: smooth; scroll-padding-top: 124px; }
  .toc {
    position: sticky; top: 72px; z-index: 70;
    background: rgba(250,247,241,0.82);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .toc-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 2.4rem;
  display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none;
}
  .toc-inner::-webkit-scrollbar { display: none; }
  .toc-link {
    flex: 0 0 auto; position: relative;
    font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.04em; color: var(--ink-faint); text-decoration: none;
    padding: 0.95rem 0.85rem; transition: color 0.2s; white-space: nowrap;
  }
  .toc-link::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0;
    height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s ease;
  }
  .toc-link:hover { color: var(--ink); }
  .toc-link.is-active { color: var(--teal-deep); }
  .toc-link.is-active::after { transform: scaleX(1); }
  @media (max-width: 720px) { .toc-inner { padding: 0 1.1rem; } .toc-link { padding: 0.8rem 0.65rem; font-size: 0.72rem; } }

  /* ───────── HERO ───────── */
  .hero { padding: 6rem 0 5.5rem 0; position: relative; }
  .hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem; align-items: center;
  }
  @media (max-width: 880px) {
    .hero { padding: 4.5rem 0 3.5rem 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
    margin-bottom: 1.6rem;
  }
  .hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
  .hero-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(3rem, 7.5vw, 6rem);
    line-height: 1.0; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 1.5rem 0;
  }
  .hero-title em { font-style: italic; color: var(--teal); }
  .hero-sub {
    font-family: var(--sans); font-weight: 400;
    font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft);
    max-width: 460px; margin: 0;
  }

  /* arched image frame — the signature motif */
  .arch {
    position: relative; width: 100%;
    border-radius: 180px 180px 18px 18px;
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(127,176,174,0.35), transparent 60%),
      linear-gradient(165deg, #DCEAE7 0%, #EEE7DC 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    aspect-ratio: 3 / 4;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; padding: 2rem; text-align: center;
  }
  .arch--wide { aspect-ratio: 4 / 3; border-radius: 24px 24px 18px 18px; }
  .arch__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(44,110,114,0.12); color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(44,110,114,0.2);
  }
  .arch__cap {
    font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep);
    background: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 24px;
  }
  .arch__note {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: 0.95rem; color: var(--ink-faint); max-width: 240px; line-height: 1.45;
  }

  /* before → after thesis card */
  .thesis {
    margin-top: 3rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 1140px;
  }
  .thesis__label {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
    padding: 1.3rem 2rem 0;
  }
  .thesis__row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 1.5rem;
    padding: 0.8rem 2rem 1.6rem;
  }
  .thesis__cell .k {
    font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral);
    margin-bottom: 0.4rem;
  }
  .thesis__cell.right { text-align: right; }
  .thesis__v {
    font-family: var(--serif); font-weight: 400; line-height: 1;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
  }
  .thesis__v.before {
    color: var(--ink-faint); text-decoration: line-through;
    text-decoration-color: rgba(110,128,126,0.5); text-decoration-thickness: 1px;
  }
  .thesis__v.after { color: var(--teal); font-style: italic; }
  .thesis__arrow { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 2.2rem; line-height: 1; }
  .thesis__foot {
    border-top: 1px solid var(--line-soft);
    background: var(--mist);
    padding: 1.3rem 2rem;
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft);
  }
  @media (max-width: 600px) {
    .thesis__row { grid-template-columns: 1fr; gap: 0.9rem; text-align: center; }
    .thesis__cell.right { text-align: center; }
    .thesis__arrow { transform: rotate(90deg); }
  }

/* ───────── Project Snapshot ───────── */
  .overview-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 48px;
    background: var(--glass-2);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
  }
  .overview-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .overview-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--teal);
  }
  .overview-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
  }
  @media (max-width: 900px) {
    .overview-card { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 650px) {
    .overview-card { grid-template-columns: 1fr; }
  }
  /* ───────── Packet chips ───────── */
  .packet {
    list-style: none; padding: 0; margin: 1.6rem 0 1.8rem;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.7rem; max-width: 100%;
  }
  @media (max-width: 880px) { .packet { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 520px) { .packet { grid-template-columns: repeat(2, 1fr); } }
  .packet-item {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 1rem 0.6rem 0.85rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  }
  .packet-item:hover {
    transform: translateY(-3px); border-color: rgba(221,115,85,0.45);
    box-shadow: var(--shadow-sm);
  }
  .packet-item .pi {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(44,110,114,0.1); color: var(--teal-deep);
    transition: background 0.25s, color 0.25s;
  }
  .packet-item:hover .pi { background: rgba(221,115,85,0.16); color: var(--coral-deep); }
  .packet-item .pl {
    font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
    line-height: 1.3; color: var(--ink); text-wrap: balance;
  }

  /* ───────── Pull quote (scripture-style) ───────── */
  .pullquote {
    margin: 2.6rem 0; max-width: 720px;
    padding: 2.2rem 2.4rem;
    background: var(--paper-2); border: 1px solid var(--line);
    border-left: 3px solid var(--coral); border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }
  .pullquote p {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); margin: 0;
  }
  .pullquote .attr {
    display: block; margin-top: 1.3rem;
    font-family: var(--sans); font-style: normal; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  }
  /* deep-band quote variant */
  .quote-deep { text-align: center; max-width: 780px; margin: 0 auto; }
  .quote-deep p {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.5; color: #F4F1E9; margin: 0;
  }
  .quote-deep .attr {
    display: block; margin-top: 1.6rem;
    font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-soft);
  }

  /* ───────── Discovery: person + question bubbles ───────── */
  .think {
    display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center;
    margin: 1.6rem 0 1.6rem; max-width: 720px;
  }
  @media (max-width: 700px) { .think { grid-template-columns: 1fr; justify-items: center; } }
  .think-person { width: 170px; height: 210px; color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center; }
  .think-person svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(24,74,78,0.1)); }
  .bubbles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  @media (max-width: 520px) { .bubbles { grid-template-columns: 1fr; } }
  .bubble {
    position: relative; background: var(--paper-2); border: 1px solid var(--line);
    border-radius: 16px 16px 16px 5px; padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 0.96rem; line-height: 1.4; color: var(--ink-soft);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
  }
  .bubble:hover, .bubble:focus-visible {
    transform: translateY(-3px); color: var(--ink);
    border-color: rgba(44,110,114,0.4); box-shadow: var(--shadow-md);
  }
  .bubble .qn {
    font-family: var(--serif); font-style: italic; font-weight: 600;
    color: var(--coral); margin-right: 0.4rem;
  }

  /* psychology concept cards */
  .psych-pull {
    display: flex; gap: 1rem; align-items: center;
    margin: 0.5rem 0 1.6rem; padding: 1.3rem 1.5rem; max-width: 660px;
    background: var(--mist); border: 1px solid var(--line); border-radius: 16px;
  }
  .psych-pull .pic {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(44,110,114,0.12); color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
  }
  .psych-pull p {
    margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: 1.08rem; line-height: 1.45; color: var(--ink);
  }
  .psych-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
  @media (max-width: 700px) { .psych-row { grid-template-columns: 1fr; } }
  .psych-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.4rem 1.4rem; background: var(--paper-2);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s; cursor: default;
  }
  .psych-card:hover, .psych-card:focus-visible {
    transform: translateY(-4px); box-shadow: var(--shadow-md); outline: none;
  }
  .psych-card .pic {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
    background: linear-gradient(150deg, rgba(44,110,114,0.18), rgba(127,176,174,0.12));
    border: 1px solid rgba(44,110,114,0.16); color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
  }
  .psych-card:hover .pic { transform: scale(1.05); }
  .psych-label {
    font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral);
  }
  .psych-term {
    font-family: var(--serif); font-weight: 600; font-style: italic;
    font-size: 1.12rem; color: var(--teal-deep); margin: 0.2rem 0;
  }
  .psych-def { font-family: var(--sans); font-weight: 400; font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

  /* failure cards */
  .failures { margin: 1.6rem 0 1.2rem; }
  .failures .lede { font-family: var(--sans); font-weight: 400; font-size: 1.0rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 920px; margin:0 auto 40px; }
.failures .close{
    max-width:1320px;
    margin:36px auto 0;
}
 .failure-row{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:24px;
    align-items:stretch;

    max-width:1320px;
    margin:40px auto;
 }
  @media (max-width: 1040px) { .failure-row { grid-template-columns: repeat(3, 1fr); } }
  .failure-card {
    padding: 1.3rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.6rem;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .failure-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .failure-icon {
    width: 36px; height: 36px; border-radius: 11px;
    background: rgba(44,110,114,0.1); color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.35s, background 0.3s;
  }
  .failure-card:hover .failure-icon { transform: scale(1.08) rotate(-4deg); background: rgba(221,115,85,0.14); color: var(--coral-deep); }
  .failure-num { font-family: var(--serif); font-style: italic; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral); }
  .failure-title { font-family: var(--serif); font-weight: 600; font-size: 1.04rem; line-height: 1.25; color: var(--ink); margin: 0; }
  .failure-body { font-family: var(--sans); font-weight: 400; font-size: 0.82rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

  /* image / diagram placeholder */
  .placeholder {
    width: 100%; max-width: 680px; margin: 2.4rem 0;
    min-height: 280px; background: var(--mist);
    border: 1px dashed rgba(44,110,114,0.4); border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.9rem; padding: 2rem; text-align: center;
  }
  .placeholder .ph-ic {
    width: 52px; height: 52px; border: 1px dashed rgba(44,110,114,0.45);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal);
  }
  .placeholder .ph-tag { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }

  /* ───────── Solution steps ───────── */
  .steps { margin-top: 2.5rem; position: relative; }
  .step {
    display: grid; grid-template-columns: 86px 1fr; gap: 2rem; align-items: start;
    padding: 2.2rem 0; position: relative;
    border-top: 1px solid var(--line);
  }
  @media (max-width: 720px) { .step { grid-template-columns: 1fr; gap: 0.8rem; } }
  .step-num {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(2.6rem, 4vw, 3.4rem); color: var(--teal-soft); line-height: 0.9;
    position: relative;
  }
  .step-num::after {
    content: ""; position: absolute; left: 50%; top: 3.4rem; bottom: -2.2rem;
    width: 2px; background: linear-gradient(var(--teal-soft), transparent);
    transform: translateX(-50%); opacity: 0.5;
  }
  @media (max-width: 720px) { .step-num::after { display: none; } }
  .step:last-child .step-num::after { display: none; }
  .step-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--ink); line-height: 1.2; margin: 0 0 0.4rem; }
  .step-solving { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.98rem; color: var(--coral-deep); margin: 0 0 1.2rem; }
  .step-body p { font-family: var(--sans); font-weight: 400; font-size: 1.0rem; line-height: 1.78; color: var(--ink-soft); margin: 0 0 1rem; max-width: 640px; }

  /* tracker mock */
  .tracker {
    margin-top: 1.8rem;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.3rem 1.2rem 1.1rem; box-shadow: var(--shadow-sm); overflow: hidden;
  }
  .tracker__head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
    padding-bottom: 0.9rem; margin-bottom: 0.5rem;
  }
  .tracker__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--teal-deep); }
  .tracker__sub { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
  .tracker__scroll { overflow-x: auto; }
  .tracker table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
  .tracker th {
    text-align: left; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--teal); padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--line); white-space: normal;
  }
  .tracker td {
    font-size: 0.72rem; font-weight: 400; color: var(--ink); padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--line-soft); line-height: 1.35; vertical-align: middle;
    font-variant-numeric: tabular-nums;
  }
  .tracker tbody tr:last-child td { border-bottom: 0; }
  .tracker tbody tr:hover { background: rgba(44,110,114,0.05); }
  .pill {
    display: inline-block; padding: 3px 9px; border-radius: 30px;
    font-family: var(--sans); font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  }
  .pill-open      { background: rgba(221,115,85,0.18); color: var(--coral-deep); }
  .pill-awaiting  { background: rgba(226,163,60,0.2);  color: #9A6A12; }
  .pill-sent      { background: rgba(110,128,126,0.18); color: var(--ink-faint); }
  .pill-scheduled { background: rgba(44,110,114,0.16);  color: var(--teal-deep); }
  .pill-closed    { background: rgba(24,74,78,0.16);    color: var(--teal-deep); }
  .tracker__cap { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--ink-faint); font-size: 0.92rem; margin: 1.1rem 0 0; max-width: 620px; }

  /* ───────── Outcomes ───────── */
  .headline-stat { margin: 1.8rem 0 2.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
  .headline-stat .big { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.05; color: var(--ink); margin: 0; }
  .headline-stat .big em { font-style: italic; color: var(--teal); margin: 0 0.15em; }

  .numbers { border-top: 1px solid var(--line); margin-top: 1rem; }
  .num-row {
    display: grid; grid-template-columns: 290px 1fr; gap: 1.6rem;
    padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); align-items: baseline;
  }
  .num-row dt { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--teal-deep); margin: 0; }
  .num-row dd { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.0rem; color: var(--ink-soft); line-height: 1.6; }
  @media (max-width: 680px) { .num-row { grid-template-columns: 1fr; gap: 0.3rem; } }

  .mic-drop { margin: 3.5rem 0 0; max-width: 760px; }
  .mic-drop p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.4; color: var(--ink); margin: 0; }
  .mic-drop .accent { color: var(--teal); }

  /* ───────── Reflection ───────── */
  .refl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.4rem; }
  @media (max-width: 940px) { .refl-grid { grid-template-columns: 1fr; } }
  .refl-card {
    padding: 2rem 1.8rem; background: var(--paper-2); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform 0.35s, box-shadow 0.35s;
  }
  .refl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
  .refl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
  .refl-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(44,110,114,0.1); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(44,110,114,0.14); }
  .refl-n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--teal-soft); }
  .refl-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.45rem); color: var(--ink); line-height: 1.25; margin: 0 0 0.8rem; }
  .refl-body p { font-family: var(--sans); font-weight: 400; font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft); margin: 0; }

  /* ───────── Decision Log ───────── */
  .declog { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2.4rem; }
  .declog-row {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s;
  }
  .declog-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .declog-q {
    display: flex; align-items: baseline; gap: 0.8rem;
    padding: 1.4rem 1.7rem 1.1rem; border-bottom: 1px solid var(--line-soft);
  }
  .declog-q .dq-n { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--teal-soft); flex-shrink: 0; }
  .declog-q .dq-t { font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; color: var(--ink); margin: 0; }
  .declog-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
  @media (max-width: 800px) { .declog-chain { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .declog-chain { grid-template-columns: 1fr; } }
  .declog-cell { background: var(--paper-2); padding: 1.1rem 1.4rem; }
  .declog-cell .dc-k { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.4rem; }
  .declog-cell .dc-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-soft); flex-shrink: 0; }
  .declog-cell.is-decision { background: rgba(44,110,114,0.05); }
  .declog-cell.is-decision .dc-k { color: var(--teal-deep); }
  .declog-cell .dc-v { font-family: var(--sans); font-size: 0.86rem; font-weight: 400; line-height: 1.6; color: var(--ink-soft); margin: 0; }
  .declog-cell .dc-v b { color: var(--ink); font-weight: 600; }
  .declog-trade { padding: 0.95rem 1.7rem; background: rgba(221,115,85,0.06); border-top: 1px solid var(--line-soft); }
  .declog-trade .dt-k { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); }
  .declog-trade .dt-v { font-family: var(--sans); font-size: 0.86rem; font-weight: 400; line-height: 1.6; color: var(--ink-soft); margin: 0.3rem 0 0; }

  /* ───────── Next / footer ───────── */
  .next { padding: 6.5rem 0 0; }
  .next-eyebrow { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: 1.2rem; }
  .next-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; color: #FCFBF8; margin: 0 0 0.5rem; }
  .next-title em { font-style: italic; color: var(--teal-soft); }
  .next-link {
    display: inline-flex; align-items: baseline; gap: 0.9rem;
    font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.1;
    color: #EAF2F0; transition: gap 0.25s, color 0.25s;
  }
  .next-link:hover { color: var(--coral); gap: 1.4rem; }
  .next-link .arrow { font-style: italic; color: var(--coral); }
  .foot {
    border-top: 1px solid rgba(234,242,240,0.16);
    margin-top: 4rem; padding: 2.2rem 0 3rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    font-family: var(--sans); font-size: 0.78rem; color: #A9C4C0;
  }
  .foot a { transition: color 0.2s; letter-spacing: 0.04em; }
  .foot a:hover { color: var(--coral); }

  /* ───────── Prev / Next pager ───────── */
  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
  @media (max-width: 640px) { .pager { grid-template-columns: 1fr; } }
  .pager-card {
    display: block; padding: 1.6rem 1.8rem; border-radius: 18px;
    border: 1px solid rgba(234,242,240,0.18); background: rgba(255,255,255,0.04);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
  }
  .pager-card:hover { background: rgba(255,255,255,0.08); border-color: var(--coral); transform: translateY(-2px); }
  .pager-card.is-next { text-align: right; }
  .pager-dir { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 0.5rem; }
  .pager-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: #FCFBF8; margin: 0; }
  .pager-card.is-disabled { opacity: 0.4; pointer-events: none; }

  /* ───────── Related projects ───────── */
  .related-head { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 1.4rem; }
  .related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  @media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
  .related-card {
    display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem 1.8rem; border-radius: 18px;
    border: 1px solid rgba(234,242,240,0.18); background: rgba(255,255,255,0.04);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
  }
  .related-card:hover { background: rgba(255,255,255,0.08); border-color: var(--coral); transform: translateY(-2px); }
  .related-card .rc-tag { font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-soft); }
  .related-card .rc-title { font-family: var(--serif); font-size: 1.35rem; color: #FCFBF8; margin: 0; }
  .related-card .rc-desc { font-family: var(--sans); font-size: 0.86rem; line-height: 1.6; color: #A9C4C0; margin: 0; }

  /* ───────── SHARED FOOTER COMPONENT (global site navigation) ─────────
     Same component as the homepage & First Service — identical IA, layout
     logic, nav structure, interaction & accessibility. Care Gap skin below
     (deep teal, editorial). */
  .site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid rgba(234,242,240,0.16); }
  @media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.6rem; } }
  @media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
  .sf-brand .sf-logo { font-family: var(--serif); font-size: 1.4rem; color: #FCFBF8; display: inline-block; margin-bottom: 0.6rem; }
  .sf-brand .sf-logo em { font-style: italic; color: var(--teal-soft); }
  .sf-brand p { font-family: var(--sans); font-size: 0.84rem; line-height: 1.6; color: #A9C4C0; max-width: 260px; margin: 0; }
  .sf-col h4 { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 1rem; }
  .sf-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
  .sf-col a { font-family: var(--sans); font-size: 0.86rem; color: #C8DBD8; transition: color 0.2s, padding-left 0.2s; }
  .sf-col a:hover { color: var(--coral); padding-left: 3px; }
  .site-footer__bottom { border-top: 1px solid rgba(234,242,240,0.16); margin-top: 4rem; padding: 2.2rem 0 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--sans); font-size: 0.78rem; color: #A9C4C0; }
  .site-footer__bottom .sf-sign { letter-spacing: 0.02em; }
  .site-footer__bottom .sf-meta { color: var(--teal-soft); letter-spacing: 0.06em; }

  /* ═══════════════════════════════════════════════
     NEW VISUAL MODULES
     ═══════════════════════════════════════════════ */

  /* ───────── problem solved / Double Diamond ───────── */
  .dd-wrap { margin-top: 2.4rem; }
  .dd-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .dd-phases {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem;
  }
  @media (max-width: 820px) { .dd-phases { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .dd-phases { grid-template-columns: 1fr; } }
  .dd-phase {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--teal);
  }
  .dd-phase:nth-child(2), .dd-phase:nth-child(4) { border-top-color: var(--coral); }
  .dd-phase h4 {
    font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--teal); margin: 0 0 0.2rem;
  }
  .dd-phase:nth-child(2) h4, .dd-phase:nth-child(4) h4 { color: var(--coral-deep); }
  .dd-phase .dd-mode { font-family: var(--serif); font-style: italic; font-size: 0.86rem; color: var(--ink-faint); display: block; margin-bottom: 0.7rem; }
  .dd-phase ul { list-style: none; padding: 0; margin: 0; }
  .dd-phase li {
    font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--ink-soft);
    line-height: 1.45; padding-left: 1.1rem; position: relative; margin-bottom: 0.45rem;
  }
  .dd-phase li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-soft); }

  .method-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
  .method-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 30px;
    padding: 0.5rem 0.95rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  }
  .method-chip svg { color: var(--teal); }

  /* ───────── Research methods strip ───────── */
  .rmethods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.6rem 0 0.4rem; max-width: 720px; }
  @media (max-width: 700px) { .rmethods { grid-template-columns: 1fr 1fr; } }
  .rmethod {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.1rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
  }
  .rmethod .n { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.9rem; color: var(--teal); line-height: 1; }
  .rmethod .l { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; margin-top: 0.5rem; display: block; }

  /* ───────── Service journey map (Before / After) ───────── */
  .bp-tabs { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 40px; padding: 3px; margin-bottom: 1.8rem; box-shadow: var(--shadow-sm); }
  .bp-tab {
    border: none; background: none; cursor: pointer;
    font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); padding: 0.55rem 1rem; border-radius: 40px; transition: background 0.25s, color 0.25s;
  }
  .bp-tab.is-active { background: var(--teal); color: #fff; }
  .bp-tab.is-active.is-before { background: var(--coral); }
  .bp-panel { display: none; }
  .bp-panel.is-active { display: block; }
  .bp-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1rem; }
  .bp-leg { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
  .bp-leg .sw { width: 14px; height: 14px; border-radius: 5px; }
.bp-scroll {
  padding-left: 0;
}
.bp-content {
  max-width: 1360px;
  margin: 0 auto;
}
.bp-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 170px));
  justify-content: center;
  gap: 12px;
}

.bp-stage {
  position: relative;
  min-width: 0;
}

.bp-card {
  min-width: 0;
}
.bp-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% - 4px);
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--teal-soft);
  z-index: 2;
}
.bp-panel.is-before .bp-stage:not(:last-child)::after {
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0 4px,
    transparent 4px 8px
  );
}
  .bp-step {
    font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-faint); height: auto;
    margin-bottom: 8px; display: flex; justify-content: center;
  }
  .bp-card {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 0.65rem 0.65rem; box-shadow: var(--shadow-sm); height: 100%; min-height: 140px;
    display: flex; flex-direction: column; gap: 0.68rem;
  }
  .bp-card h5 { font-family: var(--serif); font-weight: 600; font-size: 0.85rem; line-height: 1.2; color: var(--ink); margin: 0; min-height: 2.6em;
   display: flex;
   align-items: flex-start;}
  .bp-card p { font-family: var(--sans); font-size: 0.68rem; font-weight: 400; line-height: 1.45; color: var(--ink-soft); margin: 0; }
  .bp-owner {
    margin-top: auto; align-self: flex-start;
    font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 20px;
  }
  .bp-owner.patient   { background: rgba(226,163,60,0.18); color: #946410; }
  .bp-owner.mercy     { background: rgba(44,110,114,0.16); color: var(--teal-deep); }
  .bp-owner.specialist{ background: rgba(127,176,174,0.22); color: var(--teal-deep); }
  .bp-owner.system    { background: rgba(44,110,114,0.16); color: var(--teal-deep); }
  .bp-owner.none      { background: rgba(221,115,85,0.18); color: var(--coral-deep); }
  .bp-card.gap { border-style: dashed; border-color: rgba(221,115,85,0.5); background: rgba(221,115,85,0.04); }
  .bp-flag {
    font-family: var(--sans); font-size: 0.6rem; font-weight: 700; color: var(--coral-deep);
    display: inline-flex; align-items: center; gap: 0.3rem;
  }
  .bp-flag.good { color: var(--teal); }
  .bp-sentiment { margin-top: 0.6rem; }
  .bp-sentiment svg { display: block; width: 100%; height: 72px; overflow: visible; }
  .bp-hint { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.6rem; display: none; }
  @media (max-width: 760px) { .bp-hint { display: block; } }

  /* ───────── System map ───────── */
  .sysmap { margin-top: 1rem; }
  .sysmap svg { width: 100%; height: auto; display: block; overflow: visible; }
  .sysmap-node rect { transition: fill 0.25s; }

  /* ───────── Lo-fi → refined ───────── */
  .iter { display: grid; grid-template-columns: 0.85fr auto 1.15fr; gap: 1.4rem; align-items: center; margin: 1.8rem 0; }
  @media (max-width: 820px) { .iter { grid-template-columns: 1fr; gap: 1rem; } }
  .iter-arrow { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 1.6rem; text-align: center; }
  @media (max-width: 820px) { .iter-arrow { transform: rotate(90deg); } }
  .iter-tag { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.55rem; }S
  .iter-tag.lo { color: var(--ink-faint); }
  .iter-tag.hi { color: var(--teal); }
  .lofi {
    background: #F3F0E8; border: 1.5px dashed rgba(24,74,78,0.35); border-radius: 14px;
    padding: 1rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .lofi svg { width: 100%; height: auto; display: block; }

  .annot { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  @media (max-width: 760px) { .annot { grid-template-columns: 1fr; } }
  .annot-card { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem; display: flex; gap: 0.8rem; }
  .annot-n {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff;
    font-family: var(--serif); font-style: italic; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  }
  .annot-card p { margin: 0; font-family: var(--sans); font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
  .annot-card strong { color: var(--ink); font-weight: 700; }

  /* ───────── Component library ───────── */
  .complib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
  @media (max-width: 760px) { .complib { grid-template-columns: 1fr; } }
  .comp {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  }
  .comp-head { padding: 1rem 1.2rem 0.8rem; border-bottom: 1px solid var(--line-soft); }
  .comp-head .ct { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0; }
  .comp-head .cs { font-family: var(--sans); font-size: 0.7rem; color: var(--ink-faint); margin: 0.15rem 0 0; }
  .comp-body { padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
  /* status taxonomy */
  .tax-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.65rem; }
  .tax-row:last-child { margin-bottom: 0; }
  .tax-row .pill { flex-shrink: 0; min-width: 92px; text-align: center; }
  .tax-row span.d { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); line-height: 1.4; }
  /* contact card mock */
  .mockcard { font-family: var(--sans); }
  .mockcard .mc-name { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--teal-deep); }
  .mockcard .mc-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.8rem; }
  .mockcard .mc-line:last-child { border-bottom: 0; }
  .mockcard .mc-k { color: var(--ink-faint); font-weight: 600; }
  .mockcard .mc-v { color: var(--ink); text-align: right; }
  /* checklist */
  .checklist { list-style: none; padding: 0; margin: 0; }
  .checklist li { display: flex; align-items: flex-start; gap: 0.6rem; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.5rem; line-height: 1.4; }
  .checklist li:last-child { margin-bottom: 0; }
  .checklist .box { flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--teal); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
  .checklist .box.on { background: var(--teal); }
  .checklist .box svg { color: #fff; }
  /* prep guide steps */
  .prepsteps { counter-reset: ps; list-style: none; padding: 0; margin: 0; }
  .prepsteps li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }
  .prepsteps li:last-child { margin-bottom: 0; }
  .prepsteps li::before {
    counter-increment: ps; content: counter(ps); position: absolute; left: 0; top: -1px;
    width: 22px; height: 22px; border-radius: 50%; background: rgba(44,110,114,0.12); color: var(--teal-deep);
    font-family: var(--serif); font-style: italic; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
  }

  /* ───────── Outcomes charts ───────── */
  .viz { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0 1rem; }
  @media (max-width: 860px) { .viz { grid-template-columns: 1fr; } }
  .viz-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.3rem 1.2rem; box-shadow: var(--shadow-sm); }
  .viz-card h4 { font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin: 0 0 0.9rem; }
  .viz-card svg { width: 100%; height: auto; display: block; overflow: visible; }
  .viz-note { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); margin-top: 1rem; font-style: italic; }
  .viz-big { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--teal); line-height: 1; }
  .viz-big.coral { color: var(--coral); }
  .viz-sub { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.3rem; }

  /* ═══════════ FIGMA-STYLE CANVAS · STORYBOARD · JOURNEY MAP ═══════════ */
  .band--canvas {
    background-color: #EBEFEE;
    background-image: radial-gradient(circle, rgba(24,74,78,0.12) 1.1px, transparent 1.1px);
    background-size: 24px 24px;
  }
  .canvas-inner { position: relative; }
  .canvas-chrome {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 0.55rem 0.95rem; box-shadow: var(--shadow-sm); margin-bottom: 1.8rem;
  }
  .canvas-chrome .file { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; font-weight: 500; color: var(--ink); }
  .canvas-chrome .file b { color: var(--teal); font-weight: 600; }
  .canvas-chrome .sep { width: 1px; height: 18px; background: var(--line); }
  .canvas-chrome .tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.03em; }
  .canvas-chrome .avatars { margin-left: auto; display: flex; }
  .canvas-chrome .av { width: 23px; height: 23px; border-radius: 50%; border: 2px solid var(--paper-2); margin-left: -7px; font-family: var(--sans); font-size: 0.58rem; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; }

  .frame-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; font-weight: 500;
    color: #889B99; letter-spacing: 0.02em; margin-bottom: 7px;
    display: flex; align-items: center; gap: 5px;
  }
  .frame-label::before { content: "#"; color: var(--teal-soft); font-weight: 600; }

  /* Storyboard */
  .storyboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin: 1.3rem 0 0.4rem; }
  @media (max-width: 860px) { .storyboard { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 460px) { .storyboard { grid-template-columns: 1fr; } }
  .sb-frame { display: flex; flex-direction: column; }
  .sb-illo {
    background: linear-gradient(160deg, #EFF3F1, #FBF6EF); border: 1px solid var(--line);
    border-radius: 10px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s; color: var(--teal-deep);
  }
  .sb-frame:hover .sb-illo { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .sb-illo svg { width: 80%; height: 80%; }
  .sb-frame.solved .sb-illo { background: linear-gradient(160deg, #D7ECE6, #E8F3EF); border-color: rgba(44,110,114,0.4); }

  /* Journey map (FigJam matrix) */
  .jmap-frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 1.1rem 1.1rem 1.3rem; }
  .jmap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .jmap { display: grid; grid-template-columns: 118px repeat(4, minmax(152px, 1fr)); gap: 9px; min-width: 730px; }
  .jmap-rl { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; }
  .jmap-stage { background: var(--teal-deep); color: #EAF2F0; border-radius: 8px; padding: 0.55rem 0.7rem; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; line-height: 1.1; }
  .jmap-stage span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.54rem; font-weight: 500; letter-spacing: 0.1em; color: var(--teal-soft); margin-bottom: 3px; }
  .sticky { border-radius: 2px 2px 13px 2px; padding: 0.65rem 0.7rem; font-family: var(--sans); font-size: 0.77rem; line-height: 1.34; color: #283937; box-shadow: 2px 3px 0 rgba(24,48,46,0.07); min-height: 76px; display: flex; flex-direction: column; gap: 0.4rem; transition: transform .25s, box-shadow .25s; }
  .sticky:nth-child(odd) { transform: rotate(-0.5deg); }
  .sticky:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 4px 6px 0 rgba(24,48,46,0.1); z-index: 2; }
  .sticky--cream { background: #FBF0D0; }
  .sticky--coral { background: #F6D1C4; }
  .sticky--teal  { background: #CCE5DF; }
  .jmap-flag { align-self: flex-start; margin-top: auto; font-family: 'IBM Plex Mono', monospace; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 20px; display: inline-flex; gap: 4px; align-items: center; }
  .sticky--coral .jmap-flag { background: rgba(194,92,63,0.18); color: var(--coral-deep); }
  .sticky--teal .jmap-flag  { background: rgba(44,110,114,0.18); color: var(--teal-deep); }
  .jmap-feeling { grid-column: 2 / span 4; padding-top: 0.2rem; }
  .jmap-feeling svg { display: block; width: 100%; height: 78px; overflow: visible; }
  .jmap-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; color: var(--ink-faint); }
  .jmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .jmap-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

  /* Multiplayer cursor + comment pin */
  .cursor-tag { position: absolute; pointer-events: none; z-index: 6; }
  .cursor-tag svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22)); display: block; }
  .cursor-tag .nm { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 600; color: #fff; background: var(--teal); padding: 2px 7px; border-radius: 0 9px 9px 9px; white-space: nowrap; position: absolute; left: 12px; top: 13px; }
  .cursor-tag.coral .nm { background: var(--coral); }
  .comment-pin { position: absolute; width: 27px; height: 27px; z-index: 6; }
  .comment-pin span { position: absolute; inset: 0; background: var(--coral); border-radius: 50% 50% 50% 3px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; font-weight: 600; }
  @media (max-width: 760px) { .cursor-tag, .comment-pin { display: none; } }
  .foot-links { display: flex; gap: 1.8rem; }

  /* ───────── Behavior + Systems + Outcomes framework ───────── */
  .bso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.4rem 0 0; }
  @media (max-width: 600px) { .bso { grid-template-columns: 1fr; } }
  .bso-cell {
    padding: 1.2rem 1.3rem; border-radius: 16px;
    border: 1px solid var(--line); background: var(--paper-2);
    box-shadow: var(--shadow-sm);
  }
  .bso-cell:nth-child(1) { border-top: 3px solid var(--teal); }
  .bso-cell:nth-child(2) { border-top: 3px solid var(--coral); }
  .bso-cell:nth-child(3) { border-top: 3px solid var(--teal-deep); }
  .bso-cell .bso-k {
    font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.45rem;
  }
  .bso-cell:nth-child(2) .bso-k { color: var(--coral-deep); }
  .bso-cell:nth-child(3) .bso-k { color: var(--teal-deep); }
  .bso-cell .bso-v { font-family: var(--sans); font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

  /* ───────── Psychology lens inline annotation ───────── */
  .psych-lens {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem;
  }

  /* ───────── Step behavioral tag ───────── */
  .step-psych {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--teal-deep); background: rgba(44,110,114,0.08);
    border: 1px solid rgba(44,110,114,0.16); padding: 4px 11px; border-radius: 20px;
    margin-bottom: 0.6rem;
  }

  /* ═══════════════════════════════════════════════
     GLASS / SLATE SKIN — adopted from index.html
     Shell layers, atmosphere, and component overrides that turn the
     editorial paper system into index's glass/slate vocabulary.
     ═══════════════════════════════════════════════ */

  body { background: var(--bg); position: relative; }

  /* ── Accessibility: skip link (matches index) ── */
  .skip-link {
    position: fixed; top: 10px; left: 50%;
    transform: translateX(-50%) translateY(-160%);
    z-index: 9999; background: var(--accent); color: #fff;
    padding: 10px 20px; border-radius: 30px; font-family: var(--sans);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    transition: transform 0.2s ease;
  }
  .skip-link:focus { transform: translateX(-50%) translateY(0); }

  /* ── Ambient backdrop (index's atmosphere) ── */
  .atmos { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
  .atmos::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(165deg, #EEF1F6 0%, #E5E9F0 48%, #E9E8EE 100%);
  }
  .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
  .orb-1 { width: 46vw; height: 46vw; background: var(--orb-cool); top: -10vw; left: -8vw; }
  .orb-2 { width: 38vw; height: 38vw; background: var(--orb-warm); top: 38%; right: -10vw; opacity: 0.45; }
  .orb-3 { width: 40vw; height: 40vw; background: var(--orb-aqua); bottom: -12vw; left: 22vw; opacity: 0.42; }
  .grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }



  /* ── Shared glass surface helper ── */
  .glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow), var(--glass-inset);
  }

  /* ── Bands become translucent so the atmosphere refracts through ── */
  .band--paper2 { background: rgba(255,255,255,0.16); }
  .band--mist   { background: rgba(255,255,255,0.30); }
  .band--deep   { background: var(--accent-deep); }

  /* ── Frost the editorial cards into glass surfaces ── */
  .snapcard, .thesis, .overview .arch, .arch, .pullquote, .psych-pull, .psych-card,
  .failure-card, .tracker, .dd-phase, .method-chip, .rmethod, .viz-card, .refl-card,
  .declog-row, .comp, .jmap-frame, .canvas-chrome, .bso-cell, .bp-card, .bp-tabs,
  .packet-item, .credentials-card, .annot-card, .sb-illo {
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  /* ── Nav styles mapped to system block above ── */

  /* ── Sticky section TOC → glass ── */
  .toc {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid var(--glass-edge);
  }

  /* ── Reading progress → solid accent (index system) ── */
  .read-progress { background: var(--accent); }

  /* ── Hero overview meta bar (glass .cs-overview, added up front) ── */
  .cs-overview-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 2.4rem;
    border-radius: 18px; overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
  }
  .cs-overview-item { padding: 1.15rem 1.3rem; background: rgba(255,255,255,0.18); }
  .cs-overview-item.is-outcome { background: var(--accent-soft); }
  .cs-overview-label { font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
  .cs-overview-value { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
  @media (max-width: 860px) { .cs-overview-bar { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .cs-overview-bar { grid-template-columns: 1fr; } }

  /* ── Keep Reading / Next project (index pattern) ── */
  .cs-keep { max-width: 760px; margin: 0 auto; padding: 1rem 2.4rem 0; position: relative; z-index: 2; }
  .cs-keep-title { font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 1.2rem; }
  .cs-keep-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
  .cs-keep-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); transition: color 0.2s, gap 0.2s; }
  .cs-keep-link:hover { color: var(--accent); gap: 12px; }
  .cs-back-link { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }

  /* ── Footer: index's light skin (shared bottom chrome) ── */
  .band--deep.next { background: transparent; color: var(--ink); }
  .site-footer__inner { border-top: 1px solid var(--line); }
  .sf-brand .sf-logo { color: var(--ink); }
  .sf-brand .sf-logo em { color: var(--shell-accent); }
  .sf-brand p { color: var(--muted); }
  .sf-col h4 { color: var(--shell-accent); }
  .sf-col a { color: var(--muted); }
  .sf-col a:hover { color: var(--shell-accent); }
  .site-footer__bottom { border-top: 1px solid var(--line); color: var(--muted-soft); }
  .site-footer__bottom .sf-sign { color: var(--ink); }
  .site-footer__bottom .sf-meta { color: var(--muted-soft); }

  /* ── Reduced motion: calm orbs ── */
 @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }