:root {
  color-scheme: dark;
  --background: #0B0B0C;
  --bright: #F5F5F7;
  --text: #A1A1A6;
  --muted: #8E8E93;
  --rule: #232326;
  --card: #141416;
  --profile-red: #D65258;
  --pr-rgb: 214 82 88;
  --blue: #3B82F6;
  --l1: 255 107 114;
  --l2: 91 155 255;
  --l3: 150 156 164;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

.cs-progress { position: fixed; z-index: 20; inset: 0 0 auto; height: 3px; pointer-events: none; }
.cs-progress span { display: block; height: 100%; background: var(--profile-red); transform: scaleX(0); transform-origin: left; }

/* No card: the content sits straight on the page. Instead the space background is faded out behind the reading column (see space.css), so stars never cross the text. */
.cs { width: min(768px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 140px; }

/* Hero, Notion style: breadcrumb, title, subtitle, a wide cover and a properties grid */
.cs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.cs-crumbs a { transition: color .2s ease; }
.cs-crumbs a:hover { color: var(--bright); }
.cs-crumbs i { font-style: normal; opacity: .6; }
.cs-crumbs span { color: var(--bright); }
.cs-back { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--bright); font-weight: 500; transition: background .2s ease, border-color .2s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.cs-back svg { width: 14px; height: 14px; }
.cs-back:hover { border-color: #3A3A3F; background: rgb(255 255 255 / 5%); transform: translateX(-2px); }
.cs-back:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cs-titlerow { display: flex; align-items: center; gap: 18px; }
.cs-logo { width: 64px; height: 58px; flex: none; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 20px -8px rgb(0 0 0 / 35%); }
.cs-hero h1 { color: var(--bright); font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.cs-subtitle { margin: 6px 0 0; color: var(--text); font-size: 15px; font-weight: 400; letter-spacing: -.02em; line-height: 1.4; }
.cs-kicker { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cs-props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 36px 0 0; padding: 0; }
.cs-props dt { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.cs-props dd { color: var(--bright); font-size: 15px; line-height: 1.45; }

/* Hero */
.cs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 500; }
.cs-eyebrow img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.cs-lede { max-width: 44ch; margin-top: 14px; font-size: 14px; line-height: 1.8; }
.cs-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--bright); border-radius: 10px; background: var(--bright); color: #0B0B0C; font-size: 13px; font-weight: 500; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cs-button:hover { color: #0B0B0C; box-shadow: 0 8px 20px rgb(0 0 0 / 16%); transform: translateY(-1px); }
.cs-button-ghost { border-color: var(--rule); background: var(--card); color: var(--bright); }
.cs-button-ghost:hover { color: var(--bright); background: #1E1E21; box-shadow: none; }

/* Phone frame */
/* iPhone 13 mini proportions (375 x 812) with a thin white bezel and a soft shadow */
.cs-phone { --pad: 7px; --r: 26px; width: min(100%, 230px); margin-inline: auto; padding: var(--pad); border-radius: calc(var(--r) + var(--pad)); background: #1A1A1D; box-shadow: 0 26px 50px -22px rgb(0 0 0 / 40%), 0 6px 18px -6px rgb(0 0 0 / 14%), inset 0 0 0 1px #2E2E33; }
.cs-phone-xs { --pad: 5px; --r: 16px; width: min(100%, 136px); box-shadow: 0 18px 34px -18px rgb(0 0 0 / 40%), 0 4px 12px -4px rgb(0 0 0 / 14%), inset 0 0 0 1px #2E2E33; }
.cs-phone-sm { --r: 32px; width: min(100%, 270px); }
.cs-phone-md { --r: 24px; width: min(100%, 206px); }
.cs-screen { position: relative; aspect-ratio: 375 / 812; overflow: hidden; border-radius: var(--r); background: #050B1A; }
.cs-screen img { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); object-fit: cover; object-position: top; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; transition: filter .6s ease; }

/* Comparison slider */
.cs-compare .cs-screen { cursor: ew-resize; touch-action: pan-y; }
.cs-img-old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cs-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 25%), 0 0 18px rgb(0 0 0 / 35%); transform: translateX(-1px); pointer-events: none; }
.cs-grip { position: absolute; top: 50%; left: 50%; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 30%); color: #202020; font-size: 15px; transform: translate(-50%, -50%); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.is-dragging .cs-grip { transform: translate(-50%, -50%) scale(1.15); }
.cs-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cs-compare:focus-within .cs-grip { outline: 2px solid var(--blue); outline-offset: 3px; }
.cs-tags { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 230px; max-width: 100%; margin: 16px auto 0; }
.cs-tag { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: color .2s ease; }
.cs-tag-new { justify-self: end; }
.cs-tag::before { width: 7px; height: 7px; border-radius: 50%; background: #55555B; content: ""; transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .2s ease; }
.cs-tag-new::before { background: #E8B4B7; }
.cs-tag:hover { color: var(--bright); }
.cs-tag.is-active { color: var(--bright); font-weight: 600; }
.cs-tag.is-active::before { transform: scale(1.5); }
.cs-tag-old.is-active::before { background: #A1A1A6; }
.cs-tag-new.is-active::before { background: var(--profile-red); }
.cs-tag:focus-visible, .cs-playpause:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.cs-playpause { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); color: var(--bright); cursor: pointer; transition: border-color .2s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.cs-playpause:hover { border-color: #3A3A3F; transform: scale(1.08); }
.cs-playpause .ico { position: relative; width: 10px; height: 12px; }
.cs-playpause .ico::before, .cs-playpause .ico::after { position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor; content: ""; }
.cs-playpause .ico::before { left: 0; } .cs-playpause .ico::after { right: 0; }
.is-paused .cs-playpause .ico::before { top: 0; left: 1px; width: 0; height: 0; border-radius: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; background: none; }
.is-paused .cs-playpause .ico::after { display: none; }
.cs-compare figcaption, .cs-fig figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

/* Chapters and prose */
.cs-chapter { margin-top: 112px; }
.cs-chapter-title { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); color: var(--bright); font-size: 20px; font-weight: 500; letter-spacing: .03em; }
.js .cs-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .cs-reveal.is-in { opacity: 1; transform: none; }
.cs-prose { max-width: 720px; }
.cs-prose p { margin-bottom: 18px; color: var(--text); font-size: 14px; line-height: 1.85; letter-spacing: .005em; }
.cs-prose p:last-child { margin-bottom: 0; }
.cs-prose strong { color: var(--bright); font-weight: 600; background: linear-gradient(transparent 64%, rgb(var(--pr-rgb) / 20%) 64%) no-repeat 0 0 / 100% 100%; transition: background-size 1s cubic-bezier(.3,.7,.2,1) .5s; }
.js .cs-reveal:not(.is-in) .cs-prose strong { background-size: 0% 100%; }
.cs-prose em { color: var(--bright); font-style: italic; font-weight: 500; }
.cs-prose .cs-gap { margin-top: 40px; }
.cs-h3 { margin: 56px 0 14px; color: var(--bright); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.cs-chapter > .cs-prose:first-of-type .cs-h3:first-child { margin-top: 0; }

/* Bridge questions: the line that leads into the next part */
.cs-bridge { position: relative; margin: 48px 0; padding: 4px 0; }
.cs-bridge-kicker { margin-bottom: 12px; color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cs-bridge-q { max-width: 30ch; color: var(--bright); font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.cs-bridge-q mark { padding: 0 2px; background: linear-gradient(transparent 62%, rgb(var(--pr-rgb) / 26%) 62%) no-repeat 0 0 / 100% 100%; color: inherit; transition: background-size 1s cubic-bezier(.3,.7,.2,1) .9s; }
.cs-bridge.is-next { margin-bottom: 8px; }
.js .cs-reveal:not(.is-in) .cs-bridge-q mark { background-size: 0% 100%; }
.js .cs-bridge .cs-bridge-kicker, .js .cs-bridge .cs-bridge-q { transition: opacity .7s ease .3s, transform .7s cubic-bezier(.2,.8,.2,1) .3s; }
.js .cs-reveal:not(.is-in) .cs-bridge .cs-bridge-kicker, .js .cs-reveal:not(.is-in) .cs-bridge .cs-bridge-q { opacity: 0; transform: translateY(12px); }

/* Mismatch diagram */
.cs-flowviz { margin: 56px 0 48px; }
.fv-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fv-line { position: absolute; top: 31px; left: 12.5%; width: 50%; height: 3px; border-radius: 3px; background: #26302B; }
.fv-line::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #7FB496, #5E9C7A); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.4,0,.2,1) .2s; }
.fv-gap { position: absolute; top: 31px; left: 62.5%; width: 25%; border-top: 3px dotted #3A3A3F; }
.fv-gap b { position: absolute; top: -13px; left: 50%; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgb(var(--pr-rgb) / 20%); color: #FF8A90; font-size: 11px; line-height: 1; opacity: 0; transform: translateX(-50%) scale(.4); transition: opacity .3s ease 1.9s, transform .5s cubic-bezier(.3,1.7,.5,1) 1.9s; }
.fv-node { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 14px; padding: 0 8px; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--i) * .45s); }
.fv-node b { color: var(--bright); font-size: 14px; font-weight: 500; line-height: 1.4; }
.fv-ico { display: grid; width: 62px; height: 62px; place-items: center; border: 2px solid #86B89C; border-radius: 50%; background: #13211A; color: #7FB496; box-shadow: 0 0 0 6px #0B0B0C; }
.fv-ico svg { width: 26px; height: 26px; }
.fv-node.is-wall b { color: var(--text); }
.fv-grid { display: grid; grid-template-columns: repeat(3, 10px); gap: 4px; padding: 12px; border-radius: 16px; background: #2A2A2E; box-shadow: 0 0 0 6px #0B0B0C; }
.fv-grid i { width: 10px; height: 10px; border-radius: 50%; background: #6A6A70; }
.fv-grid i:nth-child(3n+1) { background: #F2A6A9; } .fv-grid i:nth-child(3n+2) { background: #A9C7F5; } .fv-grid i:nth-child(3n) { background: #A8DDB8; }
.fv-legend { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; margin-top: 26px; }
.fv-legend span { position: relative; padding-top: 18px; font-size: 13px; text-align: center; }
.fv-legend span::before { position: absolute; top: 0; right: 8px; left: 8px; height: 9px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px; content: ""; }
.fv-legend .is-good { color: #5E9C7A; } .fv-legend .is-dark { color: #A1A1A6; }
.js .cs-flowviz:not(.is-play) .fv-node { opacity: 0; }
.cs-flowviz.is-play .fv-node { opacity: 1; transform: none; }
.cs-flowviz.is-play .fv-line::after { transform: scaleX(1); }
.cs-flowviz.is-play .fv-gap b { opacity: 1; transform: translateX(-50%) scale(1); }
.cs-flowviz.is-play .fv-node.is-wall .fv-grid { animation: wall-shake .5s ease 1.55s; }
@keyframes wall-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.cs-flowviz:not(.is-play) .fv-node { transform: translateY(12px); }
.cs-flowviz.is-play .fv-node:not(.is-wall) .fv-ico { animation: node-pulse 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .5s + 2s); }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 6px #0B0B0C, 0 0 0 11px rgb(94 156 122 / 24%); } }

/* Three problems in one view */
.cs-ptabs { margin: 36px 0 72px; }
.cs-ptablist { position: relative; display: flex; gap: 30px; margin-bottom: 24px; padding: 0; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--rule); }
.cs-ptablist::-webkit-scrollbar { display: none; }
.cs-ptab { display: inline-flex; flex: none; align-items: center; gap: 10px; padding: 12px 2px 14px; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s ease; }
.cs-ptab .n { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #26262A; color: var(--bright); font-size: 11px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.cs-ptab:hover { color: var(--bright); }
.cs-glider { position: absolute; z-index: 0; bottom: 0; left: 0; width: 0; height: 2px; border-radius: 2px; background: var(--bright); transition: transform .55s cubic-bezier(.3,1.25,.4,1), width .55s cubic-bezier(.3,1.25,.4,1); pointer-events: none; }
.cs-ptab { position: relative; z-index: 1; }
.cs-ptab[aria-selected="true"] { color: var(--bright); }
.cs-ptab[aria-selected="true"] .n { background: var(--profile-red); color: #fff; animation: n-pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes n-pop { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
.cs-ptab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }
.cs-ppanel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; min-height: 500px; padding: 28px; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); }
.cs-ppanel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cs-ptext h3 { margin-bottom: 18px; color: var(--bright); font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.cs-ptext p { margin-bottom: 14px; color: var(--text); font-size: 14px; line-height: 1.85; }
.cs-ptext p:last-child { margin-bottom: 0; }
.cs-ptext strong { color: var(--bright); font-weight: 600; background: linear-gradient(transparent 64%, rgb(var(--pr-rgb) / 20%) 64%) no-repeat 0 0 / 100% 100%; }

/* Motion: nothing shows until the block scrolls into view, then every switch replays it */
.js .cs-ptabs:not(.is-seen) .cs-ptablist, .js .cs-ptabs:not(.is-seen) .cs-ppanel { opacity: 0; }
.js .cs-ptabs:not(.is-seen) .cs-ptablist { transform: translateY(10px); }
.cs-ptabs.is-seen .cs-ptablist { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.cs-ptabs.is-seen .cs-ptab { animation: tab-pop .55s cubic-bezier(.3,1.5,.5,1) both; }
.cs-ptabs.is-seen .cs-ptab:nth-of-type(2) { animation-delay: .08s; }
.cs-ptabs.is-seen .cs-ptab:nth-of-type(3) { animation-delay: .16s; }
.cs-ptabs.is-seen .cs-ppanel { animation: panel-in .6s cubic-bezier(.2,.8,.2,1) .15s both; }
.cs-ptabs.is-seen .cs-ptext h3 { animation: rise .6s cubic-bezier(.2,.8,.2,1) .25s both; }
.cs-ptabs.is-seen .cs-ptext p { animation: rise .6s cubic-bezier(.2,.8,.2,1) .4s both; }
.cs-ptabs.is-seen .cs-ptext p + p { animation-delay: .55s; }
.cs-ptabs.is-seen .cs-ptext strong { animation: marker 1s cubic-bezier(.3,.7,.2,1) .95s both; }
.cs-ptabs.is-seen .cs-ptext p + p strong { animation-delay: 1.15s; }
.cs-ptabs.is-seen .cs-fig .cs-phone { animation: shot-in .85s cubic-bezier(.2,.9,.25,1.1) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tab-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes marker { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes shot-in { from { opacity: 0; transform: translateY(34px) rotate(3deg) scale(.94); } to { opacity: 1; transform: none; } }

/* Solution: one screen, three points that light up their part of it */
.cs-solve { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: center; margin: 48px 0 0; }
.cs-solve-shot { display: flex; justify-content: center; }
.cs-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cs-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); cursor: default; outline: none; opacity: .55; transition: opacity .3s ease; }
.cs-steps li:first-child { border-top: 0; }
.cs-steps li.is-active, .cs-steps li:hover { opacity: 1; }
.cs-steps li:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.cs-steps .ico { display: grid; width: 32px; height: 32px; place-items: center; color: var(--muted); transition: color .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.cs-steps .ico svg { width: 24px; height: 24px; }
.cs-steps li.is-active .ico { color: var(--profile-red); transform: scale(1.12) rotate(-6deg); }
.cs-steps h4 { margin-bottom: 4px; color: var(--bright); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.cs-steps p { color: var(--text); font-size: 14px; line-height: 1.75; }
.cs-steps strong { color: var(--bright); font-weight: 600; }
.cs-hl { position: absolute; z-index: 2; border: 2px solid var(--profile-red); border-radius: 8px; background: rgb(var(--pr-rgb) / 14%); opacity: 0; transform: scale(.96); pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.3,1.5,.5,1); }
.hl-1 { inset: 0; border-radius: inherit; background: transparent; box-shadow: inset 0 0 0 3px rgb(var(--pr-rgb) / 35%); }
.hl-2a { left: 3%; right: 3%; top: 85%; height: 15%; }
.hl-2b { right: 4%; top: 20%; width: 24%; height: 4.5%; }
.hl-3a { left: 3%; right: 3%; top: 13%; height: 15%; --d: 0s; border-color: #FF6B72; }
.hl-3b { left: 3%; right: 3%; top: 29%; height: 55%; --d: .12s; border-color: #5B9BFF; background: rgb(91 155 255 / 12%); }
.hl-3c { left: 3%; right: 3%; top: 85%; height: 15%; --d: .24s; border-color: #969CA4; background: rgb(150 156 164 / 14%); }
.cs-solve[data-active="1"] .hl-1, .cs-solve[data-active="2"] .hl-2a, .cs-solve[data-active="2"] .hl-2b, .cs-solve[data-active="3"] .hl-3a, .cs-solve[data-active="3"] .hl-3b, .cs-solve[data-active="3"] .hl-3c { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* One scroll, eight answers */
.cs-scroll { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; margin: 40px 0 8px; }
.cs-scroll-phone { position: sticky; top: 32px; }
.cs-scroller { aspect-ratio: auto; height: 560px; overflow-y: auto; overscroll-behavior: contain; background: #05070F; scrollbar-width: none; cursor: grab; }
.cs-scroller::-webkit-scrollbar { display: none; }
.cs-scroller:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cs-long { position: relative; }
.cs-long img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
.cs-zone { position: absolute; right: 0; left: 0; border-left: 3px solid transparent; background: transparent; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.cs-zone[data-level="1"] { --lv: var(--l1); } .cs-zone[data-level="2"] { --lv: var(--l2); } .cs-zone[data-level="3"] { --lv: var(--l3); }
.cs-zone.is-active { background: linear-gradient(90deg, rgb(var(--lv) / 22%), rgb(var(--lv) / 6%)); border-left-color: rgb(var(--lv)); opacity: 1; }
.cs-zone span { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: rgb(var(--lv)); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Positioning map */
.cs-mapfig { margin: 48px 0 0; }
.cs-map { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.cs-map::before, .cs-map::after { position: absolute; background: #232326; content: ""; }
.cs-map::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.cs-map::after { top: 50%; right: 0; left: 0; height: 1px; }
.ax { position: absolute; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.ax-top, .ax-bottom { left: 50%; padding: 4px 10px; background: var(--card); transform: translateX(-50%); }
.ax-top { top: 10px; } .ax-bottom { bottom: 10px; }
.ax-left { position: absolute; top: 50%; left: 16px; transform: translateY(calc(-100% - 8px)); }
.ax-right { position: absolute; top: 50%; right: 16px; transform: translateY(calc(-100% - 8px)); }
.cs-dot { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 9px; color: #A1A1A6; font-size: 12.5px; white-space: nowrap; transform: translate(-6px, -50%); }
.cs-dot b { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #55555B; }
.cs-dot.is-before { color: var(--muted); }
.cs-dot.is-before b { border: 2px dashed #6A6A70; background: #0B0B0C; }
.cs-dot.is-after { color: var(--bright); font-weight: 600; }
.cs-dot.is-after b { background: var(--profile-red); box-shadow: 0 0 0 6px rgb(var(--pr-rgb) / 18%); animation: dot-glow 2.4s ease-in-out infinite; }
.cs-dot.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
@keyframes dot-glow { 50% { box-shadow: 0 0 0 10px rgb(var(--pr-rgb) / 6%); } }
.cs-map-line { position: absolute; top: 20%; left: 72%; height: 38%; border-left: 2px dashed var(--profile-red); opacity: .7; }
.cs-map-line::before { position: absolute; top: -2px; left: -6px; border: 5px solid transparent; border-bottom: 8px solid var(--profile-red); border-top: 0; content: ""; }
.cs-mapfig figcaption { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }


/* The ending */
.cs-then-now { margin: 56px 0; border-top: 1px solid var(--rule); }
.cs-then-now > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.cs-then-now p { margin: 0; font-size: 14px; line-height: 1.6; }
.cs-then-now > .hd { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cs-then-now .hd p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-then-now .hd .t, .cs-then-now .hd .n { display: inline-flex; align-items: center; gap: 8px; }
.cs-then-now .hd .t { color: var(--muted); }
.cs-then-now .hd .t::before, .cs-then-now .hd .n::before { width: 7px; height: 7px; border-radius: 50%; background: #55555B; content: ""; }
.cs-then-now .hd .n { color: var(--bright); }
.cs-then-now .hd .n::before { background: var(--profile-red); }
.cs-then-now .k { color: var(--profile-red); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-then-now .t { color: var(--muted); }
.cs-then-now .a { color: var(--muted); text-align: center; }
.cs-then-now .n { color: var(--bright); font-weight: 500; }
.cs-placeholder { margin: 8px 0 56px; padding: 28px; border: 1.5px dashed #333338; border-radius: 16px; background: repeating-linear-gradient(135deg, #141416 0 12px, #18181B 12px 24px); }
.cs-placeholder h3 { margin: 10px 0 8px; color: var(--bright); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cs-placeholder p:last-child { max-width: 62ch; font-size: 14px; line-height: 1.8; }
.cs-tpl-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgb(255 200 80 / 14%); color: #E6C468; font-size: 10.5px; font-weight: 500; }
.cs-next { margin: 72px 0 40px; }
.cs-next-label { margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.cs-next ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cs-next li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px dashed #333338; border-radius: 999px; background: var(--card); color: var(--bright); font-size: 13px; font-weight: 500; }
.cs-next li span { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cs-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 820px) {
  .cs-chapter { margin-top: 96px; }
      .cs-scroll { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cs-legend { grid-template-columns: minmax(0, 1fr); }
  .cs-solve { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cs-ppanel { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding: 24px; }
  .cs-scroll-phone { position: static; }
    .cs-then-now > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cs-then-now > .hd { display: none; }
  .cs-then-now > div:not(.hd) .t::before { content: "Before: "; font-weight: 600; }
  .cs-then-now > div:not(.hd) .n::before { content: "After: "; color: var(--profile-red); font-weight: 600; }
  .cs-then-now .a { justify-self: center; text-align: center; transform: rotate(90deg); }
}
@media (max-width: 700px) {
  .ax-left { max-width: 64px; left: 10px; line-height: 1.3; }
  .ax-right { max-width: 78px; right: 10px; text-align: right; line-height: 1.3; }
  .cs-dot[style*="left: 45%"] { left: 34% !important; }
  .fv-node b { font-size: 12.5px; }
  .fv-ico { width: 48px; height: 48px; } .fv-ico svg { width: 22px; height: 22px; }
  .fv-line, .fv-gap { top: 25px; }
  .fv-grid { grid-template-columns: repeat(3, 9px); gap: 4px; padding: 11px; } .fv-grid i { width: 9px; height: 9px; }
  .cs-map { aspect-ratio: 4 / 3.4; }
  .cs-dot { font-size: 11px; gap: 6px; }
}
@media (max-width: 640px) {
  .cs-ptablist { gap: 18px; }
  .cs-ptab { gap: 7px; font-size: 13px; }
  .cs-ptab .n { width: 18px; height: 18px; }
  .cs { width: calc(100% - 40px); padding-top: 24px; }
  .cs-ba-demo .cs-cover-stage { padding: 30px 16px 22px; }
  .cs-value { padding: 28px; }
  .cs-pair { gap: 12px; }
  .cs-ppanel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cs-reveal { opacity: 1; transform: none; transition: none; }
  .cs-dot.is-after b { animation: none; }
  .js .cs-flowviz .fv-node { opacity: 1; transform: none; transition: none; }
  .cs-flowviz .fv-line::after { transform: scaleX(1); transition: none; }
  .fv-gap b { opacity: 1; transform: translateX(-50%); transition: none; }
  .cs-flowviz .fv-ico, .cs-flowviz .fv-grid { animation: none !important; }
  .cs-ptabs .cs-ptablist, .cs-ptabs .cs-ptab, .cs-ptabs .cs-ppanel, .cs-ptabs .cs-ptext *, .cs-ptabs .cs-fig .cs-phone { animation: none !important; }
  .js .cs-ptabs .cs-ptablist, .js .cs-ptabs .cs-ppanel { opacity: 1 !important; transform: none !important; }
  .cs-glider { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Legend: what Pulse, Act and Explore mean, shown before the screen */
.cs-scroll-side { display: grid; gap: 20px; min-width: 0; }
.cs-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.cs-legend li { display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); transition: border-color .25s ease, box-shadow .25s ease, transform .35s cubic-bezier(.3,1.4,.5,1); }
.cs-legend b { position: relative; padding-left: 16px; color: var(--bright); font-size: 14px; font-weight: 600; }
.cs-legend b::before { position: absolute; top: .45em; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--lc); content: ""; transition: transform .35s cubic-bezier(.3,1.7,.5,1); }
.cs-legend li.is-active b::before { transform: scale(1.35); }
.cs-legend span { color: var(--text); font-size: 13px; line-height: 1.65; }
.cs-legend .l1 { --lc: #FF6B72; } .cs-legend .l2 { --lc: #5B9BFF; } .cs-legend .l3 { --lc: #969CA4; }
.cs-legend li.is-active { border-color: var(--lc); box-shadow: 0 10px 24px -14px var(--lc); transform: translateY(-2px); }


/* Answers as an accordion: one line between every point, one open at a time */
.cs-answers { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.cs-answers li { --lv: var(--l1); border-top: 1px solid var(--rule); }
.cs-answers li[data-level="2"] { --lv: var(--l2); } .cs-answers li[data-level="3"] { --lv: var(--l3); }
.cs-answers button { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; align-items: start; width: 100%; padding: 15px 2px; border: 0; background: none; text-align: left; cursor: pointer; }
.cs-answers button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }
.cs-answers button::after { grid-column: 3; grid-row: 1; width: 7px; height: 7px; margin-top: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); content: ""; transform: rotate(45deg); transition: transform .35s cubic-bezier(.3,1.5,.5,1), border-color .2s ease; }
.cs-answers li.is-active button::after { margin-top: 10px; border-color: var(--bright); transform: rotate(-135deg); }
.cs-answers .n { align-self: start; padding-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: color .25s ease; }
.cs-answers li.is-active .n { color: rgb(var(--lv)); }
.cs-answers .txt { display: grid; gap: 0; }
.cs-answers .q { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text); font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; transition: color .25s ease; }
.cs-answers .bd { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: rgb(var(--lv) / 14%); color: var(--text); font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
.cs-answers .bd::before { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--lv)); content: ""; }
.cs-answers li.is-active .bd { color: var(--bright); }
.cs-answers li.is-active .q, .cs-answers button:hover .q { color: var(--bright); }
.cs-answers .a { display: block; max-height: 0; overflow: hidden; color: var(--text); font-size: 14px; line-height: 1.75; opacity: 0; transition: max-height .45s cubic-bezier(.2,.8,.2,1), margin .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.cs-answers li.is-active .a { max-height: 140px; margin-top: 8px; margin-bottom: 4px; opacity: 1; }

/* Important phrases inside the open answer get the same marker as elsewhere */
.cs-answers .a strong { color: var(--bright); font-weight: 600; background: linear-gradient(transparent 64%, rgb(var(--pr-rgb) / 20%) 64%) no-repeat 0 0 / 0% 100%; transition: background-size .9s cubic-bezier(.3,.7,.2,1); }
.cs-answers li.is-active .a strong { background-size: 100% 100%; transition-delay: .35s; }

/* Before / after demo inside the solution */
.cs-ba-demo { margin: 28px 0 0; }
.cs-ba-demo .cs-cover-stage { display: grid; justify-items: center; padding: 40px 24px 26px; border: 1px solid var(--rule); border-radius: 16px; background: #141416; }
.cs-ba-demo .cs-tags { width: 230px; max-width: 100%; }

/* The Design: auto-playing prototypes, one journey per tab */
.dm { margin-top: 36px; }
.dm-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dm-tab { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.dm-tab:hover { border-color: #3A3A3F; color: var(--bright); }
.dm-tab[aria-selected="true"] { border-color: var(--bright); background: var(--bright); color: #0B0B0C; }
.dm-tab:focus-visible, .dm-btn:focus-visible, .dm-var:focus-visible, .dm-steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dm-panel { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: start; min-height: 700px; padding: 32px; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); }
.dm-stage { display: grid; justify-items: center; gap: 16px; }
.dm-phone { width: 270px; }
.dm-screen { background: #050B1A; }
.dm-canvas { position: absolute; top: 0; left: 0; width: 375px; height: 812px; overflow: hidden; transform-origin: 0 0; transform: scale(var(--k, .688)); }
.dm-layer { position: absolute; inset: 0; overflow: hidden; background: #050B1A; }
.dm-screen .dm-layer > img { position: absolute; inset: auto; top: 0; left: 0; display: block; width: 375px; height: 812px; object-fit: fill; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.dm-full .sc { position: absolute; top: 96px; left: 0; width: 375px; height: 716px; overflow: hidden; }
.dm-screen .dm-full .sc img { position: absolute; inset: auto; top: -96px; left: 0; width: 375px; height: 3249px; will-change: transform; }
.dm-full .hd, .dm-full .nv { position: absolute; left: 0; width: 375px; background-repeat: no-repeat; background-size: 375px auto; }
.dm-full .hd { top: 0; height: 96px; background-position: 0 0; }
.dm-full .nv { bottom: 0; height: 92px; background-position: 0 100%; }
.dm-long .sc { position: absolute; inset: 0; overflow: hidden; }
.dm-screen .dm-long .sc img { position: absolute; inset: auto; top: 0; left: 0; width: 375px; height: var(--h); will-change: transform; }
.dm-long .nv { position: absolute; left: 0; width: 375px; bottom: 0; height: 96px; background-repeat: no-repeat; background-size: 375px var(--h); background-position: 0 100%; }
.dm-dots { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.dm-dots i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 3px rgb(59 130 246 / 30%); transform: translate(-50%, -50%) scale(0); transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
.dm-dots i.on { transform: translate(-50%, -50%) scale(1); }
.dm-finger { position: absolute; z-index: 6; top: 0; left: 0; width: 38px; height: 38px; margin: -3px 0 0 -12px; transform-origin: 12px 3px; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 45%)); }
.dm-finger svg { display: block; width: 38px; height: 38px; overflow: visible; }
.dm-finger i { position: absolute; top: 3px; left: 12px; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid #fff; border-radius: 50%; background: rgb(255 255 255 / 25%); opacity: 0; }
.dm-ctrl { display: flex; align-items: center; gap: 10px; }
.dm-btn { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); color: var(--bright); cursor: pointer; transition: border-color .2s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.dm-btn:hover { border-color: #3A3A3F; transform: rotate(-30deg); }
.dm-btn svg { width: 15px; height: 15px; }
.dm.is-paused .cs-playpause .ico::before { top: 0; left: 1px; width: 0; height: 0; border-radius: 0; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; background: none; }
.dm.is-paused .cs-playpause .ico::after { display: none; }
.dm-count { min-width: 64px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dm-info { padding-top: 8px; }
.dm-kicker { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.dm-info h3 { margin-bottom: 12px; color: var(--bright); font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.dm-desc { margin-bottom: 22px; color: var(--text); font-size: 14px; line-height: 1.8; }
.dm-variants { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: #1C1C1F; }
.dm-variants[hidden] { display: none; }
.dm-var { padding: 7px 14px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease; }
.dm-var[aria-pressed="true"] { background: #2E2E33; color: var(--bright); box-shadow: 0 1px 4px rgb(0 0 0 / 12%); }
.dm-steps { margin: 0; padding: 0; list-style: none; counter-reset: dm; }
.dm-steps li { counter-increment: dm; }
.dm-steps button { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--muted); font-size: 13.5px; line-height: 1.55; text-align: left; cursor: pointer; transition: color .25s ease; }
.dm-steps li:first-child button { border-top: 0; }
.dm-steps button::before { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #EFEFEF; color: var(--bright); font-size: 11px; font-weight: 600; content: counter(dm); transition: background .25s ease, color .25s ease, transform .4s cubic-bezier(.3,1.8,.5,1); }
.dm-steps button:hover { color: var(--bright); }
.dm-steps .is-done button { color: var(--text); }
.dm-steps .is-on button { color: var(--bright); font-weight: 500; }
.dm-steps .is-on button::before { background: var(--profile-red); color: #fff; transform: scale(1.12); }
.dm-steps .is-on button::after { position: absolute; left: 36px; right: 0; bottom: -1px; height: 2px; background: var(--profile-red); content: ""; transform-origin: left; animation: dm-bar var(--dur, 2s) linear both; }
.dm.is-paused .dm-steps .is-on button::after { animation-play-state: paused; }
@keyframes dm-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 820px) {
  .dm-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding: 24px; }
  .dm-info { padding-top: 0; }
}
@media (max-width: 640px) {
  .dm-tabs { flex-wrap: nowrap; margin-inline: -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
  .dm-tabs::-webkit-scrollbar { display: none; }
  .dm-tab { flex: none; }
  .dm-panel { padding: 20px; }
  .dm-phone { width: min(100%, 250px); }
}
@media (prefers-reduced-motion: reduce) {
  .dm-steps .is-on button::after { animation: none; transform: none; }
}

/* Profits case studies: switch between features */
.cs-switch { display: inline-flex; align-items: center; gap: 4px; margin: -16px 0 32px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; font-size: 12.5px; }
.cs-switch span { padding: 6px 10px 6px 12px; color: var(--muted); }
.cs-switch a { padding: 6px 14px; border-radius: 999px; color: var(--text); font-weight: 500; transition: background .2s ease, color .2s ease; }
.cs-switch a:hover { color: var(--bright); background: rgb(255 255 255 / 6%); }
.cs-switch a[aria-current="page"] { background: var(--bright); color: #0B0B0C; }
.cs-switch a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Highlights on a screen: shown at once inside the problem tabs, switched by the solution points elsewhere */
.cs-hl.is-on { opacity: 1; transform: none; }
.cs-ppanel .cs-hl { opacity: 1; transform: none; animation: hl-in .55s cubic-bezier(.3,1.4,.5,1) .15s both; }
@keyframes hl-in { from { opacity: 0; transform: scale(.9); } }
.cs-hl.is-dash { border-style: dashed; background: rgb(var(--pr-rgb) / 8%); }
.cs-hl.s2 { border-color: #5B9BFF; background: rgb(91 155 255 / 12%); }
.cs-hl.s3 { border-color: #969CA4; background: rgb(150 156 164 / 14%); }

/* Feature map */
.cs-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.cs-feats li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); }
.cs-feats b { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.9; }
.cs-feats h4 { margin-bottom: 4px; color: var(--bright); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.cs-feats p { color: var(--text); font-size: 13.5px; line-height: 1.65; }
@media (max-width: 640px) { .cs-feats { grid-template-columns: minmax(0, 1fr); } .cs-switch { margin-top: -8px; } }

/* Profits' project pages: the violet of the Natha Gadai pages in place of the red */
body.cs-violet { --profile-red: #7C60FF; --pr-rgb: 91 52 255; }
body.cs-violet { --l1: 140 118 255; }
.cs-violet .cs-legend .l1 { --lc: #8C76FF; }
.cs-violet .hl-3a { border-color: #8C76FF; }

/* Hero on small screens: stack everything */
@media (max-width: 560px) {
  .cs-titlerow { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cs-props { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
}

/* Section navigation: small dashes on the left edge; only the current label shows, hover opens the rest */
body .cs-switch.cs-toc { position: fixed; left: 20px; top: 50%; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: none; margin: 0; padding: 8px 14px 8px 10px; overflow: visible; border: 1px solid transparent; border-radius: 12px; background: transparent; transform: translateY(-50%); font-size: 12px; transition: background .2s ease, border-color .2s ease; }
body .cs-switch.cs-toc a { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-radius: 0; background: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
body .cs-switch.cs-toc a::before { content: ""; flex: none; width: 24px; height: 2px; background: linear-gradient(currentColor, currentColor) left / 12px 100% no-repeat; opacity: .55; transition: background-size .25s ease, opacity .2s ease; }
body .cs-switch.cs-toc a > span { max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease, max-width .25s ease; }
body .cs-switch.cs-toc a:hover { color: var(--bright); background: none; }
body .cs-switch.cs-toc a[aria-current] { color: var(--bright); }
body .cs-switch.cs-toc a[aria-current]::before { background-size: 24px 100%; opacity: 1; }
body .cs-switch.cs-toc a[aria-current] > span { max-width: 200px; opacity: 1; transform: none; font-weight: 600; }
body .cs-switch.cs-toc:hover, body .cs-switch.cs-toc:focus-within { border-color: var(--rule); background: rgb(14 14 16 / 88%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body .cs-switch.cs-toc:hover a > span, body .cs-switch.cs-toc:focus-within a > span { max-width: 200px; opacity: 1; transform: none; }
@media (max-width: 700px) {
  body .cs-switch.cs-toc { left: 0; padding-left: 4px; }
  body .cs-switch.cs-toc a::before { width: 14px; background-size: 8px 100%; }
  body .cs-switch.cs-toc a[aria-current]::before { background-size: 14px 100%; }
  body .cs-switch.cs-toc a[aria-current] > span { max-width: 0; opacity: 0; }
}

/* Back button: pinned to the top-left, in line with the section navigation */
.cs-back { position: fixed; z-index: 45; top: 28px; left: 31px; margin: 0; background: rgb(14 14 16 / 82%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cs-crumbs { padding-left: max(0px, calc(122px - max(20px, (100vw - 768px) / 2))); }
@media (max-width: 700px) { .cs-back { left: 8px; top: 16px; } .cs-crumbs { padding-left: max(0px, calc(104px - 20px)); } }

/* Also read: the other chapters of the same project, at the end of a page */
.cs-also { margin: 96px 0 0; padding-top: 32px; border-top: 1px solid var(--rule); }
.cs-also h2 { margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cs-also-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cs-also-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 44px 18px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.cs-also-card b { color: var(--bright); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.cs-also-card span { color: var(--text); font-size: 13px; line-height: 1.55; }
.cs-also-card i { position: absolute; right: 18px; top: 18px; color: var(--muted); font-style: normal; transition: color .2s ease, transform .2s ease; }
.cs-also-card:hover { border-color: #3A3A3F; background: #18181B; transform: translateY(-2px); }
.cs-also-card:hover i { color: var(--bright); transform: translateX(3px); }
.cs-also-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Also read: one row per chapter, with its screen */
.cs-also-grid { grid-template-columns: minmax(0, 1fr); }
.cs-also-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 18px; row-gap: 4px; align-items: center; padding: 14px 20px 14px 14px; }
.cs-also-thumb { grid-row: 1 / span 2; width: 52px; height: 90px; border-radius: 8px; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%); transition: transform .4s ease; }
.cs-also-card:hover .cs-also-thumb { transform: rotate(-3deg) scale(1.05); }
.cs-also-card b { grid-column: 2; align-self: end; }
.cs-also-card span { grid-column: 2; align-self: start; }
.cs-also-card i { position: static; grid-column: 3; grid-row: 1 / span 2; }

/* Also read: the same purple hover as the chapter list on the project page */
.cs-also-card { overflow: hidden; transition: background .25s ease, border-color .25s ease, padding .25s ease; }
.cs-also-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgb(91 52 255), rgb(31 107 255)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cs-also-card:hover, .cs-also-card:focus-visible { transform: none; border-color: rgb(91 52 255 / 35%); background: rgb(91 52 255 / 10%); padding-left: 22px; }
.cs-also-card:hover::after, .cs-also-card:focus-visible::after { transform: scaleX(1); }
