/* ====================================================================
   VEKTOR SPACES — Premium Shell v3
   Award-grade transitions, refined micro-interactions.
   Colors + fonts preserved; everything else rebuilt.
   ==================================================================== */

:root {
  --bg: #f7f4ed;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #202124;
  --muted: #6b7280;
  --line: rgba(32, 33, 36, 0.1);
  --line-strong: rgba(32, 33, 36, 0.16);
  --blue: #4285f4;
  --green: #34a853;
  --yellow: #fbbc04;
  --red: #ea4335;
  --shadow: 0 22px 52px rgba(32, 33, 36, 0.1);
  --shadow-lg: 0 36px 80px -16px rgba(32, 33, 36, 0.18);
  --shadow-card: 0 18px 42px -12px rgba(32, 33, 36, 0.12);
  --heading-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.28s;
  --dur-base: 0.5s;
  --dur-slow: 0.9s;
}

* { box-sizing: border-box; }

html {
  /* Lenis handles smooth scrolling; native smooth as a fallback */
  scroll-behavior: smooth;
}
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(66, 133, 244, 0.1), transparent 24%),
    radial-gradient(circle at 85% 4%, rgba(251, 188, 4, 0.12), transparent 20%),
    radial-gradient(circle at 84% 80%, rgba(52, 168, 83, 0.08), transparent 18%),
    linear-gradient(180deg, #f7f4ed 0%, #fbfaf7 34%, #f4f0e9 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(66, 133, 244, 0.24); color: var(--ink); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(32, 33, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Page-load fade-in to avoid FOUC */
body { opacity: 0; transition: opacity 0.6s var(--ease-out-quart); }
body.is-loaded { opacity: 1; }

/* Scroll progress bar (top of viewport) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 100;
  background: rgba(32, 33, 36, 0.05);
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--green) 45%, var(--yellow) 80%, var(--red));
  will-change: transform;
}

.shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 18px 0;
  transition:
    background 0.4s var(--ease-out-quart),
    backdrop-filter 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart),
    padding 0.4s var(--ease-out-quart);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 40px -10px rgba(32, 33, 36, 0.12);
  padding: 12px 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.logo:hover { transform: translateY(-1px); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.08);
  transition: transform var(--dur-base) var(--ease-out-back), box-shadow var(--dur-base) var(--ease-out-quart);
}
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 14px 28px rgba(32, 33, 36, 0.14);
}

.logo-text {
  width: 144px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #5f6368;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a,
.footer-links a {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.25s var(--ease-out-quart);
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ==================== BUTTONS ==================== */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.4s var(--ease-out-back),
    box-shadow 0.4s var(--ease-out-quart),
    background 0.3s var(--ease-out-quart),
    color 0.3s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-quart);
  pointer-events: none;
}
.btn:hover::before,
.btn-secondary:hover::before { opacity: 1; }

.btn {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 30px rgba(32, 33, 36, 0.16);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 26px 44px rgba(32, 33, 36, 0.24);
}
.btn:active { transform: translateY(0) scale(0.99); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 33, 36, 0.12);
  color: var(--ink);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 26px rgba(32, 33, 36, 0.06);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 38px rgba(32, 33, 36, 0.12);
}

/* Liquid CTA in the nav */
.nav .btn-secondary {
  position: relative;
  isolation: isolate;
  color: #f4c657;
  background: linear-gradient(135deg, #0f2547, #132f5b 55%, #183a70);
  border: 1px solid rgba(244, 198, 87, 0.4);
  box-shadow:
    0 12px 24px rgba(15, 37, 71, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 26px rgba(244, 198, 87, 0.25);
  overflow: hidden;
  animation: vektor-float 3.6s ease-in-out infinite;
}
.nav .btn-secondary::before {
  content: "";
  position: absolute;
  inset: -70% -30%;
  background:
    radial-gradient(circle at 35% 35%, rgba(244, 198, 87, 0.35), transparent 28%),
    radial-gradient(circle at 65% 68%, rgba(74, 132, 228, 0.26), transparent 34%),
    linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 64%);
  animation: vektor-liquid-shift 6s linear infinite;
  z-index: -1;
  opacity: 1;
}
.nav .btn-secondary:hover {
  color: #ffd877;
  transform: translateY(-3px);
  box-shadow:
    0 18px 32px rgba(15, 37, 71, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 36px rgba(244, 198, 87, 0.4);
}

@keyframes vektor-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes vektor-liquid-shift {
  0% { transform: translateX(-14%) rotate(0deg); }
  50% { transform: translateX(12%) rotate(2deg); }
  100% { transform: translateX(-14%) rotate(0deg); }
}

/* ==================== LAYOUT BASICS ==================== */
main {
  position: relative;
  padding-top: 110px;
}

section {
  padding: 96px 0;
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5f6368;
  backdrop-filter: blur(6px);
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.6);
  animation: vektor-pulse 2.4s ease-in-out infinite;
}
@keyframes vektor-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.18); }
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.7vw, 4.1rem);
  line-height: 0.95;
  max-width: 14ch;
  font-weight: 500;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.2rem);
  line-height: 0.98;
  font-weight: 500;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.05;
  font-weight: 600;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 50rem;
}

/* Card system */
.stat-card,
.card,
.tile,
.panel,
.mini-card,
.contact-item,
.form-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.5s var(--ease-out-quart),
    box-shadow 0.5s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart),
    background 0.4s var(--ease-out-quart);
}

.btn:hover,
.btn-secondary:hover,
.card:hover,
.tile:hover,
.panel:hover {
  transform: translateY(-4px);
}
.card:hover,
.tile:hover,
.panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

/* Image wrappers — refined treatment */
img { max-width: 100%; height: auto; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  background: #f0ece4;
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-quart), filter 0.6s var(--ease-out-quart);
  will-change: transform;
  filter: saturate(1.05) contrast(1.02);
}
.media-frame:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05) brightness(1.02);
}

/* ==================== REVEAL ON SCROLL ==================== */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variant reveals */
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="blur"] { filter: blur(8px); }

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal="blur"].is-visible { filter: blur(0); }

[data-reveal-delay="100"] { transition-delay: 0.08s; }
[data-reveal-delay="200"] { transition-delay: 0.16s; }
[data-reveal-delay="300"] { transition-delay: 0.24s; }
[data-reveal-delay="400"] { transition-delay: 0.32s; }
[data-reveal-delay="500"] { transition-delay: 0.4s; }

/* Stagger child reveals */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
[data-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.4s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 0.47s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 0.54s; }

/* Word/line split reveal (GSAP applies inline transforms; CSS provides base) */
.split-line { overflow: hidden; }
.split-word,
.split-char { display: inline-block; will-change: transform; }

/* Parallax image holder */
[data-parallax] {
  will-change: transform;
}

/* ==================== FOOTER ==================== */
.footer {
  margin: 28px 0 32px;
  border-radius: 34px;
  background: linear-gradient(160deg, #202124, #15171a 80%);
  color: rgba(255, 255, 255, 0.74);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(32, 33, 36, 0.45);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(66, 133, 244, 0.16), transparent 22%),
    radial-gradient(circle at 86% 90%, rgba(251, 188, 4, 0.12), transparent 22%);
  pointer-events: none;
}
.footer * { position: relative; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.footer a {
  transition: color 0.25s var(--ease-out-quart);
}
.footer a:hover { color: #fff; }

/* ==================== HAMBURGER ==================== */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(32, 33, 36, 0.08);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s var(--ease-out-quart), transform 0.25s var(--ease-out-back), box-shadow 0.25s var(--ease-out-quart);
  flex-shrink: 0;
  z-index: 35;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px -8px rgba(32, 33, 36, 0.18);
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.92); transform: scale(1.06); box-shadow: 0 10px 22px -8px rgba(32, 33, 36, 0.24); }
.menu-toggle:active { transform: scale(0.95); }

/* ==================== ARCHITECTURAL MEGAMENU ==================== */
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}
.mob-nav-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}

/* Single-panel architectural menu */
.mob-panel {
  position: relative;
  width: 100%;
  z-index: 2;
}

.mob-top {
  position: absolute;
  inset: 12px 12px auto 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border-radius: 28px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 40px 80px -20px rgba(15, 17, 21, 0.45);
  transform: translateY(-110%);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

/* Top bar inside menu — logo + close */
.mm-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}
.mm-top-bar .mm-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.mm-top-bar .mm-logo img.mark { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.8); }
.mm-top-bar .mm-logo img.txt { width: 110px; height: auto; }
.mm-close {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32, 33, 36, 0.06);
  border: 1px solid rgba(32, 33, 36, 0.08);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.25s var(--ease-out-quart), transform 0.3s var(--ease-out-back);
}
.mm-close:hover { background: rgba(32, 33, 36, 0.1); transform: rotate(90deg); }

/* Primary nav list (large architectural type) */
.mob-nav-list {
  list-style: none;
  margin: 0; padding: 12px 22px 16px;
  display: grid;
  gap: 0;
  overflow-y: auto;
}
.mob-nav-item {
  overflow: hidden;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}
.mob-nav-item:last-of-type { border-bottom: none; }
.mob-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 4px;
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-family: var(--heading-font);
  transition: color 0.25s var(--ease-out-quart), padding-left 0.4s var(--ease-out-back);
}
.mob-nav-link::after {
  content: "→";
  font-size: 1.1rem;
  color: rgba(32, 33, 36, 0.32);
  transition: transform 0.4s var(--ease-out-back), color 0.25s var(--ease-out-quart);
}
.mob-nav-link:hover,
.mob-nav-link[aria-current="page"] {
  color: var(--blue);
  padding-left: 8px;
}
.mob-nav-link:hover::after { transform: translateX(6px); color: var(--blue); }

/* Featured projects — architectural mega-thumbs */
.mob-middle {
  padding: 18px 22px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  display: grid;
  gap: 12px;
}
.mob-projects-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8b93a1;
}
.mob-projects-label a {
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mob-projects-label a:hover { color: var(--blue); }
.mob-thumbs {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 72px 72px;
  gap: 8px;
}
.mob-thumb-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  isolation: isolate;
}
.mob-thumb-card.is-feature { grid-row: span 2; }
.mob-thumb-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-quart), filter 0.5s var(--ease-out-quart);
  filter: brightness(0.78) saturate(1.04);
}
.mob-thumb-card:hover img { transform: scale(1.08); filter: brightness(0.9) saturate(1.1); }
.mob-thumb-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 17, 21, 0.55) 100%);
  pointer-events: none;
}
.mob-thumb-card .mob-thumb-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}
.mob-thumb-card .mob-thumb-meta small {
  display: block;
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  opacity: 0.78;
  font-weight: 600;
  text-transform: uppercase;
}

/* Studio meta + social rail */
.mob-nav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  background: rgba(247, 244, 237, 0.6);
  font-size: 0.78rem;
  color: #5f6368;
}
.mob-nav-meta strong { color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }
.mm-social { display: flex; gap: 8px; }
.mm-social a {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32, 33, 36, 0.04);
  color: #5f6368;
  transition: background 0.25s var(--ease-out-quart), color 0.25s var(--ease-out-quart), transform 0.3s var(--ease-out-back);
}
.mm-social a:hover {
  background: var(--ink); color: #ffd877; transform: translateY(-2px);
}
.mm-social svg { width: 14px; height: 14px; }

/* Bottom: gold CTA pill */
.mob-bottom {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: linear-gradient(135deg, #0f2547 0%, #132f5b 55%, #183a70 100%);
  border-radius: 22px;
  border: 1px solid rgba(244, 198, 87, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  z-index: 1;
  transform: translateY(110%);
  box-shadow:
    0 24px 50px -16px rgba(15, 37, 71, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 36px rgba(244, 198, 87, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.mob-bottom::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background:
    radial-gradient(circle at 28% 36%, rgba(244, 198, 87, 0.3), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(74, 132, 228, 0.22), transparent 36%);
  animation: vektor-liquid-shift 6s linear infinite;
  z-index: -1;
}
.mob-cta-text { display: flex; flex-direction: column; gap: 2px; color: #ffd877; }
.mob-cta-title { font-size: 0.95rem; font-weight: 700; color: #ffd877; letter-spacing: -0.01em; }
.mob-cta-sub { font-size: 0.72rem; color: rgba(255, 255, 255, 0.74); font-weight: 500; }
.mob-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffd877; color: #0f2547;
  font-family: inherit;
  font-size: 0.82rem; font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s var(--ease-out-quart), transform 0.3s var(--ease-out-back);
}
.mob-cta-btn:hover { background: #fff; transform: translateX(3px); }

/* ==================== RESPONSIVE ==================== */
/* Mobile + tablet floating pill header */
@media (max-width: 920px) {
  .nav { padding: 12px 12px 0; background: transparent !important; backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; }
  .nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(32, 33, 36, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 28px -10px rgba(32, 33, 36, 0.18);
    gap: 8px;
    align-items: center;
  }
  .nav.is-scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px -10px rgba(32, 33, 36, 0.22);
  }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav .btn-secondary { display: none; }
  .logo-text { width: 110px; }
  .logo-mark { width: 32px; height: 32px; }
  .container { width: min(100vw - 24px, 1280px); }
  section { padding: 56px 0; }
  main { padding-top: 88px; }

  /* Image-heavy hero grids stack and remain visible */
  .hero-grid,
  .pd-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .hero-media,
  .pd-hero-media,
  .story-media {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
  }
  .hero-media img,
  .story-media img {
    min-height: 0 !important;
  }
  /* Page hero typography */
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .pd-stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 721px) and (max-width: 920px) {
  .container { width: min(100vw - 28px, 1280px); }
  .nav-inner { flex-wrap: wrap; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
}

/* ==================== PAGE-LEVEL POLISH (override-friendly) ==================== */

/* Project cards (used on projects/index.html and start-a-project recent work) */
.project-card,
.work-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .6s var(--ease-out-quart),
    box-shadow .6s var(--ease-out-quart),
    border-color .35s var(--ease-out-quart);
}
.project-card img,
.work-card img {
  transition: transform 1.2s var(--ease-out-quart), filter .6s var(--ease-out-quart);
  will-change: transform;
  filter: saturate(1.06) contrast(1.03) brightness(1.02);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -20px rgba(32, 33, 36, 0.22);
  border-color: rgba(32, 33, 36, 0.16);
}
.project-card:hover img,
.work-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.14) contrast(1.06) brightness(1.04);
}

/* Hero media containers across pages get richer treatment */
.hero-media,
.story-media {
  position: relative;
  isolation: isolate;
  box-shadow: 0 40px 80px -20px rgba(32, 33, 36, 0.24);
}
.hero-media img,
.story-media img {
  transition: transform 1.6s var(--ease-out-quart), filter .6s var(--ease-out-quart);
  will-change: transform;
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}
.hero-media:hover img,
.story-media:hover img {
  transform: scale(1.04);
  filter: saturate(1.14) contrast(1.06) brightness(1.05);
}

/* Stat cards & sector cards lift on hover */
.stat-card,
.sector-card,
.hero-stat,
.city-card,
.principle-card,
.mini-card {
  transition:
    transform .5s var(--ease-out-quart),
    box-shadow .5s var(--ease-out-quart),
    border-color .35s var(--ease-out-quart),
    background .35s var(--ease-out-quart);
}
.stat-card:hover,
.sector-card:hover,
.hero-stat:hover,
.city-card:hover,
.principle-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px -16px rgba(32, 33, 36, 0.18);
}

/* Chips on the projects browse filter */
.chip {
  transition:
    transform .3s var(--ease-out-back),
    background .3s var(--ease-out-quart),
    color .3s var(--ease-out-quart),
    border-color .3s var(--ease-out-quart);
  cursor: pointer;
}
.chip:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Timeline / Phase cards (process page) */
.timeline-card,
.phase-step,
.story-card {
  transition:
    transform .55s var(--ease-out-quart),
    box-shadow .55s var(--ease-out-quart),
    border-color .35s var(--ease-out-quart),
    background .35s var(--ease-out-quart);
}
.timeline-card:hover,
.phase-step:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px -18px rgba(32, 33, 36, 0.18);
  border-color: rgba(32, 33, 36, 0.16);
}

/* Form inputs polish (start-a-project, contact, etc.) */
input, textarea, select {
  transition:
    border-color .3s var(--ease-out-quart),
    box-shadow .3s var(--ease-out-quart),
    background .3s var(--ease-out-quart);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.16);
}

/* Subtle "scroll cue" animation on hero arrows / next-section markers */
@keyframes vektor-scroll-cue {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(6px); opacity: 1; }
}
[data-scroll-cue] { animation: vektor-scroll-cue 2s ease-in-out infinite; }

/* Lazy image fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .5s var(--ease-out-quart);
}
img[loading="lazy"].is-loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Selection within dark surfaces */
.footer ::selection { background: rgba(244, 198, 87, 0.4); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
