/* ============ Tokens ============ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --sunken: #eef0f7;
  --ink: #0f172a;
  --muted: #5b6478;
  --faint: #8a93a8;
  --line: #e2e5ee;
  --accent: #3d5afe;
  --accent-soft: #e8ecff;
  --accent-ink: #ffffff;
  --mint: #0ea882;
  --mint-soft: #e2f6ef;
  --amber-soft: #fff4d6;
  --todo: #fff1a8;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.14);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.04), 0 30px 60px -20px rgba(15,23,42,.22);
  --radius: 16px;
  --max: 1160px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --serif: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --surface: #121a2e; --sunken: #0f1628; --ink: #e8edf8; --muted: #9ba6bf; --faint: #6c7894;
    --line: #222c45; --accent: #8096ff; --accent-soft: #1c2650; --accent-ink: #0b1020;
    --mint: #3ddcb8; --mint-soft: #123630; --amber-soft: #3a3115; --todo: #4d4410;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 60px -20px rgba(0,0,0,.6);
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.todo { background: var(--todo); padding: 0 4px; border-radius: 3px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .idx { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 700 19px var(--display); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 14px; }
.logo span.dot { color: var(--accent); }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a.link { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav a.link:hover, .nav a.link.active { color: var(--ink); background: var(--sunken); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============ Hero ============ */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; text-wrap: balance; }
.hero h1 .serif { color: var(--accent); font-size: 1.08em; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 48ch; margin-bottom: 30px; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.focus-areas { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.focus-areas b { display: block; width: 100%; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.focus-areas span { display: inline-flex; align-items: center; gap: 8px; }
.focus-areas span::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--accent); }

/* app window */
.stage { position: relative; padding: 0 0 64px 28px; }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--faint); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.win-bar .url { margin-left: 12px; padding: 3px 10px; border-radius: 6px; background: var(--sunken); }
.app { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.side { border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--sunken); }
.side i { width: 22px; height: 22px; border-radius: 6px; background: var(--line); }
.side i.on { background: var(--accent); }
.main { padding: 16px 18px 12px; min-width: 0; }
.main-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.main-top .t { font: 600 14px var(--body); }
.main-top .seg { display: flex; gap: 2px; padding: 2px; background: var(--sunken); border-radius: 7px; font: 500 11px var(--mono); color: var(--faint); }
.main-top .seg span { padding: 3px 8px; border-radius: 5px; }
.main-top .seg span.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi i { display: block; height: 7px; width: 55%; border-radius: 4px; background: var(--line); }
.kpi b { display: block; height: 14px; width: 70%; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); margin-top: 8px; }
.kpi em { display: inline-block; margin-top: 7px; height: 7px; width: 34%; border-radius: 4px; background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent); }
#chart { width: 100%; height: auto; overflow: visible; touch-action: none; }
#chart text { font: 500 10px var(--mono); fill: var(--faint); }
#chart .grid { stroke: var(--line); }
#chart .bar { fill: var(--accent); opacity: .08; }
#chart .bar.hot { opacity: .18; }
#chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s .4s ease forwards; }
#chart .area { fill: url(#areaG); opacity: 0; animation: fade 1s 1.4s forwards; }
#chart .anchor { fill: var(--surface); stroke: var(--accent); stroke-width: 2; cursor: ns-resize; }
#chart .anchor:hover, #chart .anchor:focus, #chart .anchor.on { fill: var(--accent); outline: none; }
#chart .hl { stroke: var(--accent); stroke-width: 1; opacity: .5; }
#chart .hd { fill: var(--surface); stroke: var(--accent); stroke-width: 1.2; }
#chart .cross { stroke: var(--faint); stroke-dasharray: 3 3; }
#chart .tipbox { fill: var(--ink); }
#chart .tiptext { fill: var(--bg); font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.inspector { position: absolute; left: 0; bottom: 0; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); font: 500 11.5px/1.5 var(--mono); overflow: hidden; }
.inspector .ih { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--faint); }
.inspector .ih b { color: var(--ink); font-weight: 600; }
.inspector dl { margin: 0; padding: 8px 12px 10px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.inspector dt { color: var(--faint); }
.inspector dd { margin: 0; text-align: right; color: var(--ink); }
.inspector dd .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); margin-right: 6px; vertical-align: -1px; }
.inspector dd.v { color: var(--accent); font-weight: 700; }
.stage-hint { position: absolute; right: 4px; bottom: 2px; font: 500 11px var(--mono); color: var(--faint); }

/* ============ Impact strip ============ */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 8px; }
.impact > div { padding: 22px 24px; min-width: 0; }
.impact > div + div { border-left: 1px solid var(--line); }
.impact b { display: block; font: 700 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: -.03em; }
.impact span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.impact-note { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* ============ Sections ============ */
section.block { padding: clamp(72px, 9vw, 120px) 0 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin-top: 12px; max-width: 20ch; }
.sec-head p { color: var(--muted); max-width: 44ch; }

/* ============ Work ============ */
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.card.feature { grid-column: span 3; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card:not(.feature) .thumb { aspect-ratio: 16 / 11; }
.thumb .note { position: absolute; bottom: 10px; left: 12px; font: 500 11px var(--mono); background: var(--todo); color: #2a2a2a; padding: 2px 7px; border-radius: 4px; }
.tint-a { background: var(--accent-soft); } .tint-b { background: var(--mint-soft); } .tint-c { background: var(--amber-soft); } .tint-d { background: var(--sunken); }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .kicker { font: 500 12px var(--mono); color: var(--faint); letter-spacing: .02em; }
.card h3 { font-size: 21px; line-height: 1.2; }
.card.feature h3 { font-size: 25px; }
.card p { color: var(--muted); font-size: 15px; }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.card .foot .res { color: var(--mint); font-weight: 600; }
.card .foot .go { font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip { font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); }
.chip.new { background: var(--accent-soft); color: var(--accent); }

/* thumb illustrations */
.ill-phone { width: 112px; height: 220px; border-radius: 24px; background: var(--surface); border: 4px solid var(--ink); padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-lg); }
.ill-phone i { display: block; height: 9px; border-radius: 4px; background: var(--line); }
.ill-phone i.h { width: 55%; height: 11px; background: var(--ink); }
.ill-phone i.b { height: 44px; border-radius: 9px; }
.ill-phone i.a { background: var(--accent); opacity: .85; }
.ill-list { width: 66%; display: flex; flex-direction: column; gap: 8px; }
.ill-list div { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.ill-list div::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
.ill-list div:nth-child(2)::before { background: #f5a524; }
.ill-list div:nth-child(3)::before { background: var(--accent); }
.ill-list i { height: 8px; border-radius: 4px; background: var(--line); flex: 1; }
.ill-list b { width: 38px; height: 18px; border-radius: 5px; background: var(--ink); flex: none; opacity: .85; }
.ill-price { display: flex; align-items: center; gap: 10px; color: var(--faint); font: 700 22px var(--display); }
.ill-price i { width: 38px; height: 54px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.ill-price i:nth-child(2) { opacity: .7; } .ill-price i:nth-child(3) { opacity: .45; }
.ill-price i.one { width: 60px; height: 74px; border: 2px solid var(--mint); box-shadow: var(--shadow-lg); }
.ill-sys { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.ill-sys i { height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ill-sys i:nth-child(2) { border-radius: 50%; } .ill-sys i:nth-child(5) { background: var(--ink); } .ill-sys i:nth-child(7) { background: #f5a524; opacity: .8; } .ill-sys i:nth-child(9) { border-radius: 22px 10px; }
.ill-cal { display: grid; grid-template-columns: repeat(7, 18px); gap: 4px; }
.ill-cal i { height: 18px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.ill-cal i:nth-child(5n+2) { background: var(--accent-soft); border-color: transparent; }
.ill-cal i:nth-child(7n+4) { background: var(--accent); border-color: transparent; }

/* ============ Process ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 26px 24px 28px; position: relative; min-width: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font: 500 12px var(--mono); color: var(--accent); }
.step h3 { font-size: 19px; line-height: 1.25; margin: 12px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step.loop { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.loopnote { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.loopnote b { color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: 13px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.principles h3 { font-size: 17px; margin-bottom: 6px; }
.principles p { font-size: 14.5px; color: var(--muted); }

/* ============ Prototypes ============ */
.protos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.proto:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.proto .screen { aspect-ratio: 4 / 3; background: var(--sunken); display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); }
.play { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.play::after { content: ""; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.proto .screen .note { position: absolute; bottom: 10px; left: 12px; font: 500 11px var(--mono); background: var(--todo); color: #2a2a2a; padding: 2px 7px; border-radius: 4px; }
.proto .pb { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.proto h3 { font-size: 18px; }
.proto p { font-size: 14.5px; color: var(--muted); }
.proto a { font-weight: 600; font-size: 14px; margin-top: 6px; text-decoration: none; }
.toolrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* ============ Experience ============ */
.exp { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.exp-aside { position: sticky; top: 96px; }
.portrait { aspect-ratio: 1; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 20px; }
.exp-aside p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.exp-aside .facts { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.exp-aside .facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.exp-aside .facts span { color: var(--faint); text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line); }
.era { position: relative; padding: 0 0 36px 32px; }
.era::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.era:first-child::before { background: var(--accent); }
.era .when { font: 500 12px var(--mono); color: var(--faint); letter-spacing: .04em; }
.era .role { font: 600 13.5px var(--body); color: var(--accent); margin-left: 8px; }
.era h3 { font-size: 21px; margin: 6px 0 6px; }
.era p { color: var(--muted); font-size: 15px; margin-bottom: 10px; max-width: 62ch; }
.era ul { margin: 0; padding-left: 18px; font-size: 15px; max-width: 62ch; }
.era li { margin-bottom: 3px; }
.era li::marker { color: var(--faint); }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 12px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; min-width: 0; }
.lesson .eyebrow { font-size: 11px; }
.lesson h3 { font-size: 17.5px; margin: 10px 0 6px; }
.lesson p { font-size: 14.5px; color: var(--muted); }
.subhead { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 0 14px; }

/* ============ Contact ============ */
.contact { margin-top: clamp(80px, 10vw, 128px); background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); opacity: .5; }
.contact .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.contact h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; margin-top: 14px; color: var(--bg); }
.contact h2 .serif { color: color-mix(in srgb, var(--accent) 60%, var(--bg)); }
.contact p { color: color-mix(in srgb, var(--bg) 68%, transparent); margin-top: 14px; max-width: 42ch; }
.contact .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; position: relative; z-index: 1; }
.contact .btn { justify-content: space-between; background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 25%, transparent); }
.contact .btn:hover { border-color: var(--bg); }
.contact .btn.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
footer.site { padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }
footer.site a { margin-left: 18px; text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ============ Reveal ============ */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .card.reveal.in-view, html.js .proto.reveal.in-view { transition: transform .2s, box-shadow .2s, border-color .2s, opacity .6s; }

/* ============ Case study pages ============ */
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; padding: 28px 0 40px; margin-top: 72px; border-top: 1px solid var(--line); }
.foot-row a { margin-left: 18px; text-decoration: none; }
.cs-hero { padding: 64px 0 24px; }
.cs-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; max-width: 20ch; margin-top: 14px; }
.cs-hero h1 em { color: var(--accent); }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0 0; }
.meta dt { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }
.meta dd { margin: 0; font-weight: 600; }
.cs-sec { padding-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.cs-sec h2 { font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.cs-sec .c p { margin: 0 0 14px; max-width: 66ch; }
.cs-sec .c .hint { color: var(--muted); font-size: 15px; }
.shot { aspect-ratio: 16/9; border: 1.5px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-size: 14px; margin: 18px 0; background: var(--surface); }

/* ============ Responsive ============ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .exp { grid-template-columns: 1fr; gap: 36px; }
  .exp-aside { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
  .portrait { margin: 0; }
}
@media (max-width: 860px) {
  .nav ul li.hide-sm { display: none; }
  .work { grid-template-columns: 1fr; }
  .card, .card.feature { grid-column: auto; }
  .impact { grid-template-columns: repeat(2, 1fr); }
  .impact > div:nth-child(3) { border-left: 0; }
  .impact > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .protos, .principles, .lessons { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, 1fr); }
  .cs-sec { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .stage { padding: 0; }
  .inspector { position: relative; width: auto; margin-top: 12px; }
  .stage-hint { position: static; display: block; margin-top: 8px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi:nth-child(3) { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .exp-aside { grid-template-columns: 1fr; }
  .portrait { max-width: 180px; }
  .meta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #chart .line { stroke-dashoffset: 0; } #chart .area { opacity: 1; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============ Pixels ↔ code hero ============ */
.pixel-stage { position: relative; min-width: 0; }
#pixels { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.pixel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pixel-hint { font: 500 12px var(--mono); color: var(--faint); }
.hero-opts { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: 9px; }
.hero-opts button { font: 500 11.5px var(--mono); color: var(--muted); background: none; border: 0; padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.hero-opts button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* ============ Case study: after launch ============ */
.changelog { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.changelog::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 1.5px; background: var(--line); }
.log { position: relative; padding: 0 0 28px 30px; }
.log::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.log-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 500 12px var(--mono); color: var(--faint); }
.log-meta .ver { color: var(--ink); font-weight: 700; }
.log h3 { font-size: 19px; margin: 8px 0 12px; }
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.log-grid > div { padding: 14px 16px; min-width: 0; }
.log-grid > div + div { border-left: 1px solid var(--line); }
.log-grid dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 6px; }
.log-grid dd { margin: 0; font-size: 14.5px; }
.chip.fb { background: var(--accent-soft); color: var(--accent); }
.chip.data { background: var(--mint-soft); color: var(--mint); }
.chip.sup { background: var(--amber-soft); color: #a76b00; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 28px; }
.quotes blockquote { margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; font-size: 15px; }
.quotes cite { display: block; margin-top: 10px; font: 500 12px var(--mono); color: var(--faint); font-style: normal; }
.nextbox { margin-top: 4px; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: 12px; }
.nextbox b { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 8px; }
.nextbox ul { margin: 0; padding-left: 18px; font-size: 15px; }
@media (max-width: 760px) {
  .log-grid { grid-template-columns: 1fr; }
  .log-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
}

/* ============ Retro pixel cursor ============ */
html, body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2222%22%20height%3D%2234%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3C/svg%3E") 0 0, auto; }
a, button, summary, label, [role="button"], [role="slider"], .card, .proto, .hero-opts button { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2234%22%20height%3D%2234%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%228%22%20y%3D%220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2216%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2218%22%20y%3D%228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2210%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2212%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2214%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2216%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%220%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2232%22%20y%3D%2218%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%224%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2232%22%20y%3D%2220%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%224%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2232%22%20y%3D%2222%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%224%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2224%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2230%22%20y%3D%2226%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%226%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2230%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%228%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2216%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2222%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2224%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2226%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2232%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23000%22/%3E%3C/svg%3E") 9 0, pointer; }
input, textarea { cursor: text; }

/* ============ Hero v3: wireframe → pixel UI ============ */
#heroFx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#pixels { cursor: inherit; }
.pixel-hint .k { color: var(--muted); }
#pixels { border: 1px solid var(--line); border-radius: 12px; }

/* ============ Hero frame + design-system popover ============ */
#pixels { box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 16px -8px rgba(15,23,42,.12), 0 28px 56px -20px rgba(15,23,42,.28); }
.pixel-stage { position: relative; }
.ds-pop { position: absolute; left: -52px; bottom: -60px; width: 192px; z-index: 2; background: #0f141d; color: #c6c6c6; border: 1px solid #262d3b; border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 40px -12px rgba(15,23,42,.45); font: 500 10px/1.4 var(--mono); overflow: hidden; }
.hero { padding-bottom: 104px; }
.ds-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 11px; border-bottom: 1px solid #222938; color: #e6e8ee; }
.ds-mode { color: #7d8aa6; }
.ds-sec { padding: 7px 11px 8px; border-bottom: 1px solid #1c2230; }
.ds-sec:last-child { border-bottom: 0; }
.ds-lbl { color: #6f7b94; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ds-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; margin-bottom: 4px; }
.ds-row i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ds-row code { font: inherit; color: #7d8aa6; }
.ds-demand { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.ds-demand span { flex: 1; }
.ds-demand i { width: 18px; height: 12px; border-radius: 2px; }
.ds-space { display: flex; align-items: flex-end; gap: 10px; height: 14px; }
.ds-space b { display: block; height: 14px; background: rgba(238,83,150,.35); border-left: 1px solid #ee5396; border-right: 1px solid #ee5396; }
.ds-scale { display: flex; gap: 10px; margin-top: 3px; color: #7d8aa6; font-size: 9.5px; }
.ds-scale span:nth-child(1) { width: 4px; } .ds-scale span:nth-child(2) { width: 8px; } .ds-scale span:nth-child(3) { width: 12px; } .ds-scale span:nth-child(4) { width: 16px; }
.ds-two { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.ds-rad { display: flex; gap: 6px; }
.ds-rad i { width: 16px; height: 16px; border: 1.5px solid #4589ff; border-right-color: transparent; border-bottom-color: transparent; }
.ds-type { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.ds-type b { font: 600 13px var(--body); color: #e6e8ee; }
.ds-type em { font: 400 11px var(--body); font-style: normal; color: #c6c6c6; }
.ds-type span { color: #7d8aa6; font-size: 9.5px; }
@media (max-width: 1040px) { .ds-pop { left: 12px; bottom: -48px; } .hero { padding-bottom: 96px; } }
@media (max-width: 560px) { .ds-pop { position: relative; left: auto; bottom: auto; width: auto; margin-top: 14px; } .hero { padding-bottom: 56px; } }

/* ============ Case study building blocks ============ */
.cs-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.cs-sec .c b { color: var(--ink); }
.tldr { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.tldr > div { padding: 20px 22px; min-width: 0; }
.tldr > div + div { border-left: 1px solid var(--line); }
.tldr b { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 8px; }
.tldr p { font-size: 15px; color: var(--muted); }
.hmw { margin: 22px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font: 500 18px/1.45 var(--display); color: var(--ink); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.mini > b { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.mini ul { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; }
.mini li { margin-bottom: 5px; }
.ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 4px; }
.ds-grid > div { background: var(--surface); padding: 14px 16px; }
.ds-grid b { font-size: 14.5px; }
.ds-grid p { margin: 4px 0 0 !important; font-size: 14px; color: var(--muted); }
.matrix { display: grid; grid-template-columns: 28px 1fr 1fr; grid-template-rows: 1fr 1fr auto; gap: 8px; margin: 22px 0 18px; max-width: 640px; }
.matrix .ax { font: 500 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; }
.matrix .ax-y { grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix .ax-x { grid-column: 2 / 4; }
.matrix .q { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); min-height: 96px; }
.matrix .q span { font: 600 13px var(--body); display: block; margin-bottom: 4px; }
.matrix .q p { margin: 0 !important; font-size: 13.5px; color: var(--muted); }
.matrix .q.hot { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.matrix .q1 { grid-column: 2; grid-row: 1; } .matrix .q2 { grid-column: 3; grid-row: 1; } .matrix .q3 { grid-column: 2; grid-row: 2; } .matrix .q4 { grid-column: 3; grid-row: 2; }
.insight { padding: 14px 18px; background: var(--sunken); border-radius: 10px; }
.scope { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.scope > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.scope b { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.scope .in { color: var(--mint); } .scope .next { color: var(--accent); } .scope .out { color: #d14d4d; }
.scope ul { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; } .scope li { margin-bottom: 4px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare figure, .iters figure { margin: 0; }
.compare .shot { aspect-ratio: 9 / 16; max-height: 460px; margin: 0 0 10px; }
.compare figcaption, .iters figcaption { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.compare figcaption b { color: var(--ink); }
.iters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.shot.sm { aspect-ratio: 9 / 14; margin: 0 0 8px; font-size: 12.5px; text-align: center; padding: 8px; }
.cs-impact { margin-top: 18px; }
@media (max-width: 860px) {
  .tldr, .cols3, .ds-grid, .scope, .compare { grid-template-columns: 1fr; }
  .tldr > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============ Version switcher ============ */
.ver-switch { display: inline-flex; margin-left: 6px; }
.ver-switch .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ver-switch select { appearance: none; -webkit-appearance: none; font: 500 12.5px var(--mono); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b6478' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 28px 7px 10px; cursor: pointer; }
.ver-switch select:hover { border-color: var(--faint); }
.toolbar .ver-switch select { font-size: 12px; }

/* ============ Deck embed ============ */
.deck { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.deck iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #1e1e1e; }
.deck .deck-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.deck .deck-bar span { color: var(--muted); }
.deck .deck-bar a { font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.fig { margin: 18px 0; }
.fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fig figcaption { font-size: 13.5px; color: var(--faint); margin-top: 8px; }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fig-row .fig { margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.features > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.features b { display: block; font-size: 15px; margin-bottom: 4px; }
.features p { margin: 0 !important; font-size: 14px; color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font: 500 13px var(--mono); }
.flow span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.flow i { font-style: normal; color: var(--faint); }
@media (max-width: 760px) { .fig-row { grid-template-columns: 1fr; } }
ul.plain { margin: 0 0 14px; padding-left: 18px; max-width: 66ch; }
ul.plain li { margin-bottom: 6px; }
table.tokens { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.tokens th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 10px 14px; background: var(--sunken); }
table.tokens td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.tokens code, .cs-sec code { font: 500 12.5px var(--mono); color: var(--accent); }
table.tokens .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 16px 0; border-top: 2px solid var(--line); }
.tl > div { padding: 12px 10px 0 0; position: relative; }
.tl > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl > div:last-child::before { background: var(--accent); }
.tl b { display: block; font: 600 13px var(--mono); margin-top: 6px; }
.tl span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .tl { grid-template-columns: 1fr 1fr; row-gap: 18px; } table.tokens { font-size: 12.5px; } table.tokens td, table.tokens th { padding: 8px; } }

/* ============ Case study imagery ============ */
.stage { margin: 22px 0; padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 36px) 20px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), var(--sunken) 70%); border: 1px solid var(--line); }
.stage figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.stage figcaption b { color: var(--ink); }
.screens { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 32px); }
.device { flex: 0 1 230px; min-width: 0; background: #101318; border-radius: 34px; padding: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 28px 50px -18px rgba(15,23,42,.45); }
.device img { display: block; width: 100%; height: auto; border-radius: 27px; background: #fff; }
.screens .device:nth-child(2):not(:last-child) { transform: translateY(-22px); flex-basis: 250px; }
.stage-split { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 28px; align-items: center; }
.stage-split .screens { justify-content: flex-start; }
.stage-split .device { flex-basis: 250px; }
.stage-split figcaption { margin: 0; }
ul.plain.small { font-size: 14px; margin: 8px 0; }
.ui-frame { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 18px 40px -18px rgba(15,23,42,.3); }
.ui-frame img { display: block; width: 100%; height: auto; }
.fig .ui-frame + figcaption { margin-top: 10px; }
.fig.narrow { max-width: 600px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); align-items: start; }
.ba-tag { display: inline-block; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); margin-bottom: 10px; }
.ba-tag.new { background: var(--mint-soft); color: var(--mint); border-color: transparent; }
.concepts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) {
  .screens { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .screens .device { flex: 0 0 62%; scroll-snap-align: center; }
  .screens .device:nth-child(2):not(:last-child) { transform: none; }
  .stage-split { grid-template-columns: 1fr; }
  .stage-split .device { flex: 0 0 70%; }
  .ba { grid-template-columns: 1fr; }
  .concepts { grid-template-columns: 1fr 1fr; }
}

/* ============ Design system visuals ============ */
.type-scale { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; margin: 16px 0 8px; }
.ts-row { display: grid; grid-template-columns: 170px 150px 1fr; gap: 16px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line); }
.ts-row:first-child { border-top: 0; }
.ts-name { font: 500 12.5px var(--mono); color: var(--accent); }
.ts-spec { font: 500 12px var(--mono); color: var(--faint); }
.ts-sample { font-family: var(--body); font-weight: 600; color: var(--ink); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-row.hd { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.color-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 8px; }
.color-groups > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.color-groups b { display: block; font: 500 12.5px var(--mono); color: var(--accent); margin-bottom: 4px; }
.color-groups span { font-size: 13.5px; color: var(--muted); }
.inventory { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.inventory span { font: 500 12px var(--mono); padding: 5px 10px; border-radius: 7px; background: var(--mint-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--mint) 25%, transparent); }
.inventory span.wip { background: transparent; border-style: dashed; border-color: var(--line); color: var(--faint); }
.legend-done, .legend-wip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; background: var(--mint-soft); border: 1px solid var(--mint); }
.legend-wip { background: transparent; border: 1px dashed var(--faint); }
.cs-h3 { font-size: 19px; margin: 26px 0 8px; }
table.audit td { font-size: 13.5px; }
@media (max-width: 760px) { .ts-row { grid-template-columns: 1fr; gap: 2px; } .color-groups { grid-template-columns: 1fr 1fr; } table.audit { display: block; overflow-x: auto; } }

/* ============ Reading mode: quick visual / detailed process ============ */
.view-toggle { position: sticky; top: 72px; z-index: 15; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px -12px rgba(15,23,42,.25); }
.view-toggle button { text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 16px; cursor: pointer; color: var(--muted); font: inherit; }
.view-toggle button b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.view-toggle button span { font: 500 11.5px var(--mono); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: color-mix(in srgb, var(--bg) 70%, transparent); }
.view-toggle button[aria-pressed="true"] b { color: var(--bg); }
body.view-quick .cs-lead { display: none; }

/* Flow strips: a row of phones that reads left to right */
.flowstrip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x proximity; }
.flowstrip figure { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
.flowstrip .device { flex: none; width: 100%; }
.flowstrip figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.flowstrip figcaption b { display: block; color: var(--ink); font-size: 13px; font-family: var(--mono); font-weight: 500; margin-bottom: 2px; }
.stage .flowstrip { margin: 0 -8px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); gap: 28px; justify-content: center; align-items: start; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.pair figcaption b { color: var(--ink); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chipset span { font: 500 12.5px var(--mono); padding: 6px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.chipset span b { color: var(--accent); font-weight: 700; }
.insight-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.insight-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.insight-list li b { display: block; color: var(--ink); margin-bottom: 3px; font-size: 14.5px; }

/* ============ Prototype embeds & cards ============ */
.proto-embed { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 18px 40px -18px rgba(15,23,42,.3); }
.proto-embed.mobile { max-width: 420px; margin-inline: auto; }
.pe-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--faint); }
.pe-bar .dots { display: inline-flex; gap: 5px; } .pe-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pe-bar .pe-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-bar a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.pe-frame { position: relative; overflow: hidden; background: var(--sunken); }
.pe-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.pe-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.9); }
.pe-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 600 15px var(--body); cursor: pointer; box-shadow: 0 12px 30px -8px rgba(15,23,42,.5); }
.pe-play::before { content: ""; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.pe-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.25), transparent 50%); pointer-events: none; }
.proto-embed.live .pe-frame::after { display: none; }
.proto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.proto-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.proto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proto-card .pc-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunken); border-bottom: 1px solid var(--line); }
.proto-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proto-card .pc-thumb.mobile img { object-position: center 18%; }
.proto-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proto-card .pc-kicker { font: 500 11.5px var(--mono); color: var(--faint); }
.proto-card h3 { font-size: 17px; line-height: 1.25; }
.proto-card p { font-size: 14px; color: var(--muted); margin: 0; }
.proto-card .pc-go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }

/* ============ Fixes: overflow + uncropped device frames ============ */
.cs-sec > *, .cs-sec .c { min-width: 0; }
.stage { max-width: 100%; overflow: hidden; }
.flowstrip { max-width: 100%; }
.device { align-self: flex-start; height: auto; }
.device img { width: 100%; height: auto !important; object-fit: contain; aspect-ratio: auto; }
.pair { align-items: start; }
.pair .device, .flowstrip .device { width: 100%; }
.screens { align-items: flex-start; }
.screens .device:nth-child(2):not(:last-child) { transform: none; margin-top: -18px; }

/* Reading-mode toggle: label only, detail on hover */
.view-toggle button { position: relative; }
.view-toggle button span { display: none; }
.view-toggle button[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font: 500 11.5px var(--mono); color: var(--bg); background: var(--ink); padding: 5px 9px; border-radius: 6px; pointer-events: none; }

/* ============ Profile + life outside work ============ */
.portrait.has-photo { padding: 0; overflow: hidden; }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.life-tile { margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--sunken); }
.life-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.life-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 13.5px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .25s; }
.life-tile:hover img { transform: scale(1.04); }
.life-tile:hover figcaption, .life-tile:focus-within figcaption { opacity: 1; }
@media (max-width: 760px) { .life-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .life-tile figcaption { opacity: 1; font-size: 12px; } }
/* Illustrated prototype thumbnails */
.proto-card .pc-thumb img, .proto-card .pc-thumb.mobile img { object-fit: cover; object-position: center; }
.pe-frame > img[src$=".svg"] { object-fit: contain; object-position: center; background: #eef1fb; filter: none; }

/* ============ Pending fields: <placeholder> ============ */
.todo { background: none !important; color: var(--faint); font-family: var(--mono); font-size: .9em; font-weight: 500; letter-spacing: 0; border: 1px dashed color-mix(in srgb, var(--faint) 60%, transparent); border-radius: 6px; padding: 0 5px; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.todo::before { content: "<"; opacity: .7; }
.todo::after { content: ">"; opacity: .7; }
.impact b .todo, .tldr .todo { font-size: .55em; vertical-align: middle; }

/* ============ My assumptions: highlighted only in review mode ============ */
body.review .assume { background: color-mix(in srgb, #ffd666 38%, transparent); outline: 1.5px dashed #e0a800; outline-offset: 2px; border-radius: 4px; position: relative; }
body.review .assume::after { content: "assumption"; position: absolute; top: -9px; right: -4px; font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: #e0a800; color: #fff; padding: 1px 6px; border-radius: 4px; }
body.review span.assume::after, body.review td.assume::after { display: none; }
.review-pill { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: #1a1400; color: #ffe08a; font: 500 12.5px var(--mono); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.review-pill button { background: #ffd666; color: #1a1400; border: 0; border-radius: 999px; padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer; }

/* ============ Journey + process band ============ */
#process, #experience { position: relative; padding-bottom: clamp(56px, 7vw, 96px); }
#process::before, #experience::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background-color: #eceefa;
  background-image: radial-gradient(circle at 1px 1px, rgba(61,90,254,.14) 1px, transparent 0);
  background-size: 22px 22px; }
#process::before { border-top: 1px solid #dfe3f5; }
#experience { margin-top: 0; }
#process + #prototypes { }
#experience::before { border-bottom: 1px solid #dfe3f5; }
#process .eyebrow, #experience .eyebrow { color: #4b5aa8; }
#process .steps, #experience .lesson, #experience .portrait { box-shadow: 0 10px 30px -18px rgba(37,52,140,.35); }
#process { padding-bottom: 0; }
.impact b .todo { display: inline-block; font-size: .6em; padding: 2px 8px; }
/* Pending fields: neutral label, yellow highlight */
.todo { background: #fff1a8 !important; color: #5c4a00; border: 0; font-family: var(--body); font-size: .92em; font-weight: 500; padding: 1px 6px; border-radius: 4px; }
.todo::before, .todo::after { content: none; }
.todo::before { content: "<"; opacity: .55; } .todo::after { content: ">"; opacity: .55; }

/* ============ Dark chapter: Process + Experience ============ */
#process, #experience { --d-bg: #0b1020; --d-surface: #121a30; --d-line: #222c47; --d-ink: #eef2ff; --d-muted: #9aa6c4; --d-faint: #66729a; --d-accent: #8fa2ff;
  color: var(--d-ink); padding: clamp(64px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); margin-top: clamp(56px, 8vw, 96px); }
#process::before, #experience::before { background-color: var(--d-bg);
  background-image: linear-gradient(rgba(143,162,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(143,162,255,.07) 1px, transparent 1px);
  background-size: 48px 48px; border: 0; }
#process::after, #experience::after { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 0%, rgba(110,123,255,.22), transparent 70%); }
#process h2, #experience h2, #process h3, #experience h3 { color: var(--d-ink); }
#process .eyebrow, #experience .eyebrow, #experience .subhead { color: var(--d-muted); }
#process .eyebrow .idx, #experience .eyebrow .idx { color: var(--d-accent); }
#process .sec-head h2::after, #experience .sec-head h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--d-accent), #3ddcb8); }
#process .steps { background: transparent; border: 1px solid var(--d-line); box-shadow: none; }
#process .step + .step { border-color: var(--d-line); }
#process .step { background: rgba(18,26,48,.7); }
#process .step.loop { background: rgba(143,162,255,.12); }
#process .step .n { color: var(--d-accent); font-family: var(--mono); }
#process .step p, #process .principles p, #process .loopnote { color: var(--d-muted); }
#process .principles > div { border-top: 1px solid var(--d-line); padding-top: 16px; }
#experience .lesson { background: var(--d-surface); border-color: var(--d-line); box-shadow: none; }
#experience .lesson p, #experience .era p, #experience .exp-aside p { color: var(--d-muted); }
#experience .era li { color: #cfd7f0; } #experience .era li::marker { color: var(--d-faint); }
#experience .era .when { color: var(--d-faint); } #experience .era .role { color: var(--d-accent); }
#experience .timeline::before { background: var(--d-line); }
#experience .era::before { background: var(--d-bg); border-color: var(--d-accent); }
#experience .era:first-child::before { background: var(--d-accent); }
#experience .facts li { border-color: var(--d-line); } #experience .facts span { color: var(--d-faint); }
#experience .portrait { border-color: var(--d-line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }

@media (max-width: 1040px) { #experience .exp-aside { background: transparent; } }

/* ============ Password gate ============ */
html.locked main, html.locked footer { visibility: hidden; }
.gate { position: fixed; inset: 64px 0 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.gate-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.gate-lock { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5afe' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.gate-card h1 { font-size: 22px; }
.gate-card p { color: var(--muted); font-size: 15px; }
.gate-card input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.gate-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-card button { font: 600 15px var(--body); padding: 12px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); cursor: pointer; }
.gate-err { color: #d14d4d !important; min-height: 1.2em; font-size: 14px !important; }
.gate-card a { font-size: 14px; color: var(--accent); text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip.lock { background: var(--sunken); color: var(--muted); }
.lockmark { color: var(--muted); } .lockmark::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 5px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 10 12%27%3E%3Crect y=%275%27 width=%2710%27 height=%277%27 rx=%271.5%27/%3E%3Cpath d=%27M2.5 5V3.5a2.5 2.5 0 0 1 5 0V5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.4%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 10 12%27%3E%3Crect y=%275%27 width=%2710%27 height=%277%27 rx=%271.5%27/%3E%3Cpath d=%27M2.5 5V3.5a2.5 2.5 0 0 1 5 0V5%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.4%27/%3E%3C/svg%3E") center/contain no-repeat; }

/* ============ Reading mode v2 ============ */

body.view-quick .cs-sec:not([data-quick]), body.view-quick [data-view="detail"] { display: none !important; }
body.view-quick .cs-sec[data-quick] .c > *:not(.q, .stage, figure, .impact, .flowstrip, .proto-embed, .ia, .journeys, .keep, .matrix, .chipset, .type-scale, .inventory, .color-groups, .fig-row, .ba, .concepts, .proto-grid, .deck) { display: none !important; }
body.view-detail .q { display: none; }
.q { font-size: 18px; color: var(--ink) !important; max-width: 60ch; margin-bottom: 4px; }
.quick-end { display: none; margin: 72px 0 0; padding: 36px; border-radius: 20px; background: var(--ink); color: var(--bg); text-align: center; }
.quick-end p { color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 52ch; margin: 0 auto 18px; }
.quick-end .btn.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
body.view-quick .quick-end { display: block; }
/* matrix cells renamed (.q is now the quick summary) */
.matrix .qd { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); min-height: 96px; }
.matrix .qd span { font: 600 13px var(--body); display: block; margin-bottom: 4px; }
.matrix .qd p { margin: 0 !important; font-size: 13.5px; color: var(--muted); }
.matrix .qd.hot { border: 1.5px solid var(--accent); background: var(--accent-soft); }

/* ============ IA map + journeys ============ */
.ia { margin: 18px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ia-root { display: table; margin: 0 auto 22px; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 14px var(--body); position: relative; }
.ia-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 12px; background: var(--line); }
.ia-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-top: 1.5px solid var(--line); padding-top: 14px; }
.ia-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ia-node { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: var(--sunken); color: var(--muted); border-left: 3px solid transparent; }
.ia-node.lvl1 { background: var(--accent-soft); color: var(--ink); font-weight: 600; border-left-color: var(--accent); margin-top: 6px; }
.ia-node.lvl1:first-child { margin-top: 0; }
.ia-node.lvl1.hot { background: var(--accent); color: #fff; }
.ia-node.lvl2 { background: var(--mint-soft); color: var(--ink); font-weight: 600; border-left-color: var(--mint); }
.ia-sub { display: flex; flex-direction: column; gap: 5px; padding-left: 12px; border-left: 1.5px dashed var(--line); margin-left: 6px; }
.ia-node.tab { background: #fff4d6; color: var(--ink); border-left-color: #f5a524; }
.ia-node.leaf { background: transparent; border: 1px dashed var(--line); padding: 5px 9px; }
.ia-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font: 500 11.5px var(--mono); color: var(--faint); }
.ia-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ia-legend .k1 { background: var(--accent); } .ia-legend .k2 { background: var(--mint); } .ia-legend .k3 { background: #f5a524; } .ia-legend .k4 { border: 1px dashed var(--faint); }
.journeys { display: grid; gap: 10px; margin-top: 8px; }
.journey { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.journey b { font-size: 14px; }
.journey .flow { margin: 0; }
@media (max-width: 860px) { .ia-cols { grid-template-columns: 1fr 1fr; } .journey { grid-template-columns: 1fr; } }

/* ============ RM agent case study ============ */
.rm-card { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.rm-q { display: flex; gap: 10px; align-items: flex-start; align-self: flex-end; max-width: 85%; }
.rm-q p { margin: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14.5px; }
.rm-avatar { order: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font: 600 12px var(--body); color: var(--muted); flex: none; }
.rm-a { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg); }
.rm-verdict { font: 600 16px/1.45 var(--body); color: var(--ink); }
.rm-a ul { margin: 10px 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.rm-lever { font: 500 12.5px var(--mono); background: var(--accent-soft); color: var(--accent); padding: 8px 10px; border-radius: 8px; }
.rm-foot { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--faint); }
.rm-foot a { margin-left: auto; color: var(--accent); }
.vs { display: inline-block; font: 700 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.vs-ok { background: var(--mint-soft); color: var(--mint); } .vs-mkt { background: #e6ecf7; color: #4b5d84; } .vs-mixed { background: #fff1d6; color: #a76b00; }
.vs-me { background: #fde0e0; color: #c43d3d; } .vs-win { background: #e3f0ff; color: #2563eb; } .vs-ov { background: var(--accent-soft); color: var(--accent); } .vs-inc { background: var(--sunken); color: var(--muted); }
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.verdicts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.verdicts p { margin: 8px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--line); margin: 16px 0; }
.day { padding: 14px 12px 0 0; position: relative; }
.day::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.day b { display: block; font: 600 13px var(--mono); margin: 4px 0 4px; }
.day span { font-size: 13.5px; color: var(--muted); }
.principle-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.principle-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.principle-row span { font: 700 12px var(--mono); color: var(--accent); }
.principle-row b { display: block; font-size: 14.5px; margin: 6px 0; }
.principle-row p { margin: 0 !important; font-size: 13px; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 6px; }
.pipeline .st { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; min-height: 72px; }
.pipeline .st i { display: block; font: 700 11px var(--mono); font-style: normal; color: var(--faint); margin-bottom: 4px; }
.pipeline .st em { display: block; font: 500 11px var(--mono); font-style: normal; color: var(--faint); margin-top: 4px; }
.pipeline .helper { border-left: 3px solid var(--accent); } .pipeline .new { border-left: 3px solid var(--mint); }
.pipeline .llm { border-left: 3px solid #f5a524; background: #fff9ea; } .pipeline .stretch { border-style: dashed; }
.pipeline .exit em { color: var(--mint); }
@media (max-width: 860px) { .verdicts, .days { grid-template-columns: 1fr 1fr; } .principle-row { grid-template-columns: 1fr 1fr; } .pipeline { grid-template-columns: repeat(3, 1fr); } }
.thumb .thumb-device { width: 132px; flex: none; align-self: auto; margin-top: 40px; border-radius: 22px; padding: 6px; } .thumb .thumb-device img { border-radius: 17px; } .card.feature .thumb { align-items: start; }
@media (max-width: 860px) { .days { row-gap: 30px; border-top: 0; } .day { border-top: 2px solid var(--line); } }

/* ============ Work grid: 2 × 3, uniform ============ */
.work { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work .card, .work .card.feature { grid-column: auto; }
.work .card .thumb { aspect-ratio: 16 / 10; align-items: center; justify-items: center; }
.work .card h3 { font-size: 23px; }
.card.feature .thumb { align-items: center; }
.work .card .thumb:has(.thumb-device) { align-items: start; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }

/* ============ Chips that stand out ============ */
.chipset span { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); font-weight: 500; box-shadow: 0 1px 0 rgba(15,23,42,.04); }
.chipset span b { color: var(--accent); }

/* ============ Journeys ============ */
.journeys { gap: 12px; counter-reset: j; }
.journey { grid-template-columns: 200px 1fr; padding: 16px 18px; border-left: 4px solid var(--accent); box-shadow: 0 8px 24px -16px rgba(15,23,42,.25); }
.journey b { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.journey .flow { gap: 6px; }
.journey .flow span { background: var(--ink); color: var(--bg); border: 0; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
.journey .flow span:last-child { background: var(--mint); color: #fff; }
.journey .flow i { color: var(--accent); font-weight: 700; }
.journey:nth-child(2) { border-left-color: var(--mint); } .journey:nth-child(3) { border-left-color: #f5a524; } .journey:nth-child(4) { border-left-color: #8b5cf6; } .journey:nth-child(5) { border-left-color: #e05a5a; }
.proto-card .pc-thumb { background: #e2e8ff; }

/* ============ RM agent: hero + handover ============ */
.rm-hero { position: relative; color: #eef2ff; padding: 56px 0 40px; }
.rm-hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: #0b1020 radial-gradient(700px 360px at 80% 20%, rgba(110,123,255,.28), transparent 70%); }
.rm-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); max-width: 14ch; }
.rm-hero .cs-lead { color: #b7c1de; display: block !important; }
.rm-hero .eyebrow { color: #9aa6c4; }
.rm-badge { display: inline-block; font: 700 11px var(--mono); padding: 4px 9px; border-radius: 999px; background: #3ddcb8; color: #0b1020; margin-right: 6px; }
.rm-hero .meta { border-color: #222c47; } .rm-hero .meta dt { color: #66729a; } .rm-hero .meta dd { color: #eef2ff; }
.rm-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.rm-hero-grid > * { min-width: 0; }
.rm-hero .rm-q p { background: #2a3556; color: #fff; }
.rm-hero .rm-avatar { background: #2a3556; color: #cfd7f0; }
.rm-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #222c47; font: 500 12px var(--mono); color: #9aa6c4; }
.rm-strip span { padding: 6px 11px; border-radius: 999px; border: 1px solid #2a3556; background: #121a30; }
.rm-strip span:nth-child(7), .rm-strip span:nth-child(9) { border-color: #8fa2ff; color: #dfe5ff; }
.rm-strip span:last-child { background: #3ddcb8; color: #0b1020; border-color: #3ddcb8; font-weight: 700; }
.rm-strip i { width: 14px; height: 1.5px; background: #3a4670; }
.days.two { grid-template-columns: 1fr 1fr; }
.handover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 18px; }
.ho-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 10px 28px -18px rgba(15,23,42,.3); min-width: 0; }
.ho-h { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.ho-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ho-row b { font: 600 12.5px var(--mono); }
.ho-row em { font: 600 10.5px var(--mono); font-style: normal; padding: 2px 7px; border-radius: 999px; }
.st-adopt { background: var(--mint-soft); color: var(--mint); } .st-confirm { background: #fff1d6; color: #a76b00; } .st-define { background: #fde0e0; color: #c43d3d; }
.ho-dec { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ho-dec i { font-style: normal; font: 700 10.5px var(--mono); background: #fde0e0; color: #c43d3d; border-radius: 6px; padding: 2px 6px; }
.ho-dec.more { color: var(--faint); font-size: 12.5px; }
.ho-cases { display: flex; flex-wrap: wrap; gap: 5px; }
.ho-cases .vs { font-size: 10px; margin: 0; }
.ho-card p { font-size: 13px; color: var(--muted); margin: 10px 0 0 !important; }
@media (max-width: 960px) { .rm-hero-grid, .handover { grid-template-columns: 1fr; } }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 18px; }
.rm-col { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 14px; }
.rm-col:nth-child(2) { border-top-color: var(--mint); } .rm-col:nth-child(3) { border-top-color: #f5a524; } .rm-col:nth-child(4) { border-top-color: #8b5cf6; }
.rm-col b { font-size: 14px; margin-bottom: 4px; }
.rm-col span { font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--sunken); }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr 1fr; } }

/* ============ Playful headers: Process + Experience ============ */
.fun-head { position: relative; padding-right: 220px; }
.fun-head h2.hand { font-family: "Gochi Hand", cursive; font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: 0; max-width: 18ch; position: relative; display: inline-block; }
.fun-head h2.hand::after { display: none !important; }
.fun-head .hl { position: relative; z-index: 0; color: #fff; }
.fun-head .hl::before { content: ""; position: absolute; z-index: -1; left: -6px; right: -6px; top: 18%; bottom: 6%; background: #6e7bff; border-radius: 6px 14px 8px 12px; transform: rotate(-1.5deg); }
.scribble { display: block; width: 62%; height: 18px; margin-top: 6px; color: #3ddcb8; }
.sticker { position: absolute; font: 400 21px "Gochi Hand", cursive; padding: 6px 14px 4px; border-radius: 10px; color: #0b1020; box-shadow: 3px 4px 0 rgba(0,0,0,.35); white-space: nowrap; }
.st-1 { right: 30px; top: 6px; background: #ffd666; transform: rotate(6deg); }
.st-2 { right: 120px; top: 82px; background: #9af0d4; transform: rotate(-5deg); }
.st-3 { right: 0; top: 84px; background: #c5b8ff; transform: rotate(-4deg); }
.doodle { position: absolute; color: #8fa2ff; pointer-events: none; }
.d-arrow { width: 110px; right: 230px; top: -18px; transform: rotate(8deg); }
.d-loop { width: 86px; right: 12px; top: 120px; transform: rotate(-8deg); color: #ffd666; }
.d-star { width: 26px; right: 210px; top: 8px; color: #3ddcb8; }
#experience .d-star { right: 180px; top: 120px; color: #ffd666; }
@media (max-width: 900px) {
  .fun-head { padding-right: 0; padding-bottom: 70px; }
  .st-1 { right: auto; left: 0; top: auto; bottom: 18px; }
  .st-2, .st-3 { right: 0; top: auto; bottom: 10px; }
  .d-arrow, .d-loop { display: none; }
  .d-star { right: 8px; top: 0; }
}

/* ============ Experiment cards ============ */
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xp-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.xp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15,23,42,.35); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.xp-thumb { aspect-ratio: 400 / 260; overflow: hidden; }
.xp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.xp-card:hover .xp-thumb img { transform: scale(1.03); }
.xp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.xp-meta { display: flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); color: var(--faint); }
.xp-kind { padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.xp-kind.mobile { background: #e5f7f0; color: #0b8a6a; } .xp-kind.desktop { background: #e8ebff; color: #3d4fe0; }
.xp-card h3 { font-size: 17px; line-height: 1.25; }
.xp-card p { margin: 0; font-size: 14px; color: var(--muted); }
.xp-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.xp-go::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2 L8 5 L3 8 Z' fill='white'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (max-width: 960px) { .xp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .xp-grid { grid-template-columns: 1fr; } }

/* ============ Prototype popover ============ */
.pmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.pmodal.open { opacity: 1; }
.pmodal-bg { position: absolute; inset: 0; }
.pmodal.desktop .pmodal-bg { background: rgba(15,23,42,.45); backdrop-filter: blur(3px); }
.pmodal.mobile .pmodal-bg { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.pmodal-win { position: relative; display: flex; flex-direction: column; background: #fff; overflow: hidden; transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.pmodal.open .pmodal-win { transform: none; }
.pmodal.desktop .pmodal-win { width: min(1440px, 94vw); height: min(900px, 88vh); border-radius: 14px; }
.pmodal.mobile .pmodal-win { width: min(400px, 92vw); height: min(840px, 86vh); border-radius: 40px; border: 10px solid #111; }
.pmodal-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--muted); }
.pmodal.mobile .pmodal-bar { display: none; }
.pmodal-bar .dots { display: inline-flex; gap: 6px; } .pmodal-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ee; }
.pmodal-bar .t { flex: 1; }
.pmodal-bar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pmodal iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.pmodal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font: 600 20px/1 var(--body); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.pmodal.mobile .pmodal-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font: 500 13px var(--mono); }
.pmodal.desktop .pmodal-caption { display: none; }
body.modal-open { overflow: hidden; }
.fun-head .eyebrow { display: flex; margin-bottom: 14px; } .fun-head h2.hand { display: block; margin-top: 0; } .fun-head .scribble { width: min(360px, 62%); }
.logo .mark.avatar { width: 32px; height: 32px; border-radius: 9px; background: none; display: block; box-shadow: 0 0 0 1px var(--line); }
.xp-thumb { aspect-ratio: 640 / 400; background: #e2e8ff; }
.xp-body { padding: 14px 18px 16px; }
.xp-card h3 { font-size: 16.5px; }

/* ============ Playful headers: responsive layout ============ */
.sec-head:has(.fun-head) { display: block; }
.fun-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 0; position: static; }
.fun-title { min-width: 0; }
.fun-head h2.hand { max-width: none; font-size: clamp(34px, 4.6vw, 60px); }
.fun-head h2.hand br { display: block; }
.fun-stickers { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding: 10px 28px 10px 10px; min-width: 260px; }
.fun-stickers .sticker { position: relative; inset: auto; }
.fun-stickers .st-1 { transform: rotate(5deg); }
.fun-stickers .st-2, .fun-stickers .st-3 { transform: rotate(-4deg); margin-right: 40px; }
.fun-stickers .doodle { position: absolute; }
.fun-stickers .d-star { left: 0; top: 4px; right: auto; }
.fun-stickers .d-loop { right: -6px; bottom: -34px; top: auto; display: block; }
.fun-stickers .d-arrow { left: -70px; top: -20px; right: auto; display: block; width: 90px; }
#experience .fun-stickers .d-star { left: auto; right: 0; top: auto; bottom: -10px; }
@media (max-width: 1000px) {
  .fun-head { grid-template-columns: 1fr; }
  .fun-stickers { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; min-width: 0; padding: 0 0 0 4px; gap: 12px 16px; }
  .fun-stickers .st-2, .fun-stickers .st-3 { margin-right: 0; }
  .fun-stickers .d-arrow, .fun-stickers .d-loop { display: none; }
  .fun-stickers .d-star { position: static; }
}
@media (max-width: 560px) { .sticker { font-size: 18px; padding: 4px 10px 3px; } .fun-head h2.hand br { display: none; } }

/* ============ RM page: solid section headers, two parts ============ */
.rm-page .cs-sec { grid-template-columns: 1fr; gap: 14px; padding-top: 64px; }
.rm-page .cs-sec > h2 { font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--ink); margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rm-page .cs-sec .q { display: block !important; font-size: 18px; color: var(--muted) !important; }
.part-head { margin: 72px 0 8px; padding: 28px 32px; border-radius: 18px; background: var(--ink); color: var(--bg); display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 20px; }
.part-head span { font: 700 13px var(--mono); color: #3ddcb8; letter-spacing: .08em; text-transform: uppercase; grid-row: span 2; }
.part-head h2 { font: 800 clamp(30px, 4vw, 48px)/1 var(--display); color: var(--bg); margin: 0; }
.part-head p { margin: 0; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.rm-page .part-head:first-of-type { margin-top: 40px; }
.spec-frame { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -24px rgba(15,23,42,.3); }
.spec-frame iframe { display: block; width: 100%; height: 2400px; border: 0; }
.logo { white-space: nowrap; } @media (max-width: 1000px) { .nav ul li.hide-sm { display: none; } }

/* Experiment thumbs: sketch illustrations on the site's neutral surface */
.xp-thumb { aspect-ratio: 400 / 260; background: #fff; }

/* ============ Flow pass: calmer chapters, one accent per header ============ */
/* Dark chapters sit as inset rounded panels instead of full-bleed stripes */
#process::before, #experience::before, #process::after, #experience::after { inset: 0 -40px; border-radius: 28px; }
#process, #experience { margin-top: clamp(72px, 9vw, 120px); }
#process + #prototypes, #experience + #life { padding-top: clamp(72px, 9vw, 120px); }
@media (max-width: 1320px) { #process::before, #experience::before, #process::after, #experience::after { inset: 0 -20px; } }
@media (max-width: 700px) { #process::before, #experience::before, #process::after, #experience::after { inset: 0 -12px; border-radius: 20px; } }
/* The scribble is the header accent; drop the extra gradient bar */
#process .sec-head h2.hand::after, #experience .sec-head h2.hand::after { content: none; }
/* Principles link to the case study that shows them */
.principles .proof { display: inline-block; margin-top: 12px; font: 600 13.5px var(--body); color: var(--d-accent, var(--accent)); text-decoration: none; }
.principles .proof:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Consistent rhythm between section heading and content */
.sec-head { margin-bottom: 40px; }

/* Elements used only by specific styles (see /themes) */
.poster-only { display: none; }

/* ============ Case study: story layout ============
   One reading column for text, visuals break out wide, sections grouped into parts with a bridging line,
   a contents rail on wide screens and a reading-progress bar. */
:root { --read: 760px; }
main > .cs-hero, main > .tldr, main > .cs-sec, main > .act, main > .quick-end { max-width: var(--read); margin-inline: auto; }
.cs-sec { display: block; padding-top: 64px; }
.cs-sec > h2 { font: 700 clamp(26px, 2.8vw, 34px)/1.18 var(--display); letter-spacing: -.025em; text-transform: none; color: var(--ink); margin: 0 0 18px; }
.cs-sec > h2 .cs-num { display: block; font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.cs-sec .c > p, .cs-sec .c > ul:not([class]) > li { font-size: 18px; line-height: 1.7; }
.cs-sec .c p { max-width: none; }
body.view-quick .cs-sec .c > .q { font-size: 20px; line-height: 1.55; color: var(--ink); }
/* Visuals break out of the reading column to the page width */
.cs-sec .c > :is(.stage, .ia, .journeys, .roadmap, .deck, .cs-impact, .compare, .tl, .fig-row, .proto-grid, .inventory, .color-groups, .stage-split, .proto-embed:not(.mobile)) {
  margin-left: calc(50% - min(var(--max), 100vw - 40px) / 2); margin-right: calc(50% - min(var(--max), 100vw - 40px) / 2); max-width: none; }

/* Parts: a clear chapter break with one line that carries the story forward */
.act { margin-top: clamp(80px, 10vw, 128px); padding-top: 28px; border-top: 1px solid var(--ink); }
.act[hidden] { display: none; }
.act-n { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.act-t { font: 800 clamp(34px, 4.4vw, 54px)/1.04 var(--display); letter-spacing: -.035em; margin: 14px 0 16px; color: var(--ink); }
.act-b { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.act + .cs-sec { padding-top: 44px; }

/* Chapter bar: sticky under the nav, shows the current part and section, opens the contents */
.cs-toc { position: fixed; z-index: 19; top: 64px; left: 0; right: 0; transform: translateY(-110%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.cs-toc.show { transform: none; opacity: 1; pointer-events: auto; }
.cs-toc-bar { display: flex; align-items: center; gap: 16px; width: min(var(--read), 100% - 40px); margin: 0 auto; height: 44px; }
.cs-toc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cs-now { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; overflow: hidden; font-size: 13.5px; }
.cs-now-part { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.cs-now-sec { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cs-toc-btn { flex: none; font: 600 12.5px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.cs-toc-btn::after { content: " ▾"; color: var(--faint); }
.cs-toc-menu { width: min(var(--read), 100% - 40px); margin: 6px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 14px 14px; max-height: min(70vh, 560px); overflow: auto; }
.cs-toc ol { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.cs-toc .toc-act { break-after: avoid; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 12px 0 4px; }
.cs-toc a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13.5px; break-inside: avoid; }
.cs-toc a:hover { color: var(--ink); }
.cs-toc a.on { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

/* Reading progress */
.cs-progress { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Mobile prototypes: one phone, centred on the page, real first screen as the thumbnail */
.proto-embed.mobile { max-width: 340px; margin: 32px auto 8px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.pe-phone { background: #111; padding: 9px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -28px rgba(15,23,42,.55); }
.proto-embed.mobile .pe-frame { border-radius: 37px; background: #fff; }
.proto-embed.mobile .pe-frame > img { object-fit: cover; object-position: top center; background: #fff; filter: none; }
.proto-embed.mobile .pe-bar { border: 0; padding: 14px 0 0; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.proto-embed.mobile .pe-bar .pe-title { flex: none; }

/* RM page keeps its own wide hero and solid headers */
.rm-page main > .cs-hero { max-width: none; }
.rm-page .cs-sec > h2 .cs-num { display: inline; margin: 0 12px 0 0; font-size: .5em; vertical-align: middle; }
.proto-embed.mobile .pe-play { white-space: nowrap; font-size: 14px; padding: 11px 18px; }
.rm-page { --read: 1000px; }

/* "What we heard → what we changed" list */
.heard { display: grid; gap: 10px; margin: 18px 0; }
.heard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.heard-q, .heard-a { padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.heard-q { color: var(--muted); border-right: 1px solid var(--line); }
.heard-a b { color: var(--ink); }
.heard-row:first-child .heard-q::before, .heard-row:first-child .heard-a::before { display: block; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.heard-row:first-child .heard-q::before { content: "What we heard"; }
.heard-row:first-child .heard-a::before { content: "What we changed"; color: var(--accent); }
@media (max-width: 640px) { .heard-row { grid-template-columns: 1fr; } .heard-q { border-right: 0; border-bottom: 1px solid var(--line); } }
.cs-sec .quotes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1000px) { main > .wrap > .impact { grid-template-columns: repeat(5, 1fr); } main > .wrap > .impact > div { padding-inline: 20px; } }
@media (min-width: 861px) and (max-width: 999px) { main > .wrap > .impact { grid-template-columns: repeat(3, 1fr); } main > .wrap > .impact > div:nth-child(4) { border-left: 0; } main > .wrap > .impact > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
.insight-list + .hint, .insight-list + p { margin-top: 16px; }

/* After-launch timeline */
.ship-tl { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.ship-tl::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ship-tl > li { display: grid; grid-template-columns: 80px 1fr; gap: 0 32px; position: relative; padding-bottom: 22px; }
.ship-tl > li::before { content: ""; position: absolute; left: 87px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.st-when { font: 600 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); text-align: right; padding-top: 4px; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.st-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.st-card p { font-size: 15.5px; line-height: 1.6; margin: 0 0 8px !important; }
.st-heard { color: var(--muted); }
.st-did b, .st-result b { color: var(--accent); }
.st-note { font-size: 14px !important; color: var(--faint); border-left: 2px solid var(--line); padding-left: 10px; }
.st-split { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
.st-fig { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.st-fig img { width: 100%; height: auto; display: block; }
.st-fig-wide { margin: 12px 0 10px; max-width: 540px; }
.st-fig figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line); }
.conv { margin: 12px 0 10px; display: grid; gap: 10px; }
.conv-row { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 12px; }
.conv-lbl { font: 600 12.5px var(--body); color: var(--ink); }
.conv-bars { display: grid; gap: 4px; }
.conv-bars i { display: block; height: 18px; width: calc(var(--v) / 46 * 100%); background: color-mix(in srgb, var(--faint) 35%, transparent); border-radius: 0 4px 4px 0; position: relative; }
.conv-bars i.after { background: var(--accent); }
.conv-bars i.flat { background: color-mix(in srgb, var(--faint) 70%, transparent); }
.conv-bars i b { position: absolute; left: calc(100% + 6px); top: 0; font: 600 11.5px/18px var(--mono); color: var(--ink); }
.conv-key { display: flex; gap: 14px; flex-wrap: wrap; padding-left: 98px; font: 500 11.5px var(--mono); color: var(--faint); }
@media (max-width: 720px) {
  .ship-tl::before { left: 5px; } .ship-tl > li::before { left: 0; }
  .ship-tl > li { grid-template-columns: 1fr; padding-left: 24px; gap: 6px; }
  .st-when { text-align: left; }
  .st-split { grid-template-columns: 1fr; }
  .conv-key { padding-left: 0; }
}

/* Metric detail line (all styles) */
.impact small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--faint); }

/* Case study: results strip under the hero */
main > .results-top { max-width: var(--read); margin: 40px auto 0; }
.results-top .eyebrow { margin-bottom: 4px; }
.results-top .impact { margin-top: 10px; }

/* Case study: the problem, front and centre */
.problem-sec .problem-statement { font: 700 clamp(26px, 3vw, 36px)/1.2 var(--display); letter-spacing: -.03em; color: var(--ink); margin: 6px 0 26px !important; max-width: 24ch; }
.problem-sec .problem-statement em { font-style: normal; color: var(--accent); }
.cs-video { margin: 0 0 28px; }
.cs-video-ph { aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), var(--sunken) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; }
.cs-video-ph b { font: 700 20px var(--display); letter-spacing: -.02em; color: var(--ink); margin-top: 8px; }
.cs-video-ph > span:not(.todo):not(.cs-video-play) { font-size: 14px; color: var(--muted); }
.cs-video-play { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.cs-video-play::after { content: ""; border-left: 18px solid var(--bg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.cs-video video { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.problem-points { list-style: none; counter-reset: pp; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.problem-points li { counter-increment: pp; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; }
.problem-points li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.problem-points li::before { content: "0" counter(pp); grid-row: span 2; font: 600 12px/1.6 var(--mono); color: var(--accent); }
.problem-points b { font-size: 16px; color: var(--ink); }
.problem-points span { font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) { .problem-points { grid-template-columns: 1fr; } .problem-points li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ============ Parts: one slim label, so the section heading is the only big heading ============ */
.act { margin-top: clamp(72px, 9vw, 112px); padding-top: 16px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.act .act-n, .act .act-t { font: 600 12px/1.4 var(--mono) !important; letter-spacing: .12em !important; text-transform: uppercase; margin: 0 !important; }
.act .act-n { color: var(--accent); }
.act .act-n::after { content: " ·"; }
.act .act-t { color: var(--ink); max-width: none; }
.act .act-b { flex-basis: 100%; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 52ch; margin-top: 8px; }
.act + .cs-sec { padding-top: 28px; }

/* ============ Goals vs results ============ */
.goals { width: 100%; border-collapse: collapse; margin: 18px 0 14px; font-size: 15px; }
.goals th { text-align: left; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.goals td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--muted); }
.goals td:first-child { width: 30%; color: var(--ink); }
.goals td:last-child { width: 84px; text-align: right; padding-right: 0; }
.goals b { color: var(--ink); }
.met { display: inline-block; font: 600 12px var(--body); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, #22a06b 14%, transparent); color: #137a50; }
.met.pending { background: var(--sunken); color: var(--muted); }

/* ============ Charts ============ */
.charts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin: 18px 0 14px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.chart figcaption b { display: block; font-size: 16px; color: var(--ink); }
.chart figcaption span { display: block; font-size: 13px; color: var(--faint); margin-top: 2px; }
.chart-note { font-size: 13.5px !important; color: var(--muted); margin: 16px 0 0 !important; line-height: 1.5; }
.sbar-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.sbar-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sbar-group { margin-top: 12px; }
.sbar-h { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.sbar-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.sbar { display: flex; height: 24px; border-radius: 6px; overflow: hidden; }
.sbar i, .sbar-key i { position: relative; }
.dec { background: var(--accent); } .same { background: color-mix(in srgb, var(--faint) 30%, transparent); } .inc { background: color-mix(in srgb, var(--ink) 75%, transparent); }
.sbar i b { position: absolute; left: 8px; top: 0; font: 600 11.5px/24px var(--body); color: #fff; white-space: nowrap; }
.sbar i.inc b { left: auto; right: 8px; }
.hbars { margin-top: 14px; display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hbar > div { display: flex; align-items: center; gap: 8px; }
.hbar i { display: block; height: 22px; border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--faint) 35%, transparent); }
.hbar.on i { background: var(--accent); } .hbar.on span { color: var(--ink); font-weight: 600; }
.hbar b { font-size: 13px; color: var(--ink); }
.mix { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.mix i { position: relative; background: color-mix(in srgb, var(--faint) 35%, transparent); }
.mix i:first-child { background: var(--accent); }
.mix i:nth-child(2) { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.mix i b { position: absolute; left: 8px; font: 600 11.5px/26px var(--body); color: #fff; white-space: nowrap; }
.mix i:nth-child(2) b { color: var(--ink); }
.mix-lg { margin-top: 12px; }
.mix-key { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.hint.small { font-size: 13px; }
@media (max-width: 760px) { .charts { grid-template-columns: 1fr; } }

/* ============ Four prototypes in a row ============ */
.cs-sec .c > .proto-row { margin-left: calc(50% - min(var(--max), 100vw - 40px) / 2); margin-right: calc(50% - min(var(--max), 100vw - 40px) / 2); }
.proto-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 24px 0 8px; }
.proto-cell { text-align: center; min-width: 0; }
.proto-cell .proto-embed.mobile { max-width: 240px; margin: 0 auto; }
.proto-cell .pe-phone { padding: 7px; border-radius: 34px; }
.proto-cell .proto-embed.mobile .pe-frame { border-radius: 28px; }
.proto-cell .pe-play { font-size: 13px; padding: 9px 14px; }
.proto-cell > b { display: block; margin-top: 14px; font-size: 15px; color: var(--ink); }
.proto-cell > a { font-size: 12.5px; color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .proto-row { grid-template-columns: 1fr 1fr; } }

/* ============ Timeline: phone-sized reference images ============ */
.st-split-phone { grid-template-columns: 1fr 150px; }
.st-phone { border-radius: 18px; border: 5px solid #111; background: #111; }
.st-phone img { border-radius: 12px; }
.st-phone figcaption { background: var(--surface); color: var(--muted); border: 0; font-size: 11.5px; line-height: 1.35; padding: 6px 4px 2px; text-align: center; margin: 5px -5px -5px; }
@media (max-width: 640px) { .st-split-phone { grid-template-columns: 1fr; } .st-split-phone > .st-phone { width: min(190px, 60%); justify-self: center; } }

/* ============ Methodology ============ */
.fb-loop { list-style: none; counter-reset: lp; margin: 14px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fb-loop li { counter-increment: lp; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; }
.fb-loop li::before { content: "0" counter(lp); display: block; font: 600 11px var(--mono); color: var(--accent); margin-bottom: 6px; }
.fb-loop li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--faint); background: var(--bg); line-height: 1; padding: 2px 0; }
.fb-loop b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.fb-loop span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fb-table-wrap { overflow-x: auto; margin: 12px 0 22px; }
.fb-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.fb-table th { text-align: left; font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.fb-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; color: var(--ink); }
.fb-table td:nth-child(3) { color: var(--muted); }
.st-s { display: inline-block; font: 600 12px var(--body); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.st-s.done { background: color-mix(in srgb, #22a06b 14%, transparent); color: #137a50; }
.st-s.wip { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.st-s.no { background: var(--sunken); color: var(--muted); }
.evidence { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin: 4px 0 28px; align-items: start; }
.evidence figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.evidence img { display: block; width: 100%; height: auto; }
.evidence figcaption { padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.evidence figcaption b { color: var(--ink); }
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.defs div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.defs b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.defs span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.steps-list { margin: 0 0 14px; padding-left: 20px; }
.steps-list li { font-size: 16px; line-height: 1.6; margin-bottom: 6px; color: var(--ink); }
.steps-list li::marker { color: var(--accent); font-weight: 600; }
.cs-sec .c > :is(.charts, .evidence, .fb-loop, .fb-table-wrap) { margin-left: calc(50% - min(980px, 100vw - 40px) / 2); margin-right: calc(50% - min(980px, 100vw - 40px) / 2); }
@media (max-width: 900px) { .fb-loop { grid-template-columns: 1fr 1fr; } .fb-loop li::after { display: none; } .evidence, .defs { grid-template-columns: 1fr; } }
.cs-sec .quotes { grid-template-columns: 1fr 1fr; } @media (max-width: 640px) { .cs-sec .quotes { grid-template-columns: 1fr; } }
/* images keep their own aspect ratio while loading (zero specificity so layout rules still win) */ :where(img[width][height]) { height: auto; }

/* ============ One wide width for every visual, so the page doesn't jump between three widths ============ */
:root { --wide: 1000px; }
.cs-sec .c > :is(.stage, .ia, .journeys, .roadmap, .deck, .cs-impact, .compare, .tl, .fig-row, .proto-grid, .inventory, .color-groups, .stage-split, .proto-embed:not(.mobile), .proto-row, .charts, .evidence, .fb-loop, .fb-table-wrap, .board, .decide, .scope, .insight-list, .features) {
  margin-left: calc(50% - min(var(--wide), 100vw - 40px) / 2); margin-right: calc(50% - min(var(--wide), 100vw - 40px) / 2); max-width: none; }
.rm-page { --wide: 1000px; }

/* ============ Parts: a chapter band that clearly starts a new stage ============ */
.act { display: block; margin: clamp(120px, 14vw, 176px) calc(50% - min(var(--wide), 100vw - 40px) / 2) 0; padding: clamp(28px, 4vw, 48px); border: 0; border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--sunken) 70%); max-width: none; }
.act .act-n { display: block; font: 600 12px/1 var(--mono) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--accent); margin: 0 0 14px !important; }
.act .act-n::after { content: none; }
.act .act-t { display: block; font: 800 clamp(30px, 3.6vw, 46px)/1.05 var(--display) !important; letter-spacing: -.035em !important; text-transform: none !important; color: var(--ink); margin: 0 0 12px !important; }
.act .act-b { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 56ch; margin: 0; }
.act-steps-wrap { margin-top: 26px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.act-steps-h { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.act-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.act-steps li { display: flex; align-items: center; }
.act-steps li + li::before { content: "→"; color: var(--faint); margin-right: 8px; font-size: 13px; }
.act-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font-size: 13.5px; color: var(--ink); text-decoration: none; }
.act-steps a:hover { border-color: var(--accent); }
.act-steps a span { font: 600 11px var(--mono); color: var(--accent); }
.act + .cs-sec { padding-top: 64px; }

/* ============ 05 · Decide: matrix and the insight side by side ============ */
.decide { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: stretch; margin: 22px 0 18px; }
.decide .matrix { margin: 0; }
.decide-note { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.decide-note .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); margin-bottom: 12px; }
.decide-note p { font: 700 22px/1.3 var(--display); letter-spacing: -.02em; margin: 0 0 12px !important; color: var(--bg); }
.decide-note p b { color: color-mix(in srgb, var(--accent) 45%, var(--bg)); }
.decide-note p.sub { font: 400 15px/1.5 var(--body); letter-spacing: 0; color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 0 !important; }
.cs-sec .c > .scope { margin-top: 0; }
@media (max-width: 860px) { .decide { grid-template-columns: 1fr; } }

/* ============ 06 · One whiteboard for the structure and journeys ============ */
.board { position: relative; margin: 22px 0 10px; padding: 52px 28px 28px; border: 1px solid var(--line); border-radius: 22px;
  background-color: color-mix(in srgb, var(--surface) 70%, var(--bg)); background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.5px); background-size: 20px 20px; }
.board-tag { position: absolute; top: 16px; left: 22px; font: 600 11.5px var(--mono); letter-spacing: .06em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }
.board .ia, .board .journeys { margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.board .journeys { margin-top: 28px !important; padding-top: 24px !important; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent) !important; display: grid; gap: 12px; }
.board .journey { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 14px; }
.board .journey > b { display: inline-block; justify-self: start; background: #fff3b0; color: #3b3200; font-size: 13.5px; padding: 10px 12px; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 6px 14px -8px rgba(0,0,0,.25); transform: rotate(-1deg); }
.board .journey:nth-child(even) > b { transform: rotate(1deg); background: #ffe1ec; color: #4a1830; }
@media (max-width: 760px) { .board .journey { grid-template-columns: 1fr; } }

/* ============ Timeline: caption below the phone, not inside the frame ============ */
.st-phone { border: 0; background: none; border-radius: 0; overflow: visible; }
.st-phone img { border: 5px solid #111; border-radius: 18px; background: #111; }
.st-phone figcaption { background: none; border: 0; margin: 8px 0 0; padding: 0; text-align: left; font-size: 12px; line-height: 1.4; color: var(--muted); }
.st-result a { color: var(--accent); font-weight: 600; text-decoration: none; }
main > .act { max-width: min(var(--wide), 100%); margin: clamp(120px, 14vw, 176px) auto 0; }
.decide-note p b { color: #c3b9ff !important; }
.cs-video[hidden] { display: none !important; }

/* Mobile-web usage table (section 05) */
.cs-sec .c > .usage-wrap { margin-left: calc(50% - min(var(--wide), 100vw - 40px) / 2); margin-right: calc(50% - min(var(--wide), 100vw - 40px) / 2); }
.usage-wrap { overflow-x: auto; margin: 16px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 4px; }
.usage { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.usage th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.usage td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.usage tr:last-child td { border-bottom: 0; }
.usage td:first-child { color: var(--ink); }
.usage tr.v1 td:first-child { font-weight: 600; }
.usage td:nth-child(2) { width: 34%; }
.ubar { display: flex; align-items: center; gap: 8px; }
.ubar i { display: block; height: 14px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--faint) 35%, transparent); }
.usage tr.v1 .ubar i { background: var(--accent); }
.usage tr.next .ubar i { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.ubar b { font: 600 13px var(--body); color: var(--ink); }
.ut { font: 600 11.5px var(--body); padding: 2px 9px; border-radius: 999px; }
.ut-v1 { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ut-next { background: var(--sunken); color: var(--ink); }
.ut-web { color: var(--faint); }

/* Case study hero video */
main > .hero-video { max-width: min(var(--wide), 100%); margin: 40px auto 0; }
.hv-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #ebe8e1; box-shadow: 0 30px 60px -36px rgba(20,16,40,.45); aspect-ratio: 16 / 9; }
.hv-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #ebe8e1; }
.hv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 600 16px var(--body); cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); transition: transform .2s; }
.hv-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.hv-play span { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.hv-play span::after { content: ""; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hv-play small { font-size: 14px; font-weight: 500; opacity: .7; }
.hv-play[hidden] { display: none; }
.hero-video figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* ============ Process: five steps, each grounded in the mobile app ============ */
.pflow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pflow li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; border-radius: 16px; background: var(--d-surface, var(--surface)); border: 1px solid var(--d-line, var(--line)); min-width: 0; }
.pflow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 26px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--d-accent, var(--accent)); color: #fff; }
.pflow li.is-loop { background: color-mix(in srgb, var(--d-accent, var(--accent)) 14%, var(--d-surface, var(--surface))); border-color: color-mix(in srgb, var(--d-accent, var(--accent)) 40%, transparent); }
.pflow .pn { font: 600 12px var(--mono); color: var(--d-accent, var(--accent)); letter-spacing: .06em; }
.pflow h3 { font-size: 18px; line-height: 1.25; color: var(--d-ink, var(--ink)); }
.pflow p { font-size: 14.5px; line-height: 1.5; color: var(--d-muted, var(--muted)); }
.pflow .pex { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--d-line, var(--line)); font-size: 13px; line-height: 1.45; color: var(--d-muted, var(--muted)); }
.pflow .pex b { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--d-accent, var(--accent)); margin-bottom: 4px; }
.pcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.pcta .loopnote { margin: 0; }
@media (max-width: 1100px) { .pflow { grid-template-columns: repeat(3, 1fr); } .pflow li:nth-child(3)::after { display: none; } }
@media (max-width: 720px) { .pflow { grid-template-columns: 1fr; } .pflow li::after { display: none; } }

/* Design system: documentation template, spec, token flow, governance */
.doc-steps { list-style: none; counter-reset: ds; margin: 16px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.doc-steps li { counter-increment: ds; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.doc-steps li::before { content: "0" counter(ds); display: block; font: 600 11px var(--mono); color: var(--accent); margin-bottom: 4px; }
.doc-steps b { display: block; font-size: 15px; } .doc-steps span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 12px; align-items: start; }
.doc-grid .span2 { grid-column: span 2; }
.doc-grid .fig { margin: 0; }
.cs-sec .c > :is(.doc-grid, .doc-steps, .spec, .tokflow, .gov, .lib, .fig.wide) { margin-left: calc(50% - min(var(--wide), 100vw - 40px) / 2); margin-right: calc(50% - min(var(--wide), 100vw - 40px) / 2); max-width: none; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 14px 0 10px; }
.spec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.spec-h b { font: 700 20px var(--display); } .spec-h span { font: 500 12.5px var(--mono); color: var(--faint); }
.spec table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
.spec td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.spec td:first-child { white-space: nowrap; }
.spec code, .tokflow code, .gov code { font: 500 12.5px ui-monospace, Menlo, monospace; background: var(--sunken); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.spec-grid div { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.spec-grid b { display: block; font-size: 14px; margin-bottom: 4px; } .spec-grid span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tokflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; margin: 14px 0 10px; }
.tokflow > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tokflow code { display: block; white-space: normal; overflow-wrap: anywhere; }
.tokflow i { align-self: center; font-style: normal; color: var(--accent); font-weight: 700; }
.tf-h { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gov { list-style: none; counter-reset: gv; margin: 12px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gov li { counter-increment: gv; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gov li::before { content: "0" counter(gv); display: block; font: 600 11px var(--mono); color: var(--accent); margin-bottom: 4px; }
.gov b { display: block; font-size: 15px; } .gov span { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 860px) { .doc-steps, .gov { grid-template-columns: 1fr 1fr; } .doc-grid, .spec-grid { grid-template-columns: 1fr; } .doc-grid .span2 { grid-column: auto; } .tokflow { grid-template-columns: 1fr; } .tokflow i { transform: rotate(90deg); justify-self: center; } }
/* Design system library wall */
.lib { margin: 18px 0 14px; padding: 20px; border-radius: 18px; background: var(--sunken); }
.lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.lib-head b { font-size: 16px; } .lib-head span { font-size: 13px; color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.lib-tile { margin: 0; }
.lib-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.lib-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lib-tile figcaption { font-size: 12.5px; margin-top: 6px; color: var(--ink); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lib-tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #fff1a8; color: #5c4a00; }

/* Review mode: confirm or correct each assumption */
body.review .assume::after { display: none !important; }
body.review .assume { padding-top: 2px; }
.rv-bar { position: absolute; top: -13px; right: -6px; z-index: 6; display: inline-flex; gap: 3px; }
.rv-bar button { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #e0a800; background: #fff; color: #5c4a00; font: 700 13px/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rv-bar .rv-y:hover { background: #dff2e8; border-color: #22a06b; color: #137a50; }
.rv-bar .rv-n:hover { background: #ffe1e1; border-color: #d14343; color: #a12a2a; }
body.review .assume.rv-ok { background: color-mix(in srgb, #22a06b 16%, transparent); outline-color: #22a06b; outline-style: solid; }
body.review .assume.rv-ok .rv-y { background: #22a06b; border-color: #22a06b; color: #fff; }
body.review .assume.rv-no { background: color-mix(in srgb, #d14343 14%, transparent); outline-color: #d14343; outline-style: solid; }
body.review .assume.rv-no .rv-n { background: #d14343; border-color: #d14343; color: #fff; }
.rv-fix { display: block; margin-top: 4px; font: 600 12.5px var(--body); color: #a12a2a; }
.review-pill .rv-copy { background: #fff; color: #1a1400; }
/* Review mode: inline editing */
.rv-bar .rv-save, .rv-bar .rv-cancel, .rv-bar .rv-reset { display: none; width: auto; padding: 0 9px; border-radius: 999px; font-size: 11.5px; }
.assume.rv-editing .rv-y, .assume.rv-editing .rv-n { display: none; }
.assume.rv-editing .rv-save, .assume.rv-editing .rv-cancel { display: grid; }
.assume.rv-editing .rv-save { background: #1a1400; color: #ffe08a; border-color: #1a1400; }
.assume.rv-no:not(.rv-editing) .rv-reset { display: grid; }
body.review .assume.rv-editing { outline: 2px solid #3d5afe !important; background: #fff !important; cursor: text; }
body.review .assume.rv-editing:focus { outline-offset: 3px; }
body.review .assume.rv-no { background: color-mix(in srgb, #d14343 12%, transparent); outline-color: #d14343; outline-style: solid; }

/* Image lightbox */
img.lb-zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(12,12,16,.88); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; padding: 24px 12px; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb-fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: 100%; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); cursor: default; }
.lb-fig figcaption { margin-top: 12px; max-width: 80ch; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font: 600 24px/1 var(--body); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.lb-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 400 30px/1 var(--body); cursor: pointer; justify-self: center; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-nav[hidden] { visibility: hidden; display: block; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb { grid-template-columns: 0 1fr 0; padding: 60px 8px 16px; } .lb-nav { position: fixed; bottom: 18px; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }
.fig-row.three { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.fig-row.three .ui-frame { aspect-ratio: 1 / 1; overflow: hidden; background: #d9d9d9; }
.fig-row.three .ui-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 760px) { .fig-row.three { grid-template-columns: 1fr; } }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Case-study cover image under the hero */
.cs-cover { max-width: 760px; margin: 8px auto 0; }
.cs-cover img { border-radius: 12px; }

/* ASCII noise field behind the hero (ascii-hero.js) */
.ascii-hero { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* Hero heading floating on the ascii field (ascii-hero.js): letters ride the ripple, text never changes */
.ah-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ah-w { white-space: nowrap; }
.ah-c { display: inline-block; transform-origin: 50% 70%; will-change: transform; }
.ah-sr { user-select: none; }

/* Hero popover follows the inspector's selection (hero.js) */
.ds-pop { transition: left .9s cubic-bezier(.65,0,.35,1), top .9s cubic-bezier(.65,0,.35,1), opacity .26s ease; }
.ds-pop.swap { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .ds-pop { transition: none; } }

/* Version switch as footer text (style.js) */
.ver-text { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 22px; padding-left: 18px; border-left: 1px solid var(--line); }
.ver-text a, .ver-text b { margin: 0 !important; } .ver-text b { font-weight: 600; color: var(--ink); }
.ver-text .ver-lbl, .ver-text i { font-style: normal; opacity: .7; }

/* Wide screenshot as a card thumbnail */
.thumb .thumb-wide { width: 92%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); }
