/* TalkToWalk – prezentácia. Vzhľad vychádza z david-monis.com (tmavé pozadie, jantárový akcent). */

/* ---------- písma (lokálne, latin + latin-ext kvôli slovenčine) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokeny ---------- */
:root {
  color-scheme: dark;
  --bg: #07090e;
  --surface: #0e121a;
  --surface-2: #141924;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f3;
  --text-2: #b3b9c4;
  --text-3: #7d8491;
  --accent: #f2a541;
  --accent-hi: #ffbd63;
  --accent-ink: #1b1204;
  --green: #5ad99a;
  --blue: #7fa8ff;
  --red: #ff8a7a;
  --r-sm: 12px;
  --r: 20px;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(16px, 4vw, 32px);

  /* veľkosti textu na slajdoch (režim pod sebou); pevný slajd ich prepíše nižšie */
  --h1: clamp(3rem, 2rem + 6vw, 5rem);
  --h2: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  --h3: 1.125rem;
  --lead: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
  --body: 1rem;
  --small: .875rem;
  --gap: 20px;
}
html.fixed {
  --h1: 104px; --h2: 46px; --h3: 23px; --lead: 27px; --body: 20px; --small: 16px; --gap: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(50% 40% at 78% 0%, rgba(84, 116, 196, .14), transparent 70%),
    radial-gradient(40% 36% at 12% 100%, rgba(242, 165, 65, .10), transparent 70%);
  background-attachment: fixed;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b { font-weight: 600; color: var(--text); }
code { font-family: var(--mono); font-size: .92em; color: var(--accent-hi); }
kbd { font: 600 .75rem/1 var(--mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .875rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease);
}
.btn .ic { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 10px 34px -8px rgba(242, 165, 65, .55); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn-icon { width: 40px; padding: 0; }

/* ---------- horná lišta ---------- */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 var(--pad); border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 14, .78); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.top-title { color: var(--text-3); font-size: .875rem; font-weight: 500; padding-left: 16px; border-left: 1px solid var(--line-2); }
.top-title:empty { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- slajd: spoločné ---------- */
.slide { position: relative; }
.slide-in { height: 100%; display: flex; flex-direction: column; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: var(--small); font-weight: 600; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.slide h1 { font-size: var(--h1); line-height: .98; letter-spacing: -.045em; }
.slide h2 { margin-top: 10px; font-size: var(--h2); }
.slide h3 { font-size: var(--h3); letter-spacing: -.02em; line-height: 1.2; }
.slide p, .slide li, .slide dd, .slide td, .slide th { font-size: var(--body); }
.slide-in > h2 + * { margin-top: var(--gap); }
.fine { margin-top: 18px; color: var(--text-3); font-size: var(--small) !important; }
.kicker { font-size: var(--small) !important; font-weight: 600; color: var(--text-3); }
.ref-tag { font: 600 .7em/1 var(--mono); color: var(--accent); vertical-align: .2em; }
.panel, .map-card, .model, .code-card { border-radius: var(--r); border: 1px solid var(--line); background: rgba(14, 18, 26, .72); }
.panel { padding: clamp(18px, 2.4vw, 28px); }
.panel > * + * { margin-top: 12px; }
.panel p, .panel li { color: var(--text-2); }

/* odkrývanie prvkov */
html.js [data-a], html.js [data-f] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.js [data-a].on, html.js [data-f].on { opacity: 1; transform: none; }

/* ---------- komentár ---------- */
.notes { margin-top: 28px; padding: 16px 20px; border-radius: var(--r-sm); border-left: 3px solid var(--accent); background: rgba(242, 165, 65, .06); }
.notes p, .notes-panel p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.notes-panel { display: none; }

/* ---------- režim pod sebou (mobil, bez JS) ---------- */
html:not(.fixed) .stage { width: min(880px, 100% - 2 * var(--pad)); margin-inline: auto; padding-bottom: 48px; }
html:not(.fixed) .slide { padding-block: clamp(40px, 8vw, 72px); border-bottom: 1px solid var(--line); }
html:not(.fixed) .slide:last-child { border-bottom: 0; }
html:not(.fixed) .top-title { display: none; }
@media (max-width: 620px) {
  .btn-home { display: none; }
  .brand span { display: none; }
}

/* ---------- pevný slajd 1280 × 720 ---------- */
html.fixed, html.fixed body { height: 100%; }
html.fixed body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; }
html.fixed .viewport { position: relative; overflow: hidden; margin: 12px 20px 0; }
html.fixed .stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; outline: 0; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: 50% 50%; }
html.fixed .slide {
  position: absolute; inset: 0; padding: 44px 72px 40px; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--line); background: radial-gradient(900px circle at 92% 0%, rgba(242, 165, 65, .09), transparent 60%), rgba(11, 14, 21, .82);
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir, 1) * 60px)) scale(.985);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s;
}
html.fixed .slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s; }
html.fixed .slide.is-out { transform: translateX(calc(var(--dir, 1) * -60px)) scale(.985); }
html.fixed .slide .notes { display: none; }
html.fixed .notes-panel { display: block; width: min(1040px, 100% - 40px); margin: 12px auto 0; min-height: 5.4em; padding: 12px 18px; border-radius: var(--r-sm); border-left: 3px solid var(--accent); background: rgba(242, 165, 65, .06); }

.hud { display: flex; align-items: center; gap: 12px; padding: 10px 20px 12px; }
.hud-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background-color .2s, border-color .2s; }
.hud-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(242, 165, 65, .5); }
.hud-count { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .875rem; color: var(--text-2); }
.hud-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hud-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.hud-hint { color: var(--text-3); font-size: .8125rem; }
@media (max-width: 1100px) { .hud-hint { display: none; } }

/* režim prezentovania: len slajd a tenký pás postupu */
html.present .top, html.present .notes-panel, html.present .hud-btn, html.present .hud-hint { display: none; }
html.present .viewport { margin: 0; }
html.present .slide { border-color: transparent; border-radius: 0; }
html.present .hud { position: fixed; inset: auto 0 0; padding: 0; gap: 0; z-index: 60; }
html.present .hud-bar { border-radius: 0; }
html.present .hud-count { position: fixed; right: 14px; bottom: 10px; min-width: 0; font-size: .75rem; color: var(--text-3); }
html.present body { cursor: default; }

/* ---------- 1 · titulný slajd ---------- */
.title-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; }
.s-title h1 { margin-top: 22px; }
.title-sub { margin-top: 22px; font-family: var(--font-display); font-size: var(--lead) !important; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: var(--text); max-width: 20em; }
.people { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 16px 44px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.people dt { font-size: var(--small); color: var(--text-3); font-weight: 500; }
.people dd { margin-top: 2px; font-weight: 600; font-size: var(--body); }
.title-art svg { width: 100%; height: auto; overflow: visible; }
.art-grid path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 26; stroke-linecap: round; }
.art-route, .art-glow { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.art-route { stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-glow { stroke-width: 22; opacity: .16; filter: blur(8px); }
.art-start { fill: var(--bg); stroke: var(--accent-hi); stroke-width: 2.5; stroke-dasharray: 5 5; }
.art-end { fill: var(--accent); }
.art-ping { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
html.js .slide.is-on .art-route, html.js:not(.fixed) .art-route { animation: draw 2.6s var(--ease) .3s both; }
html.js .slide.is-on .art-ping, html.js:not(.fixed) .art-ping { animation: ping 2.4s var(--ease) 2.6s infinite; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- 2 · úloha ---------- */
.task-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; flex: 1; min-height: 0; }
.map-card { padding: 18px 18px 14px; display: flex; flex-direction: column; min-height: 0; }
.map-card svg { width: 100%; height: auto; overflow: visible; }
.map-card figcaption { margin-top: 10px; font-size: var(--small); color: var(--text-3); }
.map-floor { fill: #151a25; }
.map-rooms { stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.map-hatch { stroke: rgba(255, 255, 255, .06); stroke-width: 2; }
.map-walls { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linejoin: round; }
.map-plan { fill: none; stroke: rgba(242, 165, 65, .28); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.map-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(242, 165, 65, .55)); }
.start-mark { fill: none; stroke: var(--accent-hi); stroke-width: 1.5; stroke-dasharray: 3 3; }
.map-label { fill: var(--text-3); font: 600 12px/1 var(--font); }
.junctions circle { fill: #0b0e15; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.junctions circle.hit { stroke: var(--accent); fill: rgba(242, 165, 65, .3); }
.robot-body { fill: var(--text); stroke: #0b0e15; stroke-width: 2; }
.robot-heading { fill: #0b0e15; }
.route-cmds { margin-top: 12px; display: grid; gap: 5px; counter-reset: cmd; }
.route-cmds li { position: relative; padding: 7px 14px 7px 40px; border-radius: 12px; font-family: var(--font-display); font-size: calc(var(--body) * 1.1); font-weight: 500; line-height: 1.3; color: var(--text-3); transition: color .35s, background-color .35s; counter-increment: cmd; }
.route-cmds li::before { content: counter(cmd); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 .7em/1 var(--font); opacity: .7; }
.route-cmds li.done { color: var(--text-2); }
.route-cmds li.on { color: var(--accent-ink); background: var(--accent); }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: var(--small); font-weight: 600; color: var(--accent-hi); background: rgba(242, 165, 65, .08); border: 1px solid rgba(242, 165, 65, .28); }

/* ---------- 3 a 5 · schémy ---------- */
.flow, .pipe { display: flex; align-items: center; justify-content: center; gap: 14px; }
.flow-col, .pipe-col { display: grid; gap: 12px; }
.node { padding: 14px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(20, 25, 36, .8); min-width: 0; }
.node-role { font-size: calc(var(--small) * .85) !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.node-name { margin-top: 2px; font-family: var(--font-display); font-size: calc(var(--body) * 1.12) !important; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.node-text { margin-top: 3px; font-size: var(--small) !important; color: var(--text-2); line-height: 1.35; }
.node-model { border-color: rgba(242, 165, 65, .55); background: linear-gradient(160deg, rgba(242, 165, 65, .18), rgba(242, 165, 65, .04)); box-shadow: 0 0 60px -18px rgba(242, 165, 65, .6); padding-block: 26px; }
.node-model .node-role { color: var(--accent-hi); }
.node-safe { border-color: rgba(90, 217, 154, .4); }
.node-safe .node-role { color: var(--green); }
.flow-arrow { width: 40px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.points { margin-top: var(--gap); display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; color: var(--text-2); max-width: 62em; }
.points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pair { margin-top: var(--gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair li { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-2); }
.s-pipe .pipe { flex: 1; }

/* ---------- 4 · robot ---------- */
.robot-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; flex: 1; min-height: 0; }
.robot-art { height: 100%; min-height: 0; display: grid; place-items: center; }
.robot-art svg { width: 100%; height: 100%; max-height: 470px; overflow: visible; }
.r-ground { stroke: var(--line-2); stroke-width: 2; }
.r-body { fill: #1a202d; stroke: rgba(255, 255, 255, .4); stroke-width: 2; }
.r-limb { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.r-cam { fill: var(--accent); }
.r-lidar { fill: var(--blue); }
.r-dim { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.r-label { fill: var(--text-2); font: 600 14px/1 var(--font); }
.r-label-hi { fill: var(--accent-hi); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: var(--small); line-height: 1.3; }
.facts b { display: block; font-family: var(--font-display); font-size: calc(var(--body) * 1.3); letter-spacing: -.02em; }
.code-card { margin-top: 18px; padding: 20px 24px; }
.code-line { font-family: var(--mono); font-size: calc(var(--body) * 1.15) !important; color: var(--text-2); }
.code-line b { color: var(--accent-hi); }
.c-dim { color: var(--text-3); }
.code-args { margin-top: 14px; display: grid; gap: 8px; }
.code-args div { display: grid; grid-template-columns: 4.2em 1fr; align-items: baseline; }
.code-args dt { font-family: var(--mono); font-weight: 600; color: var(--accent-hi); font-size: var(--body); }
.code-args dd { color: var(--text-2); }
.aside-text { margin-top: 18px; color: var(--text-2); }

/* ---------- 6 · modely ---------- */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.model { padding: 18px 22px; }
.model header { display: flex; align-items: center; gap: 14px; }
.model header p { color: var(--text-3); font-size: var(--small); margin-top: 2px; }
.mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; border: 1px solid; }
.model-a .mono { color: #d6f5e4; background: linear-gradient(145deg, #15301f, #0c1a12); border-color: rgba(90, 217, 154, .35); }
.model-b .mono { color: #ffd7a8; background: linear-gradient(145deg, #3a2417, #1c130d); border-color: rgba(242, 165, 65, .4); }
.model-b { border-color: rgba(242, 165, 65, .35); }
.plusminus { margin-top: 12px; display: grid; gap: 6px; }
.plusminus li { position: relative; padding-left: 26px; color: var(--text-2); font-size: calc(var(--body) * .9); line-height: 1.4; }
.plusminus li::before { position: absolute; left: 2px; top: 0; font-weight: 700; }
.plus::before { content: "+"; color: var(--green); }
.minus::before { content: "−"; color: var(--red); }
.bench { margin-top: 16px; width: 100%; border-collapse: collapse; }
.bench caption { caption-side: bottom; text-align: left; padding-top: 8px; color: var(--text-3); font-size: var(--small); }
.bench th, .bench td { padding: 7px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: calc(var(--body) * .9); }
.bench thead th { color: var(--text-3); font-size: var(--small); font-weight: 600; }
.bench tbody th { color: var(--text-2); font-weight: 500; width: 28%; }
.bench td { font-variant-numeric: tabular-nums; font-weight: 600; }
.bench td:last-child { color: var(--accent-hi); }
.s-models .fine { margin-top: 12px; }

/* ---------- 7 · križovatky ---------- */
.junc-grid, .safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.rules { counter-reset: r; display: grid; gap: 6px; }
.rules li { position: relative; padding-left: 34px; counter-increment: r; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 165, 65, .14); color: var(--accent-hi); font: 700 .75em/1 var(--font); }
.jtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.jtypes li { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: var(--small); font-weight: 600; color: var(--text-2); text-align: center; }
.jtypes svg { width: 64px; height: 64px; }
.jt-corridor { fill: none; stroke: #232a3a; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.jt-path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.jt-node { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
.segments { display: grid; gap: 6px; }
.segments li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; color: var(--text-3); }
.segments span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 600 .7em/1 var(--font); }
.seg-done { color: var(--text-2) !important; }
.seg-done span { background: var(--green); border-color: var(--green); color: #06130c; }
.seg-now { color: var(--accent-ink) !important; background: var(--accent); border-color: var(--accent) !important; }
.seg-now span { border-color: rgba(27, 18, 4, .5); }

/* ---------- 8 · simulácia ---------- */
.sim-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; flex: 1; min-height: 0; }
.plan-corr { fill: none; stroke: #1c2231; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.plan-junc circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2.2; }
.plan-ping { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: ping 2.4s var(--ease) infinite; }
.stepsv { display: grid; gap: 14px; }
.stepsv li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(14, 18, 26, .72); }
.stepsv p { margin-top: 4px; color: var(--text-2); font-size: calc(var(--body) * .92); line-height: 1.45; }
.step-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 165, 65, .14); color: var(--accent-hi); font: 700 1rem/1 var(--font-display); }

/* ---------- 9 · spätná väzba ---------- */
.lidar-art { width: 200px; height: 120px; display: block; }
.ld-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: sweep 2.6s linear infinite; }
.ld-2 { animation-delay: 1.3s; }
.ld-limit { fill: rgba(127, 168, 255, .06); stroke: rgba(127, 168, 255, .35); stroke-width: 1.5; stroke-dasharray: 4 5; }
.ld-wall { fill: #2a3142; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.ld-stop { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 6; }
@keyframes sweep { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.hu-model { fill: none; stroke: var(--text-3); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 7; }
.hu-human { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.hu-dot { fill: var(--accent-hi); }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---------- 10 · plán ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; flex: 1; align-content: center; }
.timeline li { position: relative; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(14, 18, 26, .72); }
.timeline p { margin-top: 6px; color: var(--text-2); font-size: calc(var(--body) * .88); line-height: 1.4; }
.timeline h3 { margin-top: 10px; }
.ms-state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: calc(var(--small) * .9); font-weight: 600; color: var(--text-3); }
.ms-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ms-done .ms-state { color: var(--green); border-color: rgba(90, 217, 154, .25); background: rgba(90, 217, 154, .08); }
.ms-now { border-color: rgba(242, 165, 65, .55) !important; box-shadow: 0 0 60px -22px rgba(242, 165, 65, .7); }
.ms-now .ms-state { color: var(--accent-hi); border-color: rgba(242, 165, 65, .3); background: rgba(242, 165, 65, .1); }
.ms-now .ms-state::before { box-shadow: 0 0 10px currentColor; }

/* ---------- 11 · úskalia ---------- */
.risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; flex: 1; align-content: center; }
.risks li { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(14, 18, 26, .72); border-top: 2px solid rgba(255, 138, 122, .55); }
.risks p { margin-top: 8px; color: var(--text-2); font-size: calc(var(--body) * .9); line-height: 1.45; }

/* ---------- 12 · zhrnutie ---------- */
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.summary { display: grid; gap: 14px; }
.summary li { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--text-2); }
.refs h3 { color: var(--text-3); font-size: var(--small); font-family: var(--font); letter-spacing: 0; }
.refs ol { margin-top: 10px; display: grid; gap: 10px; }
.refs li { position: relative; padding-left: 2.4em; color: var(--text-3); font-size: calc(var(--body) * .82); line-height: 1.4; }
.refs li span { position: absolute; left: 0; font: 600 .9em/1.5 var(--mono); color: var(--accent); }
.refs a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.refs a:hover { color: var(--accent-hi); }
.end-links { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.end-url { margin-left: auto; font-family: var(--mono); color: var(--text-3); font-size: var(--small) !important; }

/* ---------- pevný slajd: zvislé vycentrovanie obsahu ---------- */
html.fixed .title-grid { flex: 1; }
html.fixed .title-art svg { max-height: 500px; }
html.fixed .s-vla .flow { flex: 1; gap: 22px; }
html.fixed .s-vla .node { padding: 20px 28px; }
html.fixed .s-vla .node-model { padding-block: 36px; }
html.fixed .s-vla .node-name { font-size: 25px !important; }
html.fixed .junc-grid, html.fixed .safety-grid, html.fixed .end-grid { margin-block: auto; }
html.fixed .s-junctions .fine { margin-top: 0; }
html.fixed .lidar-art { width: 280px; height: 168px; margin-bottom: 6px; }
html.fixed .safety-grid .panel { padding: 30px 34px; }

/* ---------- úzke obrazovky v režime pod sebou ---------- */
@media (max-width: 760px) {
  html:not(.fixed) .title-grid, html:not(.fixed) .task-grid, html:not(.fixed) .robot-grid, html:not(.fixed) .models,
  html:not(.fixed) .junc-grid, html:not(.fixed) .safety-grid, html:not(.fixed) .sim-grid, html:not(.fixed) .end-grid,
  html:not(.fixed) .pair, html:not(.fixed) .risks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html:not(.fixed) .title-art { max-width: 260px; order: -1; }
  html:not(.fixed) .people { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html:not(.fixed) .timeline, html:not(.fixed) .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.fixed) .flow, html:not(.fixed) .pipe { flex-direction: column; align-items: stretch; }
  html:not(.fixed) .flow-arrow { transform: rotate(90deg); align-self: center; }
  html:not(.fixed) .robot-art svg { max-height: 300px; }
  html:not(.fixed) .bench th, html:not(.fixed) .bench td { padding: 7px 8px; font-size: .8125rem; }
  html:not(.fixed) .end-url { margin-left: 0; }
}

/* ---------- PDF a tlač: všetky slajdy pod sebou, jeden na stranu ---------- */
@page { size: 1280px 720px; margin: 0; }
html.pdf, html.pdf body { height: auto; }
html.pdf body { display: block; overflow: visible; background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html.pdf .top, html.pdf .hud, html.pdf .notes-panel, html.pdf .skip { display: none !important; }
html.pdf .viewport { margin: 0; overflow: visible; }
html.pdf .stage { position: static; transform: none; height: auto; }
html.pdf .slide {
  position: relative; inset: auto; width: 1280px; height: 720px; opacity: 1; visibility: visible; transform: none; transition: none;
  border: 0; border-radius: 0; break-after: page; break-inside: avoid;
  background: radial-gradient(900px circle at 92% 0%, rgba(242, 165, 65, .10), transparent 60%), radial-gradient(700px circle at 0% 100%, rgba(84, 116, 196, .10), transparent 60%), var(--bg);
}
html.pdf .slide:last-child { break-after: auto; }
html.pdf [data-a], html.pdf [data-f] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.pdf *, html.pdf *::before, html.pdf *::after { animation: none !important; }
html.pdf .art-ping, html.pdf .ld-ring { opacity: 0; }
html.pdf .ld-ring { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .ld-ring { opacity: .5; }
}
