@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@700;800&display=swap");

:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #4E13A6;
  --fg-dim: #888888;
  --font: "Plus Jakarta Sans", sans-serif;
  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --nav-h: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { margin: 0; padding: 0; width: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; width: 100%; margin: 0; padding: 0; }
body.is-loading { overflow: hidden; }

/* --- AMBIENTNÍ POHYBLIVÉ POZADÍ --- */
.glow-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.glow-item {
  position: absolute; border-radius: 50%; filter: blur(100px);
  background: radial-gradient(circle, rgba(78, 19, 166, 0.35) 0%, rgba(78, 19, 166, 0.1) 40%, rgba(0,0,0,0) 75%);
  pointer-events: none; opacity: 0.8;
}
.glow-1 { width: 45vw; height: 45vw; top: -15%; left: -10%; animation: glow-orbit-1 30s linear infinite; }
.glow-2 { width: 35vw; height: 35vw; top: 15%; right: 5%; animation: glow-orbit-2 35s linear infinite; }
.glow-3 { width: 50vw; height: 50vw; top: 45%; left: 30%; animation: glow-orbit-3 40s linear infinite; opacity: 0.6; }
.glow-4 { width: 40vw; height: 40vw; bottom: 5%; left: 5%; animation: glow-orbit-4 32s linear infinite; }
.glow-5 { width: 38vw; height: 38vw; bottom: -10%; right: 10%; animation: glow-orbit-1 38s linear infinite reverse; }

@keyframes glow-orbit-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10vw, 5vh) scale(1.1); } }
@keyframes glow-orbit-2 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes glow-orbit-3 { 0%, 100% { transform: translate(0, 0) scale(1.2); opacity: 0.4; } 50% { transform: translate(5vw, -10vh) scale(1); opacity: 0.7; } }
@keyframes glow-orbit-4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15vw, -5vh); } }

/* --- BOLD NAV FULL OVERLAY NAVIGATION --- */
.osmo-nav {
  position: relative;
  width: 100%;
}
.bold-nav-full {
  position: relative;
  width: 100%;
}
.bold-nav-full__bar {
  position: fixed;
  top: 0; left: 0; width: 100%; height: var(--nav-h, 90px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 6vw; z-index: 100005;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px); background: rgba(0, 0, 0, 0.15); 
  transition: background 0.4s ease, border-color 0.4s ease;
}
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__bar {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.bold-nav-full__bar.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.bold-nav-full__logo {
  display: flex;
  align-items: center;
  z-index: 100006;
  text-decoration: none;
}
.bold-nav-full__logo .logo-image {
  height: 64px; /* Výška loga zvětšena */
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.bold-nav-full__logo .logo-image:hover {
  transform: scale(1.05);
}
.bold-nav-full__hamburger {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 1.25rem; /* Zvětšeno pro lepší čitelnost a klikatelnost */
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 100006;
  height: 60px; /* Zvětšeno z 48px */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 170px; /* Zvětšeno z 130px */
  position: relative;
  overflow: hidden;
  padding: 0;
}
.nav-menu-btn-text {
  display: block;
  transition: transform 0.4s cubic-bezier(.7, 0, .3, 1);
  transform: translateY(0%);
}
.nav-close-btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(.7, 0, .3, 1);
  pointer-events: none;
  color: #B794F4; /* Změněno z var(--accent) na světle fialovou pro vysoký kontrast na černém pozadí */
}
.bold-nav-full[data-navigation-status="active"] .nav-menu-btn-text {
  transform: translateY(-200%);
  transition-delay: 0.05s;
}
.bold-nav-full[data-navigation-status="active"] .nav-close-btn-text {
  transform: translateY(0%);
  transition-delay: 0.05s;
  pointer-events: auto;
}

/* Panel s velkými odkazy (Full screen overlay) */
.bold-nav-full__tile {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #050505;
  z-index: 100004;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Zarovnáno na střed */
  padding: 0;
  transition: clip-path 0.9s cubic-bezier(.9, 0, .1, 1);
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__tile {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.bold-nav-full__ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center; /* Zarovnáno na střed */
}
.bold-nav-full__li {
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(.7, 0, .3, 1);
}
.bold-nav-full__link {
  display: block;
  text-decoration: none;
  font-size: clamp(2.2rem, 7.5vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(100%) rotate(5deg);
  transition: transform 0.75s cubic-bezier(.7, 0, .3, 1);
  line-height: 1.1;
  position: relative; /* Přidáno pro správné oříznutí absolutních potomků v prohlížečích */
  overflow: hidden; /* Skryje diakritiku rolovaného textu */
}

/* Prodlevy při zavírání */
.bold-nav-full__li:nth-child(1) .bold-nav-full__link { transition-delay: 0.2s; }
.bold-nav-full__li:nth-child(2) .bold-nav-full__link { transition-delay: 0.15s; }
.bold-nav-full__li:nth-child(3) .bold-nav-full__link { transition-delay: 0.1s; }
.bold-nav-full__li:nth-child(4) .bold-nav-full__link { transition-delay: 0.05s; }
.bold-nav-full__li:nth-child(5) .bold-nav-full__link { transition-delay: 0s; }

/* Otevřené navigační stavy */
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__link {
  transform: translateY(0%) rotate(0.001deg);
}
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__li:nth-child(1) .bold-nav-full__link { transition-delay: 0.3s; }
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__li:nth-child(2) .bold-nav-full__link { transition-delay: 0.35s; }
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__li:nth-child(3) .bold-nav-full__link { transition-delay: 0.4s; }
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__li:nth-child(4) .bold-nav-full__link { transition-delay: 0.45s; }
.bold-nav-full[data-navigation-status="active"] .bold-nav-full__li:nth-child(5) .bold-nav-full__link { transition-delay: 0.5s; }

/* Ztlumení ostatních odkazů při hoveru */
.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li {
  opacity: 0.15;
}
.bold-nav-full__ul:has(.bold-nav-full__li:hover) .bold-nav-full__li:hover {
  opacity: 1;
}

/* Animace rolování textu */
.bold-nav-full__link .bold-nav-full__link-text {
  display: block;
  position: relative;
  transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
}
.bold-nav-full__link .bold-nav-full__link-text::after {
  content: attr(data-text);
  position: absolute;
  top: 200%; /* Posunuto ze 150% na 200%, aby háčky a čárky neprosvítaly pod bílým písmem */
  left: 0;
  width: 100%;
  color: var(--accent);
}
.bold-nav-full__link:hover .bold-nav-full__link-text {
  transform: translateY(-200%); /* Posunuto ze -150% na -200% v souladu s novým umístěním */
}

/* Spodek navigačního panelu */
.bold-nav__bottom {
  position: absolute;
  bottom: 5vh;
  left: 10vw;
  right: 10vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  z-index: 100007;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  transition-delay: 0s;
}
.bold-nav-full[data-navigation-status="active"] .bold-nav__bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
.bold-nav__link-block {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}
.bold-nav__link-block:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .bold-nav-full__bar {
    height: 70px;
    padding: 0 25px !important;
  }
  .bold-nav-full__logo .logo-image {
    height: 52px; /* Výška loga na tabletech / mobilech zvětšena */
  }
  .bold-nav-full__tile {
    padding: 0 6vw;
  }
  .bold-nav__bottom {
    left: 6vw;
    right: 6vw;
    flex-direction: column;
    gap: 10px;
  }
}

/* --- HERO & NÁPIS SYNC STUDIO --- */
.hero-title-container {
  position: absolute; top: 48vh; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; display: flex; flex-direction: column; justify-content: center; align-items: center;
  z-index: 100001; pointer-events: none;
}
.sync-title {
  font-weight: 800; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine-text 4s linear infinite; line-height: 1;
  font-size: clamp(2rem, 10vw, 9rem); text-align: center;
}
@keyframes shine-text { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.preloader { position: fixed; inset: 0; background: #000; z-index: 100000; }
.page { opacity: 0; }
.hero { height: 100vh; position: relative; display: flow-root; } 
.hero-reveal-content { width: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; margin-top: 40vh; }

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  top: 76vh; /* Shifted lower down towards the bottom */
  left: 50%;
  transform: translate(-50%, 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  will-change: transform, opacity;
}
.scroll-indicator__arrow {
  width: 26px; /* Enlarged further */
  height: 26px; /* Enlarged further */
  border-bottom: 4px solid #B794F4; /* Standard purple core for a darker, richer color */
  border-right: 4px solid #B794F4;
  transform: rotate(45deg);
  opacity: 0;
  filter: drop-shadow(0 0 4px #B794F4) drop-shadow(0 0 10px rgba(183, 148, 244, 0.4)); /* Softer neon glow */
  animation: scroll-arrows 2s infinite;
}
.scroll-indicator__arrow.arrow-1 {
  animation-delay: 0s;
}
.scroll-indicator__arrow.arrow-2 {
  animation-delay: 0.3s;
  margin-top: -10px; /* Adjusted overlap for larger scale */
}
@keyframes scroll-arrows {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-6px, -6px);
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0;
    transform: rotate(45deg) translate(6px, 6px);
  }
  100% {
    opacity: 0;
  }
}

/* --- MISSION SECTION --- */
.mission-section { padding: 25vh 0; min-height: 100vh; display: flex; align-items: center; background: transparent; }
.mission-split-container { width: 100%; display: flex; flex-direction: column; gap: 25vh; }
.mission-block.left { align-self: flex-start; text-align: left; }
.mission-block.right { align-self: flex-end; text-align: right; }
.mission-text { 
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 4.8rem); 
  font-weight: 800; line-height: 1.1; text-transform: uppercase; margin: 0; letter-spacing: -0.02em;
}
.reveal-text span { color: rgba(255, 255, 255, 0.15); display: inline-block; }

/* --- CAPABILITIES (OVERLAPPING ROWS) --- */
.capabilities-grid-section { min-height: 110vh; background: transparent; padding-top: 28vh; margin-bottom: 10vh; }
.capabilities-container { max-width: 1200px; margin: 0 auto; position: relative; padding: 0 4vw; display: flex; flex-direction: column; align-items: center; }
.capabilities-row { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; }
.cap-box {
  width: 240px; min-height: 230px; padding: 24px 20px; border-radius: 22px; 
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; color: #fff; 
  position: relative; border: 1.5px solid #B794F4;
  background: radial-gradient(circle at top left, rgba(183, 148, 244, 0.02) 0%, rgba(10, 5, 25, 0.55) 100%);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(183, 148, 244, 0.2), inset 0 0 10px rgba(183, 148, 244, 0.1);
  margin-left: -50px; opacity: 0; will-change: transform, opacity;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-box:first-child { margin-left: 0; }
.cap-box:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.65), 0 0 25px rgba(183, 148, 244, 0.4), inset 0 0 12px rgba(183, 148, 244, 0.2);
  z-index: 10; /* Brings the hovered card to the front of the stack */
  transform: translateY(-12px) rotate(0deg) scale(1.05) !important; /* Rises, straightens and scales up for clear reading */
}
.cap-box::after {
  content: '↗';
  position: absolute;
  top: 24px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: currentColor;
  opacity: 0.3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cap-box:hover::after {
  transform: translate(4px, -4px) scale(1.1);
  opacity: 0.85;
}
/* Removed individual background colors to use the matching project card neon style */
.cap-num { 
  font-size: 3rem; 
  font-weight: 800; 
  line-height: 1; 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine-text 4s linear infinite;
}
.cap-box:hover .cap-num {
  transform: scale(1.08);
}
.cap-title { font-size: 1.6rem; font-weight: 800; line-height: 1.1; margin-top: auto; color: #fff; }
.cap-desc { font-size: 0.95rem; font-weight: 500; color: var(--fg-dim); line-height: 1.35; }
.section-title-simple {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 4.8rem); 
  font-weight: 800; 
  line-height: 1.1; 
  text-transform: uppercase; 
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8vh;
}
/* --- GRADIENT SHINE FOR NUMBERS --- */
.stat-num {
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine-text 4s linear infinite;
  font-weight: 800;
}

/* --- STICKY PROJECT CARDS --- */
.service-section { padding-top: 15vh; }
.projects-list-sticky { position: relative; padding-bottom: 30vh; background: transparent; }
.sticky-card {
  position: sticky; top: 15vh;
  background: radial-gradient(circle at top left, rgba(183, 148, 244, 0.02) 0%, rgba(10, 5, 25, 0.55) 100%); 
  border: 1.5px solid #B794F4;
  min-height: 70vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 15vh 6vw; margin-bottom: 25vh;
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 15px rgba(183, 148, 244, 0.25), inset 0 0 10px rgba(183, 148, 244, 0.15);
  transition: box-shadow 0.4s ease;
}
.sticky-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 25px rgba(183, 148, 244, 0.45), inset 0 0 12px rgba(183, 148, 244, 0.25);
}
.card-content { padding-left: 2vw; padding-right: 6vw; }
.stat-num { font-size: 2.3rem; margin-bottom: 1.5rem; }
.sticky-card-title { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 1.1; }
.sticky-card-desc { color: var(--fg-dim); font-size: 1.35rem; line-height: 1.6; margin-bottom: 2.5rem; }
.card-img-wrap { 
  width: 100%; 
  aspect-ratio: 16/10; 
  border-radius: 24px; 
  overflow: hidden; 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); 
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.sticky-card:hover .card-img-wrap {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 15px rgba(183, 148, 244, 0.1);
  border-color: rgba(183, 148, 244, 0.25);
}
.card-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: grayscale(100%); 
  transition: filter 0.4s ease;
}
.mobile-img { display: none; }
.sticky-card .btn {
  border-color: rgba(183, 148, 244, 0.35);
  background: rgba(183, 148, 244, 0.03);
  color: #fff !important;
  transition: all 0.3s ease;
}
.sticky-card .btn:hover {
  background: #B794F4 !important;
  border-color: #B794F4 !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(183, 148, 244, 0.45);
}
.mt-4 { margin-top: 1.5rem; }

/* --- KONTAKT --- */
.contact-section { text-align: center; padding: 350px 6vw 250px 6vw; background: transparent; }
.contact-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 40px; letter-spacing: -0.02em; }
.contact-link-wrap { margin-bottom: 100px; }
.big-contact-link { 
  font-size: clamp(2rem, 5vw, 4.5rem); color: #fff; text-decoration: none; 
  position: relative; display: inline-block; transition: 0.3s; font-weight: 800;
}
.big-contact-link::after { content: ''; position: absolute; width: 100%; height: 3px; bottom: -5px; left: 0; background-color: var(--accent); transform: scaleX(0); transition: 0.5s ease; }
.big-contact-link:hover::after { transform: scaleX(1); }

.contact-meta-footer { display: flex; justify-content: center; gap: 80px; text-align: left; }
.meta-item { display: flex; flex-direction: column; gap: 10px; }
.meta-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-dim); font-weight: 800; }
.meta-value, .meta-socials a { font-size: 1.6rem; color: #fff; text-decoration: none; transition: 0.3s; font-weight: 800; }
.meta-value:hover, .meta-socials a:hover { color: var(--accent); }
.meta-socials { display: flex; gap: 20px; }

/* --- TLAČÍTKA --- */
.pill-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 16px 40px;
  border-radius: 100px; text-decoration: none; font-size: 0.72rem; font-weight: 800; 
  text-transform: uppercase; letter-spacing: 0.25em; color: #fff !important;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s; cursor: pointer;
}

/* --- FOOTER --- */
.footer-new { background: transparent; color: #fff; padding: 150px 6vw 0 6vw; border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 10; }
.footer-grid-revilo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 120px; }
.footer-col h4 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 40px; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 18px; }
.footer-col a, .footer-col p { font-size: 1.25rem; color: #fff; text-decoration: none; display: block; transition: 0.3s ease; font-weight: 800; }

.sync-style-email { 
  background: linear-gradient(90deg, var(--accent), #fff, var(--accent));
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine-text 4s linear infinite; display: inline-block !important; font-weight: 800; width: fit-content;
}

.footer-col a:hover { color: var(--accent); transform: translateX(8px); }
.footer-bottom-bar { display: flex; justify-content: space-between; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.7rem; text-transform: uppercase; color: var(--fg-dim); letter-spacing: 0.1em; }

.footer-brand-wrap { width: 100vw; margin-left: -6vw; padding: 0; overflow: hidden; background: transparent; opacity: 0; transform: translateY(100px); transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.footer-brand-wrap.is-visible { opacity: 1; transform: translateY(0); }
.footer-brand-wrap img { width: 100%; height: auto; display: block; }

@media (max-width: 1100px) {
  .footer-brand-wrap { width: 100vw; margin-left: -5vw; }
  .footer-grid-revilo { grid-template-columns: 1fr 1fr; }
  .contact-meta-footer { flex-direction: column; gap: 40px; }
  .sticky-card { grid-template-columns: 1fr; padding: 10vh 6vw; }
  .card-img-wrap { height: 40vh; margin-top: 2rem; }
  .card-img { filter: grayscale(0%); }
  .card-content { padding-right: 0; padding-left: 0; }
}

@media (max-width: 768px) {
  .desktop-img { display: none !important; }
  .card-img.mobile-img { 
    display: block !important; 
    object-fit: contain !important; 
    height: 100% !important;
    width: 100% !important;
  }
  .card-img-wrap { 
    height: 50vh !important; 
    background: transparent !important; 
    box-shadow: none !important;
    border: none !important;
  }

  /* Capabilities Mobile Layout */
  .capabilities-grid-section {
    min-height: auto !important;
    padding: 80px 0;
    margin-bottom: 0 !important;
  }
  .capabilities-container {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .capabilities-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
  }
  .cap-box {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 320px;
    min-height: 200px;
    padding: 24px 20px;
  }

  /* Contact section mobile adjustments */
  .contact-section {
    padding: 100px 24px !important;
  }
  .big-contact-link {
    font-size: clamp(1.1rem, 5.8vw, 3.2rem) !important;
    word-break: break-all;
  }

  /* Projects section mobile adjustments */
  .service-section {
    padding-top: 60px !important;
  }
  .sticky-card {
    top: 10vh !important;
    margin-bottom: 12vh !important;
  }

  /* Mission text brand statements and simple section titles mobile scaling */
  .mission-text, .section-title-simple {
    font-size: clamp(2.6rem, 11vw, 4rem) !important;
    line-height: 1.05 !important;
  }
}

/* --- PORTFOLIO ASYMMETRIC GRID & LIGHTBOX --- */
.portfolio-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 6vw 40px 6vw;
  text-align: center;
}
.portfolio-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--fg-dim);
  margin-top: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 800px;
  line-height: 1.3;
}

/* --- PORTFOLIO VIDEO HERO --- */
.portfolio-hero.has-video-bg {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 6vw 60px 6vw;
  text-align: center;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 80%),
              rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-statement {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
  margin: 0;
}

.hero-testimonials {
  position: absolute;
  bottom: 5vh;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  gap: 40px;
  pointer-events: none;
}

.hero-testimonial {
  max-width: 420px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #fff;
  opacity: 0.9;
}

.testimonial-star {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.testimonial-caption {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-dash {
  width: 12px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.author-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* Tablet viewports */
@media (max-width: 1024px) {
  .hero-testimonials {
    bottom: 4vh;
    gap: 30px;
  }
  .hero-testimonial {
    max-width: 340px;
  }
}

/* Mobile viewports */
@media (max-width: 768px) {
  .portfolio-hero.has-video-bg {
    height: auto;
    min-height: 100vh;
    padding: 140px 6vw 80px 6vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .hero-content-wrap {
    margin-top: auto;
    margin-bottom: auto;
    padding: 40px 0;
  }
  
  .hero-testimonials {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    margin-top: auto;
  }
  
  .hero-testimonial {
    max-width: 100%;
  }

  .hero-testimonial.hide-mobile {
    display: none !important;
  }
}
.portfolio-section {
  padding: 0 0 120px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 0;
}

/* Portfolio Card styles */
.portfolio-item {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  grid-column: span 3; /* Landscape items span 3 of 6 columns (50% width) */
}
.portfolio-item.is-portrait {
  grid-column: span 2; /* Portrait items span 2 of 6 columns (33.33% width) */
}
.portfolio-link {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}
.portfolio-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  overflow: hidden;
  background: #090909;
  border: none;
  position: relative;
  box-shadow: none;
  transition: all 0.4s ease;
}
.portfolio-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(183, 148, 244, 0.08); /* Subtle purple print-tone tint over B&W */
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.portfolio-item.is-portrait .portfolio-img-wrap {
  aspect-ratio: 10 / 14; /* Taller aspect ratio for portrait items */
}
.portfolio-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(183, 148, 244, 0.3) 0%, rgba(10, 5, 20, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2; /* Move overlay above the ::before tint */
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75); /* Fully black & white and slightly darkened */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-link:hover .portfolio-img {
  transform: scale(1.05);
  filter: grayscale(100%) brightness(0.5); /* Remains black & white and dims further on hover */
}
.portfolio-link:hover .portfolio-img-wrap::after {
  opacity: 1;
}
.portfolio-link:hover .portfolio-img-wrap::before {
  opacity: 0; /* Fade out normal tint when hovered */
}
.portfolio-link:hover .portfolio-img-wrap {
  box-shadow: none;
}

/* Centered Flexbox Information Overlay */
.portfolio-item-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
  pointer-events: none; /* Let hovers pass directly to the link */
  padding: 30px;
  text-align: center;
}
.portfolio-item-title {
  font-family: var(--font);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 0 10px 0;
}
.portfolio-item-category {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: #B794F4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0;
}
.portfolio-link:hover .portfolio-item-title,
.portfolio-link:hover .portfolio-item-category {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-link:hover .portfolio-item-category {
  transition-delay: 0.05s;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
  .portfolio-item, .portfolio-item.is-portrait {
    grid-column: span 1; /* Reset spans to 1 column */
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .portfolio-item, .portfolio-item.is-portrait {
    grid-column: span 1;
  }
  .portfolio-item.is-portrait .portfolio-img-wrap {
    aspect-ratio: 10 / 14; /* Keep the portrait aspect ratio on mobile for consistency */
  }
}

/* Lightbox Modal */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  z-index: 1000005;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
}
.portfolio-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}
.portfolio-lightbox__close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1000010;
  transition: color 0.3s ease, transform 0.3s ease;
}
.portfolio-lightbox__close:hover {
  color: #B794F4;
  transform: scale(1.05);
}
.portfolio-lightbox__content {
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-lightbox.is-active .portfolio-lightbox__content {
  transform: scale(1);
}
.portfolio-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.portfolio-lightbox__caption-wrap {
  margin-top: 20px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portfolio-lightbox__caption {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.portfolio-lightbox__subcaption {
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-weight: 500;
}

/* Lightbox Navigation Arrows */
.portfolio-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000012;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.portfolio-lightbox__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
.portfolio-lightbox__arrow.prev {
  left: 40px;
}
.portfolio-lightbox__arrow.next {
  right: 40px;
}
.portfolio-lightbox__arrow.is-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .portfolio-lightbox__arrow {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }
  .portfolio-lightbox__arrow.prev {
    left: 15px;
  }
  .portfolio-lightbox__arrow.next {
    right: 15px;
  }
  .portfolio-lightbox {
    padding: 20px;
  }
}

