/* ================================================================
   STONEPEAK CONSTRUCTION — Demo prezentační web
   Design: dark luxury / minimal / Awwwards-level motion
   ================================================================ */

/* ---------------------------------------------------------------
   1. ROOT VARIABLES
   --------------------------------------------------------------- */
:root{
  /* Colors */
  --c-black:        #050506;
  --c-graphite:     #0d0d10;
  --c-dark:         #16161a;
  --c-gray:         #232328;
  --c-gray-light:   #3a3a42;
  --c-white:        #f6f5f2;
  --c-white-dim:    rgba(246,245,242,0.68);
  --c-white-faint:  rgba(246,245,242,0.38);

  --c-gold:         #cba969;
  --c-gold-light:   #e9d6a8;
  --c-gold-dim:     rgba(203,169,105,0.35);

  --c-blue:         #4f7bff;
  --c-blue-glow:    rgba(79,123,255,0.35);

  /* Gradients */
  --grad-gold: linear-gradient(120deg, #a9834a, #e9d6a8 45%, #cba969 75%, #8a6a3c);
  --grad-dark: linear-gradient(180deg, rgba(5,5,6,0) 0%, rgba(5,5,6,0.9) 100%);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing / layout */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-w: 1360px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1s;
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }

html{
  scroll-behavior: smooth;
}

html, body{ background: var(--c-black); }

body{
  font-family: var(--font-body);
  color: var(--c-white);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ list-style: none; }
input, textarea, select{ font: inherit; color: inherit; }

::selection{ background: var(--c-gold); color: var(--c-black); }

.section-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

section{ position: relative; }

/* Reusable heading tags */
.section-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 18px;
}
.section-tag.center{ justify-content: center; width: 100%; }
.eyebrow-line{ width: 28px; height: 1px; background: var(--c-gold); display: inline-block; }

.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head{ max-width: 640px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center{ max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

.text-gold{ color: var(--c-gold-light); }

/* ---------------------------------------------------------------
   3. SCROLL REVEAL ANIMATION SYSTEM
   --------------------------------------------------------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------------------------------------------------------------
   4. PRELOADER
   --------------------------------------------------------------- */
.preloader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.preloader.loaded{ opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner{ display: flex; flex-direction: column; align-items: center; gap: 18px; }

.preloader-mark{ color: var(--c-gold-light); position: relative; }
.preloader-mark-fill{
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawMark 1.6s var(--ease-in-out) forwards infinite;
}
@keyframes drawMark{
  0%{ stroke-dashoffset: 220; }
  60%, 100%{ stroke-dashoffset: 0; }
}

.preloader-text{
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--c-white-dim);
}

.preloader-bar{ width: 160px; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.preloader-bar span{
  display: block; height: 100%; width: 40%;
  background: var(--grad-gold);
  animation: barSlide 1.4s var(--ease-in-out) infinite;
}
@keyframes barSlide{
  0%{ transform: translateX(-120%); }
  100%{ transform: translateX(320%); }
}

/* ---------------------------------------------------------------
   5. CURSOR GLOW (desktop)
   --------------------------------------------------------------- */
.cursor-glow, .cursor-dot{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-glow{
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-blue-glow) 0%, rgba(79,123,255,0) 70%);
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
}
.cursor-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-gold-light);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
body.cursor-active .cursor-glow,
body.cursor-active .cursor-dot{ opacity: 1; }
.cursor-dot.cursor-hover{ width: 44px; height: 44px; background: transparent; border: 1px solid var(--c-gold-light); }

@media (hover: none), (pointer: coarse){
  .cursor-glow, .cursor-dot{ display: none; }
}

/* ---------------------------------------------------------------
   6. SCROLL PROGRESS BAR
   --------------------------------------------------------------- */
.scroll-progress{
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--grad-gold);
  z-index: 8000;
  box-shadow: 0 0 12px var(--c-gold-dim);
}

/* ---------------------------------------------------------------
   7. GRAIN OVERLAY
   --------------------------------------------------------------- */
.grain-overlay{
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   8. NAVBAR
   --------------------------------------------------------------- */
.navbar{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 5000;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled{
  padding: 14px 0;
  background: rgba(5,5,6,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar.nav-hidden{ transform: translateY(-100%); }

.navbar-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.logo{ display: flex; align-items: center; gap: 10px; }
.logo-mark{ color: var(--c-gold-light); display: flex; }
.logo-text{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo-sub{
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--c-white-faint);
  font-weight: 500;
}

.nav-links{ display: flex; gap: clamp(18px, 2vw, 34px); }
.nav-links a{
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-white-dim);
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after{
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--c-gold-light);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover{ color: var(--c-white); }
.nav-links a:hover::after{ transform: scaleX(1); transform-origin: left; }

.navbar-actions{ display: flex; align-items: center; gap: 20px; }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px;
}
.nav-toggle span{
  width: 100%; height: 1px; background: var(--c-white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity: 0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0; top: 0;
  background: rgba(5,5,6,0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 48px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  z-index: 4999;
  pointer-events: none;
}
.mobile-menu.active{ transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu-links{ display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu-links a{ font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.mobile-menu-footer{ display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--c-white-dim); }

/* ---------------------------------------------------------------
   9. BUTTONS
   --------------------------------------------------------------- */
.btn{
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
  white-space: nowrap;
}
.btn svg{ transition: transform 0.3s var(--ease-out); }
.btn:hover svg{ transform: translateX(3px); }

.btn-primary{
  background: var(--grad-gold);
  background-size: 200% 200%;
  color: #1a1305;
  box-shadow: 0 8px 30px -8px rgba(203,169,105,0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(203,169,105,0.7); background-position: 100% 50%; }

.btn-outline{
  border: 1px solid rgba(246,245,242,0.28);
  color: var(--c-white);
}
.btn-outline:hover{ border-color: var(--c-gold-light); background: rgba(203,169,105,0.08); transform: translateY(-2px); }

.btn-ghost{
  color: var(--c-white);
  padding: 10px 20px;
  border: 1px solid rgba(246,245,242,0.18);
}
.btn-ghost:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }

.btn-small{ font-size: 0.82rem; padding: 10px 18px; }
.btn-large{ padding: 19px 38px; font-size: 1rem; }

/* Ripple */
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: rippleAnim 0.7s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes rippleAnim{
  to{ transform: scale(2.6); opacity: 0; }
}

/* ---------------------------------------------------------------
   10. HERO
   --------------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--c-black);
}

.hero-bg{ position: absolute; inset: 0; overflow: hidden; }

.hero-sky{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(203,169,105,0.14), transparent 60%),
    linear-gradient(180deg, #05060a 0%, #0a0c14 35%, #14131a 65%, #1b1710 100%);
}

.hero-sun{
  position: absolute;
  bottom: 8%; left: 50%;
  width: 480px; height: 480px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,214,168,0.55) 0%, rgba(203,169,105,0.22) 35%, rgba(203,169,105,0) 70%);
  filter: blur(4px);
  animation: sunPulse 8s ease-in-out infinite;
}
@keyframes sunPulse{
  0%, 100%{ opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%{ opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-skyline{
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2px;
}
.building{
  background: linear-gradient(180deg, #1a1a1e 0%, #0c0c0e 100%);
  position: relative;
  clip-path: polygon(0 100%, 0 6%, 50% 0, 100% 6%, 100% 100%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}
.building::before{
  content: '';
  position: absolute; inset: 10% 14%;
  background-image:
    repeating-linear-gradient(0deg, rgba(233,214,168,0.16) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(90deg, rgba(233,214,168,0.16) 0 2px, transparent 2px 22px);
  opacity: 0.5;
  animation: windowFlicker 6s ease-in-out infinite;
}
@keyframes windowFlicker{
  0%, 100%{ opacity: 0.35; }
  50%{ opacity: 0.65; }
}
.b1{ width: 9%; height: 55%; clip-path: polygon(0 100%,0 0,100% 0,100% 100%); }
.b2{ width: 11%; height: 78%; }
.b3{ width: 8%; height: 62%; clip-path: polygon(0 100%,0 0,100% 0,100% 100%); }
.b4{ width: 13%; height: 100%; }
.b5{ width: 9%; height: 70%; clip-path: polygon(0 100%,0 0,100% 0,100% 100%); }
.b6{ width: 10%; height: 48%; }

.crane{
  position: absolute; right: 8%; bottom: 0;
  width: 4px; height: 100%;
}
.crane-mast{
  position: absolute; bottom: 0; left: 0;
  width: 4px; height: 100%;
  background: repeating-linear-gradient(180deg, rgba(203,169,105,0.55) 0 2px, transparent 2px 16px);
}
.crane-jib{
  position: absolute; top: 0; left: 0;
  width: 160px; height: 3px;
  background: rgba(203,169,105,0.5);
  transform-origin: left center;
}
.crane-counter{
  position: absolute; top: 0; left: -46px;
  width: 46px; height: 3px;
  background: rgba(203,169,105,0.4);
}
.crane-hook{
  position: absolute; top: 0; left: 120px;
  width: 1px; height: 46px;
  background: rgba(203,169,105,0.4);
  animation: hookSway 5s ease-in-out infinite;
}
@keyframes hookSway{
  0%, 100%{ height: 46px; }
  50%{ height: 70px; }
}

.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift{
  0%{ background-position: 0 0, 0 0; }
  100%{ background-position: 120px 60px, 120px 60px; }
}

.hero-particles{ position: absolute; inset: 0; overflow: hidden; }
.particle{
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--c-gold-light);
  opacity: 0;
  animation: floatUp linear infinite;
  box-shadow: 0 0 8px 1px rgba(233,214,168,0.6);
}
@keyframes floatUp{
  0%{ transform: translateY(0) translateX(0); opacity: 0; }
  10%{ opacity: 0.8; }
  90%{ opacity: 0.4; }
  100%{ transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,6,0.55) 0%, rgba(5,5,6,0.25) 40%, rgba(5,5,6,0.75) 100%);
}

.hero-mouse-gradient{
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-blue-glow), transparent 70%);
  left: 0; top: 0;
  transform: translate(-50%,-50%);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-content{
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 28px;
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title .line{ display: block; overflow: hidden; }
.hero-title .word{
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  background: linear-gradient(180deg, var(--c-white) 40%, var(--c-white-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title.reveal .word{
  animation: wordUp 1.1s var(--ease-out) forwards;
}
.hero-title.reveal .line:nth-child(2) .word{ animation-delay: 0.12s; }
@keyframes wordUp{
  to{ transform: translateY(0); opacity: 1; }
}

.hero-subtitle{
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--c-white-dim);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 44px;
}

.hero-actions{ display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.scroll-down{
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
  color: var(--c-white-faint);
}
.scroll-down-text{ font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; }
.scroll-down-line{ width: 1px; height: 44px; background: rgba(255,255,255,0.15); overflow: hidden; position: relative; }
.scroll-down-line span{
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--c-gold-light);
  animation: scrollDown 2s var(--ease-in-out) infinite;
}
@keyframes scrollDown{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ---------------------------------------------------------------
   11. STATS
   --------------------------------------------------------------- */
.stats{
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--c-graphite);
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item{ text-align: center; position: relative; }
.stat-item::after{
  content: '';
  position: absolute; right: -16px; top: 10%; height: 80%; width: 1px;
  background: rgba(255,255,255,0.08);
}
.stat-item:last-child::after{ display: none; }
.stat-number{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex;
}
.stat-plus{ color: var(--c-gold-light); -webkit-text-fill-color: var(--c-gold-light); }
.stat-label{
  margin-top: 10px;
  color: var(--c-white-dim);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------
   12. SERVICES
   --------------------------------------------------------------- */
.services{ padding: var(--section-pad) 0; }

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card{
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, box-shadow 0.5s ease;
}
.service-card::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(203,169,105,0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before{ opacity: 1; }
.service-card:hover{
  transform: translateY(-8px);
  border-color: var(--c-gold-dim);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
}

.service-icon{
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(203,169,105,0.08);
  color: var(--c-gold-light);
  margin-bottom: 26px;
  transition: transform 0.5s var(--ease-out), background 0.4s ease;
}
.service-card:hover .service-icon{ transform: scale(1.08) rotate(-6deg); background: rgba(203,169,105,0.16); }

.service-card h3{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p{ color: var(--c-white-dim); font-size: 0.94rem; line-height: 1.6; }

.service-index{
  position: absolute; top: 28px; right: 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.18);
}

/* ---------------------------------------------------------------
   13. PORTFOLIO / GALLERY
   --------------------------------------------------------------- */
.portfolio{ padding: var(--section-pad) 0; background: var(--c-graphite); }

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.portfolio-item.span-2{ grid-column: span 2; }

.portfolio-item{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  isolation: isolate;
  cursor: zoom-in;
}

.portfolio-expand{
  position: absolute; top: 18px; right: 18px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  background: rgba(5,5,6,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), border-color 0.3s ease, color 0.3s ease;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-expand{
  opacity: 1;
  transform: scale(1);
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
}

.portfolio-media{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s var(--ease-out);
}
.portfolio-item:hover .portfolio-media{ transform: scale(1.08); }

.portfolio-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%);
  transition: opacity 0.4s ease;
}
.portfolio-item:hover .portfolio-media::after{ background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%); }

/* Distinct gradient "AI render" placeholder tones */
.ph-1{ background: linear-gradient(135deg, #1c2333, #35322a 60%, #171a20); }
.ph-2{ background: linear-gradient(135deg, #211c14, #3a2f1c 55%, #14100a); }
.ph-3{ background: linear-gradient(135deg, #1a1e2b, #262a38 55%, #10121a); }
.ph-4{ background: linear-gradient(135deg, #1e1b16, #2e2a22 55%, #121110); }
.ph-5{ background: linear-gradient(135deg, #23201c, #38332a 55%, #171512); }
.ph-6{ background: linear-gradient(135deg, #241c14, #443725 55%, #16110a); }
.ph-7{ background: linear-gradient(135deg, #171b22, #262f3c 55%, #0e1116); }
.ph-8{ background: linear-gradient(135deg, #201c15, #352c1c 55%, #141109); }
.ph-9{ background: linear-gradient(135deg, #191c26, #2b2e3a 55%, #101218); }

.portfolio-media img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.portfolio-item figcaption{
  position: absolute; left: 22px; bottom: 20px; right: 22px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out);
}
.portfolio-item:hover figcaption{ transform: translateY(0); }
.portfolio-cat{
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-gold-light);
}
.portfolio-title{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   14. WHY US
   --------------------------------------------------------------- */
.why-us{ padding: var(--section-pad) 0; }

.why-us-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.why-us-col:first-child{ position: sticky; top: 140px; }
.why-us-text{ color: var(--c-white-dim); font-size: 1.02rem; margin: 22px 0 34px; max-width: 460px; }

.why-us-list{ display: flex; flex-direction: column; gap: 30px; }
.why-item{
  display: flex; gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.why-item:last-child{ border-bottom: none; }
.why-icon{
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold-light);
  border: 1px solid rgba(203,169,105,0.3);
  transition: background 0.4s ease, transform 0.4s ease;
}
.why-item:hover .why-icon{ background: rgba(203,169,105,0.12); transform: rotate(-8deg); }
.why-item h4{ font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.why-item p{ color: var(--c-white-dim); font-size: 0.92rem; }

/* ---------------------------------------------------------------
   15. TIMELINE
   --------------------------------------------------------------- */
.timeline-section{ padding: var(--section-pad) 0; background: var(--c-graphite); overflow: hidden; }

.timeline{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 20px;
}

.timeline-line{
  position: absolute; top: 44px; left: 6%; right: 6%; height: 1px;
  background: rgba(255,255,255,0.1);
}
.timeline-line-fill{
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--grad-gold);
  transition: width 1.4s var(--ease-out);
  box-shadow: 0 0 10px var(--c-gold-dim);
}

.timeline-step{ position: relative; text-align: center; padding-top: 66px; }
.timeline-dot{
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-graphite);
  border: 2px solid var(--c-gold-dim);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.timeline-step.active .timeline-dot{
  border-color: var(--c-gold-light);
  background: var(--c-gold-light);
  box-shadow: 0 0 18px 4px var(--c-gold-dim);
}
.timeline-number{
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--c-gold-light);
  margin-bottom: 8px;
}
.timeline-step h3{ font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; }
.timeline-step p{ color: var(--c-white-dim); font-size: 0.9rem; max-width: 240px; margin: 0 auto; }

/* ---------------------------------------------------------------
   16. TESTIMONIALS / CAROUSEL
   --------------------------------------------------------------- */
.testimonials{ padding: var(--section-pad) 0; }

.carousel{ position: relative; overflow: hidden; }
.carousel-track{
  display: flex;
  gap: 24px;
  transition: transform 0.7s var(--ease-out);
}

.testimonial-card{
  flex: 0 0 calc(33.333% - 16px);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-m);
  padding: 38px 32px;
  display: flex; flex-direction: column;
}
.testimonial-quote{
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--c-gold-dim);
  line-height: 1; margin-bottom: 10px;
}
.testimonial-card p{ color: var(--c-white-dim); font-size: 0.98rem; line-height: 1.65; margin-bottom: 28px; flex-grow: 1; }
.testimonial-author{ display: flex; align-items: center; gap: 14px; }
.testimonial-logo{
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--c-gold-light);
  border: 1px solid rgba(203,169,105,0.3);
}
.testimonial-author h5{ font-size: 0.95rem; font-weight: 600; }
.testimonial-author span{ font-size: 0.8rem; color: var(--c-white-faint); }

.carousel-controls{ display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 40px; }
.carousel-btn{
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.carousel-btn:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); transform: scale(1.06); }
.carousel-dots{ display: flex; gap: 8px; }
.carousel-dots span{
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.carousel-dots span.active{ background: var(--c-gold-light); transform: scale(1.2); }

/* ---------------------------------------------------------------
   17. CTA
   --------------------------------------------------------------- */
.cta-section{
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(79,123,255,0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(203,169,105,0.18), transparent 60%),
    var(--c-graphite);
  animation: ctaShift 14s ease-in-out infinite alternate;
}
@keyframes ctaShift{
  0%{ filter: hue-rotate(0deg); }
  100%{ filter: hue-rotate(12deg); }
}
.cta-inner{ position: relative; z-index: 1; max-width: 780px; }
.cta-title{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 22px;
}
.cta-text{ color: var(--c-white-dim); font-size: 1.05rem; margin-bottom: 40px; }

/* ---------------------------------------------------------------
   18. CONTACT
   --------------------------------------------------------------- */
.contact{ padding: var(--section-pad) 0; }

.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 70px);
}

.contact-info h3{ font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 24px; }
.contact-list{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; }
.contact-list li{ display: flex; align-items: center; gap: 14px; color: var(--c-white-dim); font-size: 0.95rem; }
.contact-list li svg{ color: var(--c-gold-light); flex-shrink: 0; }
.contact-list li a:hover{ color: var(--c-gold-light); }

.contact-hours{
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-m);
  margin-bottom: 26px;
}
.contact-hours h4{ font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 14px; color: var(--c-gold-light); }
.contact-hours-row{ display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--c-white-dim); padding: 6px 0; }

.map-embed{
  position: relative;
  height: 220px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0b0c10;
}
.map-embed iframe{
  width: 100%; height: 100%; border: 0; display: block;
  filter: invert(92%) hue-rotate(180deg) grayscale(25%) brightness(0.92) contrast(1.05);
  /* Static preview only — dragging/zooming the live embed would leave the
     gold pin overlay pointing at the wrong spot, since it isn't part of
     the map itself. "Otevřít mapu" below links out to the real, pannable map. */
  pointer-events: none;
}
.map-embed::after{
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 55%, rgba(5,5,6,0.55) 100%);
  border-radius: var(--radius-m);
}
.map-pin{
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  color: var(--c-gold-light);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.65));
  animation: pinBounce 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pinBounce{ 0%,100%{ transform: translate(-50%, -100%); } 50%{ transform: translate(-50%, -108%); } }

.map-open-link{
  position: absolute; right: 14px; bottom: 14px;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(5,5,6,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--c-white);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.map-open-link:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }

.contact-form{
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ margin-bottom: 22px; }
.form-field label{
  display: block; font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--c-white-faint); margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select{
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none;
  border-color: var(--c-gold-light);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(203,169,105,0.12);
}
.form-field select{ appearance: none; cursor: pointer; }
.form-field textarea{ resize: vertical; min-height: 110px; }

.form-submit{ width: 100%; justify-content: center; margin-top: 6px; }
.form-note{ text-align: center; margin-top: 16px; font-size: 0.78rem; color: var(--c-white-faint); }

.form-success{
  position: absolute; inset: 0;
  background: rgba(9,10,12,0.97);
  border-radius: var(--radius-l);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--c-gold-light);
  opacity: 0; visibility: hidden; transform: scale(0.96);
  transition: all 0.5s var(--ease-out);
}
.form-success.show{ opacity: 1; visibility: visible; transform: scale(1); }

/* ---------------------------------------------------------------
   19. FOOTER
   --------------------------------------------------------------- */
.footer{ padding: 70px 0 30px; background: var(--c-graphite); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-bottom: 40px; }
.footer-links{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a{ color: var(--c-white-dim); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover{ color: var(--c-gold-light); }
.footer-social{ display: flex; gap: 12px; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }
.footer-divider{ border: none; height: 1px; background: rgba(255,255,255,0.07); }
.footer-bottom{ padding-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.footer-disclaimer{ font-size: 0.74rem; line-height: 1.7; color: rgba(246,245,242,0.35); max-width: 900px; }
.footer-credit{ font-size: 0.78rem; color: rgba(246,245,242,0.45); }
.footer-credit a{ color: var(--c-gold-light); }
.footer-credit a:hover{ text-decoration: underline; }

/* ---------------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.span-2{ grid-column: span 2; }
  .why-us-grid{ grid-template-columns: 1fr; }
  .why-us-col:first-child{ position: static; }
  .testimonial-card{ flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 860px){
  .nav-links{ display: none; }
  .navbar-actions .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat-item:nth-child(2)::after{ display: none; }
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .timeline{ grid-template-columns: 1fr; gap: 46px; }
  .timeline-line{ display: none; }
  .testimonial-card{ flex: 0 0 100%; }
}

@media (max-width: 600px){
  .services-grid{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .portfolio-item.span-2{ grid-column: span 2; }
  .stats-grid{ grid-template-columns: 1fr; }
  .stat-item::after{ display: none; }
  .footer-top{ flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------
   21. LIGHTBOX (galerie realizací — jediný obrázek, bez procházení)
   --------------------------------------------------------------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 6vw, 64px);
  background: rgba(5,5,6,0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.active{ opacity: 1; visibility: visible; }

.lightbox-content{
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
}
.lightbox-content img{
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto; height: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s ease;
}
.lightbox.active .lightbox-content img{ transform: scale(1); opacity: 1; }

.lightbox-content figcaption{
  color: var(--c-white-dim);
  font-size: 0.92rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox-close{
  position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out);
}
.lightbox-close:hover{
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
  transform: rotate(90deg);
}

.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  background: rgba(5,5,6,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}
.lightbox-nav:hover{
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
  background: rgba(5,5,6,0.65);
}
.lightbox-prev{ left: clamp(10px, 3vw, 32px); }
.lightbox-prev:hover{ transform: translateY(-50%) translateX(-3px); }
.lightbox-next{ right: clamp(10px, 3vw, 32px); }
.lightbox-next:hover{ transform: translateY(-50%) translateX(3px); }

.lightbox-count{
  color: var(--c-white-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

@media (max-width: 600px){
  .lightbox-content img{ max-height: 58vh; }
  .lightbox-nav{ width: 42px; height: 42px; }
  .lightbox-prev{ left: 6px; }
  .lightbox-next{ right: 6px; }
}
