/* =========================================================
   Wendor · case study
   Editorial dark: Geist for everything, Instrument Serif
   italic as the single accent voice. Wendor violet is light,
   not paint: it glows behind the work.
   ========================================================= */

:root {
  --bg: #07060B;
  --bg-2: #0D0B14;
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F3F1F8;
  --dim: #9893A9;
  --faint: #66617A;
  --violet: #7B5CFF;
  --violet-deep: #4A2BE0;
  --lilac: #C3B6FF;
  --rose: #FF7A8A;
  --mint: #7EE2B8;

  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 1.5px solid var(--lilac); outline-offset: 4px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 99; background: #fff; color: #000; padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Shared editorial pieces ---------- */
.row { display: grid; gap: 20px 48px; margin-top: 96px; }
.row:first-child { margin-top: 0; }
@media (min-width: 900px) { .row { grid-template-columns: repeat(12, minmax(0, 1fr)); } .row > .label { grid-column: 1 / span 3; } .row > .body { grid-column: 4 / -1; } }
.label { font-size: 13px; color: var(--dim); padding-top: .55em; }
.statement {
  font-size: clamp(1.85rem, 3.5vw, 3.2rem); line-height: 1.1; font-weight: 400; letter-spacing: -.035em;
  text-wrap: balance;
}
.statement span { color: var(--faint); }
.statement em { color: var(--lilac); font-size: 1.06em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--dim); max-width: 60ch; }
.cols-2 { display: grid; gap: 28px 40px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.cols-2 > p { color: var(--dim); font-size: 17px; }
.note { margin-top: 20px; color: var(--dim); font-size: 15px; max-width: 70ch; }
h4 { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 14px; }

.sec { padding-top: clamp(120px, 14vw, 180px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 72px; isolation: isolate; }
.glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 78%, rgba(123, 92, 255, .95) 0%, rgba(74, 43, 224, .7) 28%, rgba(34, 16, 110, .5) 52%, transparent 75%),
    radial-gradient(40% 40% at 85% 10%, rgba(123, 92, 255, .22), transparent 70%),
    linear-gradient(180deg, #07060B 0%, #0B0820 45%, #120A38 70%, #07060B 100%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask: radial-gradient(70% 60% at 50% 75%, #000 0%, transparent 75%);
          mask: radial-gradient(70% 60% at 50% 75%, #000 0%, transparent 75%);
}
.meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 0; flex-wrap: wrap; }
.home { font-size: 14px; font-weight: 500; }
.home:hover { color: var(--lilac); }
.meta dl { display: flex; gap: clamp(20px, 4vw, 64px); flex-wrap: wrap; }
.meta dt { font-size: 12px; color: var(--faint); }
.meta dd { font-size: 13px; color: var(--text); }

.hero-top { display: grid; gap: 28px; margin-top: clamp(40px, 7vw, 96px); }
@media (min-width: 980px) { .hero-top { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 6.2rem); line-height: .98; font-weight: 400; letter-spacing: -.05em;
  text-wrap: balance;
}
.hero h1 em { color: var(--lilac); font-size: 1.08em; letter-spacing: -.02em; padding-right: .04em; }
.hero-sub { font-size: 18px; line-height: 1.5; color: #C9C4D8; max-width: 38ch; }

.hero-art { position: relative; margin-top: clamp(24px, 4vw, 40px); }
.bigword {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1;
  font-size: clamp(5rem, 23vw, 22rem); line-height: .8; font-weight: 600; letter-spacing: -.07em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}
.hero-art img { width: min(1120px, 96vw); margin: 0 auto; filter: drop-shadow(0 50px 60px rgba(10, 4, 40, .55)); }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.kpis { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.kpis li { display: grid; gap: 2px; }
.num { font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.kpis .num { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; }
.kpis li > span:last-child { font-size: 13px; color: #C9C4D8; }
.process { display: grid; gap: 2px; font-size: 13px; color: #C9C4D8; text-align: right; }
@media (max-width: 640px) { .process { display: none; } }

.reveal { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-sub.reveal { animation-delay: .12s; }
.hero-art .reveal { animation-delay: .22s; animation-duration: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Chapter dock ---------- */
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translate(-50%, 160%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.dock.show { transform: translate(-50%, 0); }
.dock-btn, .dock-list {
  background: rgba(22, 18, 38, .62); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
}
.dock-btn { display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 8px; border-radius: 999px; white-space: nowrap; }
.ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2.5; }
.ring .ring-fill { stroke: var(--violet); stroke-dasharray: 97.4; stroke-dashoffset: 97.4; stroke-linecap: round; }
.dock-num { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; margin-left: -40px; width: 28px; text-align: center; }
.dock-name { font-size: 14px; font-weight: 500; }
.dock-list { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(320px, 90vw); border-radius: 22px; padding: 8px; }
.dock-list a { display: flex; gap: 14px; padding: 10px 12px; border-radius: 14px; font-size: 14px; color: var(--dim); }
.dock-list a span { color: var(--faint); font-variant-numeric: tabular-nums; }
.dock-list a:hover, .dock-list a[aria-current="true"] { background: var(--glass-2); color: var(--text); }

/* ---------- 01 Overview ---------- */
.approach li { display: grid; gap: 4px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.approach li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .approach li { grid-template-columns: 180px 1fr; } }
.approach span { font-size: 17px; }
.approach p { color: var(--dim); }

.gantt { --lw: 270px; border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 20px; background: var(--glass); }
.g-head { display: grid; grid-template-columns: var(--lw) 1fr; align-items: end; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.g-total { font-size: 13px; color: var(--dim); }
.g-total b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; color: #fff; margin-right: 4px; vertical-align: -3px; }
.g-weeks { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11px; color: var(--faint); text-align: center; }
.gantt ol { position: relative; display: grid; }
.gantt ol::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--lw); right: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / 12)); border-right: 1px solid rgba(255,255,255,.07); }
.gantt li { position: relative; display: grid; grid-template-columns: var(--lw) 1fr; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gantt li:last-child { border-bottom: 0; }
.g-info { display: flex; gap: 14px; align-items: flex-start; padding-right: 20px; }
.g-info i { font-style: normal; font-family: var(--mono, ui-monospace, monospace); font-size: 11px; color: var(--faint); padding-top: 3px; }
.g-info b { display: block; font-weight: 500; font-size: 15px; color: #fff; line-height: 1.3; }
.g-info small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.g-track { display: grid; grid-template-columns: repeat(12, 1fr); position: relative; }
.g-bar { grid-column: var(--s) / var(--e); position: relative; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 12px;
  background: linear-gradient(90deg, var(--c1), var(--c2)); color: var(--tx); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i) * .09s); }
.g-dur { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.gantt em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gantt.pre .g-bar { transform: scaleX(0); }
.gantt.pre.in .g-bar { transform: none; }
@media (max-width: 760px) {
  .gantt { --lw: 0px; padding: 20px 16px 8px; }
  .g-head { grid-template-columns: 1fr; gap: 10px; }
  .g-weeks { font-size: 9px; }
  .gantt ol::before { display: none; }
  .g-track { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / 12)); border-right: 1px solid rgba(255,255,255,.07); }
  .gantt li { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; }
  .g-info { padding-right: 0; }
  .g-bar { height: 28px; border-radius: 10px; }
}

/* ---------- 02 Undercover ---------- */
[data-icon] { display: block; background: currentColor; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.makers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.makers li {
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px;
}
.makers i { width: 30px; height: 30px; color: var(--lilac); }

.bento { display: grid; gap: 12px; margin: 64px 0 96px; grid-template-columns: repeat(2, 1fr); }
.bento figure { position: relative; overflow: hidden; border-radius: 22px; background: var(--bg-2); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bento figure:hover img { transform: scale(1.04); }
.bento .b1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.bento .b2, .bento .b3, .bento .b4, .bento .b5 { aspect-ratio: 1; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; }
  .bento .b1 { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .bento .b2, .bento .b3, .bento .b4, .bento .b5 { aspect-ratio: auto; }
}
.bento figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

.role-card { padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.role-card i { width: 64px; height: 64px; color: var(--lilac); margin-bottom: 20px; }
.role-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.role-card p { color: var(--dim); }

.quote {
  margin: clamp(96px, 12vw, 160px) auto; max-width: 980px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.12; letter-spacing: -.015em;
  text-wrap: balance;
}

.day { border-radius: 28px; padding: clamp(20px, 3vw, 32px); background: var(--glass); border: 1px solid var(--line); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg button { padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--dim); transition: background .3s, color .3s; }
.seg button[aria-checked="true"] { background: var(--text); color: #0B0A10; }
.day[data-mode="after"] .seg button[aria-checked="true"] { background: var(--violet); color: #fff; }
.route { margin-top: 24px; }
.route li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .route li { grid-template-columns: 64px 200px 1fr; align-items: baseline; } }
.route .t { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.route .stop { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.route .stop::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); transition: background .3s, box-shadow .3s; }
.day[data-mode="after"] .route .stop::before { background: var(--violet); }
.route p { color: var(--dim); grid-column: 2 / -1; }
@media (min-width: 760px) { .route p { grid-column: auto; } }
.day[data-mode="before"] .route .a, .day[data-mode="after"] .route .b { display: none; }
.route p { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.deep { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deep > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 15px; color: var(--dim); }
.deep > summary:hover { color: var(--text); }
.deep > summary::-webkit-details-marker { display: none; }
.deep > summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; transition: transform .3s; }
.deep[open] > summary::after { transform: rotate(45deg); }
.deep > div, .deep > p { padding-bottom: 28px; }
.steps { counter-reset: s; display: grid; gap: 8px; font-size: 15px; color: var(--dim); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--faint); font-size: 12px; padding-top: 3px; }

/* ---------- 03 Ecosystem ---------- */
.eco { display: grid; gap: 20px; margin-top: 64px; }
@media (min-width: 980px) { .eco { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.eco-map {
  position: relative; aspect-ratio: 16 / 10; min-height: 360px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 60%, rgba(123, 92, 255, .22), transparent 70%), var(--bg-2);
}
.eco-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-map path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.eco-map .goods { stroke: rgba(255,255,255,.4); stroke-width: 1.5; }
.eco-map .info { stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; z-index: 1; }
.node i {
  width: clamp(56px, 7vw, 84px); height: clamp(56px, 7vw, 84px); border-radius: 50%; color: var(--lilac);
  -webkit-mask: none; mask: none; background: rgba(18, 14, 34, .85); border: 1px solid var(--line-2); position: relative;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.node i::after { content: ""; position: absolute; inset: 16%; background: currentColor; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.node span { font-size: 12px; color: var(--dim); }
.node:hover i { border-color: var(--lilac); }
.node[aria-pressed="true"] i { background: var(--violet); border-color: var(--violet); color: #fff; }
.node[aria-pressed="true"] span { color: var(--text); }
@media (max-width: 600px) { .eco-map { aspect-ratio: auto; height: 400px; } }
.eco-side { display: grid; gap: 16px; align-content: start; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 22px; border-top: 1.5px solid rgba(255,255,255,.45); }
.legend .i::before { border-top: 1.5px dashed var(--violet); }
.eco-info { border-radius: 28px; padding: 28px; background: var(--glass); border: 1px solid var(--line); min-height: 260px; }
.eco-info .eyebrow-q { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.eco-info h3 { font-size: 26px; font-weight: 400; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.eco-info p { color: var(--dim); }
.eco-info .broke { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); }
.eco-info .broke small { display: block; font-size: 12px; color: var(--rose); margin-bottom: 4px; }

.chat { border-radius: 28px; padding: 18px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.chat-head .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.chat-head b { display: block; font-weight: 500; font-size: 15px; }
.chat-head small { color: var(--faint); font-size: 12px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.06); font-size: 15px; line-height: 1.4; }
.msg b { display: block; font-size: 11px; font-weight: 500; color: var(--faint); margin-bottom: 2px; }
.msg.me { justify-self: end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #5D3EF2, #4527D6); }
.msg.me b { color: rgba(255,255,255,.65); }
.chat-note { font-size: 12px; color: var(--faint); text-align: center; padding-top: 8px; }
.tools li { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.tools li:last-child { border-bottom: 1px solid var(--line); }
.tools span { font-size: 20px; letter-spacing: -.02em; }
.tools p { color: var(--dim); font-size: 15px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; display: grid; text-align: left; padding: 14px 18px 16px 0; margin-right: 18px; color: var(--faint); transition: color .3s; white-space: nowrap; }
.tabs button small { font-size: 12px; color: var(--faint); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 18px; bottom: -1px; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: var(--text); }
.persona-tabs { margin-top: 64px; }
.persona-tabs button { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
.flow-tabs button { font-size: 16px; }

/* ---------- 04 People ---------- */
.persona { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; margin-top: 40px; animation: fade .5s ease; }
@media (min-width: 900px) { .persona { grid-template-columns: 220px minmax(0, 1fr); } .persona .curve { grid-column: 1 / -1; } }
.p-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); max-width: 220px; width: 100%; border-radius: 24px; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.p-body h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.p-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .p-facts { grid-template-columns: repeat(4, 1fr); } }
.p-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { font-size: 12px; color: var(--faint); }
.p-facts dd { font-size: 15px; }
.persona blockquote { margin: 28px 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--lilac); text-wrap: balance; }
.p-lists { display: grid; gap: 24px; }
@media (min-width: 640px) { .p-lists { grid-template-columns: 1fr 1fr; } }
.p-lists ul { display: grid; gap: 8px; color: var(--dim); font-size: 15px; }
.p-lists li { display: grid; grid-template-columns: 18px 1fr; }
.p-lists div:first-child li::before { content: "+"; color: var(--mint); }
.p-lists div:last-child li::before { content: "–"; color: var(--rose); }

.curve { border-radius: 28px; padding: clamp(20px, 3vw, 32px); background: var(--glass); border: 1px solid var(--line); }
.curve-title { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.curve-title small { color: var(--faint); font-size: 13px; }
.curve-plot { position: relative; height: 180px; margin-top: 18px; }
.curve-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve-plot .line { fill: none; stroke: url(#cg); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.curve-plot .area { fill: url(#ca); }
.curve-plot .base { stroke: var(--line); stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.c-dot { position: absolute; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); transition: box-shadow .3s, background .3s; }
.c-dot::before { content: ""; position: absolute; inset: -12px; }
.c-dot[aria-pressed="true"] { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.c-stages { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; }
.c-stages button { font-size: 12px; line-height: 1.3; color: var(--faint); padding: 6px 4px; text-align: center; border-radius: 8px; transition: color .3s; }
.c-stages button[aria-pressed="true"] { color: var(--text); }
.c-detail { display: grid; gap: 1px; margin-top: 18px; border-radius: 18px; overflow: hidden; background: var(--line); }
@media (min-width: 700px) { .c-detail { grid-template-columns: 1fr 1fr; } }
.c-detail p { background: var(--bg-2); padding: 18px 20px; font-size: 15px; color: var(--dim); animation: fade .4s ease; }
.c-detail small { display: block; font-size: 12px; margin-bottom: 4px; }
.c-detail .pain small { color: var(--rose); }
.c-detail .fix small { color: var(--mint); }

/* ---------- 05 Insights ---------- */
.insights { margin-top: 64px; border-top: 1px solid var(--line); }
.insights > li { border-bottom: 1px solid var(--line); }
.insights summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 16px; padding: 28px 0; }
@media (min-width: 900px) { .insights summary { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; } .insights .n { grid-column: 1 / span 3; } .insights .ti { grid-column: 4 / span 8; } .insights .pl { grid-column: 12; justify-self: end; } }
.insights summary::-webkit-details-marker { display: none; }
.insights .n { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.insights .ti { font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.2; transition: color .3s; }
.insights summary:hover .ti { color: var(--lilac); }
.insights .pl { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .35s, background-color .35s, border-color .35s; }
.insights details[open] .pl { transform: rotate(45deg); background-color: var(--violet); border-color: var(--violet); }
.insights .in { display: grid; gap: 16px; padding: 0 0 32px; animation: fade .45s ease; }
@media (min-width: 900px) { .insights .in { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; } .insights .in > p:first-child { grid-column: 4 / span 4; } .insights .dec { grid-column: 8 / span 5; } }
.insights .in > p:first-child { color: var(--dim); }
.dec { padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(123,92,255,.22), rgba(123,92,255,.06)); border: 1px solid rgba(123,92,255,.35); }
.dec small { display: block; font-size: 12px; color: var(--lilac); margin-bottom: 4px; }

/* ---------- 06 System ---------- */
.intro-stage { position: relative; margin-top: 48px; padding: 40px 0; isolation: isolate; overflow: hidden; }
.intro-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(45% 55% at 50% 50%, rgba(123,92,255,.55), rgba(74,43,224,.25) 40%, transparent 72%); }
.intro-stage .bigword { top: 26%; font-size: clamp(4rem, 17vw, 16rem); background: linear-gradient(180deg, rgba(195,182,255,.35), rgba(195,182,255,.04)); -webkit-background-clip: text; background-clip: text; }
.intro-stage .bigword.bottom { top: 78%; }
.intro-stage img { width: min(560px, 80vw); margin: 0 auto; filter: drop-shadow(0 60px 60px rgba(0,0,0,.6)); }
.outcomes { display: grid; gap: 10px; margin-top: 48px; }
@media (min-width: 640px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcomes li { padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.outcomes li::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-bottom: 18px; }
.tree, .tree ul { display: grid; gap: 8px; font-size: 15px; }
.tree ul { margin: 8px 0 4px 4px; padding-left: 16px; border-left: 1px solid var(--line-2); color: var(--dim); }

/* ---------- 07/08 Flows ---------- */
.flows { margin-top: 64px; }
.flow { margin-top: 32px; animation: fade .5s ease; }
.flow-head { display: grid; gap: 16px 32px; padding-bottom: 32px; }
@media (min-width: 980px) { .flow-head { grid-template-columns: 1.1fr 1fr 1fr 1fr; align-items: start; } }
.flow-head h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.flow-head p { font-size: 15px; color: var(--dim); }
.flow-head small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.flow-head .pr small { color: var(--rose); }
.flow-head .oc { color: var(--text); }
.flow-head .oc small { color: var(--mint); }
.flow-head b { font-weight: 500; color: var(--text); }

.stage {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px) 40px; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 105%, #7B5CFF 0%, #4A2BE0 30%, #23127A 55%, transparent 80%),
    radial-gradient(50% 50% at 50% 0%, rgba(195,182,255,.12), transparent 70%),
    #0E0B1C;
  border: 1px solid var(--line);
}
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
.phone { position: relative; width: clamp(200px, 21vw, 268px); flex: none; display: grid; gap: 14px; justify-items: center; }
.phone img {
  width: 100%; aspect-ratio: 720 / 1500; object-fit: cover; object-position: top;
  border-radius: clamp(30px, 3.2vw, 42px); border: clamp(6px, .7vw, 9px) solid #0A0910; background: #fff;
  box-shadow: 0 0 0 1.5px #3A3747, 0 0 0 3px #0A0910, 0 50px 80px -24px rgba(5, 2, 25, .8);
}
.phone figcaption { font-size: 13px; color: rgba(255,255,255,.78); text-align: center; }
.stage .up { transform: translateY(-36px); }
.stage.four .phone { width: clamp(180px, 18vw, 230px); }
@media (max-width: 860px) {
  .stage { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 48px; }
  .stage .up { transform: none; }
  .phone { scroll-snap-align: center; width: 64vw; max-width: 250px; }
  .stage.four .phone { width: 58vw; }
}
.mini-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.mini-row .phone { width: 100%; }
.mini-row .phone img { border-radius: 26px; border-width: 6px; box-shadow: 0 0 0 1px #3A3747; }
.mini-row figcaption { color: var(--dim); }

/* ---------- Screen wall ---------- */
.wall { position: relative; height: clamp(520px, 62vw, 820px); overflow: hidden; margin-top: clamp(120px, 14vw, 180px); }
.wall::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bg) 0%, transparent 22%, transparent 70%, var(--bg) 100%), linear-gradient(90deg, var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.wall-tilt { position: absolute; left: 50%; top: 50%; width: 2400px; transform: translate(-50%, -50%) perspective(2000px) rotateX(22deg) rotateZ(-14deg); display: grid; gap: 28px; }
.wall-row { display: flex; gap: 28px; width: max-content; animation: slide 70s linear infinite; }
.wall-row.rev { animation-direction: reverse; margin-left: -200px; }
.wall-row img { width: 210px; aspect-ratio: 720 / 1500; object-fit: cover; object-position: top; border-radius: 30px; border: 6px solid #0A0910; box-shadow: 0 0 0 1px #3A3747, 0 30px 60px -20px rgba(0,0,0,.7); }
@keyframes slide { to { transform: translateX(-50%); } }
.wall-title { position: absolute; left: var(--pad); bottom: 48px; z-index: 2; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.04em; }

/* ---------- 09 Impact ---------- */
.impact { display: grid; gap: 1px; margin-top: 64px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .impact { grid-template-columns: repeat(3, 1fr); } }
.impact li { background: var(--bg); padding: 36px 32px 36px 0; display: grid; gap: 6px; }
@media (min-width: 860px) { .impact li + li { padding-left: 32px; } }
.impact .num {
  font-size: clamp(4rem, 8.5vw, 7.6rem); line-height: .9; margin-bottom: 18px;
  background: linear-gradient(180deg, #FFFFFF 20%, var(--lilac) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.impact b { font-weight: 500; font-size: 17px; }
.impact p { color: var(--dim); font-size: 15px; }
.impact-sub { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 860px) { .impact-sub { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.impact-sub li { padding: 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.impact-sub b { font-weight: 500; }
.impact-sub p { color: var(--dim); font-size: 15px; }

.shift ul { display: grid; gap: 0; }
.shift li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.before li, .after li { display: flex; align-items: center; gap: 14px; }
.before li { color: var(--dim); }
.before li::before, .after li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.before li::before { background-color: rgba(255,122,138,.14); border: 1px solid rgba(255,122,138,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23FF7A8A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3l-6 6'/%3E%3C/svg%3E"); }
.after li::before { background-color: rgba(126,226,184,.14); border: 1px solid rgba(126,226,184,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237EE2B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5'/%3E%3C/svg%3E"); }

.learn { display: grid; gap: 12px; }
@media (min-width: 860px) { .learn { grid-template-columns: repeat(3, 1fr); } }
.learn li { padding: 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.learn span { display: block; font-size: 13px; color: var(--faint); margin-bottom: 40px; }
.learn h4 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.learn p { color: var(--dim); font-size: 15px; }

.reflection { margin-top: clamp(120px, 14vw, 180px); max-width: 1080px; }
.reflection .label { margin-bottom: 24px; }
.statement.big { font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; }

.end { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 120px; padding: 40px 0 120px; border-top: 1px solid var(--line); color: var(--dim); }
.end a:hover { color: var(--text); }
.end .next { display: grid; text-align: right; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.04em; color: var(--text); }
.end .next small { font-size: 13px; letter-spacing: 0; color: var(--faint); }
.end .next:hover { color: var(--lilac); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  .hero-art img { width: 150vw; max-width: none; margin-left: -25vw; }
}

/* =========================================================
   Chapter jumper (desktop, Medium-style): slim dashes, labels on hover
   ========================================================= */
.rail { display: none; }
@media (min-width: 1180px) {
  .dock { display: none; }
  .rail { display: block; position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .rail.show { opacity: 1; pointer-events: auto; }
  .rail ol { display: grid; gap: 2px; padding: 10px; border-radius: 16px; border: 1px solid transparent; transition: background .18s ease .14s, border-color .18s ease .14s, box-shadow .18s ease .14s; }
  .rail a { display: flex; align-items: center; gap: 12px; height: 26px; color: var(--faint); font-size: 13px; font-weight: 500; white-space: nowrap; }
  .rail a::before { content: ""; flex: none; width: 16px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; transition: width .25s, opacity .25s, background .25s; }
  /* labels take no room until opened, so the hover area is just the lines */
  .rail .rail-tx { display: block; max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-6px); transition: max-width .3s cubic-bezier(.2, .8, .2, 1), opacity .12s, transform .12s; }
  .rail a { gap: 0; transition: gap .3s cubic-bezier(.2, .8, .2, 1); }
  .rail a[aria-current="true"] { color: var(--text); }
  .rail a[aria-current="true"]::before { width: 24px; opacity: 1; background: var(--violet); }
  .rail:hover ol, .rail:focus-within ol { background: rgba(14, 13, 22, .92); border-color: var(--line-2, var(--line)); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  /* a passing cursor does nothing: opening waits a beat, then box and labels grow together */
  .rail:hover ol, .rail:focus-within ol { transition: background .2s ease .12s, border-color .2s ease .12s, box-shadow .25s ease .12s; }
  .rail:hover a, .rail:focus-within a { gap: 12px; transition: gap .3s cubic-bezier(.2, .8, .2, 1) .12s; }
  .rail:hover .rail-tx, .rail:focus-within .rail-tx { max-width: 220px; opacity: 1; transform: none; transition: max-width .3s cubic-bezier(.2, .8, .2, 1) .12s, opacity .2s ease .26s, transform .2s ease .26s; }
  .rail a:hover { color: var(--lilac); }
}

/* =========================================================
   Graphic: the information gap
   ========================================================= */
.gap { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .gap { grid-template-columns: 1fr 44px 1fr 44px 1.25fr; } }
.gap-col { border-radius: 24px; padding: 22px; border: 1px solid var(--line); background: var(--glass); }
.gap-col h4 { margin-bottom: 16px; }
.gap-col ul { display: grid; gap: 8px; }
.gap-col li { font-size: 15px; padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.need { border-color: rgba(126, 226, 184, .3); background: linear-gradient(180deg, rgba(126,226,184,.08), transparent); }
.need li { background: rgba(126,226,184,.08); }
.need li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.had li { border: 1px dashed var(--line-2); color: var(--dim); }
.had li::before { content: "?"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.08); color: var(--dim); flex: none; }
.result { border-color: rgba(255,122,138,.3); background: linear-gradient(180deg, rgba(255,122,138,.09), transparent); }
.result li { display: grid; gap: 0; background: rgba(255,122,138,.07); font-size: 14px; color: var(--dim); }
.result li b { font-weight: 500; color: var(--text); font-size: 15px; }
.gap-arrow { display: grid; place-items: center; min-height: 28px; }
.gap-arrow span { position: relative; width: 100%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--lilac)); }
.gap-arrow span::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid var(--lilac); border-right: 1.5px solid var(--lilac); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 899px) { .gap-arrow span { width: 1.5px; height: 28px; background: linear-gradient(180deg, transparent, var(--lilac)); } .gap-arrow span::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); } }

/* =========================================================
   Graphic: purchase order swimlane
   ========================================================= */
.lanes { margin-top: 28px; border-radius: 28px; border: 1px solid var(--line); background: var(--glass); padding: clamp(18px, 2.5vw, 28px); }
.lanes-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lane-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.lane-stats li { display: grid; font-size: 12px; color: var(--faint); }
.lane-stats b { font-size: 24px; font-weight: 300; letter-spacing: -.04em; color: var(--text); line-height: 1.1; }
.lanes[data-mode="after"] .lane-stats b { color: var(--lilac); }
.lane-scroll { margin-top: 22px; }
.lane-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 10px; }
.lane-col { grid-row: 1 / -1; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.lane-name { grid-row: 1; align-self: center; justify-self: center; font-size: 13px; color: var(--dim); z-index: 1; }
.lane-step {
  position: relative; z-index: 1; align-self: center; justify-self: center; width: calc(100% - 20px); max-width: 220px;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px;
  background: #15121F; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.3; color: #DCD7EA;
  animation: pop .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 40ms);
}
.lane-step b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 500; background: rgba(255,255,255,.08); color: var(--dim); }
.lane-board > :nth-last-child(1) { grid-column: 1 / -1; }
@media (max-width: 560px) { .lane-step { width: calc(100% - 8px); padding: 8px; font-size: 11.5px; gap: 6px; flex-direction: column; align-items: flex-start; } .lane-board { column-gap: 6px; } }
.lanes[data-mode="before"] .lane-step.hand { border-color: rgba(255,122,138,.5); }
.lanes[data-mode="before"] .lane-step.hand b { background: var(--rose); color: #1a0a0d; }
.lanes[data-mode="after"] .lane-step { border-color: rgba(123,92,255,.55); }
.lanes[data-mode="after"] .lane-step b { background: var(--violet); color: #fff; }
.lane-svg { position: absolute; inset: 0; grid-area: 1 / 1 / -1 / -1; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.lane-svg path { fill: none; stroke-width: 1.5; stroke-dasharray: 4 5; stroke: rgba(255,122,138,.6); }
.lanes[data-mode="after"] .lane-svg path { stroke: var(--violet); stroke-dasharray: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* =========================================================
   Graphic: an operator's five questions
   ========================================================= */
.orbit { --r: min(210px, 33vw); position: relative; width: min(100%, 600px); aspect-ratio: 1.25; margin: 8px auto 0; }
.orbit::before, .orbit::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px dashed var(--line-2); }
.orbit::before { width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
.orbit::after { width: calc(var(--r) * 1.2); height: calc(var(--r) * 1.2); border-style: solid; border-color: var(--line); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: clamp(104px, 18vw, 140px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4px;
  background: radial-gradient(circle at 30% 30%, #8E74FF, #4A2BE0 70%);
  font-size: 13px; font-weight: 500;
}
.orbit-core i { width: clamp(40px, 7vw, 56px); height: clamp(40px, 7vw, 56px); color: #fff; }
.q {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: clamp(12px, 1.6vw, 14px);
  background: rgba(22, 18, 38, .9); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* =========================================================
   Graphic: system flow map
   ========================================================= */
.flowmap { position: relative; aspect-ratio: 1000 / 520; margin-top: 40px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(45% 55% at 50% 50%, rgba(123,92,255,.2), transparent 70%), var(--bg-2); }
.flowmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-line { fill: none; stroke: rgba(195,182,255,.4); stroke-width: 1; stroke-linecap: round; }
.fm-dot { fill: rgba(255,255,255,.7); }
.fm-arrow { fill: rgba(195,182,255,.55); }
.fm-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 18px; min-width: 150px; border-radius: 20px;
  background: rgba(20, 17, 32, .92); border: 1px solid var(--line-2);
}
.fm-node i { width: 40px; height: 40px; color: var(--lilac); margin-bottom: 4px; }
.fm-node b { font-weight: 500; font-size: 14px; }
.fm-node small { font-size: 12px; color: var(--dim); }
.fm-node.core { padding: 18px 24px; background: linear-gradient(135deg, #6A4BFF, #3B1FC2); border-color: rgba(195,182,255,.5); }
.fm-node.core img { border-radius: 10px; margin-bottom: 6px; }
.fm-node.core small { color: rgba(255,255,255,.75); }
.fm-tag { z-index: 1; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-size: 11px; color: var(--lilac); background: var(--bg-2); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(123,92,255,.3); white-space: nowrap; }
.flowmap-scroll { overflow-x: auto; margin-top: 40px; scrollbar-width: none; }
.flowmap-scroll .flowmap { margin-top: 0; }
@media (max-width: 860px) { .flowmap { width: 820px; } }

/* =========================================================
   Graphic: indexed impact bars
   ========================================================= */
.bars { margin-top: 32px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--line); background: var(--glass); }
.bars-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 18px; flex-wrap: wrap; }
.bars-head small { color: var(--faint); font-size: 13px; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .bar-row { grid-template-columns: 200px 1fr 110px; align-items: center; gap: 24px; } }
.bl { font-size: 15px; }
.bv { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .bv { text-align: right; } }
.track { display: grid; gap: 6px; }
.track i { display: block; height: 10px; border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.track .before { background: rgba(255,255,255,.16); }
.track .after { background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--lilac)); transition-delay: .25s; }
.bars.in .before { width: calc(var(--b) / 140 * 100%); }
.bars.in .after { width: calc(var(--a) / 140 * 100%); }
.bars-legend { display: flex; gap: 20px; margin-top: 16px; font-size: 12px; color: var(--dim); }
.bars-legend li { display: flex; align-items: center; gap: 8px; }
.bars-legend li::before { content: ""; width: 18px; height: 8px; border-radius: 999px; }
.bars-legend .lb::before { background: rgba(255,255,255,.16); }
.bars-legend .la::before { background: linear-gradient(90deg, var(--violet-deep), var(--lilac)); }

@media (max-width: 600px) {
  .orbit { --r: 34vw; aspect-ratio: 1; }
  .q { white-space: normal; width: 104px; text-align: center; padding: 7px 10px; border-radius: 14px; font-size: 11.5px; line-height: 1.25; }
}

/* Reading progress bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: rgba(255,255,255,.06); pointer-events: none; }
.topbar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--violet-deep), var(--violet), var(--lilac)); will-change: transform; }


/* Section labels: clearer headings */
.label { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.3; color: #fff; padding-top: .25em; letter-spacing: -.005em; }
.label::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .42em; border-radius: 50%; background: var(--violet); }
.label.ch { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--lilac); align-items: center; padding-top: 0; }
.label.ch::before { display: none; }
.label.ch b { font-weight: 500; font-variant-numeric: tabular-nums; padding: 5px 9px; border: 1px solid rgba(195,182,255,.35); border-radius: 999px; background: rgba(123,92,255,.14); color: #fff; letter-spacing: .06em; }
@media (min-width: 900px) { .row > .label { position: sticky; top: 96px; align-self: start; } }


/* Day: highlight what changed */
.diff-key { display: none; margin-top: 20px; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.day[data-mode="after"] .diff-key { display: flex; }
.route .a::before, .route .b::before, .diff-key span { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-right: 10px; vertical-align: 2px; }
.k-now, .route .a::before { background: rgba(126,226,184,.14); color: var(--mint); border: 1px solid rgba(126,226,184,.4); }
.k-was, .route .b::before { background: rgba(255,122,138,.1); color: var(--rose); border: 1px solid rgba(255,122,138,.35); }
.k-now::before { content: none; }
.route .a::before { content: "Now"; }
.route .b::before { content: "Before"; }
.diff-key span { margin-right: 0; }
.route li { position: relative; }
.day[data-mode="after"] .route li::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--mint); }
.day[data-mode="after"] .route .b { display: block; order: 2; font-size: 13.5px; color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255,122,138,.6); text-decoration-thickness: 1px; }
.day[data-mode="after"] .route .a { color: #fff; }
.day[data-mode="after"] .route .stop::before { background: var(--mint); }
.day[data-mode="after"] .route .b::before { text-decoration: none; display: inline-block; }
.route .a, .route .b { grid-column: 2 / -1; }
@media (min-width: 760px) {
  .route .t, .route .stop { grid-row: 1; }
  .route .a, .route .b { grid-column: 3; }
  .route .a { grid-row: 1; }
  .route .b { grid-row: 1; }
  .day[data-mode="after"] .route .a { grid-row: 1; }
  .day[data-mode="after"] .route .b { grid-row: 2; }
  .route li { align-items: start; }
}

/* Day: make before/after callouts prominent */
.day[data-mode="after"] .route .a, .day[data-mode="after"] .route .b { padding: 12px 16px 13px; border-radius: 14px; }
.day[data-mode="after"] .route .a { background: linear-gradient(135deg, rgba(126,226,184,.2), rgba(126,226,184,.07)); border: 1px solid rgba(126,226,184,.55); font-size: 16.5px; font-weight: 500; color: #fff; }
.day[data-mode="after"] .route .b { background: rgba(255,122,138,.08); border: 1px dashed rgba(255,122,138,.5); font-size: 14px; color: #B8A9B4; margin-top: 10px; text-decoration-color: rgba(255,122,138,.85); text-decoration-thickness: 1.5px; }
.route .a::before, .route .b::before, .diff-key span { font-size: 12px; padding: 4px 11px; margin-right: 12px; }
.route .a::before { background: var(--mint); color: #06281C; border-color: var(--mint); font-weight: 700; }
.route .b::before { background: var(--rose); color: #2A0A10; border-color: var(--rose); font-weight: 700; }
.k-now { background: var(--mint); color: #06281C; border-color: var(--mint); font-weight: 700; }
.k-was { background: var(--rose); color: #2A0A10; border-color: var(--rose); font-weight: 700; }
.diff-key { font-size: 15px; color: #fff; gap: 10px; }
.day[data-mode="after"] .route li::before { width: 5px; left: -18px; }
.day[data-mode="before"] .route .b { font-size: 16.5px; color: #fff; }
@media (min-width: 760px) { .day[data-mode="after"] .route .a { grid-row: 1; } }

/* Day: Before → Now compare (no strike-through; arrow connects the two) */
.day[data-mode="after"] .route .b { order: 1; text-decoration: none; color: var(--dim); background: rgba(255,255,255,.035); border: 1px dashed rgba(255,255,255,.2); margin: 0 0 30px; position: relative; font-size: 14.5px; }
.day[data-mode="after"] .route .a { order: 2; }
.day[data-mode="after"] .route .b::after { content: ""; position: absolute; left: 22px; bottom: -28px; width: 22px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 26' fill='none' stroke='%237EE2B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 1v22M4 16l7 8 7-8'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 760px) {
  .day[data-mode="after"] .route .b { grid-row: 1; }
  .day[data-mode="after"] .route .a { grid-row: 2; }
  .day[data-mode="after"] .route .t, .day[data-mode="after"] .route .stop { grid-row: 1; }
}
.route .a::before, .route .b::before { box-shadow: none; }

/* Day: new-app view shows only what it is now; icons carry the point */
.diff-key { display: none !important; }
.route .a::before, .route .b::before { content: none !important; }
.day[data-mode="after"] .route .b { display: none; }
.day[data-mode="after"] .route .a { background: none; border: 0; padding: 0; border-radius: 0; font-size: 16px; font-weight: 400; color: #fff; grid-row: auto; }
.day[data-mode="before"] .route .b { color: var(--dim); font-size: inherit; }
.route .stop::before { display: none; }
.route .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,122,138,.12); border: 1px solid rgba(255,122,138,.3); color: var(--rose); transition: background .3s, color .3s, border-color .3s; }
.route .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.day[data-mode="after"] .route .ic { background: rgba(126,226,184,.14); border-color: rgba(126,226,184,.4); color: var(--mint); }
.route .stop { gap: 12px; }
@media (min-width: 760px) { .day[data-mode="after"] .route .a { grid-row: 1; } .route .stop { align-items: center; } }

/* Day: no tinted row gradients */
.day[data-mode="before"] .route li, .day[data-mode="after"] .route li { background: none; }
