:root {
  --blue: #2200f2;
  --mint: #d6fcc6;
  --white: #ffffff;
  --pad: clamp(20px, 4vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 6px; }

/* ---------- hlavička ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 2.4vw, 40px) var(--pad);
}
.brand {
  text-decoration: none; font-weight: 500; letter-spacing: -0.04em;
  font-size: clamp(18px, 2vw, 32px); line-height: 1; white-space: nowrap;
  display: flex; align-items: center; gap: 0.35em;
}
.brand .bar { width: 2px; height: 1.25em; background: currentColor; display: inline-block; }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.icon-link { display: inline-flex; width: clamp(22px, 1.8vw, 30px); }
.icon-link svg { width: 100%; height: auto; fill: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 0.3em;
  background: var(--white); color: var(--blue);
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 500; letter-spacing: -0.03em; text-decoration: none;
  padding: 0.55em 1.1em; transition: background .2s, color .2s;
}
.pill:hover { background: var(--mint); }
.pill-sm { font-size: clamp(13px, 0.95vw, 16px); }
.pill-lg { font-size: clamp(20px, 2vw, 32px); padding: 0.5em 0.9em; }

@media (max-width: 640px) {
  .brand .role, .brand .bar { display: none; }
}

/* ---------- běžící nápis ---------- */
.ticker {
  overflow: hidden; padding: clamp(40px, 8vw, 120px) 0 clamp(20px, 4vw, 60px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.ticker-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: marquee 28s linear infinite;
}
.ticker-track span {
  font-size: clamp(72px, 15vw, 260px); font-weight: 500; letter-spacing: -0.04em;
  line-height: 1.1; padding-right: 0.45em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ručně kreslené tahy ---------- */
.scribble { position: relative; display: inline-block; }
.scribble svg {
  position: absolute; pointer-events: none; overflow: visible;
  fill: none; stroke: var(--mint); stroke-linecap: round; stroke-linejoin: round;
}
.scribble--under svg { left: -4%; width: 108%; bottom: -0.16em; height: 0.22em; }
.scribble--circle svg { left: -6%; top: -14%; width: 112%; height: 128%; }
.scribble--circle { z-index: 0; }

/* ---------- sekce ---------- */
.section { padding: clamp(48px, 8vw, 140px) var(--pad); }
.center { text-align: center; }
.display {
  margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: 0.98;
  font-size: clamp(42px, 10.5vw, 190px);
}
.display-bold { font-weight: 700; letter-spacing: -0.05em; }
.kicker { margin: 0 0 clamp(24px, 3vw, 48px); font-size: clamp(22px, 2.6vw, 44px); font-weight: 500; letter-spacing: -0.04em; }

/* o mně */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  gap: clamp(32px, 6vw, 120px);
}
.portrait {
  width: min(100%, 520px); aspect-ratio: 1 / 1; margin-left: auto;
  height: auto; object-fit: cover; background: #c9c6d6;
  clip-path: url(#blob);
}
.about h2 { font-size: clamp(44px, 6vw, 110px); margin-bottom: 0.3em; }
.about p { max-width: 38em; margin: 0 0 1.6em; }
.about strong { font-weight: 700; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .portrait { margin: 0 auto; width: min(80%, 420px); }
}

/* čáry přes celou šířku */
.divider { display: block; width: 100%; height: clamp(40px, 9vw, 160px); }
.divider path { fill: none; stroke: var(--mint); stroke-width: 6; vector-effect: non-scaling-stroke; }

/* ukázky */
.work-grid {
  list-style: none; margin: clamp(48px, 8vw, 120px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); row-gap: clamp(32px, 5vw, 90px);
  text-align: center;
}
.work-grid a {
  font-size: clamp(36px, 4.4vw, 80px); letter-spacing: -0.045em; line-height: 1.1;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em;
}
.work-grid a:hover { color: var(--mint); }
@media (max-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

/* výzva a patička */
.cta .lead { font-size: clamp(30px, 4.2vw, 76px); letter-spacing: -0.04em; margin: clamp(48px, 7vw, 120px) 0 0; line-height: 1.1; }
.site-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: center;
  padding: clamp(40px, 6vw, 100px) var(--pad) clamp(40px, 6vw, 90px);
}
.site-footer h2 { margin: 0 0 0.6em; font-size: clamp(36px, 4.4vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 700; }
@media (max-width: 640px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- kontakty ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start;
  padding-top: clamp(40px, 7vw, 120px);
}
.contact h1 { font-size: clamp(48px, 8vw, 150px); margin-bottom: 0.5em; }
.contact .intro p { max-width: 36em; }
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: clamp(16px, 1.25vw, 21px); letter-spacing: -0.02em; }
.form input, .form textarea {
  width: 100%; border: 0; background: var(--white); color: var(--blue);
  font: inherit; font-size: 18px; padding: 0.85em 1.2em; border-radius: 999px;
}
.form textarea { border-radius: 28px; min-height: 140px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 2px; }
.form .pill { justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 500; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-content: center; gap: clamp(32px, 4vw, 56px); text-align: center; justify-items: center; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
