:root {
  --f-display: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-text: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --ink: #16211d;
  --ink-2: #28352f;
  --ink-soft: #627068;
  --canvas: #f7faf7;
  --rule: rgba(22, 33, 29, 0.12);
  --emerald-50: #eaf7ef;
  --emerald-500: #5be3a6;
  --emerald-700: #1e8449;
  --emerald-800: #166339;
  --danger-edge: #b8322a;
  --danger: #c0392b;
  --warn: #b7791f;
  --warn-bg: #fff6e0;
  --chart-track: rgba(22, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #0b1216;
}

body {
  font-family: var(--f-text);
  color: var(--ink);
}

deck-stage {
  display: block;
}

section {
  position: relative;
  min-height: 100vh;
  padding: 70px 96px 64px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
  background: #f5f8f5;
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
.title {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: 92px;
  line-height: 0.96;
  max-width: 1420px;
}

.title {
  font-size: 56px;
  line-height: 1.06;
  max-width: 1580px;
}

.lead,
.subtitle {
  font-size: 25px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 1500px;
}

.subtitle {
  margin-top: 16px;
}

.cover,
.divider {
  color: #fff;
  background: radial-gradient(110% 80% at 80% 0%, #196f3d 0%, #0b3d2a 58%, #061f16 100%);
}

.cover .subtitle,
.divider .subtitle,
.cover .lead,
.divider .lead {
  color: rgba(255, 255, 255, 0.74);
}

.warning {
  background: #fff7f4;
}

.cover-grid,
.corner-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.cover-code {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.11;
  color: #5be3a6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.4;
}

.cover-network {
  position: absolute;
  right: 4vw;
  top: 7vh;
  width: 34vw;
  max-width: 640px;
  opacity: 0.42;
}


.meta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1500px;
}

.meta > div,
.card,
.warn-card,
.step,
.tool,
.item,
.stat,
.layer {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 27, 22, 0.08);
}

.cover .meta > div,
.divider .meta > div {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.meta > div {
  padding: 18px 20px;
}

.k,
.kicker,
.eyebrow,
.module-label,
.n,
.tag,
.badge,
.warn-badge {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.k,
.kicker,
.eyebrow,
.n {
  color: var(--emerald-700);
  font-size: 13px;
}

.cover .k,
.cover .kicker,
.cover .eyebrow,
.divider .k,
.divider .kicker,
.divider .eyebrow,
.module-label {
  color: var(--emerald-500);
}

.v {
  margin-top: 6px;
  font-weight: 700;
  font-size: 18px;
}

.row {
  display: flex;
  min-width: 0;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.warn-card,
.tool,
.item,
.stat,
.layer {
  padding: 22px;
}

.card h3,
.card h4,
.ttl,
.name {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
}

.card p,
.desc,
.label,
.sub {
  color: var(--ink-soft);
  line-height: 1.42;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.pipeline.dark .step,
.divider .step {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.pipeline.dark .desc,
.divider .desc {
  color: rgba(255, 255, 255, 0.7);
}

.tag,
.badge,
.warn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  font-size: 12px;
}

.tag.danger,
.stat.danger {
  background: #fdecea;
  color: #a93226;
}

.tag.dark,
.stat.dark {
  background: #17201d;
  color: #5be3a6;
}

.tag.ghost {
  background: #eef1ef;
  color: var(--ink-soft);
}

.warn-badge {
  background: #fdecea;
  color: var(--danger-edge);
}

.code-num,
.num {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--danger-edge);
}

.code-num {
  font-size: 48px;
}

.num {
  font-size: 150px;
  line-height: 0.86;
  color: rgba(255, 255, 255, 0.22);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
}

.foot {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(22, 33, 29, 0.48);
  font-size: 13px;
}

.foot-on-dark,
.cover .foot,
.divider .foot {
  color: rgba(255, 255, 255, 0.56);
}

.right {
  margin-left: auto;
}

.codeblock,
pre {
  font-family: var(--f-mono);
  background: #101820;
  color: #dff8e9;
  border-radius: 8px;
  padding: 18px;
  overflow: auto;
  /* Terminal transcripts are authored as div.codeblock with real newlines;
     without this they collapse to one run-on line. pre-wrap keeps the line
     breaks and still wraps long commands instead of overflowing a slide. */
  white-space: pre-wrap;
}

.yes,
.ok {
  color: #1e8449;
  font-weight: 800;
}

.no,
.danger {
  color: var(--danger-edge);
  font-weight: 800;
}

/* Presentation shell: every slide is part of the main route. */
html {
  scroll-snap-type: y mandatory;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: -80px;
  z-index: 5000;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  top: 10px;
}

#deck-controls {
  position: fixed;
  z-index: 4000;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 310px);
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 23, 17, 0.9);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

#deck-controls button,
#deck-controls select,
#deck-controls a {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 7px 10px;
  font: 700 13px/1 var(--f-display);
  text-decoration: none;
}

#deck-controls button:hover,
#deck-controls button:focus-visible,
#deck-controls select:focus-visible,
#deck-controls a:focus-visible {
  border-color: var(--emerald-500);
  outline: 2px solid rgba(91, 227, 166, 0.4);
}

#slide-picker {
  width: min(34vw, 430px);
}

#slide-picker option {
  color: #111;
}

#slide-progress {
  min-width: 64px;
  text-align: center;
  font: 700 13px/1 var(--f-mono);
}

/* Projector floor. */
@media (min-width: 761px) {
  deck-stage > section :is(p, li, td, th, .label, .desc, .sub) {
    font-size: max(18px, 1vw) !important;
  }
}

.tactic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tactic {
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font: 800 17px/1.15 var(--f-display);
}

.tactic span {
  display: block;
  margin-bottom: 7px;
  color: var(--emerald-700);
  font: 700 12px/1 var(--f-mono);
}

.tactic.accent {
  border-color: rgba(30, 132, 73, 0.45);
  background: var(--emerald-50);
}

.tactic.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.ddos-path,
.scope-diagram,
.demo-flow,
.finding-strip {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.ddos-path {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.path-node,
.scope-box,
.scope-wall,
.demo-step,
.finding-strip > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}

.path-node b,
.scope-box b,
.scope-wall b,
.demo-step b,
.finding-strip b {
  font: 800 21px/1.1 var(--f-display);
}

.path-node span,
.path-node small,
.scope-box span,
.scope-wall span,
.demo-step small,
.finding-strip span {
  color: var(--ink-soft);
  line-height: 1.35;
}

.path-node.hot,
.scope-box.target {
  border-color: rgba(184, 50, 42, 0.42);
  background: #fff4f2;
}

.path-arrow,
.scope-link {
  align-self: center;
  color: var(--emerald-700);
  font: 800 22px/1 var(--f-display);
  text-align: center;
}

.scope-diagram {
  grid-template-columns: 1fr .75fr 1fr 1.25fr;
}

.scope-wall {
  border: 2px solid var(--danger-edge);
  background: #fff4f2;
}

.scope-wall b {
  color: var(--danger-edge);
}

.callout {
  padding: 18px 22px;
  border-left: 5px solid var(--emerald-700);
  border-radius: 8px;
  background: var(--emerald-50);
  font-size: 19px;
  line-height: 1.4;
}

.lab-code {
  font-size: 17px;
  line-height: 1.45;
}

.demo-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-step > span {
  color: var(--emerald-700);
  font: 800 32px/1 var(--f-display);
}

.demo-step.stop {
  border-color: var(--danger-edge);
  background: #fff4f2;
}

.demo-step.stop > span,
.demo-step.stop b {
  color: var(--danger-edge);
}

.finding-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* OSI layer ladder (module 05 · DDoS) */
.osi {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer {
  display: grid;
  grid-template-columns: 60px 1fr 1.5fr;
  align-items: center;
  gap: 18px;
}

.layer .n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--emerald-700);
}

.layer .ttl {
  font-size: 17px;
}

.layer .sub {
  font-size: 13px;
}

.layer .ex {
  font-size: 15px;
  color: var(--ink-2);
}

.layer.hi {
  background: var(--emerald-50);
  border-color: rgba(30, 132, 73, 0.35);
}

.layer.hi .n {
  color: var(--emerald-800);
}

.layer.danger {
  background: #fff4f2;
  border-color: rgba(192, 57, 43, 0.35);
}

.layer.danger .n {
  color: var(--danger);
}

.layer.danger .ex {
  color: var(--danger);
  font-weight: 700;
}

/* Icon badge used by plain .ico wrappers that carry no inline background */
.ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}

/* Horizontal bar chart — for statistics that are proportions, not parts of one whole */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr 88px;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.bar-label small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.bar-track {
  height: 24px;
  border-radius: 6px;
  background: var(--chart-track);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: 6px;
  background: var(--emerald-700);
}

.bar-fill.danger {
  background: var(--danger);
}

.bar-fill.warn {
  background: var(--warn);
}

.bar-value {
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: 17px;
  text-align: right;
  color: var(--ink);
}

.chart-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Magnitude comparison — two values too far apart to share a linear bar */
.scale-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.scale-box {
  padding: 20px 22px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #fff;
  text-align: center;
}

.scale-box .v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  margin: 0;
}

.scale-box .l {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scale-box.hot {
  background: #fff4f2;
  border-color: rgba(192, 57, 43, 0.35);
}

.scale-box.hot .v {
  color: var(--danger);
}

.scale-times {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  color: var(--ink-soft);
}

.scale-times .x {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}

/* CVSS x EPSS priority scatter */
.scatter-wrap {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.scatter-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  padding: 4px 0;
}

.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.scatter-legend .dot {
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

/* Three-phase progress track (roadmap slides) */
.stage-track {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.stage-seg {
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--canvas);
  border-right: 1px solid var(--rule);
  text-align: center;
}

.stage-seg:last-child {
  border-right: 0;
}

.stage-seg.accent {
  background: var(--emerald-50);
  color: var(--emerald-800);
}

.stage-seg.dark {
  background: var(--ink);
  color: #fff;
}

/* Connected horizontal timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-top: 34px;
}

.timeline-track {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
}

.timeline-item {
  position: relative;
  padding: 20px 16px 0;
  border-right: 1px solid var(--rule);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-700);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--emerald-700);
}

.timeline-item.hot::before {
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--danger);
}

.timeline-year {
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--emerald-700);
}

.timeline-item.hot .timeline-year {
  color: var(--danger);
}

/* Certification tier ladder */
.tier-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.tier-step {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px 8px 0 0;
  background: var(--emerald-50);
  border: 1px solid rgba(30, 132, 73, 0.25);
  border-bottom: 4px solid var(--emerald-700);
}

.tier-step .kicker {
  color: var(--emerald-800);
}

.tier-step.senior {
  background: var(--ink);
  border-color: var(--ink);
  border-bottom-color: var(--emerald-500);
}

.tier-step.senior .kicker,
.tier-step.senior h4 {
  color: #fff;
}

.tier-step.senior p {
  color: rgba(255, 255, 255, 0.72);
}

/* Components below were used in the deck markup but had no rules at all, so
   they rendered as unstyled browser defaults: comparison tables, code syntax
   spans, tool-card headers, question lists, divider ornaments, screenshot
   placeholders and the RU-product marker. Same defect class as the earlier
   missing .osi and var(--danger). */

/* Comparison tables (slides "VA vs Pentest" and "OSS vs commercial") */
.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.compare th {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald-800);
  background: var(--emerald-50);
  border-bottom-color: rgba(30, 132, 73, 0.3);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

/* Terminal syntax colours. These must be scoped to the code block: .ttl and
   .ok are also global card styles (dark ink / dark green), which on the
   near-black code background render invisible or below AA contrast. */
.codeblock .ttl,
pre .ttl {
  color: #7fd4ab;
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
}

.codeblock .cm,
pre .cm {
  color: #8aa89a;
}

.codeblock .kw,
pre .kw {
  color: #5be3a6;
  font-weight: 700;
}

.codeblock .op,
pre .op {
  color: #e9c15b;
}

.codeblock .pr,
pre .pr {
  color: #f0a868;
}

.codeblock .ok,
pre .ok {
  color: #5be3a6;
}

.codeblock .no,
pre .no {
  color: #ff9b8a;
}

/* Tool cards: logo chip + product name */
.tool .top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  font: 800 14px/1 var(--f-display);
}

.tool .name {
  font-size: 18px;
}

/* RU-product marker used on tool and card tiles */
.tool.ru,
.card.ru {
  border-color: rgba(30, 132, 73, 0.4);
  background: linear-gradient(180deg, #fff 0%, #f1f8f3 100%);
}

.tool.ru .logo {
  background: var(--emerald-700);
  color: #fff;
}

/* Control-question lists */
.qlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qlist .item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
}

.qlist .n {
  font-size: 15px;
}

.q {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Divider-slide ornaments */
.stripes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(91, 227, 166, 0.05) 22px 24px);
}

.timing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font: 700 14px/1 var(--f-display);
}

/* Boxes standing in for screenshots that are described, not shipped */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  #deck-controls {
    top: auto;
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }

  #toggle-fullscreen {
    display: none;
  }

  .tactic-grid,
  .grid-4,
  .finding-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ddos-path,
  .scope-diagram,
  .demo-flow {
    grid-template-columns: 1fr 1fr;
  }

  .path-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  section {
    min-height: 100svh;
    padding: 74px 20px 92px;
    gap: 20px;
    overflow: visible;
  }

  deck-stage > section :is(h1, h2, h3, h4, .title, p, li, td, th, .label, .desc, .sub, .eyebrow, .kicker) {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .cover h1 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 54px);
    overflow-wrap: anywhere;
  }

  .title,
  .lab-slide .title {
    font-size: clamp(34px, 10vw, 50px);
  }

  .lead,
  .subtitle {
    font-size: 20px;
  }

  .row,
  .grid-2,
  .grid-3,
  .grid-4,
  .meta,
  .tactic-grid,
  .ddos-path,
  .scope-diagram,
  .demo-flow,
  .finding-strip,
  .layer,
  .bar-row,
  .scale-compare,
  .scatter-wrap,
  .stage-track,
  .timeline,
  .tier-ladder {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bar-value {
    text-align: left;
  }

  .scatter-yaxis {
    display: none;
  }

  .stage-seg {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
  }

  .timeline {
    padding-top: 0;
  }

  .timeline-track {
    display: none;
  }

  .timeline-item {
    border-right: 0;
    border-left: 2px solid var(--rule);
    padding: 0 0 0 18px;
  }

  .timeline-item::before {
    top: 4px;
    left: -7px;
  }

  .tier-step {
    border-radius: 8px;
  }

  /* Most legacy slides used bespoke inline grids/flex rows. On a narrow
     screen, reflow the components vertically rather than clipping a column. */
  deck-stage > section [style*="display:grid"],
  deck-stage > section [style*="display: grid"],
  deck-stage > section [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  deck-stage > section [style*="display:flex"],
  deck-stage > section [style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  deck-stage > section :is(svg, img, table) {
    max-width: 100% !important;
  }

  deck-stage > section :is(p, li, td, th, .label, .desc, .sub)[style*="font-size:"] {
    font-size: max(16px, 4.2vw) !important;
  }

  .row > *,
  .col,
  .card {
    width: auto !important;
    flex-basis: auto !important;
  }

  .cover-network,
  .num,
  .foot .right {
    display: none;
  }

  .cover h2[style] {
    font-size: clamp(42px, 13vw, 68px) !important;
    line-height: 1 !important;
  }

  .foot {
    position: static;
    margin-top: auto;
    font-size: 13px;
  }

  #deck-controls {
    width: calc(100vw - 16px);
  }

  #slide-picker {
    min-width: 0;
    width: 100%;
  }

  #deck-controls > a,
  #slide-progress {
    display: none;
  }

  .brand-back.site-home-link {
    max-width: 105px;
    overflow: hidden;
    white-space: nowrap;
  }

  table {
    display: block;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
    white-space: nowrap;
  }

  .codeblock,
  pre {
    max-width: calc(100vw - 40px);
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  #deck-controls,
  .brand-back,
  .skip-link {
    display: none !important;
  }

  section {
    min-height: 1080px;
    page-break-after: always;
  }
}
