/* XLP.cz – Design System
   X (Kontext) Blue · L (Logika) Gray · P (Podstata) Teal
   Dark Mode First
*/

:root {
  /* Brand */
  --x-blue: #3b82f6;
  --x-blue-600: #2563eb;
  --l-gray: #9ca3af;
  --l-gray-300: #d1d5db;
  --p-teal: #2dd4bf;
  --p-teal-500: #14b8a6;

  /* Surfaces (Dark) */
  --bg: #020617;
  --bg-elev: #0f172a;
  --bg-elev-2: #1e293b;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  /* Text */
  --fg: #ffffff;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;

  /* States */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #eab308;

  /* Typography */
  --font-sans: 'Kanit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Glow */
  --glow-teal: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 10px 40px -10px rgba(45, 212, 191, 0.45);
  --glow-blue: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 10px 40px -10px rgba(59, 130, 246, 0.45);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-elev-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-dim: #64748b;

  /* Premium Light Theme Brand Palette */
  --x-blue: #1d4ed8;
  /* Sytá královská modrá */
  --x-blue-600: #1e40af;
  --l-gray: #4b5563;
  /* Břidlicová šedá */
  --l-gray-300: #374151;
  --p-teal: #0f766e;
  /* Elegantní hluboká tyrkysová */
  --p-teal-500: #0d9488;

  /* Úprava primárního tlačítka pro světlý režim */
  --btn-primary-fg: #ffffff;
  --btn-primary-bg-start: #0d9488;
  --btn-primary-bg-end: #0f766e;
  --btn-primary-glow: 0 0 0 1px rgba(15, 118, 110, 0.15), 0 8px 24px -8px rgba(15, 118, 110, 0.35);
  --btn-primary-glow-hover: 0 0 0 1px rgba(15, 118, 110, 0.3), 0 14px 32px -8px rgba(15, 118, 110, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}

/* Ambient background — subtle gradient blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 90%, rgba(45, 212, 191, 0.08), transparent 60%);
  z-index: 0;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 90%, rgba(45, 212, 191, 0.06), transparent 60%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  font-weight: 500;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

p {
  color: var(--fg-muted);
  text-wrap: pretty;
}

a {
  color: var(--p-teal);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--x-blue);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "calt" 0;
  letter-spacing: -0.01em;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
  position: relative;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header .logo {
  position: relative;
  width: 86px;
  height: 80px;
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
  z-index: 10;
  text-decoration: none;
}

.site-header .logo-mark {
  position: absolute;
  top: 5px;
  left: 0;
  width: 86px;
  height: 86px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  pointer-events: auto;
}

.site-header .logo:hover .logo-mark {
  transform: scale(1.03) translateY(-1px);
  filter: drop-shadow(0 12px 24px rgba(45, 212, 191, 0.25));
}

@media (max-width: 640px) {
  .site-header .logo-mark {
    left: -10px;
  }
}

.logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--fg);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: block;
}

.logo-mark-lg {
  width: 56px;
  height: 56px;
}

.logo .x {
  color: var(--x-blue);
}

.logo .l {
  background: linear-gradient(135deg, var(--l-gray-300), var(--l-gray));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo .p {
  color: var(--p-teal);
}

.logo .dot {
  color: var(--fg-dim);
  margin: 0 1px;
}

.logo .tld {
  color: var(--fg-muted);
  font-weight: 500;
}

nav.primary {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav.primary a {
  color: var(--fg-muted);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

nav.primary a:hover {
  color: var(--fg);
  background: var(--bg-elev);
}

nav.primary a.active {
  color: var(--fg);
}

nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, var(--x-blue), var(--p-teal));
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: 10px;
  color: var(--fg-muted);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all .2s;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--p-teal);
}

.back-to-top,
.back-to-list {
  display: none;
  position: fixed;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 10px;
  color: var(--fg-muted);
  cursor: pointer;
  place-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, color .2s, border-color .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.back-to-top {
  right: 20px;
}

.back-to-list {
  left: 20px;
}

@media (max-width: 768px) {

  .back-to-top,
  .back-to-list {
    display: inline-grid;
  }
}

.back-to-top.visible,
.back-to-list.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-list:hover {
  color: var(--fg);
  border-color: var(--p-teal);
}

.phone-header-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: linear-gradient(135deg, var(--x-blue), var(--x-blue-600));
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all .2s;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 4px 12px -4px rgba(59, 130, 246, 0.55);
}

.phone-header-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 8px 20px -4px rgba(59, 130, 246, 0.7);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1180px) {
  nav.primary {
    display: none;
  }

  nav.primary.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-primary-bg-start, var(--p-teal)), var(--btn-primary-bg-end, var(--p-teal-500)));
  color: var(--btn-primary-fg, #042f2a);
  box-shadow: var(--btn-primary-glow, 0 0 0 1px rgba(45, 212, 191, 0.3), 0 8px 28px -8px rgba(45, 212, 191, 0.55));
}

/* Vyšší specificita (0-3-0) zajistí, že hover překryje transform:none z .reveal.in (0-2-0) */
.btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-primary-glow-hover, 0 0 0 1px rgba(45, 212, 191, 0.5), 0 14px 40px -8px rgba(45, 212, 191, 0.7));
  color: var(--btn-primary-fg, #042f2a);
}

.btn-blue {
  background: linear-gradient(135deg, var(--x-blue), var(--x-blue-600));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 8px 28px -8px rgba(59, 130, 246, 0.55);
}

.btn.btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 14px 40px -8px rgba(59, 130, 246, 0.7);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--p-teal);
  color: var(--p-teal);
}

/* Cards */
.card {
  background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Tag/eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--p-teal);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--p-teal) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--p-teal) 8%, transparent);
  margin-bottom: 16px;
  /* Zabraňuje překrývání diakritiky (např. Ř) */
}

.eyebrow.blue {
  color: var(--x-blue);
  border-color: color-mix(in oklab, var(--x-blue) 30%, transparent);
  background: color-mix(in oklab, var(--x-blue) 8%, transparent);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Section header */
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: 0;
  /* Reset margin, spacing zajišťuje gap gridu */
}

.hero-corner .eyebrow {
  margin-bottom: 0;
  /* Reset margin v rozích hero sekce */
}

.section-head p {
  font-size: 1.05rem;
  color: var(--fg-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .site-footer .footer-col-about {
    grid-column: 1 / -1;
  }

  .site-footer .footer-col-nav {
    display: none;
  }

  .site-footer .legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .rights-break {
    display: inline;
  }
}

.site-footer h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  font-weight: 500;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer ul a {
  color: var(--fg-muted);
  font-size: 14px;
}

.site-footer ul a:hover {
  color: var(--fg);
}

.site-footer .legal {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}

.site-footer .legal a {
  color: var(--fg-dim);
}

.site-footer .legal a:hover {
  color: var(--fg);
}

.rights-break {
  display: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16, .84, .3, 1), transform .9s cubic-bezier(.16, .84, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: .08s;
}

.reveal[data-delay="2"] {
  transition-delay: .16s;
}

.reveal[data-delay="3"] {
  transition-delay: .24s;
}

.reveal[data-delay="4"] {
  transition-delay: .32s;
}

.reveal[data-delay="5"] {
  transition-delay: .40s;
}

/* Override pomalý 0.9s transform z .reveal — musí být ZA reveal pravidly (pozdější kaskáda) */
.btn.btn-primary {
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}

/* Glow utility */
.glow-teal {
  box-shadow: var(--glow-teal);
}

.glow-blue {
  box-shadow: var(--glow-blue);
}

/* Brand color utilities */
.color-x {
  color: var(--x-blue);
  font-weight: 500;
}

.color-l {
  color: var(--l-gray);
  font-weight: 500;
}

.color-p {
  color: var(--p-teal);
  font-weight: 500;
}

/* Grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.6;
}

/* Selection */
::selection {
  background: var(--p-teal);
  color: #042f2a;
}

/* ========================================= */
/* Globální page utility — definováno jednou */
/* ========================================= */
.page-hero {
  padding: 80px 0 32px;
}

.page-hero p+p {
  margin-top: 16px;
}

.page-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 60ch;
}

/* Page-scoped overrides — zachovává původní chování před sloučením */
body[data-page="o-mne"] .page-hero {
  padding: 64px 0 48px;
}

body[data-page="sluzby"] .page-hero {
  padding: 80px 0 48px;
}

body[data-page="o-mne"] .page-lede {
  max-width: 56ch;
}

body[data-page="sluzby"] .page-lede {
  font-size: 1.2rem;
}

/* .tag padding: reference chce 3px 9px bez bg, o-mne 4px 10px s bg */
body[data-page="reference"] .tag {
  padding: 3px 9px;
  background: none;
}

body[data-page="reference"] .tag-row {
  margin-top: 10px;
}


/* ========================================= */
/* EXTRAHOVÁNO Z: index.html */
/* ========================================= */
/* HERO MEGA */
.hero-mega {
  position: relative;
  height: calc(100svh - 80px + 180px);
  min-height: 560px;
  padding: 56px 56px 220px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: visible;
  /* bylo hidden — ořezávalo descenders posledního řádku mega textu */
  background: transparent;
}

.hero-mega::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 78%,
      rgba(0, 0, 0, 0.85) 85%,
      rgba(0, 0, 0, 0.5) 91%,
      rgba(0, 0, 0, 0.15) 96%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 78%,
      rgba(0, 0, 0, 0.85) 85%,
      rgba(0, 0, 0, 0.5) 91%,
      rgba(0, 0, 0, 0.15) 96%,
      transparent 100%);
}

@supports not (height: 100svh) {
  .hero-mega {
    height: calc(100vh - 80px + 180px);
  }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  opacity: 0.55;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 78%,
      rgba(0, 0, 0, 0.85) 85%,
      rgba(0, 0, 0, 0.5) 91%,
      rgba(0, 0, 0, 0.15) 96%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 78%,
      rgba(0, 0, 0, 0.85) 85%,
      rgba(0, 0, 0, 0.5) 91%,
      rgba(0, 0, 0, 0.15) 96%,
      transparent 100%);
}

.hero-corner {
  position: absolute;
  top: 28px;
  z-index: 2;
}

.hero-corner.top-left {
  left: 56px;
}

.hero-corner.top-right {
  right: 56px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  /* bylo hidden — ořezávalo descenders posledního řádku */
}

.hero-mega-title {
  font-family: 'Space Grotesk', var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  /* Horizontal cap: longest line "weby už" ≈ 7 chars × ~0.55em → keep font ≤ ~12vw to fit width with padding */
  /* Zvýšen horní limit z 200px na 400px pro 4K displeje */
  font-size: clamp(40px, min(11vw, 22vh), 400px);
  margin: 0;
  display: grid;
  max-width: 100%;
  max-height: 70svh;
  padding-bottom: 0.1em;
  /* prostor pro descenders posledního řádku při line-height 0.92 */
}

.hero-mega-title .line {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.hero-mega-title .line {
  display: block;
}

.line-solid {
  color: var(--fg);
}

.line-accent {
  background: linear-gradient(135deg, var(--p-teal), var(--p-teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip:text maluje jen do border boxu; při line-height 0.92
         glyfy přesahují mimo box — diakritika (á,í,ě) nahoře, descenders (j,y) dole.
         Padding rozšíří border box, margin-top kompenzuje posun textu. */
  padding-top: 0.1em;
  margin-top: -0.1em;
  padding-bottom: 0.2em;
}

.line-accent .dot-end {
  -webkit-text-fill-color: var(--p-teal);
  color: var(--p-teal);
}

.line-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--fg-muted) 50%, transparent);
}

[data-theme="light"] .line-outline {
  -webkit-text-stroke: 2px color-mix(in oklab, var(--fg) 50%, transparent);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.hero-lede {
  font-size: clamp(15px, 0.8vw, 26px);
  line-height: 1.55;
  max-width: 50ch;
  color: var(--fg-muted);
}

.hero-cta-btn {
  padding: clamp(16px, 0.8vw, 26px) clamp(24px, 1.4vw, 38px);
  font-size: clamp(15px, 0.6vw, 19px);
  border-radius: clamp(12px, 0.6vw, 16px);
}

.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 280px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  z-index: 2;
}

@media (max-width: 1400px) {
  .hero-mega-title {
    font-size: clamp(40px, min(13vw, 28vh), 400px);
  }
}

@media (max-width: 1100px) {
  .hero-mega {
    padding: 40px 28px 212px;
  }

  .hero-corner.top-left {
    left: 28px;
  }

  .hero-corner.top-right {
    right: 28px;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-corner {
    top: 20px;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
  }

  .hero-cta-btn {
    justify-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .hero-mega {
    padding-top: 104px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-corner.top-left {
    left: 16px;
  }

  .hero-corner.top-right {
    left: 16px;
    right: auto;
    top: 58px;
  }

  .hero-mega-title {
    font-size: 67px;
  }

  .hero-mega-title .line {
    white-space: normal;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Pain points */
.pains {
  margin-top: -160px;
  position: relative;
  z-index: 2;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

.pain {
  display: grid;
  gap: 14px;
  align-content: start;
}

.pain-num {
  font-size: 12px;
  color: var(--p-teal);
  letter-spacing: 0.08em;
}

.pain h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 500;
}

.pain p {
  font-size: 14.5px;
  line-height: 1.6;
}

/* Philosophy */
.grad-blue {
  background: linear-gradient(135deg, var(--x-blue), var(--x-blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.grad-gray {
  background: linear-gradient(135deg, var(--l-gray-300), var(--l-gray));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.grad-teal {
  background: linear-gradient(135deg, var(--p-teal), var(--p-teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.phil-rows {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.phil-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 40px 36px;
  background: var(--bg);
}

@media (max-width: 800px) {
  .phil-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }
}

.phil-letter-big {
  display: grid;
  gap: 20px;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.big-letter {
  font-family: var(--font-sans);
  font-size: clamp(96px, 12vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.big-letter.x {
  color: var(--x-blue);
  text-shadow: 0 0 60px rgba(59, 130, 246, .4);
}

.big-letter.l {
  background: linear-gradient(135deg, var(--l-gray-300), var(--l-gray));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big-letter.p {
  color: var(--p-teal);
  text-shadow: 0 0 60px rgba(45, 212, 191, .5);
}

.phil-tag {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phil-body h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.phil-body p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 60ch;
}

.phil-list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-dim);
}

/* Showcase */
.showcase-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .showcase-three {
    grid-template-columns: 1fr;
  }
}

.project {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--fg);
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--p-teal);
  box-shadow: var(--glow-teal);
}

.project-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.project-thumb .thumb-tag {
  z-index: 2;
}

.thumb-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--l-gray) 18%, transparent) 14px 15px);
  opacity: 0.5;
}

.thumb-stripes.blue {
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--x-blue) 24%, transparent) 14px 15px);
}

.thumb-stripes.teal {
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--p-teal) 20%, transparent) 14px 15px);
}

.thumb-tag {
  position: relative;
  font-size: 11px;
  color: var(--fg-dim);
  padding: 4px 10px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.project-meta {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.project-year {
  font-size: 11px;
  color: var(--p-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.project p {
  font-size: 13.5px;
  line-height: 1.55;
}

.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* CTA */
.cta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, color-mix(in oklab, var(--p-teal) 20%, transparent), transparent 70%), radial-gradient(ellipse 50% 80% at 20% 50%, color-mix(in oklab, var(--x-blue) 15%, transparent), transparent 70%), var(--bg-elev);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

@media (max-width: 800px) {
  .cta-inner {
    max-width: 100%;
  }
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 16px 0 18px;
}

.cta-inner p {
  font-size: 1.05rem;
  max-width: none;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .cta-card {
    padding: 56px 24px;
  }
}

/* ========================================= */
/* EXTRAHOVÁNO Z: blog.html */
/* ========================================= */


.blog-section {
  padding-top: 32px;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
  margin-bottom: 32px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  color: var(--fg);
}

.featured-post:hover {
  border-color: var(--p-teal);
  transform: translateY(-2px);
  box-shadow: var(--glow-teal);
  color: var(--fg);
}

@media (max-width: 880px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    border-right: none;
    border-bottom: 1px solid var(--border);
    aspect-ratio: 16/10;
  }
}

.featured-thumb {
  background: var(--bg-elev-2);
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.featured-thumb img,
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-meta {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.featured-meta h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

.featured-meta p {
  font-size: 1rem;
  line-height: 1.55;
}



.post-meta-line {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
}

.post-cat {
  color: var(--p-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-date,
.post-read {
  color: var(--fg-dim);
}

.read-more {
  color: var(--p-teal);
  font-size: 13px;
  margin-top: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 920px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.post {
  padding: 0;
  overflow: hidden;
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

.post:hover {
  transform: translateY(-3px);
  border-color: var(--p-teal);
}

.post-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-elev-2);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post h3 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.post p {
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in oklab, var(--x-blue) 6%, var(--bg-elev)), color-mix(in oklab, var(--p-teal) 6%, var(--bg-elev)));
}

.newsletter-card h3 {
  font-size: 1.4rem;
  margin: 12px 0 8px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

.nl-form {
  display: flex;
  gap: 8px;
}

.nl-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 13px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.nl-form input:focus {
  border-color: var(--p-teal);
}

@media (max-width: 480px) {
  .nl-form {
    flex-direction: column;
  }
}

/* ========================================= */
/* EXTRAHOVÁNO Z: kontakt.html */
/* ========================================= */


.contact-section {
  padding-top: 32px;
  padding-bottom: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.contact-form {
  background: color-mix(in oklab, var(--bg-elev) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  height: 100%;
}

/* Honeypot skryté pole pro ochranu formuláře */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


.contact-form .message-label {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .message-label textarea {
  flex-grow: 1;
  resize: none;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 24px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  color: var(--p-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 13px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--p-teal) 18%, transparent);
}

/* Custom Country & Phone Input Component */
.custom-phone-group {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 13px 14px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.country-trigger:focus,
.country-trigger:hover,
.custom-phone-group.open .country-trigger {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--p-teal) 18%, transparent);
}

.country-flag-img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.country-code-text {
  font-size: 13.5px;
  color: var(--fg);
  font-family: var(--font-mono);
}

.country-chevron {
  font-size: 10px;
  color: var(--fg-dim);
  transition: transform .2s ease;
}

.custom-phone-group.open .country-chevron {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: 90vw;
  background: color-mix(in oklab, var(--bg-elev) 96%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.country-dropdown[hidden] {
  display: none !important;
}

.custom-phone-group.open .country-dropdown:not([hidden]) {
  display: flex;
  animation: dropdownFadeIn .18s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.country-search-wrapper {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
}

.country-search-wrapper input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

.country-list {
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: background .15s, color .15s;
}

.country-option:hover,
.country-option.active {
  background: color-mix(in oklab, var(--p-teal) 14%, transparent);
  color: var(--fg);
}

.country-option-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-option-name {
  font-weight: 400;
}

.country-option-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--p-teal);
}

.country-no-results {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
}

.phone-number-input {
  flex-grow: 1;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  cursor: pointer;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  transition: all .2s;
}

.chip input:checked+span {
  background: color-mix(in oklab, var(--p-teal) 14%, transparent);
  border-color: var(--p-teal);
  color: var(--p-teal);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-disclaimer {
  font-size: 12px;
  color: var(--fg-dim);
}

.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  background: color-mix(in oklab, var(--bg-elev) 95%, transparent);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--success) 16%, transparent);
  border: 1px solid var(--success);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto;
}

.contact-aside {
  display: grid;
  gap: 16px;
}

.contact-card {
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-card h4 {
  font-size: 11px;
  color: var(--p-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 14.5px;
  align-items: center;
}

.contact-key {
  color: var(--fg-dim);
  font-size: 12px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 12px var(--success);
  }

  50% {
    box-shadow: 0 0 20px var(--success);
  }
}

.next-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.next-steps .mono {
  color: var(--p-teal);
  margin-right: 12px;
}

/* FAQ */
.faq-section {
  padding-top: 48px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-elev) 50%, transparent);
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--p-teal);
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chev {
  font-size: 24px;
  color: var(--p-teal);
  font-weight: 300;
  transition: transform .25s;
  line-height: 1;
}

.faq-item[open] .faq-chev {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 24px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ========================================= */
/* EXTRAHOVÁNO Z: o-mne.html */
/* ========================================= */

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 880px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}



.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: color-mix(in oklab, var(--bg-elev) 75%, transparent);
  backdrop-filter: blur(8px);
}

.avatar-slot {
  aspect-ratio: auto;
  background: var(--bg-elev-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.avatar-slot .thumb-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--p-teal) 14%, transparent) 14px 15px);
  opacity: 0.4;
}

.thumb-tag {
  position: relative;
  font-size: 11px;
  color: var(--fg-dim);
  padding: 4px 10px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.profile-name {
  font-size: 13px;
  color: var(--p-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.profile-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.profile-list .mono {
  color: var(--fg-dim);
  margin-right: 8px;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px 0 8px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 138px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 8%, var(--border) 92%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding: 22px 0;
  position: relative;
}

.tl-dot {
  position: absolute;
  left: 132px;
  top: 30px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--l-gray);
  z-index: 1;
}

.tl-dot.blue {
  border-color: var(--x-blue);
  box-shadow: 0 0 18px var(--x-blue);
  background: var(--x-blue);
}

.tl-dot.teal {
  border-color: var(--p-teal);
  box-shadow: 0 0 18px var(--p-teal);
  background: var(--p-teal);
}

.tl-year {
  font-size: 14px;
  color: var(--fg-dim);
  padding-top: 28px;
  text-align: right;
  padding-right: 8px;
}

.tl-body {
  padding-left: 32px;
}

.tl-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.tl-body p {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 60ch;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-muted);
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
}

@media (max-width: 700px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 32px;
  }

  .tl-dot {
    left: 2px;
    top: 32px;
  }

  .tl-year {
    text-align: left;
    padding: 0;
    padding-left: 0;
  }

  .tl-body {
    padding-left: 0;
  }
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--p-teal);
  background: color-mix(in oklab, var(--p-teal) 8%, transparent);
  border-radius: 12px;
  color: var(--p-teal);
  margin-bottom: 18px;
}

.value h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.value p {
  font-size: 14.5px;
  line-height: 1.6;
}




/* ========================================= */
/* EXTRAHOVÁNO Z: reference.html */
/* ========================================= */


.filter-wrapper {
  margin-top: 32px;
}

.filter-toggle-btn {
  display: none;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--p-teal);
}

.filter-btn.active {
  background: color-mix(in oklab, var(--p-teal) 12%, transparent);
  border-color: var(--p-teal);
  color: var(--p-teal);
}

@media (max-width: 640px) {
  .filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--fg-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .filter-toggle-btn:hover {
    color: var(--fg);
    border-color: var(--p-teal);
  }

  .filter-toggle-btn .toggle-icon {
    transition: transform 0.25s ease;
  }

  .filter-wrapper.is-open .filter-toggle-btn .toggle-icon {
    transform: rotate(180deg);
  }

  .filter-bar {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    gap: 8px;
  }

  .filter-wrapper.is-open .filter-bar {
    display: flex;
  }
}

.references-section {
  padding-top: 32px;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 920px) {
  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
}

.project-cta {
  background: linear-gradient(135deg, color-mix(in oklab, var(--x-blue) 8%, var(--bg-elev)), color-mix(in oklab, var(--p-teal) 8%, var(--bg-elev)));
}

.project-cta h3 {
  color: var(--p-teal);
}





/* ========================================= */
/* EXTRAHOVÁNO Z: sluzby.html */
/* ========================================= */


.services-list {
  padding-top: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.service-row:first-child {
  border-top: none;
}

@media (max-width: 880px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.service-num {
  display: grid;
  gap: 12px;
  align-content: start;
}

.service-num .mono {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  font-weight: 500;
}

.service-lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 60ch;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--bg-elev) 50%, transparent);
}

@media (max-width: 720px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.service-detail h3 {
  font-size: 11px;
  color: var(--p-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "→";
  font-family: var(--font-mono);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--p-teal);
  font-size: 14px;
  line-height: 1.5;
}

/* How */
.how-steps {
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.how-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-elev) 50%, transparent);
  transition: transform .25s, border-color .25s;
}

.how-steps li:hover {
  transform: translateX(8px);
  border-color: var(--p-teal);
}

.step-num {
  font-size: 28px;
  color: var(--fg-dim);
  letter-spacing: -0.03em;
  padding-top: 4px;
}

.how-steps h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.how-steps p {
  font-size: 14.5px;
  line-height: 1.55;
}

/* ========================================= */
/* Centered Squares Grid Layout */
/* ========================================= */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lightbox-trigger {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  aspect-ratio: 1 / 1;
  position: relative;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lightbox-trigger:hover {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.15), 0 14px 40px -8px rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
}

@media (min-width: 821px) {
  .lightbox-trigger.grid-col-3 {
    grid-column: span 3;
    aspect-ratio: 2.1 / 1;
  }

  .lightbox-trigger.grid-row-2 {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.lightbox-trigger .thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Screenshot 1 (1. prvek) zarovnáme k hornímu okraji a zvětšujeme odshora dolů */
.lightbox-trigger.grid-col-3 .thumbnail-img {
  object-position: center top;
  transform-origin: top center;
}

.lightbox-trigger:hover .thumbnail-img {
  transform: scale(1.2);
  /* 20% zoom! */
}

.btn-visit-custom {
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid var(--border-strong) !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-visit-custom:hover {
  border-color: var(--p-teal) !important;
  color: var(--p-teal) !important;
  background: color-mix(in oklab, var(--p-teal) 6%, transparent) !important;
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .thumbnails-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================= */
/* Stylování obsahu článku (Rich Text / CKEditor) */
/* ========================================= */
.post-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* Nadpisy */
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 18px;
}

.post-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: -0.01em;
}

.post-content h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Odstranění horního okraje pro první prvek v obsahu */
.post-content>*:first-child {
  margin-top: 0;
}

/* Odstavce */
.post-content p {
  margin-bottom: 24px;
  color: var(--fg-muted);
  max-width: 100%;
  text-align: justify;
}

/* Zvýrazněný text */
.post-content strong,
.post-content b {
  color: var(--fg);
  font-weight: 600;
}

/* Seznamy */
.post-content ul,
.post-content ol {
  margin-bottom: 28px;
  padding-left: 28px;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 10px;
  color: var(--fg-muted);
}

.post-content li::marker {
  color: var(--p-teal);
}

/* Citace (blockquote) */
.post-content blockquote {
  margin: 40px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--p-teal);
  background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--fg);
  line-height: 1.65;
}

/* Obrázky */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 48px auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Odkazy */
.post-content a {
  color: var(--p-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.post-content a:hover {
  color: var(--x-blue);
  text-decoration-color: var(--x-blue);
}

/* Tabulky v obsahu */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.post-content th {
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-elev-2);
}

.post-content tr:hover {
  background: rgba(148, 163, 184, 0.04);
}

/* Box pro zdroje a inspiraci v blog postu */
.post-sources-box {
  margin-top: 40px;
  margin-bottom: 48px;
  padding: 24px;
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.post-sources-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-sources-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.post-sources-content a {
  color: var(--p-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-sources-content a:hover {
  color: var(--fg);
}

.post-sources-content ul,
.post-sources-content ol {
  margin: 0;
  padding-left: 20px;
}

.post-sources-content li {
  margin-bottom: 6px;
}

.sources-list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sources-list li {
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.sources-list .source-link {
  color: var(--p-teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sources-list .source-link:hover {
  color: var(--fg);
}

.sources-list .source-domain {
  color: var(--fg-dim);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Responzivita */
@media (max-width: 768px) {
  .post-content {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .post-content h2 {
    margin-top: 36px;
  }

  .post-content blockquote {
    padding: 16px 20px;
    margin: 28px 0;
  }

  .post-content img {
    margin: 32px auto;
  }
}

/* ========================================= */
/* Medailonek autora & CTA (Zobrazení vedle sebe) */
/* ========================================= */
.post-footer-blocks {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  align-items: stretch;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, color-mix(in oklab, var(--p-teal) 20%, transparent), transparent 70%), radial-gradient(ellipse 50% 80% at 20% 50%, color-mix(in oklab, var(--x-blue) 15%, transparent), transparent 70%), var(--bg-elev);
}

.post-footer-blocks .cta-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.post-footer-blocks .cta-card .cta-inner {
  padding: 48px;
}

.post-footer-blocks .author-box {
  padding: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
}

.author-box {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0;
}

@media (max-width: 820px) {
  .post-footer-blocks {
    grid-template-columns: 1fr;
  }

  .post-footer-blocks .cta-card .cta-inner {
    padding: 32px 24px;
  }

  .post-footer-blocks .author-box {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 32px 24px;
  }
}

.author-box-inner {
  display: flex;
  flex-direction: column;
}

.author-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--p-teal);
  box-shadow: 0 0 16px color-mix(in oklab, var(--p-teal) 25%, transparent);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-cta-heading {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-top: 12px;
  margin-bottom: 16px;
}

.author-name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 4px;
}

.author-linkedin-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--p-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.author-linkedin-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.post-cta-text,
.author-bio-p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .author-box {
    padding: 24px 16px;
  }

  .author-box-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .author-side {
    gap: 10px;
  }

  .author-avatar {
    width: 72px;
    height: 72px;
  }
}

/* Bento Grid na kontaktní stránce (boxy pod sebou) */
.contact-bento-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto 1fr !important;
  gap: 16px !important;
  height: 100%;
}

.contact-bento-box-1,
.contact-bento-box-2,
.contact-bento-box-3,
.contact-bento-map-box {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

.contact-bento-map-box {
  min-height: 280px;
}

/* Filtry pro mapu zde již nejsou potřeba, Leaflet načítá nativní dark/light CartoDB dlaždice */

@media (max-width: 820px) {
  .contact-bento-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    height: auto;
  }
}

/* Stylování Leaflet popupu pro dark/light režim */
.leaflet-popup-content-wrapper {
  background: var(--bg-elev) !important;
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
  font-family: inherit !important;
}

.leaflet-popup-tip {
  background: var(--bg-elev) !important;
  border-left: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
}

.leaflet-popup-content a {
  color: var(--p-teal) !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--fg-dim) !important;
  padding: 8px 8px 0 0 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--p-teal) !important;
}

/* === REFACTORED UTILITY & COMPONENT STYLES === */

/* Spacing & Flex Helpers */
.flex-row-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flex-row-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flex-col-full {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Color & Typography Helpers */
.text-teal {
  color: var(--p-teal) !important;
}

.text-blue {
  color: var(--x-blue) !important;
}

.text-muted {
  color: var(--fg-muted) !important;
}

.text-dim {
  color: var(--fg-dim) !important;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Header & Footer Refactored Classes */
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-cta-btn {
  padding: 9px 16px;
  font-size: 13.5px;
}

.footer-brand-logo {
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 14px;
  max-width: 40ch;
  margin-bottom: 14px;
}

.footer-brand-teal {
  color: var(--p-teal);
  font-style: normal;
}

.footer-sub-text {
  color: var(--fg-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col-list {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-author-name {
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-small-legal {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 6px;
  line-height: 1.3;
}

.footer-bottom-brand {
  font-weight: 700;
  color: var(--fg);
}

/* Reference Item Refactored Classes */
.ref-detail-main {
  padding-top: 64px;
}

.ref-detail-hero {
  padding: 0 0 32px 0;
}

.ref-detail-eyebrow {
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ref-detail-h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 0 24px 0;
}

.ref-detail-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--fg-muted);
  text-align: justify;
  width: 100%;
  margin: 0;
}

.ref-thumbnails-section {
  padding: 24px 0 48px 0;
}

.ref-thumbnails-container {
  display: flex;
  justify-content: center;
}

.ref-thumbnails-grid {
  max-width: 960px;
  width: 100%;
}

.ref-fallback-box {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: 280px;
  max-width: 960px;
  width: 100%;
  position: relative;
}

.ref-footer-section {
  padding: 24px 0 96px 0;
}

.ref-footer-container {
  display: grid;
  gap: 24px;
}

.ref-meta-year {
  font-size: 13px;
  color: var(--p-teal);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ref-visit-btn {
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13.5px;
}

.ref-tag-pill {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-dim);
  padding: 4px 12px;
  font-size: 11.5px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.ref-post-nav {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  outline: none;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--p-teal);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
  transform: scale(1.08);
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-arrow-prev,
.lightbox-arrow-next {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 34px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  cursor: pointer;
  outline: none;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-arrow-prev {
  left: 24px;
  transform: translateY(-50%);
  padding-right: 2px;
}

.lightbox-arrow-next {
  right: 24px;
  transform: translateY(-50%);
  padding-left: 2px;
}

.lightbox-arrow-prev:hover,
.lightbox-arrow-next:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--p-teal);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}

.lightbox-arrow-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow-next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow-prev:active,
.lightbox-arrow-next:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 640px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lightbox-arrow-prev,
  .lightbox-arrow-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .lightbox-arrow-prev {
    left: 12px;
  }

  .lightbox-arrow-next {
    right: 12px;
  }
}

.lightbox-img-element {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

/* Contact Page Refactored Classes */
.contact-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-bento-card-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.contact-bento-title {
  margin-top: 0;
  font-size: 13px;
  color: var(--p-teal);
  margin-bottom: 12px;
}

.contact-bento-list {
  gap: 6px;
  font-size: 13.5px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.contact-bento-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
}

.contact-key-lbl {
  color: var(--fg-dim);
  font-size: 11px;
}

.contact-val-link {
  color: var(--fg);
}

.contact-val-blue {
  color: var(--x-blue);
  font-weight: 600;
}

.contact-val-muted-right {
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
}

.contact-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.contact-status-title {
  color: var(--success);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.contact-map-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
  z-index: 10;
}

.contact-map-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.contact-map-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact-map-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 999;
  pointer-events: none;
}

.contact-map-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--p-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--p-teal), 0 0 20px var(--p-teal);
}

.contact-map-container .leaflet-control-attribution {
  background: color-mix(in oklab, var(--bg-elev) 80%, transparent) !important;
  color: var(--dim) !important;
  font-size: 10px !important;
  padding: 3px 8px !important;
  border-top-left-radius: 6px;
  backdrop-filter: blur(6px);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.contact-map-container .leaflet-control-attribution a {
  color: var(--dim) !important;
  text-decoration: none;
}

.contact-map-container .leaflet-control-attribution a:hover {
  color: var(--p-teal) !important;
  text-decoration: underline;
}

.post-bottom-nav {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-brand-strong {
  font-weight: 700;
  color: var(--fg);
}

.font-preload-trigger {
  font-family: 'Material Symbols Outlined';
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-hero-title {
  max-width: 18ch;
}

.avatar-img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-linkedin-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-linkedin-link:hover {
  color: var(--x-blue);
}

.footer-phone-link {
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-phone-link:hover {
  color: var(--x-blue);
}

.icon-18 {
  font-size: 18px !important;
}

.border-0 {
  border: 0 !important;
}

.border-top-thin {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pt-6 {
  padding-top: 6px;
}

.mt-4 {
  margin-top: 4px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 4px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-32 {
  margin-bottom: 32px !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.m-0 {
  margin: 0 !important;
}

.min-h-280 {
  min-height: 280px;
}

.h-full {
  height: 100%;
}

.color-inherit {
  color: inherit;
}

.no-underline {
  text-decoration: none;
}

.text-underline {
  text-decoration: underline;
}

.text-fg {
  color: var(--fg);
}

.text-border-strong {
  color: var(--border-strong);
}

.tag-sm {
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 999px;
}

.post-cover-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* GDPR Page Refactored Classes */
.gdpr-container {
  max-width: 800px;
}

.gdpr-lede {
  max-width: 65ch;
}

.gdpr-content-section {
  padding-bottom: 80px;
}

.gdpr-body-container {
  max-width: 800px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--fg-muted);
}

.gdpr-grid {
  display: grid;
  gap: 32px;
}

.gdpr-h2 {
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.gdpr-list {
  padding-left: 20px;
  margin-top: 8px;
  display: grid;
  gap: 14px;
  list-style-type: disc;
}

.gdpr-list-sm {
  padding-left: 20px;
  margin-top: 8px;
  display: grid;
  gap: 8px;
  list-style-type: disc;
}

.gdpr-footer-note {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--fg-dim);
}

/* === ACCESSIBILITY (A11Y) ENHANCEMENTS === */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--p-teal);
  color: #020617;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #ffffff;
}

/* Focus Visible for Keyboard Navigation (Zero impact on mouse/touch clicks) */
:focus-visible {
  outline: 2px solid var(--p-teal) !important;
  outline-offset: 3px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--p-teal) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}

/* Reduced Motion preferences support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  #heroCanvas {
    display: none !important;
  }
}

/* === COOKIE CONSENT BANNER & MODAL STYLES === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9995;
  background: color-mix(in oklab, var(--bg-elev) 82%, transparent);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cookie-content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-title {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--p-teal);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-muted);
  margin: 0;
}

.cookie-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cookie-link:hover {
  color: var(--p-teal);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.cookie-btn-settings {
  border-color: var(--border-strong);
  color: var(--fg-muted);
}

.cookie-btn-settings:hover {
  border-color: var(--p-teal);
  color: var(--p-teal);
}

@media (max-width: 980px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px;
  }

  .cookie-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cookie-modal-title {
  font-size: 1.2rem;
  margin: 0;
  color: var(--fg);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.cookie-modal-close:hover {
  color: var(--fg);
}

.cookie-modal-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.cookie-option-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.cookie-option-info strong {
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}

.cookie-option-info span {
  display: block;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Custom Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch label {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-strong);
  transition: .3s;
  border-radius: 24px;
}

.cookie-switch label::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cookie-switch input:checked+label {
  background-color: var(--p-teal);
}

.cookie-switch input:checked+label::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled+label {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}