/* ===========================================================
   Ontos — reveal.js theme
   Dark frontier-lab aesthetic. One dominant near-black,
   warm off-white type, single electric accent used sparingly.
=========================================================== */

:root {
  --bg: #08090c;
  --bg-raised: #0f1117;
  --bg-card: #14161d;
  --line: #23252e;
  --fg: #f3f1ea;
  --fg-dim: #a5a4ac;
  --fg-mute: #6f6e78;
  --accent: #3e8fff;
  --accent-dim: #3e8fff33;
  --accent-2: #5b8cff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}

.reveal, .reveal *, .reveal *::before, .reveal *::after {
  box-sizing: border-box;
}

.reveal {
  font-family: var(--sans);
  font-size: 35px;
  font-weight: 400;
  color: var(--fg);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 0 5.5%;
  box-sizing: border-box;
}

/* background */
.reveal-viewport {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -8%, #3e8fff12, transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 108%, #5b8cff10, transparent 60%);
}

::selection { background: var(--accent); color: #0a0a0a; }

/* ---------- typography ---------- */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--fg);
  line-height: 1.08;
  margin: 0 0 0.35em 0;
}

.reveal h1 { font-size: 1.95em; }
.reveal h2 { font-size: 1.28em; }
.reveal h3 { font-size: 0.92em; font-weight: 600; }

.reveal p { line-height: 1.5; margin: 0.4em 0; }

.reveal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }

/* Shared vertical rhythm for content slides */
.reveal .slides section.center > h2 {
  margin: 0 0 0.45em 0;
}
.reveal .slides section.center > .lede {
  margin: 0.15em 0 0.7em 0;
}
.reveal .slides section.center.mid > .lede {
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.55em;
  display: block;
}

.lede {
  font-size: 0.52em;
  color: var(--fg-dim);
  font-weight: 400;
  max-width: 32em;
  line-height: 1.5;
}

.source {
  font-family: var(--mono);
  font-size: 0.4em;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

.dim { color: var(--fg-dim); font-weight: 400; }
.accent { color: var(--accent); }
.accent2 { color: var(--accent-2); }

/* ---------- section variants ---------- */
section.dark { background: var(--bg); }

section.center {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100% !important;
}

section.center.mid { align-items: center; text-align: center; }
section.center.bottom { justify-content: flex-end; padding-bottom: 8%; }

/* title / cover */
section.cover {
  display: flex !important; flex-direction: column; justify-content: center; height: 100% !important;
}
.wordmark {
  font-size: 1.3em;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 0.5em;
}
.wordmark .dot { width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--accent); display: inline-block; }
.cover h1 { font-size: 2.2em; margin-bottom: 0.25em; }
.cover .tagline { font-size: 0.55em; color: var(--fg-dim); max-width: 24em; line-height: 1.45; }

/* ---------- badges / tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.4em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
}
.tag.todecide {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, #3e8fff14, transparent);
}
.tag.todecide::before { content: "◆ "; }
.tag.op { color: var(--accent); border-color: var(--accent-dim); background: linear-gradient(180deg, #3e8fff14, transparent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5em; }
.tag-row-label { display: block; font-family: var(--mono); font-size: 0.40em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 0.5em; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.1em; width: 100%; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1em 1.3em;
}
.card h3 { font-size: 0.62em; margin-bottom: 0.3em; color: var(--fg); }
.card p, .card .desc { font-size: 0.42em; color: var(--fg-dim); line-height: 1.5; margin: 0; }
.card .label { font-family: var(--mono); font-size: 0.40em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5em; display: block; }

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.cap-list li {
  position: relative;
  padding-left: 0.85em;
  font-size: 0.42em;
  color: var(--fg);
  line-height: 1.45;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--accent);
}
.plan-list { gap: 0.38em; margin-top: 0.55em; }
.plan-list li { font-size: 0.38em; color: var(--fg-dim); }

/* ---------- paired ingredients (A + B) ---------- */
.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.15em;
  width: 100%;
  max-width: 36em;
}
.pair-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 1.7em 1.2em;
  border-radius: 16px;
  border: 1px solid #3e8fff33;
  background: #3e8fff14;
}
.pair-box h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent);
}
.pair-box p {
  margin: 0;
  font-size: 0.44em;
  line-height: 1.45;
  color: var(--fg-dim);
}
.pair-op {
  align-self: center;
  font-size: 1.05em;
  font-weight: 300;
  line-height: 1;
  color: var(--fg-mute);
}

/* ---------- stats ---------- */
.stats { display: flex; gap: 3em; width: 100%; }
.stat { flex: 1; }
.stat .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.35em;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.stat .num .accent { color: var(--accent); }
.stat .label { font-size: 0.42em; color: var(--fg-dim); margin-top: 0.35em; line-height: 1.4; }
.stat .src { font-family: var(--mono); font-size: 0.38em; color: var(--fg-mute); margin-top: 0.5em; display: block; }

/* ---------- paradigm-shift table (what breaks when you leave text) ---------- */
.shift {
  font-size: 0.54em;
  width: 100%;
  border-top: 1px solid var(--line);
}
.shift-row {
  display: grid;
  grid-template-columns: 0.95fr auto 1.3fr;
  align-items: center;
  gap: 1em;
  padding: 0.66em 0;
  border-bottom: 1px solid var(--line);
}
.shift-row .o {
  text-align: right;
  font-size: 1em;
  line-height: 1.25;
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: #3e8fff88;
  text-decoration-thickness: 2px;
}
.shift-row .a {
  font-family: var(--mono);
  font-size: 1em;
  color: var(--accent);
}
.shift-row .n {
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}
.shift-row .n span {
  display: block;
  margin-top: 0.15em;
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 400;
  line-height: 1.35;
  color: var(--fg-mute);
}

/* ---------- numbered steps ---------- */
.steps { display: grid; gap: 1em; width: 100%; }
.step { display: grid; grid-template-columns: 2.4em 1fr; gap: 0.9em; align-items: start; }
.step .n {
  font-family: var(--mono); font-weight: 700; font-size: 0.85em; color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: 50%;
  width: 1.5em; height: 1.5em; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 0.62em; margin-bottom: 0.15em; }
.step p { font-size: 0.42em; color: var(--fg-dim); line-height: 1.5; }

/* ---------- timeline ---------- */
.timeline { display: flex; width: 100%; position: relative; padding-top: 1.5em; }
.timeline::before {
  content: ""; position: absolute; top: 0.55em; left: 0; right: 0; height: 1px; background: var(--line);
}
.tl-item { flex: 1; position: relative; padding-right: 0.6em; }
.tl-item::before {
  content: ""; position: absolute; top: -1.5em; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item .m { font-family: var(--mono); font-size: 0.40em; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.tl-item h3 { font-size: 0.5em; margin: 0.3em 0 0.15em; }
.tl-item p { font-size: 0.40em; color: var(--fg-dim); line-height: 1.4; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1em; width: 100%; }
.member { text-align: left; }
.member img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px;
  filter: grayscale(35%) contrast(1.05);
  border: 1px solid var(--line);
  margin-bottom: 0.55em;
}
.member h3 { font-size: 0.46em; margin-bottom: 0.1em; }
.member .role { font-family: var(--mono); font-size: 0.38em; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35em; }
.member .did { font-size: 0.40em; color: var(--fg-dim); line-height: 1.4; }
.team.names-only { gap: 0.85em; }
.team.names-only .member {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.9em 0.85em;
}
.team.names-only .member h3 { font-size: 0.52em; }

/* ---------- architecture stack ---------- */
.stack { display: flex; flex-direction: column; gap: 0.6em; width: 100%; max-width: 30em; }
.stack .block {
  border: 1px solid var(--line); background: var(--bg-card); border-radius: var(--r);
  padding: 0.75em 1em;
}
.stack .block .t { font-size: 0.5em; font-weight: 700; }
.stack .block .s { font-family: var(--mono); font-size: 0.38em; color: var(--fg-dim); letter-spacing: 0.02em; }
.stack .block.hi { border-color: var(--accent-dim); background: linear-gradient(180deg, #3e8fff14, var(--bg-card)); }
.stack .down { align-self: center; color: var(--accent); font-family: var(--mono); font-size: 0.40em; }

/* ---------- research table ---------- */
.papers { display: flex; flex-direction: column; width: 100%; }
.paper {
  display: grid; grid-template-columns: 7em 1fr 1fr 5.5em; gap: 1em; align-items: center;
  padding: 0.7em 0; border-bottom: 1px solid var(--line);
}
.paper:last-child { border-bottom: none; }
.paper > div { min-width: 0; }
.paper .cat { font-family: var(--mono); font-size: 0.38em; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.paper .name { font-size: 0.55em; font-weight: 700; }
.paper .res { font-size: 0.4em; color: var(--fg-dim); }
.paper .venue { font-family: var(--mono); font-size: 0.40em; color: var(--fg-mute); text-align: right; white-space: nowrap; }

/* ---------- quote ---------- */
.quote { font-size: 1.05em; font-weight: 600; line-height: 1.3; max-width: 24em; }
.quote-src { font-family: var(--mono); font-size: 0.4em; color: var(--fg-mute); margin-top: 0.8em; }

/* ---------- possible data deals ---------- */
.deals { width: 100%; margin-top: 0.35em; }
.deal {
  display: grid;
  grid-template-columns: 13.5em 7.2em 1fr;
  gap: 1em;
  align-items: center;
  padding: 0.68em 0;
  border-top: 1px solid var(--line);
}
.deal:first-child { border-top: none; }
.deal-who b {
  display: block;
  font-size: 0.48em;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}
.deal-own { display: flex; flex-wrap: wrap; gap: 0.35em; }
.deal-own .tag {
  font-size: 0.32em;
  padding: 0.28em 0.55em;
  color: var(--accent);
  border-color: var(--accent-dim);
}
.deal-what {
  font-size: 0.42em;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* ---------- go-to-market × monetization (one clock, two columns) ---------- */
.gtm { width: 100%; max-width: 40em; }
.gtm-head, .gtm-row { display: grid; grid-template-columns: 7.2em 1fr 1fr; gap: 1.1em; align-items: start; }
.gtm-head {
  font-family: var(--mono); font-size: 0.36em; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute); padding-bottom: 0.9em;
}
.gtm-head .gtm-col-b { color: var(--accent); }
.gtm-row { padding: 0.72em 0; border-top: 1px solid var(--line); }
.gtm-phase b { display: block; font-size: 0.52em; font-weight: 700; color: var(--fg); line-height: 1.15; }
.gtm-phase span {
  display: block; font-family: var(--mono); font-size: 0.34em; letter-spacing: 0.05em;
  color: var(--fg-mute); margin-top: 0.3em;
}
.gtm-do, .gtm-pay { font-size: 0.4em; line-height: 1.45; }
.gtm-do { color: var(--fg-dim); }
.gtm-pay { color: var(--fg); }

/* ---------- flywheel ---------- */
.flywheel { display: flex; align-items: center; justify-content: center; gap: 0.6em; width: 100%; }
.fw-node {
  font-family: var(--mono); font-size: 0.42em; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--accent-dim); border-radius: 999px; padding: 0.55em 1.1em; color: var(--fg);
}
.fw-arrow { color: var(--accent); font-size: 0.5em; }

/* ---------- matrix (2x2) ---------- */
.matrix { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.8em; height: 60%; }
.mx-cell { border: 1px solid var(--line); border-radius: var(--r); padding: 0.8em; background: var(--bg-card); }
.mx-cell.hi { border-color: var(--accent); background: linear-gradient(135deg, #3e8fff1f, var(--bg-card)); }
.mx-cell .t { font-size: 0.42em; font-weight: 700; margin-bottom: 0.25em; }
.mx-cell .s { font-family: var(--mono); font-size: 0.38em; color: var(--fg-dim); line-height: 1.5; }
.mx-axis-x, .mx-axis-y { font-family: var(--mono); font-size: 0.38em; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- d3-rendered diagrams ---------- */
.d3-chart { width: 100%; }
.d3-chart svg { width: 100%; height: auto; max-height: 24em; display: block; margin: 0 auto; overflow: visible; }
.d3-chart .qtitle { font-family: var(--sans); font-weight: 700; fill: var(--fg); }
.d3-chart .qsub { font-family: var(--mono); fill: var(--fg-dim); }
.d3-chart .axislabel { font-family: var(--mono); fill: var(--fg-mute); letter-spacing: 0.5px; text-transform: uppercase; }
.d3-chart .nodelabel { font-family: var(--sans); font-weight: 700; fill: var(--fg); }
.d3-chart .nodesub { font-family: var(--mono); fill: var(--fg-dim); }
.d3-chart .nodewho { font-family: var(--mono); fill: var(--accent); }

/* ---------- PEVA method diagram (native, not a screenshot) ---------- */
.peva-diagram { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; width: 100%; }
.pd-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.pd-frames { display: flex; gap: 0.3em; }
.pd-thumb { width: 4.9em; height: 4.9em; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pd-thumb.pd-hi { border: 2px solid var(--accent); }
.pd-tag { font-family: var(--mono); font-size: 0.40em; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.55em; color: var(--accent); }
.pd-tag.predict { color: var(--fg); }
.pd-arrow-col { flex: 1 1 auto; min-width: 0; padding: 0; transform: translateY(-3.1em); }
.pd-pose { width: 5em; aspect-ratio: 1; object-fit: contain; border-radius: 6px; display: block; background: transparent; }
.pd-arrow-label { font-family: var(--mono); font-size: 0.38em; color: var(--fg-dim); margin-top: 0.3em; white-space: nowrap; text-align: center; }
.pd-arrow-label strong { color: var(--fg); }
.pd-longarrow { position: relative; width: 100%; margin: 0.5em 0 0; height: 2px; background: var(--fg-mute); }
.pd-longarrow::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 10px solid var(--fg-mute); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.pd-predict-img { width: 6.9em; height: 6.9em; object-fit: cover; border-radius: 10px; border: 2px solid var(--fg); display: block; }

/* ---------- PEVA counterfactual planning (composed from elements) ---------- */
.plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.85em;
  width: 100%;
  margin-top: 0.55em;
}
.plan-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}
.plan-frame {
  width: 4.4em;
  height: 4.4em;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: block;
  background: var(--bg-card);
}
.plan-tag {
  font-family: var(--mono);
  font-size: 0.36em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0.25em 0.65em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.plan-tag.goal {
  color: #3ecf8e;
  border-color: #3ecf8e55;
  background: linear-gradient(180deg, #3ecf8e18, transparent);
}

.plan-branches {
  display: flex;
  flex-direction: column;
  gap: 0.28em;
  min-width: 0;
  justify-self: center;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.38em;
  border-radius: 9px;
  border: 1px solid transparent;
}
.plan-row.hi {
  border-color: #3ecf8e66;
  background: linear-gradient(90deg, #3ecf8e14, transparent 55%);
}
.plan-pose {
  width: 3.0em;
  height: 2.15em;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}
.plan-row.hi .plan-pose { border-color: #3ecf8e; }

.plan-gens {
  display: flex;
  gap: 0.28em;
  min-width: 0;
  flex: 1;
  justify-content: flex-start;
}
.plan-gens figure {
  margin: 0;
  flex: 0 0 auto;
  width: 2.55em;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
}
.plan-gens img {
  width: 2.55em;
  height: 2.55em;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
  background: var(--bg-card);
}
.plan-row.hi .plan-gens img { border-color: #3ecf8e55; }
.plan-gens figcaption {
  font-family: var(--mono);
  font-size: 0.3em;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  text-align: center;
  line-height: 1;
}
.plan-row.hi .plan-gens figcaption { color: #3ecf8e; }

.plan-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.55em;
}
.plan-dot {
  width: 0.42em;
  height: 0.42em;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--fg-mute);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.plan-dot:hover { border-color: var(--fg-dim); transform: scale(1.15); }
.plan-dot.is-on {
  background: var(--accent);
  border-color: var(--accent);
}
.plan-widget-clickable { cursor: pointer; }

/* ---------- WMM / TraceGen: one frame in, dense 3D tracks out ---------- */
.wmm {
  --wc: 6.3em;              /* media cell edge */
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 1.3em;
  row-gap: 0.7em;
  width: 100%;
  margin-top: 0.9em;
}
.wmm-head {
  font-family: var(--mono); font-size: 0.38em; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.55em;
}
.wmm-cells { display: flex; gap: 0.5em; }
.wmm-cells.in { grid-area: 1 / 1; }
.wmm-arrow { grid-area: 1 / 2; }
.wmm-cells.out { grid-area: 1 / 3; }
.wmm-tag.in { grid-area: 2 / 1; }
.wmm-tag.out { grid-area: 2 / 3; }

.wmm-cell { display: flex; flex-direction: column; align-items: center; gap: 0.4em; }
.wmm-cell img,
.wmm-cell video {
  width: var(--wc);
  height: var(--wc);
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.wmm-cell.hi img,
.wmm-cell.hi video { border-color: var(--accent); box-shadow: 0 0 0 1px #3e8fff1a, 0 6px 26px #3e8fff12; }
.wmm-cell span { font-family: var(--mono); font-size: 0.38em; letter-spacing: 0.04em; color: var(--fg-mute); }

.wmm-arrow { display: flex; flex-direction: column; align-items: center; gap: 0.5em; color: var(--accent); }
.wmm-arrow b { font-family: var(--mono); font-size: 0.4em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.wmm-arrow i { position: relative; display: block; width: 3.4em; height: 1px; background: currentColor; }
.wmm-arrow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.34em;
  height: 0.34em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.wmm-arrow.vertical i { transform: rotate(90deg); }
.wmm-arrow.compact i { width: 2em; }

.wmm-tag {
  font-family: var(--mono);
  font-size: 0.4em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--fg-dim);
}
.wmm-tag.out { color: var(--accent); border-color: var(--accent-dim); background: linear-gradient(180deg, #3e8fff14, transparent); }

/* ---------- vision / method-stack diagram (concentric layers, fragment-animated) ---------- */
.vision-diagram { width: min(100%, 38em); margin: 0 auto; }
.vision-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.vd-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.vd-ring.outer { stroke: #a78bff; stroke-opacity: 0.5; stroke-dasharray: 5 6; }
.vd-ring.bright { stroke: #3e8fff; stroke-opacity: 0.9; stroke-width: 2; filter: drop-shadow(0 0 7px #3e8fffaa); }
.vd-core-circle { fill: #0d1220; fill-opacity: 0.6; stroke: #ffffff; stroke-width: 1.5; }

/* glowing ring boundaries, one per layer, all solid */
.vd-ring-glow { fill: none; stroke-width: 2.2; }
.vd-ring-glow.core { stroke: #f2f7ff; stroke-opacity: 0.95; filter: drop-shadow(0 0 3px #ffffffcc) drop-shadow(0 0 15px #c3d8ffaa); }
.vd-ring-glow.world { stroke: #6babff; stroke-opacity: 0.92; filter: drop-shadow(0 0 3px #6babffcc) drop-shadow(0 0 17px #3e8fff99); }
.vd-ring-glow.engine { stroke: #bda3ff; stroke-opacity: 0.92; filter: drop-shadow(0 0 3px #bda3ffcc) drop-shadow(0 0 17px #a78bff99); }

/* glass + glow chips: dark translucent fill, luminous colored border, no more flat solid boxes */
.vd-chip { fill: #0d1220; fill-opacity: 0.55; stroke: #cfe2ff; stroke-width: 1.25; }
.vd-chip.core { stroke: #ffffff; stroke-width: 1.5; }
.vd-chip.mod { stroke: #7ec8ff; }
.vd-chip.deep { stroke: #5b8cff; }
.vd-chip.orch { stroke: #b389ff; }
.vd-chip.tbd { fill: #0d1220; fill-opacity: 0.4; stroke: #5b6478; stroke-width: 1.25; stroke-dasharray: 4 4; }
.vd-chip.universe { fill: #10182a; fill-opacity: 0.72; stroke: #8eb6ff; stroke-width: 1.5; }

.vd-chip-text { font-family: var(--sans); font-weight: 700; font-size: 26px; text-anchor: middle; letter-spacing: 0.2px; }
.vd-chip-text.core { fill: #ffffff; }
.vd-chip-text.mod { fill: #bfe0ff; }
.vd-chip-text.deep { fill: #cddcff; }
.vd-chip-text.orch { fill: #e7dbff; }
.vd-chip-text.tbd { fill: #9298ab; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.3px; }
.vd-chip-text.universe { fill: #e8f0ff; font-size: 17px; letter-spacing: 0.15px; }
.vd-chip-text .vd-layer { fill: #3e8fff; }
.vd-chip-sub { font-family: var(--sans); font-weight: 700; font-size: 26px; text-anchor: middle; fill: #9aa9c4; letter-spacing: 0.2px; }
/* each layer's sub-label matches its own heading exactly */
.vd-chip-sub.core { fill: #ffffff; }
.vd-chip-sub.deep { fill: #cddcff; }
.vd-chip-sub.orch { fill: #e7dbff; }

.vd-arrow { stroke: #6b7690; stroke-width: 1.5; fill: none; }
.vd-arrow.dotted { stroke-dasharray: 2 5; stroke: #565f75; }
.vd-arrow-label { font-family: var(--mono); fill: #7d879c; font-size: 14px; }
.vision-diagram .fragment { transition: opacity .5s ease, transform .5s ease; }

.vd-star { fill: #dce8ff; }
.vd-node-glow { fill: #a78bff; }
.vd-node-dot { fill: #e4d9ff; }
.vd-node-label {
  font-family: var(--mono); fill: #9aa3b8; font-size: 19px; text-anchor: middle;
  /* labels sit across the ring arcs — knock the ring out behind the glyphs */
  paint-order: stroke fill; stroke: #05070d; stroke-width: 5px; stroke-linejoin: round;
}
.vd-ray { stroke: #a78bff; stroke-opacity: 0.4; stroke-width: 1; }

/* ---------- competitor rows ---------- */
.rows { display: flex; flex-direction: column; width: 100%; }
.row-item {
  display: grid; grid-template-columns: 11em 8em 1fr; gap: 1em; align-items: center;
  padding: 0.65em 0; border-bottom: 1px solid var(--line);
}
.row-item > div { min-width: 0; }
.row-item:last-child { border-bottom: none; }
.row-item.us { background: linear-gradient(90deg, #3e8fff14, transparent); border-radius: 8px; padding-left: 0.5em; margin-left: -0.5em; }
.row-item .name { font-size: 0.48em; font-weight: 700; }
.row-item .who { font-family: var(--mono); font-size: 0.38em; color: var(--fg-mute); }
.row-item .desc { font-size: 0.42em; color: var(--fg-dim); }

/* ---------- per-layer pop-up on the Ontos One diagram ---------- */
.layer-pop {
  position: absolute; left: 50%; bottom: 3.5%; z-index: 20;
  width: min(88%, 30em); text-align: left;
  padding: 0.9em 1.15em;
  border-radius: var(--r);
  border: 1px solid var(--accent-dim);
  background: linear-gradient(180deg, #121826f2, #0b0e16f2);
  box-shadow: 0 18px 50px #00000080, 0 0 0 1px #3e8fff1f;
  /* reveal drives opacity/visibility; the lift and scale ride along */
  transform: translate(-50%, 10px) scale(0.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.3,1.15);
}
.layer-pop.current-fragment { transform: translate(-50%, 0) scale(1); }
.layer-pop .lp-k {
  display: block; font-family: var(--mono); font-size: 0.34em;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.layer-pop h3 { font-size: 0.62em; margin: 0.32em 0 0.28em; color: var(--fg); }
.layer-pop p { font-size: 0.4em; line-height: 1.5; color: var(--fg-dim); margin: 0; }

/* ---------- competitive landscape tables ---------- */
.cmp {
  width: 100%;
  margin-top: 0.25em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-card);
}
.cmp-row {
  display: grid;
  grid-template-columns: 15.4em repeat(3, 1fr);
  align-items: center;
  gap: 0.15em;
  padding: 0.42em 0.9em;
  border-top: 1px solid var(--line);
}
.cmp-row:first-child { border-top: none; }
.cmp.domains .cmp-row {
  grid-template-columns: 15.4em repeat(5, 1fr);
  padding: 0.32em 0.9em;
}
.cmp.cmp-2col .cmp-row {
  grid-template-columns: 15.4em repeat(2, 1fr);
}
.cmp-head {
  background: var(--bg-raised);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
.cmp-head > div {
  font-family: var(--mono);
  font-size: 0.33em;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg);
  text-align: center;
  line-height: 1.3;
  font-weight: 650;
}
.cmp-head > div span {
  display: block;
  margin-top: 0.12em;
  font-size: 0.88em;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg-mute);
  font-weight: 400;
}
.cmp-head .cmp-who { text-align: left; }
.cmp-who { min-width: 0; padding-right: 0.6em; }
.cmp-who b {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}
.cmp-who span {
  display: block;
  font-family: var(--mono);
  font-size: 0.30em;
  color: var(--fg-mute);
  margin-top: 0.16em;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.cmp-row > div:not(.cmp-who) { text-align: center; }
.cmp-us {
  background: linear-gradient(90deg, #3e8fff24, #3e8fff0c 38%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.cmp-us .cmp-who b { color: var(--accent); }
.cmp i.dot {
  display: inline-block;
  width: 0.46em;
  height: 0.46em;
  border-radius: 50%;
  vertical-align: middle;
  box-sizing: border-box;
}
.cmp i.dot.full {
  background: var(--accent);
  box-shadow: 0 0 8px #3e8fff55;
}
.cmp i.dot.part {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  border: 2px solid var(--accent);
}
.cmp i.dot.none {
  background: transparent;
  border: 2px solid #3a3d48;
}
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85em 1.15em;
  margin-top: 0.55em;
}
.cmp-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.cmp-legend i.dot {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  box-sizing: border-box;
}
.cmp-legend i.dot.full { background: var(--accent); }
.cmp-legend i.dot.part {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  border: 2px solid var(--accent);
}
.cmp-legend i.dot.none { background: transparent; border: 2px solid #3a3d48; }
.cmp-legend .cmp-note {
  flex: 1 1 18em;
  color: var(--fg-mute);
  font-size: 0.95em;
}

/* ---------- budget ---------- */
.budget { display: flex; flex-direction: column; width: 100%; gap: 0.5em; }
.bud-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.6em; }
.bud-item .name { font-size: 0.44em; color: var(--fg); }
.bud-item .amt { font-family: var(--mono); font-size: 0.5em; font-weight: 700; color: var(--fg); }
.bud-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bud-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7dc4ff); }

/* ---------- raise: base / accelerated ---------- */
.raise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  width: 100%;
  margin-top: 0.15em;
}
.raise-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.95em 1.15em 1.05em;
}
.raise-col.hi {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, #3e8fff14, var(--bg-card));
  box-shadow: inset 3px 0 0 var(--accent);
}
.raise-head { margin-bottom: 0.7em; }
.raise-head .label { margin-bottom: 0.35em; }
.raise-ask {
  font-family: var(--mono);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.raise-col.hi .raise-ask { color: var(--accent); }
.raise-sub {
  font-size: 0.36em;
  color: var(--fg-mute);
  margin-top: 0.25em;
  line-height: 1.35;
}
.raise-rows { display: flex; flex-direction: column; gap: 0.35em; }
.raise-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.28em 0;
  border-top: 1px solid var(--line);
  font-size: 0.4em;
}
.raise-row:first-child { border-top: none; padding-top: 0; }
.raise-row span { color: var(--fg-dim); }
.raise-row b {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--fg);
  font-size: 1.05em;
}
.raise-row b i {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85em;
}
.raise-row.total {
  margin-top: 0.2em;
  padding-top: 0.45em;
  border-top: 1px solid var(--accent-dim);
}
.raise-row.total span { color: var(--fg); font-weight: 600; }
.raise-row.total b { color: var(--accent); }

/* ---------- verticals icon grid ---------- */
.icongrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; width: 100%; }
.icard { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-card); overflow: hidden; }
.icard .glyph { font-family: var(--mono); font-size: 0.7em; color: var(--accent); margin-bottom: 0.4em; }
.icard-body { padding: 0.7em 1em 0.85em; }
.icard h3 { font-size: 0.46em; margin-bottom: 0.15em; }
.icard p { font-size: 0.40em; color: var(--fg-dim); }

/* ---------- card media: paper figure with a source chip ---------- */
.icard-media {
  position: relative; aspect-ratio: 2/1; width: 100%;
  border-bottom: 1px solid var(--line); background: var(--bg-raised);
}
.icard-media img,
.icard-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.icard-src {
  position: absolute; left: 0.45em; bottom: 0.45em;
  font-family: var(--mono); font-size: 0.34em; letter-spacing: 0.05em;
  color: var(--fg); background: #08090cc4; border: 1px solid #ffffff1f;
  padding: 0.32em 0.6em; border-radius: 999px; white-space: nowrap;
}
.reveal .slides section.start-mkt {
  justify-content: flex-start;
  padding-top: 3.6%;
  padding-bottom: 3.2%;
  overflow: hidden;
}
.reveal .slides section.start-mkt > h2 { margin-bottom: 0.12em; }
.reveal .slides section.start-mkt > .lede { margin-bottom: 0.45em; }
.start-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  width: 100%;
  align-items: stretch;
}
.start-pair .card {
  display: flex;
  flex-direction: column;
  padding: 0.85em 0.95em 0.85em;
  min-height: 0;
}
.start-pair .card h3 { font-size: 0.58em; margin-bottom: 0.28em; }
.start-pair .card .desc {
  font-size: 0.4em;
  line-height: 1.45;
  flex: 1 1 auto;
  min-height: 0;
}
.start-vid,
.start-wall {
  flex: 0 0 7.2em;
  width: 100%;
  height: 7.2em;
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-sizing: border-box;
}
.start-vid {
  object-fit: cover;
  display: block;
}
.start-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  overflow: hidden;
}
.start-wall video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 0;
  min-height: 0;
}

/* ---------- progress / footer ---------- */
.reveal .progress { color: var(--accent); height: 3px; }
.reveal .controls { color: var(--fg-dim); }

.reveal .slides section::after {
  content: "Ontos Labs Confidential — not for distribution";
  position: absolute;
  left: 5.5%;
  bottom: 2.4%;
  z-index: 8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  opacity: 0.78;
  pointer-events: none;
  white-space: nowrap;
}
.reveal .slides section[style*="padding:0"]::after,
.reveal .slides section[style*="padding: 0"]::after {
  left: 2.4%;
  bottom: 2.2%;
}

/* ---------- grid overview (O) ---------- */
.sgo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: #05070ccc;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg);
}
.sgo.is-open { display: flex; }
html.sgo-active { overflow: hidden; }
.sgo-bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.sgo-hint { color: var(--fg-mute); letter-spacing: 0.04em; text-transform: none; }
.sgo-grid {
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  /* Fixed track size so thumbs stay true 16:9 mini-slides, not full-bleed strips. */
  grid-template-columns: repeat(auto-fill, 320px);
  justify-content: start;
  gap: 0.9rem;
  padding: 0.5rem 1.2rem 1.5rem;
  align-content: start;
}
.sgo-cell {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0;
  margin: 0;
  width: 320px;
  /* Critical: overflow:hidden on the grid item collapses aspect-ratio height. */
  overflow: visible;
  align-self: start;
  height: auto;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sgo-cell:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px #00000066;
}
.sgo-cell.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 28px #3e8fff22;
}
.sgo-frame {
  position: relative;
  width: 320px;
  height: 180px; /* 16:9 of 320 — explicit, no aspect-ratio collapse */
  overflow: hidden;
  border-radius: 7px;
  background: var(--bg);
  pointer-events: none;
}
.sgo-thumb {
  display: block;
  width: 320px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: var(--bg);
}
.sgo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.sgo-frame.has-thumb .sgo-placeholder { display: none; }
.sgo-ph-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.sgo-badge {
  position: absolute;
  left: 7px;
  bottom: 6px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: #000000aa;
  padding: 3px 6px;
  border-radius: 4px;
}

.slide-idx {
  position: absolute; bottom: 4.2%; right: 5.5%;
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute); letter-spacing: 0.05em;
}
.slide-tag {
  position: absolute; top: 5%; right: 5.5%;
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute); letter-spacing: 0.12em; text-transform: uppercase;
}

/* fragments */
.reveal .fragment.fade-up { opacity: 0; transform: translateY(14px); transition: all .5s ease; }
.reveal .fragment.fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal .fragment.grow-in { opacity: 0; transform: scale(0.94); transition: all .45s ease; }
.reveal .fragment.grow-in.visible { opacity: 1; transform: scale(1); }
.reveal .fragment.strike.visible { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--fg-mute); }
.reveal .fragment.fade-out { opacity: 1; }
.reveal .fragment.fade-out.visible { opacity: 0; }
.punct-swap {
  display: inline-grid;
  justify-items: start;
  align-items: baseline;
}
.punct-swap > .fragment { grid-area: 1 / 1; }

/* photo / divider slides */
.photo-divider { position: relative; width: 100%; height: 100%; }
.photo-divider img, .photo-divider video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  filter: grayscale(20%) brightness(0.55) contrast(1.1);
}
.photo-divider .pd-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 5.5% 8%; }
.photo-divider .pd-content.mid { justify-content: center; align-items: center; text-align: center; padding: 0 5.5%; }
.photo-divider { width: 100%; }
.photo-divider::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #08090cee 10%, #08090c66 55%, transparent 90%); z-index: 1;
}
/* no text overlaid -> no darkening needed, show the footage at full brightness */
.photo-divider.plain img, .photo-divider.plain video { filter: none; }
.photo-divider.plain::after { content: none; }

.video-wall { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; background: #000; overflow: hidden; }
.photo-divider .video-wall video { min-height: 0; }
.photo-divider .video-wall video { position: static; inset: auto; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(15%) brightness(0.68) contrast(1.08); }

/* ---------- spot-the-difference pop-up (SVE problem slide) ---------- */
.spot-pop {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em;
  background: #05070d;
  /* fragment machinery drives opacity/visibility; scale rides along for the pop */
  transform: scale(0.9); transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.3,1.2);
}
.spot-pop.current-fragment { transform: scale(1); }
/* the answer frame sits on top and swaps in instantly, so only the red rings read as new */
.spot-pop.answer { z-index: 31; transform: none; transition: opacity .18s ease; }
.spot-pop-inner { display: flex; gap: 1.4em; align-items: center; justify-content: center; width: 100%; }
.spot-fig { position: relative; width: 44%; max-width: 74vh; margin: 0; line-height: 0; }
.spot-fig img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r); border: 1px solid var(--line);
}
.spot-mark {
  position: absolute; width: 10.67%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px solid #ff3b30; border-radius: 50%;
  box-shadow: 0 0 10px #ff3b3070, inset 0 0 10px #ff3b3040; pointer-events: none;
}
.spot-pop-cap {
  font-family: var(--mono); font-size: 0.42em; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.spot-pop-cap.answer { color: #ff6a60; }

/* cold-open variant: the frame is already up when the slide lands, and is
   dismissed at the end — mirrors the build order of the original SVE deck */
/* The section is position:absolute with height:auto, so inset:0 only covers the
   base slide's content height. min-height pins the backdrop to the full 720px
   deck frame, and the figures are sized in em (deck units, not vh) so the
   column height is deterministic: 518 + 18 gap + 42 caption = 578 of 720. */
.spot-pop.coldopen { transform: none; min-height: 720px; }
.spot-pop.coldopen .spot-fig { width: 14.8em; max-width: none; }
.spot-caps { position: relative; width: 100%; height: 1.2em; flex: 0 0 auto; }
.spot-caps .spot-pop-cap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
/* source frames are square (768x768), so a fixed box keeps the ring
   percentages — which are relative to the figure, not the image — honest */
.spot-fig.mini { width: 6em; height: 6em; max-width: none; flex: 0 0 auto; }
.spot-fig.mini .spot-mark { border-width: 2px; box-shadow: none; }

/* Two states for the pair, alternating through the build: on the big-text beats
   ("Two images.", the eyeball line) it shrinks and lifts to make room underneath;
   on the short-caption beats it sits full size. Keyed off which fragment is
   current rather than a per-element toggle, because reveal's .visible only ever
   goes one way and the pair has to travel back down and up again. */
.spot-pop.coldopen .spot-pop-inner {
  transform: scale(0.86) translateY(-13%);
  transition: transform .5s cubic-bezier(.22,.75,.28,1);
}
.spot-pop.coldopen:has(.spot-pop-cap.current-fragment) .spot-pop-inner { transform: none; }
.spot-say {
  position: absolute; left: 0; right: 0; bottom: 7%; z-index: 31;
  display: flex; justify-content: center; padding: 0 8%;
}
.spot-say p {
  margin: 0; text-align: center; max-width: 22em;
  font-size: 1.05em; font-weight: 650; line-height: 1.14; letter-spacing: -0.02em;
}
.spot-say em { font-style: normal; color: var(--accent); }

/* one-sentence beats, full frame — the text-only slides from the original */
.spot-line {
  position: absolute; inset: 0; z-index: 32; background: #05070d;
  display: flex; align-items: center; justify-content: center; padding: 0 8%;
}
.spot-line p {
  margin: 0; text-align: center; max-width: 21em;
  font-size: 1.05em; font-weight: 650; line-height: 1.14; letter-spacing: -0.02em;
}
.spot-line em { font-style: normal; color: var(--accent); }
.spot-line.punch p { font-size: 1.5em; max-width: 14em; }

/* ---------- generative decoration for slides without source imagery ---------- */
.viz {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.viz-rings {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
}
.viz-rings .ring {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--accent-dim);
}
.viz-dots {
  position: absolute; inset: -10%;
  background-image: radial-gradient(circle, #3e8fff30 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 0%, transparent 75%);
}
.viz-sweep {
  position: absolute; top: 50%; left: 50%; width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, #5b8cff22 25deg, transparent 70deg);
  border-radius: 50%;
}
.viz-grip {
  position: absolute; right: 8%; bottom: -6%; width: 46%; aspect-ratio: 1;
}
.viz-grip .ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--accent-dim);
}

/* safety net: flex/grid items should never force overflow via default min-width:auto */
.grid > *, .steps > .step, .stats > .stat, .icongrid > *, .team > *,
.rows > .row-item, .papers > .paper, .timeline > .tl-item, .mx-cell,
.budget > .bud-item, .shift-row > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .team, .icongrid, .grid-3, .grid-5 { grid-template-columns: repeat(2,1fr); }
}

/* ---------- world model diagram: two-panel encoder/latent/decoder flow ---------- */
.wm-diagram { display: flex; align-items: center; gap: 1.3em; width: 100%; }
.wm-panel { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wm-panel.hi .wm-title { color: var(--accent); }
.wm-title { font-size: 0.95em; font-weight: 800; letter-spacing: -0.2px; }
.wm-sub { font-family: var(--mono); font-size: 0.44em; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.05em; margin: 0.2em 0 0.5em; }
.wm-thumbs { display: flex; gap: 0.45em; }
.wm-thumb { width: 3.1em; height: 3.1em; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.wm-panel.hi .wm-thumb { border-color: var(--accent-dim); }
.wm-arrow-sm { color: var(--fg-mute); font-family: var(--mono); font-size: 0.5em; line-height: 1; margin: 0.14em 0; }
.wm-box { width: 100%; border: 1px solid var(--line); background: var(--bg-card); border-radius: 10px; padding: 0.65em 1em; }
.wm-panel.hi .wm-box { border-color: var(--accent-dim); background: linear-gradient(180deg, #3e8fff0c, var(--bg-card)); }
.wm-box .t { font-size: 0.62em; font-weight: 700; color: var(--fg); }
.wm-box .s { font-family: var(--mono); font-size: 0.42em; color: var(--fg-dim); margin-top: 0.2em; }
.wm-latent { width: 100%; border-radius: 12px; padding: 0.85em 1em; position: relative; overflow: hidden; }
.wm-latent.unconstrained { border: 1px dashed var(--line); background: var(--bg-raised); height: 7.2em; display: flex; flex-direction: column; }
.wm-latent.unconstrained .wm-latent-label { text-align: left; margin-bottom: 0.25em; position: relative; z-index: 2; }
.wm-latent.structured { border: 1.5px solid var(--accent-dim); background: linear-gradient(180deg, #3e8fff14, var(--bg-raised)); min-height: 7.2em; display: flex; flex-direction: column; justify-content: center; }
.wm-latent-label { font-family: var(--mono); font-size: 0.4em; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5em; }
.wm-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 0.45em; background: var(--bg-card); }
.wm-grid .cell { padding: 0.55em 0.25em; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em; }
.wm-grid .cell:last-child { border-right: none; }
.wm-grid .cell .g { font-family: var(--mono); font-size: 1em; color: var(--fg); line-height: 1; }
.wm-grid .cell .l { font-family: var(--mono); font-size: 0.40em; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; }
.wm-grid.ops { border-color: var(--accent-dim); background: var(--accent); }
.wm-grid.ops .cell { border-right-color: #ffffff33; }
.wm-grid.ops .cell .g, .wm-grid.ops .cell .l { color: #0a1628; }
.wm-grid.ops .cell .l { opacity: 0.75; }
.wm-dots { position: absolute; inset: 0; }
.wm-dots svg { width: 100%; height: 100%; }
.wm-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; margin-bottom: 0.55em; }
.wm-icons .chip, .wm-ops .chip { font-family: var(--mono); font-size: 0.38em; padding: 0.45em 0.7em; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.wm-icons .chip { border: 1px solid var(--line); color: var(--fg); background: var(--bg-card); }
.wm-ops { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; }
.wm-ops .chip { color: #0a1628; border: 1px solid var(--accent); background: var(--accent); }
.wm-connector { flex: 0 0 auto; color: var(--accent); font-size: 1.8em; font-family: var(--mono); }

/* ---------- structured agentic world model (self-improving) ---------- */
.sl-lede {
  max-width: none;
  margin: 0 0 0.55em;
  font-size: 0.40em;
  color: var(--fg-dim);
}

.sl {
  --cg: 3.4em;   /* cycle column gap */
  --rg: 3em;     /* cycle row gap    */
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 320;
  container-type: size;
  font-size: clamp(9px, 7.2cqh, 18px);
  display: grid;
  grid-template-columns: 1fr 3.5fr;
  column-gap: 3em;
}

/* fragments fade only — the grid never moves */
.sl .fragment {
  opacity: 0 !important;
  transition: opacity .45s ease, transform .45s ease;
}
.sl .fragment.visible,
.sl .fragment.current-fragment { opacity: 1 !important; }
.sl .fade-up.fragment:not(.visible) { transform: translateY(6px); }

/* ---- shared card chrome ---- */
.sl-seed,
.sl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.6em 0.7em 0.55em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
}
.sl-node.hero {
  border-color: var(--accent);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #3e8fff1f, transparent 65%),
    var(--bg-raised);
  box-shadow: 0 0 0 1px #3e8fff1a, 0 6px 30px #3e8fff12;
}

.sl-cap {
  font-family: var(--mono);
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.sl-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: 0.35em 0;
}
.sl-sub {
  font-family: var(--mono);
  font-size: 0.66em;
  line-height: 1.3;
  color: var(--fg-mute);
}
.sl-sub b { color: var(--accent); font-weight: 700; }
.sl-sub sub { font-size: 0.75em; }

/* ---- seed card ---- */
.sl-thumbs {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.35em;
}
.sl-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  display: block;
}

/* ---- the cycle: 2x2 with the loop running around it ---- */
.sl-cycle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: var(--cg);
  row-gap: var(--rg);
}

/* structured latent chips */
.sl-chips {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3em;
}
.sl-chips span {
  font-family: var(--mono);
  font-size: 0.72em;
  line-height: 1;
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0.4em 0.6em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff05;
  color: var(--fg-dim);
}
.sl-chips span.hi {
  border-color: var(--accent);
  background: linear-gradient(90deg, #3e8fff2e, #3e8fff0d);
  color: var(--fg);
  font-weight: 700;
}

/* world model equation */
.sl-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
}
.sl-eq .t {
  font-family: var(--mono);
  font-size: 1.3em;
  line-height: 1;
  padding: 0.45em 0.55em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff06;
  color: var(--fg-dim);
  white-space: nowrap;
}
.sl-eq .t.hi {
  border-color: var(--accent);
  background: linear-gradient(180deg, #3e8fff33, #3e8fff0f);
  color: var(--fg);
  font-weight: 700;
}
.sl-eq .t sub { font-size: 0.68em; vertical-align: baseline; }
.sl-eq .op { font-family: var(--mono); font-size: 1.1em; color: var(--fg-mute); }

/* act in the world */
.sl-globe {
  width: 3.8em;
  height: 3.8em;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background:
    radial-gradient(circle at 34% 28%, #7dc4ff55, transparent 52%),
    linear-gradient(160deg, #151822, #0d1220);
  box-shadow: 0 0 22px #3e8fff26;
  position: relative;
}
.sl-globe::before,
.sl-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #3e8fff3d;
  border-radius: 50%;
}
.sl-globe::before { inset: 0 30%; }
.sl-globe::after { inset: 32% 0; }

/* new observations */
.sl-obs-strip {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3em;
}
.sl-obs-strip img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--accent-dim);
  display: block;
}

/* ---- seed arrow (video -> latent) ---- */
.sl-arr.seed {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 3em;
  height: 2px;
  background: var(--accent-2);
  transform: translateY(-50%);
}
.sl-arr.seed::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent-2);
}
.sl-arr.seed::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 0.6em;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.56em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}

/* ---- the four cycle arrows, positioned exactly on the grid gaps ---- */
.sl-cyc {
  position: absolute;
  background: var(--accent-2);
}
.sl-cyc::after {
  content: "";
  position: absolute;
  border: 5px solid transparent;
}
.sl-cyc::before {
  content: attr(data-label);
  position: absolute;
  font-family: var(--mono);
  font-size: 0.56em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}

/* top: latent -> world model, pointing right */
.sl-cyc.top {
  height: 2px;
  width: var(--cg);
  left: 50%;
  top: calc((100% - var(--rg)) / 4);
  transform: translate(-50%, -50%);
}
.sl-cyc.top::after {
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--accent-2);
  border-right: 0;
}
.sl-cyc.top::before { left: 50%; bottom: 0.6em; transform: translateX(-50%); }

/* right: world model -> act, pointing down */
.sl-cyc.right {
  width: 2px;
  height: var(--rg);
  top: 50%;
  left: calc(100% - (100% - var(--cg)) / 4);
  transform: translate(-50%, -50%);
}
.sl-cyc.right::after {
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 8px solid var(--accent-2);
  border-bottom: 0;
}
.sl-cyc.right::before { left: 0.85em; top: 50%; transform: translateY(-50%); }

/* bottom: act -> new observations, pointing left */
.sl-cyc.bottom {
  height: 2px;
  width: var(--cg);
  left: 50%;
  top: calc(100% - (100% - var(--rg)) / 4);
  transform: translate(-50%, -50%);
}
.sl-cyc.bottom::after {
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 8px solid var(--accent-2);
  border-left: 0;
}
.sl-cyc.bottom::before { left: 50%; top: 0.6em; transform: translateX(-50%); }

/* left: new observations -> latent, pointing up (this is the self-condition) */
.sl-cyc.left {
  width: 2px;
  height: var(--rg);
  top: 50%;
  left: calc((100% - var(--cg)) / 4);
  transform: translate(-50%, -50%);
}
.sl-cyc.left::after {
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 8px solid var(--accent-2);
  border-top: 0;
}

/* ---- hub at the centre of the loop ---- */
.sl-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55em;
  max-height: var(--rg);
  padding: 0.3em 0.85em 0.3em 0.5em;
  border-radius: 999px;
  border: 1px solid #3e8fff2e;
  background: var(--bg);
  box-shadow: 0 0 22px #3e8fff1f;
}
.sl-hub-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  text-align: left;
}
.sl-ring {
  flex: 0 0 auto;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  border: 2px solid #3e8fff2e;
  border-top-color: var(--accent);
  border-right-color: #7dc4ff;
  box-shadow: 0 0 12px #3e8fff3d;
  animation: sl-spin 2.6s linear infinite;
}
.sl-hub:not(.visible):not(.current-fragment) .sl-ring { animation-play-state: paused; }
@keyframes sl-spin { to { transform: rotate(360deg); } }
.sl-hub b {
  font-family: var(--mono);
  font-size: 0.66em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.sl-hub span {
  font-family: var(--mono);
  font-size: 0.56em;
  line-height: 1.2;
  color: var(--fg-mute);
  white-space: nowrap;
}

/* ---------- geospatial / env-monitoring market deep-dives ---------- */
.reveal .slides section.geo-slide,
.reveal .slides section.env-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  height: 100% !important;
  padding: 2.2% 3% 2.4%;
  overflow: hidden;
}
.mkt-block {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.7em 0.8em;
  overflow: hidden;
}
.mkt-block > .label { margin-bottom: 0.28em; }
.mkt-block > h3 {
  font-size: 0.62em;
  margin: 0 0 0.22em;
}
.mkt-block > .desc {
  font-size: 0.4em;
  line-height: 1.45;
  margin: 0 0 0.55em;
  flex: 0 0 auto;
}
.mkt-block .geo-board,
.mkt-block .env-fill {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  overflow: hidden;
}
.env-fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.env-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7em;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
}
.env-wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.48em;
  letter-spacing: -0.02em;
}
.env-wordmark span { color: var(--accent); font-weight: 500; }
.env-devices {
  width: auto;
  max-width: 11em;
  max-height: 3.6em;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.env-use {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4em;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.env-use .card {
  padding: 0.55em 0.6em 0.6em;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-raised);
}
.env-ico {
  width: 0.9em;
  height: 0.9em;
  color: var(--accent);
  margin-bottom: 0.3em;
  flex: 0 0 auto;
}
.env-use h3 {
  font-size: 0.42em;
  line-height: 1.22;
  margin-bottom: 0.22em;
}
.env-use p {
  font-size: 0.36em;
  line-height: 1.35;
}
.env-fill > .source { margin-top: 0; flex: 0 0 auto; }

.geo-board {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 0.4em;
  width: 100%;
  align-items: stretch;
}
.geo-globe-wrap {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.geo-globe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
.geo-right {
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.3em;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.geo-pipe {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.geo-photos {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0.22em;
}
.geo-photos img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

/* ---------- geospatial teaser (Turkey earthquake) ---------- */
.reveal .slides section.geo-tease {
  padding: 0 !important;
  height: 100% !important;
}
.gt-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5.5% 6%;
  box-sizing: border-box;
}
.gt-overlay.mid {
  justify-content: center;
  padding-bottom: 8%;
}
.gt-credit {
  font-family: var(--mono);
  font-size: 0.38em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px #000c;
  line-height: 1.55;
}
.gt-overlay.mid h2 {
  font-size: 1.15em;
  max-width: 14em;
  color: #fff;
  text-shadow: 0 2px 18px #000a;
  margin: 0;
}
.gt-kicker {
  font-family: var(--mono);
  font-size: 0.32em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35em;
}
.gt-overlay h2 {
  font-size: 0.92em;
  color: #fff;
  margin: 0 0 0.45em;
  max-width: 16em;
  text-shadow: 0 2px 14px #000a;
}
.gt-facts {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  margin-bottom: 0.4em;
}
.gt-facts div {
  font-size: 0.48em;
  font-weight: 650;
  color: #fff;
  text-shadow: 0 1px 8px #000a;
}
.gt-table {
  width: min(18em, 52%);
  height: auto;
  max-height: 6.2em;
  object-fit: contain;
  object-position: left top;
  border-radius: 6px;
  border: 1px solid #ffffff22;
  margin: 0.2em 0 0.45em;
  display: block;
}
.gt-punch {
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0.15em 0 0;
  text-shadow: 0 1px 10px #000c;
}
.gt-extreme { align-items: flex-start; }
.gt-extreme .kicker { margin-bottom: 0.55em; }
.gt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.gt-list li {
  font-size: 0.62em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px #000a;
}

/* Camera move: the diagram opens zoomed into Reflex filling the frame, then
   pulls back one step per layer so each ring is revealed as a wrapper around
   what came before. All four layers are concentric on (700,320), so this is a
   single scale on a wrapper group. The scales only ever decrease, so reveal's
   cumulative .visible plus source order picks the right one — no state juggling.
   Scale per layer = half-frame / layer half-extent, with a little headroom:
   reflex 170x75 -> 3.6, world 374x165 -> 1.77, engine 577x254 -> 1.17, open -> 1. */
.vd-zoom {
  transform-box: view-box;
  transform-origin: 700px 320px;
  transform: scale(3.6);
  transition: transform .9s cubic-bezier(.32,.72,.24,1);
}
.vd-zoom:has(.vd-l-world.visible)  { transform: scale(1.77); }
.vd-zoom:has(.vd-l-engine.visible) { transform: scale(1.17); }
.vd-zoom:has(.vd-l-open.visible)   { transform: scale(1); }

.vision-diagram.is-final .vd-zoom {
  transform: scale(1);
  transition: none;
}

/* The layer-pop card owns the bottom ~200 units of the frame, so on card beats
   the diagram backs off a step further and lifts clear of it. Net effect is one
   continuous pull-back across the whole build: 3.6, 2.95, 1.77, 1.45, 1.17, 1, 1.
   Lift is applied after the scale (transforms read right to left), so it's a flat
   55 user units at every level. */
section:has(.layer-pop.current-fragment) .vd-zoom { transform: translateY(-55px) scale(2.95); }
section:has(.layer-pop.current-fragment) .vd-zoom:has(.vd-l-world.visible)  { transform: translateY(-55px) scale(1.45); }
section:has(.layer-pop.current-fragment) .vd-zoom:has(.vd-l-engine.visible) { transform: translateY(-55px) scale(1); }

/* ---------- COVT backup ---------- */
.reveal .slides section.covt-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  height: 100% !important;
  overflow: hidden;
  padding: 2.4% 3.6% 2.6%;
}
.reveal .slides section.covt-slide > h2 {
  font-size: 1.02em;
  margin: 0 0 0.5em;
  line-height: 1.18;
}
.covt-stack {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.covt-what,
.covt-result {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.covt-what { flex: 1 1 0; }
.covt-result { flex: 1.45 1 0; }
.covt-slide .wmm-head { margin-bottom: 0.4em; }
.covt-what img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
}
.covt-trio {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 318fr 308fr 366fr;
  gap: 0.55em;
  align-items: stretch;
}
.covt-trio > div {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.covt-trio .wmm-head { margin-bottom: 0.32em; }
.covt-trio img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
}
