/* ═══════════════════════════════════════════════════════════════
   SlideClark slides — every layout, drawn on a fixed 1280×720 stage.
   The app scales the stage with transform, so this file never uses vw/vh.
   ═══════════════════════════════════════════════════════════════ */
.slide, .slide * { box-sizing: border-box; }
.slide {
  position: relative; width: 1280px; height: 720px; overflow: hidden; flex: none;
  padding: 60px 80px 68px; display: flex; flex-direction: column;
  font-family: var(--font-b); font-size: 20px; line-height: 1.45; color: var(--fg);
  background: var(--slide-bg); text-align: left; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.slide:where(:not(.layout-custom)) > *:not(.deco) { position: relative; z-index: 1; }
/* custom slides: an empty 1280x720 box, nothing pre-laid-out. In the editor the box holds one sandboxed iframe (see PC.customDoc). */
.slide.layout-custom { padding: 0; display: block; }
.slide.layout-custom > iframe.cs-frame { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; display: block; background: transparent; pointer-events: none; color-scheme: normal; }
.pres .slide.layout-custom > iframe.cs-frame[data-interactive='1'] { pointer-events: auto; }
.stage.editing .slide.layout-custom > iframe.cs-frame { pointer-events: auto; }   /* the editor canvas: double-click text in the frame to edit it */
.slide > .s-foot { position: absolute; }
.slide h1, .slide h2, .slide h3, .slide p, .slide ul, .slide ol, .slide blockquote { margin: 0; padding: 0; }
.slide ul, .slide ol { list-style: none; }
.slide mark.hl { background: none; color: var(--ink-acc, var(--acc)); padding: 0; }
.slide[data-bg='accent'] mark.hl, .slide[data-bg='grad'] mark.hl { color: inherit; box-shadow: inset 0 -.2em 0 rgba(255,255,255,.34); }
.slide[data-theme='brutal'] mark.hl { color: #111; background: #ffd93d; padding: 0 .12em; box-shadow: none; }
.slide[data-theme='brutal'][data-bg='dark'] mark.hl { color: #111; }
.slide em { font-style: italic; }
.slide[data-theme='editorial'] .display em, .slide[data-theme='editorial'] .h2 em { font-style: italic; }
.slide code { font-family: var(--f-mono); font-size: .86em; padding: .08em .4em; border-radius: 7px; background: var(--tile); color: var(--fg); }
.slide strong { font-weight: 700; }

/* ── type ── */
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-acc, var(--acc)); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; line-height: 1.2; }
.kicker::before { content: ''; width: 30px; height: 2px; background: currentColor; flex: none; border-radius: 2px; }
.slide[data-theme='brutal'] .kicker, .slide[data-theme='contrast'] .kicker { font-family: var(--f-mono); font-weight: 700; letter-spacing: .1em; }
.slide[data-theme='editorial'] .kicker { letter-spacing: .2em; font-weight: 600; }
.s-body.center .kicker { justify-content: center; }
.display, .h2, .sec-num, .q-text, .m-val, .co-val, .sp-num, .sp-title, .c-title, .cmp-title, .bl-title, .bl-n, .pr-title, .tl-title, .tl-date, .fl-title, .b-val, .b-title, .an-title, .th-title, .th-spec, .pr-badge, .an-n {
  font-family: var(--font-d); font-weight: var(--d-weight); text-transform: var(--d-case); letter-spacing: var(--d-ls); overflow-wrap: anywhere;
}
.display { font-size: calc(96px * var(--d-scale)); line-height: var(--d-lh); text-wrap: balance; max-width: 1040px; }
.display[data-len='m'] { font-size: calc(84px * var(--d-scale)); }
.display[data-len='l'] { font-size: calc(72px * var(--d-scale)); }
.display[data-len='xl'] { font-size: calc(60px * var(--d-scale)); }
.display-m { font-size: calc(84px * var(--d-scale)); }
.display-m[data-len='m'] { font-size: calc(74px * var(--d-scale)); }
.display-m[data-len='l'] { font-size: calc(64px * var(--d-scale)); }
.display-m[data-len='xl'] { font-size: calc(54px * var(--d-scale)); }
.h2 { font-size: calc(52px * var(--d-scale)); line-height: var(--d-lh); text-wrap: balance; max-width: 1000px; }
.h2[data-len='m'] { font-size: calc(46px * var(--d-scale)); }
.h2[data-len='l'] { font-size: calc(40px * var(--d-scale)); }
.h2[data-len='xl'] { font-size: calc(34px * var(--d-scale)); }
.lead { font-size: 26px; line-height: 1.45; color: var(--muted); max-width: 820px; margin-top: 26px; text-wrap: pretty; }
.s-body.center .lead { margin-left: auto; margin-right: auto; }
.slide[data-theme='editorial'] .lead { font-size: 28px; }

.s-head { margin-bottom: 30px; flex: none; }
.s-head.compact { margin-bottom: 20px; }
.s-head .lead { margin-top: 16px; font-size: 22px; }
.s-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.s-body.center { align-items: center; text-align: center; }
.s-foot { left: 80px; right: 80px; bottom: 24px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); z-index: 2; }
.s-foot span:last-child { font-variant-numeric: tabular-nums; }

.card { background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.slide[data-theme='aurora'] .card { backdrop-filter: blur(10px); }
.ic-tile { width: 60px; height: 60px; flex: none; border-radius: calc(var(--radius) * .5); background: var(--tile); color: var(--tile-fg); display: grid; place-items: center; }
.slide[data-theme='brutal'] .ic-tile { border: 3px solid #111; }
.ic-tile.sm { width: 42px; height: 42px; }
.ic-tile.lg { width: 76px; height: 76px; }

/* ── decorative shapes (title, statement, section, quote, closing) ── */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco i { position: absolute; display: block; }
[data-theme='studio'] .deco i:nth-child(1), .slide[data-theme='studio'] .deco i:nth-child(1) { right: -150px; top: -190px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle at 32% 32%, var(--acc), transparent 68%); opacity: .3; }
.slide[data-theme='studio'] .deco i:nth-child(2) { right: 140px; bottom: -230px; width: 460px; height: 460px; border-radius: 50%; background: var(--c2); opacity: .16; filter: blur(50px); }
.slide[data-theme='studio'] .deco i:nth-child(3) { right: 96px; top: 96px; width: 190px; height: 190px; border-radius: 50%; border: 2px solid var(--acc); opacity: .35; }
.slide[data-theme='editorial'] .deco i:nth-child(1) { right: 80px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.slide[data-theme='editorial'] .deco i:nth-child(2) { right: 73px; top: 118px; width: 15px; height: 15px; border-radius: 50%; background: var(--acc); }
.slide[data-theme='editorial'] .deco i:nth-child(3) { left: 80px; right: 80px; bottom: 62px; height: 1px; background: var(--rule); }
.slide[data-theme='contrast'] .deco i:nth-child(1) { right: -130px; top: -150px; width: 520px; height: 520px; border-radius: 50%; border: 4px solid var(--acc); }
.slide[data-theme='contrast'] .deco i:nth-child(2) { right: 120px; bottom: -190px; width: 380px; height: 380px; border-radius: 50%; background: var(--acc); }
.slide[data-theme='contrast'] .deco i:nth-child(3) { right: 470px; top: 96px; width: 70px; height: 70px; background: var(--c2); transform: rotate(18deg); }
.slide[data-theme='aurora'] .deco i:nth-child(1) { right: -160px; top: -200px; width: 640px; height: 640px; border-radius: 50%; background: var(--c1); opacity: .28; filter: blur(90px); }
.slide[data-theme='aurora'] .deco i:nth-child(2) { left: -200px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%; background: var(--c2); opacity: .34; filter: blur(100px); }
.slide[data-theme='aurora'] .deco i:nth-child(3) { right: 220px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--c3); opacity: .24; filter: blur(80px); }
.slide[data-theme='brutal'] .deco i:nth-child(1) { right: 110px; top: 84px; width: 210px; height: 210px; background: #ff4d2e; border: 4px solid #111; box-shadow: 9px 9px 0 #111; transform: rotate(8deg); }
.slide[data-theme='brutal'] .deco i:nth-child(2) { right: 330px; bottom: 84px; width: 130px; height: 130px; border-radius: 50%; background: #ffd93d; border: 4px solid #111; box-shadow: 7px 7px 0 #111; }
.slide[data-theme='brutal'] .deco i:nth-child(3) { right: 56px; bottom: 0; width: 44px; height: 300px; background: #111; }
.slide[data-theme='brutal'][data-bg='dark'] .deco i { border-color: #fffbea; box-shadow: 9px 9px 0 #fffbea; }
.slide[data-theme='brutal'][data-bg='dark'] .deco i:nth-child(3) { background: #fffbea; box-shadow: none; }
.slide[data-bg='accent'] .deco i, .slide[data-bg='grad'] .deco i { opacity: .13; }
.slide[data-bg='accent'][data-theme='brutal'] .deco i, .slide[data-bg='grad'][data-theme='brutal'] .deco i { opacity: 1; }

/* ── title / statement / section / quote / closing ── */
.layout-title .s-body { max-width: 940px; }
.layout-statement .display-m, .layout-closing .display { max-width: 980px; }
.layout-closing .display { font-size: calc(88px * var(--d-scale)); }
.layout-closing .display[data-len='m'], .layout-closing .display[data-len='l'], .layout-closing .display[data-len='xl'] { font-size: calc(68px * var(--d-scale)); }
.sec { flex-direction: row; align-items: center; justify-content: flex-start; gap: 64px; }
.sec-num { font-size: calc(300px * var(--d-scale)); line-height: .8; letter-spacing: -.06em; color: var(--ink-acc, var(--acc)); flex: none; padding-bottom: .04em; }
.layout-section .sec-num::before { display: none; }
.layout-section .kicker::before { display: none; }
.sec-txt { flex: 1; border-left: 2px solid var(--rule); padding-left: 60px; min-width: 0; }
.sec-txt .lead { margin-top: 22px; }
.sec-txt .display-m { font-size: calc(64px * var(--d-scale)); } .sec-txt .display-m[data-len='m'] { font-size: calc(56px * var(--d-scale)); } .sec-txt .display-m[data-len='l'] { font-size: calc(48px * var(--d-scale)); } .sec-txt .display-m[data-len='xl'] { font-size: calc(40px * var(--d-scale)); }
.q-wrap { max-width: 1000px; }
.q-mark { color: var(--ink-acc, var(--acc)); margin-bottom: 18px; opacity: .9; }
.q-mark .ic { stroke-width: 1.4; }
.q-text { font-size: calc(60px * var(--d-scale)); line-height: 1.1; text-wrap: balance; font-weight: var(--d-weight); }
.q-text[data-len='m'] { font-size: calc(54px * var(--d-scale)); }
.q-text[data-len='l'] { font-size: calc(46px * var(--d-scale)); }
.q-text[data-len='xl'] { font-size: calc(38px * var(--d-scale)); }
.slide[data-theme='editorial'] .q-text { font-style: italic; }
.q-by { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.q-av { width: 52px; height: 52px; border-radius: 50%; background: var(--acc-bg); color: var(--on-acc); display: grid; place-items: center; font-weight: 700; font-size: 22px; font-family: var(--font-d); text-transform: uppercase; }
.slide[data-bg='accent'] .q-av, .slide[data-bg='grad'] .q-av { background: var(--on-acc); color: var(--slide-bg); }
.slide[data-bg='grad'] .q-av { color: var(--g1); }
.q-name { font-size: 20px; font-weight: 600; color: var(--muted); }
.chips { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.chip { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; background: var(--card); border: var(--bw) solid var(--line); font-size: 19px; color: var(--ink-acc, var(--acc)); box-shadow: var(--shadow); }
.slide[data-theme='brutal'] .chip { border-radius: 0; }
.chip-l { color: var(--muted); }
.chip-v { color: var(--fg); font-weight: 700; }

/* ── metrics ── */
.m-grid { flex: 1; display: grid; gap: 24px; min-height: 0; max-height: 390px; grid-template-columns: repeat(4, 1fr); align-self: stretch; }
.m-grid.n1 { grid-template-columns: 1fr; } .m-grid.n2 { grid-template-columns: repeat(2, 1fr); } .m-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.m-card { position: relative; padding: 38px 34px 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-width: 0; }
.m-bar { position: absolute; left: 34px; top: 0; width: 56px; height: 6px; border-radius: 0 0 6px 6px; background: var(--acc-bg); }
.m-val { font-size: calc(92px * var(--d-scale)); line-height: 1; color: var(--fg); white-space: nowrap; }
.m-grid.n4 .m-val { font-size: calc(70px * var(--d-scale)); }
.m-label { font-size: 22px; font-weight: 600; margin-top: 12px; }
.m-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--muted); }
.m-note.up { color: var(--good); } .m-note.down { color: var(--bad); }

.slide[data-bg='accent'] .m-note, .slide[data-bg='grad'] .m-note { color: var(--fg) !important; }

/* ── charts ── */
.ch-row { flex: 1; display: grid; grid-template-columns: 1fr; gap: 28px; min-height: 0; align-content: start; }
.ch-row.has-side { grid-template-columns: 1fr 340px; }
.ch-card { padding: 28px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ch-side { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.ch-lead { font-size: 23px; line-height: 1.45; text-wrap: pretty; }
.callout { padding: 20px 26px; border-radius: calc(var(--radius) * .7); background: var(--card); border: var(--bw) solid var(--line); box-shadow: var(--shadow); }
.co-val { font-size: calc(54px * var(--d-scale)); line-height: 1; color: var(--ink-acc, var(--acc)); }
.slide[data-bg='accent'] .co-val, .slide[data-bg='grad'] .co-val { color: var(--fg); }
.co-label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pc-svg { display: block; overflow: visible; font-family: var(--font-b); }
.pc-grid { stroke: var(--line); stroke-width: 1.2; }
.slide[data-theme='brutal'] .pc-grid { stroke-dasharray: 4 6; stroke: #111; opacity: .35; }
.pc-tick { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pc-cat { fill: var(--muted); font-size: 16px; font-weight: 500; }
.pc-val { fill: var(--fg); font-size: 15px; font-weight: 700; }
.pc-line { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.pc-dot { stroke: var(--card); stroke-width: 3; }
.slide[data-theme='aurora'] .pc-dot { stroke: #0d1230; }
.pc-flag rect { opacity: .95; }
.pc-flag text { fill: #fff; font-size: 15px; font-weight: 700; }
.slide[data-bg='accent'] .pc-flag text, .slide[data-bg='grad'] .pc-flag text { fill: var(--slide-bg); }
.pc-bar { stroke: none; }
.slide[data-theme='brutal'] .pc-bar { stroke: #111; stroke-width: 3; }
.pc-ring { fill: none; stroke: var(--line); opacity: .8; }
.pc-seg { fill: none; }
.pc-center { fill: var(--fg); font-family: var(--font-d); font-weight: var(--d-weight); font-size: 46px; letter-spacing: var(--d-ls); text-transform: var(--d-case); }
.pc-centersub { fill: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pc-legend { display: flex; gap: 22px; margin-bottom: 8px; font-size: 15px; color: var(--muted); height: 26px; align-items: center; }
.pc-legend li { display: flex; align-items: center; gap: 9px; }
.pc-legend i { width: 12px; height: 12px; border-radius: 4px; display: block; flex: none; }
.pc-legend.v { flex-direction: column; align-items: stretch; gap: 16px; height: auto; margin: 0; font-size: 21px; color: var(--fg); flex: 1; }
.pc-legend.v b { margin-left: auto; font-family: var(--font-d); font-size: 26px; padding-left: 20px; }
.pc-legend.v i { width: 16px; height: 16px; }
.pc-donut-wrap { display: flex; align-items: center; gap: 36px; height: 100%; }
.pc-donut-wrap .pc-svg { flex: none; }
.pc-empty { display: grid; place-items: center; border: 2px dashed var(--rule); border-radius: 16px; color: var(--muted); font-size: 18px; }

/* demo (data → slide) */
.demo-row { flex: 1; display: grid; grid-template-columns: 500px 44px 1fr; gap: 22px; align-items: center; min-height: 0; }
.demo-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--acc-bg); color: var(--on-acc); display: grid; place-items: center; }
.slide[data-bg='accent'] .demo-arrow, .slide[data-bg='grad'] .demo-arrow { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.demo-row .ch-card { align-self: center; }

/* ── table ── */
.t-card { padding: 10px 14px; overflow: hidden; align-self: stretch; }
.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 24px; }
.t td { padding: 18px 24px; font-size: 22px; border-top: 1px solid var(--line); }
.t td:first-child { font-weight: 700; font-family: var(--font-d); letter-spacing: var(--d-ls); text-transform: var(--d-case); font-size: 22px; }
.t.dense th { padding: 12px 20px; } .t.dense td { padding: 11px 20px; font-size: 18px; } .t.dense td:first-child { font-size: 18px; }
.slide[data-theme='brutal'] .t td { border-top: 2px solid #111; }

/* ── split / cards / comparison ── */
.sp-grid { flex: 1; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); max-height: 400px; min-height: 0; align-self: stretch; }
.sp-grid.n1 { grid-template-columns: 1fr; } .sp-grid.n2 { grid-template-columns: repeat(2, 1fr); }
.sp-card { padding: 40px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.sp-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.sp-num { font-size: calc(72px * var(--d-scale)); line-height: 1; opacity: .16; margin-left: auto; }
.sp-title { font-size: calc(38px * var(--d-scale)); line-height: 1.08; text-wrap: balance; }
.sp-body { font-size: 21px; color: var(--muted); line-height: 1.5; }
.c-grid { flex: 1; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); max-height: 400px; min-height: 0; align-self: stretch; }
.c-grid.n1 { grid-template-columns: 1fr; } .c-grid.n2 { grid-template-columns: repeat(2, 1fr); } .c-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.c-card { padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; min-width: 0; }
.c-card .ic-tile { margin-bottom: 8px; }
.c-title { font-size: calc(30px * var(--d-scale)); line-height: 1.1; }
.c-body { font-size: 19px; color: var(--muted); line-height: 1.5; }
.cmp-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-height: 420px; min-height: 0; align-self: stretch; }
.cmp-card { padding: 38px 40px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; min-width: 0; }
.cmp-card.neg { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--rule); }
.slide[data-theme='brutal'] .cmp-card.neg { border-style: solid; background: #fff; box-shadow: none; }
.cmp-card.pos { border-color: var(--acc-base); box-shadow: var(--shadow), 0 0 0 1px var(--acc-base); }
.slide[data-theme='brutal'] .cmp-card.pos { background: #ffd93d; box-shadow: var(--shadow); border-color: #111; }
.slide[data-bg='accent'] .cmp-card.pos, .slide[data-bg='grad'] .cmp-card.pos { border-color: var(--on-acc); }
.cmp-title { font-size: calc(36px * var(--d-scale)); line-height: 1.05; }
.cmp-card.neg .cmp-title { color: var(--muted); }
.cmp-body { font-size: 19px; color: var(--muted); }
.cmp-card ul { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.cmp-card li { display: flex; align-items: center; gap: 14px; font-size: 22px; line-height: 1.25; }
.cmp-card li .ic { flex: none; padding: 5px; width: 30px; height: 30px; border-radius: 50%; }
.cmp-card.neg li { color: var(--muted); } .cmp-card.neg li .ic { background: rgba(226,72,61,.14); color: #e2483d; }
.cmp-card.pos li .ic { background: var(--acc-bg); color: var(--on-acc); }
.slide[data-bg='accent'] .cmp-card.pos li .ic, .slide[data-bg='grad'] .cmp-card.pos li .ic { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.slide[data-theme='brutal'] .cmp-card.pos li .ic { background: #111; color: #ffd93d; }

/* ── bullets ── */
.bl-wrap { flex: 1; display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center; min-height: 0; }
.bl-head { margin: 0; }
.bl-head .h2 { font-size: calc(46px * var(--d-scale)); }
.bl-head .h2[data-len='m'] { font-size: calc(42px * var(--d-scale)); } .bl-head .h2[data-len='l'], .bl-head .h2[data-len='xl'] { font-size: calc(36px * var(--d-scale)); }
.bl-list { display: flex; flex-direction: column; }
.bl-row { display: flex; gap: 26px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bl-row:first-child { border-top: 1px solid var(--line); }
.slide[data-theme='brutal'] .bl-row { border-color: #111; border-width: 3px; }
.bl-n { font-size: calc(38px * var(--d-scale)); color: var(--ink-acc, var(--acc)); font-variant-numeric: tabular-nums; min-width: 62px; line-height: 1; }
.bl-title { font-size: calc(28px * var(--d-scale)); line-height: 1.15; }
.slide[data-theme='contrast'] .bl-title { font-size: 24px; }
.bl-body { font-size: 18px; color: var(--muted); margin-top: 4px; }

/* ── process ── */
.pr-row { flex: 1; display: grid; gap: 28px; grid-template-columns: repeat(5, 1fr); align-content: center; align-self: stretch; }
.pr-row.n2 { grid-template-columns: repeat(2, 1fr); } .pr-row.n3 { grid-template-columns: repeat(3, 1fr); } .pr-row.n4 { grid-template-columns: repeat(4, 1fr); }
.pr-top { display: flex; align-items: center; margin-bottom: 26px; }
.pr-badge { width: 76px; height: 76px; border-radius: 50%; flex: none; background: var(--acc-bg); color: var(--on-acc); display: grid; place-items: center; font-size: 26px; }
.slide[data-theme='brutal'] .pr-badge { border: 3px solid #111; background: #ffd93d; box-shadow: 4px 4px 0 #111; color: #111; }
.slide[data-bg='accent'] .pr-badge, .slide[data-bg='grad'] .pr-badge { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.pr-line { flex: 1; height: 0; border-top: 2px dashed var(--rule); margin: 0 14px; }
.pr-title { font-size: calc(28px * var(--d-scale)); line-height: 1.1; margin-bottom: 10px; }
.pr-body { font-size: 18px; color: var(--muted); padding-right: 12px; }

/* ── timeline ── */
.tl { position: relative; flex: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 22px; align-content: center; align-self: stretch; }
.tl-item { display: flex; flex-direction: column; min-width: 0; }
.tl-date { order: 1; height: 38px; line-height: 38px; font-size: calc(30px * var(--d-scale)); color: var(--ink-acc, var(--acc)); }
.tl-dot { order: 2; width: 20px; height: 20px; margin: 18px 0 26px; border-radius: 50%; background: var(--slide-bg); border: 4px solid var(--acc-base); position: relative; z-index: 2; flex: none; }
.slide[data-bg='accent'] .tl-dot, .slide[data-bg='grad'] .tl-dot { border-color: var(--on-acc); }
.tl-item.done .tl-dot { background: var(--acc-base); }
.tl-item.now .tl-dot { background: var(--acc-base); box-shadow: 0 0 0 7px color-mix(in srgb, var(--acc-base) 25%, transparent); }
.tl-item.next .tl-dot { border-color: var(--rule); }
.tl-item.next .tl-date { color: var(--muted); }
.tl-card { order: 3; padding: 20px 20px 22px; flex: 1; overflow: hidden; }
.tl-item.next .tl-card { border-style: dashed; box-shadow: none; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; top: 65px; left: 0; right: -22px; height: 0; border-top: 2px solid var(--rule); }
.tl-item:last-child::before { right: 0; }
.tl-item.done::before { border-top-color: var(--acc-base); }
.tl-item.next::before { border-top-style: dashed; }
.slide[data-bg='accent'] .tl-item.done::before, .slide[data-bg='grad'] .tl-item.done::before { border-top-color: var(--on-acc); }
.tl-title { font-size: calc(23px * var(--d-scale)); line-height: 1.1; margin-bottom: 8px; }
.tl-body { font-size: 17px; color: var(--muted); line-height: 1.5; }

/* ── flow diagram ── */
.fl-stage { position: relative; margin: auto; flex: none; }
.fl-svg { position: absolute; inset: 0; overflow: visible; }
.fl-path { fill: none; stroke: var(--rule); stroke-width: 2.5; stroke-dasharray: 7 8; }
.slide[data-theme='brutal'] .fl-path { stroke-width: 4; }
.fl-node { position: absolute; display: flex; align-items: center; gap: 16px; padding: 0 22px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.fl-node.hub { background: var(--acc-bg); color: var(--on-acc); border-color: transparent; box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--acc-base) 70%, transparent); flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 0 20px; }
.slide[data-theme='brutal'] .fl-node.hub { border-color: #111; box-shadow: var(--shadow); }
.slide[data-bg='accent'] .fl-node.hub, .slide[data-bg='grad'] .fl-node.hub { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.fl-node.hub .ic-tile { background: rgba(255,255,255,.22); color: inherit; }
.slide[data-theme='brutal'] .fl-node.hub .ic-tile { background: #fffbea; border-color: #111; color: #111; }
.fl-node.hub .fl-body { color: inherit; opacity: .8; }
.fl-txt { min-width: 0; }
.fl-title { font-size: calc(22px * var(--d-scale)); line-height: 1.15; }
.fl-node.hub .fl-title { font-size: calc(28px * var(--d-scale)); }
.fl-body { font-size: 16px; color: var(--muted); margin-top: 3px; line-height: 1.3; }

/* ── bento ── */
.bento { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; min-height: 0; grid-auto-flow: dense; }
.b-tile { padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; overflow: hidden; min-width: 0; border-radius: calc(var(--radius) * .8); }
.b-w { grid-column: span 2; } .b-t { grid-row: span 2; } .b-l { grid-column: span 2; grid-row: span 2; padding: 28px 30px; }
.b-tile .ic-tile { margin-bottom: auto; }
.b-val { font-size: calc(46px * var(--d-scale)); line-height: 1; color: var(--fg); margin-top: auto; }
.b-tile:not(.b-fill) .b-val { color: var(--ink-acc, var(--acc)); }
.slide[data-bg='accent'] .b-tile:not(.b-fill) .b-val, .slide[data-bg='grad'] .b-tile:not(.b-fill) .b-val { color: var(--fg); }
.b-title { font-size: calc(19px * var(--d-scale)); line-height: 1.15; }
.b-body { font-size: 15px; color: var(--muted); line-height: 1.4; }
.b-w .b-title, .b-t .b-title { font-size: calc(26px * var(--d-scale)); } .b-w .b-body, .b-t .b-body { font-size: 17px; }
.b-w { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: center; justify-content: stretch; }
.b-w > * { grid-column: 2; } .b-w > .ic-tile { grid-column: 1; grid-row: 1 / span 3; align-self: center; margin: 0; }
.b-w .b-val { margin-top: 0; }
.b-l .b-title { font-size: calc(34px * var(--d-scale)); } .b-l .b-body { font-size: 19px; margin-top: 2px; } .b-l .b-val { font-size: calc(88px * var(--d-scale)); } .b-l .ic-tile { width: 52px; height: 52px; }
.b-w .b-val { font-size: calc(58px * var(--d-scale)); } .b-t .b-val { font-size: calc(76px * var(--d-scale)); }
.b-fill { --tile: rgba(255,255,255,.24); --tile-fg: #fff; --muted: rgba(255,255,255,.94); --fg: #fff; --acc: #fff; color: #fff; border-color: transparent; box-shadow: none; }
.b-fill[data-tone='coral'] { background: #ff6b57; --fg: #2a0a05; --muted: rgba(42,10,5,.88); --tile: rgba(255,255,255,.3); --tile-fg: #2a0a05; color: #2a0a05; --acc: #2a0a05; } .b-fill[data-tone='amber'] { background: #f5a524; --fg: #1a1206; --muted: rgba(26,18,6,.88); --tile: rgba(255,255,255,.3); --tile-fg: #1a1206; color: #1a1206; --acc: #1a1206; }
.b-fill[data-tone='teal'] { background: #12b5a5; --fg: #04211e; --muted: rgba(4,33,30,.88); --tile: rgba(255,255,255,.3); --tile-fg: #04211e; color: #04211e; --acc: #04211e; } .b-fill[data-tone='green'] { background: #22b55e; --fg: #04200f; --muted: rgba(4,32,15,.88); --tile: rgba(255,255,255,.3); --tile-fg: #04200f; color: #04200f; --acc: #04200f; } .b-fill[data-tone='blue'] { background: #1f66e5; }
.b-fill[data-tone='violet'] { background: #7d45e6; } .b-fill[data-tone='pink'] { background: #d6338a; }
.slide[data-theme='brutal'] .b-fill { border: 3px solid #111; box-shadow: 5px 5px 0 #111; }

/* ── anatomy ── */
.an-wrap { flex: 1; display: grid; grid-template-columns: 600px 1fr; gap: 52px; align-items: center; min-height: 0; }
.an-txt { min-width: 0; } .an-txt .s-head { margin-bottom: 20px; } .an-txt .h2 { font-size: calc(42px * var(--d-scale)); }
.an-txt .h2[data-len='m'] { font-size: calc(38px * var(--d-scale)); } .an-txt .h2[data-len='l'], .an-txt .h2[data-len='xl'] { font-size: calc(32px * var(--d-scale)); }
.an-list { display: flex; flex-direction: column; gap: 11px; } .an-txt .lead { font-size: 19px; line-height: 1.4; } .an-txt .s-head { margin-bottom: 16px; }
.an-item { display: flex; gap: 16px; align-items: flex-start; }
.an-n { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--acc-bg); color: var(--on-acc); display: grid; place-items: center; font-size: 16px; margin-top: 1px; letter-spacing: 0; }
.slide[data-bg='accent'] .an-n, .slide[data-bg='grad'] .an-n { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.slide[data-theme='brutal'] .an-n { border: 2px solid #111; background: #ffd93d; color: #111; }
.an-title { font-size: calc(21px * var(--d-scale)); line-height: 1.15; }
.an-body { font-size: 16px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.an-mock { position: relative; height: 410px; display: flex; flex-direction: column; overflow: hidden; border-radius: min(var(--radius), 20px); }
.mk-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.mk-logo { width: 16px; height: 16px; border-radius: 5px; background: var(--acc-bg); }
.mk-line { width: 70px; height: 7px; border-radius: 4px; background: var(--rule); opacity: .6; }
.mk-sp { flex: 1; }
.mk-chip { width: 34px; height: 14px; border-radius: 7px; background: var(--rule); opacity: .5; }
.mk-chip.acc { background: var(--acc-bg); opacity: 1; width: 44px; }
.mk-rib { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--tile); border-bottom: 1px solid var(--line); flex: none; }
.mk-rib span { width: 34px; height: 14px; border-radius: 5px; background: var(--rule); opacity: .5; } .mk-rib span.w2 { width: 70px; }
.mk-main { flex: 1; display: flex; min-height: 0; }
.mk-side { width: 17%; padding: 12px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.mk-side i { display: block; height: 42px; border-radius: 6px; background: var(--rule); opacity: .3; }
.mk-side i.on { opacity: 1; background: var(--tile); outline: 2px solid var(--acc-base); }
.mk-canvas { flex: 1; padding: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.mk-slide { width: 100%; aspect-ratio: 16 / 9; background: var(--slide-bg, var(--card)); border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: var(--shadow); }
.slide[data-bg='dark'] .mk-slide, .slide[data-theme='aurora'] .mk-slide, .slide[data-theme='contrast'] .mk-slide { background: var(--tint-bg, #222); }
.mk-slide b { display: block; height: 8px; border-radius: 4px; margin-bottom: 8px; background: var(--fg); opacity: .85; }
.mk-slide b.k { width: 22%; height: 4px; background: var(--acc-base); opacity: 1; } .mk-slide b.h.s { width: 55%; } .mk-slide b.h { width: 82%; height: 12px; } .mk-slide b.p { width: 64%; height: 5px; opacity: .3; }
.mk-insp { width: 24%; border-left: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.mk-insp em { display: block; height: 14px; width: 70%; border-radius: 4px; background: var(--acc-base); opacity: .5; }
.mk-insp b { display: block; height: 8px; border-radius: 4px; background: var(--rule); opacity: .4; }
.mk-insp i { display: block; height: 28px; border-radius: 6px; background: var(--rule); opacity: .22; }
.hs { position: absolute; width: 34px; height: 34px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--acc-bg); color: var(--on-acc); display: grid; place-items: center; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc-base) 30%, transparent); font-family: var(--font-b); }
.slide[data-bg='accent'] .hs, .slide[data-bg='grad'] .hs { background: var(--on-acc); color: var(--g1, var(--acc-base)); }
.slide[data-theme='brutal'] .hs { border: 3px solid #111; background: #ffd93d; color: #111; box-shadow: 3px 3px 0 #111; }

/* ── themes ── */
.th-grid { flex: 1; display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); max-height: 400px; min-height: 0; align-self: stretch; }
.th-grid.n1 { grid-template-columns: 1fr; } .th-grid.n2 { grid-template-columns: repeat(2, 1fr); } .th-grid.n3 { grid-template-columns: repeat(3, 1fr); } .th-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.th-card { position: relative; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--slide-bg); color: var(--fg); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-b); min-width: 0; }
.th-card[data-theme='studio'], .th-card[data-theme='editorial'] { border-color: var(--rule); border-width: 1px; }
.th-card[data-theme='brutal'] { border-width: 3px; }
.th-spec { font-size: 76px; line-height: .95; color: var(--ink-acc, var(--acc)); }
.th-pal { display: flex; gap: 6px; margin: 4px 0 8px; } .th-pal i { width: 20px; height: 20px; border-radius: 50%; display: block; border: 1px solid rgba(128,128,128,.35); }
.th-title { font-size: calc(21px * var(--d-scale)); line-height: 1.1; } .th-body { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ── code ── */
.cd-wrap { flex: 1; display: grid; grid-template-columns: 390px 1fr; gap: 48px; align-items: center; min-height: 0; }
.cd-side .s-head { margin: 0; } .cd-side .h2 { font-size: calc(44px * var(--d-scale)); }
.cd-side .h2[data-len='m'] { font-size: calc(40px * var(--d-scale)); } .cd-side .h2[data-len='l'], .cd-side .h2[data-len='xl'] { font-size: calc(34px * var(--d-scale)); }
.cd-win { background: #0f1020; color: #e6e6f5; border-radius: min(var(--radius), 18px); box-shadow: 0 30px 60px -28px rgba(10,10,40,.55); overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(255,255,255,.08); }
.slide[data-theme='brutal'] .cd-win { border: 3px solid #111; box-shadow: 8px 8px 0 #111; border-radius: 0; }
.cd-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.cd-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; } .cd-bar i:nth-child(2) { background: #febc2e; } .cd-bar i:nth-child(3) { background: #28c840; }
.cd-file { margin-left: 12px; font: 500 13px var(--f-mono); color: #9a9ab8; }
.cd-lang { margin-left: auto; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #6f7094; }
.cd-pre { margin: 0; padding: 22px 26px; font: 400 17px/1.65 var(--f-mono); white-space: pre; overflow: hidden; tab-size: 2; flex: 1; }
.cd-pre code { font: inherit; background: none; padding: 0; color: inherit; border-radius: 0; }
.cd-pre.sm { font-size: 15px; line-height: 1.6; padding: 20px 22px; } .demo-row .cd-pre { font-size: 14px; padding: 18px 20px; } .cd-pre.xs { font-size: 13.5px; line-height: 1.55; }
.tk-kw { color: #ff8ad8; } .tk-str { color: #7cf5d4; } .tk-num { color: #ffd166; } .tk-key { color: #8ab4ff; } .tk-fn { color: #c4a7ff; } .tk-cm { color: #6b6d8f; font-style: italic; } .tk-br { color: #8f90b0; }
.demo-row .cd-win { align-self: center; }

/* ── image ── */
.im-wrap { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 0; }
.im-fig { height: 100%; max-height: 520px; overflow: hidden; display: grid; place-items: center; padding: 0; }
.im-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-ph { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-size: 18px; }
.im-txt .s-head { margin: 0; }

/* ═══ presenter-only motion: entrances + chart draw-in ═══ */
@keyframes rvIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes barRight { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lineDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes segGrow { from { stroke-width: 0; opacity: 0; } to { opacity: 1; } }
@keyframes dashFlow { to { stroke-dashoffset: -30; } }
.anim .rv { animation: rvIn .7s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i, 0) * 85ms + 140ms); }
.anim .pc-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: barUp .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 420ms); }
.anim .pc-hbar { transform-origin: 0 50%; animation-name: barRight; }
.anim .pc-line { animation: lineDraw 1.3s cubic-bezier(.4, 0, .2, 1) both .5s; }
.anim .pc-area { animation: fadeIn 1s ease both .9s; }
.anim .pc-dot, .anim .pc-flag { transform-box: fill-box; transform-origin: center; animation: popIn .5s cubic-bezier(.3, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 900ms); }
.anim .pc-flag { animation-delay: 1.9s; }
.anim .pc-seg { animation: segGrow 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 400ms); }
.anim .fl-path { animation: dashFlow 1.6s linear infinite; }
.anim .deco i { animation: fadeIn 1.2s ease both; }
@media (prefers-reduced-motion: reduce) { .anim *, .anim *::before { animation: none !important; } }

/* very long headlines (>110 chars): graceful degradation rather than overflow */
.slide .display[data-len='xxl'] { font-size: calc(44px * var(--d-scale)); line-height: 1.1; }
.slide .display-m[data-len='xxl'] { font-size: calc(38px * var(--d-scale)); line-height: 1.1; }
.slide .h2[data-len='xxl'] { font-size: calc(28px * var(--d-scale)); line-height: 1.12; }
.slide .q-text[data-len='xxl'] { font-size: calc(30px * var(--d-scale)); }
.slide .sec-txt .display-m[data-len='xxl'] { font-size: calc(32px * var(--d-scale)); }

.slide[data-theme='brutal'][data-bg='dark'] .cmp-card { --fg: #111; --muted: #444; color: #111; }
.slide[data-bg='accent'] .fl-node.hub { color: var(--acc-base); }
.fl-node.hub .fl-body { opacity: .92; }
/* ═══ free-form objects (js/objects.js): text boxes, shapes, images and icons placed anywhere on the 1280x720 stage ═══ */
.slide > .objs.objs { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.slide > .s-bgimg.s-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; user-select: none; }
.slide > .blank-hint.blank-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted); pointer-events: none; z-index: 2; padding: 0 160px; }
.blank-hint b { font: var(--d-weight) 44px var(--font-d); letter-spacing: var(--d-ls); color: var(--fg); opacity: .55; }
.blank-hint span { font-size: 24px; max-width: 720px; }
.ob { position: absolute; pointer-events: auto; box-sizing: border-box; }
.ob-in { position: relative; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ob-t { white-space: pre-wrap; overflow-wrap: anywhere; outline: none; min-width: 1em; min-height: 1em; margin: 0; }
.ob-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.ob-txt { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10px 16px; min-width: 0; min-height: 0; }
.ob-txt .ob-t { max-width: 100%; }
.ob-image img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.ob-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 3px dashed var(--rule); color: var(--muted); font: 600 20px var(--font-b); background: var(--card); }
.ob-icon .ob-in > svg { width: 100%; height: 100%; }
.ob-shadow > .ob-in { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); }
.anim 
/* lines and connectors: the box can be 0 high, so the svg draws outside it and only the stroke takes the pointer */
.ob-line { pointer-events: none; } .ob-line .ob-in { height: 0; overflow: visible; display: block; } .ob-line .ob-linesvg { position: absolute; left: 0; top: 0; width: auto; height: auto; overflow: visible; }
.ob-line .ln-hit { pointer-events: none; } .editing .ob-line { pointer-events: none; cursor: move; } .editing .ob-line .ln-hit { pointer-events: stroke; }
.editing .ob-line:hover:not(.ob-editing) { outline: none; } .editing .ob-line:hover .ln-hit { stroke: rgba(91, 75, 255, .25) !important; }
/* bullet and numbered lists inside text boxes and shapes */
.bl { display: block; position: relative; padding-left: 1.05em; } .bl::before { content: attr(data-mk); position: absolute; left: 0; top: 0; } .bl-0::before { content: none; }
.ob-link { cursor: pointer; } .editing .ob-link { cursor: move; } .ob-locked { cursor: default; }
