/* ondrasik.cz – rozcestník a digitální vizitka */
:root {
  --bg: #111112;
  --bg-2: #18181a;
  --card: #1d1d20;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3ede2;
  --muted: #a7a196;
  --faint: #77726a;
  --finance: #e1924b;
  --strategie: #1fd47e;
  --foto: #f3ede2;
  --r: 22px;
  --maxw: 1120px;
  --head: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Záhlaví ---------- */
.top { padding: 26px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { flex: none; font-family: var(--head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { color: var(--finance); font-weight: inherit; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__foto { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(225,146,75,.55); }
.top__link {
  flex: none; font-size: 0.9rem; font-weight: 600; padding: 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text);
  transition: border-color .2s, background .2s;
}
.top__link:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }

/* ---------- Úvod ---------- */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--finance); }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.hero p + p { margin-top: 12px; }

.karta-vizitka {
  justify-self: end; width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 24px 24px;
  box-shadow: 0 30px 70px -35px rgba(0,0,0,.9); transition: transform .25s, border-color .25s;
  background-image: radial-gradient(90% 60% at 50% 0%, rgba(225,146,75,.14), transparent 70%);
}
.karta-vizitka:hover { transform: translateY(-4px); border-color: rgba(225,146,75,.45); }
.karta-vizitka__stitek { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--finance); margin-bottom: 10px; }
.karta-vizitka img { width: 200px; height: 200px; border-radius: 14px; margin-bottom: 12px; flex: none; }
.karta-vizitka strong { font-family: var(--head); font-size: 1.1rem; }
.karta-vizitka span:last-child { color: var(--muted); font-size: 0.88rem; }

/* ---------- Projekty ---------- */
.projekty { padding: 24px 0 80px; }
.sekce-nadpis { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.sekce-popis { color: var(--muted); margin-bottom: 32px; max-width: 40em; }
.mrizka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.projekt {
  --c: var(--text);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px 26px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.projekt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: radial-gradient(80% 100% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
}
.projekt:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.projekt--finance { --c: var(--finance); }
.projekt--strategie { --c: var(--strategie); }
.projekt--muzika { --c: #e2737f; }
.projekt--foto { --c: #c9c2b4; }
.projekt--vizitka { --c: #8fb3ff; }
.projekt__ikona {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 22px;
}
.projekt__ikona svg { width: 24px; height: 24px; flex: none; }
.projekt__stitek {
  position: relative; align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c); margin-bottom: 8px;
}
.projekt h3 { position: relative; font-family: var(--head); font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.projekt p { position: relative; color: var(--muted); font-size: 0.98rem; margin-bottom: 22px; }
.projekt__odkaz {
  position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c);
}
.projekt__odkaz::after { content: "→"; transition: transform .2s; }
.projekt:hover .projekt__odkaz::after { transform: translateX(4px); }
.projekt__zamek { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-left: 10px; font-weight: 500; }

/* ---------- Patička ---------- */
.paticka { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: 0.88rem; }
.paticka .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.paticka a { color: var(--muted); }
.paticka a:hover { color: var(--text); }
.paticka__kontakty { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Vizitka ---------- */
.vizitka-body { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px 40px;
  background-image: radial-gradient(70% 45% at 50% 0%, rgba(225,146,75,.16), transparent 70%); }
.vizitka { width: 100%; max-width: 420px; text-align: center; }
.monogram img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.monogram { width: 132px; height: 132px; padding: 3px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; color: #1a1208;
  background: linear-gradient(135deg, #eba66a, var(--finance)); box-shadow: 0 18px 40px -16px rgba(225,146,75,.6); }
.vizitka h1 { font-family: var(--head); font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.15; }
.vizitka__role { color: var(--muted); margin: 6px 0 4px; }
.vizitka__firma { color: var(--faint); font-size: 0.85rem; margin-bottom: 26px; }
.akce { display: grid; gap: 10px; text-align: left; }
.akce a, .akce button {
  display: flex; align-items: center; gap: 14px; width: 100%; font: inherit; color: var(--text); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-height: 60px;
  transition: border-color .2s, background .2s;
}
.akce a:hover, .akce button:hover { border-color: rgba(255,255,255,.25); }
.akce__ikona { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.akce__ikona svg { width: 19px; height: 19px; flex: none; }
.akce__text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.3; }
.akce__text strong { font-weight: 600; }
.akce__text span { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.akce .hlavni { background: var(--finance); border-color: var(--finance); color: #1a1208; justify-content: center; font-weight: 700; font-size: 1.05rem; }
.akce .hlavni .akce__ikona { background: rgba(0,0,0,.12); }
.akce .hlavni:hover { border-color: var(--finance); filter: brightness(1.05); }
.qr { margin-top: 18px; display: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.qr.je-videt { display: block; }
.qr img { width: 220px; height: 220px; margin: 0 auto 10px; border-radius: 12px; }
.qr p { color: var(--muted); font-size: 0.88rem; }
.vizitka__pata { margin-top: 26px; color: var(--faint); font-size: 0.82rem; }
.vizitka__pata a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .karta-vizitka { justify-self: start; }
  .mrizka { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .logo { font-size: 1.1rem; }
  .top__link { font-size: 0.82rem; padding: 0.5rem 0.85rem; }
  .projekt { padding: 26px 22px 22px; }
}

/* ============================================================
   EFEKTY
   ============================================================ */
/* pozadí: pomalu plující světla + jemné zrno */
.svetla { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.svetla i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.svetla i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: -180px; background: rgba(225,146,75,.45); animation: plout1 22s ease-in-out infinite alternate; }
.svetla i:nth-child(2) { width: 520px; height: 520px; right: -160px; top: 30vh; background: rgba(31,212,126,.22); animation: plout2 26s ease-in-out infinite alternate; }
.svetla i:nth-child(3) { width: 460px; height: 460px; left: 30vw; bottom: -260px; background: rgba(143,179,255,.16); animation: plout1 30s ease-in-out infinite alternate-reverse; }
.svetla::after { content: ""; position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: zrno 1.2s steps(6) infinite; }
@keyframes plout1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes plout2 { to { transform: translate(-140px, -70px) scale(1.1); } }
@keyframes zrno { 0% { transform: translate(0,0); } 50% { transform: translate(-3%, 2%); } 100% { transform: translate(2%, -3%); } }

/* nadpis: slova vyjíždějí postupně */
.slovo { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(6px);
  animation: slovo .9s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes slovo { to { opacity: 1; transform: none; filter: none; } }
.hero h1 em .slovo { background: linear-gradient(100deg, #f4c08e, var(--finance) 40%, #c9692a 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: slovo .9s cubic-bezier(.22,1,.36,1) forwards, lesk 6s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms + 150ms), 0s; }
@keyframes lesk { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.najezd { opacity: 0; transform: translateY(18px); animation: slovo .9s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, .6s); }

/* odhalení při posouvání */
.js .odhal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0s); }
.js .odhal.je-videt { opacity: 1; transform: none; }

/* karty: světlo pod kurzorem + zářivý okraj */
.projekt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%); }
.projekt:hover::after { opacity: 1; }
.projekt { transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .35s; }
.projekt:hover { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.projekt__ikona { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.projekt:hover .projekt__ikona { transform: rotate(-8deg) scale(1.08); }

/* karta s QR: vznáší se, okraj obíhá světlo */
.karta-vizitka { position: relative; isolation: isolate; }
.karta-vizitka.najezd { animation: slovo .9s cubic-bezier(.22,1,.36,1) forwards, vznaset 6s ease-in-out 1.4s infinite; animation-delay: var(--d, .5s), 1.4s; }
.karta-vizitka::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--uhel, 0deg), transparent 0 70%, rgba(225,146,75,.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: obeh 5s linear infinite; }
@property --uhel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes obeh { to { --uhel: 360deg; } }
@keyframes vznaset { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-10px); opacity: 1; } }
.karta-vizitka:hover { animation-play-state: paused; }

/* vizitka */
.monogram { position: relative; animation: slovo .8s cubic-bezier(.22,1,.36,1) both; }
.monogram::before, .monogram::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(225,146,75,.45); animation: puls 2.8s ease-out infinite; }
.monogram::after { animation-delay: 1.4s; }
@keyframes puls { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.vizitka h1, .vizitka__role, .vizitka__firma { animation: slovo .8s cubic-bezier(.22,1,.36,1) both; }
.vizitka h1 { animation-delay: .1s; } .vizitka__role { animation-delay: .18s; } .vizitka__firma { animation-delay: .24s; }
.akce > * { animation: slovo .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 60ms + .3s); }
.akce a, .akce button { transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, background .2s; }
.akce a:active, .akce button:active { transform: scale(.98); }
.akce .hlavni { position: relative; overflow: hidden; }
.akce .hlavni::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: zablesk 3.6s ease-in-out infinite 1.2s; }
@keyframes zablesk { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.qr { transform-origin: top center; }
.qr.je-videt { animation: rozbal .5s cubic-bezier(.22,1,.36,1); }
@keyframes rozbal { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slovo, .najezd, .js .odhal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
