/* ═══════════════════════════════════════════════════════════════════════════
   VRIDDHITECH — "Digital Sunrise" Design System
   Ultimate Edition: 3D + Technical/Futuristic 2D Effects
   
   Effects included:
   - Blueprint dot-grid background
   - Grain/scanline CRT texture
   - Border-trace hover (conic-gradient animation)
   - Glitch-on-hover (RGB split, <200ms)
   - Terminal typing cursor
   - HUD status chips
   - Digit-flip odometer
   - Signal-line connectors
   - Scan-sweep beam
   - Custom crosshair cursor
   ═══════════════════════════════════════════════════════════════ */

/* Needed for border-trace conic-gradient animation */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ──────────────────────────────
   0. CUSTOM PROPERTIES
   ────────────────────────────── */
:root {
  --navy:        #0B1F3A;
  --navy-light:  #132D52;
  --navy-mid:    #0E2647;
  --cream:       #F7F3EC;
  --cream-dark:  #EDE8DF;
  --coral:       #FF6B4A;
  --coral-dark:  #E55A3A;
  --coral-light: #FF8A70;
  --yellow:      #FFC857;
  --yellow-dark: #E6B34E;
  --fog:         #9FB3D1;
  --slate:       #5B6B7F;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --max-width: 1200px;
  --nav-height: 80px;
  --nav-height-condensed: 60px;

  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--cream);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) { outline: none; }


/* ──────────────────────────────
   2. TYPOGRAPHY
   ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: var(--cream); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; margin-bottom: var(--space-xs); }
p  { font-size: clamp(0.95rem, 1.2vw, 1.1rem); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.eyebrow-prompt {
  color: var(--yellow);
  margin-right: 0.3em;
}


/* ──────────────────────────────
   3. LAYOUT
   ────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.section--light { background-color: var(--navy); color: var(--cream); }
.section--dark  { background-color: var(--navy); color: var(--cream); }


/* ──────────────────────────────
   4. BLUEPRINT GRID BACKGROUND
   Subtle dot-grid pattern on dark sections
   ────────────────────────────── */
.blueprint-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(159, 179, 209, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}


/* ──────────────────────────────
   5. GRAIN / SCANLINE OVERLAY
   Subtle CRT texture on dark sections
   ────────────────────────────── */
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(159, 179, 209, 0.02) 2px,
      rgba(159, 179, 209, 0.02) 4px
    );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}


/* ──────────────────────────────
   6. BUTTONS
   ────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-xl);
  transition: all 0.35s var(--ease-out);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--coral);
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  z-index: -2;
  border-radius: inherit;
  transition: background 0.35s var(--ease-out);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--coral-light), var(--coral-dark));
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  border-radius: inherit;
  z-index: -1;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 107, 74, 0.35);
  border-color: var(--coral-light);
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(247, 243, 236, 0.3);
}

.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(247, 243, 236, 0.08);
}

.btn-large { padding: 1rem 2.2rem; font-size: 1.05rem; }

.btn-on-coral {
  background: transparent;
  color: var(--cream);
  border-color: var(--navy);
}

.btn-on-coral::after {
  background: var(--navy);
}

.btn-on-coral:hover::after {
  background: var(--navy-light);
}

.btn-on-coral:hover {
  background: transparent;
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.4);
}

.btn-on-coral::before {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}


/* ──────────────────────────────
   7. NAVIGATION
   ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.4s var(--ease-out);
  background: transparent;
}

.nav--condensed {
  height: var(--nav-height-condensed);
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.logo-mark {
  transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover .logo-mark {
  transform: translateY(-2px) scale(1.08);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fog);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

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

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ──────────────────────────────
   8. GLITCH-ON-HOVER
   Quick RGB-split (<200ms), logo & headline only
   ────────────────────────────── */
@keyframes glitch-anim {
  0%   { text-shadow: 2px 0 var(--coral), -2px 0 #4A9FFF; clip-path: inset(40% 0 60% 0); }
  20%  { text-shadow: -2px -1px var(--coral), 2px 1px #4A9FFF; clip-path: inset(10% 0 70% 0); }
  40%  { text-shadow: 1px 2px var(--coral), -1px -2px #4A9FFF; clip-path: inset(60% 0 10% 0); }
  60%  { text-shadow: -1px 1px var(--coral), 1px -1px #4A9FFF; clip-path: inset(30% 0 50% 0); }
  80%  { text-shadow: 2px -1px var(--coral), -2px 1px #4A9FFF; clip-path: inset(80% 0 5% 0); }
  100% { text-shadow: none; clip-path: none; }
}

.glitch-hover {
  position: relative;
}

.glitch-hover:hover .logo-text,
h1.glitch-hover:hover .type-target {
  animation: glitch-anim 180ms ease-in-out;
}


/* ──────────────────────────────
   9. HERO SECTION
   ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: calc(var(--nav-height) + 2rem) var(--space-md) var(--space-xl);
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

.hero-fallback.active { display: block; }

.fallback-sunrise {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 900px;
  opacity: 0.8;
}

.hero-fallback::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 200, 87, 0.2) 0%, rgba(255, 107, 74, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
}

/* Terminal typing cursor */
.type-cursor {
  font-family: var(--font-mono);
  color: var(--yellow);
  animation: cursor-blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero h1 {
  margin-bottom: var(--space-md);
  min-height: 2.4em;
}

.hero .eyebrow { color: var(--yellow); }

.hero-subhead {
  color: var(--fog);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fog);
  opacity: 0.7;
}

.trust-number { color: var(--yellow); font-weight: 700; }
.trust-divider { color: var(--fog); opacity: 0.4; margin: 0 0.25rem; }

.hero-gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--cream), transparent);
  z-index: 6;
  pointer-events: none;
}

/* HUD status chips */
.hud-chips {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hud-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--fog);
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.8em;
  border: 1px solid rgba(159, 179, 209, 0.15);
  border-radius: 4px;
  background: rgba(11, 31, 58, 0.5);
  backdrop-filter: blur(4px);
}

.hud-chip--tl { top: 100px; left: 24px; }
.hud-chip--tr { top: 100px; right: 24px; }
.hud-chip--bl { bottom: 140px; left: 24px; }

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
  animation: hud-pulse 2s ease-in-out infinite;
}

@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ──────────────────────────────
   10. SIGNAL-LINE CONNECTORS
   Vertical line between sections with travelling pulse dot
   ────────────────────────────── */
.signal-connector {
  position: relative;
  height: 80px;
  display: flex;
  justify-content: center;
  background: var(--cream);
  z-index: 5;
}

.signal-connector--dark {
  background: var(--navy);
}

.signal-track {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(159, 179, 209, 0.08),
    rgba(159, 179, 209, 0.2) 50%,
    rgba(159, 179, 209, 0.08)
  );
}

.signal-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  top: 0;
  box-shadow: 0 0 12px var(--coral), 0 0 24px rgba(255, 107, 74, 0.3);
  opacity: 0;
}


/* ──────────────────────────────
   11. SCAN-SWEEP LINE
   Horizontal beam that sweeps across a section once on scroll
   ────────────────────────────── */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--coral-light) 20%, var(--yellow) 50%, var(--coral-light) 80%, transparent 100%);
  box-shadow: 0 0 15px var(--coral), 0 0 30px rgba(255, 107, 74, 0.15);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transform: translateX(-100%);
}


/* ──────────────────────────────
   12. SERVICES
   ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.service-card {
  background: rgba(19, 45, 82, 0.85);
  border: 1px solid rgba(159, 179, 209, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow 0.5s var(--ease-out);
  position: relative;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.service-icon {
  margin-bottom: var(--space-md);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 74, 0.15);
  border-radius: var(--radius-md);
  padding: 4px;
}

.service-icon svg { width: 40px; height: 40px; }
.service-card h3 { color: var(--cream); }
.service-card p { color: var(--fog); font-size: 0.92rem; }


/* ──────────────────────────────
   13. BORDER-TRACE HOVER
   Light traces around card border on hover (circuit activation feel)
   ────────────────────────────── */
.card-trace {
  position: relative;
  z-index: 0;
}

.card-trace::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(
    from var(--border-angle),
    transparent 60%,
    var(--coral) 78%,
    var(--yellow) 84%,
    var(--coral) 90%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.card-trace:hover::before {
  opacity: 1;
  animation: border-rotate 2s linear infinite;
}

@keyframes border-rotate {
  to { --border-angle: 360deg; }
}

/* Inner background covers the conic gradient, leaving only the edge visible */
.card-trace::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: inherit;
  z-index: -1;
}

.section--light .card-trace::after { background: var(--navy-light); }


/* ──────────────────────────────
   14. STATS BAND + DIGIT-FLIP
   ────────────────────────────── */
.stats-band { padding: var(--space-xl) 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat { padding: var(--space-md); }

/* Digit-flip odometer */
.digit-flip {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.digit-col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.digit-strip {
  display: flex;
  flex-direction: column;
}

.digit-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  min-width: 0.65em;
}

.digit-static {
  display: inline-block;
  line-height: 1;
  height: 1em;
  color: var(--coral);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fog);
  font-weight: 500;
}


/* ──────────────────────────────
   15. WORK / PORTFOLIO
   ────────────────────────────── */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-btn {
  background: rgba(19, 45, 82, 0.6);
  border: 1px solid rgba(159, 179, 209, 0.2);
  color: var(--fog);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 107, 74, 0.15);
  border-color: var(--coral);
  color: var(--cream);
}

.filter-btn.active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 0 15px rgba(255, 107, 74, 0.4);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: visible;
  background: rgba(19, 45, 82, 0.85);
  border: 1px solid rgba(159, 179, 209, 0.2);
  transition: all 0.4s var(--ease-out);
  position: relative;
  transform-origin: center;
}

.work-card.hide {
  display: none;
}

.work-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.work-image {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.work-image-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-image-bg { transform: scale(1.05); }

.work-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cream);
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-info { padding: 1rem 1rem 1.2rem; }
.work-info h3 { color: var(--cream); margin-bottom: 0.3rem; font-size: 1.05rem; }
.work-info p { color: var(--fog); font-size: 0.85rem; margin-bottom: 0.5rem; line-height: 1.4; }
.work-info p strong { color: var(--yellow); font-weight: 600; }
.work-highlights {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  color: var(--slate);
  font-size: 0.85rem;
}
.work-highlights li {
  margin-bottom: 0.2rem;
}

/* Fix border-trace radius for work cards */
.work-card.card-trace::before {
  border-radius: calc(var(--radius-lg) + 2px);
}

.work-card.card-trace::after {
  border-radius: var(--radius-lg);
}


/* ──────────────────────────────
   16. TESTIMONIAL
   ────────────────────────────── */
.testimonial {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.quote-mark { margin: 0 auto var(--space-sm); }

.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--fog);
}


/* ──────────────────────────────
   17. CTA BAND
   ────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-content h2 { color: #fff; margin-bottom: var(--space-lg); }


/* ──────────────────────────────
   18. FOOTER
   ────────────────────────────── */
.footer {
  background: var(--cream);
  color: var(--slate);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 5;
}

.footer-logo .logo-text { font-size: 1.2rem; color: var(--navy); }
.footer-tagline { font-size: 0.9rem; margin-top: var(--space-xs); color: var(--slate); opacity: 0.8; }

.footer-nav { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-nav a { font-size: 0.9rem; color: var(--slate); transition: color 0.3s; }
.footer-nav a:hover { color: var(--coral); }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-xs); font-size: 0.9rem; }
.footer-contact a { transition: color 0.3s; }
.footer-contact a:hover { color: var(--coral); }

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}


/* ──────────────────────────────
   19. CUSTOM CROSSHAIR CURSOR
   ────────────────────────────── */
.cursor-crosshair {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* Crosshair lines */
.cursor-crosshair .ch-v,
.cursor-crosshair .ch-h {
  position: absolute;
  background: var(--cream);
}

.cursor-crosshair .ch-v {
  width: 1px;
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cursor-crosshair .ch-h {
  width: 20px;
  height: 1px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Center dot */
.cursor-crosshair .ch-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--coral);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Bracket mode [ ] when hovering interactive elements */
.cursor-crosshair.bracket-mode .ch-v,
.cursor-crosshair.bracket-mode .ch-h {
  opacity: 0;
}

.cursor-bracket-l,
.cursor-bracket-r {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.cursor-bracket-l { right: 14px; }
.cursor-bracket-r { left: 14px; }

.cursor-crosshair.bracket-mode .cursor-bracket-l,
.cursor-crosshair.bracket-mode .cursor-bracket-r {
  opacity: 1;
}

.cursor-crosshair.bracket-mode .cursor-bracket-l { transform: translateY(-50%) translateX(-4px); }
.cursor-crosshair.bracket-mode .cursor-bracket-r { transform: translateY(-50%) translateX(4px); }


/* ──────────────────────────────
   20. HERO CONTENT LOADING STATE
   ────────────────────────────── */
.hero-content > *:not(h1) {
  opacity: 0;
}


/* ──────────────────────────────
   20.5 NEW TRUST & CONVERSION SECTIONS
   ────────────────────────────── */

/* Local Trust Strip */
.local-trust-strip {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(159, 179, 209, 0.1);
}
.trust-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fog);
}
.trust-strip-item svg { color: var(--coral); }

/* Process Section */
.process-steps {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}
.process-timeline-line {
  position: absolute;
  top: 0; bottom: 0; left: 32px;
  width: 2px;
  background: rgba(159, 179, 209, 0.1);
  z-index: 1;
}
.process-step {
  position: relative;
  z-index: 2;
  background: var(--navy-light);
  border: 1px solid rgba(159, 179, 209, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-left: 64px;
}
.step-number {
  position: absolute;
  left: -64px;
  top: 24px;
  width: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  background: var(--navy);
  padding: 8px 0;
}
.process-step h3 { color: var(--cream); margin-bottom: 0.5rem; }
.process-step p { color: var(--fog); margin-bottom: 0; }

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  align-items: center;
}
.about-photo-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-bio h2 { margin-bottom: var(--space-md); }
.about-bio p { margin-bottom: var(--space-lg); color: var(--slate); font-size: 1.1rem; }
.credential-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.credential-text { line-height: 1.4; }

/* Testimonials Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}
.quote-mark-small { margin-bottom: 1rem; display: block; }
.testimonial-card blockquote p {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-card cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  font-style: normal;
}

/* Pricing Band */
.pricing-band { padding: var(--space-2xl) 0; text-align: center; }
.pricing-content h2 { margin-bottom: var(--space-sm); }
.pricing-line {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--yellow);
  margin-bottom: var(--space-lg);
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: var(--space-xl);
  max-width: 800px;
}
.faq-item {
  margin-bottom: var(--space-sm);
  background: rgba(19, 45, 82, 0.85);
  border: 1px solid rgba(159, 179, 209, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
}
.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--yellow);
  transition: transform 0.3s var(--ease-out);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--fog);
}

/* CTA Form Styling */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-3xl) 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.cta-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
  color: var(--cream);
}
.cta-form-wrapper {
  background: var(--cream);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
}

/* Footer Adjustments */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-heading {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.contact-link:hover { color: var(--coral); }
.contact-link svg { color: var(--coral); }
.footer-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(159, 179, 209, 0.1);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.footer-form .footer-heading {
  margin-bottom: 1rem;
  color: var(--cream);
}
.simple-contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-input {
  width: 100%;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.15);
  border-radius: 6px;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.form-input::placeholder { color: var(--slate); opacity: 0.7; }
.form-input:focus { outline: none; border-color: var(--coral); background: #ffffff; box-shadow: 0 0 0 2px rgba(255, 107, 74, 0.2); }
.btn-small { padding: 0.7rem 1.5rem; font-size: 0.9rem; margin-top: 0.5rem; }

/* Work Placeholder tag */
.work-placeholder-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
}
.stats-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fog);
  text-align: center;
  margin-top: var(--space-lg);
  opacity: 0.7;
}


/* ──────────────────────────────
   21. RESPONSIVE
   ────────────────────────────── */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .hud-chips { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 31, 58, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s var(--ease-out);
    z-index: 999;
  }

  .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { font-size: 1.5rem; font-family: var(--font-display); color: var(--cream); }
  .nav-cta { display: none; }

  .hero { min-height: 90vh; padding-top: calc(var(--nav-height) + 1rem); }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .trust-line { flex-direction: column; gap: 0.3rem; }
  .trust-divider { display: none; }
  .trust-strip-inner { gap: var(--space-sm); flex-direction: column; text-align: center; }

  .services-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
  .service-card { padding: var(--space-md); }

  .process-timeline-line { display: none; }
  .process-step { margin-left: 0; padding-top: var(--space-2xl); }
  .step-number { left: var(--space-md); top: -20px; }

  .stats-grid { grid-template-columns: 1fr; gap: var(--space-md); }

  .work-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .work-image { height: 200px; }

  .footer-top-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { text-align: center; flex-direction: column; gap: 1rem; }

  .signal-connector { height: 50px; }
  .hud-chips { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-subhead { font-size: 0.95rem; }
  .btn-large { padding: 0.85rem 1.6rem; font-size: 0.95rem; width: 100%; }
}


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

  .hero-3d { display: none !important; }
  .hero-fallback { display: block !important; }

  .type-cursor { animation: none; opacity: 1; }

  .card-trace::before { display: none; }

  .hero-content > * { opacity: 1 !important; }
}


/* ──────────────────────────────
   23. SELECTION & SCROLLBAR
   ────────────────────────────── */
::selection { background: var(--coral); color: #fff; }
::-moz-selection { background: var(--coral); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }
