/* OWN Build hero, direction B "Living system" (final). Every selector is scoped to #hero; keyframes are prefixed hx-.
   Self-contained: needs only the tokens in d4/base.css + d4/style.css (:root, .btn, .nav) and none of the old tunnel CSS.
   Sources (21st.dev): Flickering Grid #1485 (canvas cell field), Grid Beam #18024 (pulses along grid lines),
   Interactive Grid #39529 (pointer trail), Container Scroll Animation #1081 (rotateX that straightens on scroll),
   Rivr template #794 (rounded hero card with the nav inside, audit entry). */
/* section locals alias the site tokens (base.css / style.css); green (--hx-g) is only for ✓ */
#hero{--hx-k:var(--black);--hx-m:var(--label);--hx-l:rgba(0,0,0,.08);--hx-chip:var(--paper-2);--hx-g:#2f9e5b;--hx-ease:cubic-bezier(.2,.7,.2,1);
  position:relative;padding:12px 12px 52px}
#hero .hx-card{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--r-l,28px);background:var(--paper-2);
  box-shadow:inset 0 0 0 1px rgba(20,20,20,.05);padding:clamp(112px,15vh,140px) 24px 64px;
  display:flex;flex-direction:column;justify-content:center;min-height:min(calc(100svh - 24px),1400px)}
#hero .hx-card::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(62% 46% at 50% 26%,rgba(255,255,255,.62),rgba(255,255,255,0) 72%)}

/* field: one static SVG (studs + blocks) and small canvas sprites for whatever is moving */
#hero .hx-field{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;transition:opacity 1.2s var(--ease-out)}
#hero .hx-field.hx-on{opacity:1}
#hero .hx-fs{position:absolute;left:0;top:0;width:100%;height:100%;display:block;overflow:visible}
#hero .hx-field canvas{position:absolute;left:0;top:0;display:block}

/* copy */
#hero .hx-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;max-width:1000px;margin:0 auto}
#hero h1{font-weight:500;font-size:clamp(42px,5.6vw,84px);line-height:.98;letter-spacing:-.045em;max-width:17ch;color:var(--ink);
  animation:hx-up .32s var(--ease-out) both}
#hero .hx-copy p{margin-top:24px;max-width:46ch;color:#4a4a47;font-size:18px;line-height:1.55;text-wrap:balance;animation:hx-up .32s var(--ease-out) .03s both}
#hero .hx-nb{white-space:nowrap}
#hero .hx-cta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:30px;animation:hx-up .32s var(--ease-out) .03s both}
@keyframes hx-up{from{transform:translateY(10px)}to{transform:none}}
@media (min-width:901px){
  #hero .hx-copy p{max-width:none}
  #hero .hx-s{display:block}
}

/* audit entry: third choice in the CTA row (hairline circle, divider outside the focus ring) */
#hero .hx-audit{position:relative;display:inline-flex;align-items:center;gap:12px;margin-left:30px;padding:4px 14px 4px 4px;border-radius:999px;
  color:var(--ink);text-decoration:none;text-align:left}
#hero .hx-audit::before{content:"";position:absolute;left:-18px;top:2px;bottom:2px;width:1px;background:var(--line)}
#hero .hx-audit-ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:transparent;
  box-shadow:inset 0 0 0 1px rgba(20,20,20,.18);font-size:15px;line-height:1;transition:box-shadow .2s,transform .2s var(--ease-out)}
#hero .hx-audit:hover .hx-audit-ic,#hero .hx-audit:focus-visible .hx-audit-ic{box-shadow:inset 0 0 0 1.5px var(--ink);transform:translateX(2px)}
#hero .hx-audit b{display:block;font-weight:500;font-size:15px;line-height:1.25;letter-spacing:-.01em}
#hero .hx-audit small{display:block;font-size:13px;line-height:1.35;color:var(--muted)}
#hero .hx-audit:focus-visible{outline-offset:3px}

/* inline logo "Čtvrtý blok" (brandboard): the tile lands, three blocks settle, then the fourth block (the agent, with eyes)
   drops into its raised slot (CSS only, first paint). Size and baseline as on the brandboard: .82em, -.08em. */
#hero .hx-mark{display:inline-flex;width:.82em;height:.82em;vertical-align:-.08em}
#hero .hx-mark .h1-logo{display:block;width:100%;height:100%;overflow:visible}
#hero .hx-mark .hx-lt,#hero .hx-mark .hx-lb{transform-box:fill-box;transform-origin:center}
#hero .hx-mark .hx-lt{animation:hx-lt .4s var(--ease-out) backwards}
#hero .hx-mark .hx-lb{animation:hx-lb .42s var(--ease-spring) backwards}
#hero .hx-mark .hx-lb:nth-child(1){animation-delay:.12s}
#hero .hx-mark .hx-lb:nth-child(2){animation-delay:.2s}
#hero .hx-mark .hx-lb:nth-child(3){animation-delay:.28s}
#hero .hx-mark .hx-la{animation:hx-la .6s cubic-bezier(.3,1.3,.5,1) .55s backwards}
@keyframes hx-lt{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
@keyframes hx-lb{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes hx-la{0%{opacity:0;transform:translateY(-34px)}30%{opacity:1}100%{opacity:1;transform:none}}

/* stage + product window */
#hero .hx-stage{position:relative;z-index:2;width:100%;max-width:1080px;margin:40px auto 0}
#hero .hx-rise{animation:hx-rise 1.1s var(--ease-out) .1s both}
@keyframes hx-rise{from{opacity:0;transform:translateY(56px)}to{opacity:1;transform:none}}
#hero .hx-win{position:relative;transform-origin:50% 0;transform:perspective(1400px) rotateX(6deg);
  background:#fff;border-radius:14px;overflow:hidden;color:var(--hx-k);font:400 13px/1.2 var(--font);text-align:left;
  box-shadow:0 0 0 1px var(--hx-l),0 2px 4px rgba(0,0,0,.03),0 24px 48px -28px rgba(20,20,20,.3),0 60px 100px -50px rgba(20,20,20,.35)}
#hero .hx-win svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (hover:none),(pointer:coarse),(max-width:600px){#hero .hx-win{transform:none}}

#hero .hx-bar{display:flex;align-items:center;gap:16px;height:46px;padding:0 16px 0 14px;border-bottom:1px solid var(--hx-l)}
#hero .hx-brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13px;letter-spacing:-.01em;white-space:nowrap}
#hero .hx-brand svg{width:18px;height:18px;stroke:none}
#hero .hx-brand em{font-style:normal;font-weight:400;color:rgba(20,20,20,.24)}
#hero .hx-brand span{font-weight:500;color:var(--hx-m)}
#hero .hx-live{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
#hero .hx-pill{display:inline-flex;align-items:center;gap:6px;flex:none;height:24px;padding:0 10px 0 8px;border-radius:999px;
  background:var(--paper-2);border:1px solid var(--line);color:var(--ink);font-size:12px;font-weight:500;white-space:nowrap}
#hero .hx-pill i{position:relative;width:6px;height:6px;border-radius:50%;background:var(--hx-k)}
#hero .hx-pill i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--hx-k);opacity:0;animation:hx-ping 2.4s ease-out infinite}
@keyframes hx-ping{0%{transform:scale(1);opacity:.5}70%,100%{transform:scale(3.2);opacity:0}}
#hero .hx-live-t{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--hx-k)}
#hero .hx-lti{display:none}
#hero .hx-ltx{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hero .hx-ltx b{font-weight:600}
/* sample-data tag (one per visual, same recipe as #audit .au-demo): 11px mono, .06em, --label (5.9:1 on white) */
#hero .hx-note{flex:none;font:400 11px/1 var(--mono);letter-spacing:.06em;color:var(--label)}

#hero .hx-body{display:grid;grid-template-columns:minmax(0,1fr) 284px}
#hero .hx-board{position:relative;padding:16px 18px 14px;
  background:#fff radial-gradient(rgba(0,0,0,.055) 1px,transparent 1.2px) 0 0/14px 14px}
#hero .hx-bh{display:flex;align-items:center;gap:14px;margin-bottom:16px;font-size:13px}
#hero .hx-bh b{font-weight:500}
#hero .hx-prog{display:flex;gap:3px;flex:1;max-width:200px}
/* segments: the ink fill is a ::before that fades in (opacity runs on the compositor; no background transition) */
#hero .hx-prog i{position:relative;flex:1;height:6px;border-radius:2px;background:var(--hl)}
#hero .hx-prog i::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--hx-k);opacity:0;transition:opacity .45s}
#hero .hx-prog i.hx-on::before{opacity:1}
#hero .hx-prog i.hx-on,#hero .hx-prog i.hx-run{background:var(--faint)}
#hero .hx-prog i.hx-run{animation:hx-blink .8s ease-in-out infinite alternate}
@keyframes hx-blink{from{opacity:1}to{opacity:.35}}
#hero .hx-count{margin-left:auto;min-width:13ch;text-align:right;font:400 11px/1 var(--mono);color:var(--hx-m);font-variant-numeric:tabular-nums}

#hero .hx-tiles{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 14px}
/* tiles: the state looks are two layers under the content, so a state change is an opacity crossfade (compositor)
   instead of a background / border / box-shadow transition (a repaint of the window on every frame).
     ::before = surface, switched instantly: dashed + translucent (off, building, "+6" row) or white + hairline (.hx-on, .hx-done)
     ::after  = ink ring (building / waiting); it fades over the surface, so every surface switch happens under it
   The build progress bar is .hx-tx::before (track) + ::after (fill). */
#hero .hx-t,#hero .hx-more{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-width:0;height:60px;padding:0 12px;border-radius:10px;border:1px solid transparent}
#hero .hx-t::before,#hero .hx-t::after,#hero .hx-more::before,#hero .hx-more::after{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;pointer-events:none}
#hero .hx-t::before,#hero .hx-more::before{background:rgba(255,255,255,.72);border:1px dashed rgba(0,0,0,.2)}
#hero .hx-t.hx-on::before,#hero .hx-more.hx-done::before{background:#fff;border:1px solid var(--hx-l);box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 20px -14px rgba(0,0,0,.2)}
#hero .hx-t::after,#hero .hx-more::after{background:#fff;box-shadow:0 0 0 1.5px var(--hx-k),0 10px 24px -16px rgba(0,0,0,.35);opacity:0;transition:opacity .35s}
#hero .hx-t.hx-build::after,#hero .hx-more.hx-build::after,#hero .hx-t.hx-wait::after{opacity:1}
#hero .hx-ic{position:relative;isolation:isolate;flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--hx-chip);
  border:1px solid var(--hx-l);color:var(--hx-k)}
#hero .hx-ic svg{width:15px;height:15px}
/* building chip: an ink layer fades in under the icon and the icon turns white through a filter (both compositor-only) */
#hero .hx-t .hx-ic::before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;background:var(--hx-k);opacity:0;transition:opacity .35s}
#hero .hx-t .hx-ic>svg{transition:filter .35s}
#hero .hx-t.hx-build .hx-ic::before{opacity:1}
#hero .hx-t.hx-build .hx-ic>svg{filter:brightness(0) invert(1)}
#hero .hx-ok{position:absolute;right:-5px;bottom:-5px;width:13px;height:13px;border-radius:50%;border:2px solid #fff;
  background:var(--hx-g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.2 6.2 1.8 1.8 3.8-3.9' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
#hero .hx-tx{display:flex;flex-direction:column;gap:4px;min-width:0;line-height:1.2}
#hero .hx-tx b{font-size:12.5px;font-weight:500;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hero .hx-tx small{font-size:11px;color:var(--hx-m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#hero .hx-t:not(.hx-on) .hx-ic{background:transparent;border-style:dashed;border-color:rgba(0,0,0,.2);color:var(--faint)}
#hero .hx-t.hx-off .hx-tx b{color:var(--muted)}
#hero .hx-t.hx-off .hx-ok,#hero .hx-t.hx-build .hx-ok,#hero .hx-t.hx-wait .hx-ok{transform:scale(0)}
/* building: ink ring (::after), ink chip, determinate fill bar along the bottom (transform only) */
#hero .hx-t.hx-build small{color:var(--hx-k)}
#hero .hx-build>.hx-tx::before,#hero .hx-build>.hx-tx::after{content:"";position:absolute;left:12px;right:12px;bottom:6px;height:2px;border-radius:2px}
#hero .hx-build>.hx-tx::before{background:var(--hl)}
#hero .hx-build>.hx-tx::after{background:var(--hx-k);transform-origin:0 50%;animation:hx-fill var(--bd,.8s) linear both}
@keyframes hx-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
#hero .hx-t.hx-snapping,#hero .hx-more.hx-snapping{animation:hx-snap .55s var(--hx-ease)}
@keyframes hx-snap{0%{transform:scale(.95)}60%{transform:scale(1.015)}100%{transform:none}}
/* waiting for the owner: ink ring + a black "Schválit" chip on the top edge (the Agent chip's anatomy), no done tick */
#hero .hx-t.hx-wait::after{box-shadow:0 0 0 1.5px var(--hx-k),0 8px 20px -14px rgba(0,0,0,.25)}
#hero .hx-t.hx-wait small{color:var(--hx-k)}
#hero .hx-ap{position:absolute;right:7px;top:-11px;z-index:3;display:inline-flex;align-items:center;height:20px;padding:0 9px;border-radius:999px;
  background:var(--hx-k);color:#fff;font:500 11px/1 var(--font);letter-spacing:.01em;white-space:nowrap;pointer-events:none;
  box-shadow:0 4px 10px -4px rgba(0,0,0,.45);opacity:0;transform:scale(.8);transition:opacity .3s,transform .45s var(--hx-ease)}
#hero .hx-t.hx-wait .hx-ap{opacity:1;transform:none}
#hero .hx-t.hx-touched .hx-ic{animation:hx-touch .7s var(--hx-ease)}
@keyframes hx-touch{0%,100%{transform:none}40%{transform:scale(1.12)}}

/* phone-only summary row for the six blocks that do not fit */
#hero .hx-more{display:none;grid-column:1/-1;height:52px}
#hero .hx-ic-n{background:transparent;border-style:dashed;border-color:rgba(0,0,0,.25);font:500 11px/1 var(--font);color:var(--muted)}
#hero .hx-ic-n::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:6px;background:var(--hx-chip);opacity:0;transition:opacity .35s}
#hero .hx-more .hx-tx{flex:1}
#hero .hx-more small b{font-weight:600;color:var(--hx-k)}
#hero .hx-sq{display:grid;grid-template-columns:repeat(3,8px);gap:3px;flex:none}
#hero .hx-sq i{position:relative;width:8px;height:8px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3)}
#hero .hx-sq i::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--hx-k);opacity:0;transition:opacity .35s}
#hero .hx-sq i.hx-on::before{opacity:1}
#hero .hx-sq i.hx-on,#hero .hx-sq i.hx-run{box-shadow:inset 0 0 0 1.5px var(--hx-k)}
#hero .hx-sq i.hx-run{animation:hx-blink .8s ease-in-out infinite alternate}
#hero .hx-more.hx-touched .hx-ic{animation:hx-touch .7s var(--hx-ease)}
#hero .hx-more.hx-done .hx-ic-n{border-style:solid;border-color:var(--hx-l);color:var(--hx-k)}
#hero .hx-more.hx-done .hx-ic-n::before{opacity:1}

/* wires sit above the tiles but only run in the gaps; ports sit on the tile edges */
#hero .hx-wires{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible;pointer-events:none}
#hero .hx-wires path{fill:none;stroke:var(--hx-k);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#hero .hx-wires circle{fill:#fff;stroke:var(--hx-k);stroke-width:1.5}

/* the agent: a small ink pill that glides (transform only) to the block it is working on; on the waiting block it parks
   beside the "Schválit" chip (hero.js) */
#hero .hx-cur{position:absolute;left:0;top:0;z-index:3;display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px 0 6px;border-radius:999px;
  background:var(--hx-k);color:#fff;font:500 11px/1 var(--font);letter-spacing:.01em;white-space:nowrap;pointer-events:none;
  box-shadow:0 4px 10px -4px rgba(0,0,0,.45);opacity:0;transform:translate3d(var(--cx,0),var(--cy,0),0) scale(.8);
  transition:transform .45s var(--hx-ease),opacity .3s}
#hero .hx-cur.hx-on{opacity:1;transform:translate3d(var(--cx,0),var(--cy,0),0)}
#hero .hx-cur svg{width:11px;height:11px;stroke-width:2}

#hero .hx-legend{display:flex;align-items:center;gap:16px;margin-top:16px;font:400 10.5px/1 var(--mono);color:var(--hx-m)}
#hero .hx-legend span{display:inline-flex;align-items:center;gap:6px}
#hero .hx-legend i{display:inline-block;width:8px;height:8px;border-radius:2px}
#hero .hx-legend .hx-lg-on{background:var(--hx-k)}
#hero .hx-legend .hx-lg-off{border:1px dashed rgba(0,0,0,.35)}
#hero .hx-legend .hx-lg-wait{border:1.5px solid var(--hx-k)}
#hero .hx-legend .hx-legend-r{display:none}

#hero .hx-agent{display:flex;flex-direction:column;min-width:0;padding:14px 16px 0;border-left:1px solid var(--hx-l);background:#fcfcfb}
#hero .hx-ah{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--hx-l)}
#hero .hx-ic-k{background:var(--hx-k);border-color:var(--hx-k);color:#fff}
#hero .hx-kpi{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin:0;padding:12px 0 10px;border-bottom:1px solid var(--hx-l)}
#hero .hx-kpi span{display:block;margin-bottom:6px;font:400 10.5px/1 var(--mono);color:var(--hx-m)}
#hero .hx-kpi b{font-weight:500;font-size:17px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
#hero .hx-kpi em{display:none}
#hero .hx-feed{position:relative;flex:1;min-height:0;list-style:none;margin:0;padding:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
#hero .hx-f{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:10px;height:40px;border-bottom:1px solid rgba(0,0,0,.055);
  transform:translateY(calc(var(--y,0) * 100%));transition:transform .55s var(--hx-ease),opacity .55s var(--hx-ease)}
#hero .hx-fi{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--hx-chip);border:1px solid var(--hx-l)}
#hero .hx-fi svg{width:12px;height:12px}
#hero .hx-ft{flex:1;min-width:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hero .hx-f+.hx-f .hx-ft{color:var(--muted)}

/* paused off-screen / hidden tab */
#hero.hx-paused *,#hero.hx-paused *::before,#hero.hx-paused *::after{animation-play-state:paused!important}

/* ── big screens: scale the composition up, keep the next section out of the first screen ── */
@media (min-width:1680px){
  #hero h1{font-size:clamp(46px,6.2vw,120px)}
  #hero .hx-card{padding-top:clamp(112px,15vh,160px)}
  #hero .hx-stage{max-width:1200px}
}
/* ── laptop widths: narrower agent rail, tighter tiles so block names stay whole ── */
@media (max-width:1180px){
  #hero .hx-body{grid-template-columns:minmax(0,1fr) 248px}
  #hero .hx-board{padding:16px 16px 14px}
  #hero .hx-tiles{gap:14px 10px}
  #hero .hx-t{padding:0 10px;gap:9px}
  #hero .hx-ic{width:26px;height:26px}
  #hero .hx-tx b{font-size:12px}
  #hero .hx-tx small{font-size:10.5px}
  #hero .hx-pre{display:none}
}
@media (min-width:901px) and (max-width:1023px){
  #hero .hx-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* ── ≤900px: single column window, agent panel hidden, 3-col board ── */
@media (max-width:900px){
  #hero{padding:8px 8px 40px}
  #hero .hx-card{padding:104px 18px 48px}
  #hero h1{font-size:clamp(44px,11vw,72px)}
  #hero .hx-copy p{font-size:16.5px;max-width:42ch}
  #hero .hx-stage{max-width:660px;margin-top:44px}
  #hero .hx-body{grid-template-columns:1fr}
  #hero .hx-agent{display:none}
  #hero .hx-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  #hero .hx-brand em,#hero .hx-brand span{display:none}
}
/* ── ≤600px: phone. The status line becomes the agent's voice under the bar; six tiles + a summary row ── */
@media (max-width:600px){
  #hero .hx-card{padding:84px 14px 32px;border-radius:22px}
  #hero h1{font-size:clamp(42px,12.6vw,60px)}
  #hero .hx-copy p{margin-top:18px;font-size:16px}
  #hero .hx-cta{margin-top:24px;gap:8px}
  #hero .hx-cta .btn{height:46px;padding:0 18px}
  #hero .hx-audit{margin:0;padding:4px 12px 4px 4px}
  #hero .hx-audit::before{display:none}
  #hero .hx-audit-ic{width:36px;height:36px}
  #hero .hx-audit b{font-size:14.5px}
  #hero .hx-cta .hx-audit{flex:none}
  #hero .hx-cta::after{content:"";order:1;flex-basis:100%;height:0}
  #hero .hx-cta .hx-audit{order:2}
  #hero .hx-stage{margin-top:28px}
  #hero .hx-win{border-radius:12px}
  #hero .hx-bar{flex-wrap:wrap;gap:0 10px;height:auto;padding:0}
  #hero .hx-brand{font-size:0;gap:0;padding:12px 0 12px 12px}
  #hero .hx-live{display:contents}
  #hero .hx-pill{order:1}
  #hero .hx-note{order:2;margin-left:auto;padding-right:12px}
  #hero .hx-live-t{order:3;flex-basis:100%;height:32px;padding:0 12px;gap:8px;border-top:1px solid var(--hx-l);background:var(--ground);font-size:12.5px}
  #hero .hx-lti{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:6px;background:var(--hx-k);color:#fff}
  #hero .hx-lti svg{width:11px;height:11px;stroke-width:2}
  #hero .hx-board{padding:10px 12px 10px}
  #hero .hx-bh{gap:10px;margin-bottom:12px}
  #hero .hx-prog{max-width:none}
  #hero .hx-count{min-width:0}
  #hero .hx-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 10px}
  #hero .hx-t.hx-x{display:none}
  #hero .hx-more{display:flex;height:48px;padding:0 12px 0 10px}
  #hero .hx-t{height:52px;padding:0 10px;gap:9px}
  #hero .hx-legend{gap:12px;margin-top:10px;font-size:10px}
  #hero .hx-legend span:nth-child(2){display:none}
}
@media (max-width:380px){
  #hero .hx-cta .btn{padding:0 14px;font-size:14.5px}
  #hero .hx-legend span:nth-child(3){display:none}
}
/* short viewports / landscape phones: keep H1 + CTAs in the first screen */
@media (max-height:520px) and (orientation:landscape){
  #hero .hx-card{padding-top:80px;justify-content:flex-start}
  #hero h1{font-size:clamp(40px,12vh,60px)}
  #hero .hx-copy p{margin-top:14px}
  #hero .hx-cta{margin-top:18px}
}

/* ── reduced motion: static composition, nothing moves ── */
@media (prefers-reduced-motion:reduce){
  #hero h1,#hero .hx-copy p,#hero .hx-cta,#hero .hx-rise,#hero .hx-mark .hx-lt,#hero .hx-mark .hx-lb,#hero .hx-mark .hx-la{animation:none}
  #hero .hx-win,#hero .hx-win[style]{transform:none!important}
  #hero .hx-field{transition:none}
  #hero .hx-pill i::after,#hero .hx-prog i.hx-run,#hero .hx-sq i.hx-run,#hero .hx-build>.hx-tx::after,#hero .hx-t.hx-snapping,#hero .hx-t.hx-touched .hx-ic{animation:none}
  #hero .hx-win *,#hero .hx-win *::before,#hero .hx-win *::after,#hero .hx-audit-ic{transition:none}
}
@media (forced-colors:active){#hero .hx-audit-ic,#hero .hx-ap{border:1px solid}}

/* Kicker a řádek důkazů v heru (31. 10. 2026) */
#hero .hx-kick{margin:0 0 14px;animation:hx-up .32s var(--ease-out) both}
#hero .hx-proof{margin-top:18px;font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--label);display:flex;flex-wrap:wrap;justify-content:center;gap:0 10px;animation:hx-up .32s var(--ease-out) .06s both}
#hero .hx-proof i{font-style:normal;opacity:.45}
@media (max-width:600px){#hero .hx-proof{font-size:11px;gap:0 8px}#hero .hx-kick{margin-bottom:10px}}

/* ── layout of the new copy (1. 11. 2026): kicker, h1 line breaks per width ── */
/* kicker: it is a <p>, so "#hero .hx-copy p" (18 px, margin-top 24 px, #4a4a47, 46ch) beat .lbl and #hero .hx-kick.
   Back to the label voice, one line at every width, one step from the H1. */
#hero .hx-copy .hx-kick{margin:0 0 22px;max-width:none;font-size:13px;line-height:1.2;letter-spacing:.16em;color:var(--label);white-space:nowrap}
@media (max-width:600px){#hero .hx-copy .hx-kick{margin-bottom:16px;font-size:11px;letter-spacing:.14em}}
/* "AI stavebnice s agenty pro podnikatele" (38 znaků) je na 11 px 309 px široký: pod 360 px by přesáhl okraj karty */
@media (max-width:359px){#hero .hx-copy .hx-kick{font-size:10px;letter-spacing:.1em}}
@media (min-width:1680px){#hero .hx-copy .hx-kick{margin-bottom:28px;font-size:14.5px}}
/* phones (≤600): always the four short lines of 390 ("Váš systém, / ▣ kde agenti / řídí obchod / a marketing."),
   so 481–600 no longer falls into 3 ragged lines; 6em sits between the longest kept line (5.1em) and the shortest
   merged one (7em), at every font size */
@media (max-width:600px){#hero h1{max-width:6em}}
/* tablets (601–900): two lines like desktop ("Váš systém, ▣ kde agenti / řídí obchod a marketing.") instead of 3 ragged */
@media (min-width:601px) and (max-width:900px){#hero h1{font-size:clamp(44px,8.6vw,72px)}}
/* big screens (≥1680, H1 up to 120 px): the 1000 px copy column broke the claim into 3 ragged lines; give it room for 2 */
@media (min-width:1680px){#hero .hx-copy{max-width:1240px}}
/* landscape phones keep hero.css's short-viewport size (restated: the tablet size above would win otherwise) */
@media (max-height:520px) and (orientation:landscape){#hero h1{font-size:clamp(40px,12vh,60px);max-width:17ch}}
