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

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

:root {
  --brand: #ab00b6;
  --brand-bright: #d946ef;
  --brand-deep: #6b0073;
  --brand-soft: rgba(171, 0, 182, 0.14);
  --brand-glow: rgba(171, 0, 182, 0.36);

  --bg: #080510;
  --bg-elev: rgba(20, 12, 34, 0.72);
  --bg-solid: #120b1f;
  --bg-muted: rgba(255, 255, 255, 0.045);
  --text: #f7f4fb;
  --text-muted: #b3a7c4;
  --border: rgba(255, 255, 255, 0.11);
  --border-accent: rgba(217, 70, 239, 0.38);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 22px 55px -16px rgba(0, 0, 0, 0.65);
  --nav-bg: rgba(10, 6, 18, 0.72);

  --font-display: 'Space Grotesk', 'Segoe UI Variable Display', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --container: 1240px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ==================== NAVIGATION ==================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.06);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--brand-bright);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-link.active {
  box-shadow: inset 0 0 0 1px var(--border-accent);
  color: var(--text);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 235px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 80;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: var(--brand-soft);
  color: var(--text);
  transform: translateX(3px);
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-bright);
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mode-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.mode-btn:hover {
  border-color: var(--brand-bright);
  transform: rotate(15deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 180ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active,
.mode-btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px -8px var(--brand-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -6px var(--brand-glow);
}

.btn-ghost {
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-bright);
  background: var(--brand-soft);
}

.btn-icon {
  padding: 0.62rem 1.05rem;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 58;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--bg-muted);
}

.mobile-sub-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.mobile-sub-links a {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==================== MAIN & HERO 3D STAGE ==================== */
#app {
  flex: 1;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: clamp(610px, 82vh, 780px);
  display: flex;
  align-items: center;
  padding: 4.25rem 0 4.75rem;
  border-bottom: 1px solid var(--border);
}

.hero-stage--sub {
  min-height: clamp(470px, 60vh, 610px);
  padding: 3.5rem 0 4rem;
}

.hero-stage.hero-stage--home {
  min-height: clamp(560px, 74vh, 660px);
}

.hero-stage.hero-stage--sub.hero-stage--home {
  min-height: clamp(500px, 60vh, 550px);
}

.hero-stage--home .hero-copy.hero-copy--portfolio {
  max-width: 560px;
}

.hero-stage--sub .hero-video-stage {
  width: min(62%, 980px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 11%, rgba(0, 0, 0, 0.45) 18%, #000 28%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 11%, rgba(0, 0, 0, 0.45) 18%, #000 28%, #000 100%);
}

.hero-stage--sub .hero-video-stage[data-video-prefix="portfolio"] {
  width: min(52%, 820px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 20%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 20%, #000 100%);
}

.hero-stage--sub .hero-video-stage[data-video-prefix="portfolio"] .hero-vid {
  object-position: 86% center;
}

.hero-grid.hero-grid--home {
  position: static;
  grid-template-columns: minmax(0, 460px) 1fr;
}

.hero-grid.hero-grid--home.hero-grid--portfolio {
  grid-template-columns: minmax(0, 560px) 1fr;
}

.hero-stage--home .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 460px;
}

.hero-video-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(76%, 1260px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 28%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 28%, #000 100%);
}

.hero-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 10%),
    linear-gradient(to top, var(--bg) 0%, transparent 18%);
  pointer-events: none;
  z-index: 3;
}

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 1;
}

.hero-vid.is-active {
  opacity: 1;
}

.hero-vid--trans.is-active {
  z-index: 2;
  opacity: 1;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-glow-orb {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 0, 182, 0.28) 0%, transparent 66%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
  top: -120px;
  right: 2%;
  animation: pulseAura 8s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% { transform: scale(1) translate(0, 0); opacity: 0.72; }
  100% { transform: scale(1.18) translate(-30px, 25px); opacity: 1; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-grid--wide {
  grid-template-columns: 1.18fr 0.82fr;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.hero-copy > * {
  animation: heroSettle 460ms var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 55ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 110ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 155ms;
}

@keyframes heroSettle {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-3d-spacer {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-3d-spacer--home {
  min-height: 460px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  border: 1px solid var(--border-accent);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-bright);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-title--sub {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.hero-title .accent-text {
  background: linear-gradient(120deg, var(--brand-bright), var(--brand) 60%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(11px) rotate(2deg); }
}

/* ==================== SECTIONS & VISUAL WELLS ==================== */
.section {
  padding: 3.75rem 0;
}

.section--tight {
  padding: 2.35rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 50ch;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-interactive:hover {
  border-color: var(--border-accent);
  box-shadow: 0 28px 65px -18px var(--brand-glow);
}

/* Porcelain Studio Icon Well (keeps black+purple transparent PNGs vibrant in BOTH Dark & Light mode) */
.studio-icon-well {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f5ecfa 100%);
  border: 1px solid rgba(171, 0, 182, 0.22);
  box-shadow: 0 12px 28px -8px rgba(171, 0, 182, 0.28), inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-icon-well--lg {
  width: 124px;
  height: 124px;
  border-radius: 26px;
  padding: 0.9rem;
}

.studio-icon-well img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover .studio-icon-well {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 18px 36px -8px rgba(171, 0, 182, 0.42);
}

/* Hero service medallion strip */
.hero-icon-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.hero-icon-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  min-width: 140px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-icon-chip:hover {
  transform: translateY(-5px);
  border-color: var(--brand-bright);
}

.hero-icon-chip span {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==================== COUNTERS + VISUAL PROOF ==================== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.stat-card {
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-bright);
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.brand-art-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.art-panel {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  overflow: hidden;
}

.art-panel-img-wrap {
  width: 210px;
  aspect-ratio: 768 / 512;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3e8ff 100%);
  padding: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(171, 0, 182, 0.2);
}

.art-panel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art-panel-meta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.art-panel-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

/* ==================== SERVICES VISUAL GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
}

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-bright);
  border: 1px solid var(--border-accent);
  white-space: nowrap;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.service-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ==================== CLIENTS MARQUEE & GRID ==================== */
.marquee-wrap {
  width: 100%;
  max-width: min(1180px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: 1.15rem 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 93.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 93.5%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: scrollMarquee 26s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-tile {
  width: 194px;
  height: 140px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(171, 0, 182, 0.18);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-tile:hover {
  transform: translateY(-4px) scale(1.035);
  border-color: var(--brand);
  box-shadow: 0 16px 34px -8px var(--brand-glow);
}

.client-tile img {
  max-width: 90%;
  max-height: 86%;
  object-fit: contain;
}

.clients-static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.clients-static-grid .client-tile {
  width: 100%;
  height: 104px;
}

/* ==================== PORTFOLIO SNAPSHOTS GALLERY ==================== */
.filter-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 0.4rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text);
}

.filter-tab.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px var(--brand-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.5rem;
}

.projects-grid--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem;
  gap: 0.85rem;
  transform-style: preserve-3d;
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 379 / 497;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--bg-solid);
  border: 1px solid var(--border);
  cursor: pointer;
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.045);
}

.project-hover-bar {
  position: absolute;
  inset: auto 0.65rem 0.65rem 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(12, 6, 22, 0.82);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-card:hover .project-hover-bar {
  opacity: 1;
  transform: translateY(0);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0 0.25rem 0.2rem;
}

.project-meta-text {
  min-width: 0;
}

.project-meta-text h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-client-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-client-dot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-ext-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.project-ext-btn:hover {
  background: var(--brand);
  color: #ffffff;
}

/* ==================== HOMEPAGE ONE-LINE SNAPSHOT COVERFLOW RAIL ==================== */
.snapshot-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.snapshot-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.snapshot-track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 1.35rem 0 1.95rem;
  width: max-content;
  will-change: transform;
  transition: transform 620ms cubic-bezier(0.22, 1.18, 0.36, 1);
}

.snapshot-card {
  position: relative;
  width: 244px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.65rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform-origin: center center;
  opacity: 0.42;
  transform: perspective(1050px) translateY(12px) rotateY(-22deg) scale(0.82);
  transition:
    transform 560ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 460ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 300ms ease,
    box-shadow 360ms ease;
  cursor: pointer;
  user-select: none;
}

.snapshot-rail:not(.in) .snapshot-card {
  opacity: 0;
  transform: perspective(1050px) rotateX(16deg) translateY(26px) scale(0.9);
}

.snapshot-card.is-far-prev {
  opacity: 0.45;
  transform: perspective(1050px) translateY(10px) rotateY(22deg) scale(0.83);
  z-index: 1;
}

.snapshot-card.is-far-next {
  opacity: 0.45;
  transform: perspective(1050px) translateY(10px) rotateY(-22deg) scale(0.83);
  z-index: 1;
}

.snapshot-card.is-prev-1 {
  opacity: 0.78;
  transform: perspective(1050px) translateY(4px) rotateY(14deg) scale(0.91);
  z-index: 2;
}

.snapshot-card.is-next-1 {
  opacity: 0.78;
  transform: perspective(1050px) translateY(4px) rotateY(-14deg) scale(0.91);
  z-index: 2;
}

.snapshot-card.is-center {
  opacity: 1;
  transform: perspective(1050px) translateY(-6px) rotateY(0deg) scale(1.03);
  border-color: var(--brand);
  box-shadow: 0 22px 44px -16px var(--brand-glow), var(--shadow-md);
  z-index: 4;
}

.snapshot-card .project-thumb-wrap {
  aspect-ratio: 379 / 445;
  border-radius: calc(var(--radius) - 9px);
}

.snapshot-card:not(.is-center) .project-hover-bar {
  display: none;
}

.snapshot-card.is-center .project-thumb-wrap img {
  transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.035);
}

.snapshot-card.is-center .project-hover-bar {
  opacity: 1;
  transform: translateY(0);
}

.snapshot-beat-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright), #e879f9);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}

.snapshot-card.is-center .snapshot-beat-bar {
  opacity: 1;
  animation: snapshotBeatSweep 2.9s linear forwards;
}

.snapshot-rail.is-paused .snapshot-card.is-center .snapshot-beat-bar,
.snapshot-rail.is-paused .snapshot-dot.is-active .snapshot-dot-fill {
  animation-play-state: paused;
}

.snapshot-rail.is-resetting .snapshot-track,
.snapshot-rail.is-resetting .snapshot-card {
  transition: none !important;
}

@keyframes snapshotBeatSweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.snapshot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.snapshot-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.snapshot-nav-btn:hover {
  border-color: var(--border-accent);
  color: var(--brand-bright);
  background: var(--brand-soft);
}

.snapshot-nav-btn:active {
  transform: scale(0.92);
}

.snapshot-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.snapshot-dot {
  position: relative;
  width: 8px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border-accent);
  opacity: 0.55;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: width 280ms cubic-bezier(0.23, 1, 0.32, 1), opacity 220ms ease, background-color 220ms ease;
}

.snapshot-dot:hover {
  opacity: 0.85;
}

.snapshot-dot.is-active {
  width: 28px;
  opacity: 1;
  background: var(--brand-soft);
}

.snapshot-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform-origin: left center;
  transform: scaleX(0);
}

.snapshot-dot.is-active .snapshot-dot-fill {
  animation: snapshotBeatSweep 2.9s linear forwards;
}

/* ==================== TESTIMONIALS ==================== */
.testi-marquee-wrap {
  width: 100%;
  max-width: min(1200px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: 0.65rem 0 1.25rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 93.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 93.5%, transparent 100%);
}

.testi-marquee-wrap.is-dragging {
  cursor: grabbing;
}

.testi-marquee-wrap.is-dragging .testi-card {
  cursor: grabbing;
}

.testi-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 1.35rem;
  width: max-content;
  will-change: transform;
}

.testi-card {
  width: 372px;
  height: 282px;
  flex-shrink: 0;
  padding: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 240ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms cubic-bezier(0.23, 1, 0.32, 1), transform 0.25s ease;
}

.testi-card.is-expanded {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(171, 0, 182, 0.16);
}

.testi-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.testi-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid var(--border-accent);
  box-shadow: 0 14px 30px rgba(18, 6, 30, 0.18);
  transform-origin: top left;
  transform: translate(98px, 22px) scale(1);
  transition: transform 310ms cubic-bezier(0.23, 1, 0.32, 1), border-color 220ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.testi-card.is-expanded .testi-avatar {
  transform: translate(0px, 0px) scale(0.40625);
  box-shadow: 0 10px 22px rgba(171, 0, 182, 0.26);
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.testi-name {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--text);
  transform-origin: left center;
  transform: translate(calc(162px - 50%), 166px) scale(1);
  transition: transform 310ms cubic-bezier(0.23, 1, 0.32, 1);
}

.testi-card.is-expanded .testi-name {
  transform: translate(calc(66px + 0%), 5px) scale(0.95);
}

.testi-role {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--brand-bright);
  max-width: calc(100% - 66px);
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(calc(162px - 50%), 193px);
  transition: transform 310ms cubic-bezier(0.23, 1, 0.32, 1);
}

.testi-card.is-expanded .testi-role {
  transform: translate(calc(66px + 0%), 29px);
}

.testi-body {
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 150ms cubic-bezier(0.23, 1, 0.32, 1), transform 170ms cubic-bezier(0.23, 1, 0.32, 1);
}

.testi-card.is-expanded .testi-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1) 90ms, transform 240ms cubic-bezier(0.23, 1, 0.32, 1) 90ms;
}

.testi-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.testi-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 18px;
  transition: color 0.2s ease;
}

.testi-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testi-close-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 200ms ease 90ms, transform 200ms ease 90ms, color 200ms ease, border-color 200ms ease;
}

.testi-card.is-expanded .testi-close-hint {
  opacity: 0.92;
  transform: translateY(0);
}

.testi-card.is-expanded:hover .testi-close-hint {
  color: var(--text);
  border-color: var(--border-accent);
}

.testi-close-hint svg {
  flex-shrink: 0;
  opacity: 0.82;
}

.testi-marquee-wrap.is-dragging .testi-quote {
  user-select: none;
}

.testi-card.is-typing .testi-status {
  color: var(--brand-bright);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  display: block;
}

.testi-card.is-typing .typing-dots i {
  animation: typingDotWave 0.9s ease-in-out infinite;
}
.testi-card.is-typing .typing-dots i:nth-child(2) { animation-delay: 0.16s; }
.testi-card.is-typing .typing-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingDotWave {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.testi-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand-bright);
  margin-left: 2px;
  vertical-align: -0.14em;
  opacity: 0;
}

.testi-card.is-typing .testi-cursor {
  opacity: 1;
  animation: blinkCaret 0.72s steps(1, end) infinite;
}

@keyframes blinkCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.testi-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.56;
  margin: 0;
  user-select: text;
}

.testi-marquee-wrap.is-dragging .testi-card {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .testi-card,
  .testi-avatar,
  .testi-name,
  .testi-role,
  .testi-body,
  .testi-close-hint,
  .testi-card.is-expanded .testi-body {
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
  .testi-card.is-typing .typing-dots i {
    animation: none;
  }
}

/* ==================== PRICING & WEBDEV PACKAGES ==================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.pkg-card {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.pkg-card--popular {
  border-color: var(--brand-bright);
  box-shadow: 0 24px 60px -15px var(--brand-glow);
}

.pkg-tier {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.pkg-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 2.3em;
}

.pkg-price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-bright);
  margin: 0.35rem 0 0.15rem;
}

.pkg-ext {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pkg-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
}

.pkg-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pkg-specs li svg {
  color: var(--brand-bright);
  flex-shrink: 0;
}

.pkg-specs li.is-excluded {
  color: var(--text-muted);
  opacity: 0.42;
}

.pkg-specs li.is-excluded svg {
  color: var(--text-muted);
}

.addon-collapse-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.addon-collapse {
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.addon-collapse[open] {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.addon-collapse-summary {
  padding: 1.05rem 1.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.addon-collapse-summary::-webkit-details-marker {
  display: none;
}

.addon-collapse-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.addon-collapse-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
}

.addon-collapse-right {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.addon-collapse-price-tag {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-bright);
  white-space: nowrap;
}

.addon-collapse .faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.addon-collapse[open] .faq-plus {
  transform: rotate(45deg);
}

.addon-collapse-body {
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.35rem 1.35rem;
}

.addon-collapse-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.feature-addon-card {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feature-addon-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.feature-addon-meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.feature-addon-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.feature-addon-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.feature-addon-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.feature-addon-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-bright);
  white-space: nowrap;
  flex-shrink: 0;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.addon-card {
  padding: 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.addon-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-bright);
}

.addon-coverage {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* AI Chatbot Capability Grid */
.chatbot-hero-box {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.cap-tile {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cap-tile:hover {
  border-color: var(--brand-bright);
  transform: translateY(-2px);
}

.cap-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==================== FAQ ACCORDIONS ==================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 2rem;
  align-items: start;
}

.faq-visual-box,
html[data-style="kinetic"] .card.faq-visual-box {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: sticky;
  top: 96px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
}

/* ==================== PROMOS & DETAIL VIEW ==================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.promo-card {
  overflow: hidden;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.promo-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.promo-card:hover .promo-img-wrap img {
  transform: scale(1.03);
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow);
  background: var(--bg-solid);
}

.detail-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tnc-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.tnc-box {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.tnc-box h4 {
  font-family: var(--font-display);
  color: var(--brand-bright);
  margin-bottom: 0.35rem;
}

.tnc-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.86);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-dialog {
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-solid);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  border-color: var(--brand-bright);
}

.lightbox-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ==================== SIMPLE FOOTER ==================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-solid);
  padding: 1.5rem 0 5.4rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-left img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--brand-bright);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Floating Language Switcher (Bottom Left, Live GTranslate placement) */
.lang-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.34rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.42);
}

.lang-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--brand-bright);
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* Floating Official WhatsApp Action Button (Bottom Right) */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-fab:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 18px 36px -6px rgba(37, 211, 102, 0.72);
}

/* ==================== SCROLL REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy > * { opacity: 1; transform: none; transition: none; animation: none !important; }
  .hero-glow-orb, .marquee-track, .testi-marquee-track, .snapshot-beat-bar, .snapshot-dot-fill {
    animation: none !important;
  }
  .snapshot-card,
  .snapshot-track {
    transition-duration: 0.01ms !important;
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1120px) {
  .packages-grid,
  .addons-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .projects-grid--4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-cta-text {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .hero-grid--wide,
  .hero-grid.hero-grid--home,
  .hero-grid.hero-grid--home.hero-grid--portfolio,
  .brand-art-duo,
  .services-grid,
  .proof-grid,
  .chatbot-hero-box,
  .faq-layout,
  .promo-grid,
  .detail-grid,
  .lightbox-dialog {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid.hero-grid--home {
    position: relative;
    gap: 1.5rem;
  }
  .hero-stage.hero-stage--home {
    min-height: auto;
    padding-bottom: 2.5rem;
  }
  .hero-stage--home .hero-copy,
  .hero-stage--home .hero-copy.hero-copy--portfolio {
    max-width: 100%;
    min-width: 0;
  }
  .hero-video-stage,
  .hero-stage--sub .hero-video-stage,
  .hero-stage--sub .hero-video-stage[data-video-prefix="portfolio"] {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-video-stage::after {
    display: none;
  }
  .hero-vid {
    object-position: 64% center;
  }
  .hero-3d-spacer {
    min-height: 290px;
  }
  .hero-3d-spacer--home {
    min-height: 345px;
  }
  .art-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .art-panel-img-wrap {
    width: 100%;
    max-width: 300px;
  }
  .addon-collapse-summary {
    padding: 0.95rem 1rem;
    gap: 0.65rem;
  }
  .addon-collapse-head {
    gap: 0.65rem;
  }
  .addon-collapse-title {
    font-size: 0.98rem;
  }
  .addon-collapse-right {
    gap: 0.55rem;
  }
  .addon-collapse-price-tag {
    font-size: 0.8rem;
  }
  .addon-collapse-body {
    padding: 0.95rem 1rem 1.1rem;
  }
  .feature-addon-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-visual-box,
  html[data-style="kinetic"] .card.faq-visual-box {
    position: relative;
    top: auto;
  }
  .site-footer {
    padding-bottom: 4.5rem;
  }
  .lang-widget {
    left: 12px;
    bottom: 12px;
    padding: 0.28rem 0.34rem;
  }
  .wa-fab {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }
  .marquee-wrap {
    max-width: calc(100% - 1rem);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
  .marquee-track {
    gap: 14px;
  }
  .client-tile {
    width: 148px;
    height: 108px;
    padding: 0.75rem;
  }
  .testi-marquee-wrap {
    max-width: calc(100% - 1rem);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
  .testi-card {
    width: 304px;
    height: 278px;
    padding: 20px;
  }
  .testi-avatar {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    transform: translate(72px, 26px) scale(1);
  }
  .testi-card.is-expanded .testi-avatar {
    transform: translate(0px, 0px) scale(0.4);
  }
  .testi-name {
    transform: translate(calc(132px - 50%), 162px) scale(1);
  }
  .testi-card.is-expanded .testi-name {
    transform: translate(calc(60px + 0%), 4px) scale(0.92);
  }
  .testi-role {
    max-width: calc(100% - 60px);
    transform: translate(calc(132px - 50%), 189px);
  }
  .testi-card.is-expanded .testi-role {
    transform: translate(calc(60px + 0%), 27px);
  }
  .testi-body {
    top: 62px;
  }
  .testi-status {
    font-size: 0.61rem;
    letter-spacing: 0.01em;
    gap: 0.35rem;
  }
  .testi-close-hint {
    font-size: 0.61rem;
    padding: 0.12rem 0.4rem;
    gap: 0.22rem;
  }
  .testi-quote {
    font-size: 0.855rem;
    line-height: 1.52;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    height: 68px;
  }
  .capability-grid,
  .projects-grid--4col {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    padding: 2.75rem 0 3.25rem;
  }
  .snapshot-viewport {
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .snapshot-track {
    gap: 14px;
    padding: 1rem 0 1.45rem;
  }
  .snapshot-card {
    width: 214px;
    padding: 0.55rem;
    gap: 0.6rem;
  }
  .snapshot-card.is-prev-1 {
    transform: perspective(900px) translateY(3px) rotateY(16deg) scale(0.89);
  }
  .snapshot-card.is-next-1 {
    transform: perspective(900px) translateY(3px) rotateY(-16deg) scale(0.89);
  }
}
