:root {
  --black: #05050a;
  --deep: #08080f;
  --surface: #0d0d1a;
  --blue: #4d4dff;
  --blue-b: #6666ff;
  --blue-glow: rgba(77, 77, 255, 0.22);
  --blue-subtle: rgba(77, 77, 255, 0.07);
  --white: #ffffff;
  --w60: rgba(255, 255, 255, 0.6);
  --w30: rgba(255, 255, 255, 0.3);
  --w10: rgba(255, 255, 255, 0.08);
  --w05: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
  --border-b: rgba(77, 77, 255, 0.28);
  --text-muted: rgba(255, 255, 255, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--blue-b);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 80, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s;
}

/* NOISE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity .8s ease, visibility .8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: .1em;
  color: var(--white);
  animation: logoPulse 1.4s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--blue-b);
}

@keyframes logoPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* PRELOADER 3D RING */
.preloader-3d-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderFloat 3s ease-in-out infinite;
  perspective: 600px;
}

.preloader-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(77, 77, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(77, 77, 255, 0.05);
}

.preloader-ring-progress {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #4d4dff;
  border-right-color: #6666ff;
  box-shadow: 0 0 18px rgba(77, 77, 255, 0.6), 0 0 40px rgba(77, 77, 255, 0.2);
  animation: ringRotate 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite, ringGlow 2s ease-in-out infinite;
}

.preloader-logo-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes preloaderFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-8px) rotateX(6deg);
  }
}

@keyframes ringRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes ringGlow {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(77, 77, 255, 0.6), 0 0 40px rgba(77, 77, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(100, 100, 255, 1), 0 0 60px rgba(77, 77, 255, 0.4);
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0.8rem 4rem;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #05050a, #4d4dff, #05050a) 1;
  animation: fadeDown .7s ease both;
  transition: background .3s;
}

nav.scrolled {
  background: rgba(5, 5, 10, 0.92);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 20px var(--blue-glow);
}

.nav-logo span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-b);
  transition: width .3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: .6rem 1.6rem;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, box-shadow .2s;
}

.nav-cta:hover {
  background: var(--blue-b);
  box-shadow: 0 0 28px rgba(77, 77, 255, .45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 87px;
  left: 0;
  width: 100%;
  height: 50vh;
  background: #000;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border-b);
  transform: translateY(-150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--blue-b);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #060610 0%, #050508 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(77, 77, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 77, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 77, 255, .18) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  margin: 0 auto;
  padding: 7rem 4rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(77, 77, 255, .08);
  border: 1px solid var(--border-b);
  padding: .4rem 1.1rem;
  border-radius: 100px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(100, 130, 255, 1);
  margin-bottom: 2rem;
  animation: fadeUp .8s .1s ease both;
}

.hero-badge .dot,
.about-badge .dot,
.section-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--blue-b);
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: .4rem;
}

#hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 55px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0;
  padding: 0;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  animation: fadeUp .8s .25s ease both;
}

#hero h1 .grad {
  color: #4d4dff;
  font-size: 1.15em;
}

.hero-sub {
  max-width: 520px;
  margin: 1.6rem 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  animation: fadeUp .8s .4s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeUp .8s .55s ease both;
}

.btn-p {
  background: var(--blue);
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 5px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, box-shadow .2s, transform .2s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.btn-p:hover {
  background: var(--blue-b);
  box-shadow: 0 0 36px rgba(77, 77, 255, .5);
  transform: translateY(-2px);
}

.btn-s {
  background: transparent;
  color: #fff;
  padding: .85rem 2.2rem;
  border-radius: 5px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s;
}

.btn-s:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  animation: fadeUp .8s .7s ease both;
}

.hero-stat-num {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.hero-stat-num .plus {
  color: var(--white);
  font-size: 1.8rem;
}

.hero-stat-lbl {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .2rem;
}

.hero-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.hero-visual {
  animation: fadeUp .8s .3s ease both;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: end;
  margin-right: 60px;
  /* Shifted left */
}

/* 3D Logo tile grid */
.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 340px;
  height: 340px;
}

.logo-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 77, 255, 0.25) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.logo-sand-canvas {
  grid-area: 1/1;
  width: 320px;
  height: 320px;
  z-index: 3;
  opacity: 0;
  animation: logoFadeIn 2s ease forwards;
  animation-delay: 1.5s;
}

.hero-logo-img {
  grid-area: 1/1;
  width: 320px;
  height: auto;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity, transform;
  pointer-events: none;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-logo-img.logo-assembled {
  opacity: 1;
  animation: premiumFloat 6s ease-in-out infinite;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes premiumFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes logoDepthIn {
  0% {
    opacity: 0;
    transform: perspective(900px) translateZ(-180px) translateY(50px) rotateX(18deg);
    filter: blur(16px) drop-shadow(0 0 0px rgba(77, 77, 255, 0));
  }

  30% {
    opacity: 1;
    filter: blur(4px) drop-shadow(0 0 80px rgba(77, 77, 255, .9));
  }

  65% {
    transform: perspective(900px) translateZ(18px) translateY(-8px) rotateX(-3deg);
    filter: blur(0px) drop-shadow(0 0 50px rgba(77, 77, 255, .6));
  }

  100% {
    opacity: 1;
    transform: perspective(900px) translateZ(0px) translateY(0px) rotateX(0deg);
    filter: blur(0px) drop-shadow(0 0 40px rgba(255, 255, 255, .3));
  }
}

/* MARQUEE */
.marquee-section {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--deep);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.marquee-item span {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 5px;
  height: 5px;
  background: var(--blue-b);
  border-radius: 50%;
}

/* ABOUT */
#about {
  padding: 8rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-badge,
.section-badge {
  display: inline-block;
  padding: .35rem 1rem;
  background: var(--blue-subtle);
  border: 1px solid var(--border-b);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(100, 140, 255, 1);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.about h2,
.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 55px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.about h2 .grad,
.section-title .grad {
  color: #4d4dff;
}

.about-text {
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--blue-subtle);
  border: 1px solid var(--border-b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(80, 120, 255, 1);
  font-size: 1.1rem;
  transition: background .3s, box-shadow .3s;
}

.pillar:hover .pillar-icon {
  background: rgba(77, 77, 255, .15);
  box-shadow: 0 0 20px rgba(77, 77, 255, .2);
}

.pillar h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .25rem;
}

.pillar p {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(77, 77, 255, .1), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.about-card:hover {
  border-color: var(--border-b);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(77, 77, 255, .12);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card .icon {
  font-size: 2.2rem;
  margin-bottom: .8rem;
  display: block;
}

.about-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .3rem;
}

.about-card p {
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* SERVICES */
#services {
  padding: 3rem 4rem;
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0rem;
}

.services-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 520px;
  margin: .8rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--surface);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 77, 255, .07), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover {
  background: #0c0c1c;
}

.service-card:hover::before {
  opacity: 1;
}

.svc-icon {
  width: 44px;
  height: 44px;
  background: rgba(77, 77, 255, .1);
  border: 1px solid var(--border-b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  color: rgba(80, 120, 255, 1);
  transition: background .3s, box-shadow .3s;
}

.service-card:hover .svc-icon {
  background: rgba(77, 77, 255, .2);
  box-shadow: 0 0 20px rgba(77, 77, 255, .2);
}

.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.service-card p {
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.svc-tag {
  padding: .2rem .65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: .65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: .03em;
}

.svc-link {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(80, 120, 255, 1);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s, gap .2s;
}

.svc-link:hover {
  color: #fff;
}

/* PROCESS ZIGZAG */
#process {
  padding: 8rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

.process-head {
  text-align: center;
  margin-bottom: 6rem;
}

.process-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue) 15%, var(--blue) 85%, transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.process-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  width: 42%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:nth-child(odd) .step-content {
  text-align: right;
  margin-right: 8%;
}

.process-step:nth-child(even) .step-content {
  text-align: left;
  margin-left: 8%;
}

.process-step:hover .step-content {
  border-color: var(--blue-b);
  transform: translateY(-8px);
  background: rgba(77, 77, 255, 0.05);
  box-shadow: 0 10px 40px -10px rgba(77, 77, 255, 0.2);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 600;
}

.step-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.step-num {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--surface);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--blue-glow);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .step-num {
  background: var(--blue);
  box-shadow: 0 0 40px var(--blue);
  transform: translateX(-50%) scale(1.1);
}

.step-visual {
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .step-visual {
  transform: scale(1.1) rotate(2deg);
}

.step-visual svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 20px var(--blue-glow));
  stroke: var(--blue-b);
  fill: none;
  stroke-width: 1;
  transition: all 0.6s ease;
}

.process-step:hover .step-visual svg {
  stroke: var(--white);
  filter: drop-shadow(0 0 35px var(--blue));
}

/* PORTFOLIO */
#portfolio {
  padding: 4rem 4rem;
  background: var(--deep);
  border-top: 1px solid var(--border);
}

.portfolio-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 0rem;
}

.portfolio-head {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.5px;
  background: transparent;
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.portfolio-card {
  background: var(--surface);
  overflow: hidden;
  position: relative;
  transition: background .3s;
  cursor: pointer;
  isolation: isolate;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), #05050a 0%, #4d4dff 25%, #6666ff 50%, #4d4dff 75%, #05050a 100%);
  animation: borderSpin 3s linear infinite;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 1;
  background: var(--surface);
  border-radius: inherit;
}

.portfolio-card>* {
  position: relative;
  z-index: 2;
}

@keyframes borderSpin {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

.portfolio-card:hover {
  background: #0c0c1c;
}

.port-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform .5s;
}

.portfolio-card:hover .port-thumb {
  transform: scale(1.03);
}

.port-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .25rem .8rem;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.port-body {
  padding: 1.8rem;
}

.port-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.port-body p {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.port-link {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(80, 120, 255, 1);
  text-decoration: none;
  transition: color .2s;
}

.port-link:hover {
  color: #fff;
}

/* TESTIMONIALS */
#testimonials {
  padding: 4rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.testi-head {
  text-align: center;
  margin-bottom: 4rem;
}

.testi-carousel-shell {
  position: relative;
}

.testi-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  gap: 1.5px;
  /* No background on the grid itself — card backgrounds cover each cell fully.
     This prevents the dark bleed-through below shorter cards. */
  background: transparent;
  border: 1px solid var(--border);
  /* stretch so all cards in the same row match the tallest card's height.
     This means the grid height is always the max-content card, never shorter. */
  align-items: stretch;
  overflow-x: auto;
  /* clip: prevents the card background from painting outside the scrollport */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testi-grid::-webkit-scrollbar {
  display: none;
}

.testi-card {
  background: var(--surface);
  padding: 2.2rem;
  /* Only transition composited properties — avoids layout reflow on hover */
  transition: background .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  /* align-self:stretch (not height:100%) — height:100% caused a circular
     dependency that triggered layout reflow on every hover/paint cycle. */
  align-self: stretch;
  /* Stable floor height prevents height jank when sliding between testimonials
     of varying text lengths. Tall enough for 5-line clamped quote + author row. */
  min-height: 280px;
  scroll-snap-align: start;
  will-change: background;
}

.testi-card:hover {
  background: #0c0c1c;
}

.stars {
  color: #ffc107;
  font-size: .9rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.testi-quote-wrap {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
  margin-bottom: 1rem;
}

.testi-q {
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testi-card.expanded .testi-q {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testi-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--blue-b);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s, opacity .2s, transform .2s;
}

.testi-toggle:hover {
  color: #8d8dff;
  transform: translateX(2px);
}

.testi-card.expanded .testi-toggle {
  margin-top: .05rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: .25rem;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-b));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  overflow: hidden;
  flex-shrink: 0;
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.testi-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .88rem;
}

.testi-role {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.6);
}

.testi-location {
  font-size: .68rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: .1rem;
}

.testi-dots {
  display: none;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.testi-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(122, 122, 255, .28);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

.testi-dot.is-active {
  width: 1.4rem;
  background: var(--blue-b);
}

.testi-carousel-shell.is-carousel+.testi-dots {
  display: flex;
}

.testi-carousel-shell.is-static+.testi-dots {
  display: none;
}

.testi-carousel-shell.is-static .testi-grid {
  grid-auto-flow: initial;
  grid-template-columns: repeat(3, 1fr);
  overflow: visible;
}

.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 95, 255, .45);
  background: rgba(10, 10, 22, .94);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.testi-arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  pointer-events: none;
}

.testi-arrow:hover {
  background: rgba(18, 18, 38, .98);
  border-color: rgba(95, 95, 255, .8);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
  transform: translateY(-50%) scale(1.04);
}

.testi-arrow:active {
  transform: translateY(-50%) scale(.98);
}

.testi-arrow:focus-visible {
  outline: 2px solid rgba(95, 95, 255, .8);
  outline-offset: 2px;
}

.testi-arrow-left {
  left: -1rem;
}

.testi-arrow-right {
  right: -1rem;
}

@media (max-width: 1024px) {
  .testi-grid {
    grid-auto-columns: calc((100% - 1.5px) / 2);
  }

  .testi-carousel-shell.is-static .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-card {
    min-height: 260px;
  }

  .testi-arrow {
    width: 2.8rem;
    height: 2.8rem;
  }

  .testi-arrow-left {
    left: -.75rem;
  }

  .testi-arrow-right {
    right: -.75rem;
  }
}

@media (max-width: 700px) {
  .testi-grid {
    grid-auto-columns: 100%;
  }

  .testi-carousel-shell.is-static .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-card {
    padding: 1.6rem;
    /* On mobile only 1 card is visible at a time, so the grid height = this
       card's height. A min-height prevents height jumping between short/long
       testimonials as the user slides next/prev. */
    min-height: 240px;
  }

  .testi-q {
    -webkit-line-clamp: 4;
  }

  .testi-quote-wrap {
    gap: .45rem;
    margin-bottom: .85rem;
  }

  .testi-card.expanded .testi-toggle {
    margin-top: .1rem;
  }

  .testi-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  .testi-arrow-left {
    left: -.5rem;
  }

  .testi-arrow-right {
    right: -.5rem;
  }
}

/* CTA */
#cta {
  padding: 9rem 4rem;
  text-align: center;
  background: var(--deep);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(77, 77, 255, .18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

#cta h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}

#cta p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 1.4rem auto;
  font-size: .97rem;
  line-height: 1.8;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* CONTACT */
#contact {
  padding: 4rem 4rem;
  background: var(--black);
  border-top: 1px solid var(--border);
  overflow-x: hidden;
}

.contact-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.contact-inner>* {
  min-width: 0;
}

.contact-info h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.contact-info>p {
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.c-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.c-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--blue-subtle);
  border: 1px solid var(--border-b);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(80, 120, 255, 1);
}

.c-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.c-item h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .2rem;
}

.c-item a,
.c-item p {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color .2s;
  margin: 0;
}

.c-item a:hover {
  color: rgba(80, 120, 255, 1);
}

.socials {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--w05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.social-btn:hover {
  border-color: var(--border-b);
  background: var(--blue-subtle);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--w60);
  fill: none;
  stroke-width: 1.5;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .85rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select option {
  background: #0d0d1a;
  color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(77, 77, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 77, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.2rem;
}

.form-submit:hover {
  background: var(--blue-b);
  box-shadow: 0 0 30px rgba(77, 77, 255, 0.4);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background: #030306;
  border-top: 1px solid var(--border);
  padding: 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 240px;
  margin-top: .8rem;
}

.footer-col h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .65rem;
}

.footer-col a {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.6);
  background: #030306;
}

.footer-bottom-socials {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.footer-bottom-socials .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-bottom-socials .social-btn svg {
  width: 15px;
  height: 15px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}

.footer-logo-img {
  height: 70px;
  /* max-width:auto; */
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-brand-name .dot {
  color: var(--blue-b);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .4;
    transform: scale(1);
  }

  50% {
    opacity: .8;
    transform: scale(1.2);
  }
}

@keyframes premiumFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }

  33% {
    transform: translateY(-10px) rotateX(4deg) rotateY(2deg) scale(1.02);
  }

  66% {
    transform: translateY(5px) rotateX(-2deg) rotateY(-3deg) scale(0.99);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE */
@media(max-width:1380px) {
  nav {
    padding: 0.8rem 1.5rem;
  }

  footer {
    padding: 4rem 1.5rem;
  }

  .footer-bottom {
    padding: 1.4rem 1.5rem;
  }
}

/* --- Nav hide / hamburger (tablet + mobile) --- */
@media(max-width:1023px) {
  nav {
    padding: 0.8rem 1.5rem;
    justify-content: space-between;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* --- Hide cursor on touch devices --- */
@media(max-width:768px) {

  .cursor,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* =============================================
   HOME PAGE RESPONSIVE — TABLET & MOBILE ONLY
   (desktop is untouched)
   ============================================= */

/* ── TABLET: 768px – 1024px ── */
@media (min-width:769px) and (max-width:1024px) {

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr 260px !important;
    gap: 2rem !important;
    padding: 7.5rem 2rem 3rem !important;
  }

  #hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .hero-sub {
    font-size: .9rem;
  }

  .logo-wrap {
    width: 240px;
    height: 240px;
  }

  .logo-sand-canvas {
    width: 220px;
    height: 220px;
  }

  .hero-logo-img {
    width: 220px !important;
  }

  .logo-glow {
    width: 260px;
    height: 260px;
  }

  .hero-visual {
    margin-right: 0 !important;
  }

  .hero-stats {
    gap: 1.8rem;
  }

  .hero-stat-num {
    font-size: 1.9rem;
  }

  /* About — override inline grid */
  #about {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    padding: 5rem 2rem !important;
    max-width: 100% !important;
    display: grid !important;
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  #services {
    padding: 3rem 2rem !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Process — override inline padding */
  #process {
    padding: 5rem 2rem !important;
    max-width: 100% !important;
  }

  .process-list {
    gap: 3rem;
  }

  .step-content {
    width: 44%;
    padding: 1.8rem;
  }

  .step-visual svg {
    width: 90px;
    height: 90px;
  }

  /* Portfolio */
  #portfolio {
    padding: 4rem 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Testimonials — override inline padding */
  #testimonials {
    padding: 4rem 2rem !important;
    max-width: 100% !important;
  }

  /* CTA — override inline padding */
  #cta {
    padding: 6rem 2rem !important;
  }

  /* Contact */
  #contact {
    padding: 4rem 2rem !important;
  }

  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr 1fr !important;
    padding: 3rem 2rem !important;
  }

  .footer-bottom {
    padding: 1.2rem 2rem !important;
  }
}

/* ── MOBILE: up to 768px ── */
@media (max-width:768px) {

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 7rem 1.2rem 3rem !important;
    text-align: center;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-badge {
    margin-inline: auto;
  }

  #hero h1 {
    text-align: center;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-sub {
    text-align: center;
    font-size: .9rem;
    margin: 1.4rem auto 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
  }

  .btn-p,
  .btn-s {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-stat-num {
    font-size: 1.8rem;
  }

  .hero-divider {
    display: none;
  }

  /* About — override inline grid */
  #about {
    display: block !important;
    max-width: 100% !important;
    padding: 4rem 1.2rem !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  #about>.reveal {
    margin: 0 auto;
  }

  .about-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-inline: auto;
  }

  .about h2 {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-pillars {
    align-items: flex-start;
    text-align: left;
    margin-inline: auto;
  }

  .about .btn-p {
    display: block;
    width: fit-content;
    margin: 1.8rem auto 0;
  }

  .about-cards {
    display: none;
  }

  /* Section badges */
  .section-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    width: fit-content;
  }

  /* Services */
  #services {
    padding: 3rem 1.2rem !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    padding: 1.6rem;
  }

  /* Process — override inline padding */
  #process {
    padding: 5rem 1.2rem !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .process-head {
    margin-bottom: 4rem;
  }

  .process-list {
    gap: 5.5rem;
    position: relative;
  }

  .process-line {
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    border-left: 1px dashed rgba(77, 77, 255, 0.35);
    background: none;
    top: 0;
    bottom: 0;
  }

  .process-step {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100%;
    position: relative;
  }

  .step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: .75rem;
    background: var(--blue);
    border: none;
    font-weight: 800;
    box-shadow: 0 0 15px var(--blue);
    z-index: 10;
  }

  .step-content {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 3.8rem 1.5rem 2rem !important;
    background: rgba(15, 15, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
  }

  .step-content h3 {
    font-size: 1.3rem;
    margin-bottom: .7rem;
  }

  .step-content p {
    font-size: .88rem;
    line-height: 1.7;
    opacity: .75;
  }

  .step-visual {
    position: absolute;
    top: -68px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d1a;
    padding: 14px;
    border-radius: 50%;
    border: 1px solid rgba(77, 77, 255, 0.3);
    box-shadow: 0 8px 25px -4px rgba(77, 77, 255, 0.35);
    z-index: 5;
  }

  .step-visual svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    color: var(--blue-b);
  }

  /* Portfolio */
  #portfolio {
    padding: 4rem 1.2rem !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  /* Testimonials — override inline padding */
  #testimonials {
    padding: 4rem 1.2rem !important;
    max-width: 100% !important;
  }

  /* CTA — override inline padding */
  #cta {
    padding: 5rem 1.2rem !important;
  }

  #cta h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
  }

  .cta-btns .btn-p,
  .cta-btns .btn-s {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Contact — override inline padding */
  #contact {
    padding: 4rem 1.2rem !important;
  }

  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-info h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .contact-info p {
    margin: 0 auto;
  }

  .contact-items {
    align-items: flex-start;
    margin-top: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 2.5rem 1.2rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
    padding: 1.2rem 1.2rem !important;
  }
}

/* ── SMALL MOBILE: up to 480px ── */
@media (max-width:480px) {
  nav {
    padding: .8rem 1rem;
  }

  /* Hero */
  .hero-content {
    padding: 6.5rem 1rem 2.5rem !important;
  }

  #hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .hero-sub {
    font-size: .84rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .hero-stat-lbl {
    font-size: .6rem;
  }

  /* About */
  .about h2,
  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  #about {
    padding: 3rem 1rem !important;
  }

  .about-text {
    font-size: .84rem;
  }

  /* Services */
  #services {
    padding: 3rem 1rem !important;
  }

  .service-card {
    padding: 1.4rem;
  }

  /* Process */
  #process {
    padding: 4rem 1rem !important;
  }

  .process-list {
    gap: 5rem;
  }

  .step-content {
    padding: 3.5rem 1.2rem 1.8rem !important;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: .82rem;
  }

  /* Portfolio */
  #portfolio {
    padding: 3rem 1rem !important;
  }

  /* Testimonials */
  #testimonials {
    padding: 3rem 1rem !important;
  }

  .testi-card {
    padding: 1.4rem;
  }

  /* CTA */
  #cta {
    padding: 4rem 1rem !important;
  }

  #cta h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* Contact */
  #contact {
    padding: 3rem 1rem !important;
  }

  .contact-form {
    padding: 1.2rem;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem !important;
  }

  .footer-bottom {
    padding: 1rem !important;
    font-size: .65rem;
  }
}

/* ── OTHER PAGES (about, team, etc.) — tablet/mobile ── */
@media(max-width:1024px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: clamp(8.5rem, 14vw + 3.5rem, 10.5rem) 2rem 4rem;
  }

  .hero-right-col {
    grid-template-columns: repeat(4, 1fr);
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 2rem;
  }

  .mv-section {
    padding: 5rem 2rem;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .values-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-section {
    padding: 5rem 2rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-teaser {
    padding: 5rem 2rem;
  }

  .team-teaser-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-cta {
    padding: 5rem 2rem;
  }
}

@media(max-width:640px) {
  .hero-right-col {
    grid-template-columns: 1fr 1fr;
  }

  .values-row {
    grid-template-columns: 1fr 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   FOOTER — MOBILE ONLY FIX
   Only footer is touched — nothing else.
   ============================================= */

@media (max-width:768px) {

  /* Stack brand full-width on top, then 2 columns for links */
  footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 2rem 1.5rem !important;
    padding: 2.5rem 1.2rem !important;
  }

  /* Brand block spans both columns, centered */
  .footer-brand.footer-col {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Shrink logo — overrides inline width:210px !important */
  .footer-logo-img {
    width: 140px !important;
    height: auto !important;
    max-width: 140px !important;
    max-height: 52px !important;
  }

  .footer-brand p {
    max-width: 100% !important;
    font-size: .83rem;
    line-height: 1.7;
    text-align: center;
    margin-top: .7rem;
  }

  /* Link columns: center-aligned inside their cell on mobile */
  footer .footer-col:not(.footer-brand) {
    text-align: center;
  }

  .footer-col h4 {
    font-size: .72rem;
    margin-bottom: 1rem;
  }

  .footer-col a {
    font-size: .8rem;
  }

  /* Footer bottom copyright bar: 1 line (text left, icons right) */
  .footer-bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding: 1rem 1.2rem !important;
    font-size: .72rem !important;
    gap: .5rem !important;
  }

  .footer-bottom-socials {
    justify-content: flex-end !important;
    gap: .5rem !important;
    flex-shrink: 0 !important;
  }

  .footer-bottom-socials .social-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .footer-bottom-socials .social-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width:480px) {

  footer {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1rem !important;
    padding: 2rem 1rem !important;
  }

  .footer-logo-img {
    width: 120px !important;
    max-width: 120px !important;
  }

  .footer-brand p {
    font-size: .78rem;
  }

  .footer-col h4 {
    font-size: .68rem;
  }

  .footer-col a {
    font-size: .75rem;
  }

  .footer-bottom {
    padding: .85rem 1rem !important;
    font-size: .68rem !important;
  }
}

/* =============================================
   PROCESS — MOBILE ICON FIX (icons restored)
   Uses CSS order to: icon → badge → card
   No absolute positioning = no overlap.
   ============================================= */

@media (max-width: 768px) {

  #process {
    padding: 4rem 1.2rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .process-list {
    gap: 2.2rem !important;
    position: relative;
  }

  /* Hide the zigzag connecting line */
  .process-line {
    display: none !important;
  }

  /* Step: simple vertical column, centred */
  .process-step {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    position: relative;
  }

  /* ─── 1. ICON CIRCLE — shown first via order ─── */
  .step-visual {
    order: -2 !important;
    /* Remove old absolute positioning */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    /* Style as a centred circle */
    width: 74px !important;
    height: 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0d0d1a !important;
    border: 1px solid rgba(77, 77, 255, 0.4) !important;
    border-radius: 50% !important;
    padding: 16px !important;
    box-shadow: 0 8px 28px rgba(77, 77, 255, 0.35),
      inset 0 0 14px rgba(77, 77, 255, 0.08) !important;
    z-index: 2;
    flex-shrink: 0;
  }

  .step-visual svg {
    width: 100% !important;
    height: 100% !important;
    stroke: var(--blue-b) !important;
    fill: none !important;
    stroke-width: 1.5 !important;
    filter: drop-shadow(0 0 8px var(--blue-glow)) !important;
  }

  /* ─── 2. NUMBER BADGE — sits just below icon ─── */
  .step-num {
    order: -1 !important;
    /* Remove absolute positioning */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    /* Badge size */
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    background: var(--blue) !important;
    border: 2px solid rgba(120, 130, 255, 0.4) !important;
    box-shadow: 0 0 16px var(--blue-glow) !important;
    /* Intentional slight overlap with icon bottom */
    margin-top: -12px !important;
    margin-bottom: .85rem !important;
    align-self: center;
    z-index: 3;
    flex-shrink: 0;
  }

  /* ─── 3. CARD — shown last ─── */
  .step-content {
    order: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 1.8rem 1.5rem 1.6rem !important;
    background: rgba(10, 10, 22, 0.68) !important;
    border: 1px solid rgba(77, 77, 255, 0.18) !important;
    border-radius: 20px !important;
    position: relative !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    transition: border-color .3s, transform .3s;
  }

  .step-content:hover {
    border-color: rgba(77, 77, 255, 0.45) !important;
    transform: translateY(-3px) !important;
  }

  .step-content h3 {
    font-size: 1.12rem !important;
    margin-bottom: .55rem !important;
    font-weight: 700;
    color: var(--white);
  }

  .step-content p {
    font-size: .86rem !important;
    line-height: 1.75 !important;
    color: rgba(255, 255, 255, 0.62);
  }
}

/* Small phones */
@media (max-width: 480px) {

  #process {
    padding: 3.5rem 1rem !important;
  }

  .process-list {
    gap: 2rem !important;
  }

  .step-visual {
    width: 64px !important;
    height: 64px !important;
    padding: 14px !important;
  }

  .step-num {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: .65rem !important;
    margin-top: -10px !important;
    margin-bottom: .75rem !important;
  }

  .step-content {
    padding: 1.5rem 1.2rem 1.4rem !important;
    border-radius: 16px !important;
  }

  .step-content h3 {
    font-size: 1rem !important;
  }

  .step-content p {
    font-size: .82rem !important;
  }
}

/* =============================================
   CONTACT INFO ITEMS — MOBILE ONLY FIX
   Fixes icon + text alignment in "Let's Start
   a Conversation" section on mobile.
   ============================================= */

@media (max-width: 768px) {

  /* Centre the whole contact info block */
  .contact-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Items list: left-aligned block centred on page */
  .contact-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.1rem !important;
    margin-top: 1.4rem !important;
    width: 100% !important;
    max-width: 280px !important;
    /* keeps it from spanning full width */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Each item row: icon on the left, text on the right — left-aligned */
  .c-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: .85rem !important;
    text-align: left !important;
    width: 100% !important;
  }

  /* Icon box: fixed size, never shrinks */
  .c-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  /* Text block: left-aligned */
  .c-item>div:last-child {
    text-align: left !important;
  }

  .c-item h4 {
    font-size: .85rem !important;
    margin-bottom: .15rem !important;
  }

  .c-item a,
  .c-item p {
    font-size: .78rem !important;
    word-break: break-word;
    margin: 0 !important;
  }

  /* Social buttons: centre below items */
  .socials {
    justify-content: center !important;
    margin-top: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .contact-items {
    max-width: 260px !important;
  }

  .c-item h4 {
    font-size: .82rem !important;
  }

  .c-item a,
  .c-item p {
    font-size: .75rem !important;
  }
}