/* ============================================
   COLUMN DESIGN SYSTEM — Codesmith Systems
   Halftone atlas meets Swiss ledger
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-paper-white: #f6f6f8;
  --color-card-white: #ffffff;
  --color-deep-ink: #011821;
  --color-carbon: #12161e;
  --color-slate: #7c7f88;
  --color-mist: #e3e4e8;
  --color-fog: #a9acb6;
  --color-graphite: #3b3e47;
  --color-deep-indigo: #111a4a;
  --color-ember-orange: #ec652b;
  --color-midnight-teal: #023247;
  --color-forest-teal: #167e6c;
  --color-sky-blue: #7ea7e9;
  --color-pale-cyan: #c1e8ef;
  --color-mint: #44b48b;
  --color-lavender: #9f7aee;

  /* Typography */
  --font-suisse: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Typography — Scale */
  --text-caption: 12px;
  --leading-caption: 1.5;
  --text-body-sm: 14px;
  --leading-body-sm: 1.5;
  --text-body: 16px;
  --leading-body: 1.5;
  --text-body-lg: 18px;
  --leading-body-lg: 1.43;
  --tracking-body-lg: -0.18px;
  --text-subheading: 20px;
  --leading-subheading: 1.38;
  --tracking-subheading: -0.2px;
  --text-heading-sm: 24px;
  --leading-heading-sm: 1.33;
  --tracking-heading-sm: -0.48px;
  --text-heading: 28px;
  --leading-heading: 1.3;
  --tracking-heading: -0.56px;
  --text-heading-lg: 40px;
  --leading-heading-lg: 1.1;
  --tracking-heading-lg: -0.8px;
  --text-display: 60px;
  --leading-display: 1.1;
  --tracking-display: -1.8px;

  /* Typography — Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-72: 72px;
  --spacing-80: 80px;
  --spacing-96: 96px;
  --spacing-100: 100px;
  --spacing-144: 144px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 80px;
  --card-padding: 24px;
  --element-gap: 12px;

  /* Border Radius */
  --radius-nav: 8px;
  --radius-cards: 8px;
  --radius-links: 8px;
  --radius-badges: 9999px;
  --radius-inputs: 8px;
  --radius-buttons: 8px;

  /* Shadows — blue-tinted */
  --shadow-subtle: rgba(17, 26, 74, 0.1) 0px 1px 3px 0px, rgba(17, 26, 74, 0.05) 0px 1px 0px 0px, rgba(255, 255, 255, 0.5) 0px 1px 0px 0px inset, rgba(255, 255, 255, 0.5) 0px 1px 4px 0px inset;
  --shadow-card: rgba(17, 26, 74, 0.1) 0px 1px 3px 0px, rgba(17, 26, 74, 0.05) 0px 1px 0px 0px;
  --shadow-hairline: rgba(87, 90, 100, 0.12) 0px 0px 0px 1px;
  --shadow-xl: rgba(0, 0, 0, 0.02) 0px 40px 32px 0px, rgba(0, 0, 0, 0.03) 0px 22px 18px 0px, rgba(0, 0, 0, 0.03) 0px 12px 10px 0px, rgba(0, 0, 0, 0.04) 0px 7px 5px 0px, rgba(0, 0, 0, 0.07) 0px 3px 2px 0px;
  --shadow-hover: rgba(0, 0, 0, 0.05) 0px 4px 8px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(0, 0, 0, 0.1) 0px 1px 1px 0px;
  --shadow-float: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px, rgb(255, 255, 255) 0px 0px 0px 1px inset;
  --shadow-subtle-3: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset;
  --shadow-subtle-4: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px, rgb(255, 255, 255) 0px 0px 0px 1px inset;
  --shadow-subtle-5: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;

  /* Gradients */
  --gradient-map: linear-gradient(125deg, #d65620 0%, #9f7aee 14%, #4575cd 32%, #71d2f0 50%, #44b48b 68%, #f4df69 85%);
  --gradient-hero-bloom: radial-gradient(29.88% 184.91% at 6.55% -48.11%, #771c86 0%, #111a4a 100%);

  /* Surfaces */
  --surface-canvas: #f6f6f8;
  --surface-card: #ffffff;
  --surface-elevated: #ffffff;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-suisse);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'salt' 2;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-paper-white);
  color: var(--color-deep-ink);
  line-height: 1.5;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.font-suisse { font-family: var(--font-suisse); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* Display — 60px */
.text-display {
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -1.8px;
  font-weight: 300;
}

/* Heading LG — 40px */
.text-heading-lg {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 300;
}

/* Heading — 28px */
.text-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.56px;
  font-weight: 300;
}

/* Heading SM — 24px */
.text-heading-sm {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: -0.48px;
  font-weight: 500;
}

/* Subheading — 20px */
.text-subheading {
  font-size: 20px;
  line-height: 1.38;
  letter-spacing: -0.2px;
  font-weight: 500;
}

/* Body LG — 18px */
.text-body-lg {
  font-size: 18px;
  line-height: 1.43;
  letter-spacing: -0.18px;
}

/* Body — 16px */
.text-body { font-size: 16px; line-height: 1.5; }

/* Body SM — 14px */
.text-body-sm { font-size: 14px; line-height: 1.5; }

/* Caption — 12px */
.text-caption { font-size: 12px; line-height: 1.5; }

/* ============================================
   SECTION LABEL PILL BADGE
   ============================================ */
.pill-badge {
  display: inline-block;
  background: var(--color-pale-cyan);
  color: var(--color-forest-teal);
  border-radius: 9999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Primary Filled Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #001348;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-suisse);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: #f0f0f0;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-primary .arrow {
  opacity: 0.8;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow {
  transform: translateX(2px);
}

/* Ghost / Arrow Link Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-deep-ink);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-suisse);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--color-deep-indigo);
  border-color: var(--color-deep-indigo);
}
.btn-ghost .chevron {
  transition: transform 0.2s;
}
.btn-ghost:hover .chevron {
  transform: translateX(2px);
}

/* ============================================
   CARDS
   ============================================ */

/* Standard Card */
.card {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
}

/* Elevated Card — hover state */
.card-elevated {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

/* Border Card — no shadow, hairline border */
.card-border {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--color-mist);
  box-shadow: none;
}

/* Float Card — heavy shadow for mockups */
.card-float {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

/* ============================================
   CASE STUDY ACCENT CARD
   ============================================ */
.case-study-card {
  background: var(--color-card-white);
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
}
.case-study-card .accent-fill {
  background: var(--color-ember-orange);
  border-radius: 8px;
  padding: 24px;
  color: #ffffff;
}

/* ============================================
   FINANCIAL DATA CARD
   ============================================ */
.data-card {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
}
.data-card .divider {
  border: none;
  border-top: 1px solid var(--color-mist);
  margin: 16px 0;
}

/* ============================================
   HALFTONE DOT MAP
   ============================================ */
.halftone-map {
  position: relative;
  overflow: hidden;
}
.halftone-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-sky-blue) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.15;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cellipse cx='600' cy='300' rx='550' ry='250' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cellipse cx='600' cy='300' rx='550' ry='250' fill='black'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
}

/* ============================================
   SECTION HEADLINE PAIR (two-tone)
   ============================================ */
.headline-pair .first { color: var(--color-deep-ink); }
.headline-pair .second { color: var(--color-fog); }

/* ============================================
   CUSTOMER LOGO STRIP
   ============================================ */
.logo-strip {
  background: var(--color-card-white);
  border-radius: 8px;
  border: 1px solid var(--color-mist);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-strip .logo {
  height: 20px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.2s;
}
.logo-strip .logo:hover { opacity: 0.7; }

/* ============================================
   API CODE SNIPPET BLOCK
   ============================================ */
.code-snippet {
  background: var(--color-graphite);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--color-pale-cyan);
  overflow-x: auto;
}

/* ============================================
   BLOCK QUOTE / TESTIMONIAL
   ============================================ */
.testimonial-quote {
  position: relative;
  padding-left: 0;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 40px;
  font-weight: 300;
  color: var(--color-fog);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-suisse);
}

/* ============================================
   FORM INPUTS
   ============================================ */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-paper-white);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  font-family: var(--font-suisse);
  font-size: 14px;
  color: var(--color-deep-ink);
  transition: all 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--color-deep-indigo);
  box-shadow: 0 0 0 3px rgba(17, 26, 74, 0.08);
}
.input::placeholder { color: var(--color-fog); }

/* ============================================
   FEATURE ICON
   ============================================ */
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--color-paper-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   UTILITIES
   ============================================ */
.container-column {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-grid > *,
.service-about-grid > *,
.about-grid > *,
.contact-grid > *,
.about-split > *,
.project-row > *,
.project-header > *,
.project-actions > *,
.footer-grid > *,
.stats-grid > *,
.process-grid > *,
.testimonials-grid > *,
.stagger > * {
  min-width: 0;
}

.section-gap { padding-top: 56px; padding-bottom: 56px; }

[x-cloak] { display: none !important; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-carbon);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--color-deep-indigo); }

/* Hero-mode nav (transparent over dark hero) */
.nav-link-hero {
  color: rgba(255, 255, 255, 0.7);
}
.nav-link-hero:hover { color: #ffffff; }

/* ============================================
   SERVICE CARD WITH SVG ICON
   ============================================ */
.service-card {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--color-mist);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-map);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-paper-white), rgba(17,26,74,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   THREE.JS CANVAS CONTAINER
   ============================================ */
#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   FLOATING 3D CARD EFFECT
   ============================================ */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}
.card-3d-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.card-3d:hover .card-3d-inner {
  transform: rotateY(5deg) rotateX(2deg);
}

/* ============================================
   GLOW EFFECT
   ============================================ */
.glow-indigo {
  box-shadow: 0 0 20px rgba(17, 26, 74, 0.15), 0 0 60px rgba(17, 26, 74, 0.05);
}
.glow-orange {
  box-shadow: 0 0 20px rgba(236, 101, 43, 0.15), 0 0 60px rgba(236, 101, 43, 0.05);
}

/* ============================================
   ANIMATED GRADIENT BORDER
   ============================================ */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: var(--gradient-map);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
}
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* No-JS fallback — show everything if JS fails */
@media (scripting: none) {
  .fade-up, .fade-in, .slide-left, .slide-right, .scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ============================================
   STAT COUNTER
   ============================================ */
.stat-card {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ============================================
   MARQUEE
   ============================================ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

/* ============================================
   PULSE DOT
   ============================================ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-forest-teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-hero {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.service-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,24,33,0.92) 0%, rgba(17,26,74,0.85) 100%);
}
.service-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 100px !important;
}

.service-feature-card {
  background: var(--color-card-white);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--color-mist);
}

.tech-stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-card-white);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-deep-ink);
  transition: all 0.2s;
}
.tech-stack-pill:hover {
  border-color: var(--color-deep-indigo);
  box-shadow: 0 0 0 3px rgba(17, 26, 74, 0.06);
}

.service-cta-section {
  position: relative;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE — Type Scale
   ============================================ */
@media (max-width: 768px) {
  .text-display { font-size: 40px; letter-spacing: -0.8px; }
  .text-heading-lg { font-size: 28px; letter-spacing: -0.56px; }
  .text-heading { font-size: 24px; letter-spacing: -0.48px; }
  .text-heading-sm { font-size: 20px; letter-spacing: -0.2px; }
  .section-gap { padding-top: 48px; padding-bottom: 48px; }
  .service-hero-content { padding: 32px 20px 56px !important; }
  .service-hero-content h1 { margin-top: 12px !important; }
}

/* ============================================
   RESPONSIVE — Layout
   ============================================ */
@media (max-width: 1024px) {
  .container-column { padding: 0 20px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; align-items: center !important; }
  .hero-grid > div:last-child {
    min-height: 340px !important;
    transform: scale(0.92);
    transform-origin: center;
  }
  .hero-grid > div:last-child .dark-card {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .hero-grid > div:last-child .dark-card:first-child {
    width: min(320px, 100%) !important;
  }
  .service-about-grid,
  .about-grid,
  .contact-grid,
  .about-split,
  .project-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .project-row[style*='rtl'] { direction: ltr !important; }
  .project-row[style*='rtl'] > div { direction: ltr !important; }
  .about-values-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .about-regions { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .bento-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bento-grid > a { grid-column: span 1 !important; }
  .stagger { grid-template-columns: repeat(2, 1fr) !important; }
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .glow-blob { width: 260px !important; height: 260px !important; }
}

@media (max-width: 768px) {
  .container-column { padding: 0 20px !important; }
  main { padding-top: 76px !important; }
  #hero-section { padding-top: 52px !important; }
  .site-nav-wrapper { padding: 12px; }
  .site-nav { padding: 0 12px; }
  .nav-logo-text { font-size: 14px; }
  .services-dropdown {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    transform: translateY(-8px);
  }
  .services-dropdown.is-open { transform: translateY(0); }
  .services-dropdown-grid { grid-template-columns: 1fr !important; }

  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  #hero-section { min-height: auto !important; padding: 120px 0 64px !important; align-items: flex-start !important; }
  #hero-section > div[style*='left:0; width:50%'] { width: 100% !important; background: linear-gradient(to bottom, rgba(3,6,8,0.96) 0%, rgba(3,6,8,0.88) 55%, rgba(3,6,8,0.96) 100%) !important; }
  #hero-section .container-column { padding: 0 20px !important; }
  #hero-section .hero-title-gradient { font-size: 44px !important; line-height: 1.02 !important; letter-spacing: -1.2px !important; margin-bottom: 18px !important; }
  #hero-section .hero-grid > div:first-child > p[style*='font-size:18px'] { font-size: 15px !important; line-height: 1.6 !important; margin-bottom: 24px !important; max-width: 100% !important; }
  #hero-section .hero-grid > div:first-child > div[style*='gap:12px'] { margin-bottom: 28px !important; }
  #hero-section .hero-grid > div:first-child > div[style*='gap:20px'] { gap: 14px !important; }
  #hero-section .hero-visual { min-height: 260px !important; width: 100% !important; display: grid !important; grid-template-columns: 1fr !important; justify-items: center !important; align-items: start !important; gap: 12px !important; padding: 4px 0 0 !important; }
  #hero-section .hero-visual > div[style*='radial-gradient'] { position: absolute !important; inset: -12px 0 auto !important; height: 180px !important; width: 100% !important; }
  #hero-section .hero-visual .card-3d-inner { width: min(320px, 100%) !important; max-width: 100% !important; position: relative !important; transform: none !important; }
  #hero-section .hero-visual .dark-card:not(.card-3d-inner) { position: relative !important; width: min(240px, 100%) !important; max-width: 100% !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; transform: none !important; animation: none !important; box-shadow: 0 14px 36px rgba(0,0,0,0.22) !important; }
  #hero-section .hero-secondary-btn { width: 100% !important; justify-content: center !important; }
  .hero-grid > div:last-child {
    min-height: 320px !important;
    transform: scale(0.88);
  }
  .hero-grid > div:last-child .dark-card:first-child {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .hero-grid > div:last-child .dark-card:nth-child(2) {
    right: -8px !important;
  }
  .hero-grid > div:last-child .dark-card:nth-child(3) {
    left: -8px !important;
  }
  #hero-section .hero-visual { min-height: 230px !important; transform: none !important; }
  #hero-section .hero-visual .dark-card:first-child { left: auto !important; transform: none !important; }
  #hero-section .hero-visual .dark-card:nth-child(2) { right: auto !important; }
  #hero-section .hero-visual .dark-card:nth-child(3) { left: auto !important; }
  .services-grid,
  .testimonials-grid,
  .service-about-grid,
  .about-grid,
  .contact-grid,
  .about-split,
  .project-row,
  .about-values-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stagger { grid-template-columns: 1fr !important; }
  .process-grid.stagger { grid-template-columns: repeat(2, 1fr) !important; }
  body .about-regions { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .process-strip { grid-template-columns: 1fr !important; gap: 12px !important; }
  .process-strip > div {
    border-right: none !important;
    border-bottom: 1px solid var(--color-mist) !important;
    padding-bottom: 16px !important;
  }
  .process-strip > div:last-child { border-bottom: none !important; }
  .process-strip > div > div[style*='right:-6px'] { display: none !important; }
  .project-header {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    margin-bottom: 24px !important;
  }
  .project-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .service-feature-card,
  .card,
  .card-elevated,
  .card-border,
  .case-study-card,
  .data-card {
    padding: 20px !important;
  }
  .text-body,
  .text-body-lg,
  .service-hero-content p {
    max-width: 100% !important;
  }
  body .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 32px !important;
  }
  .footer-grid [style*='grid-template-columns:1fr 1fr'] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .settings-grid,
  .social-links-grid {
    grid-template-columns: 1fr !important;
  }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr) !important; }
  body .service-about-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  body .service-about-grid > * {
    width: 100% !important;
    min-width: 0 !important;
  }
  body .service-about-grid img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  body .service-feature-card h3 {
    font-size: 16px !important;
  }
  body .service-feature-card p {
    font-size: 13px !important;
  }
  .glow-blob { width: 220px !important; height: 220px !important; }
}

@media (max-width: 480px) {
  .site-nav { height: 52px; padding: 0 10px; }
  .nav-logo img { height: 28px; }
  .nav-logo-text { font-size: 13px; }
  .hero-title-gradient { font-size: 36px !important; }
  #hero-section { padding: 112px 0 52px !important; }
  #hero-section .hero-title-gradient { font-size: 40px !important; }
  #hero-section .hero-visual { min-height: 230px !important; gap: 10px !important; }
  #hero-section .hero-visual .dark-card:not(.card-3d-inner) { width: 100% !important; max-width: 260px !important; }
  .hero-grid > div:last-child {
    min-height: 300px !important;
    transform: scale(0.82);
  }
  .hero-grid > div:last-child .dark-card:first-child {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .hero-grid > div:last-child .dark-card:nth-child(2) {
    right: -6px !important;
  }
  .hero-grid > div:last-child .dark-card:nth-child(3) {
    left: -6px !important;
  }
  #hero-section .hero-visual { min-height: 230px !important; transform: none !important; }
  #hero-section .hero-visual .dark-card:first-child { left: auto !important; transform: none !important; }
  #hero-section .hero-visual .dark-card:nth-child(2) { right: auto !important; }
  #hero-section .hero-visual .dark-card:nth-child(3) { left: auto !important; }
  .services-grid,
  .stats-grid,
  .process-grid,
  .stagger {
    grid-template-columns: 1fr !important;
  }
  body .about-regions { grid-template-columns: 1fr !important; }
  .dashboard-stats { grid-template-columns: 1fr !important; }
  .btn-primary,
  .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
  }
}
