/* ============ VARIABLES ============ */
:root {
  --navy: #283669;
  --navy-deep: #1a2448;
  --navy-darker: #0f1530;
  --navy-abyss: #070a1a;
  --gold: #e5c44a;
  --gold-soft: #d4b43a;
  --gold-glow: rgba(229, 196, 74, 0.5);
  --cream: #f8f4ea;
  --cream-warm: #f0e9d6;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --muted: #6b6b6b;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(40, 54, 105, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; position: relative; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ============ TYPO ============ */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 300; }
h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; }

em { font-style: italic; }
.hero h1 em,
.pillars h2 em,
.manifesto em,
.team h2 em,
.cta-final h2 em,
.who h2 em,
.approach h2 em,
.world h2 em { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 300; }

.hero h1 em, .pillars h2 em, .cta-final h2 em, .team h2 em, .world h2 em { color: var(--gold); }
.manifesto em, .manifesto-content span { color: var(--gold); font-style: italic; font-weight: 400; }
.who h2 em, .approach h2 em { color: var(--navy-deep); }

/* ============ EYEBROW ============ */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow.dark { color: var(--navy); }

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse-ring 2.4s cubic-bezier(0.66, 0, 0, 1) infinite;
  flex-shrink: 0;
}
.pulse-dot.dark {
  background: var(--navy);
  animation-name: pulse-ring-dark;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(229,196,74,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(229,196,74,0); }
}
@keyframes pulse-ring-dark {
  0%   { box-shadow: 0 0 0 0 rgba(40,54,105,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(40,54,105,0); }
}

/* ============ AMBIENT ORBS ============ */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: drift 24s ease-in-out infinite;
}
.orb-1 { width: 450px; height: 450px; top: 10%; left: -10%; background: var(--gold); animation-delay: 0s; }
.orb-2 { width: 380px; height: 380px; top: 45%; right: -8%; background: var(--navy); animation-delay: -8s; opacity: 0.5; }
.orb-3 { width: 500px; height: 500px; bottom: -10%; left: 30%; background: var(--gold); opacity: 0.15; animation-delay: -16s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============ NAV ============ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(15, 21, 48, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, padding 0.4s;
}
nav.top.scrolled { padding: 14px 0; background: rgba(7, 10, 26, 0.88); }
nav.top .row { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-dot { color: var(--gold); animation: blink 2s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }

/* Real Elvian Technologies wordmark — cream variant on transparent bg.
   Source: assets/elvian-tech-logo-ondark.png (recolored from primary).
   Used on dark/gradient backgrounds (nav, boot screen, footer). */
.logo-wordmark {
  display: inline-flex;
  align-items: center;
  height: 32px;
  line-height: 0;
}
.logo-wordmark img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
  opacity: 0.95;
}
.logo-wordmark:hover img {
  opacity: 1;
  transform: translateY(-1px);
}
nav.top.scrolled .logo-wordmark { height: 28px; }
@media (max-width: 640px) {
  .logo-wordmark { height: 26px; }
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(248, 244, 234, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--navy-darker); }
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}
.btn-gold:hover::before { transform: translateX(100%); }
.btn-gold:hover { background: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(229,196,74,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248,244,234,0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============ HERO ============ */
header.hero {
  background: var(--navy-abyss);
  color: var(--cream);
  padding: 220px 0 140px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,26,0.9) 0%, rgba(7,10,26,0.55) 40%, rgba(7,10,26,0.15) 70%, transparent 100%),
    radial-gradient(ellipse at 15% 30%, rgba(229,196,74,0.08), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(40,54,105,0.45), transparent 55%),
    linear-gradient(180deg, rgba(7,10,26,0.3) 0%, rgba(7,10,26,0.6) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}
@media (min-width: 1400px) {
  .hero-content { max-width: 900px; }
}

.hero-title { margin-bottom: 40px; color: var(--cream); }
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(18px, 1.5vw, 21px);
  color: rgba(248, 244, 234, 0.75);
  max-width: 640px;
  margin-bottom: 56px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.hero-ctas {
  display: flex; gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

.hero-meta {
  margin-top: 140px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s forwards;
}
@media (max-width: 768px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.meta-item .number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.meta-item .label {
  font-size: 13px;
  color: rgba(248, 244, 234, 0.55);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(248,244,234,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  background-size: 100% 200%;
  animation: scroll-down 2s linear infinite;
}
@keyframes scroll-down { 0% { background-position: 0 -100%; } 100% { background-position: 0 100%; } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

/* ============ HERO — HOLOGRAM / PLANET / STREAMS / READOUTS ============ */

/* holographic grid overlay */
.hero-hologram {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(229,196,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,212,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 35% 55%, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 70%, transparent 100%);
          mask-image: radial-gradient(ellipse at 35% 55%, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 70%, transparent 100%);
  opacity: 0.6;
}

/* star field (left side) */
.hero-stars {
  position: absolute;
  left: 0; top: 0;
  width: 45%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* planet (right side) */
.hero-planet {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 900px;
  height: 900px;
  max-width: 85vw;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 0 80px rgba(127,212,255,0.08));
  transition: opacity 1.6s ease 0.4s;
}

/* v2 — Three.js WebGL earth: pravá část hero (jako původní SVG planet, jen 3D) */
.three-earth {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 820px;
  height: 820px;
  max-width: 75vw;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.three-earth.three-earth--ready { opacity: 1; }
.three-earth.three-earth--ready ~ .hero-planet { opacity: 0; }
@media (max-width: 1200px) {
  .three-earth { right: -200px; width: 720px; height: 720px; }
}
@media (max-width: 900px) {
  .three-earth { right: -280px; width: 640px; height: 640px; top: 60%; }
}
@media (max-width: 640px) {
  .three-earth { display: none; }
}

@media (max-width: 1200px) {
  .hero-planet { right: -260px; width: 780px; height: 780px; opacity: 0.85; }
}
@media (max-width: 900px) {
  .hero-planet { right: -340px; width: 680px; height: 680px; top: 60%; opacity: 0.65; }
}
@media (max-width: 640px) {
  .hero-planet { right: -50%; width: 120vw; height: 120vw; top: auto; bottom: -40%; transform: none; opacity: 0.5; }
}

/* cylindrical rotating earth map — realistic world tile, faster rotation */
.planet-map {
  animation: planet-scroll 48s linear infinite;
  will-change: transform;
}
@keyframes planet-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-1280px); }
}

/* tile-marks (cities on rotating earth) pulse */
.tile-mark circle:first-child {
  transform-origin: center;
  transform-box: fill-box;
  animation: tile-pulse 3.2s ease-in-out infinite;
}
.tile-mark:nth-of-type(2) circle:first-child { animation-delay: 1s; }
.tile-mark:nth-of-type(3) circle:first-child { animation-delay: 2s; }
@keyframes tile-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50%      { transform: scale(1.35); opacity: 0.15; }
}

/* HERO MATRIX RAIN — data side */
#hero-matrix {
  position: absolute;
  right: 0; top: 0;
  width: 70%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 18%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,0.55) 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 18%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,0.55) 100%);
}
@media (max-width: 900px) {
  #hero-matrix { width: 100%; opacity: 0.25; }
}

/* radar sweep */
.radar-sweep {
  transform-origin: 450px 450px;
  transform-box: fill-box;
  animation: radar-spin 8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* data streams + bolts */
.hero-streams {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* scan line */
.hero-scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229,196,74,0.55) 40%, rgba(127,212,255,0.55) 60%, transparent);
  box-shadow: 0 0 24px rgba(229,196,74,0.45), 0 0 60px rgba(127,212,255,0.25);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: hero-scan-move 9s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
@keyframes hero-scan-move {
  0%   { transform: translateY(0);     opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.7; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* MISSION-CONTROL READOUTS */
.hero-readout {
  position: absolute;
  z-index: 3;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  animation: readout-in 1s ease-out 1.6s forwards;
}
@keyframes readout-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.readout-tl { top: 28px; left: 40px; }
.readout-tr { top: 28px; right: 40px; }
.readout-br { bottom: 28px; right: 40px; }
.readout-bl { bottom: 28px; left: 40px; }
.readout-sep {
  color: rgba(229,196,74,0.45);
  font-weight: 300;
}
.readout-num {
  color: var(--gold);
  font-weight: 500;
  margin-left: 2px;
}
.readout-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74,222,128,0.5);
  animation: readout-pulse 1.8s ease-in-out infinite;
}
@keyframes readout-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (max-width: 900px) {
  .hero-readout { font-size: 10px; gap: 7px; letter-spacing: 0.05em; }
  .readout-tl, .readout-tr { top: 80px; }
  .readout-tl { left: 20px; }
  .readout-tr { right: 20px; }
  .readout-bl, .readout-br { bottom: 18px; }
  .readout-bl { left: 20px; }
  .readout-br { right: 20px; }
}
@media (max-width: 640px) {
  .readout-tr, .readout-br { display: none; }
}

/* hero title shimmer on em */
.hero-title em {
  background: linear-gradient(90deg, var(--gold) 0%, #fff5d1 25%, var(--gold) 50%, #e5c44a 75%, #fff5d1 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: title-shimmer 8s linear infinite;
  text-shadow: 0 0 40px rgba(229,196,74,0.15);
}
@keyframes title-shimmer {
  from { background-position: 200% 50%; }
  to   { background-position: -200% 50%; }
}

/* meta items — mission control readout style */
.meta-item { position: relative; padding-top: 28px; }
.meta-index {
  position: absolute;
  top: 0; left: 0;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(229,196,74,0.65);
}
.meta-index::before {
  content: '▸ ';
  color: rgba(229,196,74,0.45);
}
.meta-bar {
  margin-top: 14px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(229,196,74,0.1) 100%);
  transform-origin: left;
  transform: scaleX(0.35);
  opacity: 0.8;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.meta-item:hover .meta-bar {
  transform: scaleX(1);
  opacity: 1;
}
.meta-item .number {
  transition: text-shadow 0.3s ease;
}
.meta-item:hover .number {
  text-shadow: 0 0 30px rgba(229,196,74,0.6);
}

/* SECTIONS */
/* ============ SECTIONS ============ */
section { padding: 140px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ============ WHO ============ */
.who { background: var(--cream); position: relative; }
.who::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.who-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 120px;
  align-items: start;
  margin-bottom: 100px;
}
@media (max-width: 900px) { .who-intro { grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; } }
.who h2 { color: var(--navy); margin-bottom: 32px; }
.who p.lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-weight: 300;
}
.who p.lead strong { font-weight: 600; color: var(--navy); }

/* System architecture diagram */
.system-arch {
  position: relative;
  padding: 50px 0 60px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, transparent 0%, rgba(40,54,105,0.015) 50%, transparent 100%);
}
.arch-label {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.arch-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--gold-soft);
}
.arch-label h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  font-weight: 400;
  margin: 0;
}
.arch-label h3 em { font-style: italic; color: var(--gold-soft); font-weight: 300; }

.arch-svg {
  display: block;
  width: 100%;
  height: auto;
}
.arch-svg .arch-node circle,
.arch-svg .arch-node rect {
  transition: all 0.3s ease;
}
.arch-svg .arch-node:hover circle:first-child,
.arch-svg .arch-node:hover rect:first-child {
  transform: scale(1.4);
  transform-origin: center;
  transform-box: fill-box;
}

/* Scan line sweeps top-to-bottom */
.arch-scan {
  animation: arch-scan-move 6s linear infinite;
}
@keyframes arch-scan-move {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(640px); opacity: 0; }
}

/* Node glow ping */
.arch-layer.human .arch-node circle:nth-child(2),
.arch-layer.digital .arch-node circle:nth-child(2) {
  animation: arch-node-ping 3s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.arch-layer.digital .arch-node circle:nth-child(2) { animation-delay: 1.5s; }
@keyframes arch-node-ping {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}

.arch-caption {
  text-align: center;
  margin-top: 32px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
.arch-caption strong {
  color: var(--navy);
  font-weight: 500;
  font-style: normal;
}

/* ============ WORLD MAP ============ */
.world {
  background: var(--navy-abyss);
  color: var(--cream);
  padding: 180px 0 140px;
  overflow: hidden;
  position: relative;
}
.world::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(40,54,105,0.5), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(229,196,74,0.05), transparent 50%);
  pointer-events: none;
}
.world-header {
  max-width: 900px;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}
.world-header h2 { color: var(--cream); margin-bottom: 20px; }
.world-header p {
  color: rgba(248, 244, 234, 0.65);
  font-size: 19px;
  max-width: 720px;
  font-weight: 300;
}

/* ============ WORLD VISUAL — multi-layer stack ============ */
.world-visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 12 / 7;
  background: var(--navy-abyss);
}

/* All layers stack absolutely, pointer-events off for decorative */
.earth-layer,
.matrix-layer,
.lightning-layer,
.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.earth-layer { z-index: 1; pointer-events: none; animation: earth-rotate 180s linear infinite; transform-origin: center; }
.matrix-layer { z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0.85; }
.lightning-layer { z-index: 3; pointer-events: none; }
.world-map { z-index: 4; }

/* Very slow earth drift — parallax feel */
@keyframes earth-rotate {
  0%   { transform: translateX(0) scale(1); }
  50%  { transform: translateX(-8px) scale(1.015); }
  100% { transform: translateX(0) scale(1); }
}

/* Earth sphere glow animation */
.earth-sphere circle:first-child {
  animation: sphere-breathe 12s ease-in-out infinite;
  transform-origin: 600px 400px;
  transform-box: view-box;
}
@keyframes sphere-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ==========================================================================
   World schema — realistic countries in UNIFORM DARK BLUE (override gold).
   The inline <style> from world-map.svg paints .land gold (#e5c44a) — right
   for the hero planet, ale tady chceme tichou tmavou mapu, ze které vyskočí
   pouze uzly a toky. Žádné "naše zvýrazněné země" — mapa jako tmavé plátno,
   kontrast tvoří jen nodes (gold/cyan/teal) a hrany sítě.
   ========================================================================== */
.earth-realistic .land {
  fill: rgba(24, 56, 105, 0.88) !important;
  fill-opacity: 1 !important;
  stroke: rgba(85, 140, 200, 0.45) !important;
  stroke-width: 0.5 !important;
  stroke-opacity: 1 !important;
}
/* Jemná variance — 3 tmavé navy odstíny cyklicky (tichá hloubka, žádné "ours") */
.earth-realistic .land:nth-child(3n) {
  fill: rgba(32, 68, 120, 0.88) !important;
}
.earth-realistic .land:nth-child(5n) {
  fill: rgba(16, 42, 85, 0.92) !important;
}
.earth-realistic .land:nth-child(7n) {
  fill: rgba(40, 78, 130, 0.85) !important;
}

/* Star field twinkle */
.star-field circle { animation: star-twinkle 5s ease-in-out infinite; }
.star-field circle:nth-child(2n) { animation-duration: 7s; animation-delay: 1.5s; }
.star-field circle:nth-child(3n) { animation-duration: 4s; animation-delay: 2.8s; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* Globe grid subtle pulse */
.globe-grid ellipse { animation: grid-pulse 14s ease-in-out infinite; }
.globe-grid ellipse:nth-child(even) { animation-delay: 7s; }
@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ============ NODE ANIMATIONS ============ */
.node-glow { animation: node-glow-anim 3.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.node-ring { animation: node-ring-expand 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.node-ring-outer { animation: node-ring-expand 3s ease-out infinite 1.5s; transform-origin: center; transform-box: fill-box; }
.node.hub .node-core { animation: core-pulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.node.energy .node-core { animation: core-pulse-fast 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes node-glow-anim {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes node-ring-expand {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes core-pulse-fast {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.25); filter: brightness(1.5); }
}

/* Wave pulse (Lastovo — ocean ring ripples) */
.wave-pulse {
  animation: wave-ripple 3s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes wave-ripple {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ============ LEGEND + CAPTION ============ */
.world-legend {
  position: absolute;
  bottom: 24px; left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 21, 48, 0.75);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  z-index: 10;
}
.legend-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: rgba(248,244,234,0.75);
  letter-spacing: 0.04em;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.legend-dot.cyan { background: #7fd4ff; box-shadow: 0 0 10px #7fd4ff; }
.legend-dot.teal { background: #4dd4c4; box-shadow: 0 0 10px #4dd4c4; }
.legend-dot.hub  {
  background: transparent;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 8px rgba(229,196,74,0.4);
  position: relative;
}
.legend-dot.hub::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #7fd4ff;
  box-shadow: 0 0 4px #7fd4ff;
}

.world-caption {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 21, 48, 0.75);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,244,234,0.6);
  font-weight: 500;
  z-index: 10;
}
.world-caption .caption-label {
  color: #4ade80;
  font-weight: 700;
}
.world-caption .caption-label::before {
  content: '● ';
  animation: status-pulse 2s ease-in-out infinite;
}
.world-caption .caption-coords {
  color: var(--gold);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.05em;
}
.world-caption .caption-sep { color: rgba(248,244,234,0.3); }

@media (max-width: 640px) {
  .world-caption { font-size: 9px; padding: 8px 12px; gap: 6px; top: 16px; right: 16px; }
  .world-caption .caption-sep:nth-of-type(1) { display: none; }
  .world-legend { padding: 12px 14px; font-size: 11px; bottom: 16px; left: 16px; }
}

/* ============ PILLARS ============ */
.pillars {
  background: var(--navy-darker);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(229,196,74,0.06), transparent 60%);
  pointer-events: none;
}
.pillars-header { max-width: 900px; margin-bottom: 80px; position: relative; z-index: 2; }
.pillars-header h2 { color: var(--cream); margin-bottom: 24px; }
.pillars-header p {
  color: rgba(248, 244, 234, 0.65);
  font-size: 19px;
  max-width: 720px;
  font-weight: 300;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  padding: 48px 40px 48px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.pillar:last-child { border-right: none; }
@media (max-width: 900px) { .pillar { border-right: none; padding: 48px 0; } }
.pillar:hover { background: rgba(229, 196, 74, 0.03); }

.pillar-visual {
  margin-bottom: 36px;
  opacity: 0.95;
  transition: opacity 0.3s;
  position: relative;
  height: 180px;
  border: 1px solid rgba(229,196,74,0.1);
  background: linear-gradient(180deg, rgba(229,196,74,0.02), rgba(15,21,48,0.3));
  overflow: hidden;
}
.pillar-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(229,196,74,0.04), transparent 70%);
  pointer-events: none;
}
.pillar:hover .pillar-visual { opacity: 1; border-color: rgba(229,196,74,0.3); }
.pillar-svg { width: 100%; height: 100%; display: block; }

/* AI active link pulse */
.ai-active-links line { animation: ai-link-pulse 1.6s ease-in-out infinite; }
@keyframes ai-link-pulse {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.3; }
}

.pulse-circle { animation: svg-pulse 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes svg-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.pillar-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pillar h3 { color: var(--cream); margin-bottom: 24px; }
.pillar > p {
  color: rgba(248, 244, 234, 0.65);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
}
.pillar ul { list-style: none; margin-top: 24px; }
.pillar ul li {
  font-size: 13px;
  color: rgba(248, 244, 234, 0.5);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}
.pillar ul li:last-child { border-bottom: 1px solid var(--line); }
.pillar ul li em { color: var(--gold); font-style: normal; font-weight: 500; font-size: 12px; }
.pillar ul li:hover { color: rgba(248, 244, 234, 0.85); }

/* ============ MARQUEE ============ */
.marquee-sec {
  background: var(--navy-deep);
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee 40s linear infinite;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 300;
  color: rgba(248,244,234,0.5);
}
.marquee-track span { display: inline-block; }
.marquee-track span.sep { color: var(--gold); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ APPROACH ============ */
.approach { background: var(--cream-warm); position: relative; }
.approach h2 { color: var(--navy); margin-bottom: 96px; max-width: 900px; }
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 96px;
}
@media (max-width: 768px) { .principles { grid-template-columns: 1fr; gap: 48px; } }
.principle {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
  transition: transform 0.4s;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
}
.principle:hover { transform: translateY(-4px); }
.principle:hover .principle-icon {
  border-color: var(--gold);
  color: var(--gold);
}
.principle-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: span 3;
  transition: all 0.4s ease;
  position: relative;
}
.principle-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0;
  transform: scale(1.15);
  transition: all 0.4s ease;
}
.principle:hover .principle-icon::before {
  opacity: 1;
  transform: scale(1);
}
.principle-icon svg {
  width: 36px;
  height: 36px;
}

/* Icon-specific animations */
.icon-top-block { animation: icon-block-float 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes icon-block-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.icon-ring-pulse { animation: icon-ring 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes icon-ring {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}
.icon-hourglass-dot { animation: icon-hour-fall 1.8s linear infinite; }
@keyframes icon-hour-fall {
  0%   { transform: translateY(-10px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
.icon-shield { transition: stroke 0.3s; }
.icon-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: icon-check-draw 3s ease-in-out infinite;
}
@keyframes icon-check-draw {
  0%, 30%   { stroke-dashoffset: 40; }
  50%, 80% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 40; }
}

.principle-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 56px;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 400;
  grid-column: 2;
}
.principle h3 { color: var(--navy); margin-bottom: 16px; font-size: 26px; grid-column: 2; }
.principle p { color: var(--ink-soft); line-height: 1.65; font-size: 16px; grid-column: 2; }

@media (max-width: 520px) {
  .principle { grid-template-columns: 56px 1fr; gap: 20px; }
  .principle-icon { width: 56px; height: 56px; }
  .principle-icon svg { width: 28px; height: 28px; }
}

/* ============ MANIFESTO ============ */
.manifesto {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
#manifesto-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.4;
}
/* Holographic grid overlay */
.manifesto-hologram {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(229,196,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,196,74,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}
/* Scan line — moves top to bottom */
.manifesto-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,196,74,0.8) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  animation: manifesto-scan-anim 8s linear infinite;
  box-shadow: 0 0 20px rgba(229,196,74,0.4);
}
@keyframes manifesto-scan-anim {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

.manifesto-content {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Holographic frame */
.manifesto-frame {
  position: relative;
  padding: 56px 64px 48px;
  border: 1px solid rgba(229,196,74,0.18);
  background: rgba(15, 21, 48, 0.4);
  backdrop-filter: blur(6px);
  text-align: center;
}
.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}
.frame-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.manifesto-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(229,196,74,0.7);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(229,196,74,0.15);
}
.readout-dot { color: #4ade80; animation: status-pulse 2s ease-in-out infinite; }

.manifesto .eyebrow { justify-content: center; }
.manifesto .serif-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 50px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 32px;
}
.manifesto-content span { color: var(--gold); font-style: normal; }
.manifesto .attribution {
  font-size: 13px;
  color: rgba(248, 244, 234, 0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.manifesto-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(229,196,74,0.15);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(248,244,234,0.5);
}
.manifesto-meta .meta-sep { color: rgba(229,196,74,0.4); }

@media (max-width: 640px) {
  .manifesto-frame { padding: 40px 24px 32px; }
  .manifesto-readout { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 9px; }
  .manifesto-meta { flex-direction: column; gap: 6px; font-size: 9px; }
  .manifesto-meta .meta-sep { display: none; }
}

/* ============ TEAM ============ */
.team { background: var(--cream); position: relative; }
.team-header { max-width: 900px; margin-bottom: 80px; }
.team-header h2 { color: var(--navy); margin-bottom: 20px; }
.team-header p {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 720px;
  font-weight: 300;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.member {
  background: #fff;
  padding: 36px 26px 32px;
  border: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.member::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(229,196,74,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.member > * { position: relative; z-index: 1; }
.member:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(40,54,105,0.12);
}
.member:hover::before { opacity: 1; }
.member.ai-member {
  background: linear-gradient(135deg, #fff 0%, #fdf8e7 100%);
  border-color: rgba(229, 196, 74, 0.35);
}

.member-avatar {
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
  position: relative;
}
.member-avatar svg { width: 100%; height: 100%; display: block; }
.member-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 3px solid #fff;
  outline: 1px solid rgba(40, 54, 105, 0.08);
  box-shadow:
    0 22px 50px -20px rgba(40, 54, 105, 0.40),
    0 0 0 6px rgba(229, 196, 74, 0.08),
    0 0 0 7px rgba(229, 196, 74, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  filter: saturate(1.04) contrast(1.02);
}
.member:hover .member-photo {
  transform: scale(1.04);
  box-shadow:
    0 30px 64px -22px rgba(40, 54, 105, 0.50),
    0 0 0 6px rgba(229, 196, 74, 0.18),
    0 0 0 7px rgba(229, 196, 74, 0.28);
}
.member.highlight .member-photo {
  box-shadow:
    0 24px 56px -20px rgba(40, 54, 105, 0.45),
    0 0 0 6px rgba(229, 196, 74, 0.20),
    0 0 0 7px rgba(229, 196, 74, 0.40);
}
@media (max-width: 1180px) {
  .member-avatar { width: 152px; height: 152px; }
}
@media (max-width: 560px) {
  .member-avatar { width: 180px; height: 180px; margin-bottom: 24px; }
}
.member-ping {
  position: absolute;
  top: -4px; right: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.member-ping.gold { background: var(--gold); box-shadow: 0 0 0 0 var(--gold-glow); animation-name: ping-gold; }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  80%  { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes ping-gold {
  0%   { box-shadow: 0 0 0 0 rgba(229, 196, 74, 0.55); }
  80%  { box-shadow: 0 0 0 14px rgba(229, 196, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 196, 74, 0); }
}

.member-role {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark, #c9a730);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.member-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.member-bio {
  color: var(--body, #2a2a2a);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 18px;
  font-weight: 400;
  max-width: 280px;
}
.member-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream-warm);
  padding: 6px 12px;
  font-weight: 600;
}
.ai-member .member-tag { background: rgba(229, 196, 74, 0.2); color: var(--navy-deep); }

.member-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Architect badge (Jiří — staví Jarvise) */
.member.has-architect {
  background: linear-gradient(135deg, #fff 0%, #fafcff 100%);
  border-color: rgba(40, 54, 105, 0.22);
}
.member.has-architect::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy) 100%);
  background-size: 200% 100%;
  animation: architect-shimmer 3.6s linear infinite;
}
@keyframes architect-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.architect-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(229, 196, 74, 0.18);
  border: 1px solid rgba(229, 196, 74, 0.45);
  padding: 5px 10px;
  font-weight: 700;
  z-index: 2;
  transition: all 0.3s ease;
}
.architect-badge svg { color: var(--gold-soft); flex-shrink: 0; }
.member.has-architect:hover .architect-badge {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.member.has-architect:hover .architect-badge svg { color: var(--navy-deep); }

/* TEAM — 6 human members (3×2 grid) */
.human-team {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1180px) { .human-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .human-team { grid-template-columns: 1fr; } }

.member.highlight {
  background: linear-gradient(135deg, #fff 0%, #fdf8e7 100%);
  border-color: rgba(229, 196, 74, 0.45);
  box-shadow: 0 10px 30px rgba(229, 196, 74, 0.1);
}
.member.highlight::after {
  content: 'Majitelka';
  position: absolute;
  top: 16px; right: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
  background: rgba(229, 196, 74, 0.12);
  padding: 4px 10px;
  border-radius: 2px;
}
.member.highlight:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(229, 196, 74, 0.2);
}

/* team sub-label */
.team-sub-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  margin-top: 16px;
}
.team-sub-label .bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--navy), rgba(40,54,105,0.05));
  max-width: 240px;
}
.team-sub-label .bar.gold {
  background: linear-gradient(90deg, var(--gold), rgba(229,196,74,0.05));
}
.team-sub-label .label-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  font-weight: 400;
}
.team-sub-label .label-text.gold { color: var(--gold-soft); }

/* ============ JARVIS HERO CARD ============ */
.jarvis-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 56px 56px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 196, 74, 0.25);
}
.jarvis-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(229,196,74,0.15), transparent 60%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .jarvis-hero { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; text-align: center; }
}

.jarvis-visual { position: relative; z-index: 2; }
.jarvis-svg { width: 100%; height: auto; max-width: 280px; display: block; margin: 0 auto; }
.jarvis-svg .core-pulse {
  animation: jarvis-core-pulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes jarvis-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}
.jarvis-svg .orbit-group { animation: rotate-orbit 40s linear infinite; transform-origin: 100px 100px; transform-box: fill-box; }
@keyframes rotate-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.jarvis-svg .orbit circle { animation: orbit-pulse 2.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.jarvis-svg .orbit-1 circle { animation-delay: 0s; }
.jarvis-svg .orbit-2 circle { animation-delay: 0.4s; }
.jarvis-svg .orbit-3 circle { animation-delay: 0.8s; }
.jarvis-svg .orbit-4 circle { animation-delay: 1.2s; }
.jarvis-svg .orbit-5 circle { animation-delay: 1.6s; }
.jarvis-svg .orbit-6 circle { animation-delay: 2.0s; }
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

/* ============ JARVIS NEURAL NETWORK ============ */
.jarvis-neural { overflow: visible; }

/* R2 hidden neurons — staggered pulse (wave around the ring) */
.jarvis-neural .jn-r2-node {
  animation: jn-r2-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0.65;
}
@keyframes jn-r2-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.5;  }
  50%      { transform: scale(1.65); opacity: 1;    }
}

/* CORE — outer pulsing shell */
.jarvis-neural .jn-core-outer {
  animation: jn-core-outer 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes jn-core-outer {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%      { transform: scale(1.12); opacity: 0.85; }
}

/* CORE — faster inner flicker */
.jarvis-neural .jn-core-inner {
  animation: jn-core-inner 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes jn-core-inner {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.3);  opacity: 0.9; }
}

/* expanding ping ring from CORE */
.jarvis-neural .jn-ping {
  animation: jn-ping-ring 3.4s ease-out infinite;
  transform-origin: 140px 140px;
  transform-box: view-box;
}
@keyframes jn-ping-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(3.2);  opacity: 0;   }
  100% { transform: scale(3.2);  opacity: 0;   }
}

/* Active highlighted chains — opacity pulsing to suggest data flow */
.jarvis-neural .jn-edges-active line {
  animation: jn-edge-pulse 2.6s ease-in-out infinite;
}
.jarvis-neural .jn-edges-active line:nth-child(3n+1) { animation-delay: 0s;   }
.jarvis-neural .jn-edges-active line:nth-child(3n+2) { animation-delay: 0.4s; }
.jarvis-neural .jn-edges-active line:nth-child(3n+3) { animation-delay: 0.8s; }
@keyframes jn-edge-pulse {
  0%, 100% { opacity: 0.3;  }
  50%      { opacity: 0.95; }
}

.jarvis-copy { position: relative; z-index: 2; }
.jarvis-copy .member-role { color: var(--gold); margin-bottom: 14px; }
.jarvis-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.jarvis-copy p {
  color: rgba(248, 244, 234, 0.75);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 620px;
  font-weight: 300;
}
.jarvis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(248, 244, 234, 0.55);
}
.jarvis-meta strong { color: var(--cream); font-weight: 500; margin-right: 6px; }
.jarvis-meta em { font-style: normal; font-weight: 500; }
.status-live { color: #4ade80; animation: status-pulse 2s ease-in-out infinite; }

.jarvis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.jarvis-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(229, 196, 74, 0.08);
  border: 1px solid rgba(229, 196, 74, 0.35);
  padding: 7px 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.jarvis-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
  animation: tag-pulse 2.4s ease-in-out infinite;
}
.jarvis-tag:hover {
  background: rgba(229, 196, 74, 0.15);
  border-color: rgba(229, 196, 74, 0.6);
}
@keyframes tag-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.jarvis-architect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  background: rgba(229, 196, 74, 0.08);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(248, 244, 234, 0.7);
}
.jarvis-architect svg { color: var(--gold); flex-shrink: 0; }
.jarvis-architect strong {
  color: var(--gold);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ============ AGENT GRID ============ */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 1100px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .agent-grid { grid-template-columns: 1fr 1fr; } }

.agent {
  background: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.agent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.agent:hover {
  background: var(--cream);
  transform: translateY(-4px);
}
.agent:hover::before { transform: scaleX(1); }
.agent-icon { font-size: 24px; line-height: 1; }
.agent-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.agent-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 300;
  flex-grow: 1;
}
.agent-time {
  font-family: 'Inter', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  font-weight: 600;
  margin-top: 4px;
}

/* ============ CTA FINAL ============ */
.cta-final {
  background: var(--navy-abyss);
  color: var(--cream);
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.cta-final > .container { position: relative; z-index: 2; }
.cta-final .eyebrow { justify-content: center; }
.cta-final h2 {
  color: var(--cream);
  max-width: 860px;
  margin: 0 auto 28px;
}
.cta-final p {
  color: rgba(248, 244, 234, 0.6);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 17px;
}
.cta-final .btn { margin: 0 auto; }

/* ============ FOOTER ============ */
footer {
  background: #06081a;
  color: rgba(248, 244, 234, 0.5);
  padding: 72px 0 40px;
  position: relative;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.foot-brand { font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: var(--cream); margin-bottom: 16px; font-weight: 500; }
.foot-brand span { color: var(--gold); }

/* Footer wordmark variant — used on dark footer */
.foot-brand-wordmark {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-bottom: 18px;
  line-height: 0;
  opacity: 0.92;
}
.foot-brand-wordmark img {
  height: 100%;
  width: auto;
  display: block;
}
.foot-tag { font-size: 13px; color: rgba(248, 244, 234, 0.5); max-width: 300px; line-height: 1.6; }
.foot-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}
.foot-col ul { list-style: none; }
.foot-col li { font-size: 14px; margin-bottom: 10px; color: rgba(248, 244, 234, 0.5); transition: color 0.2s; cursor: default; }
.foot-col li:hover { color: var(--gold); }
.foot-bot {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(248, 244, 234, 0.3);
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .foot-bot { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ CURSOR (optional enhancement) ============ */
@media (hover: hover) {
  body { cursor: default; }
}

/* ============ SELECTION ============ */
::selection { background: var(--gold); color: var(--navy-darker); }

/* ============================================================
   v2 — VIZE 2042 (Horizont 2042 — 12 projektů, 3 fáze)
   Futuristic 22nd-century aesthetic: glassmorphism, scan-lines,
   3-phase color coding (gold / cyan / violet)
   ============================================================ */

.vision-2042 {
  position: relative;
  padding: 140px 0 160px;
  background: linear-gradient(180deg, #050a1f 0%, #0a1230 50%, #050a1f 100%);
  color: #f0eeda;
  overflow: hidden;
  isolation: isolate;
}

/* Background grid + gradient glows */
.vision-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.vision-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(229,196,74,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229,196,74,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at center, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 0%, transparent 80%);
}
.vision-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.vision-glow-1 {
  background: radial-gradient(circle, rgba(229,196,74,0.4) 0%, transparent 70%);
  top: 10%; left: -10%;
  animation: glow-drift-1 22s ease-in-out infinite;
}
.vision-glow-2 {
  background: radial-gradient(circle, rgba(127,212,255,0.3) 0%, transparent 70%);
  bottom: 10%; right: -10%;
  animation: glow-drift-2 28s ease-in-out infinite;
}
@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, -40px) scale(1.1); }
}

.vision-container {
  position: relative;
  z-index: 1;
}

/* Header */
.vision-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.vision-eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(229,196,74,0.4);
  border-radius: 20px;
  background: rgba(229,196,74,0.06);
  margin-bottom: 24px;
}
.vision-title {
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 24px;
  color: #f8f4ea;
  letter-spacing: -0.02em;
}
.vision-title em {
  font-style: italic;
  background: linear-gradient(135deg, #ffeaa3 0%, #e5c44a 50%, #c89a23 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vision-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(248, 244, 234, 0.7);
  max-width: 580px;
  margin: 0 auto;
}

/* Timeline — 3 fáze */
.vision-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin: 0 auto 80px;
  max-width: 1200px;
}
.vision-phase {
  position: relative;
  padding: 28px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229,196,74,0.18);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, background 0.4s;
}
.vision-phase:hover {
  transform: translateY(-4px);
  border-color: rgba(229,196,74,0.5);
  background: rgba(229,196,74,0.06);
}
.vision-phase[data-phase="1"] { border-top: 3px solid var(--gold); }
.vision-phase[data-phase="2"] { border-top: 3px solid #7fd4ff; }
.vision-phase[data-phase="3"] { border-top: 3px solid #b89eff; }

.phase-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}
.vision-phase[data-phase="2"] .phase-num { color: #7fd4ff; }
.vision-phase[data-phase="3"] .phase-num { color: #b89eff; }

.phase-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(248, 244, 234, 0.55);
  margin-bottom: 6px;
}
.phase-name {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 500;
  color: #f8f4ea;
  margin-bottom: 8px;
}
.phase-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(248, 244, 234, 0.65);
}
.phase-connector {
  position: relative;
  width: 60px;
  align-self: center;
}
.phase-connector::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(229,196,74,0.4), rgba(229,196,74,0.1));
}
.phase-connector::after {
  content: "▸";
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  color: rgba(229,196,74,0.6);
  font-size: 14px;
}

/* Grid 12 projektů */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 0 0 72px;
}

.vision-card {
  position: relative;
  padding: 32px 26px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 56, 0.6) 0%, rgba(13, 19, 48, 0.4) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229,196,74,0.15);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s,
    box-shadow 0.5s;
  isolation: isolate;
}
.vision-card::before {
  /* Gradient rim that lights up on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(229,196,74,0) 0%, rgba(229,196,74,0.5) 50%, rgba(229,196,74,0) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}
.vision-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229,196,74,0.4);
  box-shadow:
    0 12px 40px rgba(229,196,74,0.12),
    0 0 60px rgba(40,54,105,0.4);
}
.vision-card:hover::before {
  opacity: 1;
}

/* Phase color variants */
.vision-card[data-phase="1"] { --card-accent: #e5c44a; }
.vision-card[data-phase="2"] { --card-accent: #7fd4ff; }
.vision-card[data-phase="3"] { --card-accent: #b89eff; }

.vision-card[data-featured="true"] {
  background: linear-gradient(135deg, rgba(40, 54, 105, 0.5) 0%, rgba(15, 23, 56, 0.7) 100%);
  border-color: rgba(229,196,74,0.35);
}
.vision-card[data-featured="true"]::after {
  content: "★ FEATURED";
  position: absolute;
  top: 16px; right: 16px;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: rgba(229,196,74,0.12);
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(229,196,74,0.3);
}

.card-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(248,244,234,0.4);
  margin-bottom: 16px;
}

.card-icon {
  width: 60px; height: 60px;
  margin-bottom: 20px;
  color: var(--card-accent);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--card-accent) 40%, transparent));
}
.card-icon svg {
  width: 100%; height: 100%;
}

.vision-card h3 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 500;
  color: #f8f4ea;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.vision-card p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(248, 244, 234, 0.7);
  margin: 0 0 20px;
}

.card-tag {
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--card-accent);
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px dashed rgba(229,196,74,0.18);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bonus row — napříč fázemi */
.vision-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 32px;
  border-top: 1px solid rgba(229,196,74,0.18);
  border-bottom: 1px solid rgba(229,196,74,0.18);
  background: rgba(229,196,74,0.03);
  border-radius: 0;
}
.bonus-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-right: 8px;
}
.bonus-items {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(248, 244, 234, 0.85);
}
.bonus-items .sep {
  color: rgba(229,196,74,0.5);
  font-style: normal;
}

/* Responsive */
@media (max-width: 1024px) {
  .vision-2042 { padding: 100px 0 120px; }
  .vision-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .phase-connector { display: none; }
  .vision-header { margin-bottom: 60px; }
}
@media (max-width: 640px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-card { padding: 26px 22px; }
}

/* ============================================================
   v2 — GLASSMORPHISM UPGRADE existujících sekcí (Fáze 3)
   Sjednocuje vzhled Pilířů, Týmu a CTA s novou Vize 2042
   ============================================================ */

/* ── Pilíře — full glass cards ── */
.pillar-grid {
  gap: 22px !important;
  padding: 0 8px;
}
.pillars .pillar {
  position: relative;
  border-right: none !important;
  padding: 56px 36px !important;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 56, 0.55) 0%, rgba(13, 19, 48, 0.35) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229,196,74,0.15);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s,
    box-shadow 0.5s,
    background 0.4s;
  isolation: isolate;
}
.pillars .pillar::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(229,196,74,0) 0%, rgba(229,196,74,0.55) 50%, rgba(229,196,74,0) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}
.pillars .pillar:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(40, 54, 105, 0.45) 0%, rgba(15, 23, 56, 0.55) 100%);
  border-color: rgba(229,196,74,0.42);
  box-shadow:
    0 16px 50px rgba(229,196,74,0.14),
    0 0 80px rgba(40,54,105,0.45);
}
.pillars .pillar:hover::before { opacity: 1; }

/* ── Tým — light glass cards (cream bg → white glass with gold-rim glow) ── */
.team .member {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(253, 248, 231, 0.7) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 196, 74, 0.18) !important;
  border-radius: 12px;
  position: relative;
  isolation: isolate;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s,
    box-shadow 0.5s !important;
}
.team .member::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(229,196,74,0) 0%, rgba(229,196,74,0.6) 50%, rgba(229,196,74,0) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  pointer-events: none;
}
.team .member:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(229, 196, 74, 0.55) !important;
  box-shadow:
    0 18px 55px rgba(229, 196, 74, 0.18),
    0 8px 30px rgba(40, 54, 105, 0.15) !important;
}
.team .member:hover::after { opacity: 1; }

.team .member.ai-member {
  background: linear-gradient(135deg, rgba(253, 248, 231, 0.95) 0%, rgba(248, 234, 178, 0.6) 100%) !important;
  border-color: rgba(229, 196, 74, 0.4) !important;
}

/* ── CTA-final — gold-rim glow ring around hero text ── */
.cta-final::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 880px; height: 880px;
  max-width: 95vw; max-height: 95vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(229, 196, 74, 0.18);
  box-shadow:
    inset 0 0 80px rgba(229, 196, 74, 0.05),
    0 0 100px rgba(229, 196, 74, 0.08);
  pointer-events: none;
  z-index: 1;
  animation: cta-ring-pulse 8s ease-in-out infinite;
}
@keyframes cta-ring-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1.0; transform: translate(-50%, -50%) scale(1.04); }
}

/* ── Section dividers — gold gradient between sections ── */
.world::before,
.pillars::after,
.vision-2042::after,
.approach::after,
.team::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 900px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(229, 196, 74, 0.45), transparent);
  z-index: 5;
}
.world::before { top: 0; }
.pillars::after { bottom: 0; }
.vision-2042::after { bottom: 0; }
.approach::after { bottom: 0; }
.team::before { top: 0; }

/* ── Holographic accent on em (italic gold) — works across all sections ── */
.pillars h2 em,
.world h2 em,
.approach h2 em,
.team h2 em,
.cta-final h2 em {
  position: relative;
  background: linear-gradient(135deg, #ffeaa3 0%, #e5c44a 50%, #c89a23 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   v2 — SMART GRID 5 vrstev (Fáze 5)
   ============================================================ */
.grid-arch {
  position: relative;
  padding: 140px 0 160px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, #0d1a3e 0%, transparent 70%),
    linear-gradient(180deg, #050a1f 0%, #0a1230 50%, #050a1f 100%);
  color: #f0eeda;
  overflow: hidden;
  isolation: isolate;
}
.grid-arch::before,
.grid-arch::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,196,74,0.4) 50%, transparent 100%);
  z-index: 5;
}
.grid-arch::before { top: 0; }
.grid-arch::after  { bottom: 0; }

/* Background grid pattern — engineering blueprint feel */
.grid-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 196, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.grid-bg-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
}
.grid-bg-glow--cyan {
  top: 8%; left: -120px;
  background: radial-gradient(circle, #4a8fd8 0%, transparent 65%);
  animation: grid-glow-drift-a 26s ease-in-out infinite;
}
.grid-bg-glow--gold {
  bottom: 4%; right: -160px;
  background: radial-gradient(circle, #c79a2c 0%, transparent 65%);
  animation: grid-glow-drift-b 32s ease-in-out infinite;
}
@keyframes grid-glow-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes grid-glow-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-80px, -50px); }
}

.grid-arch-inner {
  position: relative;
  z-index: 2;
}

.grid-arch-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.grid-arch-header .kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(229, 196, 74, 0.4);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(229, 196, 74, 0.06);
  margin-bottom: 22px;
}
.grid-arch h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f8f4ea;
  margin-bottom: 22px;
}
.grid-arch h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #ffe28a 0%, #fff5d0 50%, #c79a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grid-arch-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(248, 244, 234, 0.78);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Stack of 5 layers ────────────────────────────────────── */
.grid-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.grid-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grid-layer {
  position: relative;
  display: grid;
  grid-template-columns: 100px 88px 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 36px;
  background: linear-gradient(135deg, rgba(248, 244, 234, 0.04) 0%, rgba(248, 244, 234, 0.02) 100%);
  border: 1px solid rgba(248, 244, 234, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color 0.4s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease,
    background 0.4s ease;
  z-index: 2;
}
/* Color accent strip — left edge of each layer */
.grid-layer::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: -1px;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(var(--layer-color), 0.85) 50%,
    transparent 100%);
  border-radius: 2px;
  transition: top 0.4s, bottom 0.4s, opacity 0.4s;
}
/* Subtle inner glow on hover */
.grid-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 60% 100% at 0% 50%,
    rgba(var(--layer-color), 0.12) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.grid-layer:hover {
  border-color: rgba(var(--layer-color), 0.45);
  transform: translateX(6px);
  box-shadow:
    0 0 0 1px rgba(var(--layer-color), 0.18),
    0 24px 60px -20px rgba(var(--layer-color), 0.35);
  background: linear-gradient(135deg, rgba(248, 244, 234, 0.06) 0%, rgba(248, 244, 234, 0.025) 100%);
}
.grid-layer:hover::before { top: 0; bottom: 0; }
.grid-layer:hover::after  { opacity: 1; }

.layer-num {
  position: relative;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  color: rgba(var(--layer-color), 0.55);
  letter-spacing: -0.02em;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.layer-num span {
  display: inline-block;
}
.grid-layer:hover .layer-num {
  color: rgba(var(--layer-color), 0.95);
  text-shadow: 0 0 28px rgba(var(--layer-color), 0.4);
}

.layer-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--layer-color), 0.32);
  border-radius: 14px;
  background: rgba(var(--layer-color), 0.06);
  color: rgba(var(--layer-color), 0.85);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.layer-icon svg {
  width: 56px;
  height: 56px;
}
.grid-layer:hover .layer-icon {
  border-color: rgba(var(--layer-color), 0.7);
  background: rgba(var(--layer-color), 0.12);
  color: rgb(var(--layer-color));
}

.layer-info h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #f8f4ea;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vendor-tag {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(var(--layer-color), 0.45);
  color: rgb(var(--layer-color));
  border-radius: 4px;
  background: rgba(var(--layer-color), 0.08);
}
.layer-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--layer-color), 0.75);
  margin: 0 0 16px;
  font-weight: 500;
}
.layer-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.05s;
}
.layer-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(248, 244, 234, 0.78);
}
.layer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: rgba(var(--layer-color), 0.85);
}
.grid-layer:hover .layer-points {
  max-height: 320px;
  opacity: 1;
}

/* ── Footer stats row ─────────────────────────────────────── */
.grid-arch-footer {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  padding-top: 48px;
  border-top: 1px solid rgba(229, 196, 74, 0.18);
}
.grid-stat {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(248, 244, 234, 0.025);
  border: 1px solid rgba(248, 244, 234, 0.06);
  transition: border-color 0.3s, background 0.3s;
}
.grid-stat:hover {
  border-color: rgba(229, 196, 74, 0.35);
  background: rgba(229, 196, 74, 0.04);
}
.grid-stat-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 6px;
}
.grid-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.6);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-arch { padding: 100px 0 120px; }
  .grid-layer {
    grid-template-columns: 80px 64px 1fr;
    gap: 22px;
    padding: 22px 24px;
  }
  .layer-num { font-size: 52px; }
  .layer-icon { width: 64px; height: 64px; }
  .layer-icon svg { width: 40px; height: 40px; }
  .layer-points { grid-template-columns: 1fr; gap: 8px; }
  .grid-arch-footer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-layer {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
  }
  .layer-num { margin: 0 auto; }
  .layer-icon { margin: 0 auto; }
  .layer-info h3 { justify-content: center; }
  .layer-points { text-align: left; }
  .grid-arch-footer { grid-template-columns: 1fr 1fr; }
  .grid-stat-num { font-size: 24px; }
}

/* ============================================================
   v2 — POLISH (Fáze 6): Boot screen + Custom cursor + Scan-lines
   ============================================================ */

/* ── Boot screen — 22nd-century intro ─────────────────────── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: radial-gradient(ellipse at center, #0e1638 0%, #050a1f 70%, #02050f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.6, 0.05, 0.2, 1);
  pointer-events: all;
}
.boot-screen.boot-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.7s, visibility 0s 0.7s;
}
.boot-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 196, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 90%);
}
.boot-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(229, 196, 74, 0.08) 50%,
    transparent 100%
  );
  background-size: 100% 6px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  animation: boot-scan 4s linear infinite;
}
@keyframes boot-scan {
  0%   { background-position: 0 -100vh; }
  100% { background-position: 0 100vh; }
}
.boot-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.boot-brand {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 64px;
  color: #f8f4ea;
  letter-spacing: -0.01em;
  line-height: 1;
}
.boot-brand-dot {
  color: var(--gold);
  font-style: italic;
}

/* Boot screen — wordmark variant (used on dark navy boot bg) */
.boot-brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  line-height: 0;
}
.boot-brand-wordmark img {
  height: 100%;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .boot-brand-wordmark { height: 54px; }
}
.boot-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.6);
}
.boot-meta-sep { color: var(--gold); }
.boot-meta-time { color: var(--gold); }
.boot-counter-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
}
.boot-counter {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 92px;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(229, 196, 74, 0.4);
}
.boot-counter-pct {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(229, 196, 74, 0.6);
  letter-spacing: 0.1em;
}
.boot-progress {
  width: 280px;
  height: 1px;
  background: rgba(229, 196, 74, 0.18);
  margin-top: 8px;
  overflow: hidden;
}
.boot-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), #fff5c2, var(--gold));
  box-shadow: 0 0 12px rgba(229, 196, 74, 0.7);
  transition: width 60ms linear;
}
.boot-status {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.55);
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
  min-height: 16px;
}

/* ── Custom cursor ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  transform: translate(-100px, -100px);
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor--dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(229, 196, 74, 0.7);
  mix-blend-mode: normal;
}
.cursor--ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(229, 196, 74, 0.55);
  background: rgba(229, 196, 74, 0.02);
}
.cursor--ring.is-hover {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: rgba(229, 196, 74, 0.85);
  background: rgba(229, 196, 74, 0.08);
}
.cursor--ring.is-press {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}
/* Hide native cursor when custom one is active */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor [role="button"] {
  cursor: none !important;
}
/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body.has-custom-cursor { cursor: auto !important; }
}

/* ── Scan-line FX on mission readouts ─────────────────────── */
/* NOTE: .hero-readout already has position:absolute (line ~492) — DON'T override.
   Just add overflow clipping for the scan-line ::after pseudo-element. */
.hero-readout {
  overflow: hidden;
}
.hero-readout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(229, 196, 74, 0) 20%,
    rgba(229, 196, 74, 0.85) 50%,
    rgba(229, 196, 74, 0) 80%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  animation: readout-scan 6s ease-in-out infinite;
}
.hero-readout.readout-tr::after { animation-delay: 1.5s; }
.hero-readout.readout-br::after { animation-delay: 3s; }
@keyframes readout-scan {
  0%   { opacity: 0; transform: translateY(0); }
  8%   { opacity: 0.85; }
  45%  { opacity: 0.85; transform: translateY(20px); }
  55%  { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0; transform: translateY(20px); }
}
/* Subtle flicker on the readout text — every ~7s */
.hero-readout span:not(.readout-sep) {
  animation: readout-flicker 9s steps(1, end) infinite;
}
.hero-readout.readout-tr span:not(.readout-sep) { animation-delay: 3s; }
.hero-readout.readout-br span:not(.readout-sep) { animation-delay: 6s; }
@keyframes readout-flicker {
  0%, 96%, 100% { opacity: 1; }
  97%           { opacity: 0.4; }
  97.5%         { opacity: 1; }
  98%           { opacity: 0.6; }
  98.5%         { opacity: 1; }
}

/* ============================================================
   v2 — REVEAL animations (Fáze 2 — scroll-triggered)
   ============================================================ */
.v2-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.v2-reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Lenis recommended html/body setup */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============================================================
   SLUŽBY (#sluzby) — Mzdové účetnictví & personalistika
   v2.15 (2026-05-08) — umbrella brand 'Elvian'
   ============================================================ */
.services {
  background: var(--cream);
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(77,212,196,0.10), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(40,54,105,0.05), transparent 50%);
  pointer-events: none;
}
.services-header {
  max-width: 880px;
  margin: 0 auto 72px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.services-header h2 {
  color: var(--navy);
  margin-bottom: 22px;
}
.services-header h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #c9a730 0%, #e5c44a 50%, #c9a730 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.services-header p {
  color: rgba(40,54,105,0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; max-width: 620px; }
}
.service-card {
  background: #ffffff;
  border: 1px solid rgba(40,54,105,0.08);
  border-radius: 14px;
  padding: 36px 32px 32px;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(77,212,196,0.10), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43,168,146,0.50);
  box-shadow: 0 20px 50px -25px rgba(40,54,105,0.25);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #2ba892;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--navy);
  margin-bottom: 18px;
  opacity: 0.85;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: rgba(40,54,105,0.72);
  font-size: 0.97rem;
  line-height: 1.62;
  margin: 0 0 22px;
}
.service-points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(40,54,105,0.08);
  padding-top: 18px;
}
.service-points li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.9rem;
  color: rgba(40,54,105,0.78);
  line-height: 1.45;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1.5px;
  background: #2ba892;
}
.services-cta {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 2;
}
.services-tag {
  color: rgba(40,54,105,0.65);
  font-size: 0.95rem;
  margin: 0 0 22px;
}
.services-tag strong {
  color: var(--navy);
  font-weight: 600;
}

/* — Vlastní zaměstnanecký portál — featured callout — */
.services-highlight {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(77,212,196,0.10), rgba(77,212,196,0.04));
  border: 1px solid rgba(43,168,146,0.30);
  border-radius: 16px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .services-highlight {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .services-highlight-icon { margin: 0 auto; }
}
.services-highlight-icon {
  width: 88px;
  height: 88px;
  color: #2ba892;
  opacity: 0.85;
}
.services-highlight-icon svg { width: 100%; height: 100%; }
.services-highlight-eyebrow {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #2ba892;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.services-highlight h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.services-highlight h3 em {
  color: #2ba892;
  font-style: italic;
}
.services-highlight p {
  color: rgba(40,54,105,0.78);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   ROZCESTNÍK (#cesta) — Pro koho jsme
   v2.16 (2026-05-08) — variant A: branching cards
   ============================================================ */
.crossroad {
  position: relative;
  background: var(--cream-warm);
  padding: 110px 0 130px;
  overflow: hidden;
}
.crossroad::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(229,196,74,0.07), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(77,212,196,0.08), transparent 55%);
  pointer-events: none;
}
.crossroad-header {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.crossroad-header h2 {
  color: var(--navy);
  margin: 16px 0 18px;
}
.crossroad-header h2 em {
  color: var(--navy-deep);
  font-style: italic;
  opacity: 0.62;
}
.crossroad-lead {
  color: rgba(40,54,105,0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}
.crossroad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .crossroad-grid { grid-template-columns: 1fr; max-width: 560px; }
}
.crossroad-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 18px;
  padding: 40px 38px 36px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.crossroad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.crossroad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -28px rgba(40,54,105,0.30);
}
.crossroad-card:hover::before { opacity: 1; }
.crossroad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.crossroad-num {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  text-transform: uppercase;
}
.crossroad-icon {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}
.crossroad-icon svg { width: 100%; height: 100%; }
.crossroad-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.crossroad-card h3 em {
  font-style: italic;
}
.crossroad-card > p {
  color: rgba(40,54,105,0.74);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
}
.crossroad-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crossroad-tags li {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(40,54,105,0.14);
  color: rgba(40,54,105,0.70);
  background: rgba(255,255,255,0.6);
}
.crossroad-cta {
  margin-top: auto;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(40,54,105,0.10);
  transition: gap .3s ease, color .3s ease;
}
.crossroad-card:hover .crossroad-cta {
  gap: 14px;
}

/* — INFRA card (gold) — */
.crossroad-card.infra .crossroad-num,
.crossroad-card.infra .crossroad-icon { color: var(--gold); }
.crossroad-card.infra::before {
  background:
    linear-gradient(180deg, rgba(229,196,74,0.10), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(229,196,74,0.16), transparent 50%);
}
.crossroad-card.infra:hover {
  border-color: rgba(229,196,74,0.55);
}
.crossroad-card.infra .crossroad-tags li {
  border-color: rgba(229,196,74,0.35);
  color: rgba(180,140,30,0.95);
  background: rgba(229,196,74,0.08);
}
.crossroad-card.infra:hover .crossroad-cta {
  color: #b48c1e;
}

/* — SERVICES card (teal) — */
.crossroad-card.services .crossroad-num,
.crossroad-card.services .crossroad-icon { color: #2ba892; }
.crossroad-card.services::before {
  background:
    linear-gradient(180deg, rgba(77,212,196,0.10), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(77,212,196,0.16), transparent 50%);
}
.crossroad-card.services:hover {
  border-color: rgba(43,168,146,0.55);
}
.crossroad-card.services .crossroad-tags li {
  border-color: rgba(43,168,146,0.32);
  color: #1d7b6a;
  background: rgba(77,212,196,0.08);
}
.crossroad-card.services:hover .crossroad-cta {
  color: #1d7b6a;
}

/* ============================================================
   SMART GRID — 5-vrstvá architektura sítě (#grid)
   v2.18 (2026-05-08) — restored from backup
   ============================================================ */
.grid-arch {
  position: relative;
  padding: 140px 0 160px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, #0d1a3e 0%, transparent 70%),
    linear-gradient(180deg, #050a1f 0%, #0a1230 50%, #050a1f 100%);
  color: #f0eeda;
  overflow: hidden;
  isolation: isolate;
}
.grid-arch::before,
.grid-arch::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229,196,74,0.4) 50%, transparent 100%);
  z-index: 5;
}
.grid-arch::before { top: 0; }
.grid-arch::after  { bottom: 0; }

.grid-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 196, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.grid-bg-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
}
.grid-bg-glow--cyan {
  top: 8%; left: -120px;
  background: radial-gradient(circle, #4a8fd8 0%, transparent 65%);
  animation: grid-glow-drift-a 26s ease-in-out infinite;
}
.grid-bg-glow--gold {
  bottom: 4%; right: -160px;
  background: radial-gradient(circle, #c79a2c 0%, transparent 65%);
  animation: grid-glow-drift-b 32s ease-in-out infinite;
}
@keyframes grid-glow-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes grid-glow-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-80px, -50px); }
}

.grid-arch-inner {
  position: relative;
  z-index: 2;
}

.grid-arch-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.grid-arch-header .kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(229, 196, 74, 0.4);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(229, 196, 74, 0.06);
  margin-bottom: 22px;
}
.grid-arch h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f8f4ea;
  margin-bottom: 22px;
}
.grid-arch h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #ffe28a 0%, #fff5d0 50%, #c79a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grid-arch-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(248, 244, 234, 0.78);
  max-width: 720px;
  margin: 0 auto;
}

.grid-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.grid-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grid-layer {
  position: relative;
  display: grid;
  grid-template-columns: 100px 88px 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 36px;
  background: linear-gradient(135deg, rgba(248, 244, 234, 0.04) 0%, rgba(248, 244, 234, 0.02) 100%);
  border: 1px solid rgba(248, 244, 234, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color 0.4s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease,
    background 0.4s ease;
  z-index: 2;
}
.grid-layer::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: -1px;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(var(--layer-color), 0.85) 50%,
    transparent 100%);
  border-radius: 2px;
  transition: top 0.4s, bottom 0.4s, opacity 0.4s;
}
.grid-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 60% 100% at 0% 50%,
    rgba(var(--layer-color), 0.12) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.grid-layer:hover {
  border-color: rgba(var(--layer-color), 0.45);
  transform: translateX(6px);
  box-shadow:
    0 0 0 1px rgba(var(--layer-color), 0.18),
    0 24px 60px -20px rgba(var(--layer-color), 0.35);
  background: linear-gradient(135deg, rgba(248, 244, 234, 0.06) 0%, rgba(248, 244, 234, 0.025) 100%);
}
.grid-layer:hover::before { top: 0; bottom: 0; }
.grid-layer:hover::after  { opacity: 1; }

.layer-num {
  position: relative;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  color: rgba(var(--layer-color), 0.55);
  letter-spacing: -0.02em;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.layer-num span {
  display: inline-block;
}
.grid-layer:hover .layer-num {
  color: rgba(var(--layer-color), 0.95);
  text-shadow: 0 0 28px rgba(var(--layer-color), 0.4);
}

.layer-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--layer-color), 0.32);
  border-radius: 14px;
  background: rgba(var(--layer-color), 0.06);
  color: rgba(var(--layer-color), 0.85);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.layer-icon svg {
  width: 56px;
  height: 56px;
}
.grid-layer:hover .layer-icon {
  border-color: rgba(var(--layer-color), 0.7);
  background: rgba(var(--layer-color), 0.12);
  color: rgb(var(--layer-color));
}

.layer-info h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #f8f4ea;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vendor-tag {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(var(--layer-color), 0.45);
  color: rgb(var(--layer-color));
  border-radius: 4px;
  background: rgba(var(--layer-color), 0.08);
}
.layer-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--layer-color), 0.75);
  margin: 0 0 16px;
  font-weight: 500;
}
.layer-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.05s;
}
.layer-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(248, 244, 234, 0.78);
}
.layer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: rgba(var(--layer-color), 0.85);
}
.grid-layer:hover .layer-points {
  max-height: 320px;
  opacity: 1;
}

.grid-arch-footer {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  padding-top: 48px;
  border-top: 1px solid rgba(229, 196, 74, 0.18);
}
.grid-stat {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(248, 244, 234, 0.025);
  border: 1px solid rgba(248, 244, 234, 0.06);
  transition: border-color 0.3s, background 0.3s;
}
.grid-stat:hover {
  border-color: rgba(229, 196, 74, 0.35);
  background: rgba(229, 196, 74, 0.04);
}
.grid-stat-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 6px;
}
.grid-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.6);
}

@media (max-width: 1024px) {
  .grid-arch { padding: 100px 0 120px; }
  .grid-layer {
    grid-template-columns: 80px 64px 1fr;
    gap: 22px;
    padding: 22px 24px;
  }
  .layer-num { font-size: 52px; }
  .layer-icon { width: 64px; height: 64px; }
  .layer-icon svg { width: 40px; height: 40px; }
  .layer-points { grid-template-columns: 1fr; gap: 8px; }
  .grid-arch-footer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-layer {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
  }
  .layer-num { margin: 0 auto; }
  .layer-icon { margin: 0 auto; }
  .layer-info h3 { justify-content: center; }
  .layer-points { text-align: left; }
  .grid-arch-footer { grid-template-columns: 1fr 1fr; }
  .grid-stat-num { font-size: 24px; }
}

/* ============================================================
   LANG SWITCHER — 4 jazyky (CS · SK · EN · UA), emoji flag-only
   v3 (2026-05-14): flag-only design, <li class="lang-switcher">
   inside <ul class="nav-links">; works on dark nav (default).
   For light navs (mzdy / legal) see styles-mzdy.css / styles-legal.css.
   ============================================================ */
.lang-switcher {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(248, 244, 234, 0.18);
  border-radius: 999px;
  background: rgba(248, 244, 234, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  list-style: none;
  cursor: default;
  transition: border-color 200ms ease, background 200ms ease;
}
.lang-switcher:hover {
  border-color: rgba(229, 196, 74, 0.45);
  background: rgba(248, 244, 234, 0.06);
}
.lang-switcher > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.55;
  filter: grayscale(35%);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease, background 180ms ease;
}
.lang-switcher > a:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
  background: rgba(248, 244, 234, 0.08);
}
.lang-switcher > a.active {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(229, 196, 74, 0.15);
  box-shadow: 0 0 0 1px rgba(229, 196, 74, 0.40);
  cursor: default;
}
.lang-switcher > a.active:hover { transform: none; }

/* legacy lang-link (pro staré stránky pokud zbyly) */
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  color: rgba(248, 244, 234, 0.55);
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}
.lang-link:hover { color: var(--cream); background: rgba(248, 244, 234, 0.06); }
.lang-link.active {
  color: var(--gold);
  background: rgba(229, 196, 74, 0.10);
  cursor: default;
}
.lang-link .flag { font-size: 13px; line-height: 1; filter: saturate(1.1); }
.lang-sep { color: rgba(248, 244, 234, 0.25); font-weight: 400; }

@media (max-width: 768px) {
  .lang-switcher {
    padding: 4px 6px;
    gap: 2px;
  }
  .lang-switcher > a {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
}

/* ============================================================
   PARTNERSTVÍ (přidáno per Janin návrh 2026-05-13)
   ============================================================ */
.partnerstvi {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, var(--paper) 0%, #f6f7fa 100%);
  overflow: hidden;
}
.partnerstvi::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,196,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.partnerstvi::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(40,54,105,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.partnerstvi-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}
.partnerstvi-header .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
}
.partnerstvi-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.partnerstvi-header h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-dark, #c9a730) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.partnerstvi-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.partnerstvi-body p.lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body, #2a2a2a);
  margin-bottom: 18px;
  max-width: 640px;
}
.partnerstvi-body p.lead strong {
  color: var(--navy);
  font-weight: 600;
}
.partnerstvi-logos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.partner-badge {
  background: #fff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 12px 32px -22px rgba(40,54,105,0.18);
  position: relative;
}
.partner-badge::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--gold, #e5c44a) 30%, var(--gold, #e5c44a) 70%, transparent 100%);
  border-radius: 14px 0 0 14px;
}
.partner-badge-primary {
  background: linear-gradient(135deg, var(--navy, #283669) 0%, #1c2750 100%);
  color: #fff;
  border-color: transparent;
}
.partner-badge-primary .partner-badge-name {
  color: #fff;
}
.partner-badge-primary .partner-badge-area {
  color: rgba(255,255,255,0.7);
}
.partner-badge-primary::before {
  background: linear-gradient(180deg, var(--gold-light, #f0d671) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
}
.partner-badge-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 8px;
}
.partner-badge-primary .partner-badge-eyebrow {
  color: var(--gold, #e5c44a);
}
.partner-badge-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.partner-badge-area {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #6c6f7a);
}
@media (max-width: 900px) {
  .partnerstvi { padding: 80px 0 60px; }
  .partnerstvi-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============================================================
   v3 FULLTEXT (Janin doslovný obsah, 2026-05-13)
   ============================================================ */

/* HERO — Janin tagline */
.hero-tagline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(229,196,74,0.30);
  font-family: Georgia, 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(248,244,234,0.85);
  letter-spacing: 0.005em;
  max-width: 540px;
  line-height: 1.55;
}
.hero-tagline strong {
  color: var(--gold-light, #f0d671);
  font-weight: 500;
  font-style: normal;
}

/* WHO — PRINCIPLES BLOCK (4 pilíře) */
.principles-block {
  margin: 80px auto 60px;
  max-width: 1180px;
  padding: 0 24px;
  position: relative;
}
.principles-label {
  text-align: center;
  margin-bottom: 38px;
}
.principles-label .arch-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 14px;
}
.principles-label h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--navy, #283669);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.principles-label h3 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-dark, #c9a730) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.principle-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 12px;
  padding: 28px 22px 24px;
  box-shadow: 0 12px 32px -24px rgba(40,54,105,0.20);
  text-align: left;
}
.principle-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #e5c44a) 0%, var(--gold-light, #f0d671) 50%, var(--gold-dark, #c9a730) 100%);
  border-radius: 12px 12px 0 0;
}
.principle-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 14px;
}
.principle-icon svg { width: 100%; height: 100%; }
.principle-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(229,196,74,0.40);
  line-height: 1;
}
.principle-card h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.principle-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body, #2a2a2a);
}
@media (max-width: 980px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* WHO — CALLOUT (3. odstavec) */
.who-callout {
  margin: 60px auto 40px;
  max-width: 920px;
  padding: 0 24px;
}
.who-callout-body {
  background: linear-gradient(135deg, #faf6ec 0%, #fff 100%);
  border-left: 4px solid var(--gold, #e5c44a);
  padding: 28px 32px;
  border-radius: 0 10px 10px 0;
}
.who-callout-body p.lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body, #2a2a2a);
}
.who-callout-body p.lead strong {
  color: var(--navy);
  font-weight: 600;
}

/* WHO — PEOPLE callout (4. odstavec) */
.who-people {
  margin: 40px auto;
  max-width: 920px;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.who-people-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  color: var(--gold-dark, #c9a730);
  background: rgba(229,196,74,0.10);
  border-radius: 14px;
  padding: 10px;
}
.who-people-icon svg { width: 100%; height: 100%; }
.who-people-body { flex: 1; }
.who-people-eyebrow {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 6px;
}
.who-people-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.who-people-body p strong {
  color: var(--navy);
  font-weight: 600;
}

/* WHO — CLOSING (5. odstavec) */
.who-closing {
  margin: 30px auto 0;
  max-width: 820px;
  padding: 0 24px;
  text-align: center;
}
.who-closing-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.who-closing-text strong {
  font-weight: 600;
  background: linear-gradient(120deg, var(--gold-dark, #c9a730) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 700px) {
  .who-people { flex-direction: column; }
}

/* SLUŽBY — service-card-large + fulltext rozšíření */
.service-card-large {
  grid-column: span 1;
  padding: 36px 32px 32px !important;
  display: flex;
  flex-direction: column;
}
@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
  }
}
.service-card-large p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body, #2a2a2a);
  margin-bottom: 10px;
}
.service-card-large p strong {
  color: var(--navy);
  font-weight: 600;
}
.service-lead {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--navy) !important;
  margin-bottom: 14px !important;
}
.service-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 17px !important;
  line-height: 1.4 !important;
  color: var(--navy) !important;
  margin: 6px 0 16px !important;
  padding-left: 14px;
  border-left: 2px solid var(--gold, #e5c44a);
}
.service-quote em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-dark, #c9a730) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}
.service-closing {
  margin-top: 14px !important;
  padding: 12px 16px;
  background: rgba(229,196,74,0.08);
  border-radius: 6px;
  font-size: 13.5px !important;
}

/* SPLIT — dvousloupcový bullet list pro mzdy/HR */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0 4px;
}
.service-split-col {
  background: rgba(40,54,105,0.03);
  border-radius: 8px;
  padding: 14px 14px 10px;
}
.service-split-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 8px;
}
.service-split-col .service-points li {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  padding: 3px 0 3px 16px !important;
}
@media (max-width: 700px) {
  .service-split { grid-template-columns: 1fr; }
}

/* STATS row pro mzdy (z propagace prezentace) */
.service-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(40,54,105,0.10);
}
.service-stat {
  text-align: center;
}
.service-stat strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.service-stat span {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #6c6f7a);
  line-height: 1.3;
}

/* PILLBAR pro Monetizace */
.service-pillbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(229,196,74,0.12);
  color: var(--navy);
  border: 1px solid rgba(229,196,74,0.30);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* REFERENCES — nová sekce */
.references {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--paper, #fff) 0%, #f6f7fa 100%);
}
.references-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
  padding: 0 24px;
}
.references-header .eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
}
.references-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.references-header h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-dark, #c9a730) 0%, var(--gold, #e5c44a) 50%, var(--gold-dark, #c9a730) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.references-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted, #6c6f7a);
}
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.reference-card {
  background: #fff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 12px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 12px 30px -24px rgba(40,54,105,0.18);
}
.reference-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.reference-area {
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 12px;
}
.reference-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}
.reference-placeholder {
  background: rgba(40,54,105,0.03);
  border-style: dashed;
}
.reference-logo-placeholder {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  color: rgba(229,196,74,0.50);
  margin-bottom: 8px;
  line-height: 1;
}

/* PARTNERSTVÍ — feature hero + 3 sloupce */
.partnerstvi-intro-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
  max-width: 720px;
  margin: 18px auto 0;
}
.partnerstvi-intro-lead strong {
  color: var(--navy);
  font-weight: 600;
}
.partner-feature {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 50px auto;
  padding: 48px 44px;
  background: linear-gradient(135deg, var(--navy, #283669) 0%, #1c2750 100%);
  color: #fff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.partner-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #e5c44a) 0%, var(--gold-light, #f0d671) 50%, var(--gold-dark, #c9a730) 100%);
}
.partner-feature::after {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(229,196,74,0.18) 0%, rgba(229,196,74,0) 65%);
  pointer-events: none;
}
.partner-feature-badge {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(229,196,74,0.35);
  border-radius: 12px;
  text-align: center;
}
.partner-feature-eyebrow {
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold, #e5c44a);
  margin-bottom: 10px;
}
.partner-feature-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 12px;
}
.partner-feature-area {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.5;
}
.partner-feature-quote {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.005em;
  padding-left: 30px;
}
.partner-feature-quote em {
  color: var(--gold-light, #f0d671);
  font-style: italic;
}
.partner-feature-quote .quote-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 70px;
  color: var(--gold, #e5c44a);
  line-height: 0.4;
  margin-left: -8px;
  margin-bottom: 4px;
  opacity: 0.6;
}
.partnerstvi-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.three-col-card {
  background: #fff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 12px;
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 12px 30px -24px rgba(40,54,105,0.18);
}
.three-col-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold, #e5c44a) 0%, var(--gold-dark, #c9a730) 100%);
  border-radius: 12px 12px 0 0;
}
.three-col-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 32px;
  color: var(--gold-dark, #c9a730);
  line-height: 1;
  margin-bottom: 10px;
}
.three-col-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.three-col-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}
.three-col-card p strong {
  color: var(--navy);
  font-weight: 600;
}
@media (max-width: 920px) {
  .partner-feature {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }
  .partner-feature-quote { padding-left: 0; text-align: center; }
  .partnerstvi-three-col { grid-template-columns: 1fr; }
}

/* CONTACT — rozšířený text */
.contact-lead {
  font-size: 17px !important;
  line-height: 1.55 !important;
  margin-bottom: 16px !important;
}
.contact-lead strong { color: var(--gold-light, #f0d671); font-weight: 600; }
.contact-body {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
  opacity: 0.88;
}
.contact-body strong { color: var(--gold-light, #f0d671); font-weight: 600; }
.contact-cta {
  margin-top: 14px !important;
}

/* ============================================================
   REFERENCE v2 — 4 karty s logy + citacemi (2026-05-13)
   ============================================================ */
.references-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1240px !important;
}
.reference-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(40,54,105,0.10);
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-align: left !important;
  box-shadow: 0 16px 40px -28px rgba(40,54,105,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.reference-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #e5c44a) 0%, var(--gold-light, #f0d671) 50%, var(--gold-dark, #c9a730) 100%);
  border-radius: 14px 14px 0 0;
  opacity: 0.7;
}
.reference-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px -24px rgba(40,54,105,0.30);
}
.reference-card:hover::before {
  opacity: 1;
}
.reference-logo-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(40,54,105,0.08);
}
.reference-logo-img {
  max-width: 160px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(0.95);
}
.reference-logo-square {
  max-height: 60px;
  max-width: 70px;
}
/* Wordmark fallback (eMedic Development) — typografická náhrada loga */
.reference-wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--navy, #283669);
  line-height: 1;
}
.wordmark-e {
  color: var(--gold-dark, #c9a730);
  font-weight: 700;
  font-size: 32px;
}
.wordmark-rest {
  color: var(--navy);
}
.wordmark-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #6c6f7a);
  margin-top: 6px;
}

.reference-area {
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark, #c9a730);
  margin-bottom: 12px !important;
  line-height: 1.3;
}
.reference-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--navy, #283669);
  margin-bottom: 14px;
  position: relative;
  padding-left: 12px;
  border-left: 2px solid var(--gold, #e5c44a);
  flex: 1;
}
.reference-meta {
  font-size: 11px;
  color: var(--muted, #6c6f7a);
  letter-spacing: 0.02em;
  line-height: 1.45;
  padding-top: 12px;
  border-top: 1px solid rgba(40,54,105,0.06);
  margin-top: auto;
}
.references-footnote {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--muted, #6c6f7a);
  margin: 32px auto 0;
  max-width: 720px;
  padding: 0 24px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .references-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .references-grid { grid-template-columns: 1fr; }
}

/* Footer legal links (technologie stránka — sci-fi tema) */
.foot-bot-legal {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
}
.foot-bot-legal a {
  color: #e5c44a;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.foot-bot-legal a:hover {
  color: #f0d671;
  text-decoration: underline;
}
.foot-bot-legal .foot-sep { color: rgba(229, 196, 74, 0.35); }
@media (max-width: 700px) {
  .foot-bot { flex-direction: column; gap: 10px; text-align: center; }
  .foot-bot-legal { justify-content: center; flex-wrap: wrap; }
}
