:root {
  --bg: #050712;
  --fg: #f7f7ff;
  --muted: rgba(157, 160, 198, 0.95);
  --accent-1: #ff8ad9;
  --accent-2: #7af0ff;
  --accent-3: #ffe58a;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto !important;
  overflow-x: hidden;
}

.vs-shell {
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.vs-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.vs-cursor-ring {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(157, 160, 198, 0.75);
  background: rgba(5, 7, 18, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 70;
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.vs-cursor-ring.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  border-color: rgba(122, 240, 255, 0.55);
  box-shadow: 0 0 22px rgba(122, 240, 255, 0.12);
}

.vs-cursor-ring.is-slogan {
  border-color: rgba(255, 138, 217, 0.65);
  box-shadow: 0 0 22px rgba(255, 138, 217, 0.12);
}

.vs-home {
  width: min(980px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  position: relative;
}

/* Home: push content down safely (no more cutting at the top) */
.vs-stage[data-stage="home"] {
  padding: 0;
}

.vs-stage[data-stage="home"].is-active {
  align-items: center;
  justify-content: center;
}

.vs-stage[data-stage="home"].is-active .vs-home {
  margin-top: 0;
  transform: none;
}

@media (max-height: 720px) {
  .vs-stage[data-stage="home"] {
    padding-bottom: 0;
  }

  .vs-stage[data-stage="home"].is-active .vs-home {
    transform: none;
  }
}

/* Very short viewports: keep Velory fully visible */
@media (max-height: 560px) {
  .vs-stage[data-stage="home"].is-active .vs-home {
    transform: none;
  }

  .vs-wordmark__velory {
    font-size: clamp(3rem, 7.1vw, 6rem);
  }

  .vs-slogan {
    font-size: clamp(13px, 2vw, 17px);
  }

  .vs-scroll-hint {
    margin-top: 8px;
  }
}

@media (max-height: 800px) {
  .vs-wordmark__velory {
    font-size: clamp(3.2rem, 8.4vw, 7.2rem);
  }

  .vs-slogan {
    font-size: clamp(16px, 2.6vw, 22px);
  }
}

.vs-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.0;
  user-select: none;
}

.vs-wordmark__velory {
  font-size: clamp(3.8rem, 9.8vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(184, 255, 252, 0.98);
  text-shadow:
    0 0 22px rgba(122, 240, 255, 0.22),
    0 0 60px rgba(255, 138, 217, 0.12);
}

.vs-wordmark__studio {
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  padding-left: 0.5em;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vs-slogan {
  margin: 0;
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}

.vs-slogan--glitch {
  animation: vsSloganGlitch 0.55s steps(2, end) both;
}

.vs-slogan--persistent-glitch {
  /* Continuous but subtle glitch (lower intensity, longer duration). */
  animation: vsSloganPersistentGlitch 3.6s steps(2, end) infinite;
}

@keyframes vsSloganPersistentGlitch {
  0% {
    filter: saturate(1.45) contrast(1.18);
    text-shadow:
      -2px 0 rgba(255, 60, 90, 0.6),
      2px 0 rgba(90, 255, 175, 0.35),
      0 0 20px rgba(0, 200, 255, 0.28);
  }
  25% {
    transform: translate3d(0, -1.1px, 0);
    text-shadow:
      2px -1px rgba(255, 60, 90, 0.48),
      -2px 1px rgba(90, 255, 175, 0.3),
      0 0 20px rgba(0, 200, 255, 0.22);
  }
  50% {
    filter: none;
    text-shadow: none;
    transform: translate3d(0, 0, 0);
  }
  100% {
    filter: saturate(1.45) contrast(1.18);
    text-shadow:
      -2px 0 rgba(255, 60, 90, 0.6),
      2px 0 rgba(90, 255, 175, 0.35),
      0 0 20px rgba(0, 200, 255, 0.28);
  }
}

@keyframes vsSloganGlitch {
  0% {
    filter: saturate(1.35) contrast(1.1);
    text-shadow:
      -2px 0 rgba(255, 60, 90, 0.7),
      2px 0 rgba(90, 255, 175, 0.45),
      0 0 18px rgba(0, 200, 255, 0.35);
    transform: translate3d(0, 0, 0);
  }
  45% {
    transform: translate3d(0, -1px, 0);
    text-shadow:
      2px -1px rgba(255, 60, 90, 0.58),
      -2px 1px rgba(90, 255, 175, 0.38),
      0 0 18px rgba(0, 200, 255, 0.42);
  }
  100% {
    filter: none;
    text-shadow: none;
    transform: translate3d(0, 0, 0);
  }
}

.vs-scroll-hint {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 18, 0.55);
  color: rgba(157, 160, 198, 0.95);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}

.vs-scroll-hint:hover,
.vs-scroll-hint:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(122, 240, 255, 0.35);
  color: var(--fg);
  box-shadow: 0 0 28px rgba(122, 240, 255, 0.12);
  outline: none;
}

.vs-scroll-hint__arrow {
  font-size: 18px;
  line-height: 1;
  animation: vsScrollArrow 1.4s ease-in-out infinite;
}

@keyframes vsScrollArrow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0);
  }
}

.vs-scroll-hint__text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vs-menu {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 18, 0.92);
  backdrop-filter: blur(20px);
}

.vs-menu-item {
  border: none;
  background: transparent;
  color: rgba(157, 160, 198, 0.95);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
}

.vs-menu-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.vs-menu-item.is-active {
  color: #050712;
}

.vs-menu-item.is-active::after {
  opacity: 1;
}

.vs-menu-item.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vs-menu-item--featured {
  opacity: 1;
}

.vs-menu-item--featured::after {
  opacity: 0.55;
  animation: vsMenuPulse 2.4s ease-in-out infinite;
}

@keyframes vsMenuPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.08);
  }
}

/* Contact */
.vs-contact {
  width: min(700px, 92vw);
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 0 0 10px;
  min-height: 0;
}

.vs-stage[data-stage="contact"] {
  overflow: hidden;
  justify-content: flex-start;
  align-items: center;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-bottom: 61px;
  padding-left: 24px;
  padding-right: 24px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.vs-contact-head {
  margin-bottom: 28px;
}

.vs-contact-kicker {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(157, 160, 198, 0.95);
  margin-bottom: 12px;
}

.vs-contact-mega {
  margin: 0 0 18px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.vs-contact-mega__line {
  display: block;
  font-size: clamp(2.3rem, 5.5vw, 5rem);
  font-weight: 700;
}

.vs-contact-mega__line--blast {
  font-size: clamp(3.1rem, 7.5vw, 7.2rem);
  background: linear-gradient(120deg, var(--accent-3), var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(255, 229, 138, 0.22));
}

.vs-contact-dek {
  margin: 0;
  color: rgba(157, 160, 198, 0.95);
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.65;
  max-width: 34em;
}

.vs-contact-mail {
  display: block;
  text-decoration: none;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 18, 0.7);
  box-shadow: 0 0 0 0 rgba(122, 240, 255, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.vs-contact-mail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--hx, 50%) var(--vy, 50%),
    rgba(255, 138, 217, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.vs-contact-mail__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(157, 160, 198, 0.9);
  margin-bottom: 10px;
}

.vs-contact-mail__addr {
  display: block;
  font-size: clamp(1.25rem, 3.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(105deg, var(--fg), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vs-contact-mail__hint {
  display: block;
  font-size: 12px;
  color: rgba(157, 160, 198, 0.95);
  letter-spacing: 0.04em;
}

.vs-contact-mail:hover {
  transform: translateX(4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(122, 240, 255, 0.12),
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(255, 138, 217, 0.1);
}

.vs-contact-mail:hover::after {
  opacity: 1;
}

.vs-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vs-contact-pill {
  text-decoration: none;
  color: rgba(157, 160, 198, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(5, 7, 18, 0.55);
}

.vs-contact-pill:hover {
  border-color: rgba(122, 240, 255, 0.35);
  color: var(--fg);
}

.vs-contact-note {
  margin: 18px 0 0;
  color: rgba(157, 160, 198, 0.85);
  font-size: 13px;
  line-height: 1.65;
  max-width: 34em;
}

/* Contact form */
.vs-contact-form {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 18, 0.52);
  box-shadow:
    0 0 0 1px rgba(122, 240, 255, 0.04),
    0 26px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.vs-contact-form::before {
  content: "";
  position: absolute;
  inset: -60px -80px;
  background:
    radial-gradient(520px 240px at 18% 18%, rgba(122, 240, 255, 0.18), transparent 62%),
    radial-gradient(520px 240px at 82% 30%, rgba(255, 138, 217, 0.14), transparent 64%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.vs-contact-form-head {
  padding: 18px 18px 8px;
  position: relative;
  z-index: 2;
}

.vs-contact-kicker--form {
  margin-bottom: 10px;
}

.vs-contact-form-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: rgba(240, 245, 255, 0.95);
}

.vs-service-picker {
  padding: 8px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.vs-service-pill {
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 18, 0.25);
  color: rgba(157, 160, 198, 0.95);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    background 0.25s ease;
  user-select: none;
  position: relative;
  z-index: 3;
}

.vs-service-pill[aria-checked="true"] {
  color: var(--fg);
  border-color: rgba(122, 240, 255, 0.35);
  box-shadow: 0 0 34px rgba(122, 240, 255, 0.12);
  background: rgba(5, 7, 18, 0.45);
}

.vs-service-pill:hover,
.vs-service-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 28px rgba(122, 240, 255, 0.08);
  border-color: rgba(122, 240, 255, 0.25);
}

.vs-form {
  padding: 0 18px 18px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.vs-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.vs-field:first-child {
  margin-top: 0;
}

.vs-field__label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(157, 160, 198, 0.95);
}

.vs-field__input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(5, 7, 18, 0.6);
  color: rgba(240, 245, 255, 0.95);
  padding: 14px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vs-field__textarea {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.vs-field__input::placeholder,
.vs-field__textarea::placeholder {
  color: rgba(157, 160, 198, 0.7);
}

.vs-field__input:focus {
  border-color: rgba(122, 240, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(122, 240, 255, 0.12), 0 0 34px rgba(122, 240, 255, 0.08);
}

.vs-field__textarea {
  resize: vertical;
  min-height: 120px;
}

.vs-field--wide {
  margin-top: 14px;
}

.vs-form-submit {
  margin-top: 16px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 18, 0.45);
  color: rgba(157, 160, 198, 0.95);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    background 0.25s ease;
}

.vs-form-submit:hover,
.vs-form-submit:focus-visible {
  outline: none;
  border-color: rgba(122, 240, 255, 0.35);
  box-shadow: 0 0 34px rgba(122, 240, 255, 0.12);
  color: var(--fg);
}

.vs-form-submit__text {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.vs-form-submit__hint {
  font-size: 12px;
  color: rgba(157, 160, 198, 0.85);
}

.vs-form-note {
  margin: 12px 0 0;
  color: rgba(157, 160, 198, 0.85);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Work */
.vs-stage[data-stage="work"] {
  justify-content: center;
  align-items: center;
  padding: 76px 0 72px !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vs-work {
  width: min(1160px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.vs-work::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  mix-blend-mode: screen;
  background:
    radial-gradient(520px 260px at 18% 18%, rgba(122, 240, 255, 0.22), transparent 62%),
    radial-gradient(540px 280px at 82% 30%, rgba(255, 138, 217, 0.18), transparent 64%),
    radial-gradient(440px 220px at 55% 82%, rgba(90, 255, 175, 0.12), transparent 60%),
    linear-gradient(120deg, rgba(122, 240, 255, 0.08), transparent 55%);
  filter: blur(0.35px);
  animation: vsWorkGridDrift 7.2s ease-in-out infinite;
}

.vs-work::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(122, 240, 255, 0.05),
    0 0 50px rgba(122, 240, 255, 0.06);
  opacity: 0.55;
}

.vs-work-head,
.vs-work-grid {
  position: relative;
  z-index: 1;
}

@keyframes vsWorkGridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.vs-work-head {
  margin-bottom: 18px;
}

.vs-work-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: rgba(157, 160, 198, 0.78);
}

.vs-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  perspective: 1100px;
}

.vs-project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: none;
  background: rgba(5, 7, 18, 0.4);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 0 0 0.5px rgb(var(--cR) var(--cG) var(--cB) / 0.7),
    0 0 18px rgb(var(--cR) var(--cG) var(--cB) / var(--glowA)),
    0 0 54px rgb(var(--cR) var(--cG) var(--cB) / var(--glowB)),
    0 30px 110px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  user-select: none;
  --glowA: 0.14;
  --glowB: 0.07;
}

.vs-project-media {
  height: 132px;
  position: relative;
  background: radial-gradient(
      70% 60% at 30% 20%,
      rgb(var(--cR) var(--cG) var(--cB) / 0.22),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(10, 14, 40, 0.72), rgba(0, 0, 0, 0.35));
}

.vs-project-media::after {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(
      80% 70% at 30% 20%,
      rgb(var(--cR) var(--cG) var(--cB) / 0.22),
      transparent 60%
    ),
    radial-gradient(
      70% 60% at 75% 40%,
      rgba(255, 255, 255, 0.12),
      transparent 62%
    );
  opacity: 0.22;
  filter: blur(18px);
  pointer-events: none;
}

.vs-project-media__corner {
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: rgba(157, 160, 198, 0.9);
}

.vs-project-card--youtmob {
  --cR: 167;
  --cG: 105;
  --cB: 255;
}

.vs-project-card--queenclean {
  --cR: 255;
  --cG: 85;
  --cB: 200;
}

.vs-project-card--queenclean .vs-project-title {
  /* "QueenClean" is longer; keep it fully visible without clipping. */
  font-size: clamp(1.95rem, 3.25vw, 2.95rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.vs-project-media--youtmob {
  background: radial-gradient(
      60% 55% at 22% 18%,
      rgb(var(--cR) var(--cG) var(--cB) / 0.28),
      transparent 62%
    ),
    linear-gradient(135deg, rgba(85, 0, 255, 0.25), rgba(0, 0, 0, 0.25));
}

.vs-project-media--queenclean {
  background: radial-gradient(
      62% 55% at 30% 25%,
      rgb(var(--cR) var(--cG) var(--cB) / 0.22),
      transparent 64%
    ),
    linear-gradient(135deg, rgba(255, 0, 140, 0.18), rgba(0, 0, 0, 0.22));
}

.vs-project-card--placeholder {
  opacity: 0.85;
  cursor: default;
  --cR: 140;
  --cG: 170;
  --cB: 255;
}

.vs-project-body {
  padding: 14px 16px 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.vs-project-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: linear-gradient(
    90deg,
    rgb(var(--cR) var(--cG) var(--cB) / 0.98),
    rgba(255, 255, 255, 0.78)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 22px rgb(var(--cR) var(--cG) var(--cB) / 0.18),
    0 0 46px rgb(var(--cR) var(--cG) var(--cB) / 0.08);
}

.vs-project-sub {
  margin: 8px 0 0;
  color: #888;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  max-width: 28ch;
}

.vs-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vs-project-tags span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(224, 228, 255, 0.85);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 18, 0.42);
}

.vs-project-cta {
  margin-top: 12px;
  align-self: flex-start;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 7, 18, 0.28);
  color: rgba(157, 160, 198, 0.95);
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background 0.2s ease, opacity 0.2s ease;
}

.vs-project-cta:hover,
.vs-project-cta:focus-visible {
  outline: none;
  color: var(--fg);
}

.vs-project-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* GSAP parallax helpers */
.vs-parallax-title,
.vs-parallax-desc,
.vs-parallax-tags,
.vs-parallax-media,
.vs-parallax-cta {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 980px) {
  .vs-work-grid {
    grid-template-columns: 1fr;
  }
  .vs-stage[data-stage="work"] {
    padding: 60px 0 48px !important;
  }
}

/* Case study */
.vs-stage[data-stage="case"] {
  overflow: hidden;
  justify-content: flex-start;
  align-items: center;
  padding: 0 !important;
}

.vs-case {
  width: min(1220px, 94vw);
  margin: 0 auto;
  padding: 56px 0 64px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vs-case-head {
  margin-bottom: 18px;
}

.vs-case-brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.vs-case-title {
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 6.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(
    90deg,
    rgb(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.98),
    rgba(255, 255, 255, 0.82)
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 22px rgb(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.18),
    0 0 46px rgb(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
}

.vs-case-number {
  font-size: clamp(2rem, 4.3vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(var(--cR, 122) var(--cG, 240) var(--cB, 255) / 0.92);
  text-shadow: 0 0 24px rgba(var(--cR, 122) var(--cG, 240) var(--cB, 255) / 0.18);
}

@keyframes vsCaseTitleGlitch {
  0% {
    filter: none;
    text-shadow:
      0 0 22px rgb(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.18),
      0 0 46px rgb(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
  }
  18% {
    filter: saturate(1.2);
    text-shadow:
      -2px 0 rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.26),
      2px 0 rgba(255, 138, 217, 0.14);
  }
  38% {
    filter: contrast(1.08);
  }
  58% {
  }
  78% {
    filter: saturate(1.1);
  }
  100% {
    filter: none;
  }
}

@keyframes vsCaseNumberPulse {
  0%,
  100% {
    opacity: 0.95;
    filter: none;
  }
  45% {
    opacity: 1;
    filter: drop-shadow(0 0 26px rgba(var(--cR, 122) var(--cG, 240) var(--cB, 255) / 0.35));
  }
}

@keyframes vsCaseFrameShimmer {
  0% {
    opacity: 0.85;
    box-shadow:
      0 0 18px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 34px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  100% {
    opacity: 0.85;
    box-shadow:
      0 0 18px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

.vs-stage[data-stage="case"] .vs-case-title,
.vs-stage[data-stage="case"] .vs-case-number {
  opacity: 0;
}

.vs-stage[data-stage="case"] .vs-case-left {
  opacity: 0;
}

.vs-stage[data-stage="case"] .vs-case-screenshot__img.is-ready,
.vs-stage[data-stage="case"] .vs-case-image-slot.has-img {
  opacity: 0;
}

@keyframes vsCaseFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vs-stage[data-stage="case"].is-active .vs-case-title,
.vs-stage[data-stage="case"].is-active .vs-case-number {
  animation: vsCaseFadeIn 0.3s ease forwards;
  animation-delay: 0.02s;
}

.vs-stage[data-stage="case"].is-active .vs-case-left {
  animation: vsCaseFadeIn 0.3s ease forwards;
  animation-delay: 0.14s;
}

.vs-stage[data-stage="case"].is-active .vs-case-screenshot__img.is-ready,
.vs-stage[data-stage="case"].is-active .vs-case-image-slot.has-img {
  animation: vsCaseFadeIn 0.3s ease forwards;
  animation-delay: 0.28s;
}

.vs-stage[data-stage="case"].is-active .vs-case-frame::before {
  animation: none !important;
}

.vs-case-frame {
  position: relative;
  border-radius: 24px;
  background: rgba(5, 7, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 30px rgba(188, 19, 254, 0.15),
    0 0 0 1px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.18),
    0 0 60px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vs-case-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  pointer-events: none;
  border: 1px solid rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.22);
  box-shadow:
    0 0 18px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.14),
    0 0 26px rgba(188, 19, 254, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.95;
}

.vs-case-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 18px;
  min-height: 0;
  flex: 1;
  align-items: start;
}

.vs-case-left {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vs-case-right {
  padding: 12px 8px;
}

.vs-case-block {
  margin-bottom: 12px;
}

.vs-case-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(157, 160, 198, 0.78);
  margin-bottom: 8px;
}

.vs-case-brief {
  margin: 0;
  color: rgba(157, 160, 198, 0.95);
  line-height: 1.65;
  font-size: 14.5px;
  max-width: 44ch;
}

/* YoutMob: allow more brief lines so expanded copy is visible (was clamped too tight). */
.vs-stage[data-stage="case"][data-project="youtmob"] .vs-case-brief#vs-case-brief {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-case-extended {
  font-size: 14px;
  max-width: 48ch;
  /* Project story — enough lines for ~25% longer copy */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-stage[data-stage="case"][data-project="youtmob"] .vs-case-extended {
  -webkit-line-clamp: 6;
}

.vs-stage[data-stage="case"][data-project="youtmob"] .vs-case-left .vs-case-block {
  margin-bottom: 10px;
}

.vs-stage[data-stage="case"][data-project="youtmob"] .vs-case-left .vs-case-label {
  margin-bottom: 6px;
}

/* QueenClean: asymmetrical bento layout focused on readable text. */
.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-frame {
  padding: 32px;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-grid {
  grid-template-columns: 32fr 68fr;
  gap: 32px;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-left {
  padding: 0;
  padding-right: 8px;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-brief,
.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-extended {
  max-width: none;
  font-weight: 400;
  line-height: 1.7;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-extended {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-right {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: end;
  gap: 24px;
  padding: 0;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-screenshot,
.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-gallery {
  width: min(100%, 860px);
  margin: 0;
  transform: none;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-gallery {
  margin-top: 0;
}

.vs-stage[data-stage="case"][data-project="queenclean"] .vs-case-image-grid {
  width: 100%;
}

.vs-case-gallery {
  margin-top: 16px;
}

.vs-case-gallery__label {
  margin-bottom: 10px;
}

.vs-case-gallery__hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: rgba(157, 160, 198, 0.85);
  letter-spacing: 0.01em;
}

.vs-case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vs-case-image-slot {
  aspect-ratio: 16 / 9;
  min-height: 160px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      420px 200px at 30% 20%,
      rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.18),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(10, 14, 40, 0.75), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.vs-case-image-slot--mobile {
  aspect-ratio: 9 / 16;
}

.vs-case-image-slot::after {
  content: "";
  display: none;
}

.vs-case-image-slot.has-img {
  animation: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.vs-case-image-slot.has-img:hover {
  transform: scale(1.02);
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.12);
}

@keyframes vsCaseImageHint {
  0% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 0 rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 28px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.12);
  }
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 0 rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0);
  }
}

.vs-stage[data-stage="case"].is-active .vs-case-image-slot.has-img:hover {
  opacity: 1;
}

/* If you drop <img> inside a slot, keep it cyber framed. */
.vs-case-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.vs-case-image-slot img + * {
  display: none;
}

/* Modal (lightbox) */
.vs-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.vs-image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vs-image-modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 18, 0.7);
  color: rgba(157, 160, 198, 0.95);
  padding: 10px 14px;
  cursor: pointer;
}

.vs-image-modal__img {
  max-width: min(92vw, 1100px);
  max-height: min(86vh, 820px);
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 80px rgba(122, 240, 255, 0.08);
}

.vs-case-tags {
  margin-top: 0;
}

.vs-case-tags span {
  background: rgba(5, 7, 18, 0.35);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.vs-case-tags span:hover,
.vs-case-tags span:focus-visible {
  background: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.16);
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.45);
  box-shadow: 0 0 26px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.18);
  color: var(--fg);
  outline: none;
}

.vs-case-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(157, 160, 198, 0.95);
}

.vs-case-bullets li {
  position: relative;
  padding-left: 16px;
  margin: 8px 0;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Show only the first 2 bullet points to keep column height aligned. */
.vs-case-bullets li:nth-child(n + 3) {
  display: none;
}

.vs-case-bullets li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.95);
}

.vs-case-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  border-radius: 18px;
  border: 1px solid rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.28);
  background:
    radial-gradient(
      900px 420px at 25% 25%,
      rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.22),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(10, 14, 40, 0.85), rgba(0, 0, 0, 0.35));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 42px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.vs-case-screenshot:hover {
  transform: scale(1.02);
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 64px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.14);
}

.vs-case-screenshot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vs-case-screenshot__img.is-ready {
  opacity: 1;
}

.vs-case-screenshot--mobile {
  aspect-ratio: 9 / 16;
  display: none;
}

.vs-case-screenshot--mobile + .vs-case-gallery {
  margin-top: 0;
}

.vs-case-screenshot__glow {
  position: absolute;
  inset: -80px -80px;
  background:
    radial-gradient(
      240px 160px at 22% 25%,
      rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.35),
      transparent 60%
    ),
    radial-gradient(
      260px 180px at 78% 30%,
      rgba(122, 240, 255, 0.18),
      transparent 65%
    );
  filter: blur(10px);
  opacity: 0.85;
  z-index: 1;
}

.vs-case-screenshot__mini {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 34%;
  display: none; /* Hidden: to avoid extra bottom rectangle on custom screenshots */
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(0, 0, 0, 0.28)
    ),
    radial-gradient(400px 200px at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
  opacity: 0.85;
  z-index: 1;
}

/* Legacy selector kept but not needed (mini is hidden globally). */
.vs-case-screenshot[data-project="queenclean"] .vs-case-screenshot__mini {
  display: none;
}

.vs-case-screenshot__label {
  position: absolute;
  left: 18px;
  top: 18px;
  color: rgba(240, 245, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.25);
  z-index: 2;
}

.vs-case-nav {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}

.vs-case-nav-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 18, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(157, 160, 198, 0.98);
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.vs-case-nav-pill:hover,
.vs-case-nav-pill:focus-visible {
  outline: none;
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.35);
  box-shadow: 0 0 30px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.12);
  color: var(--fg);
  transform: none;
}

@media (max-width: 980px) {
  .vs-case {
    padding: 44px 0 56px;
  }

  .vs-case-grid {
    grid-template-columns: 1fr;
  }

  .vs-case-screenshot {
    min-height: 360px;
  }

  .vs-case-brand {
    flex-wrap: wrap;
    gap: 10px;
  }

  .vs-case-image-slot {
    min-height: 130px;
  }
}

/* About */
.vs-stage[data-stage="about"] {
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-bottom: 61px;
  padding-left: 24px;
  padding-right: 24px;
  overflow: hidden;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
  display: flex;
}

.vs-about {
  width: min(960px, 92vw);
  max-width: 72rem;
  padding: 0 0 60px;
  position: relative;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* (layout-only) */ 
.vs-stage {
  scroll-margin-top: 80px;
}

.vs-about-head {
  margin-bottom: 18px;
}

.vs-about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: rgba(157, 160, 198, 0.78);
  margin-bottom: 10px;
}

.vs-about-mega {
  margin: 0 0 14px;
  line-height: 0.95;
}

.vs-about-mega__line {
  display: block;
  font-size: clamp(2.2rem, 5.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
  filter: drop-shadow(0 0 26px rgba(255, 229, 138, 0.14));
  will-change: transform, filter;
}

.vs-about-mega__line--blast {
  font-size: clamp(2.9rem, 7.2vw, 6.8rem);
  background: linear-gradient(
    120deg,
    var(--accent-3),
    var(--accent-1),
    var(--accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.38;
  filter: drop-shadow(0 0 34px rgba(255, 229, 138, 0.22));
  will-change: transform, filter;
}

@keyframes vsAboutDNABreathe {
  0% {
    opacity: 0.38;
    filter: drop-shadow(0 0 34px rgba(255, 138, 217, 0.26))
      drop-shadow(0 0 64px rgba(170, 140, 255, 0.14));
  }
  50% {
    opacity: 0.48;
    filter: drop-shadow(0 0 44px rgba(170, 140, 255, 0.28))
      drop-shadow(0 0 78px rgba(255, 138, 217, 0.14));
  }
  100% {
    opacity: 0.38;
    filter: drop-shadow(0 0 34px rgba(255, 138, 217, 0.26))
      drop-shadow(0 0 64px rgba(170, 140, 255, 0.14));
  }
}

/* Only animate DNA while ABOUT stage is active */
.vs-stage[data-stage="about"].is-active #vs-about-dna {
  animation: vsAboutDNABreathe 2.8s ease-in-out infinite;
}

.vs-about-dek {
  margin: 0 auto;
  color: rgba(157, 160, 198, 0.95);
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.7;
  max-width: 42ch;
}

.vs-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.vs-about-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 18, 0.42);
  padding: 16px 16px 18px;
  --cardR: 170;
  --cardG: 120;
  --cardB: 255;
  --aboutGlow: 0.16;
  --aboutGlow2: 0.08;
  box-shadow:
    inset 0 0 0 1px rgba(var(--cardR) var(--cardG) var(--cardB) / 0.7),
    0 0 14px rgba(var(--cardR) var(--cardG) var(--cardB) / var(--aboutGlow)),
    0 0 42px
      rgba(var(--cardR) var(--cardG) var(--cardB) / var(--aboutGlow2)),
    0 30px 110px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.vs-about-card::after {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(
    320px 160px at 20% 10%,
    rgba(var(--cardR) var(--cardG) var(--cardB) / 0.2),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}

@keyframes vsAboutCardTitleGlitch {
  0% {
    transform: translate3d(0, 0, 0);
    text-shadow: none;
    filter: none;
  }
  25% {
    transform: translate3d(-1px, 1px, 0);
    text-shadow:
      -2px 0 rgba(var(--cardR), var(--cardG), var(--cardB), 0.35),
      2px 0 rgba(255, 138, 217, 0.22);
    filter: saturate(1.25);
  }
  50% {
    transform: translate3d(1px, 0px, 0);
    text-shadow:
      2px 0 rgba(var(--cardR), var(--cardG), var(--cardB), 0.28),
      -2px 0 rgba(122, 240, 255, 0.22);
    filter: contrast(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0);
    text-shadow: none;
    filter: none;
  }
}

.vs-about-card--hover {
  /* Light "glass" feel; neon glow remains controlled by JS variables. */
  background: rgba(5, 7, 18, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vs-about-card--hover::after {
  opacity: 0.88;
}

.vs-about-card--hover .vs-about-card__title {
  animation: vsAboutCardTitleGlitch 0.55s steps(2, end) both;
}

.vs-about-card--purple {
  --cardR: 170;
  --cardG: 110;
  --cardB: 255;
}

.vs-about-card--cyan {
  --cardR: 122;
  --cardG: 240;
  --cardB: 255;
}

.vs-about-card--pink {
  --cardR: 255;
  --cardG: 90;
  --cardB: 200;
}

.vs-about-card__title,
.vs-about-card__text {
  will-change: transform;
}

.vs-about-card__title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 245, 255, 0.92);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.vs-about-card__text {
  margin: 10px 0 0;
  color: rgba(157, 160, 198, 0.92);
  font-size: 13.5px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.vs-about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.vs-chip {
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 18, 0.35);
  color: rgba(157, 160, 198, 0.98);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  --chipA: rgba(122, 240, 255, 0.35);
  --chipB: rgba(255, 138, 217, 0.28);
  box-shadow:
    0 0 0 0 rgba(0, 0, 0, 0),
    0 0 18px rgba(122, 240, 255, 0);
}

/* About "wow" tabs animation */
.vs-stage[data-stage="about"].is-active .vs-chip {
  animation:
    vsChipFloat 3.8s ease-in-out infinite,
    vsChipNeonPulse 2.2s steps(2, end) infinite;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.vs-chip::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 80%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 40%,
    transparent 75%
  );
  opacity: 0;
  transform: translateX(-20%);
  pointer-events: none;
}

.vs-stage[data-stage="about"].is-active .vs-chip::after {
  animation: vsChipSheen 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 120ms);
}

.vs-chip:nth-child(1) {
  --chipA: rgba(122, 240, 255, 0.45);
  --chipB: rgba(0, 200, 255, 0.24);
  --i: 0;
}
.vs-chip:nth-child(2) {
  --chipA: rgba(255, 138, 217, 0.42);
  --chipB: rgba(255, 229, 138, 0.20);
  --i: 1;
}
.vs-chip:nth-child(3) {
  --chipA: rgba(90, 255, 175, 0.35);
  --chipB: rgba(122, 240, 255, 0.22);
  --i: 2;
}
.vs-chip:nth-child(4) {
  --chipA: rgba(170, 140, 255, 0.36);
  --chipB: rgba(255, 138, 217, 0.20);
  --i: 3;
}
.vs-chip:nth-child(5) {
  --chipA: rgba(255, 229, 138, 0.33);
  --chipB: rgba(122, 240, 255, 0.22);
  --i: 4;
}

@keyframes vsChipFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes vsChipNeonPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 0 14px rgba(122, 240, 255, 0.0),
      0 0 36px var(--chipA);
  }
  35% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 0 18px var(--chipA),
      0 0 52px var(--chipB);
  }
  70% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 0 12px rgba(122, 240, 255, 0.08),
      0 0 44px var(--chipA);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 0, 0, 0),
      0 0 14px rgba(122, 240, 255, 0.0),
      0 0 36px var(--chipA);
  }
}

@keyframes vsChipSheen {
  0% {
    opacity: 0;
    transform: translateX(-35%) rotate(0deg);
  }
  40% {
    opacity: 0.55;
  }
  60% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translateX(85%) rotate(0deg);
  }
}

@media (max-width: 980px) {
  .vs-about-grid {
    grid-template-columns: 1fr;
  }
  .vs-about {
    padding: 0 0 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-stage {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  .vs-stage.is-active {
    transition: none !important;
  }
  .vs-scroll-hint__arrow {
    animation: none !important;
  }
  .vs-slogan--glitch {
    animation: none !important;
  }

  .vs-slogan--persistent-glitch {
    animation: none !important;
  }
  .vs-menu-item--featured::after {
    animation: none !important;
  }

  .vs-stage[data-stage="case"].is-active .vs-case-title,
  .vs-stage[data-stage="case"].is-active .vs-case-number,
  .vs-stage[data-stage="case"].is-active .vs-case-frame::before {
    animation: none !important;
  }
}

/* Stage Overlay Defaults (navigation + natural scroll) */
.vs-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.vs-stage.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Luxury agency refinement overrides (visual only) ===== */
h1,
h2 {
  letter-spacing: 2px;
}

.vs-slogan,
.vs-project-sub,
.vs-case-brief,
.vs-case-extended,
.vs-about-dek,
.vs-about-card__text,
.vs-contact-dek,
.vs-form-note,
.vs-contact-note,
.vs-field__input,
.vs-field__textarea,
.vs-case-bullets li {
  font-weight: 400;
  line-height: 1.7;
}

.vs-work-kicker,
.vs-case-label,
.vs-project-tags span,
.vs-menu-item,
.vs-case-nav-pill,
.vs-contact-kicker,
.vs-contact-pill,
.vs-project-cta,
.vs-service-pill,
.vs-field__label {
  text-transform: uppercase;
}

/* 8px rhythm + breathing room */
.vs-work-head {
  margin-bottom: 24px;
}

.vs-work-grid {
  gap: 24px;
}

.vs-project-body {
  padding: 24px;
}

.vs-case {
  padding: 64px 0;
}

.vs-case-grid {
  gap: 24px;
}

.vs-case-left,
.vs-case-right {
  padding: 16px;
}

.vs-case-block {
  margin-bottom: 16px;
}

.vs-case-gallery {
  margin-top: 24px;
}

.vs-case-nav {
  gap: 16px;
  padding-top: 16px;
}

.vs-contact-form {
  padding: 24px 24px 16px;
}

/* Sharp modern radius */
.vs-project-card,
.vs-case-frame,
.vs-case-screenshot,
.vs-case-image-slot,
.vs-contact-form,
.vs-about-card,
.vs-image-modal__img,
.vs-case-screenshot__mini {
  border-radius: 12px;
}

.vs-menu,
.vs-menu-item,
.vs-project-cta,
.vs-case-nav-pill,
.vs-contact-pill,
.vs-service-pill,
.vs-project-tags span {
  border-radius: 12px;
}

/* Smoked glass + faint borders */
.vs-project-card,
.vs-case-frame,
.vs-contact-form,
.vs-about-card,
.vs-menu,
.vs-menu-item,
.vs-case-nav-pill,
.vs-project-cta,
.vs-contact-pill,
.vs-service-pill,
.vs-project-tags span {
  background: rgba(10, 10, 10, 0.5);
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Dim neon by ~50% */
.vs-project-card {
  --glowA: 0.07;
  --glowB: 0.035;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 10px rgb(var(--cR) var(--cG) var(--cB) / 0.07),
    0 0 28px rgb(var(--cR) var(--cG) var(--cB) / 0.035),
    0 16px 56px rgba(0, 0, 0, 0.24);
}

.vs-case-frame {
  box-shadow:
    0 0 14px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.07),
    0 0 0 1px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.09),
    0 0 28px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.04);
}

.vs-case-frame::before {
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.14);
  box-shadow:
    0 0 10px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.vs-about-card,
.vs-contact-form {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.22);
}

/* Hover border catch-light / accent */
.vs-project-card:hover,
.vs-project-card:focus-visible,
.vs-case-nav-pill:hover,
.vs-case-nav-pill:focus-visible,
.vs-project-cta:hover,
.vs-project-cta:focus-visible,
.vs-contact-pill:hover,
.vs-contact-pill:focus-visible,
.vs-service-pill:hover,
.vs-service-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.vs-project-card:hover {
  border-color: rgba(var(--cR) var(--cG) var(--cB) / 0.34) !important;
}

/* Screenshot polish */
.vs-case-screenshot {
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    border-color 0.55s ease;
}

.vs-case-screenshot:hover {
  transform: scale(1.02);
  border-color: rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 32px rgba(var(--cR, 255) var(--cG, 85) var(--cB, 200) / 0.08);
}

/* ===== MOBILE OPTIMIZATION (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Lightweight engine: no blur, no complex shadows, no mouse listeners */
  .vs-project-card,
  .vs-case-frame,
  .vs-contact-form,
  .vs-about-card,
  .vs-menu,
  .vs-menu-item,
  .vs-case-nav-pill,
  .vs-project-cta,
  .vs-contact-pill,
  .vs-service-pill,
  .vs-project-tags span {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Reduce glow intensity for mobile */
  .vs-project-card {
    --glowA: 0.03;
    --glowB: 0.015;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 6px rgb(var(--cR) var(--cG) var(--cB) / 0.03),
      0 0 14px rgb(var(--cR) var(--cG) var(--cB) / 0.015),
      0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .vs-case-frame {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 20px;
  }

  .vs-case-frame::before {
    display: none;
  }


  /* Swipeable gallery for mobile */
  .vs-case-image-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
  }

  .vs-case-image-slot {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    margin-right: 12px;
    min-height: 240px;
  }

  .vs-case-image-slot:last-child {
    margin-right: 0;
  }

  /* Universal Project Layout: vertical stack for ALL projects */
  .vs-case {
    padding: 40px 0 120px !important;
  }

  .vs-case-frame {
    display: flex;
    flex-direction: column !important;
    padding: 24px;
  }

  .vs-case-grid {
    display: flex;
    flex-direction: column !important;
    grid-template-columns: unset !important;
  }

  .vs-case-left {
    width: 100% !important;
    padding: 0 !important;
  }

  .vs-case-right {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 20px;
  }

  /* Text blocks: full width, no clipping */
  .vs-case-brief,
  .vs-case-extended {
    width: 100%;
    padding: 0 12px;
    max-width: 100% !important;
    font-weight: 400;
    line-height: 1.6;
  }

  /* Gallery: swipeable for ALL projects */
  .vs-case-image-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
  }

  .vs-case-image-slot {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    margin-right: 12px;
    min-height: 240px;
  }

  .vs-case-image-slot:last-child {
    margin-right: 0;
  }

  /* Fixed App-Style Navigation */
  .vs-menu {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    width: 90%;
    max-width: 360px;
    font-size: 11px;
    padding: 8px 12px;
    gap: 6px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .vs-menu-item {
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }

  .vs-menu-item.is-active {
    opacity: 1;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
  }

  .vs-menu-item:hover {
    opacity: 0.8;
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .vs-project-card:hover,
    .vs-project-card:focus-visible,
    .vs-case-screenshot:hover,
    .vs-case-image-slot:hover,
    .vs-case-nav-pill:hover {
      transform: none;
      border-color: rgba(255, 255, 255, 0.08);
    }
  }

  /* Work grid: single column on small mobile */
  @media (max-width: 480px) {
    .vs-work-grid {
      grid-template-columns: 1fr;
    }

    .vs-case-image-slot {
      flex: 0 0 90vw;
    }

    .vs-case-title {
      font-size: 1.5rem;
    }

    .vs-menu-item {
      font-size: 10px;
      padding: 5px 8px;
    }
  }

  /* Mobile project cards: reduce media height for better fit */
  .vs-project-media {
    height: 90px;
  }

  .vs-project-body {
    padding: 16px 12px;
  }

  .vs-project-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .vs-project-sub {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    line-height: 1.5;
  }
}

