/* ==========================================================================
   jirkydesign.com — styl
   Světle modré pozadí, tmavě modrá (--ink) na text a obrysy, růžová jako
   akcent, pastelové karty, 3D objekty (WebP bez pozadí) a ručně kreslené
   čmáranice (SVG symboly v index.html). Rozměry vychází z mockupu v šířce
   1440 px, kontejner 1200 px.
   ========================================================================== */

:root {
  --bg: #BBE3FD;
  --bg-light: #CDEBFE;
  --ink: #0F2346;
  --text: #1F325E;
  --muted: #45557D;
  --line: rgba(15, 35, 70, .5);

  --pink: #F75AAA;
  --pink-deep: #E2408F;
  --purple: #A488F5;
  --purple-text: #A58AF7;
  --blue-text: #2471CC;

  --card-pink: #FDDFEE;
  --card-blue: #D5EDFE;
  --card-mint: #E2F9E8;
  --white: #FFFFFF;
  --footer: #0F2244;

  --wrap: 1200px;
  --gutter: 24px;
  --radius-lg: 24px;
  --radius-md: 18px;

  --shadow-soft: 0 14px 34px rgba(29, 84, 150, .14);
  --shadow-btn: 0 3px 0 var(--ink);

  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Gochi Hand', 'Comic Sans MS', cursive;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Základ -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 50% 0%, rgba(214, 239, 255, .9), transparent 70%),
    radial-gradient(700px 500px at 12% 42%, rgba(205, 235, 254, .7), transparent 70%),
    radial-gradient(800px 600px at 88% 70%, rgba(205, 235, 254, .6), transparent 70%);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Obloha s 3D mraky (za obsahem) ------------------------------- */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.cloud { position: absolute; width: var(--w); }
.cloud img { width: 100%; }
.cloud--1 { --w: min(230px, 40vw); top: 2.7%; left: 40%; --dur: 34s; }
.cloud--2 { --w: min(190px, 36vw); top: 18%; left: -90px; --dur: 28s; --delay: -9s; }
.cloud--3 { --w: min(360px, 52vw); top: 4.4%; right: -130px; --dur: 44s; --delay: -20s; }
.cloud--4 { --w: min(200px, 36vw); top: 46.5%; left: 15%; --dur: 30s; --delay: -5s; }
.cloud--5 { --w: min(420px, 60vw); top: 63.5%; right: -150px; --dur: 50s; --delay: -14s; }
.cloud--6 { --w: min(340px, 50vw); top: 80%; left: -130px; --dur: 40s; --delay: -26s; }
.cloud--7 { --w: min(200px, 36vw); top: 82%; right: 4%; --dur: 32s; --delay: -3s; }
.cloud--8 { --w: min(260px, 40vw); top: 91.5%; right: -70px; --dur: 38s; --delay: -17s; }
.cloud--9 { --w: min(300px, 46vw); top: 35%; left: -140px; --dur: 46s; --delay: -31s; }
.cloud--3 img, .cloud--5 img, .cloud--9 img { filter: blur(1.5px); opacity: .85; }

/* Sprej na zdi — jen v nočním režimu (obsah viz index.html, .sky). Přes den
   schovaný úplně (žádné prázdné nic v layoutu, jen klidně čeká). */
.graffiti { opacity: 0; transition: opacity .5s ease; }
[data-theme="dark"] .graffiti { opacity: var(--tag-o, 1); }
.tag--1  { top: 9%;  left: 76%;  width: 70px;  height: 61px; color: var(--neon-pink); }
.tag--3  { top: 27%; right: 5%;  width: 40px;  height: 40px; color: var(--neon-yellow); }
.tag--4  { top: 39%; left: 2%;   width: 56px;  height: 62px; color: var(--neon-purple); }
.tag--5  { top: 51%; right: 8%;  width: 130px; height: 52px; color: var(--neon-cyan); --tag-o: .55; }
.tag--6  { top: 60%; left: 10%;  width: 72px;  height: 65px; color: var(--neon-pink); }
.tag--8  { top: 79%; left: 84%;  width: 58px;  height: 41px; color: var(--neon-yellow); }
.tag--9  { top: 87%; left: 6%;   width: 34px;  height: 34px; color: var(--neon-pink); }
.tag--10 { top: 95%; right: 18%; width: 120px; height: 48px; color: var(--neon-cyan); --tag-o: .45; }
.tag--11 { top: 67%; left: 46%; width: 96px; height: 120px; color: var(--night-ink); --tag-o: .16; }

/* 3D objekty schválně přečnívají přes okraj okna — vodorovně se oříznou
   na úrovni sekce, svisle můžou přesahovat do sousední sekce. */
.hero, .things-section, .manifesto, .section, .contact, .site-footer { overflow-x: clip; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.doodle { position: absolute; pointer-events: none; overflow: visible; }

/* ---------- Tlačítka ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 30px;
  border: 2.5px solid var(--ink); border-radius: 999px;
  font: 600 16px/1 var(--font); color: var(--ink); text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-btn), 0 10px 20px rgba(15, 35, 70, .12);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink), 0 14px 24px rgba(15, 35, 70, .16); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink), 0 6px 12px rgba(15, 35, 70, .12); }

.btn--pink { background: var(--pink); }
.btn--white { background: #F7FBFF; }
.btn--sm { height: 45px; padding: 0 22px; font-size: 14px; gap: 12px; border-width: 2px; }
.btn--md { height: 51px; padding: 0 34px; font-size: 15px; }
.btn--flat { border-color: transparent; box-shadow: 0 10px 22px rgba(247, 90, 170, .35); height: 50px; padding: 0 38px; font-size: 15px; }
.btn--flat:hover { box-shadow: 0 14px 26px rgba(247, 90, 170, .42); }
.btn--flat:active { box-shadow: 0 6px 14px rgba(247, 90, 170, .3); }
.btn--xs { height: 36px; padding: 0 24px; font-size: 13px; border: 0; box-shadow: none; }
.btn--xs:hover, .btn--xs:active { box-shadow: 0 8px 18px rgba(247, 90, 170, .35); }

/* ---------- Hlavička ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 28px 0 14px;
  transition: background-color .25s, box-shadow .25s, padding .25s;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(196, 232, 254, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 35, 70, .08);
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  justify-self: start;
  font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--pink); }
/* Kontrast: rozjasněné pozadí scrollnuté hlavičky (rgba(196,232,254,.82))
   proti stránce dá cca #cfecfe — s běžnou --pink to je jen 2.44:1
   (potřeba 4.5:1), takže scrollnutá hlavička dostane tmavší růžovou. */
.site-header.is-scrolled .logo span { color: #C2185B; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Sluníčko/měsíc — schválně zůstává bílé "nálepkové" tlačítko v obou
   režimech (stejně jako menu-btn), takže nehrozí problém s kontrastem;
   v noci jen dostane neonovou záři (viz níž). Bez JS se schová (.js). */
.theme-toggle {
  display: none;
  align-items: center; justify-content: center; flex: none;
  width: 50px; height: 50px;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { transform: translateY(-1px) rotate(-10deg); box-shadow: 0 4px 0 var(--ink); }
.theme-toggle:active { transform: translateY(1px) rotate(0); box-shadow: 0 1px 0 var(--ink); }
.theme-toggle .icon { width: 22px; height: 22px; }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }

.menu { position: relative; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 50px; padding: 0 30px 0 24px;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 999px;
  font: 600 15px/1 var(--font); cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.menu-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.menu-btn__bars { display: grid; gap: 4px; width: 20px; }
.menu-btn__bars span { display: block; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

.nav-panel {
  display: grid; gap: 2px;
  margin-top: 12px; padding: 10px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink), var(--shadow-soft);
}
.js .nav-panel {
  position: absolute; top: 100%; right: 0; min-width: 220px;
  transform: translateY(-6px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.js .nav-panel.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .2s var(--ease), visibility 0s;
}
.nav-panel a {
  padding: 10px 16px; border-radius: 14px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-panel a:hover, .nav-panel a[aria-current="true"] { background: var(--card-pink); }


/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; padding: 82px 0 92px; }
.hero__grid {
  display: grid; grid-template-columns: 560px 1fr; align-items: start;
}
.hero__copy { position: relative; z-index: 2; }

.hero__title { display: block; font-weight: 700; color: var(--ink); line-height: 1; }
.hero__jsem {
  display: block;
  margin: 0 0 0 -15px;
  font-size: 41px; letter-spacing: -.01em;
}
.hero__word {
  position: relative; display: block;
  width: 600px; margin: 14px 0 0 -18px;
}
.hero__word-inner { display: block; position: relative; transform-origin: 20% 90%; }
.hero__kreativec { width: 100%; height: auto; transform-origin: 50% 90%; filter: drop-shadow(0 16px 18px rgba(214, 70, 150, .22)); }
/* Panáček sprejující "K" — jen v nočním režimu. Noční nápis
   (wordmark-kreativec-night.webp) má jiný poměr stran než denní (má
   navíc odkapávající sprej dole), ale písmena samotná zabírají celou
   šířku obrázku úplně stejně jako u denní verze — díky tomu width:100%
   dá stejně velké "Kreativec" v obou režimech, jen noční je o kousek
   vyšší (ty kapky přesahují dolů, což je schválně, viz overflow na
   .hero sekci). Panáček je umístěný procentuálně vůči téhle bublině
   (odměřeno z referenčního obrázku se sprejerem i nápisem najednou),
   ať sedí přesně vedle "K" ať je "Kreativec" jakkoliv velké. */
.hero__sprayer { display: none; position: absolute; left: -11.3%; top: 39%; width: 11.5%; height: auto; z-index: 2; pointer-events: none; }
:root[data-theme="dark"] .hero__sprayer { display: block; }
.hero__crown { width: 84px; height: 76px; left: 452px; top: -64px; color: var(--ink); rotate: 8deg; }
.hero__smile { width: 54px; height: 60px; left: 606px; top: 88px; color: var(--ink); rotate: -12deg; }

.hero__lead {
  max-width: 556px; margin-top: 18px;
  font-size: 19px; line-height: 1.58; color: var(--text);
}
/* Noční nápis je o kus vyšší (odkapávající sprej dole), takže by se
   všechno pod ním posunulo níž než ve dne. Rozdíl se rozpůlí na obě
   strany — denní o kousek dolů, noční o kousek nahoru — ať to není ani
   jedna varianta nápadně jinde, jen se sejdou uprostřed. */
:root[data-theme="light"] .hero__lead { margin-top: 30px; }
:root[data-theme="dark"] .hero__lead { margin-top: 6px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.hero__cta .btn--pink { min-width: 248px; }
.hero__cta .btn--white { min-width: 168px; padding: 0 26px; }

.socials { display: flex; gap: 26px; margin: 40px 0 0 8px; }
.social {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--ink); color: var(--ink);
  background: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.social:hover { transform: translateY(-2px) rotate(-6deg); background: #fff; }
.social .icon { width: 22px; height: 22px; stroke-width: 2.1; }
.social--be span { font-weight: 800; font-size: 17px; letter-spacing: -.03em; }

.hero__art { position: relative; margin: 0 -60px 0 -40px; }
.hero__computer-wrap { width: 712px; margin: 20px 0 0 auto; }
.hero__computer { width: 100%; filter: drop-shadow(0 26px 30px rgba(28, 88, 170, .22)); }
.hero__burst { width: 84px; height: 80px; right: 226px; top: -58px; color: var(--ink); transform-origin: 0% 100%; }
.hero__star { width: 60px; height: 60px; right: 70px; top: 152px; color: var(--pink); rotate: 12deg; }

/* ---------- Sekce, nadpisy ------------------------------------------------ */
.section { position: relative; padding: 0 0 72px; }
.section-head { position: relative; margin-bottom: 22px; width: max-content; max-width: 100%; }
.section-head h2, .section-head h1 {
  font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
  color: var(--ink);
}
.brush { display: block; width: 138px; height: 30px; margin: 4px 0 0 -4px; color: var(--pink); }
.brush--long { width: 316px; height: 28px; margin-top: 0; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Detail projektu (/projekty/*.html) ----------------------------- */
.project-hero { padding-top: 18px; }
.project-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.project-back .icon { width: 16px; height: 16px; transform: scaleX(-1); }
.project-back:hover { color: var(--pink-deep); text-decoration: underline; }
.project-lead { max-width: 560px; font-size: 16px; line-height: 1.7; color: var(--text); margin: 18px 0 26px; }
.project-placeholder { max-width: 460px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 40px 0 36px; }
.project-shot {
  aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 22px;
  border: 2px dashed rgba(36, 113, 204, .45); background: rgba(255, 255, 255, .45);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.project-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.project-placeholder h2 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; color: var(--ink); }

/* ---------- Moje věci ----------------------------------------------------- */
.things-section { padding-bottom: 104px; }

.pill {
  display: inline-flex; align-items: center; height: 41px; padding: 0 20px;
  border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.pill--white { background: #fff; color: var(--ink); }
.pill--purple { background: var(--purple); color: #1C1447; }
.pill--navy { background: #173266; color: #fff; font-weight: 600; }
.pill--outline {
  height: 44px; padding: 0 24px; background: #fff; color: var(--text);
  border: 1.5px solid var(--line); font-size: 14px;
}
.pill--outline strong { color: var(--blue-text); margin-right: 6px; }

/* tmavá karta */
.thing-dark {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 417px; min-width: 0; max-width: 640px; margin-bottom: 40px; padding: 18px 20px 16px;
  border-radius: 22px; overflow: hidden;
  color: #fff; text-decoration: none;
  background:
    radial-gradient(420px 300px at 88% 105%, rgba(125, 70, 230, .55), transparent 70%),
    radial-gradient(360px 260px at 70% 30%, rgba(70, 40, 150, .45), transparent 70%),
    linear-gradient(160deg, #0A1330 0%, #121640 45%, #24175C 100%);
  border: 1.5px solid rgba(60, 55, 130, .9);
  box-shadow: 0 22px 40px rgba(24, 20, 80, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.thing-dark:hover { transform: translateY(-4px); box-shadow: 0 28px 48px rgba(24, 20, 80, .34); }
.thing-dark .pill--white { position: absolute; left: 20px; top: 18px; height: 41px; }
.thing-dark .pill--purple { position: absolute; right: 19px; top: 16px; height: 39px; }
.thing-dark__cursor {
  position: absolute; right: 30px; top: 70px; width: 172px;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .35));
  transform-origin: 30% 30%;
  transition: translate .35s var(--ease), rotate .35s var(--ease);
}
.thing-dark:hover .thing-dark__cursor { translate: -6px -6px; rotate: -6deg; }
.thing-dark__dome {
  position: absolute; right: 30px; top: 62px; width: 200px; height: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .4));
  transition: translate .35s var(--ease), rotate .35s var(--ease);
}
.thing-dark:hover .thing-dark__dome { translate: 0 -8px; rotate: 3deg; }
.thing-dark--studio .thing-dark__text { max-width: 290px; }
.thing-dark__headline {
  display: block; margin: 0 0 14px 8px;
  font-size: 26px; font-weight: 600; line-height: 1.24; text-transform: uppercase; letter-spacing: 0;
}
.thing-dark__l1, .thing-dark__l2 { display: block; }
.thing-dark__l2 { color: var(--purple-text); }
.thing-dark__text {
  display: block; max-width: 390px; margin: 0 0 30px 8px;
  font-size: 15.5px; line-height: 1.7; color: #D7DBF1;
}
.thing-dark__chip {
  display: flex; align-items: center; gap: 20px; padding: 20px 20px 22px 24px;
  background: #fff; color: var(--ink); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.thing-dark__chip h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.thing-dark__chip p { font-size: 14.5px; line-height: 1.7; color: #58627F; }
.thing-dark__chip-text { flex: 1; min-width: 0; }
.thing-dark__chip .btn { flex: none; }
.thing-dark .pill--purple { font-size: 14px; }

/* e-shopy a Studio pod sklem vedle sebe */
.dark-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.dark-cards .thing-dark { max-width: none; margin-bottom: 0; }

.tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; user-select: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.tab:hover { background: #fff; transform: translateY(-1px); }
.tab:has(input:checked) { background: var(--pink); border-color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--ink); }
.tab:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

.mini-card {
  position: relative; z-index: 3;
  display: block; width: 100%; min-height: 107px; padding: 22px 26px 20px;
  background: #fff; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 18px;
  box-shadow: 0 6px 16px rgba(29, 84, 150, .1);
}
.mini-card h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.mini-card > span { display: block; font-size: 15px; color: var(--text); }

/* ---------- Moje projekty (mřížka) ----------------------------------------- */
.projects-head {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-start; gap: 16px; margin-bottom: 22px;
}

.projects-grid {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-bottom: 104px;
}
.project-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px 22px; border-radius: 22px; min-width: 0;
  background: linear-gradient(160deg, rgba(246, 251, 255, .92), rgba(228, 243, 253, .8));
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 16px 32px rgba(29, 84, 150, .13);
  text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.project-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(29, 84, 150, .2); }
.project-card__media {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, rgba(196, 228, 255, .96) 0%, rgba(120, 182, 250, .9) 55%, rgba(66, 146, 242, .92) 100%);
  box-shadow: inset 8px 10px 18px rgba(255, 255, 255, .7), inset -10px -14px 22px rgba(30, 100, 220, .35);
}
.project-card[data-cat="socialni"] .project-card__media { background: linear-gradient(150deg, #FFE0EF 0%, #FA96C6 55%, #F75AAA 100%); }
.project-card[data-cat="weby"] .project-card__media { background: linear-gradient(150deg, #DEFBE7 0%, #93E4B2 55%, #43C177 100%); }
.project-card[data-cat="vlastni"] .project-card__media { background: linear-gradient(150deg, #ECE3FF 0%, #BD9EFB 55%, #A488F5 100%); }
.project-card__icon { width: 40px; height: 40px; color: #fff; filter: drop-shadow(0 4px 8px rgba(20, 60, 140, .4)); }
.project-card__tag {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-text);
}
.project-card[data-cat="socialni"] .project-card__tag { color: var(--pink-deep); }
.project-card[data-cat="weby"] .project-card__tag { color: #1E8F53; }
.project-card[data-cat="vlastni"] .project-card__tag { color: var(--purple-text); }
.project-card h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.project-card__desc { font-size: 14px; line-height: 1.6; color: var(--text); flex: 1; }
.project-card__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; background: var(--blue-text);
  box-shadow: 0 8px 16px rgba(36, 113, 204, .32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.project-card[data-cat="socialni"] .project-card__cta { background: var(--pink-deep); box-shadow: 0 8px 16px rgba(226, 64, 143, .32); }
.project-card[data-cat="weby"] .project-card__cta { background: #1E8F53; box-shadow: 0 8px 16px rgba(30, 143, 83, .32); }
.project-card[data-cat="vlastni"] .project-card__cta { background: #7C4FE0; box-shadow: 0 8px 16px rgba(124, 79, 224, .32); }
.project-card__cta .icon { width: 15px; height: 15px; transition: translate .2s var(--ease); }
a.project-card:hover .project-card__cta { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(36, 113, 204, .4); }
a.project-card:hover .project-card__cta .icon { translate: 3px -3px; }
.project-card__cta--soon { color: var(--muted); font-weight: 500; background: none; box-shadow: none; padding: 0; }
.project-card--soon { opacity: .82; }

/* filtr štítků je čisté CSS (radio + :has) — funguje i bez JS */
.projects-grid .project-card { display: none; }
.projects-head:has(input[value="vse"]:checked) ~ .projects-grid .project-card { display: flex; }
.projects-head:has(input[value="tiskoviny"]:checked) ~ .projects-grid .project-card[data-cat="tiskoviny"] { display: flex; }
.projects-head:has(input[value="socialni"]:checked) ~ .projects-grid .project-card[data-cat="socialni"] { display: flex; }
.projects-head:has(input[value="weby"]:checked) ~ .projects-grid .project-card[data-cat="weby"] { display: flex; }
.projects-head:has(input[value="vlastni"]:checked) ~ .projects-grid .project-card[data-cat="vlastni"] { display: flex; }
@supports not selector(:has(*)) {
  .projects-grid .project-card { display: flex; }
  .projects-filter { display: none; }
}

.glass-blob {
  position: absolute; z-index: 0;
  width: 140px; height: 140px;
  border-radius: 34%;
  rotate: -26deg;
  background: linear-gradient(150deg, rgba(196, 228, 255, .96) 0%, rgba(120, 182, 250, .92) 42%, rgba(66, 146, 242, .94) 100%);
  box-shadow:
    inset 10px 12px 22px rgba(255, 255, 255, .8),
    inset -14px -18px 30px rgba(30, 100, 220, .45),
    0 26px 44px rgba(40, 110, 230, .26);
  pointer-events: none;
}
/* Sedí ve volném místě vpravo od filtru kategorií — nikdy ne přes štítky
   (dřív schovávala jejich text). Pod 1100px se schová (viz media query). */
.projects-head__blob {
  top: 50%; right: 60px; translate: 0 -50%;
  width: 90px; height: 90px;
}
.glass-blob::after {
  content: ""; position: absolute; inset: 27%;
  border-radius: 30%;
  background: linear-gradient(150deg, rgba(186, 222, 255, .7), rgba(120, 180, 248, .55));
  box-shadow: inset 6px 8px 14px rgba(40, 110, 225, .3), inset -6px -8px 14px rgba(255, 255, 255, .55);
}

/* odlesk, který jede za myší při naklápění karet (data-tilt, js/motion.js) */
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .24), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
[data-tilt].is-tilting::after { opacity: 1; }

/* ---------- Manifest ------------------------------------------------------ */
.manifesto {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding: 94px var(--gutter) 130px;
  text-align: center;
}
.manifesto__text {
  max-width: 540px;
  font-size: 26.5px; font-weight: 600; line-height: 1.58; letter-spacing: -.01em; color: var(--ink);
}
.emoji { display: inline-block; font-size: 1em; font-weight: 400; }
.manifesto__crown { left: 64px; top: 22px; width: 88px; height: 80px; color: var(--pink); rotate: -18deg; }
.manifesto__spray {
  position: absolute; right: 62px; top: 20px; width: 196px;
  filter: drop-shadow(0 18px 22px rgba(28, 88, 170, .22));
}

/* ---------- Tři věci ------------------------------------------------------ */
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.know-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 275px; padding: 26px 30px 28px;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.know-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(29, 84, 150, .18); }
.know-card--pink { background: var(--card-pink); }
.know-card--blue { background: var(--card-blue); }
.know-card--mint { background: var(--card-mint); }
.know-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border: 2.5px solid var(--ink); border-radius: 50%; color: var(--ink);
  margin-bottom: 22px;
}
.know-card__icon .icon { width: 21px; height: 21px; }
.know-card h3 { font-size: 23px; font-weight: 600; line-height: 1.25; color: var(--ink); margin-bottom: 12px; }
.know-card p { font-size: 15.5px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.tags li {
  display: inline-flex; align-items: center; height: 33px; padding: 0 17px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink);
}

/* ---------- O mně --------------------------------------------------------- */
.about {
  display: grid; grid-template-columns: 482px 1fr; gap: 58px; align-items: center;
}
.about__media { position: relative; }
.about__photo {
  aspect-ratio: 482 / 473; overflow: hidden;
  border-radius: 30px; border: 2px solid rgba(15, 35, 70, .65);
  box-shadow: var(--shadow-soft);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; scale: 1.12; }
.about__smile { right: 40px; top: 44px; width: 54px; height: 60px; color: #fff; rotate: -8deg; }
.about__spiral { left: 36px; bottom: 96px; width: 34px; height: 34px; color: #fff; }
.about__sticker {
  position: absolute; left: 36px; bottom: 16px;
  padding: 12px 20px 12px 22px;
  background: #F9A9D2; color: var(--ink);
  border: 1.5px solid rgba(15, 35, 70, .35); border-radius: 12px;
  font-family: var(--font-hand); font-size: 26px; line-height: 1.12; text-align: center;
  rotate: -13deg;
  box-shadow: 0 8px 16px rgba(15, 35, 70, .18);
}
.about__loop { left: 150px; bottom: -14px; width: 62px; height: 44px; color: var(--ink); }

.about__text { position: relative; padding-top: 4px; }
.about__text .eyebrow { margin-bottom: 10px; }
.about__text h2 { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin-bottom: 14px; }
.about__crown { right: -22px; top: -4px; width: 80px; height: 76px; color: var(--pink); rotate: 4deg; }
.about__text > p:not(.eyebrow) { max-width: 590px; font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.about__text strong { color: var(--ink); }
.about__tags { margin-top: 6px; }


/* ---------- Kontakt ------------------------------------------------------- */
.contact { position: relative; padding: 38px 0 56px; }
.contact__card {
  position: relative;
  width: min(1021px, 100%); margin-inline: auto;
  padding: 28px 160px 32px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 24px;
  box-shadow: 0 18px 40px rgba(29, 84, 150, .16);
  text-align: center;
}
.contact__card .eyebrow { margin-bottom: 6px; }
.contact__card h2 { font-size: 39px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.contact__card .accent { color: var(--pink); }
.contact__lead { margin: 6px 0 20px; font-size: 15.5px; color: var(--muted); }
.contact__megaphone {
  position: absolute; left: -14px; top: 52px; width: 190px;
  filter: drop-shadow(0 14px 18px rgba(28, 88, 170, .2));
  transform-origin: 30% 70%;
}
.contact__smile { right: 36px; top: 96px; width: 50px; height: 56px; color: var(--ink); rotate: -14deg; }
.contact__skate {
  position: absolute; left: -44px; bottom: -90px; width: 150px;
  filter: drop-shadow(0 16px 20px rgba(28, 88, 170, .25));
  pointer-events: none;
}

/* ---------- Patička ------------------------------------------------------- */
.site-footer { position: relative; padding: 4px 0 38px; }
.footer-panel {
  width: min(1021px, 100%); margin-inline: auto;
  padding: 26px 48px 16px;
  background: var(--footer); color: #D5DCEE;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(15, 35, 70, .25);
}
.footer-grid { display: grid; grid-template-columns: 1.52fr .95fr 1fr; gap: 32px; }
.footer-panel h2 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-cta p { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.footer-cta .btn { color: var(--ink); }
.footer-col ul { display: grid; gap: 3px; font-size: 14px; line-height: 1.6; }
.footer-col a { color: #D5DCEE; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col strong { color: #fff; }

.footer-bottom {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
}
.footer__squiggle { position: relative; width: 120px; height: 30px; margin-left: auto; margin-right: 20px; color: var(--pink); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--ink); text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: -.03em;
  transition: transform .2s var(--ease);
}
.footer-socials a:hover { transform: translateY(-2px); }
.footer-socials .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.site-footer :focus-visible { outline-color: #fff; }

.footer__x {
  position: absolute; right: -6px; top: 6px; width: 148px;
  transform: rotate(4deg);
  filter: drop-shadow(0 16px 20px rgba(28, 88, 170, .25));
  pointer-events: none;
}

/* ---------- Pohyb -----------------------------------------------------------
   Třída .motion = JS běží a uživatel nemá vypnutý pohyb. Bez ní je všechno
   rovnou vidět a nic se nehýbe. Kanály se nepřekrývají: vjezd/odkrytí používá
   `transform`, parallax z js/motion.js vlastnost `translate` (a `rotate` u
   data-spin), základní natočení objektů `rotate`, smyčky zase `transform`
   nebo `scale` — proto se dají kombinovat. ------------------------------- */

/* odkrývání při scrollu */
.motion .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 120ms);
}
.motion .reveal--left { transform: translateX(-70px) rotate(-3deg); }
.motion .reveal--right { transform: translateX(70px) rotate(3deg); }
.motion .reveal--pop {
  transform: translateY(40px) scale(.86) rotate(-2deg);
  transition-timing-function: ease, cubic-bezier(.34, 1.56, .64, 1);
}
.motion .reveal.is-in { opacity: 1; transform: none; }

.motion .contact__skate.reveal {
  opacity: 1; transform: translateX(-130%) rotate(-40deg);
  transition: transform 1.4s cubic-bezier(.2, .9, .25, 1.05) .2s;
}
.motion .contact__skate.reveal.is-in { transform: none; }

/* čmáranice se "dokreslí" (cesty v symbolech mají pathLength="1") */
.motion .draw {
  stroke-dasharray: 1 2; stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) var(--draw-delay, .45s);
}
.motion .is-in .draw, .motion .draw.is-in { stroke-dashoffset: 0; }
.motion .about__loop { --draw-delay: 1.1s; }
.motion .about__spiral { --draw-delay: .9s; }
.motion .contact__smile { --draw-delay: .8s; }
.motion .footer__squiggle { --draw-delay: .7s; }

/* štítky naskočí postupně po kartě */
.motion .know-card .tags li {
  opacity: 0; transform: translateY(12px) scale(.9);
  transition: opacity .45s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.motion .know-card.is-in .tags li { opacity: 1; transform: none; }
.motion .tags li:nth-child(1) { transition-delay: calc(var(--reveal-delay, 0) * 120ms + .45s); }
.motion .tags li:nth-child(2) { transition-delay: calc(var(--reveal-delay, 0) * 120ms + .55s); }
.motion .tags li:nth-child(3) { transition-delay: calc(var(--reveal-delay, 0) * 120ms + .65s); }

/* úvodní sekvence v hero */
.motion .intro { animation: rise .8s var(--ease) both; }
.motion .hero__jsem { animation-delay: .1s; }
.motion .hero__word-inner { animation: word-pop .95s cubic-bezier(.34, 1.56, .64, 1) .4s both; }
.motion .hero__crown { animation: draw 1s cubic-bezier(.65, 0, .35, 1) 1.05s both, bob 3.6s ease-in-out 2.2s infinite; }
.motion .hero__smile { animation: draw .9s cubic-bezier(.65, 0, .35, 1) 1.3s both, tilt 4s ease-in-out 2.4s infinite; }
.motion .hero__lead { animation-delay: .6s; }
.motion .hero__cta { animation-delay: .75s; }
.motion .socials { animation: none; }
.motion .socials li { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.motion .socials li:nth-child(1) { animation-delay: .95s; }
.motion .socials li:nth-child(2) { animation-delay: 1.05s; }
.motion .socials li:nth-child(3) { animation-delay: 1.15s; }
.motion .hero__art { animation: art-in 1.1s var(--ease) .3s both; }
.motion .hero__burst { animation: draw .7s ease-out 1.25s both, burst 2.4s ease-in-out 2s infinite; }
.motion .hero__star { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) 1.45s both, twinkle 3s ease-in-out 2.1s infinite; }

/* smyčky po odkrytí */
.motion .manifesto__text.is-in .emoji { animation: hop 3s ease-in-out calc(1s + var(--i) * .3s) infinite; }
.motion .manifesto__crown.is-in { animation: bob 4s ease-in-out 1.5s infinite; }
.motion .about__media.is-in .about__sticker { animation: slap .6s cubic-bezier(.34, 1.56, .64, 1) .6s both; }

@media (prefers-reduced-motion: no-preference) {
  .cloud img { animation: drift var(--dur, 36s) ease-in-out var(--delay, 0s) infinite alternate; }
  .hero__kreativec { animation: jelly 5s ease-in-out 1.6s infinite; }
  .hero__computer { animation: float 6s ease-in-out infinite; }
  .thing-dark__dome { animation: float 6s ease-in-out infinite; }
  .thing-dark__cursor { animation: click 2.8s ease-in-out 1s infinite; }
  .glass-blob { animation: blob 7s ease-in-out infinite; }
  .about__smile, .contact__smile { animation: tilt 4.4s ease-in-out infinite; }
  .about__crown { animation: bob 4.2s ease-in-out infinite; }
  .manifesto__spray { animation: wobble 5s ease-in-out infinite; }
  .motion .manifesto__spray:not(.is-in) { animation: none; }
  .footer__x { animation: spin-bob 7s ease-in-out infinite; }
  .contact__megaphone { animation: shout 3.2s ease-in-out infinite; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes word-pop { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: translateX(90px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1.01; } to { stroke-dashoffset: 0; } }
@keyframes jelly { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-7px) scale(1.012, .988); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-6deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes burst { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14) translate(3px, -3px); opacity: .7; } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(16deg) scale(.82); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 68% { transform: translateY(-9px) rotate(-10deg); } 78% { transform: translateY(0) rotate(6deg); } 86% { transform: translateY(-3px) rotate(0); } }
@keyframes slap { from { opacity: 0; transform: scale(1.9) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes click { 0%, 62%, 100% { scale: 1; } 70% { scale: .88; } 80% { scale: 1.06; } 88% { scale: 1; } }
@keyframes blob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes drift { from { transform: translateX(-28px) translateY(0); } to { transform: translateX(28px) translateY(-10px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-8px); } }
@keyframes spin-bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(14deg) translateY(-8px); } }
@keyframes shout { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg) scale(1.04); } 96% { transform: rotate(3deg); } }

/* ==========================================================================
   Noční režim — přepínač v hlavičce (data-theme na <html>, js/main.js)
   ukládá volbu do localStorage. Bez JS se přepínač schová a platí jen
   světlý motiv (viz .js .theme-toggle výš) — noc je čistě doplněk, ne
   obsah, takže na tom nic nezávisí.

   Záměrně NEmění barvy "papírových" prvků — bílých/pastelových karet,
   tlačítek, štítků (.btn, .pill, .tags, .know-card, .mini-card, nav-panel…).
   Ty zůstávají přilepené jako letáky a nálepky na zdi i v noci, takže se
   nikde nemůže rozbít kontrast textu uvnitř nich. Mění se hlavně plocha
   kolem nich: pozadí zčerná a dostane sprejové zrnění a neonové záře,
   čmáranice (korunka, sluníčko z podtržení, prsknutí…) a text ležící
   přímo na ploše (ne v kartě) přebarví na neon se svitem, mraky ztlumí
   na kouř a přibude sprejová vrstva (.graffiti) a "výstražná páska".
   ========================================================================== */

:root[data-theme="dark"] {
  --bg: #0A0A0E;
  --footer: #000000;
  --night-ink: #F3EFE8;
  --night-text: #CFCAD9;
  --night-muted: #948FA0;
  --neon-pink: #FF2D9E;
  --neon-cyan: #35D7FF;
  --neon-purple: #A466FF;
  --neon-yellow: #F2D93B;
}

/* Policejní odlesky — větší, ale měkké skvrny světla, jako by se venku
   otáčel maják a jeho odraz dopadal na zeď. Leží v .sky (za obsahem),
   takže se hýbou s mraky. Každá skvrna je JEDEN zdroj — sama nejdřív
   blikne červeně, pak modře, pak dlouhá pauza a znovu (ne že by jedna
   byla natrvalo červená a jiná natrvalo modrá — to jsou dvě vrstvy,
   ::before a ::after, nad sebou na stejném místě). Čtyři skvrny ale
   NEJEDOU všechny ve stejnou chvíli — každá má jiné zpoždění
   (--glint-delay), ať to bliká postupně/nepravidelně po ploše, ne
   všechno najednou. Klidový stav mezi cykly je úplně zhasnutý, ať je
   to znát jako opravdové bliknutí, ne dýchání. */
.glint { position: absolute; pointer-events: none; }
:root[data-theme="dark"] .glint { will-change: transform; }
.glint::before, .glint::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0;
}
/* měkkost dřív dělal filter:blur() navíc k gradientu — na téhle ploše
   (a k tomu ještě posouvané při scrollu přes JS) to zbytečně sekalo,
   gradient sám o sobě vypadá skoro stejně měkce a je levný na vykreslení */
.glint::before { background: radial-gradient(circle, rgba(255, 64, 64, .85) 0%, rgba(255, 64, 64, .3) 40%, transparent 68%); }
.glint::after { background: radial-gradient(circle, rgba(58, 130, 255, .85) 0%, rgba(58, 130, 255, .3) 40%, transparent 68%); }
.glint--1 { top: 4%;  left: 2%;   width: 26vw; height: 26vw; --glint-o: .7;  --glint-delay: 0s; }
.glint--2 { top: 22%; right: 3%;  width: 20vw; height: 20vw; --glint-o: .6;  --glint-delay: 2.4s; }
.glint--3 { top: 58%; left: 1%;   width: 23vw; height: 23vw; --glint-o: .58; --glint-delay: 5.1s; }
.glint--4 { top: 89%; right: 2%;  width: 24vw; height: 24vw; --glint-o: .65; --glint-delay: 7.3s; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="dark"] .glint::before { animation: glint-red 9s ease-in-out infinite; animation-delay: var(--glint-delay, 0s); }
  :root[data-theme="dark"] .glint::after { animation: glint-blue 9s ease-in-out infinite; animation-delay: var(--glint-delay, 0s); }
}
/* sdílená osa (9 s): 0–22 % červená, 22–44 % modrá, zbytek tma */
@keyframes glint-red {
  0%, 22%, 100% { opacity: 0; }
  11% { opacity: var(--glint-o, 0); }
}
@keyframes glint-blue {
  0%, 22%, 44%, 100% { opacity: 0; }
  33% { opacity: var(--glint-o, 0); }
}

/* zeď: černá + sprejové zrnění (SVG šum) + tři neonové záře do rohů */
:root[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1000px 700px at 10% -4%, rgba(255, 45, 158, .16), transparent 62%),
    radial-gradient(900px 750px at 102% 30%, rgba(53, 215, 255, .12), transparent 62%),
    radial-gradient(950px 780px at 15% 102%, rgba(164, 102, 255, .16), transparent 62%),
    radial-gradient(700px 600px at 90% 96%, rgba(242, 217, 59, .07), transparent 60%);
}

/* jemný přechod barev, když se motiv přepne (jen prvky bez vlastní
   tranzice — u ostatních to zajišťuje jejich stávající "transition") */
.logo, .logo span, .hero__jsem, .hero__lead, .section-head h2, .section-head h1, .brush, .brush--long,
.project-back, .project-lead,
.manifesto__text, .manifesto__crown, .manifesto__spray,
.about__text .eyebrow, .about__text h2, .about__text > p, .about__text strong, .about__crown,
.hero__crown, .hero__smile, .hero__burst, .hero__star,
.hero__kreativec, .hero__computer, .footer__squiggle, .footer__x {
  transition: color .4s ease, filter .4s ease;
}

/* hlavička */
:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(9, 9, 13, .82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 10px 30px rgba(255, 45, 158, .08);
}
:root[data-theme="dark"] .logo { color: var(--night-ink); }
:root[data-theme="dark"] .logo span { color: var(--neon-pink); text-shadow: 0 0 14px rgba(255, 45, 158, .55); }
:root[data-theme="dark"] .theme-toggle {
  box-shadow: 0 3px 0 var(--ink), 0 0 0 3px rgba(255, 45, 158, .3), 0 0 20px rgba(255, 45, 158, .45);
}
:root[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 4px 0 var(--ink), 0 0 0 3px rgba(255, 45, 158, .4), 0 0 26px rgba(255, 45, 158, .6);
}

/* hero: text a čmáranice přímo na ploše dostanou neon, Kreativec a počítač
   silnější (barevnou) záři místo modrého stínu */
:root[data-theme="dark"] .hero__jsem { color: var(--night-ink); }
:root[data-theme="dark"] .hero__lead { color: var(--night-text); }
:root[data-theme="dark"] .hero__crown,
:root[data-theme="dark"] .hero__burst { color: var(--neon-cyan); filter: drop-shadow(0 0 10px rgba(53, 215, 255, .65)); will-change: transform; }
:root[data-theme="dark"] .hero__smile { color: var(--neon-pink); filter: drop-shadow(0 0 10px rgba(255, 45, 158, .6)); will-change: transform; }
:root[data-theme="dark"] .hero__star { color: var(--neon-yellow); filter: drop-shadow(0 0 10px rgba(242, 217, 59, .6)); will-change: transform; }
/* Tyhle prvky mají v noci navíc drop-shadow záři a k tomu se ještě
   posouvají při scrollu/myší přes JS (translate) — bez will-change by
   prohlížeč tu záři přepočítával v každém snímku znovu, což sekalo.
   S will-change se vykreslí jako vlastní vrstva a jen posouvá hotovou
   texturu — proto jen v noci, ve dne to není potřeba. */
:root[data-theme="dark"] .hero__kreativec { filter: drop-shadow(0 0 26px rgba(255, 45, 158, .55)) drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); will-change: transform; }
:root[data-theme="dark"] .hero__computer { filter: drop-shadow(0 0 34px rgba(164, 102, 255, .38)) drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); will-change: transform; }
:root[data-theme="dark"] .social { border-color: var(--night-ink); color: var(--night-ink); background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .social:hover { background: rgba(255, 255, 255, .16); }

/* nadpisy sekcí a jejich podtržení (ta jsou vlastně taky sprej) */
:root[data-theme="dark"] .section-head h2, :root[data-theme="dark"] .section-head h1 { color: var(--night-ink); }
:root[data-theme="dark"] .project-back { color: var(--night-ink); }
:root[data-theme="dark"] .project-lead { color: var(--night-text); }
:root[data-theme="dark"] .project-shot { border-color: rgba(53, 215, 255, .5); background: rgba(255, 255, 255, .05); color: var(--night-muted); }
:root[data-theme="dark"] .brush,
:root[data-theme="dark"] .brush--long { color: var(--neon-pink); filter: drop-shadow(0 0 8px rgba(255, 45, 158, .6)); }

/* Moje věci: karty dostanou neonový rám místo modrého stínu, skleněná
   koule v Portfoliu přebarví z modré na neonovou, "Pro e-shop" navíc
   výstražnou páskou při horním okraji */
/* tmavé karty na tmavé ploše splývaly — v noci jsou světlejší, sytěji
   fialové a mají výrazný neonový rám se září (e-shopy růžová, Studio cyan) */
:root[data-theme="dark"] .thing-dark {
  background:
    radial-gradient(420px 300px at 88% 105%, rgba(255, 45, 158, .45), transparent 70%),
    radial-gradient(360px 260px at 70% 30%, rgba(164, 102, 255, .5), transparent 70%),
    linear-gradient(160deg, #1B2160 0%, #2A1D78 50%, #45208F 100%);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 45, 158, .55), 0 0 70px rgba(255, 45, 158, .28);
}
:root[data-theme="dark"] .thing-dark--studio {
  background:
    radial-gradient(420px 300px at 88% 105%, rgba(53, 215, 255, .4), transparent 70%),
    radial-gradient(360px 260px at 70% 30%, rgba(164, 102, 255, .5), transparent 70%),
    linear-gradient(160deg, #122A66 0%, #22237A 50%, #3A2290 100%);
  border-color: var(--neon-cyan);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .55), 0 0 26px rgba(53, 215, 255, .5), 0 0 70px rgba(53, 215, 255, .25);
}
:root[data-theme="dark"] .thing-dark:hover {
  box-shadow: 0 28px 52px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 45, 158, .7), 0 0 90px rgba(255, 45, 158, .35);
}
:root[data-theme="dark"] .thing-dark--studio:hover {
  box-shadow: 0 28px 52px rgba(0, 0, 0, .6), 0 0 34px rgba(53, 215, 255, .65), 0 0 90px rgba(53, 215, 255, .32);
}
:root[data-theme="dark"] .thing-dark::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(-45deg, #0A0A0E 0 10px, var(--neon-yellow) 10px 20px);
  opacity: .85;
}
/* karty projektů jsou v noci sklo na tmavém podkladu, ne bílý papír —
   jinak zůstávaly jako svítící bílé bloky uprostřed neonové sekce */
:root[data-theme="dark"] .project-card {
  background: linear-gradient(160deg, rgba(30, 32, 54, .92), rgba(16, 17, 30, .94));
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(53, 215, 255, .28), 0 0 28px rgba(53, 215, 255, .14);
}
:root[data-theme="dark"] .project-card[data-cat="socialni"] { box-shadow: 0 16px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 45, 158, .28), 0 0 28px rgba(255, 45, 158, .14); }
:root[data-theme="dark"] .project-card[data-cat="weby"] { box-shadow: 0 16px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(53, 215, 255, .28), 0 0 28px rgba(53, 215, 255, .14); }
:root[data-theme="dark"] .project-card[data-cat="vlastni"] { box-shadow: 0 16px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(164, 102, 255, .28), 0 0 28px rgba(164, 102, 255, .14); }
:root[data-theme="dark"] .project-card h3 { color: var(--night-ink); }
:root[data-theme="dark"] .project-card__desc { color: var(--night-text); }
:root[data-theme="dark"] .project-card__cta--soon { color: var(--night-muted); }
:root[data-theme="dark"] .project-card__tag { color: var(--neon-cyan); }
:root[data-theme="dark"] .project-card[data-cat="socialni"] .project-card__tag { color: var(--neon-pink); }
:root[data-theme="dark"] .project-card[data-cat="weby"] .project-card__tag { color: #4ADE80; }
:root[data-theme="dark"] .project-card[data-cat="vlastni"] .project-card__tag { color: var(--neon-purple); }
:root[data-theme="dark"] .glass-blob {
  background: linear-gradient(150deg, rgba(255, 45, 158, .92) 0%, rgba(164, 102, 255, .9) 45%, rgba(53, 215, 255, .88) 100%);
  box-shadow:
    inset 10px 12px 22px rgba(255, 255, 255, .35),
    inset -14px -18px 30px rgba(60, 0, 90, .55),
    0 0 40px rgba(255, 45, 158, .35);
}
:root[data-theme="dark"] .glass-blob::after {
  background: linear-gradient(150deg, rgba(255, 255, 255, .5), rgba(200, 160, 255, .35));
}

/* manifest: text a korunka přímo na ploše */
:root[data-theme="dark"] .manifesto__text { color: var(--night-ink); }
:root[data-theme="dark"] .manifesto__crown { color: var(--neon-purple); filter: drop-shadow(0 0 10px rgba(164, 102, 255, .6)); will-change: transform; }
:root[data-theme="dark"] .manifesto__spray { filter: drop-shadow(0 0 24px rgba(255, 45, 158, .45)) drop-shadow(0 18px 22px rgba(0, 0, 0, .5)); will-change: transform; }

/* O mně: text (mimo fotku a nálepku) je přímo na ploše, korunka svítí */
:root[data-theme="dark"] .about__text .eyebrow { color: var(--night-muted); }
:root[data-theme="dark"] .about__text h2 { color: var(--night-ink); }
:root[data-theme="dark"] .about__text > p:not(.eyebrow) { color: var(--night-text); }
:root[data-theme="dark"] .about__text strong { color: var(--night-ink); }
:root[data-theme="dark"] .about__crown { color: var(--neon-pink); filter: drop-shadow(0 0 10px rgba(255, 45, 158, .6)); }

/* patička: uzavřená výstražnou páskou, X a klikyhák svítí neonem */
:root[data-theme="dark"] .footer-panel {
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 45, 158, .18);
}
:root[data-theme="dark"] .site-footer::before {
  content: ""; display: block; height: 10px; margin: 0 0 22px;
  background: repeating-linear-gradient(-45deg, #0A0A0E 0 10px, var(--neon-yellow) 10px 20px);
}
:root[data-theme="dark"] .footer__squiggle { color: var(--neon-cyan); filter: drop-shadow(0 0 8px rgba(53, 215, 255, .6)); }
:root[data-theme="dark"] .footer__x { filter: drop-shadow(0 0 22px rgba(255, 45, 158, .5)) drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); will-change: transform; }

/* focus kroužek musí jít vidět i na černé ploše (na bílých kartách ho
   doplňuje ten tmavý halo stín, viz box-shadow) */
:root[data-theme="dark"] :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .55);
}

/* ---------- Responzivita -------------------------------------------------- */
@media (max-width: 1340px) {
  .hero__grid { grid-template-columns: 520px 1fr; }
  .hero__computer-wrap { width: 100%; max-width: 640px; }
  .hero__art { margin-right: 0; }
  .hero__burst { left: auto; right: 34%; }
  .hero__star { right: 0; }
  .manifesto__crown { left: 24px; }
  .manifesto__spray { right: 20px; width: 170px; }
  .contact__skate { left: -64px; }
}

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 600px; }
  .hero__art { margin: 0 auto; max-width: 620px; width: 100%; }
  .hero__computer-wrap { margin: 40px auto 0; }
  .hero__burst { top: -30px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* pod 1100px není v hlavičce dost místa pro nadpis i filtr vedle sebe
     (přetéká na 2 řádky), takže mizí i dekorace mezi nimi */
  .projects-head__blob { display: none; }
  .dark-cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 482px; }
  .manifesto__spray { top: auto; bottom: -10px; width: 130px; }
  .manifesto__crown { width: 64px; height: 58px; }
  .contact__card { padding: 40px 72px 40px 200px; text-align: left; }
  .contact__smile { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .know-grid { grid-template-columns: 1fr; }
  .know-card { min-height: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding: 16px 0 10px; }
  .logo { font-size: 18px; }
  .menu-btn { height: 44px; padding: 0 16px; gap: 10px; font-size: 14px; }
  .nav__actions { gap: 8px; }
  .theme-toggle { width: 44px; height: 44px; }
  .theme-toggle .icon { width: 20px; height: 20px; }

  .hero { padding-top: 24px; }
  .hero__jsem { font-size: 32px; margin-left: -4px; }
  .hero__word { width: 100%; margin-left: -6px; }
  .hero__crown { width: 15%; height: auto; aspect-ratio: 64 / 56; left: 74%; top: -30%; }
  .hero__smile { display: none; }
  /* na úzkém displeji je "Kreativec" skoro přes celou šířku, takže na
     panáčka vlevo od K nezbývá tolik místa navíc — přisune se blíž,
     ať zůstane celý vidět, ne napůl uříznutý za okrajem. */
  .hero__sprayer { left: -6%; width: 10%; }
  .hero__lead { font-size: 16.5px; }
  /* na mobilu je rozdíl ve výšce nápisu menší než na desktopu, takže i
     rozestup se rozpůlí méně (viz stejné zdůvodnění výš u :root[data-theme]) */
  :root[data-theme="light"] .hero__lead { margin-top: 19px; }
  :root[data-theme="dark"] .hero__lead { margin-top: 5px; }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { min-width: 0; flex: 1 1 auto; padding: 0 22px; }
  .hero__burst { width: 56px; height: 50px; top: -8px; }
  .hero__star { width: 40px; height: 40px; top: 30%; }

  .section { padding-bottom: 64px; }
  .section-head h2 { font-size: 36px; }
  .brush--long { width: 240px; }

  .thing-dark { min-height: 0; }
  .thing-dark { padding-top: 124px; }
  .thing-dark:has(.thing-dark__cursor) { padding-top: 196px; }
  .thing-dark .pill--purple { left: 20px; right: auto; top: 66px; height: 34px; padding: 0 14px; font-size: 13px; }
  .thing-dark__cursor { width: 88px; top: 96px; right: 18px; }
  .thing-dark__dome { width: 132px; top: 12px; right: 8px; }
  .thing-dark--studio .thing-dark__text { max-width: none; }
  .thing-dark__headline { font-size: 21px; margin-left: 4px; }
  .thing-dark__text { margin-left: 4px; margin-bottom: 22px; }
  .thing-dark__chip { padding: 18px 18px 20px; }
  .thing-dark__text { font-size: 14.5px; }
  .projects-grid { grid-template-columns: 1fr; margin-bottom: 64px; }
  .project-gallery { grid-template-columns: 1fr; }
  .thing-dark__chip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mini-card { padding: 20px; }
  .mini-card h3 { font-size: 19px; }

  .manifesto { padding: 70px var(--gutter) 176px; gap: 26px; }
  .manifesto__text { font-size: 22px; }
  .manifesto__crown { left: 50%; top: -46px; margin-left: -25px; width: 50px; height: 46px; }
  .manifesto__spray { right: 8px; bottom: 8px; width: 100px; }

  .know-card { padding: 24px; }

  .about__text h2 { font-size: 32px; padding-right: 60px; }
  .about__crown { right: 0; width: 56px; height: 54px; }
  .about__sticker { font-size: 21px; left: 16px; }

  .contact__card { padding: 150px 22px 32px; text-align: center; }
  .contact__card h2 { font-size: 30px; }
  .contact__megaphone { width: 140px; left: 50%; top: 4px; margin-left: -70px; }
  .contact__skate { width: 86px; left: -46px; bottom: -34px; }

  .footer-panel { padding: 30px 24px 22px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-cta p br { display: none; }
  .footer-bottom { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer__squiggle { display: none; }
  .footer__x { width: 70px; top: -30px; right: -18px; }
}


/* ---------- Právní stránky, patička, lišty --------------------------------- */
.legal { max-width: 720px; }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--text); }
.legal ul { padding-left: 22px; display: grid; gap: 12px; }
.legal a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .legal h2 { color: var(--night-ink); }
:root[data-theme="dark"] .legal p, :root[data-theme="dark"] .legal li { color: var(--night-text); }
:root[data-theme="dark"] .legal strong { color: var(--night-ink); }
:root[data-theme="dark"] .legal a { color: var(--neon-cyan); }

.footer-legal { display: inline-block; margin-left: 10px; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* plovoucí CTA jen na telefonu; s JS se objeví až po odscrollování z hero */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .sticky-cta {
    display: inline-flex; position: fixed; z-index: 60; left: 16px; right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    justify-content: center; height: 52px;
    box-shadow: 0 14px 28px rgba(247, 90, 170, .4);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .js .sticky-cta:not(.is-visible) { transform: translateY(140%); opacity: 0; pointer-events: none; }
}


/* načítání obrázků: jemný nájezd místo skoku; zapíná se z JS, bez JS se nic neschová */
.img-fade img[loading="lazy"]:not(.is-loaded) { opacity: 0; }
.img-fade img[loading="lazy"] { transition: opacity .5s ease; }


/* ---------- Časté otázky --------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  border-radius: 20px; padding: 0 24px;
  background: linear-gradient(160deg, rgba(246, 251, 255, .92), rgba(228, 243, 253, .8));
  border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 26px rgba(29, 84, 150, .12);
}
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 36px 20px 0;
  font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  font-size: 26px; font-weight: 500; color: var(--pink-deep); transition: rotate .2s var(--ease);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.faq-item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
:root[data-theme="dark"] .faq-item {
  background: linear-gradient(160deg, rgba(30, 32, 54, .92), rgba(16, 17, 30, .94));
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4), 0 0 0 1px rgba(164, 102, 255, .28);
}
:root[data-theme="dark"] .faq-item summary { color: var(--night-ink); }
:root[data-theme="dark"] .faq-item p { color: var(--night-text); }
:root[data-theme="dark"] .faq-item summary::after { color: var(--neon-pink); }

/* výška oblohy se po načtení zamkne (viz main.js), aby mraky neskákaly,
   když se na stránce něco rozbalí (FAQ) */
.sky-fixed .sky { bottom: auto; height: var(--sky-h); }
