/* ============================================================
   ATX — AI VIDEÁ  (/ai-videa.php)
   Svetlá podstránka v rovnakej réžii ako zvyšok webu:
   biele pozadie, Poppins, purple #6D33FF, pill tlačidlá,
   rám hero videa (40px rádius, 21px odsadenie) a notch navigácia
   presne ako na homepage — nič z toho tu neprepisujeme.
   Všetko prefixované .aiv-, aby sa to nebilo so style.css /
   hero-new.css / portfolio-new.css.
   ============================================================ */

:root {
  --aiv-bg:        #ffffff;
  --aiv-bg-2:      #f9fafb;
  --aiv-bg-3:      #f3f4f6;
  --aiv-ink:       #111827;
  --aiv-ink-dim:   #4b5563;
  --aiv-ink-faint: #9ca3af;
  --aiv-line:      rgba(17, 24, 39, 0.10);
  --aiv-line-soft: rgba(17, 24, 39, 0.06);
  --aiv-purple:    #6d33ff;
  --aiv-purple-dk: #5a29d6;
  --aiv-amber:     #d99a4e;
  --aiv-font:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Pôvodne mono „filmové popisky" — zjednotené na Poppins ako zvyšok webu (Petrova požiadavka). */
  --aiv-mono:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --aiv-ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --aiv-ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --aiv-pad:       clamp(20px, 5vw, 64px);
  --aiv-frame:     21px;   /* rovnaké odsadenie rámu ako .atx-hero-wrapper */
}

/* `overflow-x: clip` nevytvára scroll kontajner (na rozdiel od `hidden`
   v style.css), takže position:sticky funguje. Inak stránka nechávame
   biele pozadie z hero-new.css. */
body.aiv-body { overflow-x: clip; }

/* ============================================================
   ZÁKLAD
   ============================================================ */
.aiv-page {
  font-family: var(--aiv-font);
  color: var(--aiv-ink);
  background: var(--aiv-bg);
  overflow: visible;
  -webkit-font-smoothing: antialiased;
}

/* style.css má globálne `header { position: fixed }` — vnútri stránky to nesmie platiť */
.aiv-page header { position: static; width: auto; z-index: auto; }

.aiv-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--aiv-pad);
}

.aiv-section { position: relative; padding: clamp(80px, 12vh, 150px) 0; }

/* neviditeľná kotva — odsadená spod fixnej navigácie */
.aiv-anchor { position: absolute; top: -104px; left: 0; width: 1px; height: 1px; }

/* Filmový popisok — mono, verzálky, riedke */
.aiv-eyebrow {
  /* Štýl odrážok hlavného webu (ako „▌O MNE"): zvislá fialová čiara + bold text */
  font-family: var(--aiv-font);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aiv-purple);
  display: inline-flex;
  align-items: center;
  border-left: 3px solid var(--aiv-purple);
  padding: 0.13rem 0.75rem;
  margin: 0 0 24px;
}

/* Displejová typografia — čím väčšie, tým tesnejší tracking */
.aiv-display {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.4vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}

.aiv-h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.aiv-h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.aiv-lead {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--aiv-ink-dim);
  max-width: 46ch;
  margin: 24px 0 0;
}

/* Filmové zrno — len nad videom, na bielom by rušilo */
.aiv-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
  animation: aivGrain 1.2s steps(4) infinite;
  z-index: 4;
}
@keyframes aivGrain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   TLAČIDLÁ — rovnaká pill logika ako .atx-btn-*
   ============================================================ */
.aiv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-family: var(--aiv-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.32s var(--aiv-ease), background 0.32s var(--aiv-ease),
              box-shadow 0.32s var(--aiv-ease), border-color 0.32s var(--aiv-ease),
              color 0.32s var(--aiv-ease);
}
.aiv-btn i { font-size: 1.05em; transition: transform 0.32s var(--aiv-ease-out); }
.aiv-btn:hover i { transform: translateX(4px); }
.aiv-btn:active { transform: scale(0.975); transition-duration: 0.1s; }

.aiv-btn--primary {
  background: var(--aiv-purple);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.aiv-btn--primary:hover {
  background: var(--aiv-purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(109, 51, 255, 0.3);
}

/* svetlý ghost — na bielych sekciách */
.aiv-btn--ghost {
  background: var(--aiv-bg);
  color: var(--aiv-ink);
  border-color: rgba(17, 24, 39, 0.14);
}
.aiv-btn--ghost:hover {
  background: var(--aiv-bg-2);
  border-color: rgba(17, 24, 39, 0.28);
  transform: translateY(-2px);
}

/* nad videom — presklený, ako .atx-btn-outline-light */
.aiv-hero-ui .aiv-btn--ghost,
.aiv-case-copy .aiv-btn--ghost {
  background: rgba(255, 255, 255, 0.3);
  color: var(--aiv-ink);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.aiv-hero-ui .aiv-btn--ghost:hover,
.aiv-case-copy .aiv-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   1 — HERO
   Rám ako na homepage (21px odsadenie, 40px rádius). Pri scrollovaní
   sa video ešte kúsok scvrkne a UI sa rozostrí preč.
   ============================================================ */
.aiv-hero {
  position: relative;
  height: 185vh;
  background: var(--aiv-bg);
}

.aiv-hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: var(--aiv-frame);
  display: flex;
  align-items: stretch;
}

.aiv-hero-media {
  position: absolute;
  inset: var(--aiv-frame);
  overflow: hidden;
  transform-origin: 50% 45%;
  will-change: transform, border-radius;
  /* --p nastavuje JS: 0 = pokoj, 1 = odscrollované */
  --p: 0;
  transform: scale(calc(1 - 0.08 * var(--p)));
  border-radius: calc(40px + 16px * var(--p));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #000;
}

.aiv-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(112%) contrast(106%);
}

/* Scrim — čitateľnosť textu, bez toho aby zabil obraz */
.aiv-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(6, 5, 10, 0.82) 0%, rgba(6, 5, 10, 0.5) 34%, rgba(6, 5, 10, 0.1) 62%, rgba(6, 5, 10, 0.45) 100%),
    linear-gradient(to top, rgba(6, 5, 10, 0.88) 0%, rgba(6, 5, 10, 0) 45%);
}

.aiv-hero-ui {
  position: relative;
  z-index: 6;
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  /* Horné meta popisky (2026 / Reel 01) sú preč — jediný obsah (titulok
     s tlačidlom) sa musí držať pri spodku, space-between by ho vytiahol hore. */
  justify-content: flex-end;
  padding: clamp(112px, 13vh, 152px) clamp(28px, 4vw, 60px) clamp(28px, 4.5vh, 48px);
  will-change: opacity, transform, filter;
}

/* horný rad — filmové meta */
.aiv-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--aiv-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.aiv-hero-top span { display: block; }
.aiv-hero-top strong { color: rgba(255, 255, 255, 0.68); font-weight: 400; }

.aiv-hero-bottom { display: flex; align-items: flex-end; }

.aiv-hero-title { max-width: min(780px, 64vw); }
.aiv-hero-title .aiv-eyebrow { color: rgba(255, 255, 255, 0.55); }
.aiv-hero-title .aiv-display {
  font-size: clamp(2.15rem, 5.2vw, 4.7rem);
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}
.aiv-hero-title .aiv-display em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.8);
  text-stroke: 1.4px rgba(255, 255, 255, 0.8);
}

/* filmové titulky pod headline */
.aiv-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--aiv-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.aiv-credits dt { color: rgba(255, 255, 255, 0.42); margin: 0 0 4px; }
.aiv-credits dd { color: #fff; margin: 0; }
.aiv-credits > div { min-width: 0; }

.aiv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* scroll cue */
.aiv-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--aiv-mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.aiv-scrollcue-rail {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  position: relative;
  overflow: hidden;
}
.aiv-scrollcue-rail::after {
  content: '';
  position: absolute;
  left: 0;
  top: -46px;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: aivRail 2.2s var(--aiv-ease) infinite;
}
@keyframes aivRail {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(92px); opacity: 0; }
}

/* ============================================================
   PREPÍNAČ ZVUKU — vždy nad videom, preto presklený tmavý
   ============================================================ */
.aiv-sound {
  position: absolute;
  z-index: 7;
  right: var(--aiv-pad);
  top: clamp(96px, 13vh, 150px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  font-family: var(--aiv-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--aiv-ease), border-color 0.3s var(--aiv-ease),
              transform 0.3s var(--aiv-ease);
}
.aiv-sound:hover { background: rgba(109, 51, 255, 0.6); border-color: rgba(255, 255, 255, 0.5); }
.aiv-sound:active { transform: scale(0.96); transition-duration: 0.09s; }

/* v prípadovke sedí priamo na videu, nech neplavá v bielom */
.aiv-sound--case { top: clamp(12px, 1.6vw, 22px); right: clamp(12px, 1.6vw, 22px); }

/* v hero sedí v pravom dolnom rohu, zarovno s tlačidlami */
.aiv-sound--hero {
  top: auto;
  right: clamp(28px, 4vw, 60px);
  bottom: clamp(28px, 4.5vh, 48px);
}

/* ekvalizér — beží len keď je zvuk zapnutý */
.aiv-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.aiv-eq span {
  width: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  transition: background 0.3s var(--aiv-ease);
}
.aiv-sound.is-on .aiv-eq span {
  background: #fff;
  animation: aivEq 0.9s var(--aiv-ease) infinite alternate;
}
.aiv-sound.is-on .aiv-eq span:nth-child(2) { animation-delay: 0.15s; }
.aiv-sound.is-on .aiv-eq span:nth-child(3) { animation-delay: 0.3s; }
.aiv-sound.is-on .aiv-eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes aivEq { from { height: 3px; } to { height: 12px; } }

/* ============================================================
   2 — BEŽIACI PÁS
   ============================================================ */
.aiv-marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--aiv-line-soft);
  border-bottom: 1px solid var(--aiv-line-soft);
  background: var(--aiv-bg);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.aiv-marquee-track {
  display: flex;
  width: max-content;
  animation: aivMarquee 38s linear infinite;
}
.aiv-marquee:hover .aiv-marquee-track { animation-play-state: paused; }
.aiv-marquee-group { display: flex; flex-shrink: 0; }
.aiv-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.9vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--aiv-ink);
  white-space: nowrap;
}
.aiv-marquee-item::after {
  content: '✳';
  color: var(--aiv-purple);
  font-size: 0.7em;
}
@keyframes aivMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   3 — MANIFEST (odhaľovanie po slovách pri scrolle)
   ============================================================ */
.aiv-manifesto { position: relative; z-index: 3; background: var(--aiv-bg); }
.aiv-manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
}
.aiv-reveal-text {
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0;
  /* 22ch pôsobilo ako úzky stĺpec nalepený vľavo — text má dýchať cez celú šírku */
  max-width: 36ch;
}
.aiv-word {
  color: rgba(17, 24, 39, 0.15);
  transition: color 0.5s var(--aiv-ease);
}
.aiv-word.is-lit { color: var(--aiv-ink); }
.aiv-word.aiv-word--accent.is-lit { color: var(--aiv-purple); }

.aiv-manifesto-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding-top: 10px;
}
.aiv-figure { border-top: 1px solid var(--aiv-line); padding-top: 16px; }
.aiv-figure-num {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--aiv-ink) 25%, var(--aiv-purple) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aiv-figure-label {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--aiv-ink-dim);
  margin: 0;
}

/* ============================================================
   4 — PRÍPADOVKA (video rastie zo zaoblenej karty do fullbleed)
   ============================================================ */
.aiv-case {
  position: relative;
  z-index: 3;
  height: 260vh;
  background: var(--aiv-bg);
}
.aiv-case-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.aiv-case-frame {
  position: relative;
  /* --p: 0 = malá karta, 1 = celá obrazovka */
  --p: 0;
  width: calc(46vw + 54vw * var(--p));
  height: calc(29vw + (100svh - 29vw) * var(--p));
  min-width: 240px;
  border-radius: calc(28px - 28px * var(--p));
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -40px rgba(17, 24, 39, 0.5);
  will-change: width, height, border-radius;
}
.aiv-case-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aiv-case-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(6, 5, 10, 0.95) 0%, rgba(6, 5, 10, 0.72) 22%, rgba(6, 5, 10, 0.06) 55%, rgba(6, 5, 10, 0.4) 100%),
    linear-gradient(to right, rgba(6, 5, 10, 0.6) 0%, rgba(6, 5, 10, 0) 48%);
  opacity: var(--p, 0);
  transition: opacity 0.2s linear;
}
.aiv-case-copy {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--aiv-pad);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--aiv-ease), transform 0.7s var(--aiv-ease-out);
  pointer-events: none;
}
.aiv-case-stage.is-open .aiv-case-copy { opacity: 1; transform: none; pointer-events: auto; }
.aiv-case-copy .aiv-eyebrow { color: rgba(255, 255, 255, 0.6); }
.aiv-case-copy .aiv-h2 { max-width: 8em; color: #fff; }
.aiv-case-copy .aiv-lead { color: rgba(255, 255, 255, 0.85); max-width: 34em; }

.aiv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aiv-chip {
  font-family: var(--aiv-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.9);
}

/* nadpis sekcie, ktorý sa vytráca ako sa video otvára */
.aiv-case-intro {
  position: absolute;
  /* pod rámom videa — keď sa rám otvára, text nikdy nepresvitá cez video */
  z-index: 1;
  top: clamp(110px, 14vh, 160px);
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 var(--aiv-pad);
  transition: opacity 0.5s var(--aiv-ease), transform 0.5s var(--aiv-ease);
}
.aiv-case-intro .aiv-eyebrow { justify-content: center; }
.aiv-case-intro-line {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ============================================================
   5 — PRÁCE
   ============================================================ */
.aiv-works { position: relative; z-index: 3; background: var(--aiv-bg); }
.aiv-works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.aiv-works-list { display: grid; gap: clamp(28px, 4vw, 56px); }

.aiv-work { display: block; position: relative; color: inherit; }
.aiv-work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
  transition: transform 0.7s var(--aiv-ease-out), box-shadow 0.7s var(--aiv-ease-out);
}
.aiv-work:hover .aiv-work-media {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 70px -35px rgba(109, 51, 255, 0.55);
}
.aiv-work-media video,
.aiv-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--aiv-ease-out);
}
.aiv-work:hover .aiv-work-media video { transform: scale(1.03); }

.aiv-work-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 5, 10, 0.45), rgba(6, 5, 10, 0) 40%);
  opacity: 0.9;
  transition: opacity 0.5s var(--aiv-ease);
}
.aiv-work:hover .aiv-work-tint { opacity: 0.6; }

.aiv-work-index {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--aiv-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.8);
  z-index: 3;
}
.aiv-work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.4s var(--aiv-ease), transform 0.5s var(--aiv-ease-out),
              background 0.4s var(--aiv-ease);
}
.aiv-work:hover .aiv-work-play { opacity: 1; transform: scale(1); background: rgba(109, 51, 255, 0.65); }

.aiv-work-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 4px 0;
}
.aiv-work-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--aiv-ink);
}
.aiv-work-desc { color: var(--aiv-ink-dim); font-size: 0.95rem; line-height: 1.55; margin: 0; max-width: 42ch; }
.aiv-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--aiv-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aiv-ink-faint);
  text-align: right;
  justify-content: flex-end;
}

/* ============================================================
   6 — PROCES
   ============================================================ */
.aiv-process { position: relative; z-index: 3; background: var(--aiv-bg-2); }
.aiv-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.aiv-process-aside { position: sticky; top: clamp(110px, 18vh, 180px); }
.aiv-steps { list-style: none; margin: 0; padding: 0; }
.aiv-step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--aiv-line);
  position: relative;
}
.aiv-step:last-child { border-bottom: 1px solid var(--aiv-line); }
.aiv-step::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--aiv-purple);
  transition: width 0.9s var(--aiv-ease-out);
}
.aiv-step.is-in::after { width: 100%; }
.aiv-step-num {
  font-family: var(--aiv-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--aiv-ink-faint);
  padding-top: 5px;
}
.aiv-step.is-in .aiv-step-num { color: var(--aiv-purple); }
.aiv-step-body p { margin: 10px 0 0; color: var(--aiv-ink-dim); font-size: 0.95rem; line-height: 1.6; max-width: 48ch; }

/* ============================================================
   7 — ČO VIEME
   ============================================================ */
.aiv-caps { position: relative; z-index: 3; background: var(--aiv-bg); }
.aiv-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--aiv-line);
  border: 1px solid var(--aiv-line);
  border-radius: 24px;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 68px);
}
.aiv-cap {
  background: var(--aiv-bg);
  padding: clamp(26px, 3vw, 38px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 0.5s var(--aiv-ease);
}
.aiv-cap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 20% 0%, rgba(109, 51, 255, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--aiv-ease);
  pointer-events: none;
}
.aiv-cap:hover { background: var(--aiv-bg-2); }
.aiv-cap:hover::before { opacity: 1; }
.aiv-cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(109, 51, 255, 0.1);
  color: var(--aiv-purple);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.aiv-cap p { margin: 0; color: var(--aiv-ink-dim); font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   8 — BALÍKY
   ============================================================ */
.aiv-plans { position: relative; z-index: 3; background: var(--aiv-bg-2); }
.aiv-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 6vw, 68px);
}
.aiv-plan {
  border: 1px solid var(--aiv-line);
  border-radius: 24px;
  padding: clamp(26px, 3vw, 36px);
  background: var(--aiv-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--aiv-ease-out), border-color 0.4s var(--aiv-ease),
              box-shadow 0.5s var(--aiv-ease);
}
.aiv-plan:hover { transform: translateY(-5px); box-shadow: 0 20px 50px -30px rgba(17, 24, 39, 0.35); }
.aiv-plan--featured {
  border-color: rgba(109, 51, 255, 0.35);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(109, 51, 255, 0.09), transparent 65%),
    var(--aiv-bg);
  box-shadow: 0 24px 60px -34px rgba(109, 51, 255, 0.55);
}
.aiv-plan-tag {
  font-family: var(--aiv-mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aiv-purple);
}
.aiv-plan-price {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}
.aiv-plan-price small { font-size: 0.42em; font-weight: 500; color: var(--aiv-ink-faint); letter-spacing: 0; }
.aiv-plan ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.aiv-plan li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--aiv-ink-dim);
}
.aiv-plan li::before { content: '—'; color: var(--aiv-purple); flex-shrink: 0; }
.aiv-plan .aiv-btn { margin-top: auto; justify-content: center; }
.aiv-plan .aiv-btn--ghost { background: var(--aiv-bg-2); }
.aiv-plan .aiv-btn--ghost:hover { background: var(--aiv-bg-3); }

.aiv-plans-note {
  margin: 26px 0 0;
  font-size: 0.78rem;
  color: var(--aiv-ink-faint);
  line-height: 1.6;
}

/* ============================================================
   9 — FAQ
   ============================================================ */
.aiv-faq { position: relative; z-index: 3; background: var(--aiv-bg); }
.aiv-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.aiv-q { border-top: 1px solid var(--aiv-line); }
.aiv-q:last-child { border-bottom: 1px solid var(--aiv-line); }
.aiv-q-btn {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  color: var(--aiv-ink);
  font-family: var(--aiv-font);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--aiv-ease);
}
.aiv-q-btn:hover { color: var(--aiv-purple); }
.aiv-q-sign {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--aiv-line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.45s var(--aiv-ease-out), background 0.35s var(--aiv-ease),
              border-color 0.35s var(--aiv-ease), color 0.35s var(--aiv-ease);
}
.aiv-q.is-open .aiv-q-sign {
  transform: rotate(135deg);
  background: var(--aiv-purple);
  border-color: var(--aiv-purple);
  color: #fff;
}
.aiv-q-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--aiv-ease);
}
.aiv-q.is-open .aiv-q-panel { grid-template-rows: 1fr; }
.aiv-q-panel > div { overflow: hidden; }
.aiv-q-panel p {
  margin: 0 0 26px;
  color: var(--aiv-ink-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ============================================================
   10 — ZÁVEREČNÁ VÝZVA
   ============================================================ */
.aiv-cta {
  position: relative;
  z-index: 3;
  overflow: hidden;
  text-align: center;
  background: var(--aiv-bg);
  padding: clamp(100px, 16vh, 180px) 0;
}
.aiv-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(109, 51, 255, 0.14), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.aiv-cta .aiv-eyebrow { justify-content: center; }
.aiv-cta .aiv-display { max-width: 16ch; margin: 0 auto; }
.aiv-cta .aiv-lead { margin-left: auto; margin-right: auto; }
.aiv-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ============================================================
   ODHAĽOVANIE PRI SCROLLE (utility)
   ============================================================ */
[data-aiv-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--aiv-ease-out) var(--aiv-d, 0s),
    transform 0.9s var(--aiv-ease-out) var(--aiv-d, 0s),
    filter 0.9s var(--aiv-ease-out) var(--aiv-d, 0s);
}
[data-aiv-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ============================================================
   RESPONZÍVNE
   ============================================================ */
@media (max-width: 1000px) {
  .aiv-caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .aiv-process-grid,
  .aiv-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .aiv-process-aside { position: static; }
}

@media (max-width: 900px) {
  :root { --aiv-frame: 12px; }
  .aiv-hero { height: 150vh; }
  /* na mobile je dole plno tlačidiel — zvuk ide hore vpravo namiesto meta údaja */
  .aiv-hero-top > div:last-child { display: none; }
  /* pod meta riadkom, nech sa texty neprekrývajú */
  .aiv-sound--hero { top: calc(clamp(112px, 13vh, 152px) + 58px); bottom: auto; }
  /* pri roztiahnutom videu by inak skončil pod navigáciou */
  .aiv-sound--case { top: 72px; }
  .aiv-hero-media { border-radius: calc(28px + 10px * var(--p)); }
  .aiv-scrollcue { display: none; }
  .aiv-case { height: 210vh; }
  .aiv-case-frame { width: calc(88vw + 12vw * var(--p)); height: calc(66vw + (100svh - 66vw) * var(--p)); }
  .aiv-case-intro { top: 128px; }
  .aiv-work-info { flex-direction: column; }
  .aiv-work-tags { text-align: left; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .aiv-hero-ui { padding-top: clamp(104px, 15vh, 136px); }
  .aiv-sound--hero { top: calc(clamp(104px, 15vh, 136px) + 58px); }
  .aiv-credits { gap: 12px 22px; }
  .aiv-credits > div { flex: 1 1 40%; }
  .aiv-hero-actions .aiv-btn { flex: 1 1 100%; justify-content: center; }
  .aiv-work-media { aspect-ratio: 4 / 3; border-radius: 18px; }
  .aiv-caps-grid { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
}

/* ============================================================
   PRÍSTUPNOSŤ — obmedzený pohyb / priehľadnosť / kontrast
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .aiv-page *,
  .aiv-page *::before,
  .aiv-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.16s !important;
  }
  .aiv-grain { animation: none; }
  .aiv-marquee-track { animation: none; transform: none; }
  [data-aiv-reveal] { opacity: 1; transform: none; filter: none; }

  .aiv-hero { height: auto; }
  .aiv-hero-stage { position: static; height: auto; min-height: 100svh; }
  .aiv-hero-media { transform: none !important; }

  /* Prípadovka bez scroll efektu: rovno v „otvorenom" stave ako bežná karta */
  .aiv-case { height: auto; }
  .aiv-case-stage {
    position: static;
    height: auto;
    display: block;
    padding: clamp(80px, 12vh, 150px) var(--aiv-pad);
  }
  .aiv-case-frame {
    width: 100% !important;
    max-width: 1440px;
    height: auto !important;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px !important;
  }
  .aiv-case-veil { opacity: 1 !important; }
  .aiv-case-copy { opacity: 1; transform: none; pointer-events: auto; }
  /* nadpis je len pozvánka na scrollovanie — bez efektu nemá čo povedať */
  .aiv-case-intro { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .aiv-sound,
  .aiv-chip,
  .aiv-work-play { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17, 24, 39, 0.85); }
  .aiv-hero-ui .aiv-btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .aiv-grain { display: none; }
}

@media (prefers-contrast: more) {
  :root { --aiv-ink-dim: #374151; --aiv-ink-faint: #4b5563; --aiv-line: rgba(17, 24, 39, 0.3); }
  .aiv-word { color: rgba(17, 24, 39, 0.4); }
}

/* Pilulky v hero nahradili tabuľku kreditov — potrebujú jej odsadenie */
.aiv-chips--hero { margin-top: 26px; }

/* Klik na kartu prehrá video — počas prehrávania play ikona zmizne */
.aiv-work-media { cursor: pointer; }
.aiv-work-media.is-playing .aiv-work-play { opacity: 0; }
.aiv-work-play { transition: opacity .25s ease; }
