/* Case Study 2 deck. Fixed 1920x1080 stage, scaled to the window by deck.js. */

@font-face { font-family: 'Figtree'; src: url(assets/fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(assets/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  /* Palette. The *-rgb values are the same colors as triplets, for tints. */
  --bg: #F5F7FA;
  --panel: #FFFFFF;
  --line: #D5DBE6;
  --text: #18203A;
  --muted: #4A556F;
  --dim: #66728C;
  --accent: #2456E6;  --accent-rgb: 36, 86, 230;
  --red: #D63B2F;     --red-rgb: 214, 59, 47;
  --green: #12925A;   --green-rgb: 18, 146, 90;
  --warn: #A86400;    --warn-rgb: 217, 138, 0;
  --ink-rgb: 24, 32, 58;
  --marker: #FFE27A;
  --shadow: 0 1px 0 rgba(var(--ink-rgb), .04), 0 14px 34px rgba(var(--ink-rgb), .07);
  --head: 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #E7EBF1; color: var(--text); font-family: var(--body); overflow: hidden; }

#stage {
  position: fixed; left: 50%; top: 50%;
  width: 1920px; height: 1080px; margin: -540px 0 0 -960px;
  transform: scale(var(--s, 1)); transform-origin: center;
  overflow: hidden; background: var(--bg);
}

/* ---------- slides ---------- */

.slide {
  position: absolute; inset: 0;
  padding: 92px 110px 96px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 700px at 88% -12%, rgba(var(--accent-rgb), .10), transparent 62%),
    radial-gradient(900px 620px at -8% 112%, rgba(255, 214, 90, .20), transparent 60%),
    var(--bg);
  visibility: hidden; opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.slide > * { position: relative; }
.slide.active { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.notes { display: none; }

h1 { font-family: var(--head); font-weight: 800; font-size: 132px; line-height: 1; letter-spacing: -3.5px; }
h2 { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 1.1; letter-spacing: -1.4px; max-width: 1640px; }
h3 { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1.2; letter-spacing: -.3px; }
p, li { font-size: 28px; line-height: 1.42; }
.hl { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 94%, transparent 94%); padding: 0 .08em; margin: 0 -.08em; border-radius: 4px; }
.risk { color: var(--red); }
.ok { color: var(--green); }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 23px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.sub { font-size: 30px; color: var(--muted); margin-top: 18px; max-width: 1500px; }
.kicker.hl { background: none; padding: 0; margin: 0; color: var(--accent); }
.kicker { font-size: 20px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }
.note { font-size: 25px; color: var(--muted); margin-top: 26px; }

.card {
  background: var(--panel); box-shadow: var(--shadow);
  border: 1.5px solid var(--line); border-radius: 22px; padding: 34px;
}
.card.hot {
  border-color: rgba(var(--red-rgb), .6);
  background: linear-gradient(180deg, #FFF1EE, #FFF9F8);
  box-shadow: 0 16px 44px rgba(var(--red-rgb), .16);
}
.tag {
  display: inline-block; font-size: 20px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); white-space: nowrap;
}
.tag.red { color: #fff; background: var(--red); border-color: var(--red); }
.tag.redline { color: var(--red); border-color: rgba(var(--red-rgb), .6); }
.tag.amber { color: var(--warn); border-color: rgba(var(--warn-rgb), .6); }
.tag.green { color: var(--green); border-color: rgba(var(--green-rgb), .5); }
.strip {
  margin-top: 30px; padding: 22px 30px 22px 34px; border-left: 6px solid var(--accent);
  background: rgba(var(--accent-rgb), .07); border-radius: 0 16px 16px 0; font-size: 29px; color: var(--text);
}
.ico { width: 56px; height: 56px; flex: none; color: var(--accent); }
.ico use, .ico path, .ico circle, .ico rect { vector-effect: non-scaling-stroke; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 44px; }

/* ---------- motion ---------- */

.a { opacity: 0; }
.slide.active .a { animation: rise .75s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 140ms); }
.slide.active .a.pop { animation-name: pop; }
.slide.active .a.fade { animation-name: fade; }
.slide.active .a.fromleft { animation-name: fromleft; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fromleft { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.active .draw { animation: draw .9s ease forwards; animation-delay: calc(var(--i, 0) * 110ms + 380ms); }
@keyframes draw { to { stroke-dashoffset: var(--to, 0); } }

/* ---------- chrome ---------- */

#chrome {
  position: absolute; left: 110px; right: 110px; bottom: 36px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); text-transform: uppercase;
}
#dots { display: flex; gap: 10px; }
#dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dim); }
#dots i.on { background: var(--accent); border-color: var(--accent); }
#dots.pending i:not(.on):first-of-type, #dots.pending i.on + i:not(.on) { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { border-color: var(--accent); transform: scale(1.35); } }
#progress { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--accent); transition: width .4s ease; z-index: 5; }

#menu {
  position: absolute; inset: 0; z-index: 20; display: none; padding: 90px 110px;
  background: rgba(245, 247, 250, .97); backdrop-filter: blur(6px);
}
#menu.open { display: block; }
#menu h3 { font-size: 30px; color: var(--accent); margin-bottom: 26px; }
#menu ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 60px; }
#menu li { font-size: 27px; padding: 12px 16px; border-radius: 12px; cursor: pointer; display: flex; gap: 20px; color: var(--text); }
#menu li:hover, #menu li.cur { background: rgba(var(--ink-rgb), .07); }
#menu li b { font-weight: 700; color: var(--dim); width: 44px; }
#menu .keys { position: absolute; left: 110px; bottom: 60px; font-size: 20px; color: var(--dim); letter-spacing: 1px; }

/* ---------- 1 cover ---------- */

.cover { justify-content: space-between; padding-top: 120px; }
.cover .lede { font-size: 42px; color: var(--muted); margin-top: 34px; }
.cover .byline { font-size: 25px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
.board { position: absolute !important; right: 110px; top: 250px; width: 600px; }
.board-grid { display: grid; grid-template-columns: repeat(8, 62px); gap: 14px; }
.board-cap { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: 1.6px; color: var(--dim); text-transform: uppercase; display: flex; justify-content: space-between; }
.t { width: 62px; height: 62px; border-radius: 14px; background: rgba(var(--green-rgb), .14); border: 1.5px solid rgba(var(--green-rgb), .45); opacity: 0; }
.t.w { background: rgba(var(--warn-rgb), .22); border-color: rgba(var(--warn-rgb), .75); }
.t.b { background: rgba(var(--red-rgb), .3); border-color: rgba(var(--red-rgb), .9); }
.slide.active .t { animation: pop .5s var(--ease) both; animation-delay: var(--p); }
.slide.active .t.w, .slide.active .t.b { animation: pop .5s var(--ease) both, resolve .7s ease forwards; animation-delay: var(--p), var(--d); }
@keyframes resolve { to { background: rgba(var(--green-rgb), .14); border-color: rgba(var(--green-rgb), .45); } }

/* ---------- 2 answer ---------- */

.ans .card { display: flex; flex-direction: column; gap: 12px; padding: 36px; min-height: 420px; }
.ans .q { font-size: 21px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-top: 16px; }
.ans .card.hot .q { color: var(--red); }
.ans .big { font-size: 46px; letter-spacing: -1px; }
.ans .txt { font-size: 27px; color: var(--muted); }
.ans .illus { width: 150px; height: 104px; }
.needle { transform-box: view-box; transform-origin: 60px 72px; transform: rotate(-74deg); }
.slide.active .needle { animation: needle 1.4s var(--ease) .6s both; }
@keyframes needle { from { transform: rotate(-74deg); } to { transform: rotate(-28deg); } }
.pulse { transform-box: fill-box; transform-origin: center; }
.slide.active .pulse { animation: pulse 2.4s ease-in-out 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .25; } }

/* ---------- 3 assumptions ---------- */

.assume { margin-top: 40px; display: flex; flex-direction: column; }
.assume .hdr, .assume .rowx { display: grid; grid-template-columns: 84px 1fr 86px 1fr; align-items: center; column-gap: 20px; }
.assume .hdr { padding: 0 8px 14px; }
.assume .rowx { padding: 22px 8px; border-top: 1.5px solid var(--line); }
.assume .n { font-size: 30px; font-weight: 800; color: var(--accent); }
.assume p { font-size: 27px; }
.assume .then { color: var(--muted); }
.assume .arrow { width: 62px; height: 28px; color: var(--dim); }

/* ---------- 4 severity ---------- */

.sev { display: grid; grid-template-columns: 1090px 1fr; gap: 50px; margin-top: 30px; }
.sev-head { display: grid; height: 36px; margin-bottom: 18px; padding-left: 86px; }
.sev-head > * { grid-area: 1 / 1; }
.sev-list { position: relative; height: 554px; }
.sev-rank { position: absolute; left: 0; width: 60px; height: 170px; display: flex; align-items: center; font-family: var(--head); font-size: 64px; font-weight: 800; color: #B9C2D2; }
.sev-card {
  position: absolute; left: 86px; width: 1004px; height: 170px; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px;
  border-radius: 22px; border: 1.5px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow);
  transform: translateY(calc(var(--slot) * 192px));
  transition: transform .95s cubic-bezier(.65, 0, .2, 1), border-color .6s ease .4s, background .6s ease .4s, box-shadow .6s ease .4s, opacity .6s ease .4s;
}
.slide[data-at="1"] .sev-card { transform: translateY(calc(var(--slot2) * 192px)); }
.sev-card h3 { font-size: 36px; }
.sev-card h3 .mono { font-size: 24px; font-weight: 500; color: var(--dim); margin-left: 10px; letter-spacing: 0; }
.sev-card p { font-size: 25px; color: var(--muted); margin-top: 8px; max-width: 640px; }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .5s ease .35s; }
.swap > .after { opacity: 0; }
.slide[data-at="1"] .swap > .before { opacity: 0; }
.slide[data-at="1"] .swap > .after { opacity: 1; }
.sev-card .swap.badges { justify-items: end; }
#sv-log4j { border-color: rgba(var(--red-rgb), .55); }
.slide[data-at="1"] #sv-log4j { border-color: var(--line); }
.slide[data-at="1"] #sv-invoice { border-color: rgba(var(--red-rgb), .7); background: #FFF3F0; box-shadow: 0 16px 44px rgba(var(--red-rgb), .18); }
.sev-plot { align-self: start; padding: 30px 30px 24px; }
.sev-plot svg { width: 100%; height: auto; display: block; }
.sev-plot text { font-family: var(--body); font-size: 22px; fill: var(--muted); }
.sev-plot .axis { font-size: 18px; font-weight: 700; letter-spacing: 1.4px; fill: var(--dim); text-transform: uppercase; }
.sev-plot .dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .5s ease, transform .6s var(--ease); }
.slide[data-at="1"] .sev-plot .dot { opacity: 1; transform: none; }
.slide[data-at="1"] .sev-plot .d1 { transition-delay: .9s; }
.slide[data-at="1"] .sev-plot .d2 { transition-delay: 1.1s; }
.slide[data-at="1"] .sev-plot .d3 { transition-delay: 1.25s; }
.sev-plot .cap { font-size: 24px; color: var(--muted); margin-top: 14px; }

/* ---------- 5 invoice ---------- */

.inv { display: grid; grid-template-columns: 800px 1fr; gap: 56px; margin-top: 38px; }
.term { --line: #33405F; --panel: transparent; --text: #EEF2F8; --muted: #B8C2D6; --dim: #8A96B0; --accent: #8FB0FF; --red: #FF6B5E; --red-rgb: 255, 107, 94; --green: #4ADE9C; --green-rgb: 74, 222, 156;
  color: var(--text); border-radius: 20px; border: 1.5px solid var(--line); background: #141B30; overflow: hidden; box-shadow: 0 18px 44px rgba(var(--ink-rgb), .22); }
.term .bar-top { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1.5px solid var(--line); font-family: var(--mono); font-size: 19px; color: var(--dim); letter-spacing: 1px; }
.term .bar-top i { width: 13px; height: 13px; border-radius: 50%; background: var(--line); }
.term .bar-top span { margin-left: 12px; }
.term .body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 25px; }
.req .verb { color: var(--accent); }
.req .id { color: var(--marker); font-weight: 600; }
.req .tag { font-size: 18px; }
.term .tag.red { color: #2A0D0A; }
.term .cap { font-family: var(--body); font-size: 25px; color: var(--muted); padding-top: 8px; border-top: 1.5px dashed var(--line); }
.steps { position: relative; display: flex; flex-direction: column; gap: 26px; padding-left: 70px; }
.steps .rail { position: absolute; left: 24px; top: 26px; bottom: 26px; width: 3px; background: var(--line); transform-origin: top; }
.slide.active .steps .rail { animation: railgrow 1.1s ease .4s both; }
@keyframes railgrow { from { transform: scaleY(0); } to { transform: none; } }
.steps .stepx { position: relative; }
.steps .dotn { position: absolute; left: -70px; top: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--panel); border: 2.5px solid var(--accent); color: var(--accent); font-family: var(--head); font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 32px; }
.steps h3 span { font-size: 20px; font-weight: 700; letter-spacing: 1.5px; color: var(--dim); text-transform: uppercase; margin-left: 14px; }
.steps p { font-size: 25px; color: var(--muted); margin-top: 6px; }
.outcomes { margin-top: 30px; }
.outcomes .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.outcomes .card { padding: 22px 26px; border-radius: 18px; }
.outcomes h3 { font-size: 28px; }
.outcomes p { font-size: 24px; color: var(--muted); margin-top: 6px; }

/* ---------- 6 gaps ---------- */

.gaps .card { padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.gaps .hd { display: flex; align-items: center; gap: 18px; }
.gaps .hd h3 { font-size: 33px; }
.gaps .blk .kicker { display: block; margin-bottom: 4px; }
.gaps .blk p { font-size: 25px; }
.gaps .blk.cant .kicker { color: var(--warn); }
.gaps .blk.cant p { color: var(--muted); }

/* ---------- 7 ready ---------- */

.ready .card { display: flex; gap: 28px; align-items: center; padding: 34px 38px; min-height: 196px; }
.ready .chk { width: 84px; height: 84px; flex: none; }
.ready p { font-size: 33px; line-height: 1.32; }

/* ---------- 8 weeks ---------- */

.lanes { position: relative; display: flex; flex-direction: column; gap: 13px; margin-top: 36px; }
.lane { position: relative; display: grid; grid-template-columns: 270px repeat(6, 1fr); column-gap: 12px; align-items: center; }
.lane .name { font-size: 26px; grid-column: 1; grid-row: 1; color: var(--muted); }
.lane .name.strong { color: var(--red); font-weight: 700; }
.wk { font-size: 20px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); text-align: center; grid-row: 1; padding-bottom: 6px; }
.bar { grid-row: 1; font-size: 24px; line-height: 1.25; text-align: center; padding: 11px 10px; border-radius: 12px; background: rgba(var(--accent-rgb), .10); border: 1.5px solid rgba(var(--accent-rgb), .4); color: var(--text); transform-origin: left center; opacity: 0; }
.bar.hot { background: rgba(var(--red-rgb), .13); border-color: rgba(var(--red-rgb), .65); }
.bar.aud { background: rgba(var(--warn-rgb), .16); border-color: rgba(var(--warn-rgb), .65); }
.slide.active .bar { animation: grow .7s var(--ease) both; animation-delay: calc(var(--w) * 170ms + 350ms); }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.c1 { grid-column: 2 / 3; --w: 0; } .c2 { grid-column: 3 / 4; --w: 1; } .c3 { grid-column: 4 / 5; --w: 2; }
.c4 { grid-column: 5 / 6; --w: 3; } .c5 { grid-column: 6 / 7; --w: 4; } .c6 { grid-column: 7 / 8; --w: 5; }
.c12 { grid-column: 2 / 4; --w: 0; } .c23 { grid-column: 3 / 5; --w: 1; } .c34 { grid-column: 4 / 6; --w: 2; } .c24 { grid-column: 3 / 6; --w: 1; }
.wk1band { position: absolute; top: -10px; bottom: -10px; left: 276px; width: calc((100% - 270px - 72px) / 6 + 12px); border-radius: 16px; background: rgba(var(--ink-rgb), .035); border: 1.5px dashed var(--line); }
.milestone { position: absolute; right: -6px; top: -4px; bottom: -10px; width: 0; border-right: 3px dashed var(--accent); }
.milestone::after { content: ''; position: absolute; right: -11px; top: -12px; width: 18px; height: 18px; background: var(--accent); transform: rotate(45deg); }
.slide.active .milestone::after { animation: beat 2.2s ease-in-out 2s infinite; }
@keyframes beat { 50% { transform: rotate(45deg) scale(1.45); } }

/* ---------- 9 audiences ---------- */

.aud .grid3 { margin-top: 38px; gap: 26px; }
.aud .card { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 304px; }
.aud .hd { display: flex; align-items: center; gap: 16px; }
.aud .hd h3 { font-size: 31px; }
.aud .ico { width: 46px; height: 46px; }
.aud p { font-size: 25px; }
.aud .hear { color: var(--muted); }
.aud .ask { margin-top: auto; padding-top: 12px; border-top: 1.5px solid var(--line); }
.aud .ask b { font-size: 19px; font-weight: 600; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-right: 10px; }

/* ---------- 10 cost ---------- */

.cost { display: grid; grid-template-columns: 1fr 660px; gap: 60px; margin-top: 30px; }
.cost .bignum { font-family: var(--head); font-weight: 800; font-size: 230px; line-height: .9; letter-spacing: -7px; color: var(--accent); }
.cost .bigcap { font-size: 34px; line-height: 1.3; max-width: 820px; margin-top: 10px; }
.costbars { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.costbars .rw { display: grid; grid-template-columns: 330px 1fr 190px; align-items: center; gap: 18px; }
.costbars p { font-size: 25px; color: var(--muted); }
.costbars .v { font-size: 23px; font-weight: 600; color: var(--text); text-align: right; }
.costbars .track { height: 16px; border-radius: 8px; background: rgba(var(--ink-rgb), .08); overflow: hidden; }
.costbars .fill { height: 100%; width: var(--pct); border-radius: 8px; background: var(--accent); transform-origin: left; }
.slide.active .costbars .fill { animation: grow 1s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 700ms); }
.trade { display: flex; flex-direction: column; gap: 20px; }
.trade .card { padding: 26px 30px; }
.trade h3 { font-size: 30px; }
.trade p { font-size: 25px; color: var(--muted); margin-top: 6px; }

/* ---------- 11 appendix: engineering ---------- */

.eng { display: grid; grid-template-columns: 720px 1fr; gap: 34px; margin-top: 36px; }
.eng .card { padding: 30px 32px; }
.eng .card > h3 { font-size: 30px; margin-bottom: 18px; }
.rule { display: flex; align-items: center; gap: 20px; padding: 9px 0; }
.rule p { font-size: 26px; }
.tog { width: 62px; height: 34px; border-radius: 17px; background: var(--line); flex: none; position: relative; }
.tog::after { content: ''; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(var(--ink-rgb), .25); }
.slide.active .tog { animation: togbg .45s ease forwards; animation-delay: calc(var(--i) * 170ms + 600ms); }
.slide.active .tog::after { animation: togknob .45s var(--ease) forwards; animation-delay: calc(var(--i) * 170ms + 600ms); }
@keyframes togbg { to { background: var(--green); } }
@keyframes togknob { to { transform: translateX(28px); } }
.code { font-family: var(--mono); font-size: 23px; line-height: 1.62; color: var(--text); white-space: pre; }
.code .k { color: var(--accent); font-weight: 600; } .code .s { color: var(--green); } .code .c { color: var(--dim); }
.code .ln { display: block; opacity: 0; }
.slide.active .code .ln { animation: fromleft .5s var(--ease) both; animation-delay: calc(var(--i) * 130ms + 500ms); }
.eng .why { font-size: 25px; color: var(--muted); margin-top: 18px; }

/* ---------- 12 to 14 appendix ---------- */

.cols3 .card { display: flex; flex-direction: column; gap: 14px; padding: 32px; min-height: 330px; }
.cols3 .card p { font-size: 27px; color: var(--muted); }
.cols2 .card { padding: 34px 38px; }
.cols2 .hd { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.cols2 ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cols2 li { font-size: 29px; padding-left: 34px; position: relative; }
.cols2 li::before { content: ''; position: absolute; left: 0; top: 16px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.cols2 .sign li::before { background: var(--green); border-radius: 50%; }

.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
.flow .wire { position: absolute; left: 6%; right: 6%; top: 44px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); transform-origin: left; }
.slide.active .flow .wire { animation: wire 1.3s ease .35s both; }
@keyframes wire { from { transform: scaleX(0); } to { transform: none; } }
.flow .node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.flow .bub { width: 90px; height: 90px; border-radius: 50%; background: var(--panel); border: 2.5px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.flow .bub .ico { width: 44px; height: 44px; }
.flow h3 { font-size: 30px; }
.flow p { font-size: 25px; color: var(--muted); max-width: 360px; }
.after3 { margin-top: 36px; }
.after3 .card { padding: 26px 30px; }
.after3 h3 { font-size: 29px; }
.after3 p { font-size: 25px; color: var(--muted); margin-top: 6px; }

/* ---------- reduced motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  .a, .bar, .t, .code .ln { opacity: 1 !important; animation: none !important; transform: none !important; }
  .draw { stroke-dashoffset: var(--to, 0) !important; animation: none !important; }
  .slide, .sev-card, .swap > * { transition: none !important; }
}

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { height: auto; overflow: visible; background: var(--bg); }
  #stage { position: static; margin: 0; transform: none; height: auto; overflow: visible; }
  #chrome, #progress, #menu { display: none !important; }
  .slide { position: relative; inset: auto; width: 1920px; height: 1080px; visibility: visible !important; opacity: 1 !important; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .a, .bar, .t, .code .ln { opacity: 1 !important; animation: none !important; transform: none !important; }
  .t.w, .t.b { background: rgba(var(--green-rgb), .14) !important; border-color: rgba(var(--green-rgb), .45) !important; }
  .draw { stroke-dashoffset: var(--to, 0) !important; animation: none !important; }
  .needle { transform: rotate(-28deg) !important; animation: none !important; }
  .tog { background: var(--green) !important; }
  .tog::after { transform: translateX(28px) !important; }
  * { transition: none !important; }
}

/* ---------- tuning after first render ---------- */
.cover .lede { max-width: 1000px; }
#stage:has(#cover.active) #chrome span:first-child { visibility: hidden; }
.ready .card { min-height: 236px; }
.ready p { font-size: 36px; }
.cols3 .card { min-height: 430px; padding: 38px; gap: 16px; }
.cols3 .card .ico { width: 68px; height: 68px; }
.cols3 .card h3 { font-size: 38px; }
.cols3 .card p { font-size: 30px; }
.cols2 .card { padding: 40px 44px; min-height: 430px; }
.cols2 .hd h3 { font-size: 38px; }
.cols2 .hd .ico { width: 64px; height: 64px; }
.cols2 li { font-size: 32px; }
.cols2 li::before { top: 18px; }
