/* ═══ voiki/style.css — vzhled stránky Ithaca Voiki ═════════════════════
   Motiv: podle okna aplikace Voiki — fialovočerná, jantar, tyrkys,
   tenké široce prostrkané písmo. Všechno je pod .voiki.                */

body { background: #17151b; }

.voiki {
  --bg: #17151b; --panel: #1e1b22; --panel-hi: #24212a; --line: #3a3540;
  --text: #efe7da; --mute: #a39b8f; --faint: #6e6760;
  --amber: #e8a44a; --teal: #4fc3b0;
  --sans: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
.voiki *, .voiki *::before, .voiki *::after { box-sizing: border-box; }
.voiki p { margin: 0; text-wrap: pretty; }
.voiki h1, .voiki h2, .voiki h3 { margin: 0; font-weight: 300; }
.voiki a { color: inherit; text-decoration: none; }
.voiki img { display: block; max-width: 100%; height: auto; }

.v-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.v-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); font-weight: 400; }

/* ── hero ── */
.v-hero { padding: clamp(48px, 9vw, 104px) 0 40px; }
.v-title { font-size: clamp(44px, 9vw, 104px); letter-spacing: 0.16em; line-height: 1; margin: 18px -0.16em 12px 0 !important; color: #f6efe3; }
.v-sub { font-size: 13px; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 32px !important; }
.v-lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; max-width: 34em; }
.v-tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.v-tags li { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.v-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.v-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.v-btn { font: 400 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 14px 22px; cursor: pointer; }
.v-btn:hover { border-color: var(--mute); }
.v-btn--main { background: var(--amber); border-color: var(--amber); color: #1a1408; font-weight: 500; }
.v-btn--main:hover { filter: brightness(1.08); border-color: var(--amber); }
.v-btn:focus-visible, .v-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ── obrázky ── */
.v-fig { margin: 0; }
.v-zoom { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.v-fig figcaption { font-size: 13px; color: var(--faint); margin-top: 12px; }

/* ── sekce ── */
.v-sec { padding: clamp(64px, 9vw, 104px) 0 0; }
.v-sec--last { padding-bottom: clamp(72px, 10vw, 120px); }
.v-hd { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 28px; }
.v-no { font-size: 12px; letter-spacing: 0.24em; color: var(--amber); }
.v-hd h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; color: #f6efe3; }
.v-intro { color: var(--mute); margin-bottom: 28px !important; }
.v-lead2 { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; max-width: 36em; margin-bottom: 40px !important; }
.voiki h3 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; color: var(--teal); margin-bottom: 10px; }
.v-three, .v-four, .v-two { display: grid; gap: 32px 40px; margin-bottom: 44px; }
.v-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-four  { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; }
.v-two   { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.v-three p, .v-four p, .v-two p { color: var(--mute); font-size: 15.5px; }

/* ── přehrávače ── */
.v-group { margin: 40px 0 12px !important; }
.v-group:first-of-type { margin-top: 0 !important; }
.v-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v-trk { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px 52px; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.v-trk.on { border-color: rgba(232,164,74,0.55); }
.v-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--amber); background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0; color: var(--amber); }
.v-play::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.v-trk.on .v-play { background: var(--amber); color: #1a1408; }
.v-trk.on .v-play::before { border: 0; width: 10px; height: 12px; margin: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.v-t { font-size: 16px; font-weight: 400; line-height: 1.35; }
.v-n { color: var(--faint); margin-right: 10px; font-variant-numeric: tabular-nums; }
.v-d { font-size: 13.5px; color: var(--mute); margin-top: 3px !important; }
.v-bar { position: relative; height: 30px; cursor: pointer; }
.v-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.v-bar span { position: absolute; left: 0; top: calc(50% - 1px); height: 3px; width: 0; background: var(--amber); border-radius: 2px; }
.v-tm { font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.v-trk.missing .v-play { border-color: var(--line); color: var(--faint); cursor: default; }
.v-trk.missing .v-bar { visibility: hidden; }

/* ── stav ── */
.v-status { border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: var(--panel);
  padding: 28px 30px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.v-status .v-eyebrow { color: var(--teal); }

@media (max-width: 860px) {
  .v-three, .v-four { grid-template-columns: 1fr 1fr; }
  .v-two { grid-template-columns: 1fr; }
  .v-status { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 640px) {
  .v-wrap { padding: 0 16px; }
  .v-three, .v-four { grid-template-columns: 1fr; }
  .v-trk { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .v-trk .v-bar { grid-column: 2 / 4; grid-row: 2; height: 20px; }
  .v-trk .v-tm { grid-column: 3; grid-row: 1; }
  .v-btn { flex: 1 1 auto; text-align: center; }
}
.v-status .v-small { margin-top: 0.8em !important; }
.v-small { font-size: 15px; color: var(--mute); }

/* ═══ Oživení (2026-11-25) — pohyb řeší konec voiki/voiki.js ═════════════
   Za titulkem zpívají dva hlasy: jantarová a tyrkysová linka kloužou
   z tónu do tónu (legato) a rozechvívají se vibratem — nikdy úplně
   spolu. Canvas .v-voices si vkládá skript sám. Obsah beze změny.      */
.v-hero { position: relative; isolation: isolate; }
.v-voices { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; margin-left: -50vw; pointer-events: none; }
.voiki { overflow: hidden; overflow: clip; }
.v-hero::before { content: ""; position: absolute; z-index: -2; right: -18%; top: -10%; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79,195,176,0.13), transparent), radial-gradient(closest-side at 30% 70%, rgba(232,164,74,0.10), transparent); }
.v-hero > .v-eyebrow, .v-title, .v-sub, .v-lead, .v-tags, .v-cta { animation: v-up 1s cubic-bezier(.2,.7,.2,1) both; }
.v-title { animation-name: v-track; animation-duration: 1.6s; white-space: nowrap; }
.v-sub { animation-delay: .15s; } .v-lead { animation-delay: .28s; } .v-tags { animation-delay: .38s; } .v-cta { animation-delay: .48s; }
@keyframes v-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes v-track { from { opacity: 0; letter-spacing: .36em; } to { opacity: 1; letter-spacing: .16em; } }
.v-tags li:nth-child(even)::before { background: var(--teal); }

.v-btn { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s, filter .2s; }
.v-btn--main { box-shadow: 0 14px 30px -14px rgba(232,164,74,.8); }
.v-btn:hover { transform: translateY(-2px); }

/* okno nástroje: záře obou hlasů pod ním */
.v-wrap > .v-fig { position: relative; isolation: isolate; }
.v-wrap > .v-fig::before { content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; top: 30%; bottom: 4%; filter: blur(46px);
  background: linear-gradient(90deg, rgba(232,164,74,.30), rgba(79,195,176,.26)); }
.v-zoom { transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .6s; box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.v-zoom:hover { transform: translateY(-4px); border-color: rgba(232,164,74,.45); }

/* nadpisy sekcí: dvoubarevná linka */
.v-hd { position: relative; }
.v-hd::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--amber), var(--teal) 45%, transparent 80%); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .15s; }
.ap-motion .v-hd.ap-rv:not(.ap-in)::before { transform: scaleX(0); }

/* přehrávače */
.v-trk { transition: border-color .3s, background .3s, box-shadow .4s, transform .35s cubic-bezier(.2,.7,.2,1); }
.v-trk:not(.missing):hover { border-color: rgba(232,164,74,.35); background: var(--panel-hi); transform: translateX(4px); }
.v-trk.on { background: var(--panel-hi); box-shadow: 0 0 0 1px rgba(232,164,74,.18), 0 0 44px -12px rgba(232,164,74,.45); }
.v-trk.on .v-bar span { background: linear-gradient(90deg, var(--amber), var(--teal)); box-shadow: 0 0 10px rgba(232,164,74,.6); }
.v-play { transition: background .25s, color .25s, transform .25s; }
.v-trk:not(.missing) .v-play:hover { transform: scale(1.08); }
.v-three > div, .v-four > div, .v-two > div { border-top: 1px solid var(--line); padding-top: 18px; transition: border-color .3s; }
.v-three > div:hover, .v-four > div:hover, .v-two > div:hover { border-top-color: var(--teal); }

@media (max-width: 640px) { .v-title { white-space: normal; } }
@media (prefers-reduced-motion: reduce) {
  .v-hero > .v-eyebrow, .v-title, .v-sub, .v-lead, .v-tags, .v-cta { animation: none; }
}
