/* ═══════════════════════════════════════════════
   CodenX — Premium Design System
   ═══════════════════════════════════════════════ */

:root {
  --bg:        #080808;
  --bg-2:      #0e0e0e;
  --bg-3:      #141414;
  --bg-card:   #111111;
  --accent:    #e5cb43;
  --accent-dim: rgba(229,203,67,0.12);
  --accent-glow: rgba(229,203,67,0.2);
  --white:     #ffffff;
  --gray-1:    #f0f0f0;
  --gray-2:    #a0a0a0;
  --gray-3:    #555555;
  --gray-4:    #2a2a2a;
  --border:    rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 72px;
  --container: 1240px;
  --gap: clamp(1rem, 3vw, 2rem);

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Scroll margin ── */
section { scroll-margin-top: calc(var(--nav-h) + var(--marquee-h) + 2rem); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Section rhythm ── */
.s-about, .s-services, .s-cases, .s-team {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

body.loading {
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #e5cb43;
  border-radius: 4px;
}


#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark panel that slides up to reveal the page (animated separately from the X) */
.preloader-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  z-index: 1;
  will-change: transform;
}

/* Full CodenX wordmark, revealed by the X (clip-path driven from JS).
   Starts fully clipped so nothing shows during the X's rise. */
.preloader-brand {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  display: block;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.preloader-inner {
  position: relative;
  z-index: 3;            /* X stays in front of the brand, acting as the mask */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.preloader-x-wrap { will-change: transform; }

.preloader-x-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.preloader-x-wrap svg {
  display: block;
}

.preloader-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
}

.preloader-counter-text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #888;
  text-transform: uppercase;
}

.preloader-counter-text span {
  color: #e5cb43;
}

.preloader-progress-bar {
  width: 200px;
  height: 1px;
  background: #222;
  overflow: hidden;
}

.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: #e5cb43;
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
══════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, select, textarea, label { cursor: none !important; }
  #cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity 0.3s; }
  #cursor.visible { opacity: 1; }
  .cursor-dot {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%,-50%);
  }
  .cursor-ring {
    position: absolute;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(229,203,67,0.5);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--accent);
  }
  body.cursor-click .cursor-dot { transform: translate(-50%,-50%) scale(1.5); }
}
@media (hover: none) { #cursor { display: none; } }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
  background: transparent;
}
#nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
#nav.drawer-open {
  background: #080808 !important;
  backdrop-filter: none;
  box-shadow: none;
  transition: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

/* Nav logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0; /* revealed after preloader */
}
.nav-logo strong { color: var(--accent); }
.nav-logo-img {
  display: block;
  height: 26px;
  width: auto;
}

/* Mini X in nav */
.nav-x-logo {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-x-bar {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--accent);
  top: 50%;
  left: 0;
  border-radius: 2px;
}
.nav-x-bar-1 { transform: translateY(-50%) rotate(45deg); }
.nav-x-bar-2 { transform: translateY(-50%) rotate(-45deg); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-2);
  border-radius: var(--radius-sm);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: left 0.3s var(--ease-out-expo), right 0.3s var(--ease-out-expo);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { left: 0.85rem; right: 0.85rem; }
.nav-link.active { color: var(--white); }
.nav-link.active::after { left: 0.85rem; right: 0.85rem; }

.nav-cta {
  margin-left: 0.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: #f0d84a; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #080808;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  flex-direction: column;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo), visibility 0s linear 0.4s;
  display: flex;
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s var(--ease-out-expo), visibility 0s linear 0s;
}
.drawer-link {
  display: block;
  padding: 1.1rem 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--gray-1);
  transition: color 0.25s, padding-left 0.25s;
}
.drawer-link:hover { color: var(--accent); padding-left: 0.5rem; }
.drawer-cta { color: var(--accent); border-bottom: none; margin-top: 1rem; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.s-hero {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

/* BG Effects */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(229,203,67,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.s-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-top: clamp(1rem, 2.5vw, 2rem);
  align-self: center;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero-content { display: flex; flex-direction: column; gap: 2rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(229,203,67,0.1);
  border: 1px solid rgba(229,203,67,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  opacity: 0;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > * { display: inline-block; }
.hero-accent { color: var(--accent); }
.dot { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--gray-2);
  line-height: 1.7;
  max-width: 44ch;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  opacity: 0;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-sym { display: inline; font-size: 1.4rem; color: var(--accent); font-weight: 800; }
.stat-lbl { font-size: 0.78rem; color: var(--gray-2); font-weight: 500; }
.stat-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hero-device {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.device-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 1rem;
  position: relative;
  z-index: 2;
}
.device-notch {
  width: 80px; height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 1rem;
}
.device-screen {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 300px;
}
.ds-bar { height: 6px; width: 60%; background: var(--border); border-radius: 3px; }
.ds-hero-block { height: 80px; background: linear-gradient(135deg, rgba(229,203,67,0.15), rgba(229,203,67,0.05)); border-radius: var(--radius-sm); }
.ds-lines { display: flex; flex-direction: column; gap: 6px; }
.ds-line { height: 5px; background: var(--border); border-radius: 3px; }
.ds-short { width: 65%; }
.ds-cta { height: 28px; width: 40%; background: rgba(229,203,67,0.3); border-radius: var(--radius-sm); }
.ds-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.ds-card { height: 40px; background: var(--bg-3); border-radius: var(--radius-sm); border: 1px solid var(--border); }

.device-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(229,203,67,0.12), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.device-reflection {
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,203,67,0.3), transparent);
  z-index: 3;
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(17,17,17,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 3;
}
.fc-label { font-size: 0.7rem; color: var(--gray-2); font-weight: 500; }
.fc-value { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.fc-1 { top: 10%; left: -18%; animation: float 4s ease-in-out infinite; }
.fc-2 { bottom: 25%; right: -18%; animation: float 4s ease-in-out infinite 1.5s; }
.fc-3 { top: 55%; left: -22%; animation: float 4s ease-in-out infinite 0.8s; }

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

/* Scroll hint */
.hero-scroll {
  position: relative;
  left: auto;
  bottom: 3.2rem;
  transform: none;
  justify-self: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--gray-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-track {
  width: 2px; height: 40px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.scroll-thumb {
  width: 100%; height: 40%;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ══════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 2rem;

  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;

  padding-right: 2rem;
}

.marquee-dot {
  color: var(--accent);
  font-size: 0.6rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333333%);
  }
}

/* ══════════════════════════════════════════════
   SHARED SECTION ELEMENTS
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-sub {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: var(--gray-2);
  line-height: 1.7;
}
.body-text {
  font-size: 1rem;
  color: var(--gray-2);
  line-height: 1.75;
  max-width: 54ch;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #f0d84a; box-shadow: 0 0 30px rgba(229,203,67,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--gray-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--white); }

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}
.btn-full { width: 100%; justify-content: center; }

.btn-loading { display: none; }
.btn.loading .btn-txt { opacity: 0; }
.btn.loading .btn-loading { display: flex; }
.btn.loading .btn-arrow { display: none; }

.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Magnetic wrapper trick */
.magnetic { display: inline-flex; }

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.s-about {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--marquee-h));
  padding-bottom: calc(var(--nav-h) + var(--marquee-h));
  box-sizing: border-box;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-copy .section-tag { margin-bottom: 0; }
.about-copy .section-title { text-align: left; }
.about-copy .body-text { max-width: none; }

.about-visual { position: relative; }

.about-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 2.5rem;
}
.about-card-inner { position: relative; z-index: 2; }
.about-logo-wrap {
  padding: 1.5rem;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-wrap img { max-width: 220px; height: auto; filter: brightness(1.1); }
.about-card-stat { display: flex; align-items: baseline; gap: 0.75rem; }
.acs-num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.acs-lbl { font-size: 0.9rem; color: var(--gray-2); line-height: 1.4; }
.about-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(229,203,67,0.08), transparent);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: rgba(17,17,17,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  z-index: 3;
}
.about-badge > div { display: flex; flex-direction: column; }
.about-badge strong { font-size: 0.85rem; font-weight: 700; color: var(--white); }
.about-badge span { font-size: 0.75rem; color: var(--gray-2); }
.ab-1 { bottom: -1rem; right: -1rem; }
.ab-2 { top: -1rem; left: -1rem; }

/* ══════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════ */
.s-services { background: var(--bg-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.svc-card {
  background: var(--bg-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.3s;
  cursor: default;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 500px at var(--mx,50%) var(--my,50%), rgba(229,203,67,0.07) 0%, transparent 50%);
  opacity: var(--spotlight, 0);
  transition: opacity 0.3s;
  pointer-events: none;
}
.svc-card:hover .svc-arrow { transform: translateX(4px); color: var(--accent); }

.svc-card--featured {
  background: linear-gradient(135deg, rgba(229,203,67,0.08), var(--bg-card));
  grid-column: span 1;
  overflow: visible;
  position: relative;
  z-index: 2;
  border-radius: 0 0 var(--radius-xl) 0;
}
.svc-featured-label {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.svc-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.svc-desc { font-size: 0.9rem; color: var(--gray-2); line-height: 1.65; flex: 1; }
.svc-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.svc-tags span {
  padding: 0.2rem 0.55rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-2);
}
.svc-arrow {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-3);
  transition: transform 0.3s, color 0.3s;
  margin-top: auto;
}

/* ══════════════════════════════════════════════
   CASES
══════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.case-card:hover .case-overlay { opacity: 1; }

.case-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.case-mock {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cm-bar { height: 5px; width: 50%; background: rgba(255,255,255,0.1); border-radius: 3px; }
.cm-hero { flex: 1; background: linear-gradient(135deg, rgba(229,203,67,0.12), rgba(229,203,67,0.04)); border-radius: 6px; }
.cm-hero--tall { flex: 2; }
.cm-hero--xl { flex: 3; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.cm-grid div { height: 35px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.cm-lines { display: flex; flex-direction: column; gap: 5px; }
.cm-lines div { height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.cm-lines .short { width: 55%; }
.cm-cta { height: 22px; width: 40%; background: rgba(229,203,67,0.25); border-radius: 4px; }

.case-img--1 { background: linear-gradient(135deg, #0f0f1a, #12121f); }
.case-img--2 { background: linear-gradient(135deg, #0f1a0f, #12201c); }
.case-img--3 { background: linear-gradient(135deg, #1a0f0f, #201515); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.case-btn {
  padding: 0.7rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transform: translateY(8px);
  transition: transform 0.3s var(--ease-out-expo);
}
.case-card:hover .case-btn { transform: translateY(0); }

.case-meta {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.case-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.case-result {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--gray-2);
}

/* ══════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════ */
.s-team {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--marquee-h));
  padding-bottom: calc(var(--nav-h) + var(--marquee-h));
  box-sizing: border-box;
  background: var(--bg-2);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.3s, transform 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.team-card:hover { border-color: rgba(229,203,67,0.2); transform: translateY(-4px); }
.team-card:hover::before { opacity: 1; }

.team-photo { position: relative; }
.team-avatar {
  width: 80px; height: 80px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
  user-select: none;
}
.team-glow {
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(229,203,67,0.12), transparent);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s;
}
.team-card:hover .team-glow { opacity: 1; }

.team-info { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.team-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.team-role { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; }
.team-bio { font-size: 0.88rem; color: var(--gray-2); line-height: 1.65; margin-top: 0.4rem; }

.team-socials { display: flex; gap: 0.6rem; }
.team-social {
  width: 34px; height: 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-2);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.team-social:hover { color: var(--accent); border-color: var(--accent-glow); background: var(--accent-dim); }

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.s-contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 10vw, 7.7rem) 0;
  box-sizing: border-box;
}

.s-contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  width: 100%;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.contact-info .section-title { text-align: left; }

.contact-ways { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.cway {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, transform 0.25s;
}
.cway:hover { border-color: var(--border-hover); transform: translateX(4px); }
.cway-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cway-text { display: flex; flex-direction: column; gap: 0.1rem; }
.cway-lbl { font-size: 0.75rem; color: var(--gray-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.cway-val { font-size: 0.95rem; font-weight: 600; color: var(--white); }

/* ── Contact Form ── */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.cform { display: flex; flex-direction: column; gap: 1.25rem; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgroup { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.flabel { font-size: 0.82rem; font-weight: 600; color: var(--gray-2); }
.req { color: var(--accent); }
.finput {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  appearance: none;
}
.finput::placeholder { color: var(--gray-3); }
.finput:focus {
  border-color: rgba(229,203,67,0.4);
  box-shadow: 0 0 0 3px rgba(229,203,67,0.08);
}
.finput.invalid { border-color: rgba(239,68,68,0.5); }
.finput.valid { border-color: rgba(34,197,94,0.4); }
.fselect { cursor: pointer; }
.fselect option { background: var(--bg-2); color: var(--white); }
.ftextarea { resize: vertical; min-height: 130px; }
.frow-meta { display: flex; justify-content: space-between; align-items: center; }
.ferr { font-size: 0.78rem; color: #ef4444; min-height: 1em; }
.fcount { font-size: 0.75rem; color: var(--gray-3); text-align: right; flex-shrink: 0; margin-left: auto; }

/* Checkbox */
.fgroup--check { display: flex; flex-direction: column; gap: 0.4rem; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-2);
  line-height: 1.5;
}
.check-label input[type="checkbox"] { display: none; }
.check-box {
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
  margin-top: 2px;
}
.check-box svg { opacity: 0; color: #000; transition: opacity 0.2s; }
.check-label input:checked ~ .check-box { background: var(--accent); border-color: var(--accent); }
.check-label input:checked ~ .check-box svg { opacity: 1; }
.flink { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Form feedback */
.form-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.form-msg[hidden] { display: none; }
.form-msg > div { display: flex; flex-direction: column; gap: 0.15rem; }
.form-msg strong { font-size: 0.95rem; }
.form-msg p { color: var(--gray-2); }
.form-msg--ok { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); }
.form-msg--err { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; width: fit-content; }
.footer-logo img { filter: brightness(1.1); }
.footer-tagline { font-size: 0.9rem; color: var(--gray-3); line-height: 1.6; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.fsocial {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-2);
  transition: color 0.25s, border-color 0.25s;
}
.fsocial:hover { color: var(--accent); border-color: var(--accent-glow); }

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--gray-2);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-3);
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL STATES
══════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .s-hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-scroll { bottom: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-stats { flex-direction: column; gap: 1.25rem; align-items: flex-start; }
  .stat-sep { width: 40px; height: 1px; }

  .services-grid { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .fc-1, .fc-2, .fc-3 { display: none; }

  /* Sections mobile */
  .s-about,
  .s-services,
  .s-cases,
  .s-team,
  .s-contact {
    min-height: unset;
    display: block;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .svc-card--featured .btn { width: 100%; justify-content: center; }
}