/* Ownit web — designový jazyk převzatý z kyberlekce.cz (tokeny, typografie, tvary) */

:root {
  --paper: #ffffff;
  --cream-50: #fdfaf6;
  --cream-100: #fdf6ef;
  --cream-200: #f8ead9;
  --cream-300: #f0d8bf;
  --ink: #1b0c1b;
  --ink-70: #5b4a59;
  --ink-50: #766875;
  --line: #e8e0e4;
  --line-strong: #d6cbd3;
  --plum-700: #41203f;
  --plum-800: #2d152c;
  --plum-900: #1b0c1b;
  --red-400: #f0604f;
  --red-500: #e33e2b;
  --red-600: #cf2d1c;
  --focus: #2d6cdf;

  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;

  --shadow-base: 0 2px 4px rgba(27,12,27,.04), 0 12px 32px rgba(27,12,27,.07);
  --shadow-lg: 0 4px 8px rgba(27,12,27,.05), 0 24px 60px rgba(27,12,27,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-rise: cubic-bezier(.2,.8,.2,1);
  --gutter: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 560px) { body { font-size: 1rem; } }

::selection { background: var(--cream-200); color: var(--plum-800); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.028em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(var(--space-12), 7vw, 104px); }
.section--cream { background: var(--cream-50); border-block: 1px solid var(--line); }
.stack { display: grid; gap: var(--space-5); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50);
}
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--ink-70); max-width: 56ch; }
.muted { color: var(--ink-70); }
.caption { font-size: .8125rem; line-height: 1.5; font-weight: 500; color: var(--ink-50); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,246,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 24px rgba(27,12,27,.06); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px; margin-right: auto;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand__badge {
  margin-left: 4px; padding: 3px 9px;
  background: var(--cream-200); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--plum-700);
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 500; color: var(--ink-70);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--cream-100); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 11px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.2;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease),
              transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: transform .2s var(--ease); }
.btn:hover > svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { background: var(--red-500); color: #fff; box-shadow: 0 2px 10px rgba(227,62,43,.22); }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 4px 16px rgba(227,62,43,.3); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--cream-100); border-color: var(--ink-50); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream-200); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- card ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.card:hover, .card--hover:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(27,12,27,.1);
  transform: translateY(-3px);
}
.card__num {
  display: inline-block;
  font-family: var(--font-mono); font-size: .8125rem;
  background: var(--cream-200); color: var(--plum-700);
  border-radius: var(--radius-md); padding: 4px 10px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(var(--space-12), 9vw, 112px) clamp(var(--space-10), 6vw, 88px); background: var(--cream-50); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: clamp(var(--space-8), 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--red-500); }
.hero__photo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: float-art 9s ease-in-out infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- panel (tmavý pás jako na webu kyberlekce) ---------- */
.panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-12));
  background: linear-gradient(118deg, var(--plum-900) 0%, var(--plum-700) 58%, #6b2330 100%);
  color: #fff; box-shadow: var(--shadow-base);
}
.panel::after {
  content: ""; position: absolute; inset: auto -60px -120px auto;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,62,43,.5), transparent 68%);
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel .lead { color: rgba(255,255,255,.78); }
.panel .eyebrow { color: rgba(255,255,255,.6); }

/* ---------- projekt: box ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.shot { display: grid; gap: var(--space-3); }
.shot figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--cream-100); }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.shot figure:hover img { transform: scale(1.03); }

.spec { display: grid; gap: 0; }
.spec li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec li:last-child { border-bottom: 0; }
.spec dt, .spec .k { color: var(--ink-50); font-size: .9375rem; }
.spec .v { font-family: var(--font-mono); font-size: .875rem; text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-50); padding-block: var(--space-10); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- pohyb ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes float-art { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-8px, 8px); } }
.rise { animation: rise .6s var(--ease-rise) both; animation-delay: calc(var(--i, 0) * 90ms); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-rise), transform .6s var(--ease-rise); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
