/* Noarion – vesmírný styl, tlumený: tyrkysová, černá, bílá */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cyan: #00F0E0;
  --cyan-dim: rgba(0, 240, 224, .10);
  --cyan-line: rgba(0, 240, 224, .24);
  --black: #05070A;
  --panel: #0A0E13;
  --white: #F4FBFB;
  --muted: #9AABB0;
  --text-soft: #C9D4D6;
  --line: rgba(255, 255, 255, .08);
  --radius: 12px;
  --header-h: 76px;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--cyan); text-shadow: 0 0 24px rgba(0, 240, 224, .2); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2em; }

/* Hvězdné pozadí */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 10%, rgba(0, 240, 224, .05), transparent 70%),
    radial-gradient(50vw 50vh at 0% 90%, rgba(0, 120, 160, .06), transparent 70%),
    var(--black);
}

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid var(--cyan);
  background: var(--cyan); color: var(--black); font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { box-shadow: 0 0 0 4px var(--cyan-dim), 0 0 24px rgba(0, 240, 224, .25); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(244, 251, 251, .3); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: none; }
.btn-small { padding: .5em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, opacity .6s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 7, 10, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; flex: none; }
.logo-text { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: .28em; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-size: .95rem; opacity: .8; transition: opacity .2s, color .2s; }
.nav a:not(.btn):hover { opacity: 1; color: var(--cyan); }
.nav a.lang-switch { font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; opacity: 1; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: .25em .6em; }
.nav a.lang-switch:hover { border-color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 104px); overflow-x: clip; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

/* ===== Vizuál v úvodu: struktura kybernetické a AI bezpečnosti kolem znaku N =====
   Znak N v šestiúhelníkovém štítu (emblém sdílený s úvodní animací) je jádrem sítě: z vrcholů štítu
   vybíhají paprsky k vnějšímu šestiúhelníku, mezi nimi je vepsaná hvězdicová „pevnost“ a kolem obíhají
   tři dráhy (AI, SEC, zámek). Dvanáct uzlů posílá pakety do jádra; /js/orbit.js na nich náhodně spouští
   ukázkovou detekci. Geometrie: src/_data/orbit.js (čtverec 400 × 400), značky: partials/orbit.njk.
   Stavy na .hero-visual: is-live (rozbaleno), is-alert (probíhá zásah), is-paused (mimo obrazovku). */
.hero-visual { display: grid; justify-items: center; gap: 26px; width: 100%; justify-self: center; }
.orbit-system {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 460px;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .35s ease-out;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Podklad: záře a radarový paprsek uvnitř vnějšího šestiúhelníku (mimo štít) */
.os-glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(0, 240, 224, .14), rgba(0, 240, 224, .045) 46%, transparent 74%);
  transition: opacity 1.2s ease .1s;
}
.os-sweep {
  position: absolute; inset: 10%;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  mask-image: radial-gradient(circle closest-side, transparent 41%, #000 42%);
  transition: opacity .9s ease 1s;
}
.os-sweep::before {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 0 304deg, rgba(0, 240, 224, .02) 314deg, rgba(0, 240, 224, .11) 357deg, rgba(0, 240, 224, .28) 360deg);
  animation: spin 7s linear infinite;
}

/* Vektorová struktura */
.os-structure { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.os-ticks, .os-legend { transform-box: view-box; transform-origin: 50% 50%; }
.os-ticks { animation: spin 200s linear infinite reverse; transition: opacity 1s ease .7s; }
.os-tick-min { stroke: rgba(0, 240, 224, .36); stroke-width: 5; stroke-dasharray: 1.2 18.9062; }
.os-tick-maj { stroke: rgba(0, 240, 224, .7); stroke-width: 9; stroke-dasharray: 1.6 98.931; }
.os-legend { animation: spin 160s linear infinite; transition: opacity 1s ease 1s; }
.os-legend text { font: 500 6.2px var(--mono); fill: rgba(244, 251, 251, .34); }
.os-ring { stroke: rgba(0, 240, 224, .24); stroke-width: 1; transition: opacity .7s ease .2s; }
.os-ring-2 { stroke: rgba(0, 240, 224, .32); stroke-dasharray: 2 5.0209; transition-delay: .35s; }
.os-ring-3 { stroke: rgba(244, 251, 251, .12); transition-delay: .5s; }
.os-outer {
  stroke: rgba(0, 240, 224, .34); stroke-width: 1; stroke-linejoin: round;
  stroke-dasharray: 960; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .2, 1) .45s, opacity .2s linear .45s;
}
.os-star {
  stroke: rgba(0, 240, 224, .2); stroke-width: 1; stroke-linejoin: round; fill: rgba(0, 240, 224, .02);
  stroke-dasharray: 1070; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .2, 1) .3s, opacity .2s linear .3s;
}
.os-spoke {
  stroke: rgba(0, 240, 224, .24); stroke-width: 1;
  stroke-dasharray: 96; stroke-dashoffset: 0;
  transition: stroke-dashoffset .6s cubic-bezier(.5, 0, .2, 1) .2s, opacity .1s linear .2s;
}

/* Pakety: telemetrie z uzlů do jádra (letí prvních 42 % cyklu, pak pauza) */
.os-packet {
  stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 95; stroke-dashoffset: 5; opacity: 0;
  animation: os-packet linear infinite;
  transition: visibility 0s linear 1.3s;
}
@keyframes os-packet {
  0% { stroke-dashoffset: 5; opacity: 0; }
  4% { opacity: 1; }
  38% { opacity: 1; }
  42% { stroke-dashoffset: -95; opacity: 0; }
  100% { stroke-dashoffset: -95; opacity: 0; }
}
.pk0, .nd0 .os-node-dot { animation-duration: 6.4s; animation-delay: -.8s; }
.pk1, .nd1 .os-node-dot { animation-duration: 5.2s; animation-delay: -3.8s; }
.pk2, .nd2 .os-node-dot { animation-duration: 7.6s; animation-delay: -4.4s; }
.pk3, .nd3 .os-node-dot { animation-duration: 5.8s; animation-delay: -1.8s; }
.pk4, .nd4 .os-node-dot { animation-duration: 7s; animation-delay: -6s; }
.pk5, .nd5 .os-node-dot { animation-duration: 4.8s; animation-delay: -2.4s; }
.pk6, .nd6 .os-node-dot { animation-duration: 8.2s; animation-delay: -.4s; }
.pk7, .nd7 .os-node-dot { animation-duration: 5.6s; animation-delay: -5s; }
.pk8, .nd8 .os-node-dot { animation-duration: 6.6s; animation-delay: -3.2s; }
.pk9, .nd9 .os-node-dot { animation-duration: 5s; animation-delay: -1.4s; }
.pk10, .nd10 .os-node-dot { animation-duration: 7.8s; animation-delay: -6.8s; }
.pk11, .nd11 .os-node-dot { animation-duration: 6s; animation-delay: -4s; }

/* Zásah: paprsek z jádra k uzlu */
.os-strike { stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 34 100; stroke-dashoffset: 34; opacity: 0; }
.os-strike.is-fire { opacity: 1; filter: drop-shadow(0 0 3px var(--cyan)); animation: os-strike .55s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes os-strike { from { stroke-dashoffset: 34; } to { stroke-dashoffset: -100; } }

/* Uzly */
.os-node { transition: opacity .35s ease; }
.os-node-dot {
  fill: var(--black); stroke: var(--cyan); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
  animation: os-ping linear infinite;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.os-node-s .os-node-dot { stroke-width: 1.2; }
.os-node-halo, .os-node-burst { opacity: 0; transform-box: fill-box; transform-origin: center; }
.os-node-halo { stroke: var(--white); stroke-width: 1; }
.os-node-burst { stroke: var(--cyan); stroke-width: 1.4; }
@keyframes os-ping { 0%, 3% { fill: var(--cyan); } 9%, 100% { fill: var(--black); } }
.nd0, .nd0 .os-node-dot { transition-delay: .7s; }
.nd1, .nd1 .os-node-dot { transition-delay: .75s; }
.nd2, .nd2 .os-node-dot { transition-delay: .8s; }
.nd3, .nd3 .os-node-dot { transition-delay: .85s; }
.nd4, .nd4 .os-node-dot { transition-delay: .9s; }
.nd5, .nd5 .os-node-dot { transition-delay: .95s; }
.nd6, .nd6 .os-node-dot { transition-delay: 1s; }
.nd7, .nd7 .os-node-dot { transition-delay: 1.05s; }
.nd8, .nd8 .os-node-dot { transition-delay: 1.1s; }
.nd9, .nd9 .os-node-dot { transition-delay: 1.15s; }
.nd10, .nd10 .os-node-dot { transition-delay: 1.2s; }
.nd11, .nd11 .os-node-dot { transition-delay: 1.25s; }
.os-node.is-threat .os-node-dot { fill: var(--white); stroke: var(--white); animation: os-threat .3s linear infinite; }
.os-node.is-threat .os-node-halo { animation: os-halo .7s ease-out infinite; }
.os-node.is-safe .os-node-dot { fill: var(--cyan); stroke: var(--cyan); animation: none; }
.os-node.is-safe .os-node-burst { animation: os-burst .8s ease-out forwards; }
@keyframes os-threat { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .3; } }
@keyframes os-halo { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes os-burst { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.6); opacity: 0; } }

/* Zaměřovač: /js/orbit.js ho přesune na uzel (atribut transform) a zapne třídou is-on */
.os-reticle { opacity: 0; transition: opacity .2s; }
.os-reticle.is-on { opacity: 1; }
.os-reticle-in { stroke: var(--white); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.os-reticle-in circle { stroke: var(--cyan); stroke-dasharray: 3 3.8068; }
.os-reticle.is-on .os-reticle-in { animation: os-lock .45s cubic-bezier(.2, .9, .3, 1.2) both, os-aim 2.4s linear .45s infinite; }
@keyframes os-lock { from { transform: scale(2.6) rotate(-60deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes os-aim { to { transform: rotate(90deg); } }

/* Oběžné dráhy: nosiče satelitů se světelnou stopou */
.ring { position: absolute; border-radius: 50%; animation: spin linear infinite; transition: opacity .7s ease, scale 1s cubic-bezier(.2, .8, .2, 1); }
.ring-1 { inset: 24.75%; animation-duration: 26s; transition-delay: .2s; }
.ring-2 { inset: 15.36%; animation-duration: 44s; animation-direction: reverse; transition-delay: .35s; }
.ring-3 { inset: 3.5%; animation-duration: 70s; transition-delay: .5s; }
.ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 74%, rgba(0, 240, 224, .85) 100%);
  mask-image: radial-gradient(circle closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.ring-2::before { background: conic-gradient(from 180deg, rgba(244, 251, 251, .5) 0, transparent 18%); }
.ring-3::before { background: conic-gradient(from 90deg, transparent 0 80%, rgba(0, 240, 224, .5) 100%); }
.sat {
  position: absolute; top: -15px; left: 50%; margin-left: -21px; width: 42px; height: 30px;
  display: grid; place-items: center; font: 600 .68rem var(--mono); letter-spacing: .08em;
  border-radius: 8px; background: linear-gradient(180deg, #0B161B, var(--black)); border: 1px solid rgba(0, 240, 224, .45); color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 224, .22), inset 0 0 10px rgba(0, 240, 224, .08);
  animation: spin linear infinite reverse;
}
.ring-1 .sat { animation-duration: 26s; }
.ring-2 .sat { top: auto; bottom: -15px; animation-duration: 44s; animation-direction: normal; color: var(--white); border-color: rgba(244, 251, 251, .4); box-shadow: 0 0 16px rgba(244, 251, 251, .08); }
.ring-3 .sat { animation-duration: 70s; }
.sat-lock { top: 50%; left: auto; right: -17px; margin: -15px 0 0; width: 34px; }

/* Jádro: emblém, řádkování hologramu, rázové vlny */
.os-emblem { position: absolute; inset: 25.75%; }
.emblem { display: block; width: 100%; height: 100%; overflow: visible; }
.em-hex { stroke: var(--cyan); stroke-width: 1.3; stroke-linejoin: round; fill: rgba(0, 240, 224, .055); }
.em-facets line { stroke: var(--cyan); stroke-width: .8; opacity: .55; }
.em-n { stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.em-signal { stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 84; stroke-dashoffset: 16; opacity: 0; }
.em-verts circle, .em-nodes circle { fill: var(--cyan); }
.orbit-system .emblem { filter: drop-shadow(0 0 10px rgba(0, 240, 224, .4)); }
/* Signál běží po písmenu N (zleva dole doprava nahoru) a rozsvěcuje jeho uzly */
.orbit-system .em-signal { opacity: 1; animation: em-signal 3.2s linear infinite; }
.orbit-system .em-nodes circle { transform-box: fill-box; transform-origin: center; animation: em-node 3.2s ease-out infinite; }
.orbit-system .em-nodes circle:nth-child(2) { animation-delay: .52s; }
.orbit-system .em-nodes circle:nth-child(3) { animation-delay: 1.24s; }
.orbit-system .em-nodes circle:nth-child(4) { animation-delay: 1.76s; }
@keyframes em-signal { 0% { stroke-dashoffset: 16; } 55% { stroke-dashoffset: -100; } 100% { stroke-dashoffset: -100; } }
@keyframes em-node { 0% { transform: scale(1); } 5% { transform: scale(1.4); fill: var(--white); } 18% { transform: scale(1); fill: var(--cyan); } 100% { transform: scale(1); } }
@keyframes em-alert { 0% { fill: rgba(0, 240, 224, .4); stroke: var(--white); } 100% { fill: rgba(0, 240, 224, .055); stroke: var(--cyan); } }
.hero-visual.is-alert .em-hex { animation: em-alert .7s ease-out; }
.os-lines {
  position: absolute; inset: 17%; pointer-events: none;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: repeating-linear-gradient(0deg, rgba(0, 240, 224, .1) 0 1px, transparent 1px 4px);
  animation: os-lines 1.4s linear infinite; transition: opacity .8s ease .4s;
}
@keyframes os-lines { to { background-position: 0 8px; } }
.os-shock, .os-pulse { position: absolute; inset: 34%; border-radius: 50%; border: 1px solid rgba(0, 240, 224, .6); opacity: 0; pointer-events: none; }
.hero-visual.is-live .os-shock { animation: os-shock 1.1s ease-out; }
.hero-visual.is-alert .os-pulse { animation: os-shock .7s ease-out; }
@keyframes os-shock { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(3); } }

/* Rámeček zaměřovače v rozích */
.os-corner { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(0, 240, 224, .4); transition: opacity .8s ease 1.1s; }
.os-corner-tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.os-corner-tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.os-corner-bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
.os-corner-br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }

/* Výpis pod vizuálem (ilustrační simulace, plní /js/orbit.js) */
.feed { width: min(100%, 340px); min-height: 98px; display: grid; align-content: start; gap: 10px; font: 500 .68rem / 1.5 var(--mono); letter-spacing: .05em; transition: opacity .7s ease 1.3s; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--cyan-line); border-radius: 999px; background: rgba(5, 7, 10, .6); color: var(--cyan); font-size: .62rem; letter-spacing: .22em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: os-live 1.2s ease-in-out infinite; }
@keyframes os-live { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.feed-mode { color: rgba(154, 171, 176, .7); font-size: .56rem; letter-spacing: .22em; }
.feed-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed-log li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.feed-log li::before { content: "›"; color: var(--muted); }
.feed-log li:nth-child(2) { opacity: .55; }
.feed-log li:nth-child(3) { opacity: .28; }
.feed-log li.is-new { animation: feed-in .4s steps(20, end) both; }
.feed-name { color: var(--text-soft); }
.feed-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(0, 240, 224, .32); transform: translateY(-3px); }
.feed-state { color: var(--white); }
.feed-log li.is-ok .feed-state { color: var(--cyan); }
@keyframes feed-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Před rozbalením (jen s JavaScriptem; třídu js přidává /js/intro.js ještě před vykreslením) */
html.js .hero-visual:not(.is-live) :is(.os-glow, .os-sweep, .os-ticks, .os-legend, .os-ring, .os-outer, .os-star, .os-spoke, .os-node, .ring, .os-lines, .os-corner, .feed) { opacity: 0; }
html.js .hero-visual:not(.is-live) .ring { scale: .6; }
html.js .hero-visual:not(.is-live) .os-outer { stroke-dashoffset: 960; }
html.js .hero-visual:not(.is-live) .os-star { stroke-dashoffset: 1070; }
html.js .hero-visual:not(.is-live) .os-spoke { stroke-dashoffset: 96; }
html.js .hero-visual:not(.is-live) .os-node-dot { transform: scale(0); }
html.js .hero-visual:not(.is-live) .os-packet { visibility: hidden; transition: none; }
html:not(.js) .feed { visibility: hidden; }
/* Během úvodní animace je emblém schovaný – „přiletí“ z ní a tady se jen rozsvítí */
html.has-intro .os-emblem { visibility: hidden; }
.hero-visual.is-paused *, .hero-visual.is-paused *::before { animation-play-state: paused !important; }

/* Po úvodní animaci obsah úvodu plynule najede (během ní je schovaný pod překryvem) */
.hero-copy > *, .page-hero .wrap > * { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { transition-delay: .08s; }
.hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { transition-delay: .16s; }
.hero-copy > :nth-child(4) { transition-delay: .24s; }
html.has-intro .hero-copy > *, html.has-intro .page-hero .wrap > * { opacity: 0; transform: translateY(16px); transition: none; }
html.has-intro .site-header { opacity: 0; }

/* Sekce */
.section { padding: clamp(80px, 10vw, 152px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(10, 14, 19, 0), rgba(10, 14, 19, .7) 15%, rgba(10, 14, 19, .7) 85%, rgba(10, 14, 19, 0)); }
/* První sekce po úvodu navazuje těsněji, jinak je mezera po krátkém úvodu opticky větší než mezi sekcemi. */
.hero + .section, .page-hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin-bottom: 3.5rem; }

/* Pilíře */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pillar {
  position: relative; display: flex; flex-direction: column; padding: 44px 40px 40px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 240, 224, .045), rgba(10, 14, 19, .9) 45%);
  border: 1px solid var(--cyan-line); overflow: hidden;
}
.pillar::after { content: ""; position: absolute; top: -1px; left: 40px; right: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.pillar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.pillar-num { font: 500 .85rem var(--mono); color: var(--cyan); }
.pillar-icon { width: 44px; height: 44px; color: var(--cyan); }
.pillar h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); }
.pillar > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; }
.checklist li { position: relative; padding: .65rem 0 .65rem 1.6rem; border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 1.2rem; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.more { margin-top: auto; align-self: flex-start; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--cyan-line); padding-bottom: 2px; }
.more:hover { border-bottom-color: var(--cyan); }

/* Karty */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s; }
.card:hover { border-color: var(--cyan-line); }
.card h3 { color: var(--cyan); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Pro koho */
.sectors { list-style: none; padding: 0; margin: 2.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sectors li { padding: 32px 36px; background: var(--black); }
.sectors h3 { font-size: 1.15rem; }
.sectors h3::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .8rem; vertical-align: .2em; background: var(--cyan); transform: rotate(45deg); }
.sectors p { margin: 0; color: var(--muted); }

/* Proč Noarion */
.points { list-style: none; padding: 0; margin: 2.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.points li { padding: 28px 0; border-top: 1px solid var(--cyan-line); }
.points p { margin: 0; color: var(--muted); }

/* Postup */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan-line), rgba(0, 240, 224, .05)); }
.steps li { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.2rem;
  border-radius: 50%; background: var(--black); border: 1px solid var(--cyan-line); color: var(--cyan); font: 500 .85rem var(--mono);
}
.steps p { color: var(--muted); font-size: .96rem; }

/* Pruh Další služby */
.section-strip { padding: clamp(56px, 7vw, 96px) 0; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.strip > div { max-width: 46em; }
.strip h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.strip p:last-child { margin: 0; color: var(--muted); }
.strip .btn { flex: none; }

/* Úvod podstránek */
.page-hero { padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 104px); }
.page-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 2rem 0 0; }

/* Služby pilíře */
.services { list-style: none; padding: 0; margin: 2.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.service { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--cyan-line); }
.service-num { position: absolute; left: 0; top: 31px; font: 500 .85rem var(--mono); color: var(--cyan); }
.service p { margin: 0; color: var(--muted); }

/* Skupiny dalších služeb */
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Osamocená poslední karta se roztáhne přes celý řádek a její seznam se rozloží do sloupců. */
.service-group:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.service-group:last-child:nth-child(3n+1) .checklist { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
.service-group { padding: 32px 30px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s; }
.service-group:hover { border-color: var(--cyan-line); }
.service-group h2 { font-size: 1.3rem; }
.service-group > p { color: var(--muted); font-size: .97rem; }
.service-group .checklist { margin: 1.2rem 0; font-size: .95rem; }

/* O nás */
.prose > * { max-width: 46em; }
.prose p:not(.eyebrow) { color: var(--text-soft); font-size: 1.08rem; }
.cert-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cert-list li { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--cyan-line); }
.cert-name { display: block; font-weight: 600; }
.cert-issuer { display: block; margin-top: .3em; color: var(--muted); font: .85rem var(--mono); }

/* Výzva k poptávce */
.cta { text-align: center; }
.cta .section-lead { margin: 0 auto 2rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }
.contact-mail a { font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.form { padding: 36px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--cyan-line); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8em 1em; border-radius: 10px; font: 1rem var(--sans); color: var(--white);
  background: rgba(5, 7, 10, .8); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--panel); }
textarea { resize: vertical; min-height: 120px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: .95rem; margin: 0; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--cyan); width: 18px; height: 18px; margin: 0; flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; font-size: .9rem; cursor: pointer; }
.consent input { margin-top: 3px; }
.field.invalid input, .field.invalid textarea { border-color: #FF5C7A; }
.consent.invalid span { color: #FF5C7A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: var(--cyan); }
.form-status.err, .form-error-static { color: #FF5C7A; }
.form-wrap { min-width: 0; }
/* Chyba po odeslání bez JS (kontakt.php přesměruje na #chyba / #error) */
.form-error-static { display: none; scroll-margin-top: calc(var(--header-h) + 16px); margin: 0 0 16px; padding: 14px 18px; border: 1px solid #FF5C7A; border-radius: var(--radius); font-size: .95rem; }
.form-error-static:target { display: block; }
.form-error-static a { color: inherit; }

/* Patička */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--cyan); }
.copy, .operator { margin: 0; color: var(--muted); font: .85rem var(--mono); }
.operator { margin-top: 4px; }
/* Odkaz „Přeskočit na obsah“: skrytý, dokud nedostane fokus z klávesnice */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; border-radius: 6px; background: var(--cyan); color: var(--black); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Textové podstránky */
.page { padding: 60px 0 100px; }
.page .wrap { max-width: 780px; }
.page h2, .prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose .eyebrow + h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-top: 0; }
.page p, .page li { color: var(--text-soft); }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* Animace při posunu */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual *, .hero-visual *::before { animation: none !important; transition: none !important; }
  .os-sweep, .os-packet, .os-strike { display: none; }
  .orbit-system { transform: none; }
  .hero-copy > *, .page-hero .wrap > *, .site-header { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responzivita */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .service-groups { grid-template-columns: 1fr 1fr; }
  .service-group:last-child:nth-child(3n+1) { grid-column: auto; }
  .service-group:last-child:nth-child(3n+1) .checklist { grid-template-columns: 1fr; }
  .service-group:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .service-group:last-child:nth-child(2n+1) .checklist { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--cyan-line), rgba(0, 240, 224, .05)); }
  .steps li { padding-left: 72px; }
  .step-num { position: absolute; left: 0; top: -4px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: var(--black); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .site-header:has(.nav.open) { background: var(--black); }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1.05rem; }
  .nav a.lang-switch { align-self: flex-start; margin-top: 14px; padding: .35em .8em; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .nav .btn { margin-top: 16px; }
  /* Bez JavaScriptu menu nejde otevřít, proto je rovnou vidět. */
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 0; background: none; border: 0; }
  .no-js .nav a:not(.btn) { padding: 4px 0; border: 0; }
  .no-js .nav a.lang-switch { margin: 0; border: 1px solid rgba(255, 255, 255, .25); }
  .no-js .nav .btn { margin: 0; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .orbit-system { max-width: 340px; }
  .os-legend, .os-corner { display: none; }
  .pillars, .sectors, .points, .services { grid-template-columns: 1fr; }
  .strip { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 8px 16px 20px; }
  .pillar { padding: 32px 22px 28px; }
  .pillar::after { left: 22px; right: 22px; }
  .sectors li { padding: 26px 22px; }
  .grid-4, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .service-groups, .service-group:last-child:nth-child(2n+1) .checklist { grid-template-columns: 1fr; }
  .service { padding-left: 48px; }
  .service-group { padding: 26px 22px 8px; }
  .form { padding: 24px 18px; }
  .orbit-system { max-width: 290px; }
  .sat { top: -13px; margin-left: -18px; width: 36px; height: 26px; font-size: .6rem; }
  .ring-2 .sat { bottom: -13px; }
  .sat-lock { top: 50%; left: auto; right: -15px; margin: -13px 0 0; width: 30px; }
  .feed { font-size: .62rem; }
  .logo-text { letter-spacing: .2em; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* Ochrana obsahu: text nejde označit (kromě formulářových polí); doplňuje /js/protect.js */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; }

/* ===== Úvodní hologram (4,3 s; řídí /js/intro.js) =====
   Stav stránky = třída has-intro na <html> (ne „intro“ – to je třída překryvu).
   Časová osa: 0–1,5 s paprsky dat, štít, log · 0,9–2,3 s znak N, hologram, nápis · 3,32 s ACCESS GRANTED
   · 3,62 s odchod. Odchod má dvě podoby: je-li na stránce vidět vizuál v úvodu, emblém do něj přeletí
   (třída is-handoff, polohu dopočítá JS); jinak se scéna přiblíží a panely se rozestoupí.
   Kliknutí nebo klávesa Esc/Enter/mezerník animaci přeskočí (třída is-skip). */
.intro { display: none; }
html.has-intro { overflow: hidden; }
html.has-intro .intro {
  position: fixed; inset: 0; z-index: 1000; display: block; color: var(--white); cursor: default;
  animation: intro-hide 0s linear 4.3s forwards;
}
html.has-intro .intro.is-skip { animation: intro-out .24s ease-out forwards; }
.intro-panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: radial-gradient(ellipse at 50% 100%, #0A1A1E 0%, var(--black) 70%);
}
.intro-panel-top { top: 0; animation: intro-open-top .5s cubic-bezier(.7, 0, .2, 1) 3.8s forwards; }
.intro-panel-bottom {
  bottom: 0; background: radial-gradient(ellipse at 50% 0%, #0A1A1E 0%, var(--black) 70%);
  animation: intro-open-bottom .5s cubic-bezier(.7, 0, .2, 1) 3.8s forwards;
}
.intro-panel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--cyan);
  box-shadow: 0 0 18px 2px var(--cyan); opacity: 0;
  animation: intro-seam .6s ease-out 3.4s forwards;
}
.intro-panel-top::after { bottom: 0; }
.intro-panel-bottom::after { top: 0; }
.intro-stage {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  animation: intro-zoom .59s cubic-bezier(.6, 0, .4, 1) 3.67s forwards;
}
/* Odchod přeletem: vše kromě emblému zhasne, panely se otevřou hned a emblém doletí na své místo */
.intro.is-handoff .intro-panel-top { animation: intro-open-top .5s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.is-handoff .intro-panel-bottom { animation: intro-open-bottom .5s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.is-handoff .intro-stage { animation: none; }
.intro.is-handoff :is(.intro-grid, .intro-scan, .intro-particles, .intro-log, .intro-text, .intro-beam, .intro-rings, .intro-lines) { animation: intro-out .22s ease-out forwards; }
.intro.is-handoff .intro-holo-wrap { transition: transform .62s cubic-bezier(.65, 0, .2, 1); }
.intro.is-handoff .emblem { filter: drop-shadow(0 0 10px rgba(0, 240, 224, .4)); transition: filter .4s; }

.intro-grid {
  position: absolute; inset: -20% -20% 0; opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 240, 224, .08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(0, 240, 224, .08) 0 1px, transparent 1px 44px);
  transform: perspective(600px) rotateX(60deg) translateY(28%);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  animation: intro-fade .8s ease-out .07s forwards, intro-grid-move 4.3s linear forwards;
}
.intro-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 224, .08) 70%, rgba(0, 240, 224, .45) 98%, transparent);
  transform: translateY(-30vh);
  animation: intro-scan 1.4s cubic-bezier(.4, 0, .2, 1) .26s, intro-scan 1.3s cubic-bezier(.4, 0, .2, 1) 2.15s forwards;
}
/* Paprsky dat letící ke středu: nosič je natočený do směru, světelná stopa se posouvá po jeho ose */
.intro-particles { position: absolute; inset: 0; display: grid; place-items: center; }
.intro-particles i { position: absolute; width: 0; height: 0; transform: rotate(var(--a)); }
.intro-particles i::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 240, 224, 0)); box-shadow: 0 0 8px rgba(0, 240, 224, .7);
  opacity: 0; transform: translateX(var(--d));
  animation: intro-converge 1.15s cubic-bezier(.55, 0, .2, 1) var(--t) forwards;
}
.intro-particles i:nth-child(1)  { --a: 12deg;  --d: 58vmax; --t: .12s; }
.intro-particles i:nth-child(2)  { --a: 38deg;  --d: 52vmax; --t: .3s; }
.intro-particles i:nth-child(3)  { --a: 67deg;  --d: 60vmax; --t: .18s; }
.intro-particles i:nth-child(4)  { --a: 95deg;  --d: 48vmax; --t: .46s; }
.intro-particles i:nth-child(5)  { --a: 121deg; --d: 56vmax; --t: .24s; }
.intro-particles i:nth-child(6)  { --a: 149deg; --d: 62vmax; --t: .38s; }
.intro-particles i:nth-child(7)  { --a: 171deg; --d: 50vmax; --t: .14s; }
.intro-particles i:nth-child(8)  { --a: 198deg; --d: 58vmax; --t: .52s; }
.intro-particles i:nth-child(9)  { --a: 224deg; --d: 54vmax; --t: .22s; }
.intro-particles i:nth-child(10) { --a: 251deg; --d: 60vmax; --t: .42s; }
.intro-particles i:nth-child(11) { --a: 277deg; --d: 48vmax; --t: .16s; }
.intro-particles i:nth-child(12) { --a: 303deg; --d: 56vmax; --t: .34s; }
.intro-particles i:nth-child(13) { --a: 329deg; --d: 62vmax; --t: .48s; }
.intro-particles i:nth-child(14) { --a: 352deg; --d: 52vmax; --t: .28s; }
/* Bootovací log */
.intro-log {
  position: absolute; left: clamp(16px, 4vw, 48px); top: clamp(16px, 5vh, 48px);
  display: grid; gap: 4px; text-align: left;
  font: 500 .72rem / 1.5 var(--mono); color: rgba(0, 240, 224, .75); letter-spacing: .04em;
}
.intro-log span { white-space: pre; overflow: hidden; width: 0; opacity: 0; animation: intro-type .42s steps(26, end) forwards; }
.intro-log span:nth-child(1) { animation-delay: .2s; color: var(--white); }
.intro-log span:nth-child(2) { animation-delay: .65s; }
.intro-log span:nth-child(3) { animation-delay: 1.1s; }
.intro-log span:nth-child(4) { animation-delay: 1.56s; }
.intro-log span:nth-child(5) { animation-delay: 2.02s; }
/* Jádro: hologram s emblémem, nápis, průběh */
.intro-core { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
.intro-holo-wrap { position: relative; width: clamp(160px, 28vmin, 250px); aspect-ratio: 1; }
.intro-float { position: absolute; inset: 0; animation: intro-float 3.3s ease-in-out forwards; }
.intro-beam {
  position: absolute; left: -25%; bottom: -34%; width: 150%; height: 120%;
  background: linear-gradient(to top, rgba(0, 240, 224, .30), rgba(0, 240, 224, .06) 60%, transparent);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  filter: blur(6px); opacity: 0;
  animation: intro-fade .65s ease-out 1.3s forwards;
}
.intro-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-ring { stroke: var(--cyan); stroke-width: .8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.intro-ring-a { stroke-dasharray: 3.2 8.6124; animation: intro-ring-a .6s ease-out .2s forwards, intro-spin 4.3s linear forwards; }
.intro-ring-b { stroke-dasharray: 48 24 6.4 24.6442; animation: intro-ring-b .6s ease-out .35s forwards, intro-spin-rev 4.3s linear forwards; }
.intro-shock {
  stroke: var(--cyan); stroke-width: 1.6; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: intro-shock .9s ease-out 3.32s forwards;
}
.intro .emblem {
  position: relative; filter: drop-shadow(0 0 12px rgba(0, 240, 224, .55));
  animation: intro-flicker 2.9s steps(1, end) .13s both;
}
.intro .em-hex { stroke-dasharray: 400; stroke-dashoffset: 400; animation: intro-draw 1.05s ease-out .26s forwards, intro-lock .65s ease-out 3.26s; }
.intro .em-verts circle { opacity: 0; animation: intro-fade .3s ease-out forwards; }
.intro .em-verts circle:nth-child(1) { animation-delay: .32s; }
.intro .em-verts circle:nth-child(2) { animation-delay: .5s; }
.intro .em-verts circle:nth-child(3) { animation-delay: .68s; }
.intro .em-verts circle:nth-child(4) { animation-delay: .86s; }
.intro .em-verts circle:nth-child(5) { animation-delay: 1.04s; }
.intro .em-verts circle:nth-child(6) { animation-delay: 1.22s; }
.intro .em-n { stroke-dasharray: 192; stroke-dashoffset: 192; animation: intro-draw .85s ease-in-out .9s forwards; }
.intro .em-nodes circle {
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2);
  animation: intro-pop .39s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.intro .em-nodes circle:nth-child(1) { animation-delay: .92s; }
.intro .em-nodes circle:nth-child(2) { animation-delay: 1.17s; }
.intro .em-nodes circle:nth-child(3) { animation-delay: 1.5s; }
.intro .em-nodes circle:nth-child(4) { animation-delay: 1.72s; }
.intro .em-facets line { opacity: 0; animation: intro-facet .4s ease-out 1.72s forwards; }
.intro .em-signal { animation: intro-signal .7s linear 3.3s; }
.intro-lines {
  position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 240, 224, .14) 0 1px, transparent 1px 4px);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  animation: intro-fade .5s ease-out 1.37s forwards, intro-lines 1.56s linear 1.37s infinite;
}
.intro-text { display: grid; justify-items: center; gap: 16px; }
.intro-word {
  display: flex; gap: .42em;
  font: 700 clamp(1.7rem, 5.4vmin, 2.9rem) / 1 var(--sans);
  animation: intro-glitch .29s steps(2, end) 2.87s;
}
.intro-word span { opacity: 0; transform: translateY(10px); animation: intro-letter .52s ease-out forwards; }
.intro-word span:nth-child(1) { animation-delay: 1.69s; }
.intro-word span:nth-child(2) { animation-delay: 1.78s; }
.intro-word span:nth-child(3) { animation-delay: 1.87s; }
.intro-word span:nth-child(4) { animation-delay: 1.96s; }
.intro-word span:nth-child(5) { animation-delay: 2.05s; }
.intro-word span:nth-child(6) { animation-delay: 2.14s; }
.intro-word span:nth-child(7) { animation-delay: 2.23s; }
.intro-tag {
  font: 500 .78rem / 1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); opacity: 0;
  animation: intro-fade .52s ease-out 2.54s forwards;
}
.intro-progress { display: flex; align-items: center; gap: 12px; }
.intro-bar {
  width: min(260px, 54vw); height: 4px; background: rgba(0, 240, 224, .14); overflow: hidden;
  mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px);
}
.intro-bar span {
  display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0); transform-origin: left;
  animation: intro-load 3.17s cubic-bezier(.45, 0, .55, 1) .13s forwards;
}
.intro-pct { min-width: 3.2em; text-align: right; font: 500 .72rem / 1 var(--mono); color: var(--cyan); }
.intro-ok {
  font: 700 .74rem / 1 var(--mono); letter-spacing: .34em; color: var(--black);
  background: var(--cyan); padding: 6px 10px 6px 14px; opacity: 0; transform: scaleX(.2);
  box-shadow: 0 0 24px rgba(0, 240, 224, .6);
  animation: intro-ok .39s cubic-bezier(.3, 1.4, .5, 1) 3.32s forwards;
}
@media (max-width: 560px) {
  .intro-tag { font-size: .66rem; letter-spacing: .12em; max-width: 92vw; }
  .intro-word { gap: .32em; }
  .intro-log { font-size: .6rem; }
}

@keyframes intro-hide { to { visibility: hidden; } }
@keyframes intro-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes intro-open-top { to { transform: translateY(-112%); } }
@keyframes intro-open-bottom { to { transform: translateY(112%); } }
@keyframes intro-seam { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .8; } }
@keyframes intro-zoom { to { opacity: 0; transform: scale(1.18); filter: blur(6px); } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-facet { to { opacity: .55; } }
@keyframes intro-ring-a { to { opacity: .5; } }
@keyframes intro-ring-b { to { opacity: .35; } }
@keyframes intro-grid-move { from { background-position: 0 0; } to { background-position: 0 132px; } }
@keyframes intro-scan { from { transform: translateY(-30vh); } to { transform: translateY(110vh); } }
@keyframes intro-converge {
  0% { opacity: 0; transform: translateX(var(--d)); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(46px); }
}
@keyframes intro-type { 0% { opacity: 1; width: 0; } 100% { opacity: 1; width: 48ch; } }
@keyframes intro-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes intro-lines { to { background-position: 0 8px; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-pop { to { opacity: 1; transform: scale(1); } }
@keyframes intro-spin { to { transform: rotate(260deg); } }
@keyframes intro-spin-rev { to { transform: rotate(-200deg); } }
@keyframes intro-lock { 0% { fill: rgba(0, 240, 224, .055); } 35% { fill: rgba(0, 240, 224, .38); } 100% { fill: rgba(0, 240, 224, .055); } }
@keyframes intro-signal { from { opacity: 1; stroke-dashoffset: 16; } to { opacity: 1; stroke-dashoffset: -100; } }
@keyframes intro-shock { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes intro-load { to { transform: scaleX(1); } }
@keyframes intro-ok { to { opacity: 1; transform: scaleX(1); } }
@keyframes intro-letter {
  0%   { opacity: 0; transform: translateY(10px); text-shadow: none; }
  40%  { opacity: 1; text-shadow: -4px 0 rgba(0, 240, 224, .9), 4px 0 rgba(244, 251, 251, .5); }
  60%  { transform: translateY(0) skewX(-10deg); }
  100% { opacity: 1; transform: none; text-shadow: 0 0 16px rgba(0, 240, 224, .4); }
}
@keyframes intro-glitch {
  0%   { transform: translateX(-3px); clip-path: inset(10% 0 55% 0); }
  50%  { transform: translateX(3px); clip-path: inset(50% 0 8% 0); }
  100% { transform: none; clip-path: none; }
}
@keyframes intro-flicker {
  0% { opacity: 0; } 5% { opacity: .8; } 8% { opacity: .2; } 12% { opacity: 1; }
  40% { opacity: 1; } 42% { opacity: .5; } 44% { opacity: 1; }
  70% { opacity: 1; } 71% { opacity: .7; } 72% { opacity: 1; } 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.has-intro { overflow: auto; }
  html.has-intro .intro { display: none; }
}
