/* ═══════════════════════════════════════════════════════════
   MD TECHNOLOGY — GLOBAL STYLESHEET  v3.0  (class-matched)
   style.css
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ──────────────────────────────────────────
   CSS VARIABLES
────────────────────────────────────────── */
:root {
  --bg: #faf9f6;
  --surface: #f5f3f0;
  --card: #f0ede8;
  --card2: #ebe7e0;
  --gold: #b8956a;
  --gold-lt: #d4af8b;
  --gold-dk: #9a7e47;
  --white: #1a1612;
  --muted: #5a5450;
  --muted2: #7a7168;
  --border: rgba(184, 149, 106, 0.12);
  --border2: rgba(184, 149, 106, 0.05);
  --serif: 'Outfit', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.12);
  --shadow-3d: 0px 4px 0px 0px var(--gold-dk), 0px 8px 15px rgba(0, 0, 0, 0.1);
  --shadow-3d-active: 0px 1px 0px 0px var(--gold-dk), 0px 2px 5px rgba(0, 0, 0, 0.08);
  --shadow-card-3d: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  --glass-border: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  --nav-h: 72px;
  --px: 60px;
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
}

/* Dark Mode Variables */
html.dark {
  --bg: #080806;
  --surface: #0e0d0a;
  --card: #141210;
  --card2: #1c1a16;
  --gold: #c9a84c;
  --gold-lt: #e2c97e;
  --gold-dk: #8a6e2a;
  --white: #fdfcf9;
  --muted: #9e9587;
  --muted2: #73695c;
  --border: rgba(201, 168, 76, 0.18);
  --border2: rgba(201, 168, 76, 0.07);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
  --shadow-3d: 0px 4px 0px 0px var(--gold-dk), 0px 8px 15px rgba(0, 0, 0, 0.4);
  --shadow-3d-active: 0px 1px 0px 0px var(--gold-dk), 0px 2px 5px rgba(0, 0, 0, 0.3);
  --shadow-card-3d: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 4px;
}

button:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

p {
  line-height: 1.78;
}

/* ──────────────────────────────────────────
   TYPOGRAPHY
────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 em {
  font-style: italic;
  color: var(--gold);
}

h3 em {
  font-style: italic;
  color: var(--gold);
}

/* ──────────────────────────────────────────
   SHARED UTILITIES
────────────────────────────────────────── */
.bg-surface {
  background: var(--surface);
}

.section-pad {
  padding: 96px var(--px);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  transform-style: preserve-3d;
}

.section-eyebrow span {
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--gold);
}

.section-eyebrow p {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  font-family: var(--sans);
}

.eyebrow-centered {
  justify-content: center;
}

.eyebrow-centered+h2 {
  text-align: center;
}

.section-desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
  max-width: 500px;
  margin-top: 14px;
  font-weight: 300;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, -40px) rotateX(5deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

/* 3D Floating Utility */
.float-3d {
  animation: float3D 6s ease-in-out infinite both;
  transform-style: preserve-3d;
}

@keyframes float3D {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }

  33% {
    transform: translate3d(10px, -20px, 30px) rotateZ(2deg);
  }

  66% {
    transform: translate3d(-5px, 15px, -20px) rotateZ(-1deg);
  }
}

/* 3D Grid background for hero sections */
.hero-grid-3d {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.3;
}

.hero-grid-3d::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  transform-origin: center;
  transform: translate(-50%, -50%) rotateX(60deg) translateZ(-100px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 13px 38px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: var(--shadow-3d);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0px 6px 0px 0px var(--gold-dk), 0px 12px 20px rgba(0, 0, 0, 0.5);
}

.btn-gold:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-3d-active);
}

html.dark .btn-gold {
  color: #000;
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 13px 38px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  cursor: pointer;
  background: transparent;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: #000;
  background: var(--gold);
}

/* ══════════════════════════════════════════
   NAVIGATION
   HTML uses: #navbar, .logo-img, .logo-fallback,
   .nav-links, .nav-menu (wraps cta + hamburger),
   .nav-cta, .hamburger, #mobileMenu .mobile-menu
══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(8, 8, 6, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(8, 8, 6, 0.99);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Logo area — the <a> wrapping img + fallback */
#navbar>a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-fallback {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
  transform: scaleX(1);
}

/* .nav-menu = the right-side wrapper (CTA button + hamburger) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 7px 22px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold);
  color: var(--white);
}

html.dark .nav-cta:hover,
html.dark .nav-cta:focus-visible {
  color: #000;
}

/* Hamburger button */
.hamburger {
  display: none;
  /* hidden on desktop, shown via media query */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Theme toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: block;
}

.theme-toggle:active .theme-icon {
  transform: scale(0.85) rotate(-20deg);
}

html.dark .theme-icon {
  content: '☀️';
}

html.dark .theme-icon::before {
  content: '☀️';
}

/* Mobile drawer — collapsed by default (max-height:0 hides it) */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 899;
  background: rgba(8, 8, 6, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 480px;
}

.mobile-menu a {
  display: block;
  padding: 15px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border2);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

/* ══════════════════════════════════════════
   HOME HERO
   HTML uses: .hero, .hero-bg-lines,
   .hero-radial, .hero-radial2, .hero-vline,
   .hero-content, .hero-eyebrow, .eyebrow-line,
   .eyebrow-text, .hero-sub, .hero-actions,
   .hero-stats, .stat-num, .stat-label
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 64px) var(--px) 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* HTML calls these hero-radial + hero-radial2 */
.hero-radial {
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.07) 0%, transparent 62%);
  top: -260px;
  right: -200px;
  pointer-events: none;
}

.hero-radial2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.04) 0%, transparent 68%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Vertical decorative lines */
.hero-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.16), transparent);
  pointer-events: none;
}

/* 3D Decorative Blobs */
.blob-3d {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, rgba(201, 168, 76, 0.2), transparent);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: 10%;
  right: 15%;
  width: 250px;
  height: 250px;
  animation-duration: 25s;
}

.blob-2 {
  bottom: 15%;
  left: 10%;
  width: 200px;
  height: 200px;
  animation-delay: -5s;
}

@keyframes float-blob {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }

  33% {
    transform: translate3d(50px, -80px, 100px) scale(1.1) rotate(120deg);
  }

  66% {
    transform: translate3d(-30px, 40px, -50px) scale(0.9) rotate(240deg);
  }

  100% {
    transform: translate3d(20px, -20px, 20px) scale(1.05) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* Particle animation for hero depth effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(201, 168, 76, 0.4), rgba(201, 168, 76, 0)),
    radial-gradient(2px 2px at 60px 70px, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0)),
    radial-gradient(1px 1px at 50px 50px, rgba(201, 168, 76, 0.5), rgba(201, 168, 76, 0)),
    radial-gradient(1px 1px at 130px 80px, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0)),
    radial-gradient(2px 2px at 90px 10px, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  animation: float-particles 20s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float-particles {
  0%, 100% {
    background-position: 0px 0px;
    opacity: 0.3;
  }
  50% {
    background-position: 50px -50px;
    opacity: 0.6;
  }
}

/* Eyebrow inside hero — uses .hero-eyebrow, .eyebrow-line, .eyebrow-text */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  animation: fadeUp 0.65s ease both;
}

.eyebrow-line {
  width: 44px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow-text {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* Hero h1 — scoped so it doesn't affect page-hero h1 */
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 300;
  line-height: 1.0;
  animation: fadeUp 0.65s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero h1 strong {
  font-weight: 700;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.82;
  margin-top: 26px;
  max-width: 530px;
  font-weight: 300;
  animation: fadeUp 0.65s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeUp 0.65s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
  margin-top: 68px;
  padding-top: 38px;
  border-top: 1px solid var(--border2);
  animation: fadeUp 0.65s 0.4s ease both;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 7px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
   HTML uses: .page-hero, .page-hero-bg,
   .page-hero-glow, then a plain <div>
   containing .section-eyebrow, h1, .sub
══════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 72px) var(--px) 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* The last child <div> holds the actual content */
.page-hero>div:last-child {
  position: relative;
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.page-hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.07) 0%, transparent 64%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

/* page-hero h1 — overrides body h1 without touching .hero h1 */
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 300;
  line-height: 1.02;
  animation: fadeUp 0.65s 0.05s ease both;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.page-hero .section-eyebrow {
  animation: fadeUp 0.5s ease both;
}

.page-hero .sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
  max-width: 580px;
  margin-top: 22px;
  font-weight: 300;
  animation: fadeUp 0.65s 0.15s ease both;
}

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 0 30px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  gap: 10px;
}

.marquee-item span {
  color: var(--gold);
  font-size: 0.4rem;
}

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

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

/* ══════════════════════════════════════════
   SERVICES GRID (home page)
══════════════════════════════════════════ */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.service-card {
  background: var(--card);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border: 1px solid transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.38s;
}

.service-card:hover {
  background: var(--card2);
  transform: perspective(1200px) translate3d(0, -12px, 30px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, 3deg));
  box-shadow: var(--shadow-card-3d);
  z-index: 2;
  border-color: rgba(201, 168, 76, 0.3);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.svc-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.1);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.3s;
}

.service-card:hover .svc-num {
  color: rgba(201, 168, 76, 0.22);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.72;
  font-weight: 300;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.svc-tag {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.16);
  padding: 3px 10px;
}

/* ══════════════════════════════════════════
   WHY US / METRICS
══════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.metric-box {
  background: var(--card);
  padding: 36px 32px;
  transition: background 0.3s;
}

.metric-box:hover {
  background: var(--card2);
}

.metric-val {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

.why-feats {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-bullet {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

.why-feat h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.why-feat p {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   PROCESS
══════════════════════════════════════════ */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border2);
  margin-top: 56px;
}

.process-step {
  padding: 36px 26px;
  border-right: 1px solid var(--border2);
  transition: background 0.3s;
}

.process-step:last-child {
  border-right: none;
}

.process-step:hover {
  background: var(--card2);
}

.step-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.12);
  line-height: 1;
  margin-bottom: 18px;
  transition: color 0.3s;
}

.process-step:hover .step-num {
  color: rgba(201, 168, 76, 0.28);
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.testi-card {
  background: var(--card);
  padding: 38px 34px;
  transition: background 0.3s;
}

.testi-card:hover {
  background: var(--card2);
}

.testi-stars {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.testi-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.72;
  font-style: italic;
  color: rgba(245, 242, 236, 0.82);
}

.testi-divider {
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}

.testi-name {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.testi-role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(145deg, #0e0d0a, #120f08);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 88px var(--px);
}

.cta-band h2 {
  max-width: 600px;
  margin: 0 auto;
}

.cta-band>p {
  color: var(--muted);
  margin: 18px auto 40px;
  max-width: 420px;
  font-size: 0.94rem;
  line-height: 1.8;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
  margin-top: 56px;
}

.price-card {
  background: var(--card);
  padding: 42px 34px;
  transition: background 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border: 1px solid transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card.featured {
  background: var(--card2);
  transform: translateY(-4px) perspective(800px) rotateX(1deg);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.price-card:hover {
  background: var(--card2);
  transform: translateY(-12px) perspective(1200px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, 3deg)) translateZ(20px);
  box-shadow: var(--shadow-card-3d);
  z-index: 2;
  border-color: rgba(201, 168, 76, 0.3);
}

.featured-tag {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.38);
  padding: 4px 13px;
  display: inline-block;
  margin-bottom: 18px;
}

.price-plan {
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.price-amount sup {
  font-size: 1rem;
  vertical-align: top;
  margin-top: 7px;
  display: inline-block;
}

.price-divider {
  width: 100%;
  height: 1px;
  background: var(--border2);
  margin: 22px 0;
}

.price-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 22px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  display: flex;
  gap: 11px;
  font-size: 0.82rem;
  color: var(--muted);
  align-items: flex-start;
  line-height: 1.55;
}

.price-features li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

.price-cta {
  display: block;
  text-align: center;
  margin-top: 30px;
  padding: 11px;
  font-size: 0.71rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.24s;
  font-family: var(--sans);
}

.pcta-outline {
  border: 1px solid var(--border);
  color: var(--muted);
}

.pcta-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pcta-gold {
  background: var(--gold);
  color: #000;
  font-weight: 600;
}

.pcta-gold:hover {
  background: var(--gold-lt);
}

/* ══════════════════════════════════════════
   DIGITAL MARKETING (services page)
══════════════════════════════════════════ */
.dm-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}

.dm-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.dm-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.dm-item {
  background: var(--card);
  padding: 30px 34px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: background 0.3s;
}

.dm-item:hover {
  background: var(--card2);
}

.dm-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 300;
  min-width: 24px;
  padding-top: 1px;
  flex-shrink: 0;
}

.dm-item h3 {
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.dm-item p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story-text h3 {
  font-size: 1.85rem;
  margin-bottom: 22px;
  line-height: 1.18;
}

.about-story-text p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-story-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.about-stat-box {
  background: var(--card);
  padding: 34px 28px;
  transition: background 0.3s;
}

.about-stat-box:hover {
  background: var(--card2);
}

.about-stat-box .num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.about-stat-box .lbl {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 7px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.value-card {
  background: var(--card);
  padding: 38px 34px;
  transition: background 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border: 1px solid transparent;
}

.value-card:hover {
  background: var(--card2);
  transform: perspective(1000px) translate3d(0, -8px, 20px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, 2deg));
  box-shadow: var(--shadow-card-3d);
  border-color: rgba(255, 255, 255, 0.05);
}

.value-icon {
  font-size: 1.7rem;
  margin-bottom: 16px;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.team-card {
  background: var(--card);
  padding: 34px 28px;
  transition: background 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border: 1px solid transparent;
}

.team-card:hover {
  background: var(--card2);
  transform: perspective(1000px) translate3d(0, -8px, 15px) rotateX(var(--rx, 1.5deg)) rotateY(var(--ry, 1.5deg));
  box-shadow: var(--shadow-card-3d);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.team-card h4 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}

.team-card .role {
  font-size: 0.69rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
  font-weight: 300;
}

/* ══════════════════════════════════════════
   TECHNOLOGIES PAGE
══════════════════════════════════════════ */
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.tech-category-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tech-category-title span {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.18);
  padding: 4px 12px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.tech-card {
  background: var(--card);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tech-color, var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tech-card:hover {
  background: var(--card2);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-logo {
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1;
}

.tech-card .version {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  font-weight: 300;
}

.tech-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.tech-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border2);
  color: var(--muted2);
}

.stack-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.stack-item {
  background: var(--card);
  padding: 26px 18px;
  text-align: center;
  transition: background 0.3s;
}

.stack-item:hover {
  background: var(--card2);
}

.stack-item .icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.stack-item p {
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   SERVICES DETAIL (services page)
══════════════════════════════════════════ */
.service-section-header {
  margin-bottom: 44px;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.service-detail-card {
  background: var(--card);
  padding: 46px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-detail-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.38s;
}

.service-detail-card:hover {
  background: var(--card2);
}

.service-detail-card:hover::after {
  transform: scaleX(1);
}

.sdc-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.service-detail-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-detail-card>p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.76;
  font-weight: 300;
  margin-bottom: 20px;
}

.sdc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sdc-features li {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.sdc-features li::before {
  content: '→';
  color: var(--gold);
  font-size: 0.74rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════════
   PORTFOLIO PAGE
══════════════════════════════════════════ */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 44px;
}

.pf-btn {
  padding: 10px 22px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--sans);
}

.pf-btn:last-child {
  border-right: none;
}

.pf-btn.active,
.pf-btn:hover {
  background: var(--gold);
  color: #000;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.portfolio-card {
  background: var(--card);
  overflow: hidden;
  transition: background 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  transform-style: preserve-3d;
  border: 1px solid transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card:hover {
  background: var(--card2);
  transform: perspective(1200px) translate3d(0, -12px, 20px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, 2deg));
  box-shadow: var(--shadow-card-3d);
  z-index: 2;
  border-color: rgba(201, 168, 76, 0.3);
}

.portfolio-card[data-hidden="true"] {
  display: none;
}

.portfolio-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  border-bottom: 1px solid var(--border2);
}

.portfolio-info {
  padding: 24px 26px 28px;
}

.portfolio-cat {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
  font-weight: 300;
}

.portfolio-tech-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pt-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border2);
  color: var(--muted2);
}

/* Parallax Layers for Portfolio Section */
.portfolio-section {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.layer-1 {
  background: radial-gradient(ellipse 800px 400px at 20% 30%, rgba(201, 168, 76, 0.04), transparent);
  opacity: 0.6;
  filter: blur(80px);
}

.layer-2 {
  background: radial-gradient(ellipse 600px 300px at 80% 60%, rgba(97, 218, 251, 0.03), transparent);
  opacity: 0.4;
  filter: blur(100px);
}

.layer-3 {
  background: radial-gradient(ellipse 900px 500px at 50% 10%, rgba(138, 110, 42, 0.02), transparent);
  opacity: 0.3;
  filter: blur(120px);
}

.portfolio-section .portfolio-filter,
.portfolio-section .portfolio-grid,
.portfolio-section > div:not(.parallax-layer) {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 80px;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ci-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  color: var(--gold);
}

.ci-label {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.ci-val {
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-map {
  background: var(--card);
  border: 1px solid var(--border2);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
select {
  background: var(--card);
  border: 1px solid var(--border2);
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.87rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.22s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select option {
  background: #141210;
}

::placeholder {
  color: var(--muted2);
}

.btn-submit {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 13px 40px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  align-self: flex-start;
  font-family: var(--sans);
}

.btn-submit:hover {
  background: var(--gold-lt);
}

.btn-submit.sent {
  background: var(--gold-dk);
  cursor: default;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.faq-item {
  background: var(--card);
  overflow: hidden;
}

.faq-question {
  padding: 19px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.22s;
  font-weight: 500;
  font-size: 0.91rem;
  user-select: none;
  gap: 16px;
}

.faq-question:hover {
  background: var(--card2);
}

.faq-arrow {
  color: var(--gold);
  font-size: 1.15rem;
  transition: transform 0.32s;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
  font-weight: 300;
  padding: 0 26px 20px;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 250px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--surface);
  padding: 58px var(--px) 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 44px;
}

.footer-logo-img {
  height: 42px;
  margin-bottom: 16px;
  display: block;
}

.footer-fallback-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 270px;
}

.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
  font-family: var(--sans);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   ADVANCED 3D & ANIMATION EFFECTS
══════════════════════════════════════════ */

/* Enhanced floating animation with 3D depth */
@keyframes float-3d-enhanced {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  25% {
    transform: translate3d(30px, -40px, 50px) rotateX(8deg) rotateY(10deg) rotateZ(3deg);
  }
  50% {
    transform: translate3d(-20px, 20px, -30px) rotateX(-5deg) rotateY(-8deg) rotateZ(-2deg);
  }
  75% {
    transform: translate3d(15px, -15px, 40px) rotateX(6deg) rotateY(12deg) rotateZ(2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
}

/* Smooth parallax scroll effect */
@keyframes parallax-scroll {
  0% {
    transform: translateY(0px) translateZ(-50px);
  }
  50% {
    transform: translateY(-30px) translateZ(0px);
  }
  100% {
    transform: translateY(0px) translateZ(-50px);
  }
}

/* Floating glow pulse */
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.6));
  }
}

/* Blob morphing animation */
@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate3d(20px, -30px, 50px) scale(1.1) rotate(120deg);
  }
  66% {
    border-radius: 70% 30% 40% 60% / 40% 70% 60% 30%;
    transform: translate3d(-20px, 30px, -30px) scale(0.95) rotate(240deg);
  }
}

/* Staggered fade up with depth */
@keyframes stagger-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px) translateZ(-50px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg);
  }
}

/* Wave ripple effect */
@keyframes wave-ripple {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -100px, 0) scale(1.5);
    opacity: 0;
  }
}

/* Click ripple effect for buttons */
@keyframes ripple-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Apply enhanced float animation to float-3d elements */
.float-3d {
  animation: float-3d-enhanced 8s ease-in-out infinite both;
  transform-style: preserve-3d;
}

/* Enhanced blob animations */
.blob-3d {
  animation: blob-morph 15s ease-in-out infinite alternate, glow-pulse 4s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.blob-1 {
  animation: blob-morph 18s ease-in-out infinite alternate, glow-pulse 4.5s ease-in-out infinite 0.5s;
}

.blob-2 {
  animation: blob-morph 16s ease-in-out infinite alternate, glow-pulse 4s ease-in-out infinite 1s;
  animation-delay: -3s, -2s, 0s;
}

/* 3D Grid enhanced perspective */
.hero-grid-3d {
  perspective: 2000px;
  transform-style: preserve-3d;
}

.hero-grid-3d::after {
  animation: parallax-scroll 20s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Radial glows with animation */
.hero-radial {
  animation: glow-pulse 6s ease-in-out infinite;
  transform: translateZ(20px);
}

.hero-radial2 {
  animation: glow-pulse 5s ease-in-out infinite;
  transform: translateZ(-20px);
}

/* Vertical lines with wave effect */
.hero-vline {
  animation: wave-ripple 3s ease-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4));
}

/* Staggered reveal for hero elements */
.hero-eyebrow {
  animation: stagger-fade-up 0.8s 0s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  animation: stagger-fade-up 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub {
  animation: stagger-fade-up 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
  animation: stagger-fade-up 0.8s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stats {
  animation: stagger-fade-up 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Enhanced reveal animation with depth */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, -50px) rotateX(8deg) rotateY(2deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
}

/* Service cards with enhanced 3D hover */
.service-card {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.service-card:hover {
  transform: perspective(1200px) translate3d(0, -15px, 40px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, 4deg)) rotateZ(0deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.svc-num {
  transition: color 0.4s, transform 0.4s;
  transform-style: preserve-3d;
}

.service-card:hover .svc-num {
  transform: rotateY(15deg) translateZ(20px);
  color: rgba(201, 168, 76, 0.35);
}

/* Price cards with enhanced 3D */
.price-card {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.price-card:hover {
  transform: translateY(-15px) perspective(1200px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, 3deg)) translateZ(30px) scale(1.01);
  box-shadow: 0 30px 60px rgba(201, 168, 76, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Process steps with 3D depth */
.process-step {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: background 0.3s, transform 0.4s;
}

.process-step:hover {
  transform: perspective(1000px) translate3d(0, -8px, 25px) rotateX(3deg);
}

.step-num {
  transition: color 0.3s, transform 0.4s;
  transform-style: preserve-3d;
}

.process-step:hover .step-num {
  transform: rotateY(12deg) translateZ(15px);
  color: rgba(201, 168, 76, 0.3);
}

/* Testimonial cards with 3D effect */
.testi-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: background 0.3s, transform 0.4s;
}

.testi-card:hover {
  transform: perspective(1000px) translate3d(0, -8px, 20px) rotateX(2deg) rotateY(1deg);
}

/* Metric boxes with 3D depth */
.metric-box {
  perspective: 800px;
  transform-style: preserve-3d;
  transition: background 0.3s, transform 0.4s;
}

.metric-box:hover {
  transform: perspective(800px) translate3d(0, -8px, 15px) rotateX(2deg);
}

.metric-val {
  transition: color 0.3s, transform 0.4s;
}

.metric-box:hover .metric-val {
  transform: translateZ(10px) rotateY(8deg);
}

/* Button hover effects with depth */
.btn-gold {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.btn-gold:hover {
  transform: translateY(-3px) perspective(1000px) rotateX(5deg) translateZ(15px);
  box-shadow: 0 20px 40px rgba(201, 168, 76, 0.25), 0 0 30px rgba(201, 168, 76, 0.15);
}

.btn-gold:active {
  transform: translateY(2px) perspective(1000px) rotateX(2deg) translateZ(5px);
}

.btn-ghost {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.btn-ghost:hover {
  transform: translateY(-2px) perspective(800px) rotateX(3deg) translateZ(10px);
}

/* Staggered animations for multiple reveals */
.reveal:nth-child(1) { animation-delay: 0s; }
.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }
.reveal:nth-child(5) { animation-delay: 0.4s; }
.reveal:nth-child(6) { animation-delay: 0.5s; }
.reveal:nth-child(n+7) { animation-delay: 0.6s; }

/* Service card stagger on scroll reveal */
.services-grid .reveal:nth-child(1) { animation-delay: 0s; }
.services-grid .reveal:nth-child(2) { animation-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { animation-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { animation-delay: 0.1s; }
.services-grid .reveal:nth-child(5) { animation-delay: 0.2s; }
.services-grid .reveal:nth-child(6) { animation-delay: 0.3s; }

/* Pricing card stagger */
.pricing-grid .reveal:nth-child(1) { animation-delay: 0s; }
.pricing-grid .reveal:nth-child(2) { animation-delay: 0.15s; }
.pricing-grid .reveal:nth-child(3) { animation-delay: 0.3s; }

/* ══════════════════════════════════════════
   TEXT & TYPOGRAPHY ANIMATIONS
══════════════════════════════════════════ */

/* Animated underline for headings */
@keyframes underline-expand {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Letter spacing animation */
@keyframes letter-spacing-expand {
  0% {
    letter-spacing: 0em;
  }
  100% {
    letter-spacing: 0.28em;
  }
}

/* Text glow animation */
@keyframes text-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.5), 0 0 40px rgba(201, 168, 76, 0.3);
  }
}

/* Color shift animation */
@keyframes color-shift {
  0%, 100% {
    color: var(--gold);
  }
  50% {
    color: var(--gold-lt);
  }
}

/* Eyebrow animation */
.section-eyebrow span {
  animation: expand-line 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes expand-line {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 32px;
    opacity: 1;
  }
}

.section-eyebrow span:nth-child(odd) {
  animation-delay: 0s;
}

.section-eyebrow span:nth-child(even) {
  animation-delay: 0.2s;
}

.section-eyebrow p {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ══════════════════════════════════════════
   BUTTON & CTA ANIMATIONS
══════════════════════════════════════════ */

/* Pulse glow effect for buttons */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
  }
}

/* Button shine effect */
@keyframes button-shine {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Button glow on hover */
@keyframes button-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(201, 168, 76, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.8));
  }
}

/* Enhanced button animations */
.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  animation: button-glow-pulse 2s ease-in-out;
}

.btn-ghost {
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
  transition: left 0.5s;
}

.btn-ghost:hover::before {
  left: 100%;
}

/* ══════════════════════════════════════════
   MARQUEE ENHANCED ANIMATIONS
══════════════════════════════════════════ */

.marquee-track {
  animation: marquee 36s linear infinite;
}

.marquee-item {
  transition: transform 0.3s, color 0.3s;
}

.marquee-item:hover {
  transform: scale(1.08) translateY(-3px);
  color: var(--gold-lt);
}

.marquee-item span {
  animation: rotate-diamond 3s linear infinite;
  display: inline-block;
}

@keyframes rotate-diamond {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

/* ══════════════════════════════════════════
   HEADING & TEXT ANIMATIONS
══════════════════════════════════════════ */

h2 {
  position: relative;
}

h2 em {
  animation: color-shift 3s ease-in-out infinite;
}

.hero h1 em {
  animation: color-shift 2.5s ease-in-out infinite;
}

/* Section heading reveal animation */
.section-eyebrow + h2 {
  animation: heading-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes heading-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scaleY(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* Process step hover text animation */
.process-step h3 {
  transition: all 0.3s;
}

.process-step:hover h3 {
  color: var(--gold);
  transform: translateX(4px);
}

/* Service card title animation */
.service-card h3 {
  transition: all 0.3s;
}

.service-card:hover h3 {
  color: var(--gold-lt);
}

/* ══════════════════════════════════════════
   STAT & NUMBER ANIMATIONS
══════════════════════════════════════════ */

@keyframes number-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

.stat-num {
  animation: number-bounce 2s ease-in-out infinite;
  animation-delay: var(--stat-delay, 0s);
}

.hero-stats > div:nth-child(1) .stat-num {
  --stat-delay: 0s;
}

.hero-stats > div:nth-child(2) .stat-num {
  --stat-delay: 0.2s;
}

.hero-stats > div:nth-child(3) .stat-num {
  --stat-delay: 0.4s;
}

.hero-stats > div:nth-child(4) .stat-num {
  --stat-delay: 0.6s;
}

.metric-val {
  animation: number-bounce 2.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   CARD NUMBER ANIMATIONS
══════════════════════════════════════════ */

.svc-num {
  animation: float-3d-enhanced 8s ease-in-out infinite;
}

.step-num {
  animation: float-3d-enhanced 7s ease-in-out infinite 0.3s;
}

/* ══════════════════════════════════════════
   LINK & INTERACTIVE ANIMATIONS
══════════════════════════════════════════ */

.nav-links li a {
  position: relative;
}

.nav-links li a:hover {
  animation: link-pulse 0.4s ease-out;
}

@keyframes link-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

footer a {
  transition: all 0.3s;
}

footer a:hover {
  color: var(--gold);
  transform: translateX(2px);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

/* ══════════════════════════════════════════
   FEATURED TAG ANIMATION
══════════════════════════════════════════ */

.featured-tag {
  animation: badge-float 2s ease-in-out infinite;
}

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

/* ══════════════════════════════════════════
   LIST & FEATURE ANIMATIONS
══════════════════════════════════════════ */

.price-features li {
  animation: slide-in-left 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes slide-in-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.price-features li:nth-child(1) { animation-delay: 0.1s; }
.price-features li:nth-child(2) { animation-delay: 0.2s; }
.price-features li:nth-child(3) { animation-delay: 0.3s; }
.price-features li:nth-child(4) { animation-delay: 0.4s; }
.price-features li:nth-child(5) { animation-delay: 0.5s; }
.price-features li:nth-child(6) { animation-delay: 0.6s; }

.why-feat {
  animation: slide-in-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.why-feat:nth-child(1) { animation-delay: 0.1s; }
.why-feat:nth-child(2) { animation-delay: 0.3s; }
.why-feat:nth-child(3) { animation-delay: 0.5s; }

/* Bullet point animation */
.feat-bullet {
  animation: bullet-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes bullet-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.why-feat:nth-child(1) .feat-bullet { animation-delay: 0.3s; }
.why-feat:nth-child(2) .feat-bullet { animation-delay: 0.5s; }
.why-feat:nth-child(3) .feat-bullet { animation-delay: 0.7s; }

/* ══════════════════════════════════════════
   CTA BAND ANIMATIONS
══════════════════════════════════════════ */

.cta-band h2 {
  animation: heading-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.cta-band > p {
  animation: slide-in-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.cta-actions {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   TESTIMONIAL ANIMATIONS
══════════════════════════════════════════ */

.testi-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testi-stars {
  animation: star-shimmer 2s ease-in-out infinite;
}

@keyframes star-shimmer {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.testi-quote {
  transition: all 0.3s;
}

.testi-card:hover .testi-quote {
  color: var(--white);
  transform: scale(1.02);
}

.testi-divider {
  transition: all 0.3s;
}

.testi-card:hover .testi-divider {
  width: 60px;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
}

/* ══════════════════════════════════════════
   FORM ANIMATIONS & ENHANCEMENTS
══════════════════════════════════════════ */

/* Floating label animation keyframes */
@keyframes floating-label {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(-28px);
    opacity: 1;
  }
}

@keyframes label-blur {
  0% {
    color: var(--muted);
  }
  100% {
    color: var(--gold);
  }
}

/* Input glow effect */
@keyframes input-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
  }
  50% {
    box-shadow: 0 0 12px 0 rgba(201, 168, 76, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

/* Form success animations */
@keyframes form-success {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes success-message-slide {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes confetti-particle {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--tx, 100px), var(--ty, -100px), 0) rotateX(360deg) rotateY(360deg);
  }
}

/* Contact item stagger animation */
@keyframes contact-item-slide {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Icon hover effect */
@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(12deg);
  }
}

@keyframes icon-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.04);
  }
  50% {
    box-shadow: 0 0 12px 0 rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.08);
  }
}

/* Form field enhancements */
.form-group {
  position: relative;
}

.form-group label {
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: left center;
  display: block;
  color: var(--muted);
}

.form-group label.floating {
  color: var(--gold);
  transform: translateY(-28px) scale(0.85);
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.2), inset 0 0 6px rgba(201, 168, 76, 0.1);
  animation: input-glow 0.6s ease-out;
}

/* Form success state */
.contact-form.form-success {
  animation: form-success 0.5s ease-out 3.5s forwards;
}

.form-success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(201, 168, 76, 0.95);
  color: #000;
  padding: 32px 48px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  animation: success-message-slide 0.5s ease-out forwards;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 76, 0.3);
}

.form-success-message.show {
  animation: success-message-slide 0.5s ease-out forwards;
}

.form-success-message.hide {
  animation: success-message-slide 0.5s ease-out reverse 3.5s forwards;
}

/* Confetti particles */
.confetti {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  z-index: 999;
  --tx: 0px;
  --ty: 0px;
}

.confetti.animate {
  animation: confetti-particle 2.5s ease-out forwards;
}

/* Enhanced contact items with stagger */
.contact-item {
  opacity: 0;
  animation: contact-item-slide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.contact-item:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-item:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-item:nth-child(4) {
  animation-delay: 0.4s;
}

.contact-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Icon hover effects */
.ci-icon {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-item:hover .ci-icon {
  animation: icon-glow 0.6s ease-out forwards;
  transform: rotate(12deg);
}

/* Enhanced FAQ reveal animations */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 350px;
  opacity: 1;
}

.faq-item.open {
  background: rgba(201, 168, 76, 0.04);
}

.faq-question {
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.faq-question:hover {
  background: var(--card2);
  color: var(--gold-lt);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 1100px
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root {
    --px: 40px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE NAV  ≤ 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --px: 24px;
  }

  /* Show hamburger, hide desktop links & CTA */
  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .section-pad {
    padding: 64px var(--px);
  }

  /* Layout collapses */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-visual {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dm-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .dm-sticky {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
  }

  .process-step {
    border-bottom: 1px solid var(--border2);
  }

  .cta-band {
    padding: 64px var(--px);
  }

  footer {
    padding: 48px var(--px) 24px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 640px
══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --px: 18px;
  }

  h2 {
    font-size: 1.9rem;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stack-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-story-actions {
    flex-direction: column;
  }

  .portfolio-filter {
    flex-direction: column;
    width: 100%;
  }

  .pf-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .pf-btn:last-child {
    border-bottom: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-ghost {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}
