/* ==========================================================================
   KK webdesign — Cinematic Dark System
   ========================================================================== */

:root {
  /* Background depth */
  --void:      #05070D;
  --base:      #080B12;
  --raised:    #0C111B;
  --surface:   #111827;

  /* Accent */
  --accent-700: #1D4ED8;
  --accent-600: #2563EB;
  --accent-500: #3B82F6;
  --accent-400: #60A5FA;
  --violet:     #8B87F5;
  --cyan:       #5EEAD4;

  /* Text */
  --text-100: #F5F7FA;
  --text-300: #CBD5E1;
  --text-500: #94A3B8;
  --text-600: #64748B;

  /* Lines / glass */
  --line: rgba(245, 247, 250, 0.09);
  --line-strong: rgba(245, 247, 250, 0.16);
  --glass: rgba(245, 247, 250, 0.035);

  /* Fonts */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout — shared content container */
  --edge: clamp(24px, 4vw, 72px);
  --container-max: 1400px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-300);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
  opacity: 1;
  transition: opacity 0.6s var(--ease-soft);
}
body.is-loading { opacity: 0; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
input, textarea, button { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent-600); color: var(--text-100); }

:focus-visible {
  outline: 1.5px solid var(--accent-400);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Shared content container
   ========================================================================== */

.container,
.nav-inner,
.hero-content,
.marquee-track,
.section-intro,
.project,
.services-grid,
.process-track,
.about-grid,
.tech-groups,
.testimonial-stage,
.testimonial-controls,
.marquee-label,
.faq-inner,
.contact-content,
.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ==========================================================================
   Shared layout / type
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  background: var(--text-100);
  color: var(--void);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-400);
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-100);
}

.section-intro {
  margin-bottom: 96px;
}

.intro-desc {
  max-width: 620px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-500);
}

/* Generic scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.15s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.3s; }

/* Page-load sequence (hero + nav only) */
.load-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--ld, 0) * 90ms);
}
body.is-ready .load-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  white-space: nowrap;
  padding: 16px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease-soft), background-position 0.6s var(--ease-soft), border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.btn-primary {
  background: linear-gradient(115deg, var(--accent-400), var(--accent-600), var(--accent-700));
  background-size: 180% auto;
  background-position: 0% center;
  color: var(--text-100);
  box-shadow: 0 14px 32px -10px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover {
  background-position: 100% center;
  box-shadow: 0 22px 46px -10px rgba(59, 130, 246, 0.65);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.5);
}

.btn-line {
  background: transparent;
  color: var(--text-100);
  border: 1.5px solid var(--line-strong);
}
.btn-line:hover {
  border-color: var(--accent-400);
  color: var(--accent-400);
  box-shadow: 0 12px 28px -14px rgba(96, 165, 250, 0.4);
}
.btn-line:active {
  transform: scale(0.97);
  box-shadow: none;
}

.btn-sm { padding: 11px 22px; font-size: 13.5px; }
.btn-lg { padding: 19px 34px; font-size: 16px; }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 30px 0;
  transition: padding 0.4s var(--ease-soft), background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  padding: 18px 0;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-500);
  transition: color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), text-shadow 0.35s var(--ease-soft);
}
.nav-links a span { position: relative; }
.nav-links a span::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--accent-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover {
  color: var(--text-100);
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.35);
}
.nav-links a:hover span::after,
.nav-links a.active span::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--text-100); }

.nav-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-100);
  margin: 0 auto;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 120px;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, var(--raised), var(--void) 60%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 68%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.05) 45%, transparent 70%);
  filter: blur(10px);
  will-change: transform;
  animation: glowBreathe 9s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  top: 48%; left: 74%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}
.hero-ring-1 {
  width: 640px; height: 640px;
  background: conic-gradient(from 0deg, transparent, rgba(59,130,246,0.5), transparent 30%, transparent 70%, rgba(139,135,245,0.4), transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  animation: rotateSlow 60s linear infinite;
}
.hero-ring-2 {
  width: 460px; height: 460px;
  background: conic-gradient(from 180deg, transparent, rgba(96,165,250,0.5), transparent 40%, transparent 80%, rgba(94,234,212,0.3), transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
  animation: rotateSlow 44s linear infinite reverse;
}
@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-ghost {
  position: absolute;
  top: 10%;
  right: -3%;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(200px, 26vw, 400px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 247, 250, 0.045);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 60% 40%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 85% at 60% 40%, #000 40%, transparent 78%);
  user-select: none;
  pointer-events: none;
  transition: transform 0.6s var(--ease-soft);
  will-change: transform;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url('images/noise.svg');
  background-size: 220px 220px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-500);
  margin-bottom: 40px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.hero-headline {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-100);
}
.hero-headline .line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.hero-headline .line {
  display: block;
  transform: translateY(115%);
  transition: transform 1.2s var(--ease);
}
.hero-headline .line-mask:nth-child(1) .line { transition-delay: 0.25s; }
.hero-headline .line-mask:nth-child(2) .line { transition-delay: 0.42s; }
.hero-headline .line-mask:nth-child(3) .line { transition-delay: 0.6s; }
body.is-ready .hero-headline .line { transform: translateY(0); }

.hero-headline em {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(110deg, var(--accent-700), var(--accent-400), var(--accent-700));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShift 7s ease-in-out infinite;
}
@keyframes accentShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-500);
  max-width: 660px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--edge);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-600);
}
.scroll-track {
  width: 40px; height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-track i {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent-400);
  animation: scrollTrack 2.4s ease-in-out infinite;
}

.marquee-label {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-600);
  text-align: center;
}
@keyframes scrollTrack {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ==========================================================================
   Client logo strip
   ========================================================================== */

.marquee-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--base);
  padding: 40px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.client-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.client-logo img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.4s var(--ease-soft), filter 0.4s var(--ease-soft);
}
.client-logo img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects {
  position: relative;
  overflow: hidden;
  padding: 180px 0;
  background: var(--void);
}
.projects::before {
  content: '';
  position: absolute;
  top: -200px; right: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.project {
  margin-bottom: 110px;
}
.project:last-of-type { margin-bottom: 0; }

.project-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.media-frame {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 12px);
  z-index: 0;
  transition: border-color 0.6s var(--ease);
}
.project-media:hover .media-frame { border-color: var(--line-strong); }

.media-surface {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  transition: transform 1s var(--ease);
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
}
.project-media:hover .media-surface { transform: scale(1.045); }

.media-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/noise.svg');
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Real project photo — same hover/zoom behavior as the gradient placeholders */
.media-photo {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.project-media:hover .media-photo { transform: scale(1.045); }
.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-index {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(80px, 10vw, 160px);
  color: rgba(245, 247, 250, 0.1);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.media-1 { background: radial-gradient(120% 100% at 15% 10%, #1b2c5c, #0c111b 55%), radial-gradient(90% 90% at 90% 90%, #2c3f7a, transparent 60%); }
.media-2 { background: radial-gradient(110% 100% at 85% 15%, #24325f, #0c111b 55%), radial-gradient(90% 90% at 10% 90%, #3a2f6e, transparent 60%); }
.media-3 { background: radial-gradient(120% 100% at 20% 90%, #163a4a, #0c111b 55%), radial-gradient(90% 90% at 90% 10%, #1e4a63, transparent 60%); }

.project-cursor-tag {
  position: absolute;
  top: 0; left: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent-500);
  color: var(--text-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.project-media.is-hovering .project-cursor-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
}

.project-index {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 38px;
  color: var(--text-600);
}

.project-info { max-width: 640px; }
.project-heading { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.project-heading h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.015em; color: var(--text-100); }
.project-category { font-size: 14px; color: var(--text-500); }

.project-desc { font-size: 16px; line-height: 1.75; color: var(--text-500); margin-bottom: 24px; }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.project-stack li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-300);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-100);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.project-link:hover { color: var(--accent-400); border-color: var(--accent-400); }
.project-link svg { transition: transform 0.3s var(--ease); }
.project-link:hover svg { transform: translateX(4px); }

/* Split layout */
.project-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.project-split .project-media { aspect-ratio: 4 / 3.3; }
.project-split .project-meta { display: block; }
.project-split .project-index { display: block; margin-bottom: 24px; }
.project-split.reverse { direction: rtl; }
.project-split.reverse > * { direction: ltr; }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  position: relative;
  overflow: hidden;
  padding: 180px 0;
  background: var(--base);
  border-top: 1px solid var(--line);
}
.services::before {
  content: '';
  position: absolute;
  bottom: -220px; left: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.03) 45%, transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.services-intro {
  position: sticky;
  top: 140px;
  align-self: start;
}

.services-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 20px;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--line); }

.service-num {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 20px;
  color: var(--text-600);
  transition: color 0.4s var(--ease);
}

.service-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
  margin-bottom: 10px;
}
.service-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-500);
  max-width: 480px;
}

.service-arrow {
  color: var(--text-600);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.service-row:hover { padding-left: 14px; }
.service-row:hover .service-num { color: var(--accent-400); }
.service-row:hover .service-arrow { color: var(--accent-400); transform: translate(3px, -3px); }

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  padding: 180px 0;
  background: var(--void);
}

.process-track {
  position: relative;
}

.process-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(var(--edge) + 27px);
  width: 1px;
  background: var(--line);
}
.process-line i {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent-400), var(--violet));
  transition: height 0.1s linear;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  padding: 44px 0;
  position: relative;
}
.process-step:first-child { padding-top: 0; }

.process-num {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 24px;
  color: var(--text-500);
  position: relative;
  z-index: 1;
}

.process-body h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
  margin-bottom: 12px;
}
.process-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-500);
  max-width: 560px;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  position: relative;
  padding: 180px 0;
  background: var(--base);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13), rgba(59, 130, 246, 0.03) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 24px 0 24px 24px;
}

.about-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 20% 10%, #24325f, #0c111b 60%);
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/noise.svg');
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.about-role {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-400);
}

.about-copy p:not(.eyebrow):not(.about-role) { margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--text-500); }

.about-facts {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.about-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-500);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about-fact span {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 25px;
  color: var(--text-100);
}

/* ==========================================================================
   Technologies
   ========================================================================== */

.tech {
  padding: 160px 0;
  background: var(--void);
}

.tech-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tech-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.tech-group:last-child { border-bottom: none; padding-bottom: 0; }

.tech-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 16px;
}
.tech-list span {
  color: var(--text-300);
  padding: 4px 18px 4px 0;
  transition: color 0.3s var(--ease-soft);
}
.tech-list span:not(:last-child) { border-right: 1px solid var(--line); margin-right: 0; padding-right: 18px; }
.tech-list span:hover { color: var(--accent-400); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  padding: 180px 0;
  background: var(--base);
  border-top: 1px solid var(--line);
}

.testimonial-stage {
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  pointer-events: none;
}
.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  color: #FBBF24;
}

.testimonial-quote {
  max-width: 900px;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.5;
  color: var(--text-100);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
}
.attr-name { font-size: 15px; font-weight: 600; color: var(--text-100); }
.attr-role { font-size: 13.5px; color: var(--text-600); }

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}
.t-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-300);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), transform 0.3s var(--ease);
}
.t-arrow:hover { border-color: var(--accent-400); color: var(--accent-400); }
.t-arrow:active { transform: scale(0.94); }

.t-dots { display: flex; gap: 10px; }
.t-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 7px; height: 7px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.t-dot.is-active { background: var(--accent-400); transform: scale(1.3); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  padding: 180px 0 130px;
  background: var(--void);
}

.faq-inner .section-intro { padding-inline: 0; }

.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 4px;
  text-align: left;
  transition: color 0.3s var(--ease-soft);
}
.faq-q-num {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 13px;
  color: var(--text-600);
  flex-shrink: 0;
}
.faq-q-text {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-100);
}
.faq-question:hover .faq-q-text { color: var(--accent-400); }

.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; color: var(--text-300); }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.faq-icon::before { width: 13px; height: 1.4px; }
.faq-icon::after { width: 1.4px; height: 13px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-answer > p { overflow: hidden; min-height: 0; font-size: 15.5px; line-height: 1.75; color: var(--text-500); padding-right: 60px; }
.faq-item[data-open="true"] .faq-answer { grid-template-rows: 1fr; }
.faq-item[data-open="true"] .faq-answer > p { padding-bottom: 28px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  padding: 220px 0 160px;
  background: linear-gradient(180deg, var(--void), var(--raised) 55%, #0a1330 100%);
  overflow: hidden;
  text-align: center;
}
#kontakt { padding: 190px 0 130px; }

.contact-atmosphere {
  position: absolute;
  top: 20%; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.contact-content { position: relative; z-index: 1; }

.contact-headline {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-100);
}
.contact-headline em {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, var(--accent-700), var(--accent-400), var(--accent-700));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShift 7s ease-in-out infinite;
}

.contact-sub {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-500);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-size: 13.5px;
  color: var(--text-500);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 96px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .nav-logo img { height: 58px; }
.footer-tagline {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-600);
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-500);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.footer-social-link:hover { border-color: var(--accent-400); color: var(--accent-400); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: end;
  gap: 24px 68px;
}
.footer-nav-col { display: flex; flex-direction: column; gap: 14px; }
.footer-nav-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-600);
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 14.5px;
  color: var(--text-300);
  transition: color 0.3s var(--ease-soft);
  width: fit-content;
}
.footer-nav-col a:hover { color: var(--accent-400); }

.footer-contact-line {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-500);
}

.footer-contact-email {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent-400);
  transition: color 0.3s var(--ease-soft);
  width: fit-content;
}
.footer-contact-email:hover { color: var(--accent-500); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-600);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--text-300);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent-400); color: var(--accent-400); }

/* Keep the back-to-top button clear of the cookie banner when both are visible */
body:has(.cookie-banner.is-visible) .back-to-top { bottom: 240px; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 100%;
  max-width: 380px;
  background: rgba(12, 17, 27, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0s;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.cookie-banner-text { flex: none; }

.cookie-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 6px;
}

.cookie-banner-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-500);
}

.cookie-banner-link {
  color: var(--text-300);
  border-bottom: 1px solid var(--line-strong);
  margin-left: 4px;
  white-space: nowrap;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.cookie-banner-link:hover { color: var(--accent-400); border-color: var(--accent-400); }

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Homepage: "view all projects" link
   ========================================================================== */

.projects-more {
  margin-top: 64px;
  text-align: center;
}

/* ==========================================================================
   Portfolio page — compact hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 200px 0 90px;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, var(--raised), var(--void) 60%);
}
.page-hero.is-tight { padding-bottom: 30px; }
.page-hero-glow {
  position: absolute;
  top: -160px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.05) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.page-hero-title {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-100);
  margin-top: 8px;
  position: relative;
}
.page-hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-500);
  max-width: 620px;
  position: relative;
}

/* ==========================================================================
   Portfolio page — filters
   ========================================================================== */

.portfolio-filters {
  padding: 0 0 56px;
  background: var(--void);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--text-500);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}
.filter-tab:hover { color: var(--text-100); border-color: var(--line-strong); }
.filter-tab.is-active {
  color: var(--text-100);
  border-color: var(--accent-500);
  background: rgba(37, 99, 235, 0.14);
}

/* ==========================================================================
   Portfolio page — grid
   ========================================================================== */

.portfolio-grid-section {
  padding: 0 0 180px;
  background: var(--void);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.portfolio-empty {
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-500);
}

.portfolio-card { transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft); }
.portfolio-card.is-hidden { opacity: 0; transform: scale(0.96); pointer-events: none; }
.portfolio-card[hidden] { display: none; }

.portfolio-card-link {
  display: block;
  color: inherit;
}

.portfolio-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}
.portfolio-card-link:hover .portfolio-media { border-color: var(--line-strong); }

.portfolio-external {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  color: var(--text-100);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  pointer-events: none;
}
.portfolio-card-link:hover .portfolio-external { opacity: 1; transform: scale(1); }

.portfolio-media-surface {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.portfolio-card-link:hover .portfolio-media-surface { transform: scale(1.045); }

.portfolio-media-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/noise.svg');
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Real project photo — same hover/zoom behavior as the placeholder surfaces */
.portfolio-media-photo {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.portfolio-card-link:hover .portfolio-media-photo { transform: scale(1.045); }
.portfolio-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-media-index {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(48px, 6vw, 84px);
  color: rgba(245, 247, 250, 0.12);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.pm-1 { background: radial-gradient(120% 100% at 15% 10%, #1b2c5c, #0c111b 55%), radial-gradient(90% 90% at 90% 90%, #2c3f7a, transparent 60%); }
.pm-2 { background: radial-gradient(110% 100% at 85% 15%, #24325f, #0c111b 55%), radial-gradient(90% 90% at 10% 90%, #3a2f6e, transparent 60%); }
.pm-3 { background: radial-gradient(120% 100% at 20% 90%, #163a4a, #0c111b 55%), radial-gradient(90% 90% at 90% 10%, #1e4a63, transparent 60%); }
.pm-4 { background: radial-gradient(120% 100% at 80% 20%, #22346e, #0c111b 55%), radial-gradient(90% 90% at 15% 85%, #3a2f6e, transparent 60%); }
.pm-5 { background: radial-gradient(120% 100% at 25% 80%, #163a4a, #0c111b 55%), radial-gradient(90% 90% at 85% 15%, #1e4a63, transparent 60%); }
.pm-6 { background: radial-gradient(120% 100% at 60% 10%, #24325f, #0c111b 55%), radial-gradient(90% 90% at 10% 90%, #2c3f7a, transparent 60%); }

.portfolio-body { padding-top: 28px; }

.portfolio-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.portfolio-top h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
}

.placeholder-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-600);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.portfolio-category {
  font-size: 13px;
  color: var(--text-500);
  white-space: nowrap;
}

.portfolio-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-500);
  margin-bottom: 18px;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.portfolio-stack li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-300);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.portfolio-view {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-100);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.portfolio-card-link:hover .portfolio-view { color: var(--accent-400); border-color: var(--accent-400); }
.portfolio-view svg { transition: transform 0.3s var(--ease); }
.portfolio-card-link:hover .portfolio-view svg { transform: translateX(4px); }

/* ==========================================================================
   Services page — main services (cards, same tokens as project/portfolio media)
   ========================================================================== */

.svc-main {
  padding: 180px 0;
  background: var(--base);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.svc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.5s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.svc-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  box-shadow: 0 28px 52px -24px rgba(37, 99, 235, 0.28);
}

/* Decorative background pattern per card — very low opacity, one motif each */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 85% 12%, rgba(96, 165, 250, 0.08), transparent 55%);
}

/* Oversized low-opacity number — a design element, not a label */
.svc-card-num {
  position: absolute;
  top: -10px;
  right: 28px;
  z-index: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(72px, 7vw, 104px);
  line-height: 1;
  color: rgba(245, 247, 250, 0.1);
  transition: color 0.5s var(--ease);
  pointer-events: none;
}
.svc-card:hover .svc-card-num { color: rgba(96, 165, 250, 0.22); }

.svc-card h3,
.svc-card-desc,
.svc-card-list,
.svc-card-tags,
.svc-card-link {
  position: relative;
  z-index: 1;
}

.svc-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
  max-width: 85%;
}

.svc-card-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-500);
}

.svc-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.svc-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-300);
}
.svc-card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-400);
}

.svc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-card-tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-300);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-100);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  margin-top: auto;
  align-self: flex-start;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.svc-card-link:hover { color: var(--accent-400); border-color: var(--accent-400); }
.svc-card-link svg { transition: transform 0.3s var(--ease); }
.svc-card-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Services page — compact connected process
   ========================================================================== */

.svc-process {
  padding: 150px 0;
  background: var(--void);
}

.svc-process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.svc-process-row::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}

.svc-process-step { position: relative; }

.svc-process-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--void);
  border: 1px solid var(--line-strong);
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-400);
  margin-bottom: 18px;
}

.svc-process-step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
  margin-bottom: 8px;
}
.svc-process-step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-500);
}

/* Contact page — stronger process variant (scoped, does not affect Services page) */
.svc-process.is-3col { padding: 130px 0; }
.svc-process.is-3col .svc-process-row::before {
  top: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}
.svc-process.is-3col .svc-process-num {
  width: 48px; height: 48px;
  font-size: 19px;
}
.svc-process.is-3col .svc-process-step h3 {
  font-size: 20px;
  font-weight: 800;
}

/* ==========================================================================
   Services page — alternating background rhythm (this page only)
   ========================================================================== */

.tech.is-alt {
  position: relative;
  overflow: hidden;
  background: var(--base);
}
.tech.is-alt::before {
  content: '';
  position: absolute;
  top: -160px; right: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 65%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Compact section-spacing modifier (this page only)
   ========================================================================== */

.faq.is-compact { padding: 130px 0; }
.contact.is-compact { padding: 150px 0 120px; }

/* ==========================================================================
   Contact page — main two-column section
   ========================================================================== */

.contact-main { padding: 180px 0; background: var(--base); }

.contact-main-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.contact-info-lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-500);
  max-width: 460px;
}

.contact-focus { margin-top: 36px; }
.contact-focus-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-600);
  margin-bottom: 14px;
}
.contact-focus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-focus-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-300);
}
.contact-focus-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-400);
}

.contact-detail-list {
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
}
.contact-detail-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-detail-list .contact-detail-item:last-child { border-bottom: 1px solid var(--line); }
.contact-detail-item dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-600);
}
.contact-detail-item dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--text-100);
}
.contact-detail-item dd a { color: var(--text-100); transition: color 0.3s var(--ease-soft); }
.contact-detail-item dd a:hover { color: var(--accent-400); }

.contact-trust-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-500);
}
.contact-trust-check {
  color: var(--accent-400);
  font-weight: 700;
}

.contact-email-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-100);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.contact-email-cta:hover { color: var(--accent-400); border-color: var(--accent-400); }
.contact-email-cta svg { transition: transform 0.3s var(--ease); }
.contact-email-cta:hover svg { transform: translateX(4px); }

.contact-alt-line {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-600);
}
.contact-alt-line a {
  color: var(--text-300);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.contact-alt-line a:hover { color: var(--accent-400); border-color: var(--accent-400); }

/* Form panel */

.contact-form-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  background: var(--raised);
}

.contact-form-page { display: flex; flex-direction: column; gap: 28px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}
.form-field-full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-300);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-100);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-600); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.form-field textarea { resize: vertical; min-height: 105px; }

.form-error {
  min-height: 16px;
  font-size: 12.5px;
  color: #f87171;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #f87171;
}

.form-submit { align-self: flex-start; }

.form-success {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-300);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.form-success[hidden] { display: none; }

/* "Co se stane potom" — 3-column variant of the existing process component */
.svc-process-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* FAQ pointer line */
.faq-pointer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 50px var(--edge) 100px;
  text-align: center;
  font-size: 15px;
  color: var(--text-500);
}
.faq-pointer a {
  color: var(--text-100);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.faq-pointer a:hover { color: var(--accent-400); border-color: var(--accent-400); }

/* ==========================================================================
   Legal page (Ochrana osobních údajů)
   ========================================================================== */

.legal-section { padding: 100px 0 180px; background: var(--void); }

.legal-content { max-width: 760px; }

.legal-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-100);
  margin-top: 64px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-500);
}

.legal-content ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-content li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-500);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-400);
}

.legal-content a {
  color: var(--text-300);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.legal-content a:hover { color: var(--accent-400); border-color: var(--accent-400); }

.legal-content ol {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 22px;
}
.legal-content ol li {
  padding-left: 6px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-500);
}
.legal-content ol li::marker {
  color: var(--accent-400);
  font-weight: 700;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-intro { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 420px; }
  .project-split, .project-split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-main-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 900px) {
  .marquee-track { justify-content: center; }

  .svc-process-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-process-row::before { display: none; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    gap: 2px;
    padding: 10px 0 24px;
    background: rgba(12, 17, 27, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0s;
  }
  .nav-links a {
    display: block;
    padding: 16px var(--edge);
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links a:nth-child(1) { transition-delay: 0.06s; }
  .nav-links a:nth-child(2) { transition-delay: 0.11s; }
  .nav-links a:nth-child(3) { transition-delay: 0.16s; }
  .nav-links a:nth-child(4) { transition-delay: 0.21s; }
  .nav-links a:nth-child(5) { transition-delay: 0.26s; }
  .nav-links a:nth-child(6) { transition-delay: 0.31s; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .project-meta { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --edge: 20px; }
  .hero { padding: 170px 0 40px; min-height: auto; }
  .hero-status { margin-bottom: 30px; }
  .hero-sub { margin-top: 26px; }
  .hero-actions { margin-top: 38px; gap: 14px; }
  .hero-scroll { display: none; }
  .marquee-label { position: static; margin-top: 44px; }
  .projects, .services, .process, .about, .tech, .testimonials, .faq { padding-top: 110px; padding-bottom: 110px; }
  .svc-main, .svc-process { padding-top: 90px; padding-bottom: 90px; }
  .svc-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-card-num { font-size: 64px; }
  .contact-main { padding-top: 110px; padding-bottom: 110px; }
  .contact-form-wrap { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-detail-item { grid-template-columns: 1fr; gap: 4px; }
  .faq-pointer { padding: 40px var(--edge) 100px; }
  .legal-section { padding: 70px 0 110px; }
  .legal-content h2 { margin-top: 48px; }
  .faq.is-compact { padding-top: 90px; padding-bottom: 90px; }
  .contact { padding: 140px 0 100px; }
  .contact.is-compact { padding: 110px 0 90px; }
  .section-intro { margin-bottom: 60px; }
  .nav-actions .btn-primary { display: none; }

  .project { margin-bottom: 64px; }

  .marquee-strip { padding: 32px var(--edge); overflow: hidden; }
  .marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: 300%;
    max-width: none;
    padding-inline: 0;
    margin-inline: 0;
    transition: transform 0.6s var(--ease);
  }
  .client-logo {
    flex: 0 0 calc(100% / 9);
    justify-content: center;
  }
  .project-heading { flex-direction: column; gap: 6px; }
  .about-facts { gap: 28px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn-primary, .contact-actions .btn-line { width: 100%; }
  .back-to-top { right: 18px; bottom: 18px; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn-primary, .cookie-banner-actions .btn-line { width: 100%; }
  body:has(.cookie-banner.is-visible) .back-to-top { bottom: 220px; }

  .page-hero { padding: 130px 0 70px; }
  .portfolio-filters { padding-bottom: 40px; }
  .portfolio-grid-section { padding-bottom: 110px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 48px; }
}
