/* Hub Harmony Lab (web spec 6): úvodní stránka webu. Běžná responzivní stránka 320 až 1440 px
   a víc, bez přepínače zařízení. Stojí na tokenech lab.css (--ink, --paper, --h1 až --h4, --display,
   --sans, --mono, --brand, --gutter, --max, --ease); lištu kreslí shell.css, sem nepatří.
   Obrázky karet jsou jen CSS (přechody a jednoduché tvary v barvě hračky), dokud balík Z nedodá
   plakáty. Žádná nekonečná animace: pohyb je jen přechod při najetí a zaostření, a pod
   prefers-reduced-motion ani ten ne. Bagel Fat One nese jen nápis Harmony Lab a velké G. */

/* ---------------------------------------------------------------- jeviště a sloupec */
.hl-hub {
  position: relative;
  isolation: isolate;
  padding-bottom: 8px;
}
/* Světla nad jevištěm: tři měkké skvrny v barvách hraček, statické */
.hl-hub::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(1100px, 100%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 14% 4%, rgba(255, 184, 74, 0.11), transparent 72%),
    radial-gradient(40% 34% at 76% 10%, rgba(255, 78, 38, 0.13), transparent 72%),
    radial-gradient(36% 30% at 40% 58%, rgba(180, 136, 255, 0.07), transparent 72%),
    radial-gradient(30% 26% at 92% 72%, rgba(77, 215, 255, 0.06), transparent 72%);
}
.hl-hub > * {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  margin-inline: auto;
}
.hl-hub h1, .hl-hub h2, .hl-hub h3 { font-weight: 400; }
/* Krátké řádky bez osamělého slova na konci, odstavce s hezčím zlomem (kde to prohlížeč umí) */
.hub-line, .hub-name, .hub-desc, .hub-outro-title { text-wrap: balance; }
.hub-sub, .hub-do, .hub-outro-copy p, .hub-moved-text { text-wrap: pretty; }
/* Dělení slov (lab.css pod :lang(cs)) jen v běžných odstavcích, ne v řádcích jako nadpis nebo štítek */
.hl-hub :is(.hub-line, .hub-desc, .hub-private, .hub-beta, .hub-moved-text) { -webkit-hyphens: manual; hyphens: manual; }

/* ---------------------------------------------------------------- řádek o přestěhování LoopStation */
.hub-moved {
  --rgb: 47 240 138;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgb(var(--rgb) / 0.32);
  background: rgb(var(--rgb) / 0.07);
}
.hub-moved[hidden] { display: none; }
.hub-moved-dot {
  width: 9px; height: 9px; flex: none;
  border-radius: 50%;
  background: rgb(var(--rgb));
  box-shadow: 0 0 10px rgb(var(--rgb) / 0.9);
}
.hub-moved-text { flex: 1 1 220px; min-width: 0; font-size: 15px; line-height: 1.4; }
.hub-moved-go {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 100px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.hub-moved-x {
  position: relative; flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--paper-mute);
}
.hub-moved-x::before, .hub-moved-x::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px;
  background: currentColor;
  transform: rotate(45deg);
}
.hub-moved-x::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .hub-moved-go:hover { background: rgb(var(--rgb)); }
  .hub-moved-x:hover { color: var(--paper); background: rgba(244, 239, 230, 0.08); }
}

/* ---------------------------------------------------------------- horní část: úvod a sbor */
.hub-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 56px);
  padding-top: clamp(28px, 5vw, 48px);
}
@media (min-width: 1000px) {
  .hub-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 4vw, 72px);
    align-items: start;
  }
}

/* Úvod */
.hub-beta {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 7px 14px 7px 11px;
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  background: rgba(244, 239, 230, 0.04);
  font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: 0.03em;
  color: var(--paper-mute);
}
.hub-beta-dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--h2);
  box-shadow: 0 0 10px var(--h2);
}

/* Nápis Harmony Lab: Bagel Fat One, dva řádky, vrstvený stín v barvách hraček jako kostky stavebnice */
.hub-mark {
  position: relative;
  margin-top: clamp(18px, 3vw, 28px);
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(64px, 18vw, 124px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-shadow:
    0.025em 0.025em 0 var(--h1),
    0.05em 0.05em 0 var(--h2),
    0.075em 0.075em 0 var(--h3),
    0.1em 0.1em 0 var(--h4);
  padding-bottom: 0.1em;
}
@media (min-width: 1000px) {
  .hub-mark { font-size: clamp(76px, 8vw, 136px); }
  .hub-line { font-size: clamp(30px, 2.8vw, 40px); }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .hub-hero { position: sticky; top: calc(var(--hl-bar-h, 48px) + 28px); }
}
.hub-mark-w { display: block; width: max-content; position: relative; }
.hub-mark:focus { outline: none; }
/* Notová osnova za slovem Lab a akord, který po něm hraje (jen dekorace) */
.hub-staff {
  position: absolute;
  left: 0; top: 54%;
  width: 4.35em; max-width: 100%;
  height: 0.4em;
  border-bottom: 1px solid rgba(244, 239, 230, 0.13);
  background:
    radial-gradient(0.066em 0.047em at 76% 37.5%, var(--h3) 90%, transparent 100%),
    radial-gradient(0.066em 0.047em at 76% 62.5%, var(--h1) 90%, transparent 100%),
    radial-gradient(0.066em 0.047em at 76% 87.5%, var(--h2) 90%, transparent 100%),
    radial-gradient(0.066em 0.047em at 90% 25%, var(--h4) 90%, transparent 100%),
    radial-gradient(0.066em 0.047em at 90% 50%, var(--h3) 90%, transparent 100%),
    radial-gradient(0.066em 0.047em at 90% 75%, var(--h1) 90%, transparent 100%),
    repeating-linear-gradient(to bottom, rgba(244, 239, 230, 0.13) 0 1px, transparent 1px 25%);
  pointer-events: none;
}

.hub-line {
  margin-top: clamp(20px, 3vw, 30px);
  max-width: 15em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(27px, 4.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hub-line em { font-style: italic; color: var(--h2); }
.hub-sub {
  margin-top: 14px;
  max-width: 30em;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.5;
  color: var(--paper-mute);
}
.hub-private {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 20px;
  max-width: 34em;
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--paper-mute);                        /* --paper-dim má na jevišti kontrast jen 2,9 : 1 */
}
/* Sluchátka: oblouk a dvě mušle */
.hub-ico-phones {
  position: relative; flex: none;
  width: 15px; height: 13px; margin-top: 2px;
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.hub-ico-phones::before, .hub-ico-phones::after {
  content: "";
  position: absolute; bottom: -1px;
  width: 4px; height: 6px;
  border-radius: 1.5px;
  background: currentColor;
}
.hub-ico-phones::before { left: -2.5px; }
.hub-ico-phones::after { right: -2.5px; }

/* ---------------------------------------------------------------- karty (společné) */
.hub-card {
  --accent: var(--h2);
  --rgb: 255 184 74;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgb(var(--rgb) / 0.16);
  background:
    linear-gradient(180deg, rgb(var(--rgb) / 0.07), rgba(244, 239, 230, 0.012) 58%),
    var(--ink-soft);
  color: var(--paper);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.hub-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 22px;
}
@media (hover: hover) {
  .hub-card:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--rgb) / 0.5);
    box-shadow: 0 22px 54px -22px rgb(var(--rgb) / 0.5);
  }
}
.hub-card:active { transform: translateY(-1px) scale(0.995); }

.hub-t-choir            { --accent: var(--h1); --rgb: 255 78 38; }
.hub-t-song             { --accent: var(--h4); --rgb: 180 136 255; }
.hub-t-loopstation      { --accent: #2FF08A;   --rgb: 47 240 138; }   /* zelená LED LoopStation */
.hub-t-split-screen     { --accent: var(--h1); --rgb: 255 78 38; }
.hub-t-reharm-reels     { --accent: var(--h3); --rgb: 77 215 255; }
.hub-t-downbeat         { --accent: var(--h2); --rgb: 255 184 74; }
.hub-t-harmonizer       { --accent: var(--h4); --rgb: 180 136 255; }
.hub-t-negative-harmony { --accent: var(--h2); --rgb: 255 184 74; }
.hub-t-half-sharp       { --accent: var(--h3); --rgb: 77 215 255; }

.hub-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  padding: 16px 10px 8px;
  min-width: 0;
}
.hub-eyebrow {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hub-name {
  font-family: var(--display);
  font-size: clamp(24px, 2.1vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
.hub-desc {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.25;
  color: var(--accent);
}
.hub-do {
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper-mute);
}
.hub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: auto;
  padding-top: 10px;
}
.hub-row > .hub-arrow:only-child { margin-left: auto; }
.hub-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-mute);
}
/* Mikrofon: hlavička, třmen a nožka */
.hub-ico-mic {
  position: relative; flex: none;
  width: 10px; height: 13px;
  background: linear-gradient(currentColor, currentColor) 50% 100% / 1.5px 3px no-repeat;
}
.hub-ico-mic::before {
  content: "";
  position: absolute; left: 2.5px; top: 0;
  width: 5px; height: 8px;
  border-radius: 3px;
  background: var(--accent);
}
.hub-ico-mic::after {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 10px; height: 6px;
  border: 1.5px solid currentColor; border-top: 0;
  border-radius: 0 0 6px 6px;
}
/* Šipka: čára a zobáček */
.hub-arrow {
  position: relative; flex: none;
  width: 22px; height: 12px;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
}
.hub-arrow::before {
  content: "";
  position: absolute; left: 0; right: 1px; top: 50%;
  height: 1.5px; margin-top: -0.75px;
  background: currentColor;
}
.hub-arrow::after {
  content: "";
  position: absolute; right: 1px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 75% 25%;
}
@media (hover: hover) {
  .hub-card:hover .hub-arrow { transform: translateX(5px); }
}

/* Obrázek karty: jeviště v barvě hračky, tvary jsou prázdné <i> */
.hub-viz {
  --vh: 168px;
  position: relative;
  display: block;
  flex: none;
  height: var(--vh);
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(120% 90% at 50% 118%, rgb(var(--rgb) / 0.24), transparent 62%),
    linear-gradient(180deg, rgba(244, 239, 230, 0.03), rgba(244, 239, 230, 0)),
    #08081A;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.05);
}
.hub-viz i { position: absolute; display: block; }

/* ---------------------------------------------------------------- hlavní karta: Sbor */
.hub-feature {
  display: grid;
  gap: 16px;
  align-content: start;
}
.hub-main .hub-body { padding: 20px 14px 12px; gap: 10px; }
.hub-main .hub-name { font-size: clamp(40px, 5.4vw, 62px); line-height: 0.98; letter-spacing: -0.02em; }
.hub-main .hub-desc { font-size: clamp(19px, 1.7vw, 23px); }
.hub-main .hub-do { font-size: 16px; max-width: 36em; }
.hub-main .hub-row { padding-top: 14px; justify-content: flex-start; gap: 12px 18px; }
.hub-cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 46px;
  padding: 0 20px 0 22px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  transition: background-color 0.3s;
}
.hub-cta .hub-arrow { color: currentColor; }
@media (hover: hover) {
  .hub-main:hover .hub-cta { background: var(--accent); }
}

/* Sbor: šest rovných pruhů (hluboké hlasy vlevo), v každém tečky zpěváků a tón, který part drží */
.hub-viz-choir {
  --vh: clamp(200px, 30vw, 300px);
  display: flex;
  padding: 0 3%;
  background:
    radial-gradient(64% 64% at 50% -14%, rgb(var(--rgb) / 0.34), transparent 70%),
    radial-gradient(120% 60% at 50% 118%, rgb(var(--rgb) / 0.28), transparent 62%),
    #0A0818;
}
.hub-viz-choir i {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  border-left: 1px solid rgba(244, 239, 230, 0.07);
}
.hub-viz-choir i:first-child { border-left: 0; }
.hub-viz-choir i::before {
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: 7%;
  height: 24%;
  background: radial-gradient(circle, rgb(var(--lane) / 0.8) 0 2.6px, transparent 3.4px) 50% 0 / 13px 12px;
  -webkit-mask: linear-gradient(to top, #000 55%, transparent);
  mask: linear-gradient(to top, #000 55%, transparent);
}
.hub-viz-choir i::after {
  content: "";
  position: absolute; left: 16%; right: 16%;
  bottom: var(--y);
  height: 10px;
  border-radius: 10px;
  background: rgb(var(--lane));
  box-shadow: 0 0 22px rgb(var(--lane) / 0.85);
  transition: bottom 0.7s var(--ease);
}
.hub-viz-choir i:nth-child(1) { --lane: 180 136 255; --y: 38%; }
.hub-viz-choir i:nth-child(2) { --lane: 218 107 146; --y: 47%; }
.hub-viz-choir i:nth-child(3) { --lane: 255 78 38;   --y: 55%; }
.hub-viz-choir i:nth-child(4) { --lane: 255 108 46;  --y: 63%; }
.hub-viz-choir i:nth-child(5) { --lane: 255 146 60;  --y: 71%; }
.hub-viz-choir i:nth-child(6) { --lane: 255 184 74;  --y: 79%; }
@media (hover: hover) {
  .hub-main:hover .hub-viz-choir i::after { bottom: calc(var(--y) + 6%); }
  .hub-main:hover .hub-viz-choir i:nth-child(2n)::after { bottom: calc(var(--y) - 4%); }
}

/* Song to choir: vlna písničky se rozloží do teček sboru */
.hub-song .hub-body { padding: 16px 12px 10px; }
.hub-viz-song { --vh: 150px; }
.hub-viz-song .wave {
  left: 7%; width: 40%; top: 18%; bottom: 18%;
  --c: rgb(var(--rgb));
  background:
    linear-gradient(var(--c), var(--c)) 0% 50% / 4% 30% no-repeat,
    linear-gradient(var(--c), var(--c)) 7.1% 50% / 4% 54% no-repeat,
    linear-gradient(var(--c), var(--c)) 14.3% 50% / 4% 78% no-repeat,
    linear-gradient(var(--c), var(--c)) 21.4% 50% / 4% 44% no-repeat,
    linear-gradient(var(--c), var(--c)) 28.6% 50% / 4% 96% no-repeat,
    linear-gradient(var(--c), var(--c)) 35.7% 50% / 4% 62% no-repeat,
    linear-gradient(var(--c), var(--c)) 42.9% 50% / 4% 34% no-repeat,
    linear-gradient(var(--c), var(--c)) 50% 50% / 4% 74% no-repeat,
    linear-gradient(var(--c), var(--c)) 57.1% 50% / 4% 100% no-repeat,
    linear-gradient(var(--c), var(--c)) 64.3% 50% / 4% 52% no-repeat,
    linear-gradient(var(--c), var(--c)) 71.4% 50% / 4% 70% no-repeat,
    linear-gradient(var(--c), var(--c)) 78.6% 50% / 4% 40% no-repeat,
    linear-gradient(var(--c), var(--c)) 85.7% 50% / 4% 84% no-repeat,
    linear-gradient(var(--c), var(--c)) 92.9% 50% / 4% 50% no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 50% / 4% 26% no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.35));
  mask: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.35));
  transition: transform 0.6s var(--ease);
}
.hub-viz-song .flow {
  left: 50.5%; width: 9%; top: 50%;
  height: 1.5px;
  background: rgba(244, 239, 230, 0.55);
}
.hub-viz-song .flow::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-top: 1.5px solid rgba(244, 239, 230, 0.55); border-right: 1.5px solid rgba(244, 239, 230, 0.55);
  transform: rotate(45deg);
}
.hub-viz-song .lanes {
  right: 7%; width: 28%; top: 16%; bottom: 16%;
  background:
    radial-gradient(circle, rgb(255 78 38 / 0.9) 0 3px, transparent 3.8px) 0 0 / 25% 20%,
    linear-gradient(90deg, rgba(244, 239, 230, 0.08) 1px, transparent 1px) 0 0 / 25% 100%;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .hub-song:hover .wave { transform: scaleY(1.12); }
  .hub-song:hover .lanes { transform: translateY(-4px); }
}
/* Široká druhá karta: obrázek vlevo, text vpravo */
@media (min-width: 560px) {
  .hub-song { flex-direction: row; align-items: stretch; }
  .hub-song .hub-viz { width: 42%; height: auto; min-height: var(--vh); }
  .hub-song .hub-body { padding: 14px 14px 10px 20px; }
}

/* ---------------------------------------------------------------- mřížka ostatních hraček */
.hub-toys { padding-top: clamp(64px, 9vw, 112px); }
.hub-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-mute);
}
.hub-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.hub-kicker::after { content: ""; height: 1px; flex: 1 1 auto; background: var(--ink-rule); }
.hub-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.hub-grid > li { display: flex; min-width: 0; }
.hub-grid > li > .hub-card { flex: 1 1 auto; }
@media (max-width: 599px) {
  .hub-t-loopstation .hub-viz { --vh: 196px; }
}
@media (min-width: 600px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .hub-wide { grid-column: span 2; }
  .hub-wide .hub-card { flex-direction: row; align-items: stretch; }
  .hub-wide .hub-viz { width: 58%; height: auto; min-height: var(--vh); }
  .hub-wide .hub-body { padding: 18px 14px 10px 22px; }
}
@media (min-width: 1180px) {
  .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* LoopStation: displej, pět pedálů se smyčkou v různé fázi (poslední nahrává) a na široké kartě
   i osm padů. Mřížka se sloupci nejvýš 56 px: na úzké kartě se pedály zmenší, nikdy nepřetečou. */
.hub-viz-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 56px));
  justify-content: center;
  align-content: center;
  gap: 18px 12px;
  padding: 14px 6%;
}
.hub-viz-loop i { position: relative; }
.hub-viz-loop .lcd {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 210px); height: 22px;
  border-radius: 6px;
  background: #0B1B52;
  box-shadow: inset 0 0 0 1px rgba(230, 239, 255, 0.16), 0 0 18px rgba(80, 120, 255, 0.18);
}
.hub-viz-loop .lcd::before {
  content: "";
  position: absolute; left: 10px; top: 7px; bottom: 7px; width: 46%;
  background: repeating-linear-gradient(90deg, rgba(230, 239, 255, 0.8) 0 6px, transparent 6px 9px);
}
.hub-viz-loop .lcd::after {
  content: "";
  position: absolute; right: 10px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF2F36;
  box-shadow: 0 0 8px #FF2F36;
}
.hub-viz-loop .pedal { width: 100%; aspect-ratio: 1; }
.hub-viz-loop .pedal::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgb(var(--ring)) calc(var(--p) * 1%), rgba(244, 239, 230, 0.1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  transition: transform 0.9s var(--ease);
}
.hub-viz-loop .pedal::after {
  content: "";
  position: absolute; inset: 27%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #3A3A42, #131316 70%);
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.08), 0 0 14px rgb(var(--ring) / var(--glow, 0.25));
}
.hub-viz-loop .pedal:nth-child(2) { --ring: 47 240 138; --p: 100; --glow: 0.55; }
.hub-viz-loop .pedal:nth-child(3) { --ring: 47 240 138; --p: 74; }
.hub-viz-loop .pedal:nth-child(4) { --ring: 47 240 138; --p: 48; }
.hub-viz-loop .pedal:nth-child(5) { --ring: 47 240 138; --p: 22; }
.hub-viz-loop .pedal:nth-child(6) { --ring: 255 47 54;  --p: 61; --glow: 0.6; }
/* Osm padů jako jeden prvek a sedm kopií stínem (stín drží zaoblení rohů) */
.hub-viz-loop .pads {
  grid-column: 1 / -1;
  justify-self: center;
  width: 26px; height: 26px;
  margin-right: 96px;
  border-radius: 7px;
  background: #24242A;
  box-shadow:
    32px 0 0 #24242A, 64px 0 0 rgb(255 176 32 / 0.85), 96px 0 0 #24242A,
    0 32px 0 #24242A, 32px 32px 0 rgb(179 107 255 / 0.85), 64px 32px 0 #24242A, 96px 32px 0 rgb(47 240 138 / 0.75);
}
.hub-viz-loop .pads { display: block; margin-bottom: 32px; }
@media (hover: hover) {
  .hub-t-loopstation:hover .pedal::before { transform: rotate(120deg); }
}

/* Split Screen: mřížka 3 x 2, v každém okně Jacob, tvoje okno nahrává */
.hub-viz-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 14px;
}
.hub-viz-split i {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(244, 239, 230, 0.05);
  --a: 0.4;
}
.hub-viz-split i::before {
  content: "";
  position: absolute; left: 50%; top: 22%;
  width: 26%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgb(var(--rgb) / var(--a));
  transition: background-color 0.5s;
}
.hub-viz-split i::after {
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: -16%;
  height: 46%;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  background: rgb(var(--rgb) / var(--a));
  transition: background-color 0.5s;
}
.hub-viz-split i:nth-child(2) { --a: 0.95; background: rgb(var(--rgb) / 0.14); box-shadow: inset 0 0 0 2px rgb(var(--rgb)); }
.hub-viz-split i:nth-child(4) { --a: 0.65; }
.hub-viz-split i:nth-child(6) { --a: 0.55; }
@media (hover: hover) {
  .hub-t-split-screen:hover .hub-viz-split i { --a: 0.9; }
}

/* Reharm Reels: čtyři válce, druhý zamčený, uprostřed výherní řádek */
.hub-viz-reels {
  display: flex;
  gap: 8px;
  padding: 16px;
}
.hub-viz-reels::after {
  content: "";
  position: absolute; left: 10px; right: 10px; top: 50%;
  height: 40px; margin-top: -20px;
  border-block: 1.5px solid rgb(var(--rgb) / 0.85);
  background: rgb(var(--rgb) / 0.07);
  pointer-events: none;
}
.hub-viz-reels i {
  position: relative;
  flex: 1 1 0;
  border-radius: 10px;
  background-color: rgba(244, 239, 230, 0.04);
  background-image: repeating-linear-gradient(to bottom, transparent 0 7px, rgb(var(--rgb) / 0.5) 7px 33px, transparent 33px 40px);
  background-position: 0 calc(50% + var(--o));
  -webkit-mask: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent);
  mask: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent);
  transition: background-position 1.1s var(--ease);
}
.hub-viz-reels i:nth-child(1) { --o: -14px; }
.hub-viz-reels i:nth-child(2) {
  --o: 0px;
  background-color: rgb(var(--rgb) / 0.08);
  background-image: repeating-linear-gradient(to bottom, transparent 0 7px, rgb(var(--rgb) / 0.9) 7px 33px, transparent 33px 40px);
  -webkit-mask: none; mask: none;
  box-shadow: inset 0 0 0 2px rgb(var(--rgb));
}
.hub-viz-reels i:nth-child(3) { --o: 13px; }
.hub-viz-reels i:nth-child(4) { --o: -7px; }
@media (hover: hover) {
  .hub-t-reharm-reels:hover .hub-viz-reels i:nth-child(1) { --o: 66px; }
  .hub-t-reharm-reels:hover .hub-viz-reels i:nth-child(3) { --o: 133px; }
  .hub-t-reharm-reels:hover .hub-viz-reels i:nth-child(4) { --o: 193px; }
}

/* Downbeat: taktovka, ťuknutí vlní jeviště a doby rostou do forte */
.hub-viz-down .ripple {
  left: -12%; bottom: -46%;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgb(var(--rgb) / 0.36) 0 1.5px, transparent 1.5px 15px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
  mask: radial-gradient(circle, #000 25%, transparent 70%);
  transition: transform 0.8s var(--ease);
}
.hub-viz-down .beat {
  bottom: 24%;
  border-radius: 50%;
  background: rgb(var(--rgb));
  box-shadow: 0 0 16px rgb(var(--rgb) / 0.7);
}
.hub-viz-down .beat:nth-child(2) { left: 48%; width: 8px;  height: 8px;  opacity: 0.55; }
.hub-viz-down .beat:nth-child(3) { left: 60%; width: 12px; height: 12px; opacity: 0.7; }
.hub-viz-down .beat:nth-child(4) { left: 72%; width: 17px; height: 17px; opacity: 0.85; }
.hub-viz-down .beat:nth-child(5) { left: 85%; width: 24px; height: 24px; }
.hub-viz-down .baton {
  left: 14%; bottom: 26%;
  width: 52%; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(244, 239, 230, 0.95), rgba(244, 239, 230, 0.35));
  transform-origin: 0 50%;
  transform: rotate(-34deg);
  transition: transform 0.6s var(--ease);
}
.hub-viz-down .baton::before {
  content: "";
  position: absolute; left: -5px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%;
  background: var(--paper);
}
@media (hover: hover) {
  .hub-t-downbeat:hover .baton { transform: rotate(-12deg); }
  .hub-t-downbeat:hover .ripple { transform: scale(1.12); }
}

/* Harmonizér: jeden hlas se rozvětví do čtyř */
.hub-viz-harm .you {
  left: 5%; top: 50%;
  width: 31%; height: 3px; margin-top: -1.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(244, 239, 230, 0), var(--paper));
}
.hub-viz-harm .you::after {
  content: "";
  position: absolute; right: -6px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 14px rgba(244, 239, 230, 0.7);
}
.hub-viz-harm .v {
  left: 37%; top: 50%;
  width: 50%; height: 2.5px; margin-top: -1.25px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(var(--rgb) / 0.2), rgb(var(--rgb)));
  transform-origin: 0 50%;
  transform: rotate(var(--r));
  transition: transform 0.7s var(--ease);
}
.hub-viz-harm .v::after {
  content: "";
  position: absolute; right: -7px; top: 50%;
  width: 15px; height: 11px; margin-top: -5.5px;
  border-radius: 50%;
  background: rgb(var(--rgb));
  box-shadow: 0 0 14px rgb(var(--rgb) / 0.85);
  transform: rotate(calc(var(--r) * -1 - 20deg));
}
.hub-viz-harm .v:nth-child(2) { --r: -24deg; }
.hub-viz-harm .v:nth-child(3) { --r: -8deg; }
.hub-viz-harm .v:nth-child(4) { --r: 8deg; }
.hub-viz-harm .v:nth-child(5) { --r: 24deg; }
@media (hover: hover) {
  .hub-t-harmonizer:hover .v { transform: rotate(calc(var(--r) * 1.3)); }
}

/* Negativní harmonie: kvintový kruh, osa zrcadla a dva tóny, které jsou svým odrazem */
.hub-viz-neg { --axis: 18deg; --R: calc(var(--vh) * 0.38 - 4px); }
.hub-viz-neg .ring, .hub-viz-neg .half {
  left: 50%; top: 50%;
  height: 76%; aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--axis));
}
.hub-viz-neg .ring {
  background: repeating-conic-gradient(from -4deg, rgb(var(--rgb)) 0 8deg, transparent 8deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  opacity: 0.85;
}
.hub-viz-neg .half {
  background: linear-gradient(90deg, transparent 50%, rgb(var(--rgb) / 0.16) 50%);
  transition: transform 0.9s var(--ease);
}
.hub-viz-neg .axis {
  left: 50%; top: 5%; bottom: 5%;
  width: 1.5px; margin-left: -0.75px;
  background: repeating-linear-gradient(to bottom, rgba(244, 239, 230, 0.75) 0 6px, transparent 6px 11px);
  transform: rotate(var(--axis));
}
.hub-viz-neg .dot {
  left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgb(var(--rgb) / 0.35), 0 0 16px rgb(var(--rgb));
  transform: rotate(var(--t)) translateY(calc(var(--R) * -1));
}
.hub-viz-neg .dot:nth-child(4) { --t: calc(var(--axis) - 60deg); }
.hub-viz-neg .dot:nth-child(5) { --t: calc(var(--axis) + 60deg); }
@media (hover: hover) {
  .hub-t-negative-harmony:hover .half { transform: translate(-50%, -50%) rotate(calc(var(--axis) + 180deg)); }
}

/* G half-sharp: velké G a ručička ladění, která ujíždí k vyššímu tónu */
.hub-viz-hs::before {
  content: "G";
  position: absolute; left: 9%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--brand);
  font-size: 92px; line-height: 1;
  color: rgb(var(--rgb));
  text-shadow: 0.05em 0.05em 0 rgb(var(--rgb) / 0.3);
}
.hub-viz-hs .arc {
  right: 7%; top: 22%;
  width: min(56%, 190px); aspect-ratio: 2 / 1;
  background: radial-gradient(circle at 50% 100%, var(--paper) 0 6px, transparent 6.5px);
}
.hub-viz-hs .arc::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgb(var(--rgb) / 0.8) 0 1.4deg, transparent 1.4deg 12deg);
  -webkit-mask: radial-gradient(50% 100% at 50% 100%, transparent 62%, #000 63% 76%, transparent 77%);
  mask: radial-gradient(50% 100% at 50% 100%, transparent 62%, #000 63% 76%, transparent 77%);
}
.hub-viz-hs .arc::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 2.5px; height: 92%; margin-left: -1.25px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--paper), rgb(var(--rgb)));
  box-shadow: 0 0 10px rgb(var(--rgb) / 0.8);
  transform-origin: 50% 100%;
  transform: rotate(16deg);
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .hub-t-half-sharp:hover .arc::after { transform: rotate(38deg); }
}

/* ---------------------------------------------------------------- kredit a patička */
.hub-outro {
  display: grid;
  gap: 22px 64px;
  margin-top: clamp(72px, 10vw, 136px);
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--ink-rule);
}
@media (min-width: 900px) {
  .hub-outro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
}
.hub-outro-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hub-outro-title em { font-style: italic; color: var(--h1); }
.hub-outro-copy p {
  max-width: 34em;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--paper-mute);
}
.hub-official {
  display: inline-flex; align-items: center; gap: 12px;
  max-width: 100%;
  min-height: 46px;
  margin-top: 24px;
  padding: 10px 20px 10px 22px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.35;
  letter-spacing: 0.13em; text-transform: uppercase;
  transition: background-color 0.3s, transform 0.45s var(--ease);
}
/* Šipka ven ze stránky */
.hub-ext { position: relative; flex: none; width: 10px; height: 10px; }
.hub-ext::before {
  content: "";
  position: absolute; left: -1px; top: 50%;
  width: 13px; height: 1.5px; margin-top: -0.75px;
  background: currentColor;
  transform: rotate(-45deg);
}
.hub-ext::after {
  content: "";
  position: absolute; right: 0; top: 0;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
@media (hover: hover) {
  .hub-official:hover { background: var(--h2); transform: translateY(-2px); }
}
.hub-official:focus-visible, .hub-moved-go:focus-visible, .hub-moved-x:focus-visible { outline: 2px solid var(--h2); outline-offset: 3px; }

/* Patička ze šablony (styl v lab.css); nad ní už je čára kreditu. Text kreditu světlejší než
   --paper-dim, aby měl i v 11 px kontrast nad 4,5 : 1 (je to jediné místo s „neoficiální“). */
.hl-hub + .hl-foot { border-top: 0; color: var(--paper-mute); }

/* ---------------------------------------------------------------- malé šířky a omezený pohyb */
@media (max-width: 420px) {
  .hub-card { border-radius: 20px; }
  .hub-viz { --vh: 156px; }
  .hub-viz-choir { --vh: 196px; }
  .hub-main .hub-body { padding: 18px 10px 10px; }
  .hub-viz-hs::before { font-size: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-hub *, .hl-hub *::before, .hl-hub *::after { transition: none !important; }
  .hub-card:hover, .hub-card:active { transform: none; }
}
