/* 2026 High-End Custom Website Design Styles */

:root {
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lora', serif;
  --font-mono: 'Space Mono', monospace;
  
  /* "Void" Color Palette */
  --color-bg: #050507;
  --color-bg-alt: #0a0a0f;
  --color-text: #e0e0e0;
  --color-heading: #fff;
  --color-text-muted: #9ca3af;
  --color-primary: #2563eb;
  --color-primary-glow: rgba(37, 99, 235, 0.5);
  --color-accent: #4f46e5;
  --insane-feather-solid: #050507;
  --insane-feather-clear: rgba(5, 5, 7, 0);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  
  --container-width: 1280px;
  --header-height: 80px;
}

html[data-theme="light"] {
  --color-bg: #f0f0f3;
  --color-bg-alt: #e6e6ea;
  --color-text: #202636;
  --color-heading: #111118;
  --color-text-muted: #4b5567;
  --color-primary-glow: rgba(37, 99, 235, 0.24);
  --glass-bg: rgba(17, 17, 24, 0.04);
  --glass-border: rgba(17, 17, 24, 0.12);
  --insane-feather-solid: #f0f0f3;
  --insane-feather-clear: rgba(240, 240, 243, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Handled by Lenis */
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Editorial style often uses lighter weights for large text */
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

.cwd-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.cwd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.cwd-header .cwd-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.cwd-logo-img {
  height: 2.5rem;
  display: block;
}

/* Header Trust Items (replaces nav) */
.cwd-header-trust {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  margin-left: 0.75rem;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 1024px) {
  .cwd-header-trust {
    display: flex;
  }
}

.cwd-header-trust-item {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s;
}

.cwd-header-trust-item:hover {
  color: #fff;
}

/* Subtle separator between items */
.cwd-header-trust-item + .cwd-header-trust-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

/* Legacy nav classes kept for mobile hamburger JS compatibility */
.cwd-nav {
  display: none;
}

.cwd-nav-link {
  display: none;
}

.cwd-btn {
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0; /* Editorial often uses sharp corners or pills, let's go sharp for a change or keep pill? Pill is more UI friendly. Let's keep pill but use Mono font. */
  border-radius: 99px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
}

.cwd-btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 2rem;
  box-shadow: 0 0 20px var(--color-primary-glow);
  font-weight: 700; /* Bolder text */
  letter-spacing: 0.05em;
}

.cwd-btn-primary:hover {
  background: #3b82f6; /* Brighter blue on hover */
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.8); /* Stronger glow */
  transform: translateY(-2px);
}

.cwd-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.cwd-btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--color-text);
}

.cwd-btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

.cwd-btn-header {
  display: none;
}

@media (min-width: 1024px) {
  .cwd-btn-header {
    display: inline-flex;
    padding: 0.72rem 1.55rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }
}

/* Hamburger */
.cwd-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .cwd-hamburger {
    display: none;
  }
}

.cwd-hamburger span {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.cwd-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.cwd-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.cwd-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .cwd-header .cwd-container {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .cwd-logo {
    flex-shrink: 0;
  }

  .cwd-header-actions {
    margin-left: auto;
    margin-right: 0.15rem;
    padding-left: 0.45rem;
    gap: 0.45rem;
  }

  .cwd-header-trust.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(5, 5, 7, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    gap: 1.5rem;
  }
  
  .cwd-header-trust.open .cwd-header-trust-item {
    font-size: 1.25rem;
    color: #fff;
  }

  .cwd-header-trust.open .cwd-header-trust-item + .cwd-header-trust-item::before {
    display: none;
  }
}

/* Trust Bar — now integrated into header, legacy styles removed */

/* Hero Section */
.cwd-hero {
  position: relative;
  height: 100vh;
  max-height: 1080px;
  min-height: 700px;
  display: flex;
  align-items: center;
  /* Account for Header (80px) + Breathing room */
  padding-top: calc(var(--header-height) + 2rem); 
  padding-bottom: 0;
  overflow: hidden;
}

.cwd-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cwd-hero-bg-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050507 100%);
    background-image: url('/hero-bg-gradient-opt.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    animation: pulse-bg 10s ease-in-out infinite alternate;
}

.cwd-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 90%);
}

@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.cwd-hero .cwd-container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 1023px) {
  .cwd-hero .cwd-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 2rem;
  }
}

.cwd-hero-content {
  color: #fff;
  z-index: 2;
  position: relative;
  padding-left: 1rem;
}

/* Hero Badges */
.cwd-hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 600;
  flex-wrap: wrap;
}

.cwd-badge {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}

.cwd-badge-separator {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.cwd-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.cwd-hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  margin-bottom: 2rem;
  max-width: 500px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.cwd-hero-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0;
}

.cwd-hero-body strong {
  color: #fff;
  font-weight: 600;
}

/* New Insight Card for grounding */
.cwd-hero-insight-card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border-left: 2px solid var(--color-primary); /* Accent line */
  max-width: 550px;
}

.cwd-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.cwd-hero-cta .cwd-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cwd-hero-cta-subtext {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* VISUAL AREA - FIXED & CONTAINED */
.cwd-hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0; 
}

.cwd-hero-cards-instruction {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  letter-spacing: 0.03em;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 20;
  white-space: nowrap;
}

.cwd-hero-cards-instruction::after {
  content: '\2193';
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.98);
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 255, 255, 0.25);
  animation: heroInstructionArrow 1.7s ease-in-out infinite;
}

@media (max-width: 1023px) {
  .cwd-hero-cards-instruction {
    font-size: 0.92rem;
    top: 0.25rem;
  }

  .cwd-hero-cards-instruction::after {
    font-size: 1.15rem;
    margin-top: 0.3rem;
  }
}

@keyframes heroInstructionArrow {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0.5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0.5px);
  }
}

.cwd-hero-cards-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    align-items: center;
    padding: 0 10%; /* Breathing room on sides */
    z-index: 5;
    perspective: 1500px;
}

.cwd-hero-cards-container::-webkit-scrollbar {
    display: none;
}

/* Hero Card Navigation Arrows */
.cwd-hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cwd-hero-nav-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.cwd-hero-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cwd-hero-nav-btn.prev {
    left: 1rem;
}

.cwd-hero-nav-btn.next {
    right: 1rem;
}

.cwd-hero-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Hide nav buttons on mobile - touch scrolling is fine there */
@media (max-width: 1023px) {
    .cwd-hero-nav-btn {
        display: none;
    }
}

.cwd-hero-card {
    position: relative;
    flex: 0 0 80%; /* Each card takes 80% of width */
    max-width: 400px; /* Cap width */
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.45), 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(37, 99, 235, 0.55);
    background: #000;
    
    scroll-snap-align: center;
    
    /* The Stacking Magic */
    margin-right: -25%; /* Pull next card behind current one */
    cursor: pointer; /* Add pointer to indicate clickable */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: left bottom;
    will-change: transform;
}

/* Stack Order: First on top, last on bottom */
.cwd-hero-card:nth-child(1) { z-index: 10; }
.cwd-hero-card:nth-child(2) { z-index: 9; }
.cwd-hero-card:nth-child(3) { z-index: 8; }
.cwd-hero-card:nth-child(4) { z-index: 7; }
.cwd-hero-card:nth-child(5) { z-index: 6; }

.cwd-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hover Interactions - transform handled by GSAP, CSS handles non-transform props */
.cwd-hero-card:hover {
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.32);
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .cwd-hero-visual {
        align-items: flex-start;
        padding-top: 4rem;
    }
    
    .cwd-hero-cards-container {
        width: 100vw;
        margin-left: -1.5rem; /* Break out of container padding */
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .cwd-hero-cards-container {
        padding: 0 1.5rem;
    }
    
    .cwd-hero-card {
        flex: 0 0 70%;
        margin-right: -20%;
    }
}

.cwd-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  z-index: 10;
}

@media (min-width: 1024px) {
    .cwd-hero-scroll {
        left: 1.5rem; /* Align left on desktop */
        transform: none;
        flex-direction: row;
    }
}


/* Sections General */
.cwd-section {
  padding: 10rem 0; /* Default breathing room */
  position: relative;
}

.cwd-section-texture {
    position: absolute;
    inset: 0;
    /* Layered subtle textures so sections never read as flat gray */
    background-image:
      url('/section-texture-opt.webp'),
      url('/noise-texture-opt.webp');
    background-size: 400px, 256px;
    background-repeat: repeat, repeat;
    opacity: 0.28;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.cwd-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.1;
}

.cwd-section-desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 4rem;
  max-width: 700px;
  font-weight: 300;
  line-height: 1.6;
}

/* Anti-Agency */
.cwd-section-anti-agency {
  /* Richer but tighter panel behind the “You’re Skeptical” section */
  padding-top: 4.5rem; /* Tightened spacing from previous section */
  padding-bottom: 4rem; /* Reduced from 7rem to close gap with Antidote */
  background:
    radial-gradient(circle at top left, #111827 0%, #050507 45%, #020204 100%);
}

/* Insane Simplicity */
.cwd-section-insane-simplicity {
  padding: 0 0 4rem;
  background: var(--color-bg);
  overflow: hidden;
}

/* ── Logo Reel ── */
.cwd-logo-reel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  /* Fade edges with a mask so logos dissolve in/out */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.cwd-logo-reel-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  will-change: transform;
}

.cwd-logo-reel-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.cwd-logo-reel-item img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* Default: white monochrome via brightness crush + invert */
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.cwd-logo-reel-item img:hover {
  /* Full original color */
  filter: none;
  opacity: 1;
}

@media (max-width: 767px) {
  .cwd-logo-reel {
    padding: 1rem 0;
    margin-bottom: 1rem;
  }

  .cwd-logo-reel-track {
    gap: 3rem;
  }

  .cwd-logo-reel-item {
    height: 44px;
  }

  .cwd-logo-reel-item img {
    max-width: 150px;
  }
}
/* ── End Logo Reel ── */

.cwd-insane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1023px) {
  .cwd-insane-grid {
    grid-template-columns: 1fr;
  }
}

.cwd-insane-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  border-radius: 8px;
}

.cwd-insane-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
  background:
    linear-gradient(to right,
      var(--insane-feather-solid) 0%,
      var(--insane-feather-clear) 2.5%,
      var(--insane-feather-clear) 97.5%,
      var(--insane-feather-solid) 100%),
    linear-gradient(to bottom,
      var(--insane-feather-solid) 0%,
      var(--insane-feather-clear) 2.5%,
      var(--insane-feather-clear) 97.5%,
      var(--insane-feather-solid) 100%);
}

.cwd-insane-image {
  width: 100%;
  height: 120%; /* Taller for parallax */
  object-fit: cover;
  clip-path: inset(100% 0 0 0); /* Initial state */
  will-change: clip-path, transform;
}

.cwd-insane-content {
  padding-left: 2rem;
}

.cwd-insane-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  opacity: 0; /* Initial state for stagger */
  transform: translateY(30px);
}

.cwd-insane-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  opacity: 0; /* Initial state for stagger */
  transform: translateY(30px);
}

.cwd-insane-desc:last-child {
  margin-bottom: 0;
}

.cwd-anti-agency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cwd-anti-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 4px;
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cwd-anti-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.cwd-anti-item h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
  font-style: italic;
}

.cwd-anti-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Expertise Section */
.cwd-section-expertise {
  background: var(--color-bg-alt);
  padding-top: 8rem;
  padding-bottom: 8rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cwd-expertise-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.cwd-expertise-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
  opacity: 0.6; /* Subtle background */
  transform: scale(1.14);
  transform-origin: center center;
  will-change: transform;
}

.cwd-expertise-header {
  margin-bottom: 5rem;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.cwd-expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.cwd-expertise-card {
  background: rgba(20, 20, 30, 0.4); /* More transparent for blur */
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 8px;
  transition: border-color 0.3s ease; /* Remove transform here to let GSAP handle it */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform;
}

.cwd-expertise-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.04);
}

.cwd-expertise-icon {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: inline-flex;
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
}

.cwd-expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cwd-expertise-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Standard */
.cwd-section-standard {
    background: var(--color-bg);
    padding-top: 4rem; /* Reduced from default 10rem to close gap with Anti-Agency section */
    padding-bottom: 2rem; /* Tightened to reduce blank space below CTA */
}

.cwd-standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 6rem; /* Wider gap */
}

.cwd-standard-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cwd-standard-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  display: inline-block;
}

.cwd-standard-item {
    padding-left: 0; /* Removed border left for cleaner look */
}

.cwd-standard-item h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cwd-standard-item p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.cwd-standard-cta {
    margin-top: 3rem;
    text-align: center;
}

/* Portfolio */
.cwd-section-portfolio {
    background: var(--color-bg-alt);
    padding: 3.5rem 0 3rem;
}

/* Case Studies — tighten against portfolio above & CTA below */
.cwd-section-case-studies {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.cwd-project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2.5rem;
}

.cwd-project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cwd-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Card image link wrapper */
.cwd-project-card-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cwd-project-card-bg {
  height: 320px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: grayscale(10%);
}

.cwd-project-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cwd-project-card:hover .cwd-project-card-bg {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Gradient overlay on image area */
.cwd-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Visit badge that appears on hover */
.cwd-project-card-visit {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cwd-project-card:hover .cwd-project-card-visit {
  opacity: 1;
  transform: translateY(0);
}


/* Card content area */
.cwd-project-card-content {
  padding: 2rem 2rem 2.25rem;
}

.cwd-project-card-header {
  margin-bottom: 0.5rem;
}

.cwd-project-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0;
  font-style: italic;
  color: #fff;
}

.cwd-project-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.cwd-project-card-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.cwd-project-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cwd-project-card-actions .cwd-btn-outline {
  display: inline-flex;
  align-items: center;
}

.cwd-project-card-actions .cwd-btn-outline svg {
  flex-shrink: 0;
}

/* Responsive: Stack to single column on smaller screens */
@media (max-width: 560px) {
  .cwd-project-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cwd-project-card-bg {
    height: 220px;
  }
  .cwd-project-card-content {
    padding: 1.5rem;
  }
  .cwd-project-card-header h4 {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════
   Case Studies — Premium Proof Section
   ═══════════════════════════════════════════ */

.cwd-case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

.cwd-case-study {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cwd-case-study:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.08),
                0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Case study hero image area */
.cwd-case-study-image {
    position: relative;
    height: 260px;
    flex-shrink: 0;
    overflow: hidden;
}

.cwd-case-study-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cwd-case-study:hover .cwd-case-study-image img {
    transform: scale(1.06);
}

/* Gradient overlay — stronger at bottom so text is readable */
.cwd-case-study-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 7, 0.1) 0%,
        rgba(5, 5, 7, 0.15) 35%,
        rgba(5, 5, 7, 0.65) 70%,
        rgba(5, 5, 7, 0.92) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Company name + meta overlaid on the photo */
.cwd-case-study-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    z-index: 2;
}

.cwd-case-study-company {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Meta row: industry + divider + location — sits beneath company name on the photo */
.cwd-case-study-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cwd-case-study-industry {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.cwd-case-study-divider {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
}

.cwd-case-study-location {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Card content area — starts right after the image */
.cwd-case-study-content {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Challenge/result narrative */
.cwd-case-study-narrative {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* Stats row */
.cwd-case-study-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.cwd-case-study-stat {
    flex: 1;
}

.cwd-stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cwd-stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

/* Client testimonial quote */
.cwd-case-study-quote {
    position: relative;
    margin: 0 0 1.75rem 0;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-left: 2px solid rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.03);
    border-radius: 0 8px 8px 0;
    flex-grow: 1;
}

.cwd-case-study-quote p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin: 0 0 0.625rem 0;
}

.cwd-case-study-quote cite {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-style: normal;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* CTA link */
.cwd-case-study-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    margin-top: auto;
    cursor: pointer;
    background: none;
    padding: 0.52rem 0.92rem;
    line-height: 1.15;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    white-space: nowrap;
    text-decoration: none;
}

.cwd-case-study-cta svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

/* Responsive: 2-col at medium, 1-col at small */
@media (max-width: 1024px) {
    .cwd-case-studies-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Let the third card span full width and center */
    .cwd-case-study:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .cwd-case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cwd-case-study:last-child {
        max-width: none;
    }
    .cwd-case-study {
        background: rgba(10, 10, 15, 0.6);
        border-color: rgba(255, 255, 255, 0.08);
    }
    .cwd-case-study-image {
        height: 200px;
    }
    .cwd-case-study-image-text {
        padding: 1.25rem 1.5rem;
    }
    .cwd-case-study-company {
        font-size: 1.5rem;
    }
    .cwd-case-study-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    .cwd-case-study-narrative {
        font-size: 0.97rem;
        line-height: 1.8;
        color: rgba(242, 247, 255, 0.9);
    }
    .cwd-stat-value {
        font-size: 2rem;
    }
    .cwd-stat-label {
        font-size: 0.68rem;
        color: rgba(220, 229, 245, 0.86);
    }
    .cwd-case-study-stats {
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .cwd-case-study-quote {
        padding: 1rem 1rem 1rem 1.25rem;
    }
    .cwd-case-study-quote p {
        color: rgba(236, 243, 255, 0.9);
    }
    .cwd-case-study-quote cite {
        color: rgba(187, 201, 225, 0.92);
    }
}

/* Video Testimonials */
.cwd-section-clients {
    background: var(--color-bg);
    overflow: hidden;
    padding: 1.5rem 0 1.5rem;
}

.cwd-section-clients .cwd-section-title {
    margin-bottom: 0.5rem; /* Tighten gap between title and subtitle */
}

.cwd-section-clients .cwd-section-desc {
    margin-bottom: 1.5rem; /* Bring videos up closer to subtitle */
}

.cwd-testimonials-grid {
    display: grid;
    /* 
     * Use a 2x2 grid on large screens so all four testimonials
     * feel balanced and intentional. Tablet and mobile breakpoints
     * below step down to 2 and then 1 column respectively.
     */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 0;
}

/* Card */
.cwd-testimonial-card {
    display: flex;
    flex-direction: column;
}

/* Thumbnail button */
.cwd-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    outline: none;
}

.cwd-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
    filter: brightness(0.85);
}

.cwd-video-thumb:hover img,
.cwd-video-thumb:focus-visible img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Play button */
.cwd-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e91e63;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(233, 30, 99, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.cwd-video-thumb:hover .cwd-video-play,
.cwd-video-thumb:focus-visible .cwd-video-play {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 6px 32px rgba(233, 30, 99, 0.6);
}

/* Duration badge */
.cwd-video-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 2;
}

/* Quote */
.cwd-testimonial-quote {
    margin: 1.25rem 0 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
    font-style: italic;
    border: none;
    padding: 0;
    position: relative;
}

.cwd-testimonial-quote::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #e91e63;
    border-radius: 2px;
    margin-top: 1rem;
}

/* Author */
.cwd-testimonial-author {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

.cwd-testimonial-author strong {
    color: #fff;
    font-weight: 600;
}

/* ──── Video Lightbox Modal ──── */
.cwd-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cwd-video-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.cwd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.cwd-lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 960px;
    z-index: 1;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cwd-video-lightbox[aria-hidden="false"] .cwd-lightbox-content {
    transform: translateY(0) scale(1);
}

.cwd-lightbox-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.cwd-lightbox-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cwd-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2;
}

.cwd-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Prevent body scroll when lightbox is open */
body.cwd-lightbox-open {
    overflow: hidden;
}

/* ──── Responsive: Video Testimonials ──── */
@media (max-width: 1024px) {
    .cwd-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .cwd-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cwd-video-play {
        width: 48px;
        height: 48px;
    }

    .cwd-testimonial-quote {
        font-size: 0.9rem;
    }

    .cwd-lightbox-content {
        width: 95vw;
    }

    .cwd-lightbox-close {
        top: -40px;
    }
}

/* CTA Form */
.cwd-section-cta {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

/* Brighten text over dark hero overlay (match hero section styling) */
.cwd-section-cta .cwd-container {
    position: relative;
    z-index: 1;
}

/* Reduce overlay darkness so text reads bright */
#contact .cwd-hero-overlay {
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 7, 0.4) 90%);
}

.cwd-section-cta .cwd-section-title,
.cwd-section-cta .cwd-section-title .char,
.cwd-section-cta .cwd-section-title .word,
.cwd-section-cta .cwd-section-title .line {
    color: #fff !important;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.cwd-section-cta .cwd-section-desc {
    color: #fff !important;
}

.cwd-cta-form {
    max-width: 700px;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.cwd-cta-form-button-only {
    text-align: center;
    padding-top: 2rem;
    box-shadow: none;
}

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

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

.cwd-cta-form input,
.cwd-cta-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.cwd-cta-form input:focus,
.cwd-cta-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.cwd-cta-form textarea {
    min-height: 150px;
    margin-bottom: 2.5rem;
    resize: vertical;
}

/* Drawer */
.cwd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cwd-drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.cwd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh; /* Better for mobile browsers */
    background: #0a0a0f;
    border-left: 1px solid var(--glass-border);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.cwd-drawer-content {
    margin-top: 3rem;
    padding-bottom: 4rem; /* Ensure space for scrolling to the very bottom */
    flex-grow: 1; /* Allow content to expand */
}

.cwd-drawer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cwd-drawer-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.cwd-drawer-form .cwd-form-group {
    margin-bottom: 1.5rem;
}

.cwd-drawer-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.cwd-drawer-form input,
.cwd-drawer-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.cwd-drawer-form input:focus,
.cwd-drawer-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.05);
}

.cwd-btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.cwd-form-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.cwd-footer {
    background: #000;
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.cwd-footer .cwd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Zone 1: Brand */
.cwd-footer-brand {
    margin-bottom: 2.5rem;
}

.cwd-footer-logo {
    height: 2rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cwd-footer-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

/* Zone 1: Inline Nav */
.cwd-footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cwd-footer-nav-link {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.cwd-footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.cwd-footer-nav-link:hover,
.cwd-footer-nav-link.active {
    color: #fff;
}

.cwd-footer-nav-link:hover::after,
.cwd-footer-nav-link.active::after {
    width: 100%;
}

.cwd-footer-nav-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* Zone 2: About Accordion Panel */
.cwd-footer-about-panel {
    display: none;
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.cwd-footer-about-inner {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.cwd-footer-about-inner p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.cwd-footer-about-inner em {
    font-style: italic;
    color: #fff;
}

/* Zone 3: Legal Bar */
.cwd-footer-legal-bar {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.cwd-footer-address {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #c0c4cc;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cwd-footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #a0a4ac;
    margin-bottom: 0.75rem;
}

.cwd-footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.cwd-footer-legal-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cwd-footer-legal-links a:hover {
    color: var(--color-primary);
}

.cwd-footer-legal-divider {
    color: rgba(255, 255, 255, 0.25);
}

/* Split Text & Animation Helpers */
.split-text {
    opacity: 1; /* GSAP handles opacity */
}

/* Portfolio grid is always visible (no tab panes) */

/* Modal */
.cwd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* Slightly transparent background */
    backdrop-filter: blur(8px);
    z-index: 3000; /* Higher than drawer and header */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.cwd-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.cwd-modal-content {
    width: 90vw; /* Almost full screen width */
    height: 85vh; /* Almost full screen height */
    max-width: 1600px;
    background: transparent;
    overflow-y: auto; /* Enable scrolling for long images */
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Hide scrollbar for cleaner look but keep functionality */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.cwd-modal-content::-webkit-scrollbar {
    display: none;
}

.cwd-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.cwd-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3001;
}

.cwd-modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

/* Case Study Modal — same as portfolio: full-page screenshot, scrollable */
.cwd-case-study-modal-content {
    height: 90vh;
    max-height: 90vh;
    overflow-y: auto;
}

.cwd-case-study-modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: Make close button smaller and position it higher */
@media (max-width: 768px) {
  .cwd-modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
  
  .cwd-modal-close svg {
    width: 18px;
    height: 18px;
  }
}

/* Industries Horizontal Scroll Section */
.cwd-section-industries {
    height: 100vh;
    background: var(--color-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.cwd-industries-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content; /* Allow width to be determined by content */
    will-change: transform;
    padding-right: 10vw; /* Add some padding at the end */
}

.cwd-industry-intro {
    width: calc(800px + 10.5vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.5vw 0 10vw;
    flex-shrink: 0;
}

.cwd-industry-card {
    width: 80vw;
    height: 70vh;
    margin-right: 10vw;
    position: relative;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    will-change: transform;
    /* Initial state for skew effect */
    transform-origin: center center;
}

.cwd-industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cwd-industry-card:hover img {
    transform: scale(1.05);
}

.cwd-industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 3rem;
}

.cwd-industry-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-family: var(--font-heading);
    font-style: italic;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cwd-industry-content p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: #fff;
    line-height: 1.7;
    max-width: 65ch;
}

.cwd-industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        transparent 60%
    );
    z-index: 1;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE-ONLY RESPONSIVE OVERHAUL
   All rules below are mobile-only. Desktop is byte-for-byte
   untouched. Cross-browser: Safari iOS, Chrome Android,
   Samsung Internet, Firefox.
   ═══════════════════════════════════════════════════════════════ */

/* Industries section classes (replaces inline styles for media query overridability) */
.cwd-industries-title {
  font-size: 5vw;
  max-width: 800px;
  color: #fff;
}

.cwd-industries-desc {
  font-size: 1.5rem;
  max-width: 600px;
}

/* ── Reduced Motion Accessibility (all viewports) ── */
@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;
  }
}

/* ─── Tablet & Mobile: ≤1024px ─── */
@media (max-width: 1024px) {
  /* ════════════════════════════════════════════════════════════
     TYPOGRAPHY & PARAGRAPH SPACING
     World-class mobile readability standards
     ════════════════════════════════════════════════════════════ */
  
  /* Ensure proper paragraph spacing for all body text */
  p {
    margin-bottom: 1.25rem;
  }
  
  /* Last paragraph in a container shouldn't have bottom margin */
  p:last-child {
    margin-bottom: 0;
  }
  
  /* Section descriptions need extra breathing room */
  .cwd-section-desc {
    margin-bottom: 2.5rem;
  }
  
  /* Insane Simplicity section paragraphs */
  .cwd-insane-desc {
    margin-bottom: 1.5rem;
  }
  
  .cwd-insane-desc:last-child {
    margin-bottom: 0;
  }
  
  /* Hero body text */
  .cwd-hero-body {
    margin-bottom: 1.25rem;
  }
  
  .cwd-hero-body:last-child {
    margin-bottom: 0;
  }
  
  /* Anti-agency item paragraphs */
  .cwd-anti-item p {
    margin-bottom: 1.25rem;
  }
  
  .cwd-anti-item p:last-child {
    margin-bottom: 0;
  }
  
  /* Standard section paragraphs */
  .cwd-standard-item p {
    margin-bottom: 1.25rem;
  }
  
  .cwd-standard-item p:last-child {
    margin-bottom: 0;
  }
  
  /* Industry content paragraphs */
  .cwd-industry-content p {
    margin-bottom: 1.25rem;
  }
  
  .cwd-industry-content p:last-child {
    margin-bottom: 0;
  }
  
  /* Case study narrative */
  .cwd-case-study-narrative {
    margin-bottom: 2rem;
  }
  
  /* Expertise card paragraphs */
  .cwd-expertise-card p {
    margin-bottom: 1.25rem;
  }
  
  .cwd-expertise-card p:last-child {
    margin-bottom: 0;
  }

  /* ════════════════════════════════════════════════════════════ */

  /* Global Touch Foundations */
  a,
  button,
  input,
  textarea,
  select,
  [role="button"],
  .cwd-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body {
    overscroll-behavior-y: contain;
  }

  /* Content-visibility: skip rendering off-screen sections */
  .cwd-section,
  .cwd-section-insane-simplicity,
  .cwd-section-anti-agency,
  .cwd-section-expertise,
  .cwd-section-standard,
  .cwd-section-clients,
  .cwd-section-portfolio,
  .cwd-section-case-studies,
  .cwd-section-cta,
  .cwd-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }

  /* GPU layer promotion for animated elements */
  .cwd-hero-card,
  .cwd-project-card,
  .cwd-case-study,
  .cwd-expertise-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* ── Safe Area Insets (Notch / Dynamic Island / Gesture Bar) ── */
  .cwd-header {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .cwd-header-trust.open {
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    height: 100vh;
    height: 100dvh;
  }

  .cwd-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .cwd-drawer {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cwd-modal-backdrop {
    padding: calc(2rem + env(safe-area-inset-top)) calc(2rem + env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) calc(2rem + env(safe-area-inset-left));
  }
  
  /* Adjust modal backdrop to account for mobile sticky bar */
  .cwd-modal-backdrop {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
  
  .cwd-modal-content {
    max-height: calc(85vh - 4rem);
  }

  /* ── Hero Section Fixes ── */
  .cwd-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 2rem;
  }

  .cwd-hero .cwd-container {
    height: auto;
  }

  .cwd-hero-visual {
    min-height: 55vh;
    min-height: 55dvh;
  }

  .cwd-hero-cards-container {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    overflow-y: hidden;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Fluid Typography (mobile overrides only) ── */
  .cwd-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .cwd-hero-body {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }

  .cwd-section-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .cwd-insane-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .cwd-insane-desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }

  .cwd-expertise-card h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  }

  .cwd-standard-item h4 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  }

  .cwd-project-card-header h4 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }

  .cwd-case-study-company {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .cwd-stat-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .cwd-drawer-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
  }

  .cwd-industries-title {
    font-size: clamp(2rem, 5vw, 4rem);
  }

  .cwd-industries-desc {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }

  /* ── Insane Simplicity Section ── */
  .cwd-section-insane-simplicity {
    padding-bottom: 2rem;
  }

  .cwd-insane-image-wrapper {
    height: clamp(280px, 60vw, 600px);
  }

  .cwd-insane-content {
    padding-left: 0;
    padding-top: 2rem;
  }

  /* ── Hero tighten ── */
  .cwd-hero {
    padding-bottom: 1rem;
  }

  /* ── Industries Section: Vertical Stack (no GSAP pin) ── */
  .cwd-section-industries {
    height: auto;
    padding: 2.5rem 0;
    overflow: visible;
  }

  .cwd-industries-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 1.5rem;
    gap: 1.25rem;
  }

  .cwd-industry-intro {
    width: 100%;
    height: auto;
    padding: 0;
  }

  .cwd-industry-card {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-right: 0;
  }

  .cwd-industry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cwd-industry-content {
    position: relative;
    margin-top: 180px;
  }

  .cwd-industry-content p {
    max-width: none;
  }

  /* ── Portfolio Grid ── */
  .cwd-project-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  }

  .cwd-project-card-bg {
    height: clamp(200px, 40vw, 320px);
  }

  /* ── Video Thumbnails ── */
  .cwd-video-thumb img {
    width: 100%;
    height: 100%;
  }
}

/* ─── Phone: ≤768px ─── */
@media (max-width: 768px) {

  /* Compact header */
  :root {
    --header-height: 64px;
  }

  .cwd-theme-toggle {
    --toggle-width: 100px;
    --toggle-height: 34px;
    --toggle-padding: 4px;
    --knob-size: 24px;
  }

  .cwd-theme-label {
    font-size: 0.6rem;
  }

  .cwd-insane-image-wrapper {
    height: auto;
    aspect-ratio: 2 / 3;
    max-height: 520px;
    background: #040712;
  }

  .cwd-insane-image {
    height: 100%;
    object-fit: contain;
    object-position: 54% center;
    transform: none !important;
  }

  .cwd-insane-grid {
    gap: 1rem;
  }

  .cwd-insane-content {
    padding-top: 0.5rem;
  }

  .cwd-hero-cards-instruction {
    top: -0.55rem;
  }

  .cwd-hero-cards-instruction::after {
    margin-top: 0.2rem;
  }

  /* 44px minimum tap target (Apple HIG) */
  .cwd-hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Keep instruction text visible on mobile; hide only extra scroll indicator */
  .cwd-hero-scroll {
    display: none;
  }

  /* ── Tight section spacing for mobile ── */
  .cwd-section {
    padding: 2.5rem 0;
  }

  .cwd-section-anti-agency {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .cwd-section-expertise {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .cwd-expertise-header {
    margin-bottom: 1.5rem;
  }

  .cwd-section-standard {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .cwd-section-clients {
    padding: 1rem 0;
  }

  .cwd-section-portfolio {
    padding: 2rem 0 1.5rem;
  }

  .cwd-section-case-studies {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .cwd-section-cta {
    padding-top: 1.5rem;
  }

  .cwd-anti-item {
    padding: 2rem;
  }

  /* CTA safe area + touch target */
  .cwd-section-cta {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }

  .cwd-btn-large {
    min-height: 48px;
    padding: 1rem 2rem;
  }

  .cwd-cta-form {
    padding: 2rem 1.5rem;
  }

  .cwd-cta-form-button-only {
    padding: 2rem 0 0;
  }

  /* ── Footer ── */
  .cwd-footer {
    padding: 3rem 0 2rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .cwd-footer-brand {
    margin-bottom: 2rem;
  }

  .cwd-footer-nav {
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
  }

  .cwd-footer-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .cwd-footer-nav-divider {
    width: 24px;
    height: 1px;
  }

  .cwd-footer-about-panel {
    margin-bottom: 2rem;
  }

  .cwd-footer-about-inner {
    padding: 1.25rem 1.5rem;
  }

  .cwd-footer-legal-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cwd-footer-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─── Small Phone: ≤480px ─── */
@media (max-width: 480px) {

  .cwd-container {
    padding: 0 1rem;
  }

  .cwd-hero-content {
    padding-left: 0;
  }

  .cwd-hero-card {
    margin-right: -15%;
  }

  .cwd-hero-cards-instruction {
    top: -0.85rem;
    white-space: normal;
    padding: 0 1rem;
  }

  .cwd-hero-cards-container {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .cwd-anti-agency-grid {
    grid-template-columns: 1fr;
  }

  .cwd-industry-card {
    height: auto;
    min-height: 0;
    border-radius: 12px;
  }

  .cwd-industry-content {
    padding: 1.25rem 1.5rem;
    margin-top: 140px;
  }

  .cwd-project-card-content {
    padding: 1.5rem;
  }

  .cwd-project-card-actions {
    flex-direction: column;
  }

  .cwd-project-card-actions .cwd-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .cwd-section-industries {
    padding: 2rem 0;
  }

  .cwd-industries-wrapper {
    padding: 0 1rem;
  }
}

/* ════════════════════════════════════════════════════════════
   HEADER PHONE BUTTON
   ════════════════════════════════════════════════════════════ */

.cwd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  padding-left: 1.4rem;
  flex-shrink: 0;
}

.cwd-phone-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

.cwd-phone-icon-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.cwd-phone-icon-btn:active {
  transform: translateY(0);
}

.cwd-phone-icon-btn svg {
  flex-shrink: 0;
  animation: phoneRingSubtle 3s ease-in-out infinite;
}

.cwd-phone-number-text {
  display: none;
}

.cwd-theme-toggle {
  --toggle-width: 118px;
  --toggle-height: 38px;
  --toggle-padding: 5px;
  --knob-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--toggle-width);
  height: var(--toggle-height);
  padding: var(--toggle-padding);
  border-radius: 999px;
  border: 1px solid rgba(149, 165, 192, 0.46);
  background: rgba(26, 32, 48, 0.9);
  color: #cfd6e8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(6, 10, 20, 0.45), 0 6px 18px rgba(4, 8, 20, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cwd-theme-toggle:hover {
  border-color: rgba(169, 183, 208, 0.62);
  box-shadow: inset 0 2px 8px rgba(6, 10, 20, 0.5), 0 8px 22px rgba(4, 8, 20, 0.34);
}

.cwd-theme-toggle:active {
  transform: translateY(1px);
}

.cwd-theme-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: calc(var(--knob-size) + 10px);
  pointer-events: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.92;
}

.cwd-theme-label::before {
  content: 'Dark';
}

.cwd-theme-knob {
  position: absolute;
  top: 50%;
  left: var(--toggle-padding);
  width: var(--knob-size);
  height: var(--knob-size);
  border-radius: 50%;
  background: linear-gradient(180deg, #eff3fb 0%, #d7deee 100%);
  border: 1px solid rgba(133, 146, 173, 0.52);
  box-shadow: 0 3px 10px rgba(9, 13, 25, 0.35);
  transform: translateY(-50%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cwd-theme-icon {
  position: absolute;
  color: #3f4b66;
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.cwd-theme-icon-sun {
  opacity: 0;
  transform: scale(0.82);
}

.cwd-theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.cwd-theme-toggle[aria-pressed="true"] .cwd-theme-label::before {
  content: 'Light';
}

.cwd-theme-toggle[aria-pressed="true"] .cwd-theme-knob {
  transform: translate(calc(var(--toggle-width) - var(--knob-size) - (var(--toggle-padding) * 2)), -50%);
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 100%);
}

.cwd-theme-toggle[aria-pressed="true"] .cwd-theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.cwd-theme-toggle[aria-pressed="true"] .cwd-theme-icon-moon {
  opacity: 0;
  transform: scale(0.82);
}

@keyframes phoneRingSubtle {
  0%, 100% {
    transform: rotate(0deg);
  }
  5%, 15% {
    transform: rotate(-10deg);
  }
  10%, 20% {
    transform: rotate(10deg);
  }
  25% {
    transform: rotate(0deg);
  }
}

/* Mobile: Hide phone button entirely on mobile */
@media (max-width: 1023px) {
  .cwd-phone-icon-btn {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE STICKY BAR (Bottom)
   ════════════════════════════════════════════════════════════ */

.cwd-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(5, 5, 7, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  padding: 0.875rem 1rem;
  padding-bottom: calc(0.875rem + env(safe-area-inset-bottom));
  gap: 0.75rem;
}

/* Show only on mobile */
@media (max-width: 1023px) {
  .cwd-mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.cwd-mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cwd-mobile-phone-btn:active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(0.95);
}

.cwd-mobile-phone-btn svg {
  animation: phoneRingSubtle 3s ease-in-out infinite;
}

.cwd-mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 
    0 4px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cwd-mobile-cta-btn:active {
  transform: scale(0.98);
  box-shadow: 
    0 2px 12px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ════════════════════════════════════════════════════════════ */
html[data-theme="light"] .cwd-header {
  background: rgba(240, 240, 243, 0.94);
  box-shadow: 0 6px 24px rgba(17, 17, 24, 0.06);
}

html[data-theme="light"] .cwd-header-trust-item:hover,
html[data-theme="light"] .cwd-footer-nav-link:hover,
html[data-theme="light"] .cwd-footer-nav-link.active {
  color: var(--color-heading);
}

html[data-theme="light"] .cwd-header-trust-item + .cwd-header-trust-item::before {
  background: rgba(17, 17, 24, 0.15);
}

html[data-theme="light"] .cwd-phone-icon-btn {
  background: rgba(17, 17, 24, 0.04);
  border-color: rgba(17, 17, 24, 0.14);
  color: var(--color-heading);
}

html[data-theme="light"] .cwd-hero-bg-mesh {
  opacity: 0.42;
}

html[data-theme="light"] .cwd-hero-overlay {
  background: radial-gradient(circle at center, rgba(240, 240, 243, 0.1) 0%, var(--color-bg) 88%);
}

html[data-theme="light"] .cwd-hero-content,
html[data-theme="light"] .cwd-hero-title,
html[data-theme="light"] .cwd-hero-subtitle,
html[data-theme="light"] .cwd-hero-body strong,
html[data-theme="light"] .cwd-section-title,
html[data-theme="light"] .cwd-insane-title,
html[data-theme="light"] .cwd-anti-item h3,
html[data-theme="light"] .cwd-expertise-card h3,
html[data-theme="light"] .cwd-standard-item h4,
html[data-theme="light"] .cwd-project-card-header h4 {
  color: var(--color-heading);
}

html[data-theme="light"] .cwd-hero-body,
html[data-theme="light"] .cwd-hero-cta-subtext,
html[data-theme="light"] .cwd-case-study-quote p,
html[data-theme="light"] .cwd-industry-content p {
  color: rgba(17, 17, 24, 0.72);
}

html[data-theme="light"] .cwd-hero-cards-instruction {
  color: #111827;
  font-weight: 700;
  text-shadow: none;
}

html[data-theme="light"] .cwd-hero-cards-instruction::after {
  color: #111827;
  font-weight: 900;
  text-shadow: none;
  opacity: 1;
}

html[data-theme="light"] .cwd-hero-card {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 22px 44px -14px rgba(17, 17, 24, 0.22), 0 8px 20px -8px rgba(17, 17, 24, 0.12);
}

html[data-theme="light"] .cwd-section-anti-agency {
  background: radial-gradient(circle at top left, #dfe3eb 0%, #f0f0f3 45%, #e8e8ee 100%);
}

html[data-theme="light"] .cwd-expertise-card {
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .cwd-expertise-card:hover {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .cwd-project-card:hover {
  border-color: rgba(17, 17, 24, 0.2);
  box-shadow: 0 24px 48px rgba(17, 17, 24, 0.16);
}

html[data-theme="light"] .cwd-case-study:hover {
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.12), 0 8px 20px rgba(17, 17, 24, 0.14);
}

html[data-theme="light"] .cwd-case-study-stats {
  background: rgba(17, 17, 24, 0.03);
}

html[data-theme="light"] .cwd-section-cta .cwd-section-title,
html[data-theme="light"] .cwd-section-cta .cwd-section-title .char,
html[data-theme="light"] .cwd-section-cta .cwd-section-title .word,
html[data-theme="light"] .cwd-section-cta .cwd-section-title .line,
html[data-theme="light"] .cwd-section-cta .cwd-section-desc {
  color: var(--color-heading) !important;
  text-shadow: none;
}

html[data-theme="light"] #contact .cwd-hero-overlay {
  background: radial-gradient(circle at center, transparent 0%, rgba(240, 240, 243, 0.65) 90%);
}

html[data-theme="light"] .cwd-footer {
  background: #e3e4ea;
}

html[data-theme="light"] .cwd-footer-nav-divider {
  background: rgba(17, 17, 24, 0.16);
}

html[data-theme="light"] .cwd-footer-about-inner {
  background: rgba(255, 255, 255, 0.56);
}

html[data-theme="light"] .cwd-footer-about-inner em {
  color: var(--color-heading);
}

html[data-theme="light"] .cwd-footer-address {
  color: #3f4755;
}

html[data-theme="light"] .cwd-footer-copyright,
html[data-theme="light"] .cwd-footer-legal-links a {
  color: #5a6271;
}

html[data-theme="light"] .cwd-footer-legal-divider {
  color: rgba(17, 17, 24, 0.3);
}

html[data-theme="light"] .cwd-logo-reel-item img {
  filter: none;
  opacity: 0.62;
}

html[data-theme="light"] .cwd-mobile-sticky-bar {
  background: linear-gradient(135deg, rgba(242, 243, 246, 0.97), rgba(230, 231, 236, 0.97));
  border-top: 1px solid rgba(17, 17, 24, 0.14);
  box-shadow: 0 -4px 18px rgba(17, 17, 24, 0.12);
}

html[data-theme="light"] .cwd-mobile-phone-btn {
  background: rgba(17, 17, 24, 0.05);
  border-color: rgba(17, 17, 24, 0.18);
  color: var(--color-heading);
}

/* Light mode: keep this image with crisp hard edges */
html[data-theme="light"] .cwd-insane-image-wrapper::after {
  display: none;
}

html[data-theme="light"] .cwd-hero-body,
html[data-theme="light"] .cwd-hero-cta-subtext,
html[data-theme="light"] .cwd-case-study-quote p,
html[data-theme="light"] .cwd-project-card-content p,
html[data-theme="light"] .cwd-standard-item p,
html[data-theme="light"] .cwd-expertise-card p,
html[data-theme="light"] .cwd-case-study-narrative,
html[data-theme="light"] .cwd-testimonial-quote {
  color: #313a49;
}

/* Keep all button treatments on the same blue accent system in light mode */
html[data-theme="light"] .cwd-btn-primary,
html[data-theme="light"] .cwd-mobile-cta-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(29, 78, 216, 0.45);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .cwd-btn-primary:hover,
html[data-theme="light"] .cwd-mobile-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

html[data-theme="light"] .cwd-btn-outline,
html[data-theme="light"] .cwd-case-study-cta {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .cwd-btn-outline:hover,
html[data-theme="light"] .cwd-btn-outline:focus-visible,
html[data-theme="light"] .cwd-case-study-cta:hover,
html[data-theme="light"] .cwd-case-study-cta:focus-visible {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

html[data-theme="light"] .cwd-hero-nav-btn,
html[data-theme="light"] .cwd-phone-icon-btn,
html[data-theme="light"] .cwd-mobile-phone-btn,
html[data-theme="light"] .cwd-video-play {
  background: #2563eb;
  color: #fff;
  border-color: rgba(17, 17, 24, 0.08);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .cwd-hero-nav-btn:hover,
html[data-theme="light"] .cwd-phone-icon-btn:hover,
html[data-theme="light"] .cwd-mobile-phone-btn:hover,
html[data-theme="light"] .cwd-video-thumb:hover .cwd-video-play,
html[data-theme="light"] .cwd-video-thumb:focus-visible .cwd-video-play {
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
}

html[data-theme="light"] .cwd-theme-toggle {
  border-color: rgba(166, 177, 198, 0.72);
  background: rgba(232, 236, 244, 0.96);
  color: #667085;
  box-shadow: inset 0 2px 8px rgba(90, 102, 128, 0.2), 0 8px 20px rgba(112, 125, 149, 0.22);
}

html[data-theme="light"] .cwd-theme-toggle:hover {
  border-color: rgba(141, 154, 179, 0.9);
  box-shadow: inset 0 2px 8px rgba(90, 102, 128, 0.24), 0 10px 22px rgba(112, 125, 149, 0.27);
}

html[data-theme="light"] .cwd-theme-toggle .cwd-theme-knob {
  background: linear-gradient(180deg, #2f65ef 0%, #1e4ed8 100%);
  border-color: rgba(25, 65, 176, 0.42);
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.35);
}

html[data-theme="light"] .cwd-theme-toggle .cwd-theme-icon {
  color: #ffffff;
}

html[data-theme="light"] .cwd-theme-toggle[aria-pressed="true"] .cwd-theme-knob {
  background: linear-gradient(180deg, #fefefe 0%, #e9eefb 100%);
  border-color: rgba(141, 154, 179, 0.58);
}

html[data-theme="light"] .cwd-theme-toggle[aria-pressed="true"] .cwd-theme-icon {
  color: #3b4862;
}

/* Pill readability/sizing pass */
html[data-theme="light"] .cwd-badge {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  padding: 0.34rem 0.88rem;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.38);
}

html[data-theme="light"] .cwd-badge-separator {
  color: #394355;
  opacity: 0.78;
}

html[data-theme="light"] .cwd-video-duration {
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
}

html[data-theme="light"] .cwd-case-study-stats {
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .cwd-stat-label {
  color: #465064;
  font-size: 0.68rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  html[data-theme="light"] .cwd-case-study {
    background: #f3f6fb;
    border-color: rgba(114, 132, 168, 0.35);
  }

  html[data-theme="light"] .cwd-case-study-narrative {
    color: #253246;
  }

  html[data-theme="light"] .cwd-case-study-stats {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(124, 142, 176, 0.32);
  }

  html[data-theme="light"] .cwd-stat-label {
    color: #334155;
  }

  html[data-theme="light"] .cwd-case-study-quote {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: rgba(37, 99, 235, 0.52);
  }

  html[data-theme="light"] .cwd-case-study-quote p {
    color: #233248;
  }

  html[data-theme="light"] .cwd-case-study-quote cite {
    color: #4b5e7d;
  }
}

/* Light mode: industry card body copy should match white heading text */
html[data-theme="light"] .cwd-industry-content p {
  color: #fff;
}

/* Light mode: raise contrast in Expertise section over bright background art */
html[data-theme="light"] .cwd-section-expertise .cwd-section-desc,
html[data-theme="light"] .cwd-section-expertise .cwd-expertise-card p {
  color: #111827;
}

html[data-theme="light"] .cwd-section-expertise .cwd-expertise-card {
  background: rgba(250, 252, 255, 0.98);
  border-color: rgba(17, 17, 24, 0.18);
}

html[data-theme="light"] .cwd-section-expertise .cwd-expertise-card:hover {
  background: #ffffff;
}

html[data-theme="light"] .cwd-section-expertise .cwd-expertise-card h3 {
  color: #0b1220;
}

/* Light mode: testimonial author lines should be dark, not white */
html[data-theme="light"] .cwd-testimonial-author,
html[data-theme="light"] .cwd-testimonial-author strong {
  color: #1f2937;
}

/* Light mode: remove muddy glass panel behind final CTA button */
html[data-theme="light"] .cwd-section-cta .cwd-cta-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .cwd-section-cta .cwd-cta-form-button-only {
  padding-top: 2rem;
}

/* Light mode: make hero subtitle and hero subtext decisively darker */
html[data-theme="light"] .cwd-hero-subtitle {
  color: #0b1220;
}

html[data-theme="light"] .cwd-hero-cta-subtext {
  color: #111827;
  font-weight: 600;
}

@media (max-width: 768px) {
  html[data-theme="light"] .cwd-hamburger span {
    background: #6b7280;
  }
}

@media (min-width: 1024px) {
  .cwd-header .cwd-container {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .cwd-header-trust {
    margin-left: 0.5rem;
    margin-right: 0.65rem;
    gap: 1.35rem;
    overflow: hidden;
  }

  .cwd-header-trust-item {
    font-size: 0.79rem;
    letter-spacing: 0.01em;
  }

  .cwd-header-trust-item + .cwd-header-trust-item::before {
    left: -0.68rem;
  }

  .cwd-header-actions {
    gap: 0.5rem;
    padding-left: 0;
    margin-left: auto;
  }

  .cwd-phone-icon-btn {
    width: 42px;
    height: 42px;
  }

  .cwd-theme-toggle {
    --toggle-width: 108px;
    --toggle-height: 34px;
    --toggle-padding: 4px;
    --knob-size: 24px;
  }

  .cwd-theme-label {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .cwd-btn-header {
    padding: 0.62rem 1.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .cwd-header-trust-item:last-child {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .cwd-header-trust-item:nth-child(3) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .cwd-insane-image-wrapper {
    height: 640px;
  }

  .cwd-insane-image {
    object-position: 54% 28%;
  }
}
