/* رؤية رقمية للدكتور طارق السويدان: الهوية مأخوذة من suwaidan.com */

:root {
  --paper: #f6f2e9;
  --card: #fffdf8;
  --ink: #141a26;
  --muted: #3a4252;
  --line: #ddd5c4;
  --navy: #14213a;
  --navy-2: #1f3054;
  --teal: #0e6b5e;
  --teal-2: #2f8a7b;
  --teal-soft: #e1eee8;
  --gold: #a8741f;
  --gold-soft: #f3e6cb;
  --red: #a2392f;
  --red-soft: #f5e0dc;
  --blue-soft: #e3e9f3;
  --gray-soft: #ebe7de;
  --head: "Alexandria", "Almarai", Tahoma, sans-serif;
  --body: "Almarai", "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #0b111c;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body { direction: rtl; }

/* ---------- stage ---------- */

.viewport {
  position: relative;
  overflow: hidden;
}

.deck {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  transform-origin: top left;
}

.slide {
  position: relative;
  display: flex;
  height: 900px;
  margin-bottom: 36px;
  flex-direction: column;
  padding: 64px 96px 96px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --k: 1;
  --kt: min(var(--k), 1.05);
}

.slide:last-child { margin-bottom: 0; }

/* before a slide scrolls into view its parts wait, then enter */
.motion .slide:not(.play) [data-a] { opacity: 0; }

.swipe-note { display: none; }

/* scroll hint on the cover */
.scroll-hint {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #e9d9b4; font-size: 22px; font-weight: 600; z-index: 3;
}
.scroll-hint .chev { width: 34px; height: 34px; border-right: 4px solid #e4bf78; border-bottom: 4px solid #e4bf78; transform: rotate(45deg); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-6px) rotate(45deg); opacity: .5; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }

/* ---------- running footer and progress ---------- */

.foot {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

.foot .pg { direction: ltr; font-variant-numeric: tabular-nums; }

.dark .foot, .section .foot, .cover .foot { border-top-color: rgba(255, 255, 255, .18); color: rgba(240, 233, 219, .7); }

.progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 20;
  transition: width .25s ease;
}

.controls {
  position: fixed;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.controls button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: rgba(20, 33, 58, .9);
  color: #f3ead6;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.controls button .ic { width: 20px; height: 20px; }
.controls button:hover { background: var(--teal); }
.controls #top { width: 46px; padding: 0; justify-content: center; font-size: 22px; }
.controls #top[hidden] { display: none; }

@media (max-width: 700px) {
  .controls { left: 8px; top: 8px; }
  .controls button { height: 38px; padding: 0 10px; font-size: 14px; border-radius: 10px; }
  .controls #top { width: 38px; }
}

/* ---------- type ---------- */

.kicker {
  font-family: var(--head);
  font-size: calc(20px * var(--kt));
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}

.title {
  font-family: var(--head);
  font-size: calc(44px * var(--kt));
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 calc(14px * var(--kt));
  max-width: calc(1380px * var(--kt));
}

.lead {
  font-size: calc(26px * var(--kt));
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 calc(26px * var(--kt));
  max-width: calc(1300px * var(--kt));
}

.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.note {
  font-size: calc(21px * var(--k));
  line-height: 1.7;
  color: var(--muted);
  margin: calc(16px * var(--k)) 0 0;
}

.note strong { color: var(--ink); }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- tables ---------- */

table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(22px * var(--k));
  line-height: 1.55;
  background: var(--card);
}

.t th {
  background: var(--navy);
  color: #f6efe0;
  font-weight: 600;
  text-align: right;
  padding: calc(11px * var(--k)) calc(16px * var(--k));
  font-size: .92em;
}

.t td {
  padding: calc(10px * var(--k)) calc(16px * var(--k));
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.t td:first-child { font-weight: 600; }

.t .num { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t th.num { text-align: left; }

.t tr.total td { font-weight: 700; background: var(--gold-soft); border-top: 2px solid var(--ink); }
.t tr.soft td { background: #f8f4ea; }

.t.dense { font-size: calc(20px * var(--k)); line-height: 1.5; }
.t.dense td { padding: calc(7px * var(--k)) calc(12px * var(--k)); }
.t.dense th { padding: calc(9px * var(--k)) calc(12px * var(--k)); }

.t.xdense { font-size: calc(18px * var(--k)); line-height: 1.45; }
.t.xdense td { padding: calc(6px * var(--k)) calc(10px * var(--k)); }
.t.xdense th { padding: calc(8px * var(--k)) calc(10px * var(--k)); }

.t a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(14, 107, 94, .35); }

.lvl { display: inline-block; padding: 2px calc(10px * var(--k)); border-radius: calc(999px * var(--k)); font-size: .82em; font-weight: 700; white-space: nowrap; }
.lvl.hi { background: var(--red-soft); color: var(--red); }
.lvl.md { background: var(--gold-soft); color: var(--gold); }
.lvl.lo { background: var(--teal-soft); color: var(--teal); }

/* ---------- cards and grids ---------- */

.grid { display: grid; gap: calc(18px * var(--k)); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(14px * var(--k));
  padding: calc(20px * var(--k)) calc(22px * var(--k));
}

.card h3 {
  font-family: var(--head);
  font-size: calc(25px * var(--k));
  line-height: 1.5;
  margin: 0 0 calc(8px * var(--k));
}

.card p, .card li { font-size: calc(21px * var(--k)); line-height: 1.7; color: var(--muted); margin: 0; }
.card ul { margin: 0; padding: 0 calc(20px * var(--k)) 0 0; }
.card li + li { margin-top: 4px; }

.card .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(34px * var(--k));
  height: calc(34px * var(--k));
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--head);
  font-size: calc(16px * var(--k));
  margin-bottom: 10px;
}

.card.accent { border: 2px solid var(--teal); background: var(--teal-soft); }
.card.warn { border-color: #e6c3bd; background: #fbf1ef; }
.card.gold { border-color: #e2cc9f; background: #fbf5e8; }
.card.ink { background: var(--navy); border-color: var(--navy); }
.card.ink h3 { color: #f6efe0; }
.card.ink p, .card.ink li { color: #c8d0dc; }

.strip { border-right: calc(6px * var(--k)) solid var(--teal); }
.strip.gold { border-right-color: var(--gold); }
.strip.red { border-right-color: var(--red); }
.strip.blue { border-right-color: #3d5c94; }
.strip.gray { border-right-color: #8b8577; }

/* ---------- stats ---------- */

.stats { display: grid; gap: calc(18px * var(--k)); margin-bottom: 26px; }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(14px * var(--k));
  padding: calc(18px * var(--k)) calc(22px * var(--k));
}

.stat .v {
  font-family: var(--head);
  font-size: calc(42px * var(--k));
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}

.stat .v .ltr { direction: ltr; }
.stat .l { font-size: calc(20px * var(--k)); line-height: 1.6; color: var(--muted); margin-top: 4px; }

/* ---------- lists ---------- */

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: calc(12px * var(--k)); }

ol.steps li {
  counter-increment: s;
  position: relative;
  padding: calc(14px * var(--k)) calc(70px * var(--k)) calc(14px * var(--k)) calc(20px * var(--k));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(12px * var(--k));
  font-size: calc(22px * var(--k));
  line-height: 1.65;
}

ol.steps li::before {
  content: counter(s);
  position: absolute;
  right: calc(18px * var(--k));
  top: calc(14px * var(--k));
  width: calc(34px * var(--k));
  height: calc(34px * var(--k));
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--head);
  font-size: calc(16px * var(--k));
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps.two { grid-template-columns: 1fr 1fr; }
ol.steps.tight li { padding-top: 10px; padding-bottom: 10px; font-size: calc(20.5px * var(--k)); }
ol.steps.tight li::before { top: calc(10px * var(--k)); }

.owner {
  display: inline-block;
  margin-right: 8px;
  padding: 1px calc(10px * var(--k));
  border-radius: calc(999px * var(--k));
  background: var(--gold-soft);
  color: var(--gold);
  font-size: calc(17px * var(--k));
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- figures ---------- */

.fig { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fig svg { width: 100%; height: 100%; max-height: 100%; }

.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: calc(36px * var(--k)); flex: 1; min-height: 0; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.wide { grid-template-columns: 1.7fr 1fr; }

/* ---------- cover, sections, dark ---------- */

.cover, .section, .dark { color: #f3ead6; }

.cover {
  justify-content: center;
}

.cover-inner { max-width: 980px; }
.cover .kicker { color: #d9b26a; }

.cover-title {
  font-family: var(--head);
  font-size: 68px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 24px;
}

.cover-sub { font-size: 29px; line-height: 1.75; color: #cfd6e0; margin: 0 0 48px; max-width: 900px; }

.cover-meta { display: flex; gap: 56px; font-size: 19px; }
.cover-meta span { display: block; font-size: 15px; color: #d9b26a; margin-bottom: 4px; font-weight: 600; }

.section {
  justify-content: center;
}

.section.money {
  background:
    radial-gradient(circle at 15% 80%, rgba(168, 116, 31, .45), transparent 55%),
    linear-gradient(135deg, #14213a, #2a2414);
}

.section.decide {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 107, 94, .5), transparent 55%),
    linear-gradient(135deg, #14213a, #0f2b33);
}

.section .num {
  font-family: var(--head);
  font-size: 22px;
  color: #d9b26a;
  margin-bottom: 18px;
}

.section h1 {
  font-family: var(--head);
  font-size: 64px;
  line-height: 1.35;
  margin: 0 0 18px;
}

.section p { font-size: 29px; line-height: 1.7; color: #cfd6e0; margin: 0; max-width: 860px; }

.section ul.toc { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; font-size: 24px; color: #e5dcc8; }
.section ul.toc li::before { content: "◂ "; color: #d9b26a; }

.dark { background: var(--navy); }
.dark .kicker { color: #d9b26a; }
.dark .lead { color: #c8d0dc; }

.closing {
  justify-content: center;
  color: #f3ead6;
}

.closing blockquote {
  font-family: var(--head);
  font-size: 46px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 1100px;
}

/* ---------- special blocks ---------- */

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(16px * var(--k)); }
.level { background: var(--card); border: 1px solid var(--line); border-radius: calc(14px * var(--k)); padding: calc(18px * var(--k)) calc(20px * var(--k)); border-top: calc(6px * var(--k)) solid var(--teal); }
.level.l4 { border-top-color: #3d5c94; }
.level.l5 { border-top-color: var(--gold); }
.level.l6 { border-top-color: #8b8577; }
.level .tag { font-family: var(--head); font-size: calc(17px * var(--k)); color: var(--muted); }
.level h3 { font-family: var(--head); font-size: calc(25px * var(--k)); margin: calc(4px * var(--k)) 0 calc(8px * var(--k)); }
.level p { margin: 0; font-size: calc(20px * var(--k)); line-height: 1.65; color: var(--muted); }
.level .says { margin-top: 10px; padding: calc(8px * var(--k)) calc(12px * var(--k)); background: var(--paper); border-radius: calc(8px * var(--k)); font-size: calc(19px * var(--k)); color: var(--ink); }

.tree { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: calc(18px * var(--k)); align-items: stretch; }
.tree .root { grid-column: 1 / -1; }
.tree .core { grid-column: 1 / -1; }
.arrow-down { grid-column: 1 / -1; text-align: center; color: var(--teal); font-size: calc(26px * var(--k)); line-height: 1; margin: calc(-1 * 6px * var(--k)) 0; }

.callout {
  background: var(--navy);
  color: #f3ead6;
  border-radius: calc(14px * var(--k));
  padding: calc(18px * var(--k)) calc(24px * var(--k));
  font-size: calc(21px * var(--k));
  line-height: 1.7;
}

.callout strong { color: #e4bf78; }

.pill { display: inline-block; padding: calc(3px * var(--k)) calc(12px * var(--k)); border-radius: calc(999px * var(--k)); background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: calc(17px * var(--k)); }

.sources { columns: 2; column-gap: calc(48px * var(--k)); font-size: calc(18.5px * var(--k)); line-height: 1.6; margin: 0; padding: 0 calc(20px * var(--k)) 0 0; }
.sources li { break-inside: avoid; margin-bottom: 6px; color: var(--muted); }
.sources a { color: var(--teal); text-decoration: none; }

/* ---------- icons ---------- */

.ic { width: calc(28px * var(--k)); height: calc(28px * var(--k)); flex: none; vertical-align: middle; }
.ib {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(52px * var(--k)); height: calc(52px * var(--k)); border-radius: calc(14px * var(--k));
  background: var(--teal-soft); color: var(--teal); margin-bottom: calc(12px * var(--k));
}
.ib .ic { width: calc(30px * var(--k)); height: calc(30px * var(--k)); }
.ib.gold { background: var(--gold-soft); color: var(--gold); }
.ib.red { background: var(--red-soft); color: var(--red); }
.ib.blue { background: var(--blue-soft); color: #2f4c80; }
.ib.ink { background: rgba(255,255,255,.12); color: #e4bf78; }
.card .head { display: flex; align-items: center; gap: calc(14px * var(--k)); margin-bottom: calc(8px * var(--k)); }
.card .head .ib { margin: 0; }
.card .head h3 { margin: 0; }

.stat { display: grid; grid-template-columns: auto 1fr; column-gap: calc(16px * var(--k)); align-items: center; }
.stat > .ib { grid-row: 1 / span 2; margin: 0; }
.stat > .v, .stat > .l { grid-column: 2; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-right: calc(38px * var(--k)); }
ul.ticks li + li { margin-top: calc(12px * var(--k)); }
ul.ticks li .ic { position: absolute; right: 0; top: calc(4px * var(--k)); width: calc(26px * var(--k)); height: calc(26px * var(--k)); color: var(--teal); }
.card.warn ul.ticks li .ic { color: var(--red); }

/* card text readable on tinted cards */
.card.accent p, .card.accent li, .card.gold p, .card.warn p, .card.warn li { color: var(--ink); }

/* ---------- layout that fills the frame ---------- */

.body.fill { flex: 1; min-height: 0; }
.grid.fill { align-content: stretch; }
.col { display: flex; flex-direction: column; gap: calc(18px * var(--k)); min-height: 0; }
.col.center { justify-content: center; }
.split > .fig, .col > .fig { min-height: 0; }

/* ---------- threshold rows: indicator → threshold → decision ---------- */

.rules { display: grid; gap: calc(12px * var(--k)); }
.rule {
  display: grid; grid-template-columns: calc(56px * var(--k)) 1.25fr auto calc(36px * var(--k)) 1.6fr; align-items: center; gap: calc(16px * var(--k));
  background: var(--card); border: 1px solid var(--line); border-radius: calc(14px * var(--k)); padding: calc(12px * var(--k)) calc(18px * var(--k));
  font-size: calc(22px * var(--k)); line-height: 1.45;
}
.rule .ib { margin: 0; width: calc(48px * var(--k)); height: calc(48px * var(--k)); }
.rule .what { font-weight: 700; }
.rule .th { justify-self: start; padding: calc(6px * var(--k)) calc(16px * var(--k)); border-radius: 999px; background: var(--gold-soft); color: #7a5313; font-weight: 700; white-space: nowrap; }
.rule .arr { color: var(--teal); width: calc(30px * var(--k)); height: calc(30px * var(--k)); }
.rule .then { color: var(--ink); }

/* ---------- timeline (next steps, payments) ---------- */

.tl { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(18px * var(--k)); padding-top: calc(70px * var(--k)); }
.tl::before { content: ""; position: absolute; top: calc(30px * var(--k)); right: 2%; left: 2%; height: 4px; border-radius: 2px; background: linear-gradient(270deg, var(--teal), var(--gold)); transform-origin: right; }
.tl .step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: calc(14px * var(--k)); padding: calc(18px * var(--k)) calc(18px * var(--k)); font-size: calc(21px * var(--k)); line-height: 1.6; }
.tl .step::before { content: attr(data-n); position: absolute; top: calc(-62px * var(--k)); right: 50%; transform: translateX(50%); width: calc(48px * var(--k)); height: calc(48px * var(--k)); border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--head); font-size: calc(20px * var(--k)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--paper); }
.tl .step .when { display: block; font-family: var(--head); font-size: calc(18px * var(--k)); color: var(--teal); margin-bottom: calc(6px * var(--k)); font-weight: 700; }
.tl .step.goal { background: var(--navy); color: #f3ead6; border-color: var(--navy); }
.tl .step.goal::before { background: var(--gold); }
.tl .step.goal .when { color: #e4bf78; }

/* ---------- ownership flow ---------- */

.flow { display: grid; grid-template-columns: 1fr calc(60px * var(--k)) 1fr calc(60px * var(--k)) 1fr; align-items: stretch; gap: 0; }
.flow .arrow { align-self: center; justify-self: center; color: var(--teal); width: calc(44px * var(--k)); height: calc(44px * var(--k)); }

/* ---------- section and cover backgrounds with slow motion ---------- */

.cover, .section, .closing { isolation: isolate; }
.cover::before, .section::before, .closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--img, none) center / cover no-repeat;
}
.cover { background: linear-gradient(135deg, #14213a, #0e3a40); }
.cover::after, .section::after, .closing::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.cover::after { background: linear-gradient(270deg, rgba(14, 22, 40, .97) 0%, rgba(14, 22, 40, .9) 46%, rgba(14, 22, 40, .45) 100%); }
.section { background: linear-gradient(135deg, #14213a, #10403d); }
.section::after { background: linear-gradient(270deg, rgba(14, 22, 40, .96) 0%, rgba(14, 22, 40, .82) 50%, rgba(14, 22, 40, .35) 100%); }
.section.money::after, .section.decide::after { background: none; }
.closing { background: linear-gradient(135deg, #14213a, #0e3a40); }
.closing::after { background: linear-gradient(270deg, rgba(14, 22, 40, .95) 0%, rgba(14, 22, 40, .75) 60%, rgba(14, 22, 40, .5) 100%); }
.section .big-n { position: absolute; left: 70px; bottom: 30px; font-family: var(--head); font-size: 300px; line-height: 1; font-weight: 700; color: rgba(228, 191, 120, .1); direction: ltr; z-index: -1; }
.section .pattern { position: absolute; left: 0; top: 0; width: 58%; height: 100%; z-index: -1; color: rgba(228, 191, 120, .22); }

/* ---------- components added with the redesign ---------- */

.t small { display: block; font-size: .8em; font-weight: 500; color: var(--muted); margin-top: 2px; }
.lvtop { display: flex; align-items: center; justify-content: space-between; gap: calc(10px * var(--k)); }
.meter { width: calc(132px * var(--k)); height: calc(12px * var(--k)); flex: none; }
.levels.fill { grid-auto-rows: 1fr; }
.branch { grid-column: 1 / -1; width: 100%; height: calc(36px * var(--k)); color: var(--teal); margin: calc(-4px * var(--k)) 0; }
.tree.fill { grid-template-rows: auto auto 1fr 1fr; }

.card.mini { display: flex; align-items: center; gap: calc(18px * var(--k)); }
.card.mini .ib { margin: 0; }
.card.mini p { color: var(--ink); font-size: calc(22px * var(--k)); }
.card.strip > .ib + p { color: var(--ink); font-size: calc(22px * var(--k)); }

.decisions .card { display: flex; flex-direction: column; }
.decisions .q { color: var(--ink); font-size: calc(22px * var(--k)); line-height: 1.6; flex: 1; margin-bottom: calc(12px * var(--k)); }
.decisions .owner { align-self: flex-start; margin: 0; }

.tl.pay { margin-top: calc(26px * var(--k)); }

ol.vtl { list-style: none; margin: 0; padding: 0 calc(64px * var(--k)) 0 0; position: relative; counter-reset: v; display: flex; flex-direction: column; justify-content: space-between; gap: calc(14px * var(--k)); }
ol.vtl::before { content: ""; position: absolute; right: calc(22px * var(--k)); top: calc(20px * var(--k)); bottom: calc(20px * var(--k)); width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--teal), var(--gold)); transform-origin: top; }
ol.vtl li { counter-increment: v; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: calc(14px * var(--k)); padding: calc(12px * var(--k)) calc(20px * var(--k)); font-size: calc(22px * var(--k)); line-height: 1.55; }
ol.vtl li::before { content: counter(v); position: absolute; right: calc(-64px * var(--k)); top: 50%; transform: translateY(-50%); width: calc(48px * var(--k)); height: calc(48px * var(--k)); border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--head); font-size: calc(20px * var(--k)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--paper); }
ol.vtl .when { display: inline-block; margin-left: calc(10px * var(--k)); padding: 0 calc(10px * var(--k)); border-radius: 999px; background: var(--gold-soft); color: #7a5313; font-family: var(--head); font-size: calc(16px * var(--k)); font-weight: 700; vertical-align: 2px; }
.slide.play ol.vtl::before { animation: grow 1.2s cubic-bezier(.3, .7, .2, 1) both .2s; }

.card.ink .ib.ink { color: #e4bf78; }
.card.ink h3 { color: #f6efe0; }

/* ---------- index and navigation ---------- */

[data-go] { cursor: pointer; }
a.navc { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.navc:hover, a.navc:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 33, 58, .12); border-color: var(--teal); outline: none; }
.navc .navtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(10px * var(--k)); }
.navc .navtop .ib { margin: 0; }
.navc .nn { font-family: var(--head); font-size: calc(40px * var(--k)); font-weight: 700; color: #d9cdb2; line-height: 1; direction: ltr; }
.navc h3 { color: var(--ink); }
.navc p { flex: 1; color: var(--muted); }
.navc .go { margin-top: calc(12px * var(--k)); font-size: calc(17px * var(--k)); color: var(--teal); font-weight: 700; }
.navc .go::after { content: " ←"; }
.section ul.toc li[data-go] { transition: color .2s ease, transform .2s ease; width: fit-content; border-bottom: 1px dotted rgba(228, 191, 120, .45); }
.section ul.toc li[data-go]:hover { color: #fff; transform: translateX(-6px); }
.foot .home-link { cursor: pointer; }
.foot .home-link:hover { color: var(--teal); text-decoration: underline; }

/* ---------- section colours and decoration ---------- */

.slide { --acc: #0d7d6c; --acc-soft: #dff0ea; isolation: isolate; }
.slide[data-section="البناء التقني"] { --acc: #2563a8; --acc-soft: #e2ebf7; }
.slide[data-section="الإنسان والاعتماد"] { --acc: #7a4cad; --acc-soft: #eee6f7; }
.slide[data-section="الطريق والفريق"] { --acc: #1d8556; --acc-soft: #e0f2e8; }
.slide[data-section="المال"] { --acc: #b86f0e; --acc-soft: #faeed8; }
.slide[data-section="المخاطر والسيناريوهات"] { --acc: #c0412c; --acc-soft: #fbe5df; }
.slide[data-section="القرارات"], .slide[data-section="ما بعد المشروع"] { --acc: #0e7490; --acc-soft: #ddf0f6; }

/* top band and corner rosette on content slides */
.slide:not(.cover):not(.section):not(.closing)::after {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 10px; z-index: 1;
  background: linear-gradient(270deg, var(--acc) 0%, var(--acc) 35%, transparent 100%);
}
.slide:not(.cover):not(.section):not(.closing):not(.legacy)::before {
  content: ""; position: absolute; left: -150px; bottom: -150px; width: 520px; height: 520px; z-index: -1;
  background: var(--acc); opacity: .07;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3Crect x='32' y='32' width='36' height='36' transform='rotate(22.5 50 50)'/%3E%3Crect x='32' y='32' width='36' height='36' transform='rotate(67.5 50 50)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3Crect x='32' y='32' width='36' height='36' transform='rotate(22.5 50 50)'/%3E%3Crect x='32' y='32' width='36' height='36' transform='rotate(67.5 50 50)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }
.slide.play:not(.cover):not(.section):not(.closing):not(.legacy)::before { animation: spin 30s linear both; }

.kicker { color: var(--acc); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--acc); }
.cover .kicker::before, .legacy .kicker::before { background: #d9b26a; }
.ib { background: var(--acc-soft); color: var(--acc); }
.stat .v { color: var(--acc); }
.stat { border-top: 4px solid var(--acc); }
.strip { border-right-color: var(--acc); }
.card.accent { border-color: var(--acc); background: var(--acc-soft); }
.t th { border-bottom: 3px solid var(--acc); }
.t tr.total td { border-top-color: var(--acc); }
.card .n, ol.steps li::before, ol.vtl li::before, .tl .step::before { background: var(--acc); }
.tl .step .when { color: var(--acc); }
.tl::before, ol.vtl::before { background: linear-gradient(270deg, var(--acc), var(--gold)); }
ol.vtl::before { background: linear-gradient(180deg, var(--acc), var(--gold)); }
.rule .arr { color: var(--acc); }
.navc .nn { color: var(--acc); opacity: .35; }
.card.qcard { border-top: 5px solid var(--acc); }
.card.qcard h3 { font-size: calc(28px * var(--k)); color: var(--acc); }
.card.qcard p { color: var(--ink); font-size: calc(22px * var(--k)); }
.card.qcard .ib { width: calc(64px * var(--k)); height: calc(64px * var(--k)); }
.card.qcard .ib .ic { width: calc(36px * var(--k)); height: calc(36px * var(--k)); }

/* after-the-project slide */
.legacy {
  background: linear-gradient(270deg, rgba(14, 22, 40, .97) 0%, rgba(14, 22, 40, .93) 55%, rgba(14, 22, 40, .8) 100%), var(--img, none) center / cover no-repeat, var(--navy);
  color: #f3ead6;
}
.legacy .kicker { color: #e4bf78; }
.legacy .title { color: #f6efe0; }
.legacy .colh { font-family: var(--head); font-size: calc(24px * var(--k)); color: #e4bf78; margin: 0 0 calc(4px * var(--k)); font-weight: 700; }
.legacy .ib.ink { background: rgba(228, 191, 120, .14); color: #e4bf78; }
ul.handover { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: calc(10px * var(--k)); }
ul.handover li { display: flex; align-items: center; gap: calc(16px * var(--k)); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: calc(14px * var(--k)); padding: calc(12px * var(--k)) calc(16px * var(--k)); }
ul.handover li .ib { margin: 0; }
ul.handover b { display: block; font-family: var(--head); font-size: calc(21px * var(--k)); color: #f6efe0; }
ul.handover span { display: block; font-size: calc(19px * var(--k)); line-height: 1.55; color: #cfd6e0; }
.card.glass { background: rgba(255, 255, 255, .06); border-color: rgba(228, 191, 120, .25); }
.card.glass h3 { color: #f6efe0; }
.card.glass p { color: #d4dbe5; }
.legacy .foot { border-top-color: rgba(255, 255, 255, .18); color: rgba(240, 233, 219, .7); }

/* ---------- animation ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: scale(1.12) translateX(1.5%); } to { transform: scale(1.02) translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes sweep { from { stroke-dasharray: 0 var(--circ); } }

.slide.play { animation: fade .45s ease both; }
.slide.play [data-a] { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.slide.play::before { animation: drift 16s ease-out both; }
.slide.play .tl::before { animation: growx 1.1s cubic-bezier(.3, .7, .2, 1) both .2s; }

svg .bar { transform-box: fill-box; transform-origin: bottom; }
.slide.play svg .bar { animation: grow .9s cubic-bezier(.25, .8, .25, 1) both; animation-delay: calc(var(--d, 0) * 90ms + 250ms); }
svg .hbar { transform-box: fill-box; transform-origin: right; }
.slide.play svg .hbar { animation: growx 1s cubic-bezier(.25, .8, .25, 1) both; animation-delay: calc(var(--d, 0) * 160ms + 250ms); }
.slide.play svg .lbl { animation: fade .5s ease both; animation-delay: calc(var(--d, 0) * 90ms + 900ms); }
.slide.play svg .pop { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 200ms); }
.slide.play svg .draw, .slide.play svg path.draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.2s ease both .2s; }
.slide.play svg .arc { animation: sweep 1.2s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 250ms + 200ms); }
.slide.play svg .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite 1.2s; }
.slide.play svg .seq { animation: fade .6s ease both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phones: slides reflow into a readable single column ---------- */

@media (max-width: 760px), (max-height: 500px) {
  .viewport { height: auto !important; overflow: visible; }
  .deck { position: static; transform: none !important; width: auto; }
  .slide {
    height: auto; margin: 0 0 10px; border-radius: 0; box-shadow: none;
    padding: 70px 18px 64px;
    --k: .74 !important; --kt: .6 !important;
  }
  .slide.cover, .slide.section, .slide.closing { min-height: 88vh; min-height: 88svh; justify-content: center; }
  .slide:not(.cover):not(.section):not(.closing):not(.legacy)::before { width: 260px; height: 260px; left: -90px; bottom: -90px; }

  .grid, .g2, .g3, .g4, .g5, .split, .split.even, .split.wide, .levels, .tree, ol.steps.two, .flow { grid-template-columns: 1fr !important; }
  .tree.fill, .levels.fill { grid-template-rows: none; grid-auto-rows: auto; }
  .body, .fill, .col { flex: none; }
  .flow .arrow { transform: rotate(-90deg); }
  .stats { grid-template-columns: 1fr !important; }

  .tl, .tl.pay { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 44px 0 0; }
  .tl::before { top: 6px; bottom: 6px; right: 19px; left: auto; width: 3px; height: auto; }
  .tl .step::before { top: 50%; right: -44px; transform: translateY(-50%); width: 34px; height: 34px; font-size: 15px; }

  .rule { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .rule .th, .rule .then { grid-column: 2; }
  .rule .arr { display: none; }

  .fig { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .fig svg { height: auto; max-height: none; flex: none; }
  .swipe-note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

  /* tables become one card per row, each value labelled with its column */
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: auto; }
  table.t tr:first-child:has(th) { display: none; }
  table.t tr { background: var(--card); border: 1px solid var(--line); border-right: 4px solid var(--acc); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  table.t tr.total { background: var(--gold-soft); }
  table.t td { border: 0; padding: 3px 0; font-size: 15px; line-height: 1.6; text-align: right !important; }
  table.t td:first-child { font-size: 16.5px; font-weight: 700; color: var(--ink); padding-bottom: 5px; }
  table.t td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; display: inline; font-weight: 700; color: var(--acc); }
  table.t td:empty { display: none; }
  /* number tables stay tables: short figures fit side by side */
  table.t.numeric { display: table; width: 100%; }
  table.t.numeric tbody { display: table-row-group; }
  table.t.numeric tr, table.t.numeric tr:first-child:has(th) { display: table-row; background: none; border: 0; padding: 0; margin: 0; }
  table.t.numeric tr.total { background: var(--gold-soft); }
  table.t.numeric th, table.t.numeric td { display: table-cell; font-size: 12.5px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
  table.t.numeric td:first-child { font-size: 13px; padding-bottom: 6px; }
  table.t.numeric td.num { text-align: left !important; white-space: nowrap; }
  table.t.numeric td[data-label]:not(:first-child)::before { content: none; }
  .sources { columns: 1; }

  .cover-title { font-size: 34px; }
  .cover-sub { font-size: 17px; margin-bottom: 24px; }
  .cover-meta { flex-wrap: wrap; gap: 16px 28px; font-size: 15px; }
  .section h1 { font-size: 34px; }
  .section p { font-size: 17px; }
  .section ul.toc { font-size: 17px; margin-top: 20px; }
  .section .big-n { font-size: 140px; left: 16px; bottom: 16px; }
  .closing blockquote { font-size: 23px; }
  .scroll-hint { font-size: 15px; bottom: 18px; }
  .scroll-hint .chev { width: 22px; height: 22px; }

  .foot { left: 18px; right: 18px; bottom: 16px; font-size: 11px; gap: 10px; }
  .foot .home-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ================= theme: suwaidan.com ================= */

:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #313131;
  --muted: #5d6268;
  --line: #e6e1d6;
  --navy: #3a3a3c;
  --navy-2: #2e2e30;
  --teal: #8f7419;
  --teal-2: #a8892a;
  --teal-soft: #f6efd9;
  --gold: #8f7419;
  --gold-b: #cba835;
  --gold-soft: #f6efd9;
  --gray-soft: #f3f3f4;
  --head: "Tajawal", Tahoma, sans-serif;
  --body: "Tajawal", Tahoma, sans-serif;
}
.slide, .slide[data-section] { --acc: #8f7419 !important; --acc-soft: #f6efd9 !important; }
.slide { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d9d4c6' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48h8M88 48h8M48 0v8M48 88v8'/%3E%3C/g%3E%3C/svg%3E") repeat; background-size: 96px 96px; }
.slide:not(.cover):not(.section):not(.closing)::after { height: 6px; background: var(--gold-b); }
.slide:not(.cover):not(.section):not(.closing):not(.legacy)::before { background: var(--gold-b); opacity: .06; }
.title { color: var(--ink); }
.title::after { content: ""; display: block; width: calc(70px * var(--kt)); height: calc(5px * var(--kt)); border-radius: 3px; background: var(--gold-b); margin-top: calc(16px * var(--kt)); }
.kicker { color: var(--gold); }
.kicker::before { background: var(--gold-b); }
.card { border-color: #ece7dc; box-shadow: 0 10px 30px rgba(49, 49, 49, .07); border-radius: calc(16px * var(--k)); }
.card .head h3, .card.qcard h3 { color: var(--ink); }
.card.qcard { border-top: 5px solid var(--gold-b); }
.ib { background: var(--gold-soft); color: var(--gold); }
.ib.gold { background: var(--gold-b); color: #fff; }
.gold { color: var(--gold-b); }
ul.ticks li .ic { color: var(--gold-b); }
.note { border-right-color: var(--gold-b); }
.controls button { background: rgba(58, 58, 60, .92); }
.controls button:hover { background: var(--gold-b); color: #fff; }
.progress { background: var(--gold-b); }

/* dark slides: charcoal like the site footer */
.cover, .section, .closing { background: #343436 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23555558' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48h8M88 48h8M48 0v8M48 88v8'/%3E%3C/g%3E%3C/svg%3E") repeat; background-size: 96px 96px; color: #f5f2ea; }
.cover::before, .section::before, .closing::before { display: none; }
.cover::after, .section::after, .closing::after { background: radial-gradient(circle at 85% 20%, rgba(203, 168, 53, .18), transparent 55%), linear-gradient(90deg, rgba(52, 52, 54, .2), rgba(52, 52, 54, .75)); }
.cover .kicker, .section .num, .closing .kicker { color: var(--gold-b); }
.cover-sub, .section p { color: #d6d2c8; }
.cover-meta span { color: var(--gold-b); }
.cover-grid, .sec-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; height: 100%; }
.sec-grid.one { grid-template-columns: 1fr; max-width: 1150px; }
.cover-title { font-size: 64px; font-weight: 800; }
.section h1 { font-weight: 800; }
.section h1::after { content: ""; display: block; width: 70px; height: 5px; border-radius: 3px; background: var(--gold-b); margin-top: 18px; }
.horizon p + p { margin-top: 22px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.duo div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(203, 168, 53, .35); border-radius: 14px; padding: 16px 20px; font-size: 22px; line-height: 1.6; color: #f1ede3; }
.duo span { display: block; font-size: 17px; font-weight: 700; color: var(--gold-b); margin-bottom: 4px; }

/* bricks */
.tower .brick { transition: transform .25s; }
.builder-fig .brick.tog { cursor: pointer; }
.builder-fig .brick.tog:hover { transform: translateY(-4px); }
.builder-fig .brick.on rect { fill: #cba835; stroke: #a8892a; }
.builder-fig .brick[data-p="base"].on rect { fill: #3a3a3c; stroke: #3a3a3c; }
.builder-fig .brick.on text { fill: #fff; }
.builder-fig .brick:focus { outline: none; }
.builder-fig .brick:focus-visible rect { stroke: #313131; stroke-width: 3; }
.hint { font-size: calc(20px * var(--k)); color: var(--muted); margin: 0 0 calc(10px * var(--k)); }
ul.gets { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(8px * var(--k)); }
ul.gets li { background: #fff; border: 1px solid #ece7dc; border-right: 4px solid var(--gold-b); border-radius: 10px; padding: calc(8px * var(--k)) calc(14px * var(--k)); font-size: calc(19px * var(--k)); line-height: 1.5; }
ul.gets li b { display: block; font-size: calc(20px * var(--k)); }
ul.gets li.plus { background: var(--gold-soft); border-right-color: var(--gold); display: flex; gap: 10px; align-items: baseline; }
ul.gets li.plus b { display: inline; color: var(--gold); }

/* phases and lead */
ol.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(12px * var(--k)); counter-reset: ph; }
ol.phases li { position: relative; padding-right: calc(52px * var(--k)); }
ol.phases li::before { counter-increment: ph; content: counter(ph); position: absolute; right: 0; top: 2px; width: calc(38px * var(--k)); height: calc(38px * var(--k)); border-radius: 50%; background: var(--gold-b); color: #fff; font-weight: 800; font-size: calc(19px * var(--k)); display: grid; place-items: center; }
ol.phases .when { display: none; }
ol.phases b { display: block; font-size: calc(23px * var(--k)); }
ol.phases .d { display: block; font-size: calc(20px * var(--k)); color: var(--muted); line-height: 1.55; }
.lead-by { display: flex; align-items: center; gap: 10px; margin-top: calc(14px * var(--k)); font-size: calc(20px * var(--k)); color: var(--ink); }
.lead-by .ic { width: calc(26px * var(--k)); height: calc(26px * var(--k)); color: var(--gold-b); }
.lead-by span { font-weight: 700; color: var(--gold); }

/* content agent flow */
ol.flow6 { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(10px * var(--k)); }
ol.flow6 li { display: flex; align-items: center; gap: calc(14px * var(--k)); background: #fff; border: 1px solid #ece7dc; border-radius: 12px; padding: calc(8px * var(--k)) calc(14px * var(--k)); box-shadow: 0 6px 18px rgba(49, 49, 49, .05); }
ol.flow6 li .ib { flex: none; }
ol.flow6 b { display: block; font-size: calc(22px * var(--k)); }
ol.flow6 span { display: block; font-size: calc(19px * var(--k)); color: var(--muted); line-height: 1.5; }
.quarter { display: flex; align-items: center; gap: calc(22px * var(--k)); background: #343436; color: #f1ede3; border-radius: 16px; padding: calc(20px * var(--k)) calc(24px * var(--k)); margin-bottom: calc(14px * var(--k)); }
.quarter p { margin: 0; font-size: calc(22px * var(--k)); line-height: 1.65; }
.quarter strong { color: var(--gold-b); }
.q-ring { position: relative; flex: none; width: calc(120px * var(--k)); height: calc(120px * var(--k)); }
.q-ring svg { width: 100%; height: 100%; }
.q-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(40px * var(--k)); color: var(--gold-b); }

ol.vtl.big li b { display: block; font-size: calc(25px * var(--k)); }
ol.vtl.big li .d { display: block; color: var(--muted); font-size: calc(21px * var(--k)); }

/* metadata card */
.mcard { background: #fff; border: 1px solid #e6e1d6; border-radius: calc(18px * var(--k)); box-shadow: 0 18px 50px rgba(49, 49, 49, .1); overflow: hidden; }
.mc-top { display: flex; align-items: center; gap: 10px; background: #343436; color: #f1ede3; padding: calc(12px * var(--k)) calc(18px * var(--k)); font-size: calc(20px * var(--k)); }
.mc-top .ic { width: calc(24px * var(--k)); height: calc(24px * var(--k)); color: var(--gold-b); }
.mc-top em { margin-inline-start: auto; font-style: normal; font-size: calc(15px * var(--k)); color: var(--gold-b); }
.mc-body { display: grid; grid-template-columns: 1fr 1fr; }
.mf { padding: calc(9px * var(--k)) calc(16px * var(--k)); border-bottom: 1px solid #f0ece3; border-left: 1px solid #f0ece3; }
.mf span { display: block; font-size: calc(15px * var(--k)); font-weight: 700; color: var(--gold); }
.mf b { display: block; font-size: calc(18px * var(--k)); font-weight: 500; line-height: 1.5; color: var(--ink); }
.colh2 { font-family: var(--head); font-size: calc(24px * var(--k)); margin: 0 0 calc(10px * var(--k)); color: var(--ink); }
ol.flow6.compact { gap: calc(8px * var(--k)); }
ol.flow6.compact li { padding: calc(6px * var(--k)) calc(12px * var(--k)); }
ol.flow6.compact b { font-size: calc(20px * var(--k)); }
ol.flow6.compact span { font-size: calc(17px * var(--k)); }
.quarter.faithful .ib { flex: none; }

/* chatbot example */
.phone { background: #fff; border: 1px solid #e6e1d6; border-radius: calc(26px * var(--k)); box-shadow: 0 18px 50px rgba(49, 49, 49, .12); overflow: hidden; display: flex; flex-direction: column; max-width: calc(600px * var(--k)); width: 100%; justify-self: center; }
.ph-top { display: flex; align-items: center; gap: 10px; background: #343436; color: #f1ede3; padding: calc(14px * var(--k)) calc(20px * var(--k)); font-size: calc(20px * var(--k)); }
.ph-top .ic { width: calc(24px * var(--k)); height: calc(24px * var(--k)); color: var(--gold-b); }
.ph-body { display: flex; flex-direction: column; gap: calc(12px * var(--k)); padding: calc(18px * var(--k)); background: #faf9f6; }
.bub { max-width: 85%; padding: calc(10px * var(--k)) calc(16px * var(--k)); border-radius: calc(16px * var(--k)); font-size: calc(19px * var(--k)); line-height: 1.6; }
.bub.me { align-self: flex-start; background: var(--gold-b); color: #fff; border-bottom-right-radius: 4px; }
.bub.bot { align-self: flex-end; background: #fff; border: 1px solid #ece7dc; color: var(--ink); border-bottom-left-radius: 4px; }
.bub .src { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: calc(16px * var(--k)); font-weight: 700; color: var(--gold); }
.bub .src .ic { width: calc(18px * var(--k)); height: calc(18px * var(--k)); }
.ph-in { border-top: 1px solid #ece7dc; padding: calc(14px * var(--k)) calc(20px * var(--k)); color: #a39e94; font-size: calc(18px * var(--k)); }
ul.ticks.big li { font-size: calc(22px * var(--k)); }

@media (max-width: 760px), (max-height: 500px) {
  .cover-grid, .sec-grid, .duo { grid-template-columns: 1fr !important; gap: 22px; }
  .cover-fig { order: -1; }
  .duo div { font-size: 16px; }
  .duo span { font-size: 13px; }
  .quarter { flex-direction: column; text-align: center; }
  .mc-body { grid-template-columns: 1fr; }
  .cover-title { font-size: 34px; }
  .closing blockquote { font-size: 24px; }
  .scroll-hint { display: none; }
}

/* ---------- print: one slide per page ---------- */

@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { background: #fff; height: auto; }
  .viewport { position: static; display: block; overflow: visible; height: auto !important; }
  .deck { position: static; transform: none !important; width: 1600px; height: auto; }
  .slide { display: flex !important; position: relative; width: 1600px; height: 900px; margin: 0; border-radius: 0; box-shadow: none; page-break-after: always; break-after: page; }
  .scroll-hint { display: none !important; }
  .motion .slide:not(.play) [data-a] { opacity: 1; }
  .controls, .progress { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
