:root {
  --bg: #0b0d12;
  --bg2: #10131a;
  --card: #151922;
  --card-hi: #1b2030;
  --line: #252b3a;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --dim: #6c7487;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, .14);
  --c-video: #ff6a3d;
  --c-ai: #8b7bff;
  --c-web: #2ec4a6;
  --c-pc: #4ba3ff;
  --radius: 16px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255,106,61,.10), transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, rgba(139,123,255,.08), transparent 60%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11,13,18,.78); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { font-family: var(--head); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.cats { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.cats a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: .15s; }
.cats a:hover { color: var(--text); background: var(--card); }
.cats a i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.btn-primary { background: var(--accent); color: #1a0d07; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 700; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,106,61,.35); }

/* ── hero ── */
main { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 88px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 18px; }
h1 { font-family: var(--head); font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; margin: 0 0 24px; letter-spacing: -.02em; }
h1 .accent { color: var(--accent); }
h1.apps { font-size: clamp(80px, 15vw, 220px); line-height: .9; letter-spacing: -.04em; margin: 0 0 44px; background: linear-gradient(90deg, var(--text) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { max-width: 720px; color: var(--muted); font-size: 18px; margin: 0 0 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; max-width: 900px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-family: var(--head); font-size: 34px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ── category sections ── */
.cat-sec { padding: 56px 0 24px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.cat-head h2 { font-family: var(--head); font-size: clamp(26px, 3vw, 38px); margin: 0; letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; }
.cat-head h2 i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cat-head p { color: var(--muted); margin: 6px 0 0; max-width: 640px; }
.cat-head .n { color: var(--dim); font-weight: 600; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--cc, var(--accent)); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.card .thumb { aspect-ratio: 16 / 10; background: #07080b; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.03); }
.card .thumb.tall img { object-fit: contain; }
.card .play { position: absolute; left: 10px; bottom: 10px; background: #ff0033; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.card .more { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.card .meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--head); font-size: 21px; margin: 0; }
.card .tag { color: var(--muted); font-size: 15px; margin: 0; }
.card .kind { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--card-hi); color: var(--muted); border: 1px solid var(--line); }
.pill.online { background: rgba(46,196,166,.14); color: #5fe0c4; border-color: rgba(46,196,166,.35); }

/* ── other ── */
.other { padding: 64px 0 40px; }
.other h2 { font-family: var(--head); margin: 0 0 6px; }
.other p { color: var(--muted); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--muted); }
.foot { max-width: 1320px; margin: 0 auto; padding: 28px 24px 48px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }

/* ── viewer / presentation ── */
.viewer { position: fixed; inset: 0; z-index: 50; background: #07080b; display: none; flex-direction: column; }
.viewer.open { display: flex; }
body.lock { overflow: hidden; }
.v-bar { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.v-count { font-family: var(--head); font-weight: 700; }
.v-cat { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-actions { margin-left: auto; display: flex; gap: 8px; }
.v-actions button { background: var(--card); border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; font-size: 17px; }
.v-actions button:hover { border-color: var(--accent); }
.v-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: 36px; padding: 28px 88px 28px; }
.v-media, .v-text { min-width: 0; }
.v-media { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.v-main { flex: 1; min-height: 0; background: #07080b; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v-main iframe.yt { width: 100%; height: 100%; max-height: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.v-main a.yt-off { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.v-main a.yt-off img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: pointer; }
.v-main a.yt-off span { position: absolute; background: #ff0033; color: #fff; font-weight: 800; font-size: 20px; padding: 14px 26px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.v-main a.yt-off:hover span { transform: scale(1.05); }
.v-cap a.src { color: var(--accent); text-decoration: none; }
.v-thumbs button { position: relative; }
.v-thumbs button.vid::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; background: rgba(0,0,0,.35); text-shadow: 0 2px 6px #000; }
.v-main img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.v-cap { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.v-cap .src { color: var(--dim); white-space: nowrap; }
.v-thumbs { display: flex; gap: 10px; }
.v-thumbs button { width: 110px; height: 66px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #07080b; opacity: .6; }
.v-thumbs button.on { border-color: var(--accent); opacity: 1; }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-text { overflow-y: auto; padding-right: 6px; }
.v-text .eyebrow { margin-bottom: 10px; }
.v-text h2 { font-family: var(--head); font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin: 0 0 10px; letter-spacing: -.01em; }
.v-text .tag { font-size: 19px; color: var(--accent); margin: 0 0 20px; font-weight: 600; }
.v-text .desc { color: #cfd5e2; margin: 0 0 22px; }
.v-text h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.v-text ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 7px; }
.v-text li { padding-left: 22px; position: relative; color: #dfe4ee; }

.v-text .techs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.v-text .facts { display: grid; gap: 6px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.v-text .facts b { color: var(--text); font-weight: 600; }
.v-text .facts code { font-family: Consolas, monospace; font-size: 13px; color: #cfd5e2; word-break: break-all; }
.v-text .facts a { color: var(--accent); }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.v-nav:hover { border-color: var(--accent); color: var(--accent); }
.v-nav.prev { left: 18px; } .v-nav.next { right: 18px; }
.v-progress { height: 3px; background: var(--line); }
.v-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.v-slide-in { animation: slideIn .35s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* title slide in presentation */
.v-title { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; }
.v-title h1.apps { font-size: clamp(100px, 17vw, 260px); }
.v-title .lead { font-size: 20px; }
.v-title .catlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 1100px; }
.v-title .catlist div { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cc); border-radius: 12px; padding: 14px 18px; }
.v-title .catlist b { display: block; font-family: var(--head); font-size: 18px; }
.v-title .catlist span { color: var(--muted); font-size: 14px; }

.zoom .v-body { grid-template-columns: 1fr; padding: 16px 80px; }
.zoom .v-text, .zoom .v-thumbs, .zoom .v-cap { display: none; }
.zoom .v-main img { cursor: zoom-out; }

@media (max-width: 1000px) {
  .v-bar { padding: 10px 16px; }
  .v-cap { flex-direction: column; gap: 2px; }
  .v-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(240px, 46vh) auto; padding-bottom: 80px; padding: 16px; gap: 18px; overflow-y: auto; }
  .v-text { overflow: visible; }
  .v-nav { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
  .v-thumbs button { width: 80px; height: 50px; }
}
@media (max-width: 640px) {
  .top-in { padding: 10px 16px; gap: 10px; }
  .brand { display: none; }
  main { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .grid { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; }
}

/* ── O mně ── */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; margin: 0 0 48px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.ab-text .eyebrow { margin-bottom: 8px; }
.ab-text h2 { font-family: var(--head); font-size: clamp(30px, 3.4vw, 46px); margin: 0; letter-spacing: -.01em; }
.ab-role { color: var(--accent); font-weight: 700; margin: 4px 0 18px; }
.ab-text > p:not(.eyebrow):not(.ab-role) { color: #cfd5e2; margin: 0 0 12px; max-width: 640px; }
.ab-stats { display: flex; gap: 32px; margin: 22px 0 20px; flex-wrap: wrap; }
.ab-stats b { display: block; font-family: var(--head); font-size: 36px; line-height: 1; color: var(--text); }
.ab-stats span { color: var(--muted); font-size: 14px; }
.ab-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-links a { text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-hi); transition: .15s; }
.ab-links a:hover { border-color: var(--accent); color: var(--accent); }
.ab-side { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.ab-shot { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #07080b; }
.ab-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; transition: transform .5s; }
.ab-shot:hover img { transform: scale(1.03); }
.ab-shot span { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ab-career { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ab-career li { display: grid; grid-template-columns: 128px 1fr; column-gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ab-career li:last-child { border-bottom: 0; }
.ab-career span { color: var(--dim); font-weight: 600; grid-row: span 2; }
.ab-career b { font-weight: 700; }
.ab-career i { font-style: normal; color: var(--muted); }
.v-about { justify-content: center; }
.v-about .about { margin: 0; max-width: 1300px; width: 100%; background: transparent; border: 0; padding: 0; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
}

/* big screens: slide content scales with the viewport (JS sets --z) */
.v-title, .v-text, .v-cap, .v-thumbs { zoom: var(--z, 1); }
.v-title { width: 100%; max-width: 1240px; margin: 0 auto; }
.v-about { max-width: 1320px; }
.v-bar, .v-nav { zoom: var(--z, 1); }

.ab-links a.ab-web { font-size: 18px; padding: 10px 20px; color: var(--accent); border-color: rgba(255,106,61,.4); background: var(--accent-soft); }
.ab-links a.ab-web:hover { background: var(--accent); color: #1a0d07; }
.ab-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 14px 0 2px; }
.ab-h:first-child { margin-top: 0; }

/* animované tečky jako odrážky */
.ab-text > p.ab-p { position: relative; padding-left: 26px; }
.ab-p::before, .v-text li::before {
  content: ""; position: absolute; left: 4px; top: .58em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cc, var(--accent)); box-shadow: 0 0 0 0 var(--cc, var(--accent));
  animation: dotPulse 2.8s ease-out infinite; animation-delay: var(--d, 0s);
}
.ab-p::after, .v-text li::after {
  content: ""; position: absolute; left: 4px; top: .58em; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--cc, var(--accent)); opacity: 0;
  animation: dotRing 2.8s ease-out infinite; animation-delay: var(--d, 0s);
}
@keyframes dotPulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 18% { transform: scale(1.35); filter: brightness(1.4); } 40% { transform: scale(1); } }
@keyframes dotRing { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.v-slide-in li, .about .ab-p { animation: bulletIn .5s ease both; animation-delay: calc(var(--d, 0s) * .4); }
@keyframes bulletIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ab-p::before, .v-text li::before, .ab-p::after, .v-text li::after, .v-slide-in li, .about .ab-p { animation: none; }
}
