/* Práce / Úvod — page-specific styles
   (sits on top of colors_and_type.css + kit.css + contact.css) */

/* ── Hero (centered, like Kontakt) ────────────────────────── */
.wk-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(132px, 18vw, 210px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 70px);
}
.wk-hero-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.038em;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
}
.wk-hero-headline .ct-hero-dot { color: var(--color-red); }

/* ── Generic section frame ───────────────────────────────── */
.wk-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 40px);
}
.wk-section--tight { padding-top: clamp(24px, 4vw, 48px); }

.wk-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.wk-section-title {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--color-ink); margin: 0;
}
.wk-section-title .ct-hero-dot { color: var(--color-red); }

/* ── About ───────────────────────────────────────────────── */
.wk-about-grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 76px); align-items: start;
}
@media (max-width: 760px) { .wk-about-grid { grid-template-columns: 1fr; gap: 36px; } }
.wk-about-photo image-slot {
  display: block; width: 100%;
  height: clamp(360px, 46vw, 560px);
  box-shadow: 0 30px 60px -34px rgba(29, 30, 24, 0.32);
}
@media (min-width: 761px) { .wk-about-photo { position: sticky; top: 104px; } }
.wk-about-lead {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18; letter-spacing: -0.02em;
  color: var(--color-ink); margin: 0 0 22px;
  text-wrap: pretty;
}
.wk-about-p {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.6; color: var(--neutral-700);
  max-width: 54ch; margin: 0 0 16px;
}
.wk-about-aside { display: grid; gap: 14px; }
.wk-about-aside .ct-eyebrow { margin-bottom: 4px; }
.wk-about-serv-label { margin: clamp(26px, 3vw, 34px) 0 16px; }
.wk-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wk-services li {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -0.01em;
  color: var(--color-ink);
  display: flex; align-items: center; gap: 12px;
}
.wk-services-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--color-red); flex: 0 0 auto; }
.wk-about-btn { margin-top: clamp(28px, 3.4vw, 38px); }

/* ── Project grid ────────────────────────────────────────── */
.wk-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.4vw, 52px) clamp(20px, 3vw, 36px);
}
@media (max-width: 720px) { .wk-grid { grid-template-columns: 1fr; } }

.wk-card { display: grid; gap: 16px; text-decoration: none; color: inherit; }
.wk-card-thumb {
  aspect-ratio: 7 / 5;
  border-radius: 12px;
  border: 0;
  padding: clamp(26px, 3.2vw, 44px);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.wk-card:hover .wk-card-thumb {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -30px rgba(29, 30, 24, 0.5);
}
.wk-card-wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 0.88; letter-spacing: -0.04em;
  white-space: pre-line;
}

/* Fillable photo per card — empty state keeps the colored block + wordmark,
   a dropped photo covers the whole thumb. Drag an image on, or (when editing)
   click to browse. */
.wk-card-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.wk-card-slot::part(frame) { background: transparent; border-radius: 12px; }
.wk-card-slot::part(ring) { display: none; }
.wk-card-slot::part(empty) {
  color: rgba(245, 240, 234, 0.92);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.wk-card-slot--ink::part(empty) { color: rgba(29, 30, 24, 0.7); }
.wk-card:hover .wk-card-slot:not([data-filled])::part(empty) { opacity: 1; }
/* once a photo is dropped, the wordmark gives way to the image */
.wk-card-slot[data-filled] ~ .wk-card-wordmark { display: none; }

.wk-card-info { display: grid; gap: 7px; }
.wk-card-cat {
  font-family: var(--font-accent);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neutral-600);
}
.wk-card-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--color-ink);
  display: inline-flex; align-items: center; gap: 9px;
  transition: color var(--dur-fast) var(--ease-out);
}
.wk-card:hover .wk-card-title { color: var(--color-red); }
.wk-card-title .ct-ur { color: var(--neutral-500); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.wk-card:hover .wk-card-title .ct-ur { transform: translate(3px, -3px); color: var(--color-red); }

/* ── Reviews (Google) — auto-scrolling marquee ───────────── */
.wk-reviews {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 104px);
  overflow: hidden;
}
.wk-reviews-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: 0 clamp(20px, 5vw, 40px);
}
.wk-reviews-score {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: var(--fs-small);
  color: var(--neutral-600);
}
.wk-reviews-score strong {
  font-family: var(--font-display); font-weight: var(--weight-black);
  font-size: 22px; letter-spacing: -0.02em; color: var(--color-ink);
}
.wk-reviews-score > span { max-width: 28ch; line-height: 1.4; }
.wk-google { flex: 0 0 auto; }
.wk-stars { display: inline-flex; gap: 2px; color: var(--color-red); }

.wk-marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.wk-marquee-track {
  display: flex; gap: clamp(16px, 2vw, 24px);
  width: max-content;
  padding: 6px clamp(20px, 5vw, 40px);
  animation: wk-marquee 56s linear infinite;
}
.wk-marquee:hover .wk-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .wk-marquee-track { animation: none; flex-wrap: nowrap; overflow-x: auto; }
}
@keyframes wk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wk-review {
  flex: 0 0 clamp(280px, 30vw, 360px);
  background: var(--color-white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: clamp(22px, 2.4vw, 28px);
  margin: 0;
  display: grid; gap: 16px; align-content: start;
  box-shadow: 0 1px 0 rgba(29,30,24,0.03), 0 22px 40px -32px rgba(29,30,24,0.22);
}
.wk-review-top { display: flex; align-items: center; justify-content: space-between; }
.wk-review-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55; color: var(--neutral-800);
  margin: 0; text-wrap: pretty;
}
.wk-review-by { display: flex; align-items: center; gap: 12px; }
.wk-review-avatar {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 999px;
  background: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 17px; color: var(--color-ink);
}
.wk-review-id { display: grid; gap: 2px; line-height: 1.2; }
.wk-review-id strong {
  font-family: var(--font-body); font-weight: var(--weight-bold);
  font-size: var(--fs-small); color: var(--color-ink);
}
.wk-review-id > span {
  font-family: var(--font-accent); font-size: 12px;
  color: var(--neutral-500); letter-spacing: 0.01em;
}

/* ── Bottom CTA (red block) ──────────────────────────────── */
.wk-cta {
  position: relative;
  text-align: center;
  padding: clamp(96px, 15vw, 200px) clamp(20px, 5vw, 40px) clamp(124px, 18vw, 236px);
  margin-top: clamp(40px, 6vw, 80px);
  overflow: visible;
  background: transparent;
}
@keyframes mk-aurora-drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(1.4%, -1%, 0) scale(1.025); }
  50% { transform: translate3d(-1%, 1.4%, 0) scale(1.015); }
  75% { transform: translate3d(1%, 1%, 0) scale(1.02); }
}
.wk-cta-aurora {
  position: absolute; left: 0; right: 0; bottom: -132px; height: 62vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 78% at 20% 116%, rgba(231, 61, 59, 0.42), transparent 66%),
    radial-gradient(46% 72% at 52% 122%, rgba(54, 123, 237, 0.30), transparent 68%),
    radial-gradient(42% 66% at 82% 114%, rgba(231, 61, 59, 0.30), transparent 66%),
    radial-gradient(40% 60% at 96% 96%, rgba(54, 123, 237, 0.22), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 38%, transparent 88%);
          mask-image: linear-gradient(to top, #000 0%, #000 38%, transparent 88%);
  filter: saturate(108%);
}
.wk-cta-inner { position: relative; z-index: 1; }
.pr-cta--bleed { overflow: visible; }
.pr-cta--bleed .wk-cta-aurora { height: 260%; }
.wk-cta .ct-eyebrow { color: var(--neutral-600); }
.wk-cta-headline {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1; letter-spacing: -0.03em;
  margin: 14px auto 0; color: var(--color-ink);
  text-wrap: balance;
}
.wk-cta-headline .ct-hero-dot { color: var(--color-red); }
.wk-cta-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55; color: var(--neutral-700);
  max-width: 44ch; margin: 22px auto 0;
}
.wk-cta-btn {
  font-family: var(--font-body);
  font-size: var(--fs-body); font-weight: var(--weight-medium);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: clamp(28px, 4vw, 40px);
  padding: 16px 28px; border-radius: 999px;
  background: var(--color-ink); color: var(--color-cream);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.wk-cta-btn:hover { background: var(--color-red); color: var(--color-cream); }
.wk-cta-btn:active { transform: scale(0.97); }
.wk-cta-btn .ct-ur { transition: transform var(--dur-fast) var(--ease-out); }
.wk-cta-btn:hover .ct-ur { transform: translate(2px, -2px); }

/* ── Motion: scroll reveals ──────────────────────────────── */
/* Base state is fully visible — hidden state only applies under .anim-on,
   so print / reduced-motion / no-JS always show content. */
.ct-page.anim-on .reveal {
  opacity: 0;
  transition: opacity var(--anim-dur, 560ms) var(--ease-out),
              transform var(--anim-dur, 560ms) var(--ease-out);
  transition-delay: calc(var(--rv-stagger, 90ms) * var(--rv-i, 0));
  will-change: opacity, transform;
}
.ct-page.anim-on.rv-slide .reveal { transform: translateY(20px); }
.ct-page.anim-on.rv-scale .reveal { transform: scale(0.965); }
.ct-page.anim-on.rv-fade  .reveal { transform: none; }
.ct-page.anim-on .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ct-page .reveal { opacity: 1 !important; transform: none !important; }
}
.ct-badge.no-spin .ct-badge-spin { animation: none; }

/* ── Tweaks panel ────────────────────────────────────────── */
.tw-panel {
  position: fixed; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  width: 270px; z-index: 60;
  background: var(--color-white);
  border: 1.5px solid var(--color-ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--color-ink);
  font-family: var(--font-body); color: var(--color-ink);
  overflow: hidden;
  animation: tw-in var(--dur-base) var(--ease-out);
}
.tw-panel[hidden] { display: none; }
@keyframes tw-in { from { transform: translateY(10px); } to { transform: none; } }
.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1.5px solid var(--color-ink);
  background: var(--color-cream);
}
.tw-title { font-family: var(--font-display); font-weight: var(--weight-black); font-size: 16px; letter-spacing: -0.01em; }
.tw-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: 0; cursor: pointer;
  background: transparent; color: var(--color-ink); border-radius: 6px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.tw-x:hover { color: var(--color-red); background: rgba(231, 61, 59, 0.08); }
.tw-body { padding: 15px 14px; display: grid; gap: 17px; }
.tw-row { display: grid; gap: 9px; }
.tw-label, .tw-switch > span:first-child {
  font-family: var(--font-accent); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-600);
}
.tw-label { display: flex; align-items: baseline; justify-content: space-between; }
.tw-label em { font-style: normal; font-weight: 600; color: var(--color-ink); letter-spacing: 0; }

/* switch */
.tw-switch { grid-template-columns: 1fr auto; align-items: center; cursor: pointer; }
.tw-switch input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.tw-track {
  width: 38px; height: 22px; border-radius: 999px; background: var(--neutral-300);
  position: relative; transition: background var(--dur-base) var(--ease-out); flex: 0 0 auto;
}
.tw-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: transform var(--dur-base) var(--ease-out);
}
.tw-switch input:checked + .tw-track { background: var(--color-red); }
.tw-switch input:checked + .tw-track::after { transform: translateX(16px); }
.tw-switch input:focus-visible + .tw-track { outline: 2px solid var(--color-red); outline-offset: 3px; }

/* segmented */
.tw-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.tw-seg button {
  font-family: var(--font-body); font-size: 12px; padding: 8px 4px;
  border: 1px solid var(--neutral-300); background: var(--color-white);
  color: var(--neutral-700); border-radius: 6px; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.tw-seg button:hover { border-color: var(--color-ink); color: var(--color-ink); }
.tw-seg button.is-on { background: var(--color-ink); color: var(--color-cream); border-color: var(--color-ink); }

/* range */
.tw-row input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: var(--neutral-300); cursor: pointer;
}
.tw-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 999px;
  background: var(--color-red); border: 2px solid var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3); cursor: pointer;
}
.tw-row input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px; background: var(--color-red);
  border: 2px solid var(--color-white); box-shadow: 0 1px 3px rgba(0,0,0,0.3); cursor: pointer;
}
.tw-row input[type=range]:focus-visible { outline: 2px solid var(--color-red); outline-offset: 4px; }
