/* =========================================================
   Milan Markovič · HERO „Web, ktorý sa skladá pred očami“ (koncept 04)
   Všetko je scoped pod .mmh, hero je tmavý v oboch témach.
   Vizuály na výmenu: video v .mmh-bg a .mmh-mb-scr (src + poster).
   ========================================================= */
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400; src: url("/assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.mmh {
  --h-bg: #05070D;
  --h-navy: #0B1630;
  --h-navy-2: #12204A;
  --h-coral: #FF6A45;
  --h-coral-2: #FF8A6B;
  --h-azure: #5BC8FF;
  --h-white: #F4F7FB;
  --h-muted: #A5B0C4;
  --h-dim: #6F7B92;
  --h-line: rgba(255,255,255,.09);
  --h-line-2: rgba(255,255,255,.16);
  --h-display: "Bricolage Grotesque Variable", "Syne Variable", system-ui, sans-serif;
  --h-text: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-serif: "Instrument Serif", Georgia, serif;
  --h-ease: cubic-bezier(.2,.8,.2,1);
  --h-ease-io: cubic-bezier(.65,0,.35,1);
  --h-gut: clamp(16px, 4vw, 56px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--mm-header, 78px) + 58px) 0 32px;
  background: var(--h-bg);
  color: var(--h-white);
  font-family: var(--h-text);
  font-size: 17px;
  line-height: 1.6;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.mmh *, .mmh *::before, .mmh *::after { box-sizing: border-box; }
#ts-hero.mmh { height: auto; }
.mmh :where(h1, p, ul, figure) { margin: 0; }
.mmh :where(ul) { padding: 0; list-style: none; }
.mmh :where(img, video, svg) { display: block; max-width: 100%; }
.mmh :focus-visible { outline: 2px solid var(--h-azure); outline-offset: 3px; border-radius: 8px; }

/* ---------- atmosféra: video, mriežka, šum, spotlight ---------- */
.mmh-atmo { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mmh-atmo::before { content: ""; position: absolute; right: -10%; top: 4%; width: 62vw; height: 62vw; max-width: 980px; max-height: 980px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(18,32,74,.95), rgba(11,22,48,.4) 45%, transparent 70%); }
.mmh-bg { position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 35%, transparent 85%); mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 35%, transparent 85%); }
.mmh-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: screen; }
.mmh-grid { position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(91,200,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(91,200,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%); }
.mmh-noise { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mmh-spot { position: absolute; left: 0; top: 0; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,200,255,.11) 0%, rgba(91,200,255,.04) 30%, transparent 62%);
  transform: translate3d(70vw, 30vh, 0); opacity: 0; transition: opacity .6s; will-change: transform; }
.mmh-spot.is-on { opacity: 1; }
.mmh-spot::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,69,.10), transparent 70%); }

/* ---------- layout ---------- */
.mmh-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--h-gut);
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.mmh-copy { position: relative; z-index: 3; }
.mmh-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.mmh-eyebrow b { color: var(--h-white); font-weight: 600; }
.mmh-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--h-coral); position: relative; flex: none; }
.mmh-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--h-coral); animation: mmh-ping 2.4s var(--h-ease) infinite; }
@keyframes mmh-ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.mmh h1.mmh-h1 { font-family: var(--h-display); font-weight: 760; font-size: clamp(44px, 5.45vw, 104px); line-height: .95; letter-spacing: -.052em; color: var(--h-white); margin-top: 22px; }
.mmh--en h1.mmh-h1 { font-size: clamp(40px, 4.9vw, 94px); }
.mmh-ln { display: block; white-space: nowrap; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.mmh-ln > span { display: block; transition: transform 1.15s var(--h-ease); }
.mmh-ln:nth-child(2) > span { transition-delay: .08s; }
.mmh-ln:nth-child(3) > span { transition-delay: .16s; }
.mmh-l3 { font-family: var(--h-serif); font-weight: 400; font-style: italic; letter-spacing: -.025em; font-size: .86em; padding-top: .06em; }
.mmh-l3 > span { color: transparent; background: linear-gradient(92deg, var(--h-coral) 0%, var(--h-coral-2) 45%, var(--h-azure) 100%); -webkit-background-clip: text; background-clip: text; padding-right: .08em; width: max-content; max-width: 100%; }
.mmh-lead { color: var(--h-muted); font-size: clamp(16px, 1.28vw, 19px); line-height: 1.6; max-width: 50ch; margin-top: 26px; text-wrap: pretty; }
.mmh-lead strong { color: var(--h-white); font-weight: 600; }
.mmh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mmh-btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--h-text); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: -.005em; text-transform: none; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0); transition: transform .45s var(--h-ease), background-color .3s, color .3s, box-shadow .4s; }
.mmh-btn:hover, .mmh-btn:focus { text-decoration: none; }
.mmh-btn--p { background: var(--h-coral); color: #170704; box-shadow: 0 10px 40px -12px rgba(255,106,69,.65), inset 0 1px 0 rgba(255,255,255,.35); }
.mmh-btn--p:hover, .mmh-btn--p:focus { color: #170704; box-shadow: 0 18px 50px -12px rgba(255,106,69,.85), inset 0 1px 0 rgba(255,255,255,.35); }
.mmh-btn--p .mmh-bl { display: inline-flex; align-items: center; gap: 10px; transform: translate3d(calc(var(--mx) * .35), calc(var(--my) * .35), 0); transition: transform .45s var(--h-ease); }
.mmh-btn--p svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--h-ease); }
.mmh-btn--p:hover svg { transform: translateX(3px); }
.mmh-btn--g { background: rgba(255,255,255,.04); color: var(--h-white); box-shadow: inset 0 0 0 1px var(--h-line-2); }
.mmh-btn--g:hover, .mmh-btn--g:focus { background: rgba(255,255,255,.09); color: var(--h-white); }
.mmh-proofs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--h-line); font-size: 14px; color: var(--h-muted); }
.mmh-proofs li { display: flex; align-items: center; gap: 9px; }
.mmh-proofs svg { width: 18px; height: 18px; flex: none; color: var(--h-azure); }
.mmh-proofs li:first-child svg { color: #F5C451; }
.mmh-proofs b { color: var(--h-white); font-weight: 600; }
.mmh-fade { transition: opacity 1s var(--h-ease), transform 1s var(--h-ease); }
.mmh-fade.f1 { transition-delay: .35s; } .mmh-fade.f2 { transition-delay: .5s; } .mmh-fade.f3 { transition-delay: .65s; }
/* úvodná animácia: JS vloží data-anim="pre" a na ďalšom snímku ho odstráni */
.mmh[data-anim="pre"] .mmh-ln > span { transform: translate3d(0, 105%, 0); transition: none; }
.mmh[data-anim="pre"] .mmh-fade { opacity: 0; transform: translate3d(0, 18px, 0); transition: none; }

/* ---------- 3D scéna ---------- */
.mmh-scene-col { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mmh-stage { --s: 1; position: relative; width: 100%; height: calc(560px * var(--s)); perspective: 1700px; perspective-origin: 50% 38%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mmh-scene { position: absolute; left: 50%; top: 0; width: 680px; height: 560px; margin-left: -340px; transform-origin: 50% 0; transform: scale(var(--s)); transform-style: preserve-3d; }
.mmh-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-14deg); will-change: transform; }
.mmh-halo { position: absolute; left: 90px; top: 40px; width: 520px; height: 420px; border-radius: 50%; transform: translateZ(-220px) scale(1.5);
  background: radial-gradient(circle at 40% 45%, rgba(91,200,255,.28), transparent 58%), radial-gradient(circle at 72% 70%, rgba(255,106,69,.26), transparent 55%); filter: blur(30px); opacity: .9; }

.mmh-mb { position: absolute; left: 62px; top: 78px; width: 500px; height: 316px; transform-style: preserve-3d; }
.mmh-mb-lid { position: absolute; inset: 0; border-radius: 18px 18px 8px 8px; transform-origin: 50% 100%; transform: rotateX(-6deg);
  background: linear-gradient(160deg, #2a3346, #0d1322 40%, #0a0f1b); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 9px #05070c; }
.mmh-mb-scr { position: absolute; left: 11px; right: 11px; top: 11px; bottom: 20px; border-radius: 7px; overflow: hidden; background: #06293a; }
.mmh-mb-scr video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.72) translateY(1.5%); }
.mmh-mb-cam { position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1d2a3c; }
.mmh-mb-chin { position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; display: flex; justify-content: center; align-items: center; font: 600 7px/1 var(--h-text); letter-spacing: .3em; color: rgba(255,255,255,.22); text-transform: uppercase; }
.mmh-mb-gloss { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.04) 100%); }
.mmh-mb-deck { position: absolute; left: -34px; right: -34px; top: 100%; height: 200px; transform-origin: 50% 0; transform: rotateX(86deg);
  border-radius: 6px 6px 22px 22px; background: linear-gradient(180deg, #323b4f, #1b2131 60%, #151a27); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.mmh-mb-keys { position: absolute; left: 44px; right: 44px; top: 18px; height: 96px; border-radius: 6px; background-color: #0a0e17;
  background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 100%, 100% 19.2px; }
.mmh-mb-pad { position: absolute; left: 50%; top: 126px; width: 150px; height: 62px; margin-left: -75px; border-radius: 8px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mmh-mb-lip { position: absolute; left: -34px; right: -34px; top: calc(100% + 14px); height: 11px; border-radius: 0 0 14px 14px; transform: translateZ(199px);
  background: linear-gradient(#3a4458, #141a26); box-shadow: 0 26px 40px -10px rgba(0,0,0,.9); }

.mmh-ph { position: absolute; left: 478px; top: 186px; width: 138px; height: 282px; transform-style: preserve-3d; transform: translateZ(232px) rotateY(-10deg); }
.mmh-ph-back { position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(150deg, #3b4458, #141926); transform: translateZ(-9px); }
.mmh-ph-side { position: absolute; inset: 0; border-radius: 30px; transform: translateZ(-4.5px); box-shadow: 0 0 0 2px #2b3345; }
.mmh-ph-body { position: absolute; inset: 0; border-radius: 30px; background: #05070c; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), 0 40px 70px -20px rgba(0,0,0,.85), 0 0 0 1px #000; }
.mmh-ph-scr { position: absolute; inset: 6px; border-radius: 25px; overflow: hidden; background: #F6F3EE; color: #111; }
.mmh-ph-island { position: absolute; left: 50%; top: 13px; width: 44px; height: 13px; margin-left: -22px; border-radius: 10px; background: #000; z-index: 12; }
.mmh-ph-bar { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 16px 3px; font: 600 8px/1 var(--h-text); color: #111; z-index: 4; }
.mmh-ph-app { position: absolute; left: 0; right: 0; top: 34px; height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; font: 700 9px/1 var(--h-display); letter-spacing: -.02em; z-index: 4; }
.mmh-ph-app i { width: 14px; height: 2px; background: #111; border-radius: 2px; box-shadow: 0 4px 0 #111; }
.mmh-ps { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.mmh-ps.is-on { opacity: 1; }
.mmh-ps img { width: 100%; height: 132px; object-fit: cover; object-position: 72% 50%; }
.mmh-ps figcaption { padding: 9px 11px 0; font: 700 11px/1.15 var(--h-display); letter-spacing: -.02em; color: #111; }
.mmh-ps figcaption span { display: block; font: 500 8px/1.3 var(--h-text); color: #6a6a6a; margin-top: 4px; letter-spacing: 0; }
.mmh-ps-cta { position: absolute; left: 11px; right: 11px; bottom: 14px; height: 26px; border-radius: 13px; background: var(--h-coral); color: #170704; display: flex; align-items: center; justify-content: center; font: 700 8.5px/1 var(--h-text); gap: 5px; }
.mmh-ps-cta svg { width: 10px; height: 10px; }
.mmh-ps-dots { position: absolute; left: 11px; top: 120px; display: flex; gap: 3px; padding: 3px 5px; border-radius: 6px; background: rgba(17,17,17,.45); }
.mmh-ps-dots b { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.55); }
.mmh-ps-dots b.is-a { background: #fff; width: 10px; border-radius: 3px; }

.mmh-bp { position: absolute; inset: 0; z-index: 6; pointer-events: none; background-color: #081733; transition: opacity 1.1s var(--h-ease);
  background-image: linear-gradient(rgba(91,200,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(91,200,255,.16) 1px, transparent 1px); background-size: 16px 16px; }
.mmh-bp-l { position: absolute; border: 1px dashed rgba(91,200,255,.75); border-radius: 4px; }
.mmh-bp-t { position: absolute; font: 600 8px/1 var(--h-text); letter-spacing: .14em; text-transform: uppercase; color: var(--h-azure); }
.mmh-live { position: absolute; right: 10px; top: 10px; z-index: 7; display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(5,7,13,.72);
  font: 600 9px/1 var(--h-text); letter-spacing: .06em; color: #fff; opacity: 0; transform: translate3d(0,-6px,0); transition: opacity .6s .9s, transform .6s .9s var(--h-ease); }
.mmh-live i { width: 6px; height: 6px; border-radius: 50%; background: #3EE08F; box-shadow: 0 0 10px #3EE08F; }
.mmh-flash { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(91,200,255,.15) 40%, transparent 70%); opacity: 0; }
.mmh-scene[data-phase="3"] .mmh-flash { animation: mmh-flash 1.3s .55s var(--h-ease) both; }
@keyframes mmh-flash { 0% { opacity: 0; } 25% { opacity: .85; } 100% { opacity: 0; } }
.mmh-scene[data-phase="0"] .mmh-bp, .mmh-scene[data-phase="1"] .mmh-bp { opacity: 1; }
.mmh-scene[data-phase="2"] .mmh-bp { opacity: .42; }
.mmh-scene[data-phase="3"] .mmh-bp { opacity: 0; }
.mmh-scene[data-phase="3"] .mmh-live { opacity: 1; transform: none; }

/* plávajúce vrstvy webu */
.mmh-pn { position: absolute; left: 0; top: 0; --x: 0px; --y: 0px; --z: 0px; --ry: 0deg; --rx: 0deg; --rz: 0deg; --sc: 1; --o: 1;
  transform: translate3d(var(--x), var(--y), var(--z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--sc)); opacity: var(--o);
  transition: transform 1.35s var(--h-ease), opacity .9s ease; transition-delay: var(--dl, 0s); will-change: transform, opacity; }
.mmh-pn-in { position: relative; width: 100%; height: 100%; animation: mmh-bob 6s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes mmh-bob { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-9px,0); } }
.mmh-wf, .mmh-fx { position: absolute; inset: 0; border-radius: 14px; transition: opacity .8s ease; }
.mmh-wf { border: 1.5px dashed rgba(91,200,255,.8); background: rgba(8,23,51,.55); }
.mmh-fx { opacity: 0; background: linear-gradient(160deg, rgba(26,40,82,.96), rgba(11,22,48,.96)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -24px rgba(0,0,0,.85); }
.mmh-scene[data-phase="2"] .mmh-fx, .mmh-scene[data-phase="3"] .mmh-fx { opacity: 1; }
.mmh-scene[data-phase="2"] .mmh-wf, .mmh-scene[data-phase="3"] .mmh-wf { opacity: 0; }
.mmh-tag { position: absolute; left: 10px; top: -20px; font: 600 9px/1 var(--h-text); letter-spacing: .16em; text-transform: uppercase; color: var(--h-azure); white-space: nowrap; transition: color .6s, opacity .4s; }
.mmh-scene[data-phase="2"] .mmh-tag { color: var(--h-coral-2); }
.mmh-scene[data-phase="3"] .mmh-tag { opacity: 0; }
.mmh-wbox { position: absolute; border: 1px solid rgba(91,200,255,.55); border-radius: 4px; }
.mmh-sk { display: block; border-radius: 3px; }
.mmh-sw { display: block; width: 24px; height: 24px; border-radius: 50%; flex: none; }
.mmh-swo { display: block; width: 22px; height: 22px; border-radius: 50%; border: 1px dashed #5BC8FF; flex: none; }

.p-wire { width: 200px; height: 138px; }
.p-type { width: 150px; height: 118px; }
.p-col { width: 176px; height: 62px; }
.p-card { width: 148px; height: 196px; }
.p-cart { width: 156px; height: 48px; }
.p-ux { width: 184px; height: 70px; }
.p-cart .mmh-wf, .p-cart .mmh-fx { border-radius: 999px; }
.p-cart .mmh-fx { background: var(--h-coral); box-shadow: 0 18px 40px -10px rgba(255,106,69,.8), inset 0 1px 0 rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; gap: 8px; color: #170704; font: 700 14px/1 var(--h-text); }
.p-cart .mmh-fx svg { width: 17px; height: 17px; }

.mmh-scene[data-phase="0"] .mmh-pn { --o: 0; --sc: 1.3; }
.mmh-scene[data-phase="0"] .p-wire { --x: -260px; --y: -160px; --z: 520px; --ry: 40deg; --rz: -18deg; }
.mmh-scene[data-phase="0"] .p-type { --x: 820px; --y: -180px; --z: 460px; --ry: -40deg; --rz: 20deg; }
.mmh-scene[data-phase="0"] .p-col { --x: -320px; --y: 380px; --z: 500px; --rz: 30deg; }
.mmh-scene[data-phase="0"] .p-card { --x: -120px; --y: 640px; --z: 600px; --rx: 40deg; }
.mmh-scene[data-phase="0"] .p-cart { --x: 860px; --y: 620px; --z: 560px; --rz: -30deg; }
.mmh-scene[data-phase="0"] .p-ux { --x: 300px; --y: -300px; --z: 600px; --rx: -50deg; }

.mmh-scene[data-phase="1"] .p-wire { --x: 10px; --y: 6px; --z: 150px; --ry: 16deg; --rz: -4deg; --dl: .05s; }
.mmh-scene[data-phase="1"] .p-type { --x: 540px; --y: 2px; --z: 90px; --ry: -14deg; --rz: 5deg; --dl: .15s; }
.mmh-scene[data-phase="1"] .p-col { --x: 4px; --y: 250px; --z: 200px; --ry: 12deg; --rz: 3deg; --dl: .25s; }
.mmh-scene[data-phase="1"] .p-card { --x: 70px; --y: 356px; --z: 300px; --ry: 14deg; --rz: -5deg; --dl: .35s; }
.mmh-scene[data-phase="1"] .p-cart { --x: 388px; --y: 486px; --z: 300px; --rz: -4deg; --dl: .45s; }
.mmh-scene[data-phase="1"] .p-ux { --x: 250px; --y: -34px; --z: 200px; --rx: 8deg; --rz: -2deg; --dl: .2s; }

.mmh-scene[data-phase="2"] .p-wire { --x: 20px; --y: 40px; --z: 90px; --ry: 10deg; --rz: -2deg; --dl: 0s; }
.mmh-scene[data-phase="2"] .p-type { --x: 500px; --y: 44px; --z: 60px; --ry: -10deg; --rz: 3deg; --dl: .08s; }
.mmh-scene[data-phase="2"] .p-col { --x: 24px; --y: 262px; --z: 130px; --ry: 8deg; --rz: -2deg; --dl: .16s; }
.mmh-scene[data-phase="2"] .p-card { --x: 130px; --y: 300px; --z: 190px; --ry: 10deg; --rz: -3deg; --dl: .24s; }
.mmh-scene[data-phase="2"] .p-cart { --x: 356px; --y: 446px; --z: 280px; --rz: -2deg; --dl: .32s; }
.mmh-scene[data-phase="2"] .p-ux { --x: 262px; --y: -6px; --z: 120px; --rz: 1deg; --dl: .12s; }

.mmh-scene[data-phase="3"] .mmh-pn { --o: 0; --sc: .34; transition: transform 1.1s var(--h-ease-io), opacity .6s ease; transition-delay: var(--dl, 0s), calc(var(--dl, 0s) + .55s); }
.mmh-scene[data-phase="3"] .p-wire { --x: 170px; --y: 120px; --z: 0px; --dl: 0s; }
.mmh-scene[data-phase="3"] .p-type { --x: 330px; --y: 110px; --z: 0px; --dl: .06s; }
.mmh-scene[data-phase="3"] .p-col { --x: 190px; --y: 220px; --z: 0px; --dl: .12s; }
.mmh-scene[data-phase="3"] .p-card { --x: 250px; --y: 150px; --z: 0px; --dl: .18s; }
.mmh-scene[data-phase="3"] .p-cart { --x: 498px; --y: 330px; --z: 232px; --dl: .24s; }
.mmh-scene[data-phase="3"] .p-ux { --x: 250px; --y: 90px; --z: 0px; --dl: .1s; }

/* ---------- prepínač fáz ---------- */
.mmh-phases { position: relative; z-index: 4; width: min(100%, 600px); margin-top: 4px; }
.mmh-tabs { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(11,22,48,.6); box-shadow: inset 0 0 0 1px var(--h-line); }
.mmh-tab { position: relative; min-height: 54px; padding: 8px 12px 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; overflow: hidden; transition: background-color .35s; color: inherit; font: inherit; }
.mmh-tab .n { font: 700 11px/1 var(--h-text); letter-spacing: .12em; color: var(--h-dim); transition: color .3s; }
.mmh-tab .t { font: 650 15px/1.15 var(--h-display); letter-spacing: -.02em; color: var(--h-muted); transition: color .3s; }
.mmh-tab[aria-selected="true"] { background: rgba(255,255,255,.07); }
.mmh-tab[aria-selected="true"] .n { color: var(--h-coral); }
.mmh-tab[aria-selected="true"] .t, .mmh-tab:hover .t { color: var(--h-white); }
.mmh-tab .bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.mmh-tab .bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--h-coral), var(--h-azure)); transform-origin: 0 50%; transform: scaleX(0); }
.mmh-tab[aria-selected="true"] .bar i { transform: scaleX(var(--p, 0)); }
.mmh-play { width: 46px; min-height: 54px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--h-muted); padding: 0; }
.mmh-play:hover { color: var(--h-white); background: rgba(255,255,255,.05); }
.mmh-play svg { width: 16px; height: 16px; }
.mmh-play .i-play { display: none; }
.mmh-play[aria-pressed="true"] .i-play { display: block; }
.mmh-play[aria-pressed="true"] .i-pause { display: none; }
.mmh-cap { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--h-muted); text-align: center; }

/* ---------- statický fallback (bez JS) ---------- */
.mmh--static { min-height: auto; padding-bottom: 64px; }
.mmh--static .mmh-wrap { grid-template-columns: minmax(0, 1fr); }
.mmh--static .mmh-ln { white-space: normal; }

/* ---------- responzivita ---------- */
@media (min-width: 1150px) and (max-height: 820px) {
  .mmh h1.mmh-h1 { font-size: clamp(44px, min(5.45vw, 10.4vh), 104px); }
  .mmh-lead { margin-top: 20px; } .mmh-cta { margin-top: 24px; } .mmh-proofs { margin-top: 22px; padding-top: 18px; }
}
@media (max-width: 1149.98px) {
  .mmh { min-height: 0; padding-top: calc(var(--mm-header, 70px) + 74px); }
  .mmh-wrap { grid-template-columns: 1fr; gap: 20px; }
  .mmh-scene-col { margin-top: clamp(40px, 10vw, 80px); }
  .mmh-spot, .mmh-bg video { display: none; }
  .mmh-bg { background: url("/pics/envato-blue-lines-video-poster.jpg") center / cover; opacity: .35; }
  .mmh-halo { filter: blur(22px); }
}
@media (max-width: 640px) {
  .mmh { font-size: 16px; padding-bottom: 28px; }
  .mmh-eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .mmh h1.mmh-h1 { font-size: clamp(34px, 10.6vw, 60px); margin-top: 18px; }
  .mmh--en h1.mmh-h1 { font-size: clamp(31px, 9.4vw, 56px); }
  .mmh-lead { margin-top: 18px; }
  .mmh-cta { margin-top: 24px; }
  .mmh-cta .mmh-btn { flex: 1 1 auto; }
  .mmh-proofs { gap: 10px; margin-top: 24px; padding-top: 18px; font-size: 13.5px; }
  .mmh-proofs li { width: 100%; }
  .mmh-tab { padding: 8px 8px 10px; }
  .mmh-tab .t { font-size: 13.5px; }
  .mmh-play { width: 40px; }
  .mmh-cap { font-size: 13px; }
}
@media (max-width: 380px) {
  .mmh-tab .n { font-size: 10px; }
  .mmh-tab .t { font-size: 12.5px; }
}
@media (hover: none) { .mmh-spot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mmh *, .mmh *::before, .mmh *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .mmh[data-anim="pre"] .mmh-ln > span, .mmh[data-anim="pre"] .mmh-fade { opacity: 1; transform: none; }
  .mmh-spot { display: none; }
}
