/* ============================================================
   ZEN enhance vrstva nad v1:
   (A) parallax brand pozadie + ŽIVÝ MASKOT s náladou
       (oči sledujú/zacielia, žmurká, kukne na projekt, zvedavé oči)
   (D) KURZOR = okuliare z loga, ktoré nad klikateľným „zaostria"
   + 3D tilt kariet na hover
   ============================================================ */

/* ---------- Brandmark v headeri a footri ---------- */
.header__logo { background: transparent; box-shadow: none; padding: 2px 0; width: auto; height: auto; }
.header__logo:hover .header__brandimg { transform: rotate(-6deg) scale(1.06); }
.header__brandimg { display: block; width: 38px; height: 46px; transition: transform var(--dur, .3s) var(--ease, ease); }
.footer__brandimg { display: inline-block; vertical-align: -6px; margin-right: 6px; opacity: .85; }

/* ============================================================
   (A1) PARALLAX BRAND POZADIE
   ============================================================ */
:root { --zen-gold: #b5944e; }
.zen-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }

/* (2) konštrukčný grid — mizne k okrajom + VYMAZÁVA sa v kruhu okolo kurzora;
   pod ním jemné zlaté svetlo (baterka do hĺbky) — bez bodkovej vrstvy */
.zen-gridglow { position: absolute; inset: 0;
  background: radial-gradient(circle 460px at var(--gx, -800px) var(--gy, -800px),
    rgba(181,148,78,.10), rgba(181,148,78,.04) 45%, transparent 70%); }
.zen-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,148,78,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,148,78,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask:
    radial-gradient(circle 540px at var(--gx, -800px) var(--gy, -800px), transparent 0 220px, #000 540px),
    radial-gradient(130% 100% at 55% 25%, #000 45%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 540px at var(--gx, -800px) var(--gy, -800px), transparent 0 220px, #000 540px),
    radial-gradient(130% 100% at 55% 25%, #000 45%, transparent 100%);
  mask-composite: intersect; }

/* (4) veľké tvary — vrstva scrolluje s dokumentom (nie fixed) */
.zen-orn { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: -1; pointer-events: none; }
.zen-big { position: absolute; line-height: 0; will-change: transform; }
.zen-big svg { display: block; width: 100%; height: 100%; }
.zen-big--slash { font: 800 1em/1 var(--font-body, sans-serif); color: var(--zen-gold); opacity: .045; }
.zen-big--star svg { fill: var(--zen-gold); }
.zen-big--star { opacity: .07; animation: zenBreathe 7s ease-in-out infinite; }
.zen-big--chev svg { fill: none; stroke: var(--zen-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zen-big--chev { opacity: .09; }
@keyframes zenBreathe { 0%, 100% { opacity: .07; } 50% { opacity: .14; } }

/* (1) konštelácia */
.zen-constellation { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   (A2) ŽIVÝ MASKOT V HERO
   ============================================================ */
.hero--zen { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(20px, 4vw, 56px); }
.hero__copy { display: flex; flex-direction: column; gap: var(--gap-lg, 20px); }
.zen-mascot { display: flex; justify-content: center; align-items: center; }
.zen-mascot__inner { position: relative; width: clamp(220px, 24vw, 340px); aspect-ratio: 337.82 / 406.94; will-change: transform; }
.zen-mascot__face { width: 100%; height: 100%; display: block; }

/* pupily — box veľkosti šošovky na jej strede (z geometrie loga) */
.zen-eye { position: absolute; width: 27.8%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.zen-eye--l { left: 27.9%; top: 59.9%; }
.zen-eye--r { left: 72.1%; top: 59.9%; }
.zen-eye i { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--ink, #18181b);
  transform: translate(-50%, -50%) translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s ease-out, width .2s ease; }
/* zvedavé oči — pri prechode nad projektom/CTA sa pupily roztiahnu */
.zen-mascot.is-curious .zen-eye i { width: 46%; }
/* žmurknutie (obe) */
.zen-mascot.is-blink .zen-eye i { transform: translate(-50%, -50%) translate(var(--ex,0px), var(--ey,0px)) scaleY(.08); }
/* žmurknutie jedným okom (wink) keď kukne na projekt */
.zen-mascot.is-wink .zen-eye--l i { transform: translate(-50%, -50%) translate(var(--ex,0px), var(--ey,0px)) scaleY(.08); }

/* fúzy — overlay presne nad fúzmi v logu, jemný wiggle sem-tam */
.zen-stache { position: absolute; left: 20.9%; top: 75.3%; width: 58.2%; height: auto; transform-origin: 50% 35%; will-change: transform; }
@keyframes stacheWiggle { 0%, 100% { transform: rotate(0) scaleX(1); } 20% { transform: rotate(-2.4deg) scaleX(1.04); } 45% { transform: rotate(1.4deg) scaleX(.99); } 70% { transform: rotate(2.4deg) scaleX(1.04); } }
.zen-mascot.is-stache .zen-stache { animation: stacheWiggle 1s ease-in-out; }
/* twinkle ✦ pri fúzoch */
.zen-twinkle { position: absolute; left: 70%; top: 70%; width: 11%; aspect-ratio: 1; background: var(--zen-gold, #b5944e);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); opacity: 0; transform: scale(.3); pointer-events: none; }
.zen-mascot.is-twinkle .zen-twinkle { animation: zenTw .8s ease; }
@keyframes zenTw { 0% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(22deg); } 100% { opacity: 0; transform: scale(.5) rotate(45deg); } }

/* rečová bublina nad hlavou (hover) */
.zen-bubble { position: absolute; bottom: 100%; left: 50%; margin-bottom: 14px;
  transform: translate(-50%, 8px) scale(.9); transform-origin: 50% 130%;
  background: #18181b; color: #fff; padding: .5em .9em; border-radius: 16px;
  font: 600 clamp(13px, 1.05vw, 15px)/1.2 var(--font-body, sans-serif); white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 6; box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: opacity .16s ease, transform .3s cubic-bezier(.2,1.5,.4,1); }
.zen-bubble::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .5em;
  border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 3px rgba(123,216,143,.25); vertical-align: middle; }
.zen-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #18181b; }
.zen-bubble.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ============================================================
   ANKETA „Páči sa ti toto portfólio?" — ÁNO magnet, NIE uteká
   ============================================================ */
.liket { margin: 110px 0 30px; text-align: center; }
.liket__q { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 30px; }
.liket__arena { position: relative; height: 190px; display: flex; gap: 28px; align-items: center; justify-content: center; }
.liket__btn { font: inherit; font-weight: 700; font-size: 18px; padding: 15px 42px; border-radius: 999px;
  border: 2px solid var(--ink, #18181b); background: #fff; color: var(--ink, #18181b); cursor: pointer; }
.liket__btn--yes { background: var(--ink, #18181b); color: #fff; transition: transform .16s ease-out, box-shadow .16s ease-out; will-change: transform; }
.liket__btn--yes:hover { box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.liket__btn--no { transition: transform .18s ease-out; will-change: transform; }

/* otrávený EYEROLL keď kurzor odíde — polohu pupíl riadi JS (eyeTick), trieda len prižmúri */
.zen-mascot.is-eyeroll .zen-eye i { transform: translate(-50%,-50%) translate(var(--ex,0px), var(--ey,0px)) scaleY(.8); }

@media (max-width: 860px) {
  .hero--zen { grid-template-columns: 1fr; }
  .zen-mascot { order: -1; }
  .zen-mascot__inner { width: clamp(150px, 40vw, 220px); }
}

/* 3D tilt kariet zrušený (bol laggy) — necháva sa len v1 hover (content/obrázky vyskakujú z krajov) */

/* ============================================================
   (D) KURZOR = OKULIARE
   ============================================================ */
/* natívny kurzor skrýva JS (cez vložený <style>) AŽ keď pero existuje — inak ostane natívny */
/* okuliare zo značky — vlastný kurzor nad klikateľným;
   margin vycentruje SVG na pozíciu myši (žiadna rotácia) */
.zen-cursor { position: fixed; left: 0; top: 0; width: 38px; margin-left: -19px; margin-top: -8.6px; z-index: 245; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .2s ease; }
.zen-cursor.is-on { opacity: 1; }
.zen-cursor svg { display: block; width: 100%; height: auto; fill: var(--ink, #18181b); transform-origin: 50% 50%; transition: transform .18s var(--ease, ease), fill .18s ease; filter: drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.zen-cursor.is-focus svg { transform: scale(1.18); fill: var(--zen-gold, #b5944e); }
.zen-cursor.is-down svg { transform: scale(.9); }
/* nad klikateľným schovaj natívny kurzor — vidno len okuliare */
html.zen-nocur, html.zen-nocur * { cursor: none !important; }
/* stopa pri rýchlom pohybe (à la macOS) */
.zen-trail { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--zen-gold, #b5944e); z-index: 244; pointer-events: none; opacity: 0; will-change: transform, opacity; }
@media (pointer: coarse) { .zen-cursor, .zen-trail { display: none; } }

@media (max-width: 720px) {
  .zen-bg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zen-bg__layer { transform: none !important; }
  .zen-eye i { transition: none; }
  .zen-cursor { display: none; }
  body { cursor: auto; }
}
