/* Navtark Technologies — Appinventiv-style layout system */

:root {
  --dark: #0a0a0c;
  --dark-elevated: #121218;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-footer: #1e40af;
  --blue-bright: #3b82f6;
  --purple-start: #6366f1;
  --purple-end: #4f46e5;
  --muted: #64748b;
  --line: rgba(10, 10, 12, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --yellow-banner: #facc15;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
#site-header {
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  pointer-events: none;
}

#site-header .header-shell,
#site-header .header-inner,
#site-header a,
#site-header button {
  pointer-events: auto;
}

.header-inner {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.38);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

#site-header.is-scrolled .header-inner {
  background: rgba(10, 10, 12, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#site-header.header-light .header-inner {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(10, 10, 12, 0.08);
  box-shadow:
    0 8px 24px rgba(10, 10, 12, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.header-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo {
  display: block;
  height: 1.85rem;
  width: auto;
  object-fit: contain;
}

.header-logo--on-light {
  display: none;
}

.header-logo--on-dark {
  display: block;
}

#site-header.header-light .header-logo--on-dark {
  display: none;
}

#site-header.header-light .header-logo--on-light {
  display: block;
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.header-wordmark-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.header-wordmark-sub {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

#site-header.header-light .header-wordmark-name {
  color: var(--dark);
}

#site-header.header-light .header-wordmark-sub {
  color: rgba(10, 10, 12, 0.45);
}

@media (min-width: 640px) {
  .header-logo {
    height: 2.05rem;
  }

  .header-wordmark-name {
    font-size: 1.12rem;
  }
}

.desktop-nav {
  gap: 0.1rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#site-header.header-light .nav-link {
  color: rgba(10, 10, 12, 0.62);
}

#site-header.header-light .nav-link:hover,
#site-header.header-light .nav-link.is-active {
  color: var(--dark);
  background: rgba(10, 10, 12, 0.06);
}

.header-actions {
  position: relative;
  z-index: 2;
}

.whatsapp-btn,
.phone-btn.whatsapp-btn {
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}

.whatsapp-btn:hover,
.phone-btn.whatsapp-btn:hover {
  background: #1ebe57;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

#site-header.header-light .whatsapp-btn,
#site-header.header-light .phone-btn.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.phone-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.34);
}

.phone-btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.phone-btn-text {
  display: none;
}

@media (min-width: 480px) {
  .phone-btn {
    padding: 0 0.9rem;
  }

  .phone-btn-text {
    display: inline;
  }
}

.header-cta {
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

#site-header.header-light .header-cta {
  background: var(--dark);
  color: #fff;
}

#site-header.header-light .header-cta:hover {
  background: #1a1a22;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

#site-header.header-light .menu-btn {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(10, 10, 12, 0.04);
  color: var(--dark);
}

#site-header.header-light .phone-btn {
  background: var(--blue);
  color: #fff;
}

/* Full-screen mobile menu overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

#mobile-menu.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(70% 50% at 100% 50%, rgba(99, 102, 241, 0.18), transparent 50%),
    linear-gradient(180deg, #0c0c10 0%, #070708 45%, #0a0a0c 100%);
}

.mobile-menu-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.mobile-menu-orb-a {
  top: 12%;
  right: -15%;
  width: 14rem;
  height: 14rem;
  background: rgba(37, 99, 235, 0.45);
}

.mobile-menu-orb-b {
  bottom: 18%;
  left: -20%;
  width: 16rem;
  height: 16rem;
  background: rgba(79, 70, 229, 0.35);
}

.mobile-menu-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(1.25rem);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

#mobile-menu.is-open .mobile-menu-panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
}

.mobile-menu-title {
  margin-top: 0.65rem;
  max-width: 14rem;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.mobile-menu-title-accent {
  background: linear-gradient(120deg, #93c5fd 0%, #3b82f6 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.mobile-nav-item--wide {
  grid-column: 1 / -1;
}

.mobile-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 5.25rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.mobile-nav-card:hover,
.mobile-nav-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.45);
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 16px 40px rgba(37, 99, 235, 0.22);
}

.mobile-nav-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-nav-index {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(147, 197, 253, 0.85);
}

.mobile-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.mobile-nav-arrow svg {
  width: 0.85rem;
  height: 0.85rem;
}

.mobile-nav-card:hover .mobile-nav-arrow,
.mobile-nav-card:focus-visible .mobile-nav-arrow {
  transform: translate(2px, -2px);
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(147, 197, 253, 0.35);
}

.mobile-nav-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.mobile-nav-sub {
  margin-top: -0.15rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.mobile-nav-card--contact {
  min-height: 5.75rem;
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.55) 0%,
    rgba(79, 70, 229, 0.35) 100%
  );
}

.mobile-nav-card--contact .mobile-nav-text {
  font-size: 1.15rem;
  font-weight: 700;
}

.mobile-nav-card--contact .mobile-nav-index {
  color: rgba(255, 255, 255, 0.75);
}

#mobile-menu.is-open .mobile-nav-item {
  animation: mobile-nav-in 0.55s var(--ease) backwards;
}

#mobile-menu.is-open .mobile-nav-item:nth-child(1) {
  animation-delay: 0.05s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(2) {
  animation-delay: 0.08s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(3) {
  animation-delay: 0.11s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(4) {
  animation-delay: 0.14s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(5) {
  animation-delay: 0.17s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(6) {
  animation-delay: 0.2s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(7) {
  animation-delay: 0.23s;
}
#mobile-menu.is-open .mobile-nav-item:nth-child(8) {
  animation-delay: 0.26s;
}

@keyframes mobile-nav-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-menu-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.mobile-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-action-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mobile-action-chip:hover,
.mobile-action-chip:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(147, 197, 253, 0.35);
  color: #fff;
}

.mobile-menu-note {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

#site-header.menu-open {
  background-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#site-header.menu-open .header-inner {
  background: rgba(10, 10, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
}

#site-header.menu-open .logo-text,
#site-header.menu-open .menu-btn {
  color: #fff !important;
}

#site-header.menu-open .menu-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#site-header.menu-open .phone-btn {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

#site-header.menu-open .header-cta {
  background: #fff;
  color: var(--dark);
}

#site-header.menu-open .header-wordmark-name {
  color: #fff !important;
}

#site-header.menu-open .header-wordmark-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}

#site-header.menu-open .header-logo--on-dark {
  display: block !important;
}

#site-header.menu-open .header-logo--on-light {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

.menu-icon-close {
  display: none;
}

#menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

#menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

/* ---------- Hero ---------- */
.hero-media {
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  background:
    linear-gradient(105deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.55) 50%, rgba(10, 10, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, transparent 40%, rgba(10, 10, 12, 0.75) 100%);
}

.hero-enter {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-enter 0.85s var(--ease) forwards;
}

.hero-enter-delay-1 {
  animation-delay: 0.1s;
}
.hero-enter-delay-2 {
  animation-delay: 0.2s;
}
.hero-enter-delay-3 {
  animation-delay: 0.3s;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-pill .btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn-pill:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(37, 99, 235, 0.55);
}

.btn-blue:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark-outline {
  border: 1px solid rgba(10, 10, 12, 0.2);
  color: var(--dark);
  background: #fff;
}

.btn-dark-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Marquees ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  animation: marquee 40s linear infinite;
}

.marquee-slow .marquee-track {
  animation-duration: 55s;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.award-logo {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* ---------- Grid section (white lined) ---------- */
.section-grid-bg {
  background-image:
    linear-gradient(to right, rgba(10, 10, 12, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 12, 0.06) 1px, transparent 1px);
  background-size: 25% 100%, 100% 120px;
}

@media (min-width: 1024px) {
  .section-grid-bg {
    background-size: 20% 100%, 100% 140px;
  }
}

.pillar-cell {
  transition: background-color 0.35s var(--ease);
}

.pillar-cell:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

.pillar-icon {
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.pillar-cell:hover .pillar-icon {
  transform: scale(1.05);
  background-color: var(--blue);
  color: #fff;
}

/* ---------- Portfolio strip ---------- */
.portfolio-strip {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.portfolio-strip::-webkit-scrollbar {
  display: none;
}

.portfolio-slide {
  scroll-snap-align: start;
  flex: 0 0 85%;
  max-width: 420px;
}

@media (min-width: 768px) {
  .portfolio-slide {
    flex: 0 0 48%;
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .portfolio-slide {
    flex: 0 0 32%;
    max-width: 400px;
  }
}

/* ---------- Purple growth banner ---------- */
.growth-banner {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #4338ca 100%);
}

.chart-bars span {
  animation: bar-grow 1.2s var(--ease) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.chart-bars span:nth-child(1) {
  animation-delay: 0.1s;
}
.chart-bars span:nth-child(2) {
  animation-delay: 0.2s;
}
.chart-bars span:nth-child(3) {
  animation-delay: 0.3s;
}
.chart-bars span:nth-child(4) {
  animation-delay: 0.4s;
}
.chart-bars span:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes bar-grow {
  to {
    transform: scaleY(1);
  }
}

.is-visible .chart-bars span {
  animation-play-state: running;
}

/* ---------- Dark services watermark ---------- */
.watermark-n {
  font-size: clamp(12rem, 28vw, 22rem);
  line-height: 0.85;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
}

/* ---------- Industry panel ---------- */
.industry-btn {
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.industry-btn.is-active,
.industry-btn:hover {
  color: #fff;
  padding-left: 0.25rem;
}

.industry-btn.is-active {
  border-left: 3px solid var(--blue-bright);
  padding-left: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.industry-panel img {
  transition: opacity 0.45s var(--ease);
}

/* ---------- Tech tabs ---------- */
.tech-tab {
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.tech-tab.is-active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.tech-panels-wrap {
  min-height: 8.5rem;
}

.tech-panel {
  display: none !important;
}

.tech-panel.is-active {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .tech-panel.is-active {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Yellow banner ---------- */
.insights-banner {
  background: var(--yellow-banner);
}

/* ---------- Contact form ---------- */
.form-input {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.social-links--dark .social-link {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(10, 10, 12, 0.04);
  color: var(--dark);
}

.social-links--dark .social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Site footer ---------- */
.footer-blue,
.site-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #111318 0%, #0a0a0c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  max-width: 1240px;
  padding: 3.5rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .site-footer-inner {
    padding: 4.5rem 2rem 2rem;
  }
}

.site-footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem 2.5rem;
  }
}

.site-footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.site-footer-brand-mark img {
  height: 2rem;
  width: auto;
}

.site-footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-footer-brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer-copy {
  margin-top: 1.15rem;
  max-width: 18rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.site-footer-heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer-links {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-contact {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer-contact a:hover {
  color: #93c5fd;
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.site-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer-legal a:hover {
  color: #fff;
}

.site-footer .social-links {
  margin-top: 1.35rem;
}

.site-footer .social-link {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer .social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* legacy card class kept for older markup */
.footer-card {
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ---------- Services page ---------- */
.services-hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.82) 55%, rgba(10, 10, 12, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.55) 0%, transparent 55%);
}

.services-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .services-bento {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.15rem;
  }

  .service-feature--wide {
    grid-row: 1 / span 2;
  }
}

.service-feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 18rem;
  border-radius: 1.5rem;
  color: #fff;
  isolation: isolate;
}

.service-feature--wide {
  min-height: 22rem;
}

@media (min-width: 768px) {
  .service-feature--wide {
    min-height: 100%;
  }
}

.service-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.88) 100%);
  z-index: 1;
}

.service-feature:hover .service-feature-img,
.service-feature:focus-visible .service-feature-img {
  transform: scale(1.05);
}

.service-feature-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
}

@media (min-width: 768px) {
  .service-feature-content {
    padding: 1.75rem 1.6rem 1.65rem;
  }
}

.service-feature-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(147, 197, 253, 0.95);
}

.service-feature-title {
  margin-top: 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-feature-text {
  margin-top: 0.55rem;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.service-feature-link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.25s var(--ease);
}

.service-feature:hover .service-feature-link,
.service-feature:focus-visible .service-feature-link {
  transform: translateX(3px);
}

.service-stack-card {
  display: block;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(10, 10, 12, 0.08);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-stack-card:hover,
.service-stack-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 40px rgba(10, 10, 12, 0.08);
}

.service-stack-media {
  overflow: hidden;
  height: 11rem;
}

.service-stack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.service-stack-card:hover .service-stack-media img,
.service-stack-card:focus-visible .service-stack-media img {
  transform: scale(1.04);
}

.services-cta {
  color: #fff;
}

/* ---------- Service detail pages ---------- */
.detail-offer-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(10, 10, 12, 0.07);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.detail-offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 28px rgba(10, 10, 12, 0.06);
}

.detail-offer-num {
  min-width: 1.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  padding-top: 0.15rem;
}

.detail-offer-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
}

.detail-side-panel {
  border: 1px solid rgba(10, 10, 12, 0.07);
  position: sticky;
  top: 5.5rem;
}

.detail-related-card {
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(10, 10, 12, 0.08);
  background: #f8f9fb;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.detail-related-card:hover,
.detail-related-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
}

/* ---------- Reveal ---------- */
/* Keep content visible by default; animate only when JS is available. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Give in-page navigation room beneath the fixed header. */
section[id],
[id="contact"] {
  scroll-margin-top: 6rem;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---------- FAQ ---------- */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-icon {
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

/* ---------- Service tiles ---------- */
.service-card-mini {
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card-mini:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
  }

  .hero-media {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .chart-bars span {
    transform: scaleY(1);
  }

  #mobile-menu.is-open .mobile-nav-item {
    animation: none;
  }
}


/* ---------- Header and navigation polish ---------- */
/* Comfortable touch targets and visible keyboard focus. */
.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.phone-btn,
.header-cta {
  min-height: 2.75rem;
}

.nav-link:focus-visible,
.phone-btn:focus-visible,
.header-cta:focus-visible,
.menu-btn:focus-visible,
.mobile-nav-card:focus-visible,
.mobile-action-chip:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 479px) {
  #site-header .header-shell {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  #site-header .header-inner {
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.9rem;
  }

  .header-brand {
    gap: 0.45rem;
  }

  .header-logo {
    height: 1.65rem;
  }

  .header-wordmark-name {
    font-size: 0.98rem;
  }

  .header-wordmark-sub {
    font-size: 0.56rem;
    letter-spacing: 0.11em;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .phone-btn {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner,
  .nav-link,
  .phone-btn,
  .header-cta,
  .menu-btn,
  .mobile-nav-card,
  .mobile-action-chip {
    transition: none;
  }
}


/* ---------- Accessibility polish ---------- */
/* Keep keyboard focus visible on form controls and common interactive elements. */
.form-input:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

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


/* ---------- Site-wide layout consistency ---------- */
img,
video,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

html {
  scroll-padding-top: 6rem;
}

:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 639px) {
  :where(h1, h2, h3) {
    overflow-wrap: anywhere;
  }

  :where(p, li) {
    text-wrap: pretty;
  }
}


/* ---------- Contact form validation feedback ---------- */
#contact-form :is(input, textarea, select):user-invalid {
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px rgb(252 165 165 / 45%);
}

#contact-form :is(input, textarea, select):user-invalid:focus-visible {
  outline-color: #fecaca;
}

#contact-form :is(input, textarea, select):focus:not(:placeholder-shown):valid {
  border-color: #86efac;
}

#contact-form :is(input, textarea, select):focus-visible {
  scroll-margin-block: 1.5rem;
}

/* ---------- Homepage premium visual refinement ---------- */
/* Keep this layer deliberately small: stronger hierarchy, quieter surfaces,
   and more intentional spacing without changing the site's brand or structure. */
#main #home {
  min-height: min(860px, 92svh);
  background:
    radial-gradient(ellipse at 76% 42%, rgba(37, 99, 235, 0.18), transparent 38%),
    #0a0a0c;
}

#main #home > div.relative {
  min-height: min(860px, 92svh);
  padding-top: clamp(8.5rem, 14vh, 10.5rem);
  padding-bottom: clamp(5rem, 10vh, 7.5rem);
}

#main #home .hero-media {
  object-position: center 42%;
  filter: saturate(0.78);
}

#main #home .hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 16, 0.94) 0%, rgba(7, 9, 16, 0.78) 42%, rgba(7, 9, 16, 0.38) 100%),
    linear-gradient(180deg, rgba(7, 9, 16, 0.2) 0%, rgba(7, 9, 16, 0.04) 48%, rgba(7, 9, 16, 0.68) 100%);
}

#main #home h1 {
  max-width: 58rem;
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

#main #home > div.relative > p:not(:first-child) {
  text-wrap: pretty;
}

#main #home .btn-blue {
  box-shadow: 0 10px 32px -12px rgba(59, 130, 246, 0.75);
}

#main #home .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#main #home .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

#main #services,
#main #portfolio,
#main #process,
#main #faq,
#main #contact {
  scroll-margin-top: 5.5rem;
}

#main #services,
#main #portfolio,
#main #faq {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

#main #services h2,
#main #portfolio h2,
#main #process h2,
#main #faq h2 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

#main #services article {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.09);
  border-radius: 1.35rem;
  background: linear-gradient(150deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

#main #services article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

#main #services article:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.075);
}

#main #services article:hover::before {
  opacity: 1;
}

#main #services article h3 {
  letter-spacing: -0.025em;
}

#main #services article a {
  text-decoration: none;
}

#main #services article a:hover {
  color: var(--blue);
}

/* ---------- Portfolio section ---------- */
.portfolio-section,
.portfolio-page.portfolio-section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

#main #portfolio.portfolio-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(14, 165, 233, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.portfolio-section-inner {
  margin-inline: auto;
  max-width: 1240px;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .portfolio-section-inner {
    padding-inline: 2rem;
  }
}

.portfolio-head {
  max-width: 40rem;
}

.portfolio-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.portfolio-title {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--dark);
  text-wrap: balance;
}

.portfolio-lead {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.portfolio-filter {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.portfolio-filter:hover {
  color: var(--dark);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.portfolio-filter.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.portfolio-card[hidden] {
  display: none !important;
}

.portfolio-card-media {
  position: relative;
  display: block;
  /* Match captured screenshot ratio (900×420) so images are not side-cropped */
  aspect-ratio: 900 / 420;
  overflow: hidden;
  background: #e8ecf3;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  transition: filter 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-card-media img {
  filter: brightness(0.94);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.42);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.portfolio-card-overlay span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.3rem;
}

.portfolio-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.portfolio-stack {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-stack--react {
  background: #eff6ff;
  color: #1d4ed8;
}

.portfolio-stack--wordpress {
  background: #ecfeff;
  color: #0e7490;
}

.portfolio-stack--squarespace {
  background: #f1f5f9;
  color: #334155;
}

.portfolio-stack--shopify {
  background: #ecfdf5;
  color: #047857;
}

.portfolio-host {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.45);
}

.portfolio-card-title {
  margin: 0.7rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.portfolio-card-blurb {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.portfolio-card-link:hover {
  color: var(--blue-deep);
  gap: 0.5rem;
}

.portfolio-load-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.portfolio-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.portfolio-load-more:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.portfolio-load-more:disabled {
  cursor: wait;
  opacity: 0.85;
}

.portfolio-load-more[hidden] {
  display: none !important;
}

.portfolio-load-more-spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--blue);
  animation: portfolio-spin 0.7s linear infinite;
}

.portfolio-load-more.is-loading .portfolio-load-more-spinner {
  display: inline-block;
}

.portfolio-load-status {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.5);
}

@keyframes portfolio-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-load-more-spinner {
    animation: none;
    border-top-color: rgba(37, 99, 235, 0.45);
  }
}

.portfolio-footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.45);
}

#main #process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(37, 99, 235, 0.22), transparent 32%),
    linear-gradient(135deg, #0a0a0c 0%, #111827 100%);
  padding-top: clamp(4rem, 7vw, 5.75rem);
  padding-bottom: clamp(4rem, 7vw, 5.75rem);
}

#main #process ol li {
  border-color: rgba(255, 255, 255, 0.2);
}

#main #process ol li > p:first-child {
  letter-spacing: 0.08em;
}

#main #process ol li h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#main #faq .faq-item {
  border-color: rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#main #faq .faq-item:hover,
#main #faq .faq-item.is-open {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

#main #faq .faq-trigger {
  min-height: 3.75rem;
}

#main #faq .faq-icon {
  flex-shrink: 0;
}

/* ---------- Contact section ---------- */
.contact-section,
#main #contact.contact-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 65% 50% at 85% 10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #14161c 0%, #0a0a0c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.contact-section-inner {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  max-width: 1240px;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .contact-section-inner {
    padding-inline: 2rem;
  }
}

.contact-section-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 968px) {
  .contact-section-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.contact-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
}

.contact-title {
  margin: 0.85rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact-lead {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

a.contact-method:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(147, 197, 253, 0.35);
  transform: translateY(-1px);
}

.contact-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.contact-method-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-method-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.contact-method-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.contact-social {
  margin-top: 1.5rem;
}

.contact-social-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-social-heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.contact-social-lead {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.contact-social-block .contact-social {
  margin-top: 1rem;
}

.contact-section .social-link {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.contact-section .social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.contact-section .social-link--labeled {
  width: auto;
  height: auto;
  min-height: 2.6rem;
  padding: 0 0.95rem 0 0.75rem;
  gap: 0.55rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-section .social-link--labeled svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.contact-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  color: var(--dark);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 1.75rem 1.85rem 1.85rem;
  }
}

.contact-form-head {
  margin-bottom: 0.15rem;
}

.contact-form-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.contact-form-note {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-form-note span {
  color: var(--blue);
  font-weight: 700;
}

.contact-form-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-field--full {
    grid-column: 1 / -1;
  }
}

.contact-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.contact-field-label span {
  color: var(--blue);
}

.contact-optional {
  font-weight: 500;
  color: var(--muted);
}

.contact-form .form-input {
  min-height: 3rem;
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f7f8fb;
  padding: 0.8rem 0.95rem;
  color: var(--dark);
  font-weight: 500;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.contact-form textarea.form-input {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .form-input::placeholder {
  color: #94a3b8;
}

.contact-form .form-input:focus,
.contact-form .form-input:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  width: 100%;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #1d4ed8);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.contact-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.contact-form-status {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Soft join into dark footer */
.contact-section + .site-footer {
  border-top: 0;
}

.contact-page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(180deg, #151821 0%, #0a0a0c 100%);
}

.contact-page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.35), rgba(10, 10, 12, 0.85)),
    url("../assets/images/team/support-headset.jpg") center / cover no-repeat;
  opacity: 0.35;
}

.contact-page-body {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-services {
  margin-top: 2rem;
}

.contact-form select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

#site-header .header-inner {
  border-radius: 1.15rem;
}

#site-header.is-scrolled .header-inner {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

#site-header .header-cta {
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.2);
}

@media (max-width: 639px) {
  #main #home,
  #main #home > div.relative {
    min-height: 88svh;
  }

  #main #home > div.relative {
    padding-top: 8.5rem;
    padding-bottom: 4.5rem;
  }

  #main #home h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  #main #services article,
  .portfolio-card {
    border-radius: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main #services article,
  #main #services article::before,
  .portfolio-card,
  .portfolio-card-media img {
    transition: none;
  }
}



/* ---------- Final mobile conversion polish ---------- */
/* Reduce unnecessary vertical drag on small screens while preserving readable spacing. */
@media (max-width: 639px) {
  #main #services,
  #main #portfolio,
  #main #faq {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  #main #process {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  #main #contact.contact-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .contact-form {
    padding: 1.15rem;
    gap: 1rem;
  }

  .contact-method-value {
    overflow-wrap: anywhere;
  }

  .portfolio-card-body {
    padding: 1.05rem 1.1rem 1.15rem;
  }

  .portfolio-card-title {
    font-size: 1.1rem;
  }

  .portfolio-card-overlay {
    opacity: 0;
  }
}

@media (max-width: 380px) {
  #main #home > div.relative {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #main #home h1 {
    font-size: clamp(2.35rem, 11.5vw, 2.75rem);
  }

  .contact-form {
    padding: 1rem;
  }

  #site-header .header-wordmark-sub {
    letter-spacing: 0.08em;
  }
}
