/* Wallet case study — built to Figma "Add cash & wallet — v3 (final fixes)" (230:185) */
:root {
  --bg: #ffffff;
  --ink: #16202a;
  --ink-2: #55626e;
  --ink-3: #475569;
  --line: #d3dae0;
  --violet: #6841ed;
  --violet-2: #5339bd;
  --card: #ffffff;
  --card-line: #dcdee2;
  --tint: #eef2ff;
  --cell: #0f172a;
  --cell-line: #e2e8f0;
  --head-bg: #fafbfd;
  --shadow: 0 4px 20px rgba(15, 23, 42, .1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d1117;
  --ink: #e8edf2;
  --ink-2: #9ba8b4;
  --ink-3: #a3afbb;
  --line: #262e38;
  --violet: #9b85ff;
  --violet-2: #b3a3ff;
  --card: #151b23;
  --card-line: #2a323c;
  --tint: #1b1f3a;
  --cell: #e2e8f0;
  --cell-line: #29313b;
  --head-bg: #181e27;
  --shadow: 0 4px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.ic { width: 1em; height: 1em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 116px; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); text-decoration: none; }
.back .ic { font-size: 16px; transition: transform .2s; }
.back-box { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 104px; padding: 0 10px; border: .5px solid #4a90e2; border-radius: 4px; font: 400 14px/1 "Bricolage Grotesque", Inter, sans-serif; transition: background .2s; }
.back:hover .back-box { background: rgba(104, 65, 237, .06); }
.back:hover .ic { transform: translateX(-3px); }
.topbar-title { font: 400 14px/1.4 "Bricolage Grotesque", Inter, sans-serif; color: var(--ink-2); text-align: right; }

/* ---------- Page grid ---------- */
.page { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1126px); justify-content: center; gap: clamp(40px, 6.25vw, 120px); padding: 48px clamp(24px, 6.1vw, 117px) 0; }

/* ---------- Sidebar ---------- */
.side-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 24px; filter: drop-shadow(0 12px 16px rgba(18, 22, 31, .18)); }
@media (min-width: 1101px) {
  .side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 8px 40px 56px; margin: -8px -40px 0; }
  .side { max-height: calc(100vh - 24px); top: 16px; }
  .side::-webkit-scrollbar { display: none; }
}
@media (min-width: 1101px) and (max-height: 820px) { .side-card { gap: 16px; padding: 20px; } .toc { gap: 8px; } .toc a { padding: 6px 8px; font-size: 13px; } .impact-list li { padding: 10px 0; } }
.meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 18px; background: var(--tint); border-radius: 10px; padding: 10px; }
.meta div { display: flex; flex-direction: column; gap: 6px; }
.meta dt, .eyebrow { font: 600 12px/16px Inter, sans-serif; letter-spacing: 1.92px; text-transform: uppercase; color: var(--violet); }
.meta dd { font: 500 14px/1.4 Inter, sans-serif; color: var(--ink); }
.side-block { display: flex; flex-direction: column; gap: 6px; }
.impact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e3e3e3; color: #626d85; }
[data-theme="dark"] .impact-list li { border-color: var(--line); color: var(--ink-2); }
.impact-list span { font: 500 14px/21px Inter, sans-serif; }
.impact-list b { font: 700 18px/1.2 Inter, sans-serif; letter-spacing: -.4px; }
.role { font: 500 14px/1.5 Inter, sans-serif; color: var(--ink); }
.role-note { font: 400 12px/1.6 Inter, sans-serif; color: #5f636d; }
[data-theme="dark"] .role-note { color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: toc; margin-top: 6px; }
.toc a { display: inline-block; counter-increment: toc; background: rgba(104, 65, 237, .08); color: var(--violet-2); padding: 8px; border-radius: 140px; text-decoration: none; font: 400 14px/1.2 Inter, sans-serif; letter-spacing: .96px; transition: background .2s, color .2s; }
.toc a::before { content: counter(toc) ". "; }
.toc a:hover, .toc a.is-active { background: var(--violet); color: #fff; }
.toc li:first-child a { font-weight: 600; }

/* ---------- Hero ---------- */
.article { min-width: 0; overflow-x: clip; }
.hero { display: flex; flex-direction: column; gap: 36px; padding-bottom: 36px; }
.hero-title { font: 700 66px/1.1 Sora, Inter, sans-serif; letter-spacing: -1.98px; background: linear-gradient(157.3deg, #18002d 1.06%, #6841ed 34.42%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 2px rgba(1, 52, 34, .3)); text-wrap: balance; }
[data-theme="dark"] .hero-title { background-image: linear-gradient(157.3deg, #ffffff 1.06%, #a08cff 40%); filter: none; }
.hero-lead { font: 400 24px/1.6 Inter, sans-serif; color: var(--ink); }
.hero-visual { margin-bottom: 48px; }
.hero-visual img { width: 100%; }

/* ---------- Chapter shell ---------- */
.chapter { border-top: 1px solid var(--line); padding: 48px 0 64px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 24px; }
.ch-head { display: flex; flex-direction: column; gap: 12px; }
.ch-num { font: 800 16px/1.015 Inter, sans-serif; letter-spacing: 4.8px; text-transform: uppercase; color: var(--violet); }
.ch-head h2 { font: 700 36px/1.13 Inter, sans-serif; letter-spacing: -.72px; color: var(--ink); }
.body { font: 400 22px/1.6 Inter, sans-serif; color: var(--ink); }
.body-165 { line-height: 1.65; }
.body-18 { font: 400 18px/1.65 Inter, sans-serif; color: var(--ink); }
.subhead { font: 700 24px/1.25 "Bricolage Grotesque", Inter, sans-serif; color: var(--ink); }
.key-idea { background: linear-gradient(to right, rgba(83, 57, 189, .06), rgba(83, 57, 189, 0)); padding: 12px 0 12px 24px; font: italic 500 18px/1.25 Inter, sans-serif; letter-spacing: -.18px; color: var(--violet-2); }

/* 02 Why it mattered */
.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 12px; }
.statement { background: rgba(238, 242, 255, .8); border: 1px solid rgba(238, 242, 255, .6); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.statement h3 { font: 700 20px/1.3 Inter, sans-serif; color: #0071e3; }
.statement p { font: 500 20px/1.6 Inter, sans-serif; color: #55626e; }
[data-theme="dark"] .statement { background: var(--tint); border-color: transparent; }
[data-theme="dark"] .statement h3 { color: #6cb4ff; }
[data-theme="dark"] .statement p { color: var(--ink-2); }

/* 03 Journey */
.journey { display: flex; justify-content: space-between; align-items: flex-start; padding: 36px 24px; gap: 8px; }
.journey li:not(.arrow) { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; flex: 0 1 200px; }
.journey li:not(.arrow) > .ic { font-size: 32px; color: var(--violet); }
.journey b { font: 700 20px/1.25 Inter, sans-serif; color: #0c0a24; margin-bottom: -8px; }
[data-theme="dark"] .journey b { color: var(--ink); }
.journey span { font: 400 16px/1.6 Inter, sans-serif; color: var(--ink-2); }
.journey .arrow { width: 40px; height: 40px; display: grid; place-items: center; color: #9aa3ad; font-size: 24px; flex: none; margin-top: -4px; }
.ecosystem { background: linear-gradient(to right, rgba(83, 57, 189, .06), rgba(83, 57, 189, 0)); padding: 10px 24px; display: flex; flex-direction: column; gap: 8px; font-style: italic; color: var(--violet-2); }
.eco-label { font: italic 700 13px/1.25 Inter, sans-serif; }
.ecosystem p:last-child { font: italic 500 18px/1.25 Inter, sans-serif; letter-spacing: -.18px; }

/* 04 Research */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 36px 0; }
.stat { display: flex; align-items: flex-start; gap: 16px; padding: 32px 20px; border-radius: 16px; border: 1px solid var(--sb); background: var(--sbg); }
.stat .ibg { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ib); color: var(--sc); font-size: 20px; flex: none; }
.stat div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat b { font: 800 24px/1.2 Inter, sans-serif; color: var(--sc); }
.stat b.sm { font-size: 16px; }
.stat p { font: 500 16px/1.6 Inter, sans-serif; color: #55626e; }
.st-indigo { --sbg: rgba(238,242,255,.8); --sb: rgba(238,242,255,.6); --ib: #eef2ff; --sc: #4f46e5; }
.st-orange { --sbg: rgba(255,247,237,.8); --sb: rgba(255,247,237,.6); --ib: #fff7ed; --sc: #ea580c; }
.st-rose   { --sbg: rgba(255,241,242,.8); --sb: rgba(255,241,242,.6); --ib: #fff1f2; --sc: #e11d48; }
.st-green  { --sbg: rgba(236,253,245,.8); --sb: rgba(236,253,245,.6); --ib: #ecfdf5; --sc: #059669; }
[data-theme="dark"] .stat { --sbg: var(--card); --sb: var(--card-line); --ib: var(--tint); }
[data-theme="dark"] .stat p { color: var(--ink-2); }

.table-card { background: var(--card); border: 1px solid var(--cell-line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table-card th, .table-card td { text-align: left; padding: 12px 24px; height: 72px; font: 500 20px/1.25 Inter, sans-serif; color: var(--cell); border-bottom: 1px solid var(--cell-line); vertical-align: middle; }
.table-card th { height: 68px; padding: 16px 24px; background: var(--head-bg); font-weight: 600; }
.table-card tr > * + * { border-left: 1px solid var(--cell-line); }
.table-card tbody tr:last-child td { border-bottom: 0; }
.t2 td:first-child { font-weight: 600; }
.t2 td:first-child { display: flex; align-items: center; gap: 16px; }
.t2 th { font-weight: 700; }
.th-indigo { color: #4f46e5 !important; }
.th-green { color: #059669 !important; }
[data-theme="dark"] .th-indigo { color: #8b84ff !important; }
[data-theme="dark"] .th-green { color: #34d399 !important; }
.tibg { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 20px; flex: none; }
.ti-rose { background: #fff1f2; color: #e11d48; }
.ti-amber { background: #fffbeb; color: #d97706; }
.ti-violet { background: #f5f3ff; color: #7c3aed; }
.ti-sky { background: #f0f9ff; color: #0284c7; }

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; align-items: start; }
.quote { background: rgba(238, 242, 255, .3); border: 1px solid #c7cdde; border-radius: 16px; padding: 30px 20px 26px; display: flex; flex-direction: column; gap: 16px; }
[data-theme="dark"] .quote { background: var(--card); border-color: var(--card-line); }
.q-label { font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .88px; color: #626044; }
[data-theme="dark"] .q-label { color: #c9c48a; }
.quote blockquote { font: 400 20px/1.5 Inter, sans-serif; color: var(--ink); }
.quote figcaption { font: 400 13px/1.2 Inter, sans-serif; color: var(--ink-2); }

/* 05 Reframe lenses */
.lenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 36px 0; }
.lens { background: var(--card); border: 1px solid var(--lb); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lens-head { display: flex; align-items: center; gap: 16px; }
.lbg { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--li); color: var(--lc); font-size: 24px; flex: none; }
.lens-head p { font: 700 20px/1.2 Inter, sans-serif; color: var(--lc); position: relative; padding-bottom: 6px; }
.lens-head p::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--lc); }
.lens ul { display: flex; flex-direction: column; gap: 16px; }
.lens li { display: flex; align-items: center; gap: 12px; font: 500 16px/1.2 Inter, sans-serif; color: #0d0e15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .lens li { color: var(--ink); }
.lens li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lc); flex: none; }
.lens li .ic { box-sizing: content-box; padding: 8px; border-radius: 8px; background: var(--lt); color: var(--lc); font-size: 16px; }
.ln-violet { --lb: #e9e3ff; --li: #ece9fe; --lt: #f5f3ff; --lc: #7c3aed; }
.ln-blue   { --lb: #dce9fe; --li: #e0f2fe; --lt: #eff6ff; --lc: #2563eb; }
.ln-green  { --lb: #dcfce7; --li: #dcfce7; --lt: #f0fdf4; --lc: #16a34a; }
.ln-orange { --lb: #ffedd5; --li: #ffedd5; --lt: #fff7ed; --lc: #ea580c; }
[data-theme="dark"] .lens { --lb: var(--card-line); --li: var(--tint); --lt: var(--tint); }

/* 06 Lifecycle (SVG, scales with the column) */
.lc-fig { margin: 0; }
.lc-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: Inter, system-ui, sans-serif; }
.lc-svg .lk { fill: none; stroke: #9aa3ad; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lc-svg .tri { fill: #9aa3ad; }
.lc-svg .bn { fill: #fff; font-weight: 700; }
.lc-svg .st { fill: #43f; font-size: 20px; font-weight: 700; }
.lc-svg .bt { font-size: 20px; font-weight: 700; }
.lc-svg .sd { fill: #4b5563; font-size: 16px; }
.lc-svg .ct { fill: #1f2937; font-size: 16px; font-weight: 600; }
.lc-svg .card { fill: #fff; stroke-width: 1; }
.lc-svg use { fill: none; }
[data-theme="dark"] .lc-svg .st { fill: #9b95ff; }
[data-theme="dark"] .lc-svg .sd { fill: var(--ink-2); }
[data-theme="dark"] .lc-svg .ct { fill: var(--ink); }
[data-theme="dark"] .lc-svg .card { fill: var(--card); }
[data-theme="dark"] .lc-svg .cbg { fill: var(--tint); }

/* 07 Decisions */
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 36px 0; }
.decision { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 24px; background: var(--dbg); border: 1px solid var(--db); filter: drop-shadow(0 12px 12px var(--ds)); }
.dc-top { display: flex; flex-direction: column; gap: 24px; }
.dc-row { display: flex; justify-content: space-between; align-items: center; }
.dc-ic { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--di); color: var(--dc); font-size: 21px; }
.dc-badge { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--dc); color: #fff; font: 700 12px/1 Inter, sans-serif; }
.dc-title { display: flex; flex-direction: column; gap: 12px; }
.dc-title h3 { font: 700 20px/1.2 Inter, sans-serif; color: #0f172a; }
.accent { width: 40px; height: 3px; border-radius: 3px; background: var(--dc); }
.decision p { font: 400 16px/1.6 Inter, sans-serif; color: #475569; }
.dc-violet { --dbg: #f5f3ff; --db: #e9d5ff; --ds: rgba(124,58,237,.03); --di: #ede9fe; --dc: #7c3aed; }
.dc-sky    { --dbg: #f0f9ff; --db: #bae6fd; --ds: rgba(2,132,199,.03); --di: #e0f2fe; --dc: #0284c7; }
.dc-green  { --dbg: #ecfdf5; --db: #a7f3d0; --ds: rgba(16,185,129,.03); --di: #d1fae5; --dc: #10b981; }
[data-theme="dark"] .decision { --dbg: var(--card); --db: var(--card-line); --di: var(--tint); }
[data-theme="dark"] .dc-title h3 { color: var(--ink); }
[data-theme="dark"] .decision p { color: var(--ink-2); }
.pills { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font: 600 14px/1.2 Inter, sans-serif; background: var(--pb); color: var(--pc); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pd); }
.p-ok { --pb: #dcfce7; --pc: #15803d; --pd: #22c55e; }
.p-wait { --pb: #fef3c7; --pc: #b45309; --pd: #f59e0b; }
.p-err { --pb: #fee2e2; --pc: #b91c1c; --pd: #ef4444; }
.conn { width: 12px; height: 1px; background: #e2e8f0; flex: none; }
.actions { display: flex; align-items: center; gap: 6px; }
.actions span { flex: 1 1 0; min-width: 0; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; background: var(--card); border: 1px solid var(--db); border-radius: 12px; font: 600 14px/1.2 Inter, sans-serif; color: #475569; }
[data-theme="dark"] .actions span { color: var(--ink-2); }
.actions span .ic { font-size: 18px; color: var(--dc); }
.dc-green .actions span { border-color: #a3facd; }
[data-theme="dark"] .dc-green .actions span { border-color: var(--card-line); }
.dash { flex: 0 0 32px; height: 0; border-top: 1px dashed #6ee7b7; }

/* 08 Screens */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.slot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slot-label { font: 700 18px/1.15 "Bricolage Grotesque", Inter, sans-serif; color: var(--ink); }
.media { height: 330px; padding: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media img { max-height: 100%; width: auto; object-fit: contain; }
.media-before { background: #e9edf0; border: 1px dashed #8b98a3; }
.media-before img { width: 100%; height: auto; }
.media-after { background: #dceded; border: 1px dashed #0e6a6d; }
.slot figcaption, .states figcaption { font: 400 13px/1.4 "Bricolage Grotesque", Inter, sans-serif; color: var(--ink-2); }
.closer { font: 500 13px/1.4 "Bricolage Grotesque", Inter, sans-serif; color: var(--ink-2); text-transform: uppercase; }
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.states figure { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.states img { width: 100%; }
.states b { font-weight: 700; color: var(--ink); }

/* 09 Collaboration */
.teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team { min-height: 320px; padding: 32px; border-radius: 20px; background: var(--tbg); border: 1px solid var(--tb); display: flex; flex-direction: column; gap: 24px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.02)); }
.tm-ic { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--ti); color: var(--tc); font-size: 20.5px; }
.team h3 { font: 700 20px/1.2 Inter, sans-serif; color: var(--tc); margin-bottom: -8px; }
.team ul { display: flex; flex-direction: column; gap: 10px; }
.team li { display: flex; align-items: center; gap: 10px; font: 500 16px/1.2 Inter, sans-serif; color: #4b5563; }
[data-theme="dark"] .team li { color: var(--ink-2); }
.team li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--td, var(--tc)); flex: none; }
.tm-purple { --tbg: #faf5ff; --tb: #e9d5ff; --ti: #f5ecfd; --tc: #7e22ce; --td: #a855f7; }
.tm-blue   { --tbg: #eff6ff; --tb: #bfdbfe; --ti: #e0ecfb; --tc: #1d4ed8; --td: #3b82f6; }
.tm-green  { --tbg: #ecfdf5; --tb: #a7f3d0; --ti: #daf8ea; --tc: #047857; --td: #10b981; }
.tm-orange { --tbg: #fff7ed; --tb: #ffedd5; --ti: #ffecd4; --tc: #f97316; }
[data-theme="dark"] .team { --tbg: var(--card); --tb: var(--card-line); --ti: var(--tint); }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.stage { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-ic { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--bg-c, var(--bg)); color: var(--c); font-size: 21px; }
.stage .st-ic { background: var(--bg); }
.owned .st-ic { border: 1.3px solid var(--bd); }
.stage h3 { font: 700 20px/1.3 Inter, sans-serif; color: var(--c); }
.stage p { font: 400 16px/1.6 Inter, sans-serif; color: var(--ink-2); margin-top: -8px; }
.stage p.p15 { font-size: 15px; }
.owned .stage p { color: var(--ink-3); }
[data-theme="dark"] .stage .st-ic { background: var(--tint); border-color: transparent; }

/* 10 Impact */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outcome { padding: 16px; border-radius: 16px; background: var(--obg); border: 1.5px solid var(--ob); display: flex; flex-direction: column; gap: 24px; }
.oc-ic { width: 48px; height: 48px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--oc); font-size: 26px; }
.outcome b { font: 900 50px/1.2 Inter, sans-serif; color: var(--oc); }
.outcome p { font: 500 16px/1.6 Inter, sans-serif; color: #55626e; }
.oc-red   { --obg: #fef2f2; --ob: rgba(239,68,68,.1); --oc: #ef4444; }
.oc-amber { --obg: #fffbeb; --ob: rgba(245,158,11,.1); --oc: #f59e0b; }
.oc-green { --obg: #ecfdf5; --ob: rgba(16,185,129,.1); --oc: #10b981; }
.oc-red .oc-ic { color: #e11d48; }
[data-theme="dark"] .outcome { --obg: var(--card); --ob: var(--card-line); }
[data-theme="dark"] .oc-ic { background: var(--tint); }
[data-theme="dark"] .outcome p { color: var(--ink-2); }

/* 11 Lessons */
.reflection { background: #14202b; border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
[data-theme="dark"] .reflection { background: #1a2633; border: 1px solid var(--line); }
.r-big { font: 600 34px/1.1 Sora, Inter, sans-serif; letter-spacing: -.68px; color: #eaf0f4; }
.reflection p:last-child { font: 400 18px/1.6 Inter, sans-serif; color: #9fb0bc; }
.learnings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.learning { display: flex; align-items: flex-start; gap: 16px; }
.ln-ic { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--bg); color: var(--c); font-size: 21.6px; flex: none; }
[data-theme="dark"] .ln-ic { background: var(--tint); }
.learning > div { flex: 1; border-top: 1px dashed var(--c); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.learning h3 { font: 700 24px/1.2 Inter, sans-serif; color: var(--c); }
.learning p { font: 400 16px/1.6 Inter, sans-serif; color: var(--ink-3); }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; gap: 24px; padding: 48px 116px; border-top: 1px solid var(--line); margin-top: 16px; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px 0 20px; background: var(--card); border: 1px solid var(--card-line); border-radius: 999px; color: var(--violet); text-decoration: none; font: 400 16px/1 "Bricolage Grotesque", Inter, sans-serif; transition: border-color .2s, transform .2s; }
.back-btn .ic { font-size: 16px; }
.back-btn:hover { border-color: var(--violet); transform: translateX(-2px); }
.author { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-align: right; font-family: "Bricolage Grotesque", Inter, sans-serif; }
.author p { font-weight: 700; font-size: 16px; color: var(--ink); }
.author a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.author a:hover { color: var(--violet); }

/* ---------- Cursor (shared look with home) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
  .cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; border-radius: 50%; opacity: 0; transition: opacity .2s, width .2s, height .2s, margin .2s; }
  .cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(104,65,237,.45); background: rgba(104,65,237,.06); backdrop-filter: blur(2px); }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--violet); }
  .cursor.on .cursor-ring, .cursor.on .cursor-dot { opacity: 1; }
  .cursor.is-link .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .hero-title { font-size: 56px; letter-spacing: -1.6px; }
  .stats, .lenses, .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens li { white-space: normal; }
  .statement { padding: 24px; }
  .statement p { font-size: 17px; }
}
@media (max-width: 1100px) {
  .topbar, .footer { padding-left: 24px; padding-right: 24px; }
  .page { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .side { order: 2; }
  .article { order: 1; }
  .side-card { max-width: 720px; }
  .hero-title { font-size: 48px; letter-spacing: -1.2px; }
  .journey { flex-wrap: wrap; justify-content: center; }
  .decisions { grid-template-columns: minmax(0, 1fr); }
  .decision { min-height: 0; }
}
@media (max-width: 720px) {
  .topbar-title { display: none; }
  .hero { gap: 24px; }
  .hero-title { font-size: 36px; letter-spacing: -.8px; }
  .hero-lead { font-size: 18px; }
  .ch-head h2 { font-size: 28px; }
  .body { font-size: 18px; }
  .statement p, .quote blockquote { font-size: 17px; }
  .statements, .stats, .lenses, .quotes, .ba, .teams, .outcomes, .learnings { grid-template-columns: minmax(0, 1fr); }
  .states, .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .journey { flex-direction: column; align-items: center; padding: 16px 0; }
  .journey .arrow { transform: rotate(90deg); }
  .table-card { overflow-x: auto; }
  .table-card table { min-width: 560px; }
  .table-card th, .table-card td { font-size: 16px; height: auto; padding: 12px 16px; }
  .media { height: auto; min-height: 220px; }
  .r-big { font-size: 26px; }
  .reflection { padding: 28px; }
  .lc-fig { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
  .lc-svg { width: 760px; max-width: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  .author { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Fit-to-width fixes (no clipped or truncated content) ---------- */
.journey li:not(.arrow) { flex: 1 1 0; min-width: 0; }
.journey .arrow { width: 28px; }
.lens li { white-space: normal; overflow: visible; text-overflow: clip; align-items: center; }
.lens-head p { min-width: 0; overflow-wrap: anywhere; }
.pills { flex-wrap: wrap; justify-content: flex-start; gap: 8px 6px; }
.pill { padding: 6px 10px; }
.conn { flex: 1 1 4px; min-width: 4px; max-width: 12px; }
.actions span { min-width: 0; }
.dash { flex: 1 1 8px; min-width: 8px; }
@media (max-width: 1760px) { .lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1600px) {
  .decisions { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .decision { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: end; column-gap: 40px; }
  .dc-foot { align-self: end; }
  .decision { position: relative; }
  .dc-badge { position: absolute; top: 32px; right: 32px; }
}
@media (max-width: 1440px) { .journey { padding: 28px 0; gap: 4px; } .journey b { font-size: 17px; } .journey span { font-size: 15px; } .journey .arrow { width: 20px; font-size: 20px; } }
@media (max-width: 900px) { .decision { display: flex; flex-direction: column; align-items: stretch; } .dc-foot { align-self: stretch; } .pills .conn { display: none; } }
