/* ═══════════════════════════════════════════════════════════════
   ABYDOS — Premium Development Agency
   Egyptian Mystique × Cutting-Edge Technology
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Core Darks */
  --bg-primary:     #09090B;
  --bg-secondary:   #0F0F13;
  --bg-tertiary:    #16161D;
  --bg-elevated:    #1C1C26;

  /* Gold Accent — The Abydos Signature */
  --gold-primary:   #C7A464;
  --gold-light:     #D4B87A;
  --gold-dark:      #8B7240;
  --gold-glow:      rgba(199, 164, 100, 0.15);

  /* Accent Colors */
  --accent-blue:    #4A7BF7;
  --accent-purple:  #7C5BF0;
  --accent-cyan:    #38BDF8;

  /* Text */
  --text-primary:   #F5F5F7;
  --text-secondary: rgba(245, 245, 247, 0.65);
  --text-tertiary:  rgba(245, 245, 247, 0.35);

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(199, 164, 100, 0.25);

  /* Gradients */
  --gradient-gold:  linear-gradient(135deg, #C7A464, #D4B87A, #8B7240);
  --gradient-mesh:  radial-gradient(ellipse at 20% 50%, rgba(199, 164, 100, 0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(74, 123, 247, 0.06) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(124, 91, 240, 0.05) 0%, transparent 50%);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(5rem, 10vh, 8rem);
  --container-width: 1280px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── BASE STYLES ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  cursor: none;
}

@media (max-width: 768px) {
  a, button, input, textarea, select { cursor: auto; }
}

::selection {
  background: rgba(199, 164, 100, 0.3);
  color: var(--text-primary);
}

/* ── UTILITY CLASSES ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.text-gold {
  color: var(--gold-primary);
}

.large-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(199, 164, 100, 0.3);
  color: transparent;
  line-height: 1;
}

/* ── NOISE OVERLAY ── */
.noise-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── AMBIENT BACKGROUND ── */
@keyframes meshShift {
  0%   { background-position: 0% 50%, 100% 0%, 50% 100%; }
  50%  { background-position: 100% 50%, 0% 100%, 50% 0%; }
  100% { background-position: 0% 50%, 100% 0%, 50% 100%; }
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 600px 600px at 20% 50%, rgba(199, 164, 100, 0.06), transparent),
    radial-gradient(ellipse 800px 800px at 80% 20%, rgba(74, 123, 247, 0.04), transparent),
    radial-gradient(ellipse 600px 600px at 60% 80%, rgba(124, 91, 240, 0.03), transparent);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: meshShift 25s ease-in-out infinite;
  pointer-events: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(199, 164, 100, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s,
              background 0.3s;
}

.cursor-follower.expanded {
  width: 60px;
  height: 60px;
  border-color: rgba(199, 164, 100, 0.2);
  background: rgba(199, 164, 100, 0.05);
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-follower { display: none; }
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 164, 100, 0.2), transparent);
  border: none;
  margin: 0;
}

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── GRADIENT BORDER ── */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(199, 164, 100, 0.4),
    rgba(199, 164, 100, 0.0) 40%,
    rgba(74, 123, 247, 0.0) 60%,
    rgba(74, 123, 247, 0.2)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 2rem;
  border-radius: 0.625rem;
  border: none;
  cursor: none;
  position: relative;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .btn { cursor: pointer; }
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(199, 164, 100, 0.3),
              0 8px 32px rgba(199, 164, 100, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

.btn svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-primary);
  border: 1px solid rgba(199, 164, 100, 0.2);
  border-radius: 100px;
  background: rgba(199, 164, 100, 0.05);
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin-top: 1.25rem;
  font-weight: 300;
}


/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-logo-icon {
  color: var(--gold-primary);
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-primary);
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(199, 164, 100, 0.3);
  border-radius: 0.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.nav-cta:hover {
  background: rgba(199, 164, 100, 0.08);
  border-color: rgba(199, 164, 100, 0.5);
}

.nav-cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--gold-primary);
}

.mobile-menu-cta {
  color: var(--gold-primary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }
  .nav-cta { font-size: 0.8125rem; padding: 0.5rem 1rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2rem;
}

.hero-label-line {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--gold-primary);
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 14rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #F5F5F7 0%, #C7A464 40%, #F5F5F7 60%, #C7A464 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

.hero-title .char {
  display: inline-block;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 55ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: auto;
  padding: 3rem var(--container-padding) 6rem;
}

.hero-metric {
  text-align: center;
}

.hero-metric-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
}

.hero-metric-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gold-primary);
}

.hero-metric-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.375rem;
  letter-spacing: 0.03em;
}

.hero-metric-divider {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator span {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.5); }
}

.scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold-primary), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 3rem;
  }
  .hero-metric-divider {
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
  }
  .scroll-indicator { display: none; }
}


/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

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

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--gold-dark);
  font-size: 0.625rem;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   PROBLEM ARTICULATION
   ═══════════════════════════════════════════ */
.problem {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.problem-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.problem-lead {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.problem-text p:not(.problem-lead) {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.problem-cta {
  margin-top: 2.5rem;
}

.problem-answer {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════
   SERVICES / BENTO GRID
   ═══════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-item {
  background: var(--bg-secondary);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: transform 0.4s var(--ease-out-expo),
              background 0.4s ease;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-4px);
  background: var(--bg-tertiary);
}

.bento-item--feature {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item--wide {
  grid-column: span 3;
}

.bento-icon {
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.bento-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gradient-gold);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item--feature {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item--feature,
  .bento-item--wide {
    grid-column: span 1;
  }
}


/* ═══════════════════════════════════════════
   WORK / CASE STUDIES
   ═══════════════════════════════════════════ */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.work-card-image {
  background: var(--bg-tertiary);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-content {
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.work-card-desc {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.work-card-stats {
  display: flex;
  gap: 2.5rem;
}

.work-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: block;
}

.work-stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-card-image {
    min-height: 180px;
  }
  .work-card-content {
    padding: 1.5rem;
  }
  .work-card-stats {
    gap: 1.5rem;
  }
}


/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */
.process-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  position: relative;
}

.process-step-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(199, 164, 100, 0.3);
  color: transparent;
  line-height: 1;
  min-width: 5rem;
  text-align: center;
}

.process-step-content {
  padding-top: 0.5rem;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-step-desc {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  max-width: 50ch;
}

.process-step-line {
  position: absolute;
  left: 2.5rem;
  bottom: 0;
  width: calc(100% - 2.5rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 164, 100, 0.15), transparent);
}

@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .process-step-number {
    text-align: left;
    min-width: unset;
  }
  .process-step-line {
    left: 0;
    width: 100%;
  }
}


/* ═══════════════════════════════════════════
   TECHNOLOGIES
   ═══════════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.tech-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tech-category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-item {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.375rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tech-item:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(199, 164, 100, 0.05);
}


/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  padding: 2.5rem;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.testimonial-stars {
  color: var(--gold-primary);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial:last-child {
    grid-column: span 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial:last-child {
    grid-column: span 1;
    max-width: none;
  }
}


/* ═══════════════════════════════════════════
   CTA / CONTACT
   ═══════════════════════════════════════════ */
.cta {
  padding: var(--section-padding) 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
}

/* Contact Form */
.contact-form {
  text-align: left;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.625rem;
  padding: 0.875rem 1.125rem;
  color: var(--text-primary);
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(199, 164, 100, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.cta-alt {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.cta-alt p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.cta-email {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  transition: color 0.3s ease;
}

.cta-email:hover {
  color: var(--gold-light);
}

.cta-availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: pulseGreen 2s ease-in-out infinite;
  flex-shrink: 0;
}

.availability-sep {
  color: var(--border-subtle);
}

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


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.footer-tagline {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 300;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  .cta-availability {
    flex-direction: column;
    gap: 0.375rem;
  }
  .availability-sep {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   REVEAL ANIMATION STATES
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* Smooth scrollbar for Lenis */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}
