/* ============================================================
   KUBÍK GROUP — ROZCESTNÍK
   Light theme · Deep Emerald accent · Forged Carbon tiles
   ============================================================ */

:root {
  /* Base — warm cream light */
  --bg:           #faf7f0;
  --bg-soft:      #f2ede0;
  --bg-card:      #ffffff;
  --ink:          #1a1612;
  --ink-soft:     #3a342d;
  --muted:        #6b6359;
  --dim:          #9a9284;
  --border:       #e3ddcc;
  --border-strong:#cdc5af;

  /* Premium accent — deep emerald */
  --accent:       #0f5142;
  --accent-hi:    #166a57;
  --accent-lo:    #083a2e;
  --accent-soft:  rgba(15, 81, 66, 0.08);
  --accent-glow:  rgba(15, 81, 66, 0.18);
  --accent-contrast: #ffffff;

  /* Forged carbon tones */
  --carbon-0: #0c0e12;
  --carbon-1: #121620;
  --carbon-2: #1a2029;
  --carbon-3: #242b37;
  --carbon-hi: rgba(255, 255, 255, 0.1);
  --carbon-deep: rgba(0, 0, 0, 0.35);

  /* Radii */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  /* Shadows — soft, elegant */
  --sh-sm: 0 2px 12px rgba(26, 22, 18, 0.04);
  --sh-md: 0 12px 36px rgba(26, 22, 18, 0.08);
  --sh-lg: 0 30px 80px rgba(26, 22, 18, 0.14);
  --sh-carbon: 0 30px 80px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(70% 55% at 16% 8%, rgba(182, 211, 236, 0.42), transparent 70%),
    radial-gradient(62% 48% at 88% 14%, rgba(206, 227, 244, 0.32), transparent 72%),
    radial-gradient(75% 58% at 54% 92%, rgba(210, 223, 235, 0.24), transparent 74%),
    radial-gradient(45% 35% at 48% 44%, rgba(226, 238, 248, 0.22), transparent 76%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(300deg, rgba(217, 231, 243, 0.26) 6%, rgba(217, 231, 243, 0) 40%),
    linear-gradient(155deg, #ffffff, #f8fbfe 55%, #f3f7fb);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ------------ Ambient: SVG blobs + dark radials + conic shadows (codex) ------------ */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1100'%3E%3Cpath d='M60 190C180 60 380 40 500 130C620 220 650 390 560 500C470 610 250 640 130 540C10 440 -60 310 60 190Z' fill='%2386a8c7' fill-opacity='0.14'/%3E%3Cpath d='M960 90C1110 10 1340 40 1460 170C1580 300 1540 500 1400 590C1260 680 1040 660 930 540C820 420 810 170 960 90Z' fill='%237d9fbe' fill-opacity='0.12'/%3E%3Cpath d='M430 700C560 610 780 620 890 740C1000 860 970 1020 830 1080C690 1140 470 1110 360 990C250 870 300 790 430 700Z' fill='%238ba9c5' fill-opacity='0.11'/%3E%3Cpath d='M1120 640C1240 560 1420 570 1510 680C1600 790 1570 950 1460 1020C1350 1090 1170 1080 1080 980C990 880 1000 720 1120 640Z' fill='%237a98b6' fill-opacity='0.1'/%3E%3C/svg%3E"),
    radial-gradient(58% 46% at 14% 24%, rgba(28, 43, 58, 0.14), transparent 74%),
    radial-gradient(44% 36% at 78% 28%, rgba(22, 35, 48, 0.12), transparent 77%),
    radial-gradient(42% 34% at 64% 76%, rgba(33, 48, 64, 0.11), transparent 79%),
    radial-gradient(34% 28% at 40% 16%, rgba(32, 47, 62, 0.1), transparent 78%),
    radial-gradient(30% 26% at 88% 80%, rgba(27, 40, 55, 0.09), transparent 80%),
    radial-gradient(26% 20% at 12% 72%, rgba(25, 37, 51, 0.08), transparent 82%),
    radial-gradient(24% 21% at 56% 18%, rgba(29, 43, 58, 0.08), transparent 82%),
    radial-gradient(28% 24% at 78% 50%, rgba(24, 37, 51, 0.08), transparent 83%),
    radial-gradient(22% 19% at 26% 52%, rgba(36, 50, 65, 0.07), transparent 84%),
    conic-gradient(
      from 212deg at 36% 52%,
      rgba(18, 29, 40, 0.18) 0deg,
      rgba(18, 29, 40, 0) 62deg,
      rgba(31, 46, 62, 0.16) 128deg,
      rgba(31, 46, 62, 0) 202deg,
      rgba(20, 33, 46, 0.17) 286deg,
      rgba(20, 33, 46, 0) 360deg
    ),
    conic-gradient(
      from 43deg at 74% 22%,
      rgba(40, 56, 72, 0.14) 0deg,
      rgba(40, 56, 72, 0) 74deg,
      rgba(19, 31, 43, 0.12) 142deg,
      rgba(19, 31, 43, 0) 228deg,
      rgba(37, 53, 70, 0.13) 300deg,
      rgba(37, 53, 70, 0) 360deg
    ),
    conic-gradient(
      from 286deg at 24% 78%,
      rgba(34, 49, 64, 0.12) 0deg,
      rgba(34, 49, 64, 0) 90deg,
      rgba(20, 33, 47, 0.11) 176deg,
      rgba(20, 33, 47, 0) 262deg,
      rgba(44, 60, 78, 0.11) 326deg,
      rgba(44, 60, 78, 0) 360deg
    );
  background-size:
    118% 118%,
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.2;
  filter: blur(0.8px) contrast(1.02);
  mask-image: radial-gradient(circle at center, black 68%, transparent 97%);
  -webkit-mask-image: radial-gradient(circle at center, black 68%, transparent 97%);
}

/* ------------ White highlights (codex body::after) ------------ */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(18% 16% at 24% 34%, rgba(255, 255, 255, 0.18), transparent 82%),
    radial-gradient(15% 13% at 72% 60%, rgba(255, 255, 255, 0.13), transparent 84%),
    radial-gradient(12% 11% at 42% 74%, rgba(255, 255, 255, 0.12), transparent 86%),
    radial-gradient(10% 9% at 82% 42%, rgba(255, 255, 255, 0.1), transparent 88%),
    radial-gradient(13% 12% at 14% 72%, rgba(255, 255, 255, 0.12), transparent 86%),
    radial-gradient(9% 8% at 58% 26%, rgba(255, 255, 255, 0.1), transparent 89%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.34;
}

/* ------------ Layout ------------ */
.page {
  min-height: 100vh;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 44px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 48px;
  align-content: start;
}

/* ------------ Header ------------ */
.rc-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.rc-logo-wrap {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  padding: 9px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
}

.rc-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.rc-company { min-width: 0; }

.rc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.rc-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.rc-brand {
  font-family: "Playfair Display", "Iowan Old Style", Palatino, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.9rem, 3.6vw, 2.95rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.rc-brand-suffix {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.62em;
  letter-spacing: 0;
}

.rc-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ------------ Intro ------------ */
.rc-intro { max-width: 760px; }

.rc-intro p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rc-intro-accent {
  font-style: italic;
  color: var(--accent);
}

/* ============================================================
   FORGED CARBON TILES
   Irregular shards · Deep charcoal base · Metallic sheen
   ============================================================ */
.rc-tiles {
  display: grid;
  /* 2 columns while Systems tile is hidden — change to repeat(3, ...) when it comes back */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

/* HTML5 hidden attribute must override .rc-tile's display: flex */
.rc-tile[hidden],
[hidden] { display: none !important; }

.rc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--carbon-0);
  background-color: var(--carbon-1);
  color: #e9ecf1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-carbon);
  transition:
    transform 0.55s cubic-bezier(0.22, 0.65, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.5s ease;
}

/* ---- Forged carbon base texture (irregular polygon shards) ---- */
.rc-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--carbon-1);
  background-image:
    /* Lighting sheen layer */
    radial-gradient(ellipse 70% 50% at 28% 18%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 45% at 82% 85%, rgba(0, 0, 0, 0.45), transparent 72%),
    radial-gradient(ellipse 30% 25% at 62% 42%, rgba(255, 255, 255, 0.05), transparent 78%);
  background-size: cover;
}

/* ---- Forged shards layer (SVG) ---- */
.rc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: normal;
}

/* Tile 1 — triangular shards */
.rc-tile:nth-child(1)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'><defs><linearGradient id='t1a' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(255,255,255,0.16)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t1b' x1='1' y1='0' x2='0' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.42)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient><linearGradient id='t1c' x1='0' y1='1' x2='1' y2='0'><stop offset='0' stop-color='rgba(255,255,255,0.1)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t1d' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.3)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient></defs><g stroke='rgba(0,0,0,0.55)' stroke-width='1.4'><polygon points='0,0 540,0 300,320' fill='url(%23t1a)'/><polygon points='0,0 300,320 0,540' fill='url(%23t1d)'/><polygon points='540,0 1000,0 760,300' fill='url(%23t1c)'/><polygon points='540,0 760,300 300,320' fill='url(%23t1b)'/><polygon points='0,540 300,320 430,1000' fill='url(%23t1a)'/><polygon points='300,320 760,300 620,1000' fill='url(%23t1b)'/><polygon points='300,320 620,1000 430,1000' fill='url(%23t1d)'/><polygon points='760,300 1000,0 1000,640' fill='url(%23t1c)'/><polygon points='620,1000 1000,640 1000,1000' fill='url(%23t1b)'/><polygon points='760,300 1000,640 620,1000' fill='url(%23t1a)'/><polygon points='0,540 430,1000 0,1000' fill='url(%23t1d)'/></g></svg>");
  background-size: cover;
  background-position: center;
}

/* Tile 2 — triangular shards (different layout) */
.rc-tile:nth-child(2)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'><defs><linearGradient id='t2a' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(255,255,255,0.15)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t2b' x1='1' y1='0' x2='0' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.44)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient><linearGradient id='t2c' x1='0' y1='1' x2='1' y2='0'><stop offset='0' stop-color='rgba(255,255,255,0.1)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t2d' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.32)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient></defs><g stroke='rgba(0,0,0,0.55)' stroke-width='1.4'><polygon points='0,0 640,0 120,330' fill='url(%23t2a)'/><polygon points='640,0 780,430 120,330' fill='url(%23t2b)'/><polygon points='640,0 1000,0 780,430' fill='url(%23t2c)'/><polygon points='1000,0 1000,580 780,430' fill='url(%23t2d)'/><polygon points='120,330 780,430 220,1000' fill='url(%23t2a)'/><polygon points='780,430 1000,580 1000,1000' fill='url(%23t2b)'/><polygon points='780,430 1000,1000 220,1000' fill='url(%23t2d)'/><polygon points='0,250 120,330 220,1000' fill='url(%23t2c)'/><polygon points='0,250 220,1000 0,1000' fill='url(%23t2b)'/><polygon points='0,0 120,330 0,250' fill='url(%23t2d)'/></g></svg>");
  background-size: cover;
  background-position: center;
}

/* Tile 3 — triangular shards (another unique layout) */
.rc-tile:nth-child(3)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'><defs><linearGradient id='t3a' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(255,255,255,0.15)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t3b' x1='1' y1='0' x2='0' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.42)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient><linearGradient id='t3c' x1='0' y1='1' x2='1' y2='0'><stop offset='0' stop-color='rgba(255,255,255,0.09)'/><stop offset='1' stop-color='rgba(255,255,255,0)'/></linearGradient><linearGradient id='t3d' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='rgba(0,0,0,0.34)'/><stop offset='1' stop-color='rgba(0,0,0,0)'/></linearGradient></defs><g stroke='rgba(0,0,0,0.55)' stroke-width='1.4'><polygon points='0,0 420,0 240,280' fill='url(%23t3a)'/><polygon points='420,0 760,0 600,320' fill='url(%23t3b)'/><polygon points='760,0 1000,0 1000,300' fill='url(%23t3c)'/><polygon points='420,0 600,320 240,280' fill='url(%23t3d)'/><polygon points='600,320 760,0 1000,300' fill='url(%23t3a)'/><polygon points='240,280 600,320 420,680' fill='url(%23t3b)'/><polygon points='0,520 240,280 420,680' fill='url(%23t3a)'/><polygon points='0,0 240,280 0,520' fill='url(%23t3d)'/><polygon points='600,320 1000,300 820,700' fill='url(%23t3c)'/><polygon points='600,320 820,700 420,680' fill='url(%23t3d)'/><polygon points='420,680 820,700 620,1000' fill='url(%23t3a)'/><polygon points='0,520 420,680 220,1000' fill='url(%23t3b)'/><polygon points='820,700 1000,300 1000,1000' fill='url(%23t3b)'/><polygon points='820,700 1000,1000 620,1000' fill='url(%23t3d)'/><polygon points='420,680 620,1000 220,1000' fill='url(%23t3c)'/><polygon points='0,520 220,1000 0,1000' fill='url(%23t3d)'/></g></svg>");
  background-size: cover;
  background-position: center;
}

/* ---- Subtle clear-coat gloss on top ---- */
.rc-tile-gloss {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(305deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 30%);
  mix-blend-mode: screen;
  opacity: 0.85;
  transition: opacity 0.45s ease;
}

/* ---- Accent edge glow on hover ---- */
.rc-tile:hover,
.rc-tile:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(15, 81, 66, 0.5),
    0 0 40px rgba(15, 81, 66, 0.22);
}

.rc-tile:hover .rc-tile-gloss,
.rc-tile:focus-visible .rc-tile-gloss { opacity: 1; }

/* ---- Tile content ---- */
.rc-tile-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

/* Pulsing dot indicator — replaces tile numbers (kept for backward compat) */
.rc-tile-num,
.rc-tile-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow:
    0 0 0 4px rgba(22, 106, 87, 0.18),
    0 0 18px rgba(22, 106, 87, 0.55);
  animation: rc-tile-dot-pulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes rc-tile-dot-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(22, 106, 87, 0.18),
      0 0 18px rgba(22, 106, 87, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(22, 106, 87, 0.06),
      0 0 26px rgba(22, 106, 87, 0.7);
    transform: scale(1.18);
  }
}

.rc-tile-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c7cbd4;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.rc-tile-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.rc-tile h2 {
  font-family: "Playfair Display", serif;
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: clamp(1.7rem, 2.4vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: #f5f7fa;
}

.rc-tile p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #b2b8c4;
}

.rc-tile-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.94rem;
  color: #dfe3ea;
  transition: color 0.3s ease;
}

.rc-tile-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(22, 106, 87, 0.25);
  border: 1px solid rgba(22, 106, 87, 0.5);
  color: #9fe6cc;
  font-size: 1.1rem;
  transition: transform 0.45s cubic-bezier(0.22, 0.65, 0.2, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rc-tile:hover .rc-tile-arrow,
.rc-tile:focus-visible .rc-tile-arrow {
  transform: translateX(8px);
  background: var(--accent);
  border-color: var(--accent-hi);
  color: #ffffff;
}

.rc-tile:hover .rc-tile-foot,
.rc-tile:focus-visible .rc-tile-foot { color: #ffffff; }

/* ------------ Footer ------------ */
.rc-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.rc-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--dim);
}

.rc-footer-row a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rc-footer-row a:hover,
.rc-footer-row a:focus-visible {
  color: var(--accent);
}

.rc-dot { color: var(--dim); opacity: 0.6; }

/* ------------ Reveal ------------ */
.reveal {
  opacity: 1;
  transform: translateY(20px);
  transition: transform 0.85s cubic-bezier(0.22, 0.65, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  transform: none;
  will-change: auto;
}

/* ------------ Focus ------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------ Responsive ------------ */
@media (max-width: 980px) {
  .rc-tiles { grid-template-columns: 1fr; }
  .rc-tile { aspect-ratio: auto; min-height: 320px; }

  /* Mobile perf: skrýt fixed bg vrstvy s mix-blend-mode + filter:blur (drahé re-rasterize) */
  .bg-ambient,
  .bg-grain { display: none; }
  .page { width: min(1220px, calc(100% - 28px)); }
}

@media (max-width: 560px) {
  .page { padding: 36px 0 28px; gap: 32px; }
  .rc-header { grid-template-columns: 1fr; gap: 16px; }
  .rc-logo-wrap { width: 60px; height: 60px; border-radius: 16px; }
  .rc-tile { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Cookie consent banner — shared component across all KG sites
   Uses --bg-card / --ink / --accent so it adapts to each site's theme
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(440px, calc(100% - 40px));
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--bg-card, #ffffff);
  color: var(--ink, #1a1612);
  border: 1px solid var(--border-strong, rgba(0, 0, 0, 0.12));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.65, 0.2, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-icon {
  font-size: 1.55rem;
  line-height: 1;
  margin-top: 2px;
}

.cookie-banner-body {
  grid-column: 2;
  display: grid;
  gap: 6px;
}

.cookie-banner-body strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink, #1a1612);
  letter-spacing: -0.005em;
}

.cookie-banner-body p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  color: var(--muted, #6b6359);
}

.cookie-banner-body em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent, #0f5142);
}

.cookie-banner-btn {
  grid-column: 2;
  margin-top: 6px;
  justify-self: start;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #0f5142);
  color: var(--accent-contrast, #ffffff);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner-btn:hover,
.cookie-banner-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-hi, #166a57);
  outline: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Lightweight mode for the root page when shown inside the Web Studio preview. */
html.is-preview-frame .bg-ambient,
html.is-preview-frame .bg-grain,
html.is-preview-frame body::before,
html.is-preview-frame body::after,
html.is-preview-frame .cookie-banner {
  display: none !important;
}

html.is-preview-frame *,
html.is-preview-frame *::before,
html.is-preview-frame *::after {
  animation: none !important;
  transition: none !important;
}

html.is-preview-frame .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 540px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px 20px;
  }
}
