:root {
  --red:#dc2626;
  --red-dark:#991b1b;
  --red-light:#f87171;
  --deep:#2e2640;
  --ink:#273247;
  --muted:#697386;
  --line:#dfe5ec;
  --paper:#f5f7fb;
  --green:#0d9488;
  --amber:#d97706;
  --blue:#2563eb;
  --violet:#7052b8;
}

* { box-sizing:border-box; }
html, body { width:100%; height:100%; }
body {
  margin:0;
  overflow:hidden;
  font-family:'Manrope',sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 8% 10%,rgba(220,38,38,.055),transparent 28%),
    radial-gradient(circle at 92% 88%,rgba(46,38,64,.065),transparent 30%),
    var(--paper);
}

.slide-container { width:100vw; height:100vh; position:relative; overflow:hidden; }
.slide {
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:38px 48px 86px;
  overflow:hidden;
}
.slide.active {
  display:flex;
  flex-direction:column;
  justify-content:center;
  animation:slide-in .34s ease-out;
}
@keyframes slide-in {
  from { opacity:0; transform:translateX(28px); }
  to { opacity:1; transform:none; }
}
.active .rise { animation:rise .44s both; animation-delay:var(--delay,0s); }
@keyframes rise {
  from { opacity:0; transform:translateY(14px); }
  to { opacity:1; transform:none; }
}

.sc { width:min(1240px,100%); margin:0 auto; }
.slide-head {
  margin-bottom:14px;
  padding:14px 22px 15px;
  border-radius:14px;
  color:#fff;
  box-shadow:0 8px 24px rgba(46,38,64,.11);
}
.slide-head.red { background:linear-gradient(135deg,var(--red-dark),var(--red) 58%,var(--red-light)); }
.slide-head.dark { background:linear-gradient(135deg,#201a30,var(--deep) 58%,#5a4b79); }
.slide-head.green { background:linear-gradient(135deg,#0f766e,var(--green) 60%,#5eead4); }
.slide-head.amber { background:linear-gradient(135deg,#9a3412,var(--amber) 60%,#fbbf24); }
.eyebrow {
  margin:0 0 3px;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.78;
}
.slide-title { margin:0; font-size:1.8rem; font-weight:800; line-height:1.14; }
.slide-subtitle { margin:4px 0 0; font-size:.9rem; opacity:.86; }

.g2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.g3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.g4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.card {
  min-width:0;
  padding:15px 17px;
  border:1px solid var(--line);
  border-top:4px solid var(--red);
  border-radius:12px;
  background:rgba(255,255,255,.97);
  box-shadow:0 4px 14px rgba(46,38,64,.055);
}
.card.amber { border-top-color:var(--amber); }
.card.green { border-top-color:var(--green); }
.card.blue { border-top-color:var(--blue); }
.card.violet { border-top-color:var(--violet); }
.card-label {
  display:block;
  margin-bottom:5px;
  color:var(--red);
  font:800 .68rem/1.2 'Courier New',monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.amber .card-label { color:var(--amber); }
.green .card-label { color:var(--green); }
.blue .card-label { color:var(--blue); }
.violet .card-label { color:var(--violet); }
.card h3 { margin:0 0 7px; color:var(--deep); font-size:.98rem; line-height:1.25; }
.card p, .card li { margin:0; color:#414b5f; font-size:.83rem; line-height:1.48; }
.card ul, .card ol { margin:5px 0 0; padding-left:1.1rem; }
.card li + li { margin-top:4px; }
.card strong { color:var(--deep); }
.callout {
  padding:13px 18px;
  border:1px solid #fecaca;
  border-left:5px solid var(--red);
  border-radius:12px;
  background:#fff7f7;
  color:#7f1d1d;
  font-size:.94rem;
  font-weight:700;
  line-height:1.5;
}
.callout.dark { border-color:#d8d2e6; border-left-color:var(--deep); background:#f8f6fb; color:var(--deep); }
.callout.green { border-color:#99f6e4; border-left-color:var(--green); background:#f0fdfa; color:#115e59; }
.micro { color:var(--muted); font-size:.72rem; line-height:1.42; }
.mono { font-family:'Courier New',monospace; }

/* Cover */
.cover {
  color:#fff;
  background:linear-gradient(132deg,#3d0909 0%,#991b1b 43%,#dc2626 73%,#f87171 100%);
  isolation:isolate;
}
.cover::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.042) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.042) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(90deg,#000,transparent 78%);
}
.cover-layout { display:grid; grid-template-columns:1.25fr .75fr; align-items:center; gap:34px; }
.cover-badge {
  display:inline-block;
  margin-bottom:18px;
  padding:6px 15px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:.78rem;
  font-weight:700;
}
.cover-title { margin:0 0 14px; font-size:3.15rem; font-weight:800; line-height:1.05; letter-spacing:-.035em; }
.cover-title span { display:block; color:#fecaca; }
.cover-subtitle { max-width:760px; margin:0; color:rgba(255,255,255,.85); font-size:1.02rem; line-height:1.55; }
.cover-meta { margin-top:16px; color:rgba(255,255,255,.66); font-size:.78rem; }
.cover-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.cover-tag { padding:7px 13px; border:1px solid rgba(255,255,255,.24); border-radius:9px; background:rgba(255,255,255,.1); font-size:.74rem; font-weight:700; }
.cover-constellation { position:relative; width:380px; height:380px; margin:auto; }
.cover-constellation svg { position:absolute; inset:0; width:100%; height:100%; }
.cover-constellation line { stroke:rgba(255,255,255,.34); stroke-width:2; stroke-dasharray:5 7; }
.cover-node {
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  width:112px;
  height:64px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:12px;
  background:rgba(73,13,13,.34);
  box-shadow:0 10px 28px rgba(45,8,8,.2);
  backdrop-filter:blur(7px);
  font-size:.7rem;
  font-weight:800;
  text-align:center;
}
.cover-node.center { left:134px; top:157px; background:#fff; color:var(--red-dark); font-size:.82rem; }
.cover-node.n1 { left:8px; top:33px; }
.cover-node.n2 { right:8px; top:33px; }
.cover-node.n3 { left:8px; bottom:33px; }
.cover-node.n4 { right:8px; bottom:33px; }

/* Continuity and agenda */
.continuity { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:18px 0; }
.continuity-step { position:relative; padding:18px 15px; border:1px solid var(--line); background:#fff; text-align:center; }
.continuity-step:first-child { border-radius:12px 0 0 12px; }
.continuity-step:last-child { border-radius:0 12px 12px 0; }
.continuity-step + .continuity-step { border-left:0; }
.continuity-step + .continuity-step::before { content:">"; position:absolute; left:-6px; top:50%; z-index:2; transform:translateY(-50%); color:var(--red); font-size:1.05rem; font-weight:800; }
.continuity-step small { display:block; color:var(--muted); font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.continuity-step strong { display:block; margin-top:6px; color:var(--deep); font-size:.88rem; }
.continuity-step.focus { background:#fff1f2; box-shadow:inset 0 -4px 0 var(--red); }
.time-grid { display:grid; grid-template-columns:1.1fr 1.45fr .85fr; gap:12px; }
.time-card { min-height:178px; display:flex; flex-direction:column; justify-content:space-between; }
.minutes { color:var(--deep); font-size:2.65rem; line-height:1; font-weight:800; letter-spacing:-.06em; }
.minutes span { color:var(--muted); font-size:.77rem; letter-spacing:0; }

/* Architecture */
.islands { display:grid; grid-template-columns:1fr 90px 1fr; align-items:center; gap:14px; }
.stars { display:grid; gap:10px; }
.star { display:grid; grid-template-columns:96px 1fr; gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.star-name { padding:9px; border-radius:8px; background:var(--deep); color:#fff; font-size:.7rem; font-weight:800; text-align:center; }
.star-dims { color:var(--muted); font-size:.7rem; line-height:1.5; }
.architecture-arrow { color:var(--red); font-size:2rem; font-weight:800; text-align:center; }
.bus-core { padding:20px; border-radius:14px; background:linear-gradient(145deg,var(--deep),#5b4c7a); color:#fff; }
.bus-core h3 { margin:0 0 12px; color:#fff; font-size:1.15rem; }
.bus-core-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid rgba(255,255,255,.16); border-radius:8px; background:rgba(255,255,255,.07); font-size:.72rem; }
.bus-core-row + .bus-core-row { margin-top:7px; }
.bus-core-row b { color:#fecaca; }

/* Conformed dimensions */
.contract { display:grid; grid-template-columns:.8fr 1.2fr; gap:14px; }
.contract-hero { display:flex; flex-direction:column; justify-content:center; padding:26px; border-radius:14px; background:linear-gradient(145deg,var(--deep),#584b74); color:#fff; }
.contract-hero small { color:#fecaca; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.contract-hero h3 { margin:10px 0 8px; color:#fff; font-size:1.48rem; line-height:1.16; }
.contract-hero p { margin:0; color:rgba(255,255,255,.76); font-size:.8rem; line-height:1.5; }
.contract-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
.contract-field { padding:11px 13px; border:1px solid var(--line); border-left:4px solid var(--red); border-radius:9px; background:#fff; }
.contract-field b { display:block; margin-bottom:3px; color:var(--deep); font-size:.76rem; }
.contract-field span { display:block; color:var(--muted); font-size:.69rem; line-height:1.4; }
.compare { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.compare-panel { border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.compare-panel h3 { margin:0; padding:11px 14px; color:#fff; background:var(--red); font-size:.88rem; }
.compare-panel.good h3 { background:var(--green); }
.compare-line { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:9px 12px; border-top:1px solid var(--line); font-size:.7rem; }
.compare-line b { color:var(--deep); text-align:center; }
.compare-line span:last-child { text-align:right; }
.compare-line .bad { color:var(--red-dark); }
.compare-line .ok { color:#047857; }

/* Bus Matrix */
.bus-matrix { display:grid; grid-template-columns:1.65fr repeat(5,1fr); overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 4px 14px rgba(46,38,64,.055); }
.bus-matrix > div { min-height:48px; display:flex; align-items:center; justify-content:center; padding:8px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); font-size:.7rem; text-align:center; }
.bus-matrix > div:nth-child(6n) { border-right:0; }
.bus-matrix > div:nth-last-child(-n+6) { border-bottom:0; }
.bus-matrix .matrix-head { min-height:55px; background:var(--deep); color:#fff; font-weight:800; }
.bus-matrix .process { justify-content:flex-start; color:var(--deep); font-weight:800; text-align:left; }
.matrix-mark { position:relative; background:#fff7f7; }
.matrix-mark::before { content:""; width:15px; height:15px; border-radius:4px; background:var(--red); box-shadow:0 0 0 4px rgba(220,38,38,.1); }
.matrix-empty { color:#c8ced8; }
.matrix-priority { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:#fee2e2; color:var(--red-dark); font-size:.65rem; font-weight:800; }
.matrix-reading { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.read-card { min-height:220px; position:relative; overflow:hidden; }
.read-card .axis { position:absolute; right:15px; top:13px; color:#e5e7eb; font-size:3rem; font-weight:800; line-height:1; }
.read-card h3 { position:relative; }

/* Fact types */
.fact-card { min-height:270px; display:flex; flex-direction:column; }
.grain { margin:1px 0 12px; color:var(--muted); font-size:.76rem; }
.row-stack { display:grid; gap:6px; margin-top:auto; }
.data-row { display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--line); border-radius:8px; background:#f8fafc; font-size:.67rem; }
.data-dot { width:9px; height:9px; border-radius:50%; background:var(--red); }
.data-row.zero { border-style:dashed; color:var(--muted); }
.data-row.zero .data-dot { background:transparent; border:2px solid var(--amber); }
.data-row.update .data-dot { background:var(--green); box-shadow:0 0 0 4px rgba(13,148,136,.12); }

/* Constellation */
.constellation { position:relative; height:390px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.86); overflow:hidden; }
.constellation svg { position:absolute; inset:0; width:100%; height:100%; }
.constellation line { stroke:#cbd2dc; stroke-width:2; }
.constellation line.shared { stroke:var(--red); stroke-width:3; }
.model-node { position:absolute; z-index:2; display:flex; align-items:center; justify-content:center; padding:8px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--deep); box-shadow:0 4px 12px rgba(46,38,64,.08); font-size:.67rem; font-weight:800; text-align:center; }
.model-node.fact { width:154px; height:58px; background:var(--deep); color:#fff; border-color:var(--deep); }
.model-node.dim { width:118px; height:48px; border-color:#fca5a5; background:#fff7f7; color:var(--red-dark); }
.model-node.local { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.model-node.f1 { left:9%; top:42px; }
.model-node.f2 { left:44%; top:42px; }
.model-node.f3 { right:8%; top:42px; }
.model-node.d1 { left:8%; bottom:42px; }
.model-node.d2 { left:31%; bottom:42px; }
.model-node.d3 { right:31%; bottom:42px; }
.model-node.d4 { right:8%; bottom:42px; }
.constellation-legend { position:absolute; left:14px; top:14px; z-index:3; display:flex; gap:8px; }
.legend-chip { padding:5px 8px; border-radius:7px; background:#fff; color:var(--muted); font-size:.62rem; box-shadow:0 2px 8px rgba(46,38,64,.08); }
.legend-chip b { color:var(--red); }

/* Drill across */
.drill { display:grid; grid-template-columns:1fr 120px 1fr; align-items:stretch; gap:12px; }
.drill-panel { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.drill-panel h3 { margin:0 0 10px; color:var(--deep); font-size:.93rem; }
.query-step { display:grid; grid-template-columns:26px 1fr; gap:8px; align-items:start; padding:8px 0; border-top:1px solid var(--line); }
.query-step:first-of-type { border-top:0; }
.query-step span { display:flex; align-items:center; justify-content:center; width:23px; height:23px; border-radius:50%; background:#fee2e2; color:var(--red-dark); font-size:.63rem; font-weight:800; }
.query-step p { margin:0; color:var(--muted); font-size:.7rem; line-height:1.43; }
.drill-center { display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted); font-size:.66rem; font-weight:800; text-align:center; text-transform:uppercase; letter-spacing:.08em; }
.drill-center strong { display:block; margin:6px 0; color:var(--green); font-size:2rem; line-height:1; }
.wrong-join { opacity:.78; }
.wrong-join .query-step span { background:#fee2e2; color:var(--red); }

/* Drill-across progressivo */
.drill-star-stage,
.drill-pair-stage {
  position:relative;
  height:300px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:
    radial-gradient(circle at 50% 50%,rgba(217,119,6,.08),transparent 28%),
    rgba(255,255,255,.9);
}
.drill-star-stage svg,
.drill-pair-stage svg { position:absolute; inset:0; width:100%; height:100%; }
.drill-star-stage line,
.drill-pair-stage line { stroke:#cbd2dc; stroke-width:2.5; }
.drill-pair-stage line.left-path { stroke:var(--red); }
.drill-pair-stage line.right-path { stroke:var(--green); }
.drill-model-node {
  position:absolute;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  box-shadow:0 6px 18px rgba(46,38,64,.1);
  text-align:center;
}
.drill-model-node small {
  margin-bottom:4px;
  color:var(--muted);
  font-size:.56rem;
  font-weight:800;
  letter-spacing:.08em;
}
.drill-model-node strong { color:var(--deep); font-size:.8rem; }
.drill-model-node span { margin-top:4px; color:var(--muted); font-size:.61rem; }
.drill-model-node em { margin-top:5px; color:#fde68a; font-size:.6rem; font-style:normal; font-weight:800; }
.drill-fact {
  width:260px;
  min-height:92px;
  padding:12px;
  border-color:var(--deep);
  background:linear-gradient(145deg,var(--deep),#584b74);
}
.drill-fact small { color:#fca5a5; }
.drill-fact strong { color:#fff; font-size:.86rem; }
.drill-fact span { color:rgba(255,255,255,.72); }
.drill-dim {
  width:190px;
  min-height:66px;
  padding:9px;
  border-color:#fca5a5;
  background:#fff7f7;
}
.drill-dim strong { color:var(--red-dark); }
.single-fact { left:50%; top:50%; transform:translate(-50%,-50%); }
.dim-date { left:4%; top:12%; }
.dim-company { left:4%; bottom:12%; }
.dim-survey { right:4%; top:12%; }
.dim-segment { right:4%; bottom:12%; }
.pair-left { left:16%; top:15%; }
.pair-right { right:16%; top:15%; background:linear-gradient(145deg,#0f5f5a,var(--green)); border-color:#0f766e; }
.pair-right small { color:#99f6e4; }
.shared-date { left:31%; bottom:8%; transform:translateX(-50%); }
.shared-segment { left:69%; bottom:8%; transform:translateX(-50%); }
.drill-no-join {
  position:absolute;
  left:50%;
  top:23%;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  transform:translateX(-50%);
  color:var(--red-dark);
  font-size:.63rem;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
}
.drill-no-join b {
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-bottom:4px;
  border:2px solid #fca5a5;
  border-radius:50%;
  background:#fff;
  color:var(--red);
  font-size:1.45rem;
  line-height:1;
}
.drill-no-join small { margin-top:2px; color:var(--muted); font-size:.52rem; }
.drill-aggregate-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.aggregate-card {
  min-height:270px;
  padding:16px;
  border:1px solid #fecaca;
  border-top:4px solid var(--red);
  border-radius:13px;
  background:#fff;
  box-shadow:0 5px 16px rgba(46,38,64,.06);
}
.aggregate-card.publication { border-color:#99f6e4; border-top-color:var(--green); }
.aggregate-step {
  color:var(--red);
  font:800 .62rem/1.2 'Courier New',monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.publication .aggregate-step,
.drill-result-panel .aggregate-step { color:var(--green); }
.aggregate-card h3,
.drill-result-panel h3,
.fanout-panel h3 { margin:5px 0; color:var(--deep); font-size:.91rem; }
.aggregate-grain { margin:0 0 8px; color:var(--muted); font-size:.65rem; }
.aggregate-code {
  margin-bottom:9px;
  padding:7px 9px;
  border-radius:7px;
  background:#f1f5f9;
  color:var(--deep);
  font:700 .64rem 'Courier New',monospace;
}
.mini-result,
.final-result {
  display:grid;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.mini-result { grid-template-columns:1.15fr .9fr .9fr; }
.final-result { grid-template-columns:1.1fr .85fr .85fr .85fr; }
.mini-result > *,
.final-result > * {
  min-width:0;
  padding:7px 8px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:#414b5f;
  font-size:.62rem;
}
.mini-result > *:nth-child(3n),
.final-result > *:nth-child(4n) { border-right:0; }
.mini-result > *:nth-last-child(-n+3),
.final-result > *:nth-last-child(-n+4) { border-bottom:0; }
.mini-result b,
.final-result b { background:var(--deep); color:#fff; }
.mini-result strong,
.final-result strong { color:#047857; }
.common-level {
  display:grid;
  grid-template-columns:auto auto 1fr;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding:12px 16px;
  border:1px solid #99f6e4;
  border-radius:11px;
  background:#f0fdfa;
}
.common-level span { color:#0f766e; font-size:.65rem; font-weight:800; text-transform:uppercase; }
.common-level strong { color:var(--deep); font-size:.9rem; }
.common-level small { color:var(--muted); font-size:.64rem; text-align:right; }
.drill-result-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:14px; }
.drill-result-panel,
.fanout-panel {
  min-height:280px;
  padding:18px;
  border:1px solid var(--line);
  border-top:4px solid var(--green);
  border-radius:13px;
  background:#fff;
  box-shadow:0 5px 16px rgba(46,38,64,.06);
}
.drill-result-panel p,
.fanout-panel p { margin:13px 0 0; color:var(--muted); font-size:.69rem; line-height:1.45; }
.fanout-panel { border-top-color:var(--red); background:#fffafa; }
.fanout-panel .aggregate-step { color:var(--red); }
.fanout-equation {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  margin-top:18px;
  text-align:center;
}
.fanout-equation span {
  padding:12px 7px;
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff;
  color:var(--red-dark);
  font-size:.67rem;
  font-weight:800;
}
.fanout-equation b { color:var(--red); font-size:1.25rem; }
.fanout-equation strong {
  grid-column:1 / -1;
  padding:9px;
  border-radius:8px;
  background:#fee2e2;
  color:var(--red-dark);
  font-size:1rem;
}

/* Governance and roadmap */
.semantic-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.semantic-item { min-height:142px; padding:13px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.semantic-num { display:flex; align-items:center; justify-content:center; width:27px; height:27px; margin-bottom:9px; border-radius:50%; background:#fee2e2; color:var(--red-dark); font-size:.65rem; font-weight:800; }
.semantic-item h3 { margin:0 0 5px; color:var(--deep); font-size:.79rem; }
.semantic-item p { margin:0; color:var(--muted); font-size:.68rem; line-height:1.43; }
.roadmap { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:18px 0; }
.release { position:relative; min-height:164px; padding:15px; border:1px solid var(--line); background:#fff; }
.release:first-child { border-radius:12px 0 0 12px; }
.release:last-child { border-radius:0 12px 12px 0; }
.release + .release { border-left:0; }
.release + .release::before { content:">"; position:absolute; left:-6px; top:48%; z-index:2; color:var(--red); font-weight:800; }
.release-id { color:var(--red); font:800 .66rem 'Courier New',monospace; text-transform:uppercase; }
.release h3 { margin:7px 0 8px; color:var(--deep); font-size:.87rem; }
.release p { margin:0; color:var(--muted); font-size:.69rem; line-height:1.44; }
.release .contract-chip { display:inline-block; margin-top:10px; padding:5px 7px; border-radius:6px; background:#f1f5f9; color:var(--deep); font-size:.61rem; font-weight:800; }

/* Activity */
.sdd-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.sdd-card { min-height:196px; }
.lab-brief { display:grid; grid-template-columns:.85fr 1.15fr; gap:14px; }
.lab-hero { display:flex; flex-direction:column; justify-content:center; min-height:280px; padding:28px; border-radius:14px; background:linear-gradient(145deg,var(--deep),#5a4b78); color:#fff; box-shadow:0 14px 30px rgba(46,38,64,.17); }
.lab-hero small { color:#fecaca; font-size:.69rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.lab-hero h3 { margin:10px 0 9px; color:#fff; font-size:1.5rem; line-height:1.15; }
.lab-hero p { margin:0; color:rgba(255,255,255,.76); font-size:.79rem; line-height:1.5; }
.lab-list { display:grid; gap:8px; }
.lab-item { display:grid; grid-template-columns:28px 1fr; align-items:center; gap:9px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.lab-item span { display:flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#fee2e2; color:var(--red-dark); font-size:.62rem; font-weight:800; }
.lab-item p { margin:0; color:#414b5f; font-size:.73rem; line-height:1.4; }
.example-layout { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.example-process { display:grid; grid-template-columns:92px 1fr; gap:9px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.example-type { padding:8px; border-radius:7px; background:var(--deep); color:#fff; font-size:.64rem; font-weight:800; text-align:center; }
.example-process h3 { margin:0 0 3px; color:var(--deep); font-size:.8rem; }
.example-process p { margin:0; color:var(--muted); font-size:.67rem; line-height:1.4; }
.step-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.step-card { min-height:165px; }
.step-card .big { display:block; margin-bottom:16px; color:#e4e7ec; font-size:2.8rem; line-height:.8; font-weight:800; letter-spacing:-.08em; }
.deliverable { display:grid; grid-template-columns:.8fr 1.2fr; gap:14px; }
.artifact { display:flex; flex-direction:column; justify-content:center; min-height:300px; padding:28px; border-radius:14px; background:linear-gradient(145deg,var(--deep),#584b74); color:#fff; box-shadow:0 14px 30px rgba(46,38,64,.18); }
.artifact small { color:#fecaca; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.artifact h3 { margin:10px 0 8px; color:#fff; font-size:1.52rem; line-height:1.15; }
.artifact p { margin:0; color:rgba(255,255,255,.76); font-size:.79rem; line-height:1.5; }
.acceptance { display:grid; gap:7px; }
.accept { display:grid; grid-template-columns:27px 1fr; align-items:center; gap:9px; padding:9px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.accept span { display:flex; align-items:center; justify-content:center; width:23px; height:23px; border-radius:50%; background:#ccfbf1; color:#0f766e; font-size:.62rem; font-weight:800; }
.accept p { margin:0; color:#414b5f; font-size:.7rem; line-height:1.4; }
.project-challenge { display:grid; grid-template-columns:.9fr 1.1fr; gap:12px; }
.challenge-question {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:238px;
  padding:22px;
  border-radius:13px;
  background:linear-gradient(145deg,var(--deep),#584b74);
  color:#fff;
  box-shadow:0 10px 24px rgba(46,38,64,.14);
}
.challenge-question small { color:#fcd34d; font-size:.63rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.challenge-question h3 { margin:7px 0; color:#fff; font-size:1.15rem; }
.challenge-question p { margin:0; color:rgba(255,255,255,.76); font-size:.72rem; line-height:1.48; }
.challenge-example { margin-top:12px; padding:10px 12px; border:1px solid rgba(255,255,255,.17); border-radius:9px; background:rgba(255,255,255,.08); color:#fff; font-size:.68rem; line-height:1.45; }
.challenge-example strong { color:#fef3c7; }
.challenge-steps { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.challenge-step { display:grid; grid-template-columns:30px 1fr; gap:9px; align-items:start; min-height:112px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.challenge-step > span { display:flex; align-items:center; justify-content:center; width:27px; height:27px; border-radius:50%; background:#fef3c7; color:#92400e; font-size:.62rem; font-weight:800; }
.challenge-step h3 { margin:2px 0 4px; color:var(--deep); font-size:.76rem; }
.challenge-step p { margin:0; color:var(--muted); font-size:.65rem; line-height:1.4; }
.pitch-strip { display:grid; grid-template-columns:1.25fr repeat(4,1fr); align-items:center; gap:0; margin-top:10px; overflow:hidden; border:1px solid #fde68a; border-radius:10px; background:#fffbeb; }
.pitch-strip > * { min-height:42px; display:flex; align-items:center; justify-content:center; padding:8px; border-right:1px solid #fde68a; color:#92400e; font-size:.63rem; text-align:center; }
.pitch-strip > *:last-child { border-right:0; }
.pitch-strip strong { background:#fef3c7; font-size:.68rem; }
.final-line { max-width:1030px; color:var(--deep); font-size:2.15rem; line-height:1.25; font-weight:800; letter-spacing:-.035em; }
.final-line em { color:var(--red); font-style:normal; }
.refs { display:flex; flex-wrap:wrap; gap:7px; margin-top:24px; }
.ref { padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); font-size:.67rem; }

/* Footer */
.slide-footer { position:fixed; right:0; bottom:0; left:0; z-index:100; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 24px; border-top:1px solid var(--line); background:rgba(255,255,255,.97); box-shadow:0 -2px 10px rgba(46,38,64,.06); }
.footer-links { display:flex; gap:8px; }
.back-home { display:inline-flex; align-items:center; padding:8px 13px; border-radius:9px; background:#f1f4f8; color:var(--deep); text-decoration:none; font-size:.82rem; font-weight:700; }
.back-home.material { background:#2f8f78; color:#fff; }
.nav-wrapper { display:flex; align-items:center; gap:10px; padding:6px 13px; border-radius:999px; background:#f1f4f8; }
.nav-btn { min-width:94px; padding:7px 11px; border:0; border-radius:8px; background:var(--deep); color:#fff; font:700 .78rem 'Manrope',sans-serif; cursor:pointer; }
.nav-btn:disabled { opacity:.32; cursor:default; }
.slide-counter { min-width:52px; color:var(--deep); font-size:.78rem; font-weight:800; text-align:center; }
.fullscreen-btn { width:36px; height:36px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--deep); font-size:1rem; cursor:pointer; }

@media (min-width:1800px) {
  .slide { padding:54px 72px 108px; }
  .sc { width:min(1580px,100%); }
  .slide-title { font-size:2.4rem; }
  .slide-subtitle { font-size:1.12rem; }
  .card { padding:20px 23px; }
  .card h3 { font-size:1.22rem; }
  .card p, .card li { font-size:1rem; }
  .cover-title { font-size:4.25rem; }
  .cover-subtitle { font-size:1.32rem; }
  .cover-constellation { width:470px; height:470px; }
  .cover-node.center { left:179px; top:202px; }
  .constellation { height:500px; }
}

@media (max-width:920px) {
  .slide { padding:26px 24px 80px; overflow:auto; }
  .cover-layout { grid-template-columns:1fr; }
  .cover-constellation { position:absolute; right:-105px; bottom:-105px; opacity:.2; }
  .g4, .sdd-grid, .step-grid { grid-template-columns:repeat(2,1fr); }
  .fact-card { min-height:230px; }
  .semantic-grid { grid-template-columns:repeat(3,1fr); }
  .constellation { transform:scale(.9); transform-origin:center; }
}

@media (max-width:680px) {
  .slide.active { justify-content:flex-start; }
  .slide { padding:20px 16px 76px; }
  .g2, .g3, .g4, .time-grid, .islands, .contract, .compare, .matrix-reading, .drill, .drill-aggregate-grid, .drill-result-grid, .semantic-grid, .sdd-grid, .lab-brief, .example-layout, .step-grid, .deliverable, .project-challenge { grid-template-columns:1fr; }
  .slide-head { padding:12px 15px; }
  .slide-title { font-size:1.34rem; }
  .cover-title { font-size:2.65rem; }
  .continuity, .roadmap { grid-template-columns:1fr; gap:7px; }
  .continuity-step, .continuity-step:first-child, .continuity-step:last-child, .release, .release:first-child, .release:last-child { border:1px solid var(--line); border-radius:9px; }
  .continuity-step + .continuity-step::before, .release + .release::before { display:none; }
  .bus-matrix { grid-template-columns:1.45fr repeat(5,.85fr); overflow-x:auto; }
  .bus-matrix > div { min-width:62px; padding:6px 3px; font-size:.58rem; }
  .bus-matrix .process { min-width:112px; }
  .constellation { width:760px; transform:none; }
  .sc:has(.constellation) { overflow-x:auto; }
  .drill-star-stage, .drill-pair-stage { width:760px; }
  .sc:has(.drill-star-stage), .sc:has(.drill-pair-stage) { overflow-x:auto; }
  .common-level { grid-template-columns:1fr; }
  .common-level small { text-align:left; }
  .pitch-strip { grid-template-columns:1fr; }
  .pitch-strip > * { border-right:0; border-bottom:1px solid #fde68a; }
  .pitch-strip > *:last-child { border-bottom:0; }
  .footer-links .back-home:first-child { display:none; }
  .nav-btn { min-width:40px; width:40px; padding:7px 0; font-size:0; }
  #prev-btn::after { content:"<"; font-size:.9rem; }
  #next-btn::after { content:">"; font-size:.9rem; }
  .slide-footer { padding:8px 10px; }
  .fullscreen-btn { display:none; }
}

/* Slide "Varejo: três processos": a coluna direita esticava com o grid (align-items
   padrão) e empilhava card + dois callouts em fluxo normal, ultrapassando a área útil.
   Como `.slide` tem overflow:hidden, o último callout desaparecia atrás do footer em
   1280x720 sem gerar erro. Ancorar as colunas ao topo e empilhar em flex resolve. */
.example-layout { align-items:start; }
.example-layout > div:last-child { display:flex; flex-direction:column; gap:10px; min-height:0; }
.example-layout > div:last-child > .card { flex:0 0 auto; }
.example-layout > div:last-child > .callout { margin-top:0 !important; }
