/* ==================== DESIGN SYSTEM ==================== */
:root {
  /* Colors - Clean, Modern Palette */
  --primary: #0071e3;  /* Apple blue */
  --primary-dark: #0051a2;
  --accent: #5e5ce6;  /* Modern purple */
  --gradient-start: #5e5ce6;
  --gradient-end: #0071e3;
  --text-primary: #1d1d1f;  /* WCAG AA compliant on white (14.47:1) */
  --text-secondary: #6e6e73;  /* WCAG AA compliant on white (4.69:1) */
  --text-light: #86868b;
  --background: #ffffff;
  --surface: #f5f5f7;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --success: #34c759;
  --white: #ffffff;
  --black: #000000;

  /* Typography - Apple-inspired */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes - Refined Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;  /* 17px - better readability */
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.5rem;
  --text-6xl: 5.5rem;
  --text-hero: 4.5rem;  /* 72px - Apple-level hero headlines */

  /* Spacing - Generous Apple-style */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 6rem;
  --space-12: 8rem;
  --space-16: 10rem;
  --space-20: 12.5rem;  /* 200px - Apple hero padding */
  --space-24: 16rem;    /* 256px - Dramatic section breaks */

  /* Border Radius - Modern, Smooth */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-pill: 9999px;

  /* Shadows - Subtle, Professional */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -1px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -2px rgb(0 0 0 / 0.02);
  --shadow-xl: 0 20px 40px -5px rgb(0 0 0 / 0.12), 0 8px 10px -3px rgb(0 0 0 / 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  
  /* NEW: Enhanced Design System for Fixes */
  --background-primary: #ffffff;
  --background-secondary: #f8f9fa;
  --background-accent: #fafafc;
  --card-background: #ffffff;
  --card-border: #e1e4e8;
  
  /* Text Colors with Better Contrast */
  --text-on-light: #1a1a1a;
  --text-on-dark: #ffffff;
  --text-muted: #4a5568;
  
  /* Professional shadows for cards */
  --shadow-card-hover: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-card-professional: 0 2px 12px rgba(0, 0, 0, 0.06);
  
  /* Logo sizing - Corporate standard */
  --logo-height: 70px;
  --nav-height: 90px;
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enhanced focus indicators for accessibility */
*:focus {
  outline: 3px solid #0071e3;
  outline-offset: 2px;
  transition: outline 0.15s ease;
}

/* Specific focus styles for interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #0071e3;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 4px #0071e3;
}

/* Enhanced focus for navigation links */
.nav-link:focus {
  outline: 3px solid #0071e3;
  outline-offset: 4px;
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: 4px;
}

/* Focus for buttons */
.btn:focus,
.cta-button:focus,
.secondary-button:focus {
  outline: 3px solid #ffff00;
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #000000, 0 0 0 5px #ffff00;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: 1.52941;  /* Apple's golden ratio */
  letter-spacing: -0.016em;
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

/* Performance optimizations */
img {
  loading: lazy;
  decoding: async;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Font display optimization */
@font-face {
  font-display: swap;
}

/* Lazy loading for background images */
.lazy-bg {
  background-image: none !important;
  transition: background-image 0.3s ease;
}

.lazy-bg.loaded {
  background-image: var(--bg-image) !important;
}

/* CSS Containment for better rendering performance */
.hero,
.section,
.service,
.card {
  contain: layout style paint;
}

/* GPU acceleration for frequently animated elements */
.btn,
.card,
.logo,
.hamburger {
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize font rendering */
.hero h1,
.hero p {
  text-rendering: optimizespeed;
}

/* Reduce reflow by using flexbox efficiently */
.hero-buttons,
.nav-menu,
.grid {
  contain: layout;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.0625;
  letter-spacing: -0.009em;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.028em;
  line-height: 1.05;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.024em;
  line-height: 1.08;
}

h3 {
  font-size: var(--text-3xl);
  letter-spacing: -0.019em;
  line-height: 1.1;
}

h4 {
  font-size: var(--text-2xl);
  letter-spacing: -0.016em;
}

h5 {
  font-size: var(--text-xl);
  letter-spacing: -0.014em;
}

h6 {
  font-size: var(--text-lg);
  letter-spacing: -0.012em;
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;  /* POLISH: Tighter line height for better density */
  letter-spacing: -0.003em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-6) 0;  /* POLISH: 48px - Tighter sections for cohesive layout */
  position: relative;
}

.section-subtitle {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  font-weight: var(--font-weight-regular);
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ==================== COMPONENTS ==================== */

/* Buttons - Apple Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82353rem 1.76471rem;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.01em;
  line-height: 1.17648;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-width: 28px;
  position: relative;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: scale(1.015);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.015);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  transform: translate3d(0, -2px, 0);
}

/* ==================== PREMIUM CTA BUTTONS (Apple Standard) ==================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;  /* Apple-standard large touch target */
  padding: 0 40px;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.5);
  text-decoration: none;
  color: var(--white);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.secondary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.secondary-button:hover::before {
  left: 0;
}

.secondary-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
  text-decoration: none;
  border-color: var(--primary);
}

.secondary-button:active {
  transform: translateY(0);
}

/* 3D Button Effect (Optional Enhancement) */
.button-3d {
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.button-3d:hover {
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4), 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Cards - Clean Apple Style */
.card {
  background-color: var(--background);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.05) 0%, rgba(0, 113, 227, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.card:hover::after {
  opacity: 1;
}

/* Grid System - Modern Layout */
.grid {
  display: grid;
  gap: 1.5rem;  /* POLISH: 24px - Tighter grid spacing */
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* POLISH: Equal height cards in grids */
.grid-3 > *,
.services-grid > *,
.approach-grid > *,
.values-grid > *,
.stats-grid > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all var(--transition-base);
  width: 100%;
  min-height: var(--nav-height);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  height: var(--nav-height);
}

nav.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.8rem var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo-image {
  height: 70px !important;  
  width: auto !important;
  max-width: 280px !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: all var(--transition-base);
  filter: contrast(1.1) brightness(1.02);
  display: inline-block;
  vertical-align: middle;
}

/* Apple-style logo hover effect */
.logo:hover .logo-image {
  opacity: 0.8;
  transform: scale(1.02);  /* Subtle scale */
}

/* Responsive logo sizing - maintain proper height */
@media (width <= 768px) {
  .logo-image {
    height: 55px !important;
    width: auto !important;
    max-width: 220px !important;
  }
}

@media (width <= 480px) {
  .logo-image {
    height: 45px !important;
    width: auto !important;
    max-width: 180px !important;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  position: relative;
  opacity: 1; /* Remove transparency for better contrast */
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary);
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  opacity: 1;
  font-weight: var(--font-weight-semibold);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-base);
}

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

.nav-link.active::after {
  width: 100%;
  background-color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
  transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: var(--background);
  padding: var(--space-12) 0;  /* OPTIMIZED: 96px - Reduced from 200px for better UX */
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;  /* OPTIMIZED: Reduced from 70vh */
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, var(--surface) 0%, transparent 70%);
  opacity: 0.4;  /* Reduce gradient intensity for modern, subtle look */
  pointer-events: none;
}

/* Hero with background image variations */
.hero-with-bg {
  min-height: 65vh;  /* OPTIMIZED: Reduced from 85vh for better page flow */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.95) 0%, rgba(0, 113, 227, 0.92) 100%);
  z-index: 1;
}

.hero-with-bg .container {
  position: relative;
  z-index: 2;
}

.hero-with-bg h1,
.hero-with-bg .hero-subtitle,
.hero-with-bg p {
  color: var(--white) !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-with-bg .cta-button {
  background: var(--white);
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-with-bg .cta-button:hover {
  background: var(--surface);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.hero-with-bg .secondary-button {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-with-bg .secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* NEW: Clean hero patterns for better contrast */
.hero-clean {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--background-primary);
  position: relative;
  overflow: hidden;
}

.hero-clean::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 50%;
  height: 140%;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.hero-clean .container {
  position: relative;
  z-index: 2;
}

.hero-clean h1 {
  color: var(--text-on-light);
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  text-shadow: none;
}

.hero-clean .hero-subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--space-6);
  text-shadow: none;
}

.hero-clean .cta-button {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  font-weight: var(--font-weight-semibold);
}

.hero-clean .cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-clean .secondary-button {
  background: var(--background-primary);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: var(--font-weight-medium);
}

.hero-clean .secondary-button:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Specific hero backgrounds - High quality Unsplash images */
.hero-home {
  background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=2070&auto=format&fit=crop');
}

.hero-about {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
}

.hero-services {
  background-image: url('https://images.unsplash.com/photo-1504639725590-34d0984388bd?q=80&w=2074&auto=format&fit=crop');
}

.hero-portfolio {
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop');
}

/* CRITICAL FIX: Enhanced overlay for portfolio hero to ensure text readability */
.hero-portfolio::before {
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.96) 0%, rgba(0, 113, 227, 0.94) 100%) !important;
}

.hero-contact {
  background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=2069&auto=format&fit=crop');
}

.hero h1 {
  font-size: clamp(3rem, 7vw, var(--text-hero));  /* 72px on desktop - Apple standard */
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.035em;  /* Tight tracking for impact */
  line-height: 1.1;  /* Compact for drama */
  color: var(--text-primary);
  margin-bottom: var(--space-6);  /* More breathing room */
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.5;  /* POLISH: Improved readability from 1.3333 */
  font-weight: var(--font-weight-regular);
  font-family: var(--font-system);  /* POLISH: Ensure consistent font */
  letter-spacing: -0.009em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

.hero-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ==================== BACKGROUND SECTIONS ==================== */
.section-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--space-16) 0;
}

.section-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 247, 0.93) 100%);
  z-index: 1;
}

.section-with-bg .container {
  position: relative;
  z-index: 2;
}

/* Dark overlay for better text contrast */
.section-dark-bg::before {
  background: linear-gradient(135deg, rgba(29, 29, 31, 0.94) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.section-dark-bg h2,
.section-dark-bg h3,
.section-dark-bg p {
  color: var(--white);
}

/* Background image variations */
.bg-analytics {
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop');
}

.bg-collaboration {
  background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?q=80&w=2070&auto=format&fit=crop');
}

.bg-technology {
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop');
}

.bg-office {
  background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=2069&auto=format&fit=crop');
}

.bg-real-estate {
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2073&auto=format&fit=crop');
}

.bg-finance {
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop');
}

/* ==================== SERVICES SECTION ==================== */
.services {
  background-color: var(--background);
  position: relative;
}

.services h2 {
  text-align: center;
  margin-bottom: var(--space-10);
  font-size: var(--text-4xl);
  letter-spacing: -0.024em;
}

/* CRITICAL FIX: Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* FIXED: Force 2 columns on desktop */
  gap: 2rem;  /* POLISH: 32px - Tighter card spacing */
  max-width: 1200px;
  margin: 0 auto;
}

/* Make the last card span full width when odd number of cards */
.services-grid > .service-card-detailed:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 600px;
  justify-self: center;
}

/* Make grid responsive */
@media (width <= 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;  /* POLISH: 24px on mobile */
  }
}

.service-card {
  text-align: center;
  padding: 24px;  /* POLISH: 24px - Denser, cleaner appearance */
  background: var(--background);
  border-radius: 16px;  /* Larger radius for premium feel */
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
}

.service-card:hover {
  transform: translateY(-4px);  /* Consistent dramatic lift */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Premium hover shadow */
  border-color: var(--border);
}

/* Service cards with image backgrounds */
.service-card-with-image {
  min-height: 450px;
  background-size: cover;
  background-position: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card-with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(29, 29, 31, 0.95) 0%, transparent 60%);
  z-index: 1;
}

.service-card-with-image .service-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: var(--white);
}

.service-card-with-image h3,
.service-card-with-image p {
  color: var(--white);
}

.service-card-with-image .service-icon {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* NEW: Modern service cards with better separation */
.service-card-modern {
  background: var(--card-background) !important;
  background-image: none !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-professional);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}

.service-card-modern .service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card-modern .service-card-content {
  padding: var(--space-6);
  background: var(--card-background);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-modern .service-card-title {
  color: var(--text-on-light);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card-modern .service-card-description {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-card-modern .service-card-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
}

.service-card-modern .service-card-list li {
  color: var(--text-muted);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
}

.service-card-modern .service-card-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  margin-right: var(--space-2);
}

/* Improved contrast for existing service cards */
.service-card-with-image::before {
  background: linear-gradient(to top, rgba(29, 29, 31, 0.98) 0%, rgba(29, 29, 31, 0.4) 60%, transparent 100%);
}

/* Service card backgrounds removed for better readability */
.card-property-analytics,
.card-due-diligence,
.card-custom-saas {
  background-image: none !important;
  background-color: var(--white) !important;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shimmer 4s infinite;
}

.service-icon span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  font-family: var(--font-system);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Service Icon Large - for service page */
.service-icon-large {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-icon-large span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  font-family: var(--font-system);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-icon-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shimmer 4s infinite;
}

.service-card-detailed:hover .service-icon-large {
  transform: scale(1.05);
  transition: transform var(--transition-fast);
}


.service-icon-large.icon-analytics {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-icon-large.icon-credit {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-icon-large.icon-realestate {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-icon-large.icon-collab {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.service-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-system);
  letter-spacing: -0.016em;
  line-height: 1.2;  /* POLISH: Add consistent line height */
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

/* POLISH: Service card paragraph styling */
.service-card p {
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Service page typography fixes */
.service-card-detailed {
  background: var(--background) !important;
  background-image: none !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 650px;  /* OPTIMIZED: Prevent excessive card heights */
  border: 1px solid var(--border-light);
}

.service-card-detailed:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-header {
  padding: var(--space-3);  /* POLISH: 24px - Tighter card header */
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.service-body {
  padding: var(--space-3);  /* POLISH: 24px - Consistent card padding */
  flex: 1;
  background: var(--background);
  overflow-y: auto;  /* Allow scrolling if content exceeds max-height */
}

.service-footer {
  padding: var(--space-2) var(--space-3);  /* POLISH: Compact footer */
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.service-tagline {
  font-size: var(--text-base);
  font-family: var(--font-system);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.service-description {
  font-size: var(--text-base);
  font-family: var(--font-system);
  line-height: 1.52941;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.service-benefits {
  font-size: var(--text-sm);
  font-family: var(--font-system);
  line-height: 1.52941;
  color: var(--text-primary);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.service-benefits li {
  padding-left: 1.5rem;
  margin-bottom: var(--space-2);
  position: relative;
}

.service-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}

.service-technologies {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.tech-badge {
  font-size: var(--text-xs);
  font-family: var(--font-system);
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  display: inline-block;
  margin: 0.25rem;
}

.pricing-info {
  font-size: var(--text-sm);
  font-family: var(--font-system);
  color: var(--text-secondary);
}

/* ==================== ABOUT PAGE ==================== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
}

.about-text h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.about-text p {
  font-size: var(--text-lg);
  line-height: 1.52941;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* Stats Section */
.stats-section {
  background-color: var(--surface);
  padding: var(--space-12) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;  /* POLISH: 24px - Tighter stat card spacing */
  margin-top: var(--space-6);  /* POLISH: Reduced top margin */
}

.stat-item {
  text-align: center;
  padding: 24px;  /* POLISH: 24px - Denser, cleaner stats */
  background: var(--background);
  border-radius: 16px;  /* Larger radius for premium feel */
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
}

.stat-item:hover {
  transform: translateY(-4px);  /* More dramatic lift - Apple style */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Stronger hover shadow */
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* Approach Section */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;  /* POLISH: 24px - Tighter card spacing */
  margin-top: var(--space-6);  /* POLISH: Reduced top margin */
}

.approach-card {
  padding: 24px;  /* POLISH: 24px - Denser, cleaner appearance */
  background: var(--background);
  border-radius: 16px;  /* Larger radius for premium feel */
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
}

.approach-card:hover {
  transform: translateY(-4px);  /* More dramatic lift - Apple style */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Stronger hover shadow */
}

.approach-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.approach-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.approach-card p {
  font-size: var(--text-base);
  line-height: 1.52941;
  color: var(--text-secondary);
}

/* Founder Section */
.founder-info {
  max-width: 700px;
  margin: var(--space-8) auto 0;
  text-align: center;
  padding: var(--space-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.founder-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
}

.founder-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.founder-title {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.founder-bio {
  font-size: var(--text-base);
  line-height: 1.52941;
  color: var(--text-secondary);
  text-align: left;
}

/* Values Section */
.values-section {
  background-color: var(--surface);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;  /* POLISH: 24px - Tighter card spacing */
  margin-top: var(--space-6);  /* POLISH: Reduced top margin */
}

.value-item {
  padding: 24px;  /* POLISH: 24px - Denser, cleaner appearance */
  text-align: center;
  background: var(--background);
  border-radius: 16px;  /* Larger radius for premium feel */
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
}

.value-item:hover {
  transform: translateY(-4px);  /* More dramatic lift - Apple style */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Stronger hover shadow */
}

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.value-item h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.value-item p {
  font-size: var(--text-base);
  line-height: 1.52941;
  color: var(--text-secondary);
}

.about-image {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-system);
  letter-spacing: -0.028em;
  box-shadow: 0 20px 60px rgba(74, 38, 217, 0.4), 0 8px 24px rgba(0, 0, 0, 0.12);
  min-height: 300px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-image:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 80px rgba(74, 38, 217, 0.5), 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ==================== CTA SECTION ==================== */
.cta {
  background: var(--text-primary);
  color: var(--white);
  text-align: center;
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 1;  /* POLISH: Increased from 0.9 for better heading contrast */
  pointer-events: none;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--space-3);
  font-size: var(--text-4xl);  /* POLISH: Ensure proper heading size */
  font-weight: var(--font-weight-bold);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);  /* POLISH: Subtle shadow for depth */
}

.cta p {
  color: rgb(255 255 255 / 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.cta-button-secondary {
  border-color: var(--white) !important;
  color: var(--white) !important;
  background: transparent;
}

.cta-button-secondary:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Apply animations to elements */
.animate-fadeIn {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.7s var(--transition-smooth) forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.7s var(--transition-smooth) forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.5s var(--transition-smooth) forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Intersection Observer animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-smooth);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover animations for cards */
.hover-lift {
  transition: all var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hover-glow {
  transition: all var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(94, 92, 230, 0.3);
}

/* Button hover effects */
.button-3d {
  position: relative;
  transition: all var(--transition-base);
  transform-style: preserve-3d;
}

.button-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: inherit;
  transform: translateZ(-4px);
  filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.button-3d:hover::after {
  opacity: 0.5;
}

.button-3d:hover {
  transform: translateY(-2px);
}

/* ==================== CREDIBILITY STATS ==================== */
.credibility-section {
  padding: var(--space-8) 0;
  background-color: var(--background-primary);
}

.credibility-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  text-align: center;
}

.stat-item .stat-number {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-system);
  color: var(--primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.stat-item .stat-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-system);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== FOUNDER BIO ==================== */
.founder-bio {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: var(--space-6);
}

.bio-text {
  font-size: var(--text-lg);
  font-family: var(--font-system);
  line-height: 1.8;
  color: var(--text-primary);
}

/* Founder Info Styles - Fixed Typography */
.founder-info {
  max-width: 800px;
  margin: var(--space-8) auto;
  text-align: center;
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-system);
  margin: 0 auto var(--space-3);
}

.founder-name {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-system);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.founder-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  font-family: var(--font-system);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.founder-info .founder-bio {
  font-size: var(--text-sm);
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--surface);
  color: var(--text-primary);
  padding: var(--space-10) 0 var(--space-4);
  border-top: 1px solid var(--border-light);
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* POLISH: Equal width columns */
  gap: var(--space-4);  /* POLISH: Tighter spacing */
  margin-bottom: var(--space-4);
  text-align: left;  /* POLISH: Consistent left alignment */
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.footer-section a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: var(--space-4);
  text-align: center;
  color: rgb(255 255 255 / 0.5);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (width <= 768px) {
  /* Typography */
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Grid adjustments */
  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: var(--space-6) !important;
  }
}

/* Tablet breakpoint for footer */
@media (width <= 1024px) and (width > 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-6) !important;
  }

  .footer-primary {
    grid-column: 1 / -1;
  }

  /* Spacing adjustments */
  .section {
    padding: var(--space-6) 0;
  }

  .hero {
    padding: var(--space-8) 0;
  }
}

@media (width <= 480px) {
  .container {
    padding: 0 var(--space-2);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Skip link for accessibility - Enhanced contrast and visibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000000; /* High contrast black background */
  color: #ffffff; /* White text for maximum contrast (21:1 ratio) */
  padding: 12px 16px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.3s ease;
  z-index: 1000;
  border: 2px solid #ffffff; /* White border for additional definition */
  font-size: 14px;
  line-height: 1.2;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid #ffff00; /* High-contrast yellow outline */
  outline-offset: 2px;
}

.skip-link:hover {
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: underline;
}

/* ==================== FORM STYLES ==================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-system);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgb(52 152 219 / 0.1);
}

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

.form-error {
  color: #e74c3c;
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #e74c3c;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: none;
}

.required {
  color: #e74c3c;
}

/* ==================== PORTFOLIO STYLES ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;  /* POLISH: 24px - Tighter portfolio card spacing */
  margin-top: var(--space-4);  /* POLISH: Reduced top margin */
}

/* Additional Projects Section - More subtle styling */
.additional-projects {
  background-color: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: var(--space-12) 0;
}

.additional-projects h2 {
  font-size: var(--text-3xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.additional-projects .portfolio-card {
  background-color: var(--background);
}

.portfolio-card {
  background: var(--white);
  border-radius: 16px;  /* Larger radius for premium feel */
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
  transition: all var(--transition-base);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);  /* Simplified, consistent lift */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Premium hover shadow */
}

.portfolio-card-image {
  height: 240px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-4xl);
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Portfolio card with background images */
.portfolio-card-image.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.85) 0%, rgba(0, 113, 227, 0.8) 100%);
  z-index: 1;
}

.portfolio-card-image.with-bg > * {
  position: relative;
  z-index: 2;
}

/* Specific portfolio backgrounds */
.portfolio-kanji {
  background-image: url('https://images.unsplash.com/photo-1528360983277-13d401cdc186?q=80&w=2070&auto=format&fit=crop');
}

.portfolio-credit {
  background-image: url('https://images.unsplash.com/photo-1559526324-593bc073d938?q=80&w=2070&auto=format&fit=crop');
}

.portfolio-propvalue {
  background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?q=80&w=2070&auto=format&fit=crop');
}

.portfolio-card-content {
  padding: 24px;  /* POLISH: 24px - Denser, cleaner appearance */
}

.portfolio-card h3 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.tech-tag {
  background: var(--light-gray);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

/* Category Filter */
.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.category-btn {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
}

.category-btn:hover {
  background: var(--border-light);
  border-color: var(--border);
  color: var(--text-primary);
}

.category-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==================== BLOG PAGE STYLES ==================== */

/* Blog Hero Section - Consistent with other hero sections */
.blog-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

/* Blog Content Section */
.blog-content-section {
  padding-top: 0;
  background-color: var(--surface);
}

.blog-hero h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.blog-hero-subtitle {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-weight: var(--font-weight-regular);
}

/* Featured Post Section */
.featured-section {
  padding: var(--space-12) 0;
  background-color: var(--background);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-light);
}

.featured-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.024em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
}

.featured-meta {
  display: flex;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-regular);
}

.featured-excerpt {
  font-size: var(--text-lg);
  line-height: 1.52941;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;  /* POLISH: 24px - Tighter blog card spacing */
  margin-top: var(--space-6);  /* POLISH: Reduced top margin */
}

/* Blog Cards */
.blog-card {
  background: var(--background);
  border-radius: 16px;  /* Larger radius for premium feel */
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);  /* Subtle depth */
}

.blog-card:hover {
  transform: translateY(-4px);  /* More dramatic lift - Apple style */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);  /* Stronger hover shadow */
  border-color: var(--border);
}

.blog-card-image {
  height: 200px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* Project/Blog Visual Styling - Consistent with service icons */
.project-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
}

.project-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-subtitle {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* Featured post image styling */
.featured-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.featured-image .project-visual {
  transform: scale(1.2);
}

/* Blog Card Icon Styling - Integrated Design */
.blog-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.blog-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.blog-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.featured-blog-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.blog-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shimmer 4s infinite;
}

.blog-icon span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  font-family: var(--font-system);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.blog-card-content {
  padding: 24px;  /* POLISH: 24px - Denser, cleaner appearance */
}

.blog-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.blog-card-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.019em;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: var(--text-base);
  line-height: 1.52941;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.read-more {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}

/* Categories Filter */
.categories-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-8) 0;
}

/* Newsletter Section */
.newsletter-section {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, #004085 0%, #3d3ba8 100%);
  text-align: center;
  color: var(--white);
  position: relative;
}

.newsletter-section > .container {
  position: relative;
  z-index: 1;
}

.newsletter-section h2 {
  color: var(--white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
}

.newsletter-section p {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 1;
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
}

.newsletter-subtitle {
  font-size: var(--text-xl);
  opacity: 1;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-regular);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-weight-regular);
}

.newsletter-input:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-btn:active {
  transform: translateY(0);
}

.form-group {
  display: flex;
  gap: var(--space-3);
}

.form-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

/* Responsive adjustments */
@media (width <= 768px) {
  .blog-hero h1 {
    font-size: var(--text-4xl);
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-content h2 {
    font-size: var(--text-3xl);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-filter {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (width <= 480px) {
  .blog-hero h1 {
    font-size: var(--text-3xl);
  }
  
  .blog-hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .blog-card-title {
    font-size: var(--text-xl);
  }
  
  .form-group {
    flex-direction: column;
  }
}

/* Shimmer animation for monogram */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced hover states for all interactive elements */
.footer-section a {
  transition: color 0.2s ease;
}

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

.portfolio-card {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.service-card {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.approach-card {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.value-item {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Enhanced focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.card:focus-within {
  box-shadow: 0 0 0 3px rgba(74, 38, 217, 0.2);
}

/* Reduced motion support */
@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;
  }

  .portfolio-card:hover,
  .service-card:hover,
  .approach-card:hover,
  .value-item:hover {
    transform: none;
  }
}


/* ================================================================
   V2 REDESIGN COMPONENTS — minimal, refined
   ================================================================ */

/* ── Hero V2: clean white, no background image ── */
.hero-v2 {
  background: var(--background);
  min-height: auto;
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-v2::before { content: none; }
.hero-v2 .container { position: relative; z-index: 2; }

.hero-v2 h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-shadow: none;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.hero-v2 .hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-5);
  text-shadow: none;
  font-weight: 400;
}

/* ── Proof strip ── */
.proof-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}
.proof-strip-inner {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 5rem);
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-stat {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.proof-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Section eyebrow label ── */
.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ── Work preview section (homepage) ── */
.work-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.work-section-header { margin-bottom: 2.5rem; }
.work-section-heading {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.work-section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

/* Work preview grid — homepage teaser */
.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.work-preview-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.work-preview-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.work-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.work-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.work-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.work-card-outcome {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}

/* "See all work" link */
.work-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1.75rem;
  transition: gap var(--transition-fast);
}
.work-see-all:hover { gap: 0.625rem; text-decoration: none; }
.work-see-all::after { content: "→"; }

/* ── Principles / How we work ── */
.principles-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--border-light);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}
.principle-number {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.principle-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}
.principle-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── About strip (homepage) ── */
.about-strip {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--border-light);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-strip p {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.about-strip p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Dark CTA section ── */
.cta-dark {
  background: var(--text-primary);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  text-align: center;
}
.cta-dark h2 {
  color: var(--white);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.cta-dark p {
  color: rgba(255,255,255,0.58);
  font-size: 1.0625rem;
  max-width: 460px;
  margin: 0 auto var(--space-5);
  line-height: 1.6;
}
.btn-inverse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  letter-spacing: -0.01em;
}
.btn-inverse:hover {
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
  color: var(--text-primary);
}

/* ── Portfolio page: project grid ── */
.portfolio-hero-v2 {
  padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
}
.portfolio-hero-v2 h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.portfolio-hero-v2 .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.project-grid {
  padding: clamp(4rem, 8vw, 6rem) 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Featured card — full width, horizontal */
.project-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.project-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.project-card--featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem;
}
.project-card--row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.project-card--row:hover {
  border: none;
  box-shadow: none;
  transform: none;
}
.project-card--half {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}
.project-card--half:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Featured card left column */
.project-card-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-monogram {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.project-monogram--blue  { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.project-monogram--green { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.project-monogram--purple{ background: #faf5ff; border-color: #e9d5ff; color: #6b21a8; }
.project-monogram--amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.project-monogram--rose  { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

.project-metric {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.project-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.project-metric-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Card body */
.project-card-body { display: flex; flex-direction: column; }
.project-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,113,227,0.07);
  padding: 0.275rem 0.625rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.875rem;
  align-self: flex-start;
}
.project-name {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  line-height: 1.1;
}
.project-name--sm {
  font-size: 1.375rem;
  margin-bottom: 0.3rem;
}
.project-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.project-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Problem / Solution labels */
.project-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.375rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}
.project-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1.25rem;
  align-self: flex-start;
}
.project-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.project-live:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Quote block */
.project-quote {
  border-left: 2px solid var(--border);
  padding: 0.875rem 1.125rem;
  margin-top: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
}
.project-quote p {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.project-quote cite {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: normal;
}

/* ── Responsive overrides ── */
@media (max-width: 1024px) {
  .project-card--featured {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .work-preview-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-card--featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  .project-card--row { grid-template-columns: 1fr; }
  .proof-strip-inner { gap: 1.5rem 2rem; }
}


/* ================================================================
   V2 FONT + BUTTON OVERRIDES
   ================================================================ */

/* Inter on all v2 pages */
.hero-v2, .proof-strip, .work-section, .principles-section,
.about-strip, .cta-dark, .portfolio-hero-v2, .project-grid,
header nav, footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Slim, dark primary button — replaces Apple pill */
.hero-v2 .cta-button,
.portfolio-hero-v2 ~ * .cta-button {
  background: #111827;
  border-radius: 8px;
  box-shadow: none;
  height: 46px;
  padding: 0 26px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}
.hero-v2 .cta-button:hover {
  background: #374151;
  transform: none;
  box-shadow: none;
}
.hero-v2 .cta-button::before { display: none; }

/* Slim outline secondary button */
.hero-v2 .secondary-button {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  height: 46px;
  padding: 0 26px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
  font-family: 'Inter', sans-serif;
}
.hero-v2 .secondary-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  transform: none;
  box-shadow: none;
}
.hero-v2 .secondary-button::before { display: none; }

/* Inter on hero headings */
.hero-v2 h1,
.portfolio-hero-v2 h1,
.work-section-heading,
.principle-title,
.cta-dark h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.04em;
}
