/* Technology page: Cohort Simulation (owner 2026-10-07). Desktop: text chapters left (≈45%), a sticky dot stage right
   (≈55%) whose one population of navy dots changes shape per chapter. Below 1080px: one still figure per chapter and a
   slim fixed step rail under the nav. Then two directions (7), two checks (8), questions. White ground, navy dots, blue
   only for small highlights. Every example is fictional. */

.tech { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: clamp(36px, 4.4vw, 76px); align-items: start; }
.tech > section { grid-column: 1; min-width: 0; }
.tech > [data-ch="0"] { grid-row: 1; } .tech > [data-ch="1"] { grid-row: 2; } .tech > [data-ch="2"] { grid-row: 3; }
.tech > [data-ch="3"] { grid-row: 4; } .tech > [data-ch="4"] { grid-row: 5; } .tech > [data-ch="5"] { grid-row: 6; } .tech > [data-ch="6"] { grid-row: 7; }

/* hero */
.t-hero { min-height: 100vh; min-height: 100svh; padding: 124px 0 72px; display: flex; flex-direction: column; justify-content: center; }
.t-hero .tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.t-hero .tagrow .ko { font-size: 14px; color: var(--ink-2); }
.t-hero .h1 { margin-top: 22px; font-size: clamp(40px, 4.25vw, 66px); line-height: 1.02; }
.t-hero .h1 > span { display: block; }
.t-hero .lead { margin-top: 24px; max-width: 24em; text-wrap: balance; }
.t-hero .eq { margin-top: 32px; gap: 8px; font-size: 13.5px; }
.t-hero .eq > span { padding: 9px 12px; }
.t-hero .ctas { margin-top: 32px; }
html[lang="en"] .t-hero .eq > span small, html[lang="en"] .t-hero .eq-g small { display: none; }
/* each '+' or '→' wraps together with the chip after it, so an operator never ends a line */
.t-hero .eq-g { display: inline-flex; align-items: center; gap: 8px; font-weight: inherit; }
.t-hero .eq-g > span { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rule-2); background: #fff; }
.t-hero .eq-g > span.o { border-color: var(--navy); background: var(--navy); color: #fff; }
.t-hero .eq-g small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); }
.t-hero .eq-g > span.o small { color: rgba(255,255,255,.7); }
/* the result always starts its own line, led by a bent arrow coming down from the inputs (owner 2026-10-07: the text
   arrow at the start of the second line looked odd) */
.t-hero .eq-res { flex-basis: 100%; gap: 10px; }
.t-hero .eq-to { display: inline-flex; margin-left: 10px; color: var(--ink-3); }
.t-hero .eq-to svg { display: block; }

/* chapters */
.tch { min-height: 100vh; padding: 132px 0 72px; border-top: 1px solid var(--rule); }
.tchap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; align-items: end; }
.tchap .num { grid-row: 1 / 3; font-weight: 300; font-size: clamp(64px, 6vw, 96px); line-height: .8; color: #B9C2D2; }
.tchap .eyebrow { grid-column: 2; }
.tchap .h2 { grid-column: 2; font-size: clamp(30px, 3vw, 46px); }
.tch > .lead { margin-top: 24px; max-width: 29em; }
.tch > .lead > span { display: block; }
.tch > .ex { margin-top: 36px; }
.tch .ex-body { padding: 22px 20px; }
.sub { margin: 0 0 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.xbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.xbtn:hover { border-color: var(--ink-3); }
.xbtn .ar, .xbtn [aria-hidden] { font-family: var(--mono); font-weight: 500; }

/* sticky stage (desktop) */
.tech > .stage { grid-column: 2; grid-row: 1 / span 7; position: sticky; top: 92px; height: calc(100vh - 110px); min-height: 540px; max-height: 960px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage-frame, .mstage { position: relative; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: radial-gradient(130% 80% at 50% 100%, #F3F6FA 0%, #FFFFFF 64%); box-shadow: 0 1px 0 rgba(15,27,51,.02), 0 26px 54px -40px rgba(15,27,51,.32); }
.stage-frame { flex: 1; min-height: 0; }
.stage-frame canvas, .mstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.illus { position: absolute; left: 18px; bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); pointer-events: none; }
.illus b { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; }
.stage-cap { margin: 0; min-height: 24px; padding: 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* step rail: desktop (top of the stage) and phones (fixed under the nav) */
.rail { display: flex; gap: 4px; min-height: 36px; align-items: center; }
.rail a, .mrail a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; border-radius: 999px; font-size: 13px; color: var(--ink-3); white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.rail a b, .mrail a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-2); font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--ink-2); background: #fff; transition: background .3s, border-color .3s, color .3s; }
.rail a span, .mrail a span { display: none; }
.rail a:hover b, .mrail a:hover b { border-color: var(--ink-3); }
.rail a.done b, .mrail a.done b { background: var(--bg-3); border-color: var(--bg-3); }
.rail a.on, .mrail a.on { padding-right: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.rail a.on b, .mrail a.on b { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail a.on span, .mrail a.on span { display: inline; font-weight: 600; }
.mrail { display: none; }

/* phone / tablet figures */
.mstage { display: none; height: clamp(340px, 92vw, 460px); margin-top: 28px; }

/* 1 · define the group: screener and quota */
.scr { padding: 22px 20px; display: grid; gap: 22px; }
.scr-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.tgs { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.tg i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--rule-2); position: relative; transition: all .2s; }
.tg[aria-pressed="true"] { border-color: var(--navy); color: var(--ink); }
.tg[aria-pressed="true"] i { background: var(--navy); border-color: var(--navy); }
.tg[aria-pressed="true"] i::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3.5px; height: 7px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); }
.pool-n { display: flex; align-items: baseline; gap: 10px; }
.pool-n b { font-family: var(--mono); font-weight: 500; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.pool-n span { font-size: 12.5px; color: var(--ink-3); }
.pool-bar { margin-top: 10px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--rule) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.pool-bar i { display: block; height: 100%; border-radius: 4px; background: var(--navy); transition: width .6s cubic-bezier(.3,.7,.2,1); }
.qspec { padding-top: 18px; border-top: 1px dashed var(--rule-2); }
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qgrid span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rule); font-size: 13px; }
.qgrid b { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.qgrid em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.qtot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.qtot b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* 2 · fill the group: who one draw puts into one cell */
.mem { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mem li { display: grid; align-content: start; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: #fff; }
.mem .mid { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.mem b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.mem .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.mem .chips i { font-style: normal; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mem.in li { animation: memIn .45s cubic-bezier(.3,.7,.2,1) both; }
.mem.in li:nth-child(2) { animation-delay: .06s; } .mem.in li:nth-child(3) { animation-delay: .12s; } .mem.in li:nth-child(4) { animation-delay: .18s; }
@keyframes memIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tr-no { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--rule-2); font-size: 12.5px; color: var(--ink-3); }
.tr-no i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-3); position: relative; }
.tr-no i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; border-top: 1px solid var(--ink-3); transform: rotate(-45deg); }

/* 3 · recent context */
.ctx-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 13px; color: var(--ink-2); }
.ctx-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ctx-legend i { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--navy-2); }
.g0 { border-radius: 2px; }
.g1 { border-radius: 50%; }
.g2 { clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.g3 { transform: rotate(45deg) scale(.82); border-radius: 1px; }
/* items sit at scattered positions on the older → newer axis (no fixed columns) */
.strip { position: relative; height: 104px; margin: 22px 8px 0; border-bottom: 1px solid var(--rule-2); }
.strip i { position: absolute; left: 0; bottom: calc(8px + var(--r, 0) * 22px); width: 15px; height: 15px; margin-left: -7.5px; }
.strip-ax { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.strip-ax i { height: 1px; background: linear-gradient(90deg, var(--rule-2), var(--navy)); position: relative; }
.strip-ax i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--navy); border-right: 1px solid var(--navy); transform: rotate(45deg); }
.strip-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 13px; color: var(--ink-2); }
.strip-note i { width: 64px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #D6DCE7, #1B263B); }

/* 4 · response matrix */
.mx { display: grid; grid-template-columns: minmax(96px, 1.5fr) repeat(6, minmax(0, 1fr)); gap: 5px; align-items: center; }
.mx .h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.mx .who { display: grid; gap: 1px; padding-right: 6px; }
.mx .who b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.mx .who span { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.mx button { height: 38px; min-width: 0; border-radius: 8px; border: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; cursor: pointer; transition: box-shadow .2s, transform .15s; }
.mx button:hover { transform: translateY(-1px); }
.mx .v1 { background: #F2F4F8; color: var(--ink-3); } .mx .v2 { background: #E4E9F1; color: var(--ink-2); } .mx .v3 { background: #CDD5E2; color: var(--ink); }
.mx .v4 { background: #56647F; color: #fff; } .mx .v5 { background: var(--navy); color: #fff; }
.mx button.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.mxd { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }
.mxd .qline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.mxd .qline b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--bg-3); }
.mxd .qline span { font-size: 15px; font-weight: 600; }
.scale5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 360px; }
.scale5 span { height: 30px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.scale5 span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale-ends { display: flex; justify-content: space-between; max-width: 360px; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.said { margin: 0; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg-2); font-size: 14px; line-height: 1.55; color: var(--ink); }
.said em { display: block; margin-bottom: 4px; font-style: normal; font-size: 11.5px; color: var(--ink-3); }

/* 5 · cleaning and refill */
.cl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.cl-rules { margin: 0; padding: 6px 20px 0; list-style: none; }
.cl-rules li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cl-rules small { grid-row: 1 / 3; font-weight: 300; font-size: 22px; line-height: 1.05; color: #B9C2D2; }
.cl-rules b { font-size: 15px; letter-spacing: -.01em; }
.cl-rules span { font-size: 13px; color: var(--ink-2); }
.cl-q { padding: 20px 20px 22px; }
.qbars { display: grid; gap: 8px; }
.qbar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.qbar .trk { position: relative; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--rule-2) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--rule-2); overflow: hidden; }
.qbar .trk i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--navy); }
.qbar .trk i.fill { left: auto; right: 0; width: 0; background: var(--blue); transition: width .7s cubic-bezier(.3,.7,.2,1); }
.qbar .ok { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; transition: color .3s; }
.cl-q.after .qbar .ok { color: var(--blue-ink); }
.qlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.qlegend > span { display: inline-flex; align-items: center; gap: 7px; }
.qlegend i { width: 12px; height: 8px; border-radius: 2px; }
.qlegend i.k { background: var(--navy); } .qlegend i.b { background: var(--blue); }
.qlegend i.h { background: repeating-linear-gradient(135deg, var(--rule-2) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--rule-2); }
.seg2 { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-3); }
.seg2 button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2), 0 1px 2px rgba(15,27,51,.08); }

/* 6 · results and trace */
.trace { padding: 22px 20px 24px; display: grid; gap: 0; }
.tstep { position: relative; padding: 0 0 22px 22px; border-left: 2px solid var(--rule); transition: border-color .5s; }
.tstep:last-child { padding-bottom: 2px; }
.tstep::before { content: ""; position: absolute; left: -6px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--rule-2); transition: box-shadow .5s; }
.ttag { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.rep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.rep b { font-family: var(--mono); font-weight: 500; font-size: clamp(36px, 3.2vw, 48px); letter-spacing: -.03em; line-height: 1; color: var(--blue-ink); }
.rep p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rep .xbtn { margin: 0; }
.xt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.xt th, .xt td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 500; }
.xt thead th { font-size: 12px; color: var(--ink-3); border-bottom-color: var(--rule-2); }
.xt thead th + th, .xt td { text-align: right; }
.xt tbody th { color: var(--ink-2); }
.xt tbody th small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.xt td { font-family: var(--mono); font-size: 14px; transition: background .4s, color .4s, box-shadow .4s; }
.raw { display: grid; gap: 12px; opacity: .55; transition: opacity .5s; }
.rawdots { display: grid; grid-template-columns: repeat(auto-fill, 8px); gap: 3px; }
.rawdots i { width: 8px; height: 8px; border-radius: 50%; background: #DCE2EC; transition: background .35s; }
.raw-n { font-size: 13px; color: var(--ink-2); }
.trace.traced .tstep { border-left-color: var(--navy); }
.trace.traced .tstep::before { box-shadow: inset 0 0 0 5px var(--navy); }
.trace.traced .xt tr.hit th { color: var(--ink); font-weight: 600; }
.trace.traced .xt td.hit { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }
.trace.traced .raw { opacity: 1; }
.trace.traced .rawdots i.t2 { background: var(--navy); }
#whyBtn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 7 · two directions: person → group, group → person */
.dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.dir { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; border: 1px solid var(--rule); background: #fff; overflow: hidden; }
.dir-fig { position: relative; height: 236px; border-bottom: 1px solid var(--rule); background: radial-gradient(130% 80% at 50% 100%, #F3F6FA 0%, #FFFFFF 64%); }
.dir-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dir-fig .illus { left: auto; right: 16px; top: 14px; bottom: auto; }
.dir-body { display: grid; align-content: start; gap: 10px; padding: 22px 24px 26px; }
.dir-tag { font-size: 12.5px; font-weight: 600; color: var(--blue-ink); }
.dir h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.35; }
.dir p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.dir-note { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* 8 · two checks, limits, validation cards */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.check { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 18px; border: 1px solid var(--rule); background: var(--bg-2); }
.check b { font-size: 19px; letter-spacing: -.02em; line-height: 1.35; margin-top: 4px; }
.check p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.lims { margin-top: 28px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--rule); }
.lims h3 { font-size: 15px; letter-spacing: -.01em; }
.lims ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lims li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.lims li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ink-3); }
.lims li::after { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; border-top: 1px solid var(--ink-3); transform: rotate(-45deg); }
.vlab { margin: 40px 0 0; font-size: 14px; color: var(--ink-3); }
.vcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.vcard { position: relative; display: grid; align-content: start; gap: 10px; min-height: 176px; padding: 24px 24px 56px; border-radius: 18px; border: 1px solid var(--rule); background: #fff; transition: border-color .25s, box-shadow .25s; }
.vcard b { font-size: 19px; letter-spacing: -.02em; line-height: 1.35; margin-top: 8px; }
.vcard > span:not(.eyebrow) { font-size: 14.5px; color: var(--ink-2); }
.vcard i { position: absolute; right: 22px; bottom: 20px; font-style: normal; font-family: var(--mono); color: var(--ink-3); transition: color .25s, transform .25s; }
.vcard:hover { border-color: var(--rule-2); box-shadow: 0 18px 40px -30px rgba(15,27,51,.3); }
.vcard:hover i { color: var(--blue-ink); transform: translateX(3px); }
.vcard:hover b { color: var(--blue-ink); }

/* questions: the general questions from every product page, one <details> each (docs/decisions.md 2026-09-26) */
.faq-grid { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-ink); }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.faq .a { padding: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 46em; }
.faq .a a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* narrow: no sticky stage, one figure per chapter, fixed rail under the nav */
@media (max-width: 1079px) {
  .tech { grid-template-columns: minmax(0, 1fr); }
  .tech > section { grid-row: auto !important; }
  .tech > .stage { display: none; }
  .t-hero { min-height: 0; padding: 120px 0 24px; }
  .tch { min-height: 0; padding: 96px 0 12px; }
  .mstage { display: block; }
  .mrail { display: flex; position: fixed; z-index: 45; top: 86px; left: 50%; gap: 2px; align-items: center; height: 40px; padding: 0 4px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--rule); box-shadow: 0 8px 26px -18px rgba(15,27,51,.35); max-width: calc(100vw - 24px); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -6px); transition: opacity .3s, transform .3s, visibility 0s linear .3s; }
  .mrail.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
  .mrail a { height: 32px; gap: 7px; padding: 0 4px; font-size: 12.5px; }
  .mrail a.on { padding-right: 12px; }
  .mrail a b { width: 22px; height: 22px; font-size: 10px; }
  .vcards, .dirs, .checks { grid-template-columns: minmax(0, 1fr); }
  .vcard { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1079px) {
  .mstage { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .mrail { top: 72px; }
  .t-hero { padding-top: 96px; }
  .t-hero .eq { font-size: 13px; }
  .tch { padding-top: 84px; }
  .tchap .num { font-size: 52px; }
  .tchap { gap: 8px 16px; }
  .scr-top { grid-template-columns: minmax(0, 1fr); }
  .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mem { grid-template-columns: minmax(0, 1fr); }
  .dir-fig { height: 220px; }
  .dir-body, .check, .lims { padding: 20px; }
  .strip { height: 88px; margin-inline: 6px; }
  .strip i { width: 12px; height: 12px; margin-left: -6px; bottom: calc(7px + var(--r, 0) * 18px); }
  .mx { grid-template-columns: 62px repeat(6, minmax(0, 1fr)); gap: 4px; }
  .mx .who span { font-size: 11px; }
  .mx button { height: 34px; font-size: 12.5px; }
  .rep { grid-template-columns: auto minmax(0, 1fr); }
  .rep .xbtn { grid-column: 1 / -1; justify-self: start; }
  .rawdots { grid-template-columns: repeat(auto-fill, 7px); }
  .rawdots i { width: 7px; height: 7px; }
  .ex-head .seg2, .ex-head .xbtn { margin-left: 0; }
  .xt { font-size: 12.5px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq summary { padding: 18px 0; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pool-bar i, .qbar .trk i.fill, .rawdots i, .mrail, .rail a { transition: none; }
  .mem.in li { animation: none; }
}
